1. 05 5月, 2010 2 次提交
  2. 24 11月, 2009 1 次提交
  3. 10 11月, 2009 1 次提交
    • C
      x86: apic: Do not use stacked physid_mask_t · 7abc0753
      Cyrill Gorcunov 提交于
      We should not use physid_mask_t as a stack based
      variable in apic code. This type depends on MAX_APICS
      parameter which may be huge enough.
      
      Especially it became a problem with apic NOOP driver which
      is portable between 32 bit and 64 bit environment
      (where we have really huge MAX_APICS).
      
      So apic driver should operate with pointers and a caller
      in turn should aware of allocation physid_mask_t variable.
      
      As a side (but positive) effect -- we may use already
      implemented physid_set_mask_of_physid function eliminating
      default_apicid_to_cpu_present completely.
      
      Note that physids_coerce and physids_promote turned into static
      inline from macro (since macro hides the fact that parameter is
      being interpreted as unsigned long, make it explicit).
      Signed-off-by: NCyrill Gorcunov <gorcunov@openvz.org>
      Cc: Yinghai Lu <yinghai@kernel.org>
      Cc: Maciej W. Rozycki <macro@linux-mips.org>
      Cc: Stephen Rothwell <sfr@canb.auug.org.au>
      LKML-Reference: <20091109220659.GA5568@lenovo>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      7abc0753
  4. 31 8月, 2009 1 次提交
  5. 27 8月, 2009 3 次提交
  6. 28 5月, 2009 1 次提交
  7. 18 5月, 2009 1 次提交
  8. 11 5月, 2009 1 次提交
    • Y
      x86/acpi: call mp_config_acpi_gsi() in mp_register_gsi() · a31f8205
      Yinghai Lu 提交于
      The patch to call mp_config_acpi_gsi() from the ACPI IRQ registration
      code never got mainline because there were open discussions about it.
      
      This call is needed to properly update the kernel's copy of the mptable,
      when the update_mptable boot parameter is needed.
      
      Now that the dust has settled with the APIC unification, and since there
      were no objections when the patch was re-submitted, try this again.
      
      [ Impact: fix the update_mptable boot parameter ]
      Signed-off-by: NYinghai Lu <yinghai@kernel.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
      Cc: Len Brown <lenb@kernel.org>
      LKML-Reference: <4A01C387.7090103@kernel.org>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      a31f8205
  9. 28 4月, 2009 1 次提交
    • Y
      irq: change ACPI GSI APIs to also take a device argument · a2f809b0
      Yinghai Lu 提交于
      We want to use dev_to_node() later on, to be aware of the 'home node'
      of the GSI in question.
      
      [ Impact: cleanup, prepare the IRQ code to be more NUMA aware ]
      Signed-off-by: NYinghai Lu <yinghai@kernel.org>
      Acked-by: NLen Brown <lenb@kernel.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Suresh Siddha <suresh.b.siddha@intel.com>
      Cc: "Eric W. Biederman" <ebiederm@xmission.com>
      Cc: Rusty Russell <rusty@rustcorp.com.au>
      Cc: Len Brown <lenb@kernel.org>
      Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: linux-acpi@vger.kernel.org
      Cc: linux-ia64@vger.kernel.org
      LKML-Reference: <49F65560.20904@kernel.org>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      a2f809b0
  10. 18 2月, 2009 1 次提交
    • I
      x86, numaq_32: clean up, misc · cb81eaed
      Ingo Molnar 提交于
      Impact: cleanup
      
       - misc other cleanups that change the md5 signature
       - consolidate global variables
       - remove unnecessary __numaq_mps_oem_check() wrapper
       - make numaq_mps_oem_check static
       - update copyrights
       - misc other cleanups pointed out by checkpatch
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      cb81eaed
  11. 10 2月, 2009 2 次提交
  12. 09 2月, 2009 2 次提交
    • Y
      x86: find nr_irqs_gsi with mp_ioapic_routing · 3f4a739c
      Yinghai Lu 提交于
      Impact: find right nr_irqs_gsi on some systems.
      
      One test-system has gap between gsi's:
      
      [    0.000000] ACPI: IOAPIC (id[0x04] address[0xfec00000] gsi_base[0])
      [    0.000000] IOAPIC[0]: apic_id 4, version 0, address 0xfec00000, GSI 0-23
      [    0.000000] ACPI: IOAPIC (id[0x05] address[0xfeafd000] gsi_base[48])
      [    0.000000] IOAPIC[1]: apic_id 5, version 0, address 0xfeafd000, GSI 48-54
      [    0.000000] ACPI: IOAPIC (id[0x06] address[0xfeafc000] gsi_base[56])
      [    0.000000] IOAPIC[2]: apic_id 6, version 0, address 0xfeafc000, GSI 56-62
      ...
      [    0.000000] nr_irqs_gsi: 38
      
      So nr_irqs_gsi is not right. some irq for MSI will overwrite with io_apic.
      
      need to get that with acpi_probe_gsi when acpi io_apic is used
      Signed-off-by: NYinghai Lu <yinghai@kernel.org>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      3f4a739c
    • Y
      x86: find nr_irqs_gsi with mp_ioapic_routing · cc6c5006
      Yinghai Lu 提交于
      Impact: find right nr_irqs_gsi on some systems.
      
      One test-system has gap between gsi's:
      
      [    0.000000] ACPI: IOAPIC (id[0x04] address[0xfec00000] gsi_base[0])
      [    0.000000] IOAPIC[0]: apic_id 4, version 0, address 0xfec00000, GSI 0-23
      [    0.000000] ACPI: IOAPIC (id[0x05] address[0xfeafd000] gsi_base[48])
      [    0.000000] IOAPIC[1]: apic_id 5, version 0, address 0xfeafd000, GSI 48-54
      [    0.000000] ACPI: IOAPIC (id[0x06] address[0xfeafc000] gsi_base[56])
      [    0.000000] IOAPIC[2]: apic_id 6, version 0, address 0xfeafc000, GSI 56-62
      ...
      [    0.000000] nr_irqs_gsi: 38
      
      So nr_irqs_gsi is not right. some irq for MSI will overwrite with io_apic.
      
      need to get that with acpi_probe_gsi when acpi io_apic is used
      Signed-off-by: NYinghai Lu <yinghai@kernel.org>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      cc6c5006
  13. 29 1月, 2009 3 次提交
  14. 30 12月, 2008 1 次提交
  15. 23 10月, 2008 2 次提交
  16. 16 10月, 2008 2 次提交
    • Y
      x86: probe nr_irqs even only mptable is used · 9d6a4d08
      Yinghai Lu 提交于
      for !CONFIG_HAVE_SPARSE_IRQ
      
      fix:
      
       In file included from arch/x86/kernel/early-quirks.c:18:
       include/asm/io_apic.h: In function 'probe_nr_irqs':
       include/asm/io_apic.h:209: error: 'NR_IRQS' undeclared (first use in this function)
       include/asm/io_apic.h:209: error: (Each undeclared identifier is reported only once
       include/asm/io_apic.h:209: error: for each function it appears in.)
      
      v2: fix by Ingo
      Signed-off-by: NYinghai Lu <yhlu.kernel@gmail.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      9d6a4d08
    • Y
      x86, irq: get nr_irqs from madt · 71f521bb
      Yinghai Lu 提交于
      Until now, NR_IRQS was derived from black magic defines that had to
      be "large enough" to both accomodate NR_CPUS and MAX_NR_IO_APICs.
      
      This resulted in a way too large irq_desc[] array on most x86 systems.
      Especially with larger CPU masks, the size of irq_desc can spiral out
      of control quickly.
      
      So be smarter about it and use precise allocation instead: determine the
      default maximum possible IRQ number from the ACPI MADT. Use a minimum limit
      of at least 32 IRQs for broken BIOSes.
      Signed-off-by: NYinghai Lu <yhlu.kernel@gmail.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      71f521bb
  17. 21 8月, 2008 1 次提交
    • Y
      x86: fix apic version warning · 11494547
      Yinghai Lu 提交于
      after following patch,
      
      commit 1b313f4a
      Author: Cyrill Gorcunov <gorcunov@gmail.com>
      Date:   Mon Aug 18 20:45:57 2008 +0400
      
          x86: apic - generic_processor_info
      
          - use physid_set instead of phys_cpu and physids_or
          - set phys_cpu_present_map bit AFTER check for allowed
            number of processors
          - add checking for APIC valid version in 64bit mode
            (mostly not needed but added for merging purpose)
          - add apic_version definition for 64bit mode which
            is used now
      
      we are getting warning for acpi path on 64 bit system.
      
      make the 64-bit side fill in apic_version[] as well.
      
      [ mingo@elte.hu: build fix ]
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      11494547
  18. 23 7月, 2008 1 次提交
    • V
      x86: consolidate header guards · 77ef50a5
      Vegard Nossum 提交于
      This patch is the result of an automatic script that consolidates the
      format of all the headers in include/asm-x86/.
      
      The format:
      
      1. No leading underscore. Names with leading underscores are reserved.
      2. Pathname components are separated by two underscores. So we can
         distinguish between mm_types.h and mm/types.h.
      3. Everything except letters and numbers are turned into single
         underscores.
      Signed-off-by: NVegard Nossum <vegard.nossum@gmail.com>
      77ef50a5
  19. 08 7月, 2008 3 次提交
  20. 10 6月, 2008 3 次提交
  21. 04 6月, 2008 1 次提交
  22. 03 6月, 2008 2 次提交
  23. 25 5月, 2008 1 次提交
  24. 17 4月, 2008 3 次提交