1. 18 2月, 2009 4 次提交
  2. 17 2月, 2009 3 次提交
  3. 29 1月, 2009 4 次提交
    • I
      x86, apic: untangle the send_IPI_*() jungle · dac5f412
      Ingo Molnar 提交于
      Our send_IPI_*() methods and definitions are a twisted mess: the same
      symbol is defined to different things depending on .config details,
      in a non-transparent way.
      
       - spread out the quirks into separately named per apic driver methods
      
       - prefix the standard PC methods with default_
      
       - get rid of wrapper macro obfuscation
      
       - clean up various details
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      dac5f412
    • I
      x86, apic: clean up ->setup_apic_routing() · 72ce0165
      Ingo Molnar 提交于
      - separate the namespace
      
       - remove macros
      
       - remove namespace clash on 64-bit
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      72ce0165
    • I
      x86: clean up apic->acpi_madt_oem_check methods · 306db03b
      Ingo Molnar 提交于
      Impact: refactor code
      
      x86 subarchitectures each defined a "acpi_madt_oem_check()" method,
      which could be an inline function, or an extern, or a static function,
      and which was also the name of a genapic field.
      
      Untangle this namespace spaghetti by setting ->acpi_madt_oem_check()
      to NULL on those subarchitectures that have no detection quirks,
      and rename the other ones (summit, es7000) that do.
      
      Also change default_acpi_madt_oem_check() to handle NULL entries,
      and clean its control flow up as well.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      306db03b
    • I
      x86: rename 'genapic' to 'apic' · c8d46cf0
      Ingo Molnar 提交于
      Rename genapic-> to apic-> references because in a future chagne we'll
      open-code all the indirect calls (instead of obscuring them via macros),
      so we want this reference to be as short as possible.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      c8d46cf0
  4. 21 1月, 2009 1 次提交
  5. 18 11月, 2008 1 次提交
  6. 31 7月, 2008 1 次提交
  7. 27 7月, 2008 1 次提交
  8. 22 7月, 2008 1 次提交
    • Y
      x86: add apic probe for genapic 64bit, v2 · 1b9b89e7
      Yinghai Lu 提交于
      introducing an APIC handling probing abstraction:
      
       static struct genapic *apic_probe[] __initdata = {
      	&apic_x2apic_uv_x,
      	&apic_x2apic_phys,
      	&apic_x2apic_cluster,
      	&apic_physflat,
      	NULL,
       };
      
      This way we can remove UV, x2apic specific code from genapic_64.c and
      move them to their specific genapic files.
      
      [ v2: fix compiling when CONFIG_ACPI is not set ]
      Signed-off-by: NYinghai Lu <yhlu.kernel@gmail.com>
      Cc: Jack Steiner <steiner@sgi.com>
      Cc: Suresh Siddha <suresh.b.siddha@intel.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      1b9b89e7
  9. 12 7月, 2008 5 次提交
  10. 10 6月, 2008 1 次提交
  11. 01 5月, 2008 1 次提交
  12. 26 4月, 2008 1 次提交
  13. 17 4月, 2008 6 次提交
  14. 30 1月, 2008 2 次提交
  15. 20 10月, 2007 1 次提交
    • M
      x86: convert cpu_to_apicid to be a per cpu variable · 71fff5e6
      Mike Travis 提交于
      This patch converts the x86_cpu_to_apicid array to be a per cpu
      variable. This saves sizeof(apicid) * NR unused cpus.  Access is mostly
      from startup and CPU HOTPLUG functions.
      
      MP_processor_info() is one of the functions that require access to the
      x86_cpu_to_apicid array before the per_cpu data area is setup.  For this
      case, a pointer to the __initdata array is initialized in setup_arch()
      and removed in smp_prepare_cpus() after the per_cpu data area is
      initialized.
      
      A second change is included to change the initial array value of ARCH
      i386 from 0xff to BAD_APICID to be consistent with ARCH x86_64.
      Signed-off-by: NMike Travis <travis@sgi.com>
      Cc: Andi Kleen <ak@suse.de>
      Cc: Christoph Lameter <clameter@sgi.com>
      Cc: "Siddha, Suresh B" <suresh.b.siddha@intel.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      71fff5e6
  16. 18 10月, 2007 1 次提交
  17. 11 10月, 2007 2 次提交
  18. 03 5月, 2007 4 次提交
    • J
      [PATCH] x86: adjust inclusion of asm/fixmap.h · 00f1ea69
      Jan Beulich 提交于
      Move inclusion of asm/fixmap.h to where it is really used rather than
      where it may have been used long ago (requires a few other adjustments
      to includes due to previous implicit dependencies).
      Signed-off-by: NJan Beulich <jbeulich@novell.com>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      00f1ea69
    • I
      [PATCH] x86: default to physical mode on hotplug CPU kernels · 3c43f039
      Ingo Molnar 提交于
      Default to physical mode on hotplug CPU kernels.  Furher simplify and clean up
      the APIC initialization code.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      Cc: Suresh Siddha <suresh.b.siddha@intel.com>
      Cc: Andi Kleen <ak@suse.de>
      Cc: "Li, Shaohua" <shaohua.li@intel.com>
      Cc: "Eric W. Biederman" <ebiederm@xmission.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      3c43f039
    • I
      [PATCH] x86-64: always use physical delivery mode on > 8 CPUs · 07c7c474
      Ingo Molnar 提交于
      Remove clustered APIC mode.  There's little point in the use of clustered APIC
      mode, broadcasting is limited to within the cluster only, and chipsets have
      bugs in this area as well.  So default to physical APIC mode when the CPU
      count is large, and default to logical APIC mode when the CPU count is 8 or
      smaller.
      
      (this patch only removes the use of genapic_cluster and cleans up the
      resulting genapic.c file - removal of all remaining traces of clustered
      mode will be done by another patch.)
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      Cc: Suresh Siddha <suresh.b.siddha@intel.com>
      Cc: Andi Kleen <ak@suse.de>
      Cc: "Li, Shaohua" <shaohua.li@intel.com>
      Cc: "Eric W. Biederman" <ebiederm@xmission.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      07c7c474
    • I
      [PATCH] x86-64: optimize & fix APIC mode setup · f18d397e
      Ingo Molnar 提交于
      Fix a couple of inconsistencies/problems I found while reviewing the x86_64
      genapic code (when I was chasing mysterious eth0 timeouts that would only
      trigger if CPU_HOTPLUG is enabled):
      
       - AMD systems defaulted to the slower flat-physical mode instead
         of the flat-logical mode. The only restriction on AMD systems
         is that they should not use clustered APIC mode.
      
       - removed the CPU hotplug hacks, switching the default for small
         systems back from phys-flat to logical-flat. The switching to logical
         flat mode on small systems fixed sporadic ethernet driver timeouts i
         was getting on a dual-core Athlon64 system:
      
          NETDEV WATCHDOG: eth0: transmit timed out
          eth0: Transmit timeout, status 0c 0005 c07f media 80.
          eth0: Tx queue start entry 32  dirty entry 28.
          eth0:  Tx descriptor 0 is 0008a04a. (queue head)
          eth0:  Tx descriptor 1 is 0008a04a.
          eth0:  Tx descriptor 2 is 0008a04a.
          eth0:  Tx descriptor 3 is 0008a04a.
          eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1
      
       - The use of '<= 8' was a bug by itself (the valid APIC ids
         for logical flat mode go from 0 to 7, not 0 to 8). The new logic
         is to use logical flat mode on both AMD and Intel systems, and
         to only switch to physical mode when logical mode cannot be used.
         If CPU hotplug is racy wrt. APIC shutdown then CPU hotplug needs
         fixing, not the whole IRQ system be made inconsistent and slowed
         down.
      
       - minor cleanups: simplified some code constructs
      
      build & booted on a couple of AMD and Intel SMP systems.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      Cc: Suresh Siddha <suresh.b.siddha@intel.com>
      Cc: Andi Kleen <ak@suse.de>
      Cc: "Li, Shaohua" <shaohua.li@intel.com>
      Cc: "Eric W. Biederman" <ebiederm@xmission.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      f18d397e