1. 17 4月, 2008 24 次提交
  2. 08 2月, 2008 1 次提交
    • B
      Introduce flags for reserve_bootmem() · 72a7fe39
      Bernhard Walle 提交于
      This patchset adds a flags variable to reserve_bootmem() and uses the
      BOOTMEM_EXCLUSIVE flag in crashkernel reservation code to detect collisions
      between crashkernel area and already used memory.
      
      This patch:
      
      Change the reserve_bootmem() function to accept a new flag BOOTMEM_EXCLUSIVE.
      If that flag is set, the function returns with -EBUSY if the memory already
      has been reserved in the past.  This is to avoid conflicts.
      
      Because that code runs before SMP initialisation, there's no race condition
      inside reserve_bootmem_core().
      
      [akpm@linux-foundation.org: coding-style fixes]
      [akpm@linux-foundation.org: fix powerpc build]
      Signed-off-by: NBernhard Walle <bwalle@suse.de>
      Cc: <linux-arch@vger.kernel.org>
      Cc: "Eric W. Biederman" <ebiederm@xmission.com>
      Cc: Vivek Goyal <vgoyal@in.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      72a7fe39
  3. 30 1月, 2008 5 次提交
    • S
      x86: fix section mismatch warning in acpi/boot.c · 87d7e980
      Sam Ravnborg 提交于
      Fix following warning:
      WARNING: arch/x86/kernel/built-in.o(.text+0x10ea0): Section mismatch: reference to .cpuinit.data:num_processors in 'acpi_unmap_lsapic'
      
      The exported function acpi_unmap_lsapic() references
      the variable num_processors that is annotated __cpuinitdata.
      
      Remove the annotation of num_processors as we never know
      when an exported function are called.
      And drop the needless initialsation to 0.
      
      Warning was seen on 64 bit but similar pattern were seen
      in 32 bit - so fix it up there too.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      87d7e980
    • I
      x86: smp_scan_config() debugging printouts · e91a3b43
      Ingo Molnar 提交于
      These are useful in figuring out early-mapping problems.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      e91a3b43
    • J
      arch/x86/: spelling fixes · ab4a574e
      Joe Perches 提交于
      Spelling fixes.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      ab4a574e
    • L
      x86: 32-bit IOAPIC: de-fang IRQ compression · 2ba7deef
      Len Brown 提交于
      commit c434b7a6
      (x86: avoid wasting IRQs for PCI devices)
      created a concept of "IRQ compression" on i386
      to conserve IRQ numbers on systems with many
      sparsely populated IO APICs.
      
      The same scheme was also added to x86_64,
      but later removed when x86_64 recieved an IRQ over-haul
      that made it unnecessary -- including per-CPU
      IRQ vectors that greatly increased the IRQ capacity
      on the machine.
      
      i386 has not received the analogous over-haul,
      and thus a previous attempt to delete IRQ compression
      from i386 was rejected on the theory that there may
      exist machines that actually need it.  The fact is
      that the author of IRQ compression patch was unable
      to confirm the actual existence of such a system.
      
      As a result, all i386 kernels with IOAPIC support
      pay the following:
      
      1. confusion
      
      IRQ compression re-names the traditional IOAPIC
      pin numbers (aka ACPI GSI's) into sequential IRQ #s:
      
      ACPI: PCI Interrupt 0000:00:1c.0[A] -> GSI 20 (level, low) -> IRQ 16
      ACPI: PCI Interrupt 0000:00:1c.1[B] -> GSI 21 (level, low) -> IRQ 17
      ACPI: PCI Interrupt 0000:00:1c.2[C] -> GSI 22 (level, low) -> IRQ 18
      ACPI: PCI Interrupt 0000:00:1c.3[D] -> GSI 23 (level, low) -> IRQ 19
      ACPI: PCI Interrupt 0000:00:1c.4[A] -> GSI 20 (level, low) -> IRQ 16
      
      This makes /proc/interrupts look different
      depending on system configuration and device probe order.
      It is also different than the x86_64 kernel running
      on the exact same system.  As a result, programmers
      get confused when comparing systems.
      
      2. complexity
      
      The IRQ code in Linux is already overly complex,
      and IRQ compression makes it worse.  There have
      already been two bug workarounds related to IRQ
      compression -- the IRQ0 timer workaround and
      the VIA PCI IRQ workaround.
      
      3. size
      
      All i386 kernels with IOAPIC support contain an int[4096] --
      a 4 page array to contain the renamed IRQs.
      
      So while the irq compression code on i386 should really
      be deleted -- even before merging the x86_64 irq-overhaul,
      this patch simply disables it on all high volume systems
      to avoid problems #1 and #2 on most all i386 systems.
      
      A large system with pin numbers >=64 will still have compression
      to conserve limited IRQ numbers for sparse IOAPICS.  However,
      the vast majority of the planet, those with only pin numbers < 64
      will use an identity GSI -> IRQ mapping.
      Signed-off-by: NLen Brown <len.brown@intel.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Acked-by: N"Eric W. Biederman" <ebiederm@xmission.com>
      2ba7deef
    • T
      x86: cleanup mpspec variants · 64883ab0
      Thomas Gleixner 提交于
      Bring the mpspec variants into sync to prepare merging and
      paravirt support.
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      64883ab0
  4. 20 10月, 2007 1 次提交
  5. 11 10月, 2007 2 次提交
  6. 09 5月, 2007 1 次提交
  7. 03 5月, 2007 1 次提交
  8. 03 2月, 2007 1 次提交
  9. 11 1月, 2007 1 次提交
    • V
      [PATCH] i386: cpu hotplug/smpboot misc MODPOST warning fixes · 4a5d107a
      Vivek Goyal 提交于
      o Misc smpboot/cpu hotplug path cleanups. I did those to supress the
        warnings generated by MODPOST. These warnings are visible only
        if CONFIG_RELOCATABLE=y.
      
      o CONFIG_RELOCATABLE compiles the kernel with --emit-relocs option. This
        option retains relocation information in vmlinux file and MODPOST
        is quick to spit out "Section mismatch" warnings.
      
      o This patch fixes some of those warnings. Many of the functions in
        smpboot case are __devinit type and they in turn accesses text/data which
        if of type __cpuinit. Now if CONFIG_HOTPLUG=y and CONFIG_HOTPLUG_CPU=n
        then we end up in cases where a function in .text segment is calling
        another function in .init.text segment and MODPOST emits warning.
      
      WARNING: vmlinux - Section mismatch: reference to .init.text:identify_cpu from .text between 'smp_store_cpu_info' (at offset 0xc011020d) and 'do_boot_cpu'
      WARNING: vmlinux - Section mismatch: reference to .init.text:init_gdt from .text between 'do_boot_cpu' (at offset 0xc01102ca) and '__cpu_up'
      WARNING: vmlinux - Section mismatch: reference to .init.text:print_cpu_info from .text between 'do_boot_cpu' (at offset 0xc01105d0) and '__cpu_up'
      
      o It also fixes the issues where CONFIG_HOTPLUG_CPU=y and start_secondary()
        is calling smp_callin() which in-turn calls synchronize_tsc_ap() which is
        of type __init. This should have meant broken CPU hotplug.
      
      WARNING: vmlinux - Section mismatch: reference to .init.data: from .text between 'start_secondary' (at offset 0xc011603f) and 'initialize_secondary'
      WARNING: vmlinux - Section mismatch: reference to .init.data: from .text between 'MP_processor_info' (at offset 0xc0116a4f) and 'mp_register_lapic'
      WARNING: vmlinux - Section mismatch: reference to .init.data: from .text between 'MP_processor_info' (at offset 0xc0116a4f) and 'mp_register_lapic'
      Signed-off-by: NVivek Goyal <vgoyal@in.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      4a5d107a
  10. 07 12月, 2006 1 次提交
  11. 26 9月, 2006 2 次提交