1. 18 7月, 2007 1 次提交
  2. 13 7月, 2007 1 次提交
  3. 05 3月, 2007 1 次提交
    • J
      [PATCH] clocksource init adjustments (fix bug #7426) · 6bb74df4
      john stultz 提交于
      This patch resolves the issue found here:
      http://bugme.osdl.org/show_bug.cgi?id=7426
      
      The basic summary is:
      Currently we register most of i386/x86_64 clocksources at module_init
      time. Then we enable clocksource selection at late_initcall time. This
      causes some problems for drivers that use gettimeofday for init
      calibration routines (specifically the es1968 driver in this case),
      where durring module_init, the only clocksource available is the low-res
      jiffies clocksource. This may cause slight calibration errors, due to
      the small sampling time used.
      
      It should be noted that drivers that require fine grained time may not
      function on architectures that do not have better then jiffies
      resolution timekeeping (there are a few). However, this does not
      discount the reasonable need for such fine-grained timekeeping at init
      time.
      
      Thus the solution here is to register clocksources earlier (ideally when
      the hardware is being initialized), and then we enable clocksource
      selection at fs_initcall (before device_initcall).
      
      This patch should probably get some testing time in -mm, since
      clocksource selection is one of the most important issues for correct
      timekeeping, and I've only been able to test this on a few of my own
      boxes.
      Signed-off-by: NJohn Stultz <johnstul@us.ibm.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: "David S. Miller" <davem@davemloft.net>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      6bb74df4
  4. 13 2月, 2007 3 次提交
  5. 11 1月, 2007 2 次提交
    • V
      [PATCH] i386: Convert some functions to __init to avoid MODPOST warnings · 88d20328
      Vivek Goyal 提交于
      o Some functions which should have been in init sections as they are called
        only once. Put them in init sections. Otherwise MODPOST generates warning
        as these functions are placed in .text and they end up accessing something
        in init sections.
      
      WARNING: vmlinux - Section mismatch: reference to .init.text:migration_init
      from .text between 'do_pre_smp_initcalls' (at offset 0xc01000d1) and
      'run_init_process'
      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>
      88d20328
    • 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
  6. 23 12月, 2006 1 次提交
  7. 08 12月, 2006 1 次提交
  8. 07 12月, 2006 7 次提交
    • R
      [PATCH] paravirt: header and stubs for paravirtualisation · d3561b7f
      Rusty Russell 提交于
      Create a paravirt.h header for all the critical operations which need to be
      replaced with hypervisor calls, and include that instead of defining native
      operations, when CONFIG_PARAVIRT.
      
      This patch does the dumbest possible replacement of paravirtualized
      instructions: calls through a "paravirt_ops" structure.  Currently these are
      function implementations of native hardware: hypervisors will override the ops
      structure with their own variants.
      
      All the pv-ops functions are declared "fastcall" so that a specific
      register-based ABI is used, to make inlining assember easier.
      
      And:
      
      +From: Andy Whitcroft <apw@shadowen.org>
      
      The paravirt ops introduce a 'weak' attribute onto memory_setup().
      Code ordering leads to the following warnings on x86:
      
          arch/i386/kernel/setup.c:651: warning: weak declaration of
                      `memory_setup' after first use results in unspecified behavior
      
      Move memory_setup() to avoid this.
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      Signed-off-by: NChris Wright <chrisw@sous-sol.org>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      Cc: Jeremy Fitzhardinge <jeremy@goop.org>
      Cc: Zachary Amsden <zach@vmware.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NAndy Whitcroft <apw@shadowen.org>
      d3561b7f
    • B
      [PATCH] i386: Move memory map printing and other code to e820.c · cef518e8
      bibo,mao 提交于
      This patch moves e820 memory map print and memmap boot param
      parsing function from setup.c to e820.c, also adds limit_regions
      and print_memory_map declaration in header file.
      Signed-off-by: Nbibo,mao <bibo.mao@intel.com>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      
       arch/i386/kernel/e820.c  |  152 +++++++++++++++++++++++++++
       arch/i386/kernel/setup.c |  158 ---------------------------------
       include/asm-i386/e820.h  |    2
       arch/i386/kernel/e820.c  |  152 ++++++++++++++++++++++++++++++++++++++++++++++
       arch/i386/kernel/setup.c |  153 -----------------------------------------------
       include/asm-i386/e820.h  |    2
       3 files changed, 155 insertions(+), 152 deletions(-)
      cef518e8
    • B
      [PATCH] i386: Move e820/efi memmap walking code to e820.c · b5b24057
      bibo,mao 提交于
      This patch moves e820/efi memmap table walking function from
      setup.c to e820.c, also this patch adds extern declaration in
      header file.
      Signed-off-by: Nbibo,mao <bibo.mao@intel.com>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      
       arch/i386/kernel/e820.c  |  115 +++++++++++++++++++++++++++++++++
       arch/i386/kernel/setup.c |  118 -----------------------------------
       include/asm-i386/e820.h  |    2
       arch/i386/kernel/e820.c  |  115 +++++++++++++++++++++++++++++++++++++++++++++
       arch/i386/kernel/setup.c |  118 -----------------------------------------------
       include/asm-i386/e820.h  |    2
       3 files changed, 117 insertions(+), 118 deletions(-)
      b5b24057
    • B
      [PATCH] i386: Move find_max_pfn function to e820.c · b2dff6a8
      bibo,mao 提交于
      Move more code from setup.c into e820.c
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      b2dff6a8
    • B
      [PATCH] i386: create e820.c for e820 map sanitize and copy function · 8e3342f7
      bibo,mao 提交于
      This patch moves bios e820 map sanitize and copy function from
      setup.c to e820.c
      Signed-off-by: Nbibo,mao <bibo.mao@intel.com>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      
       arch/i386/kernel/e820.c  |  252 +++++++++++++++++++++++++++++++++++++++++++++++
       arch/i386/kernel/setup.c |  240 --------------------------------------------
       2 files changed, 252 insertions(+), 240 deletions(-)
      8e3342f7
    • B
      [PATCH] i386: i386 create e820.c to handle standard io/mem resources · 269c2d81
      bibo,mao 提交于
      This patch creates new file named e820.c to hanle standard io/mem
      resources, moving request_standard_resources function from setup.c
      to e820.c. Also this patch modifies Makfile to compile file e820.c.
      Signed-off-by: Nbibo,mao <bibo.mao@intel.com>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      
       Makefile |    2
       arch/i386/kernel/Makefile |    2
       arch/i386/kernel/e820.c   |  289 ++++++++++++++++++++++++++++++++++++++++++++++
       arch/i386/kernel/setup.c  |  276 -------------------------------------------
       3 files changed, 293 insertions(+), 274 deletions(-)
      269c2d81
    • E
      [PATCH] i386: Reserve kernel memory starting from _text · 8621b81c
      Eric W. Biederman 提交于
      Currently when we are reserving the memory the kernel text
      resides in we start at __PHYSICAL_START which happens to be
      correct but not very obvious.  In addition when we start relocating
      the kernel __PHYSICAL_START is the wrong value, as it is an
      absolute symbol that does not get relocated.
      
      By starting the reservation at __pa_symbol(_text)
      the code is clearer and will be correct when relocated.
      Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: NVivek Goyal <vgoyal@in.ibm.com>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      8621b81c
  9. 29 10月, 2006 1 次提交
  10. 12 10月, 2006 1 次提交
    • M
      [PATCH] mm: use symbolic names instead of indices for zone initialisation · 6391af17
      Mel Gorman 提交于
      Arch-independent zone-sizing is using indices instead of symbolic names to
      offset within an array related to zones (max_zone_pfns).  The unintended
      impact is that ZONE_DMA and ZONE_NORMAL is initialised on powerpc instead
      of ZONE_DMA and ZONE_HIGHMEM when CONFIG_HIGHMEM is set.  As a result, the
      the machine fails to boot but will boot with CONFIG_HIGHMEM turned off.
      
      The following patch properly initialises the max_zone_pfns[] array and uses
      symbolic names instead of indices in each architecture using
      arch-independent zone-sizing.  Two users have successfully booted their
      powerpcs with it (one an ibook G4).  It has also been boot tested on x86,
      x86_64, ppc64 and ia64.  Please merge for 2.6.19-rc2.
      
      Credit to Benjamin Herrenschmidt for identifying the bug and rolling the
      first fix.  Additional credit to Johannes Berg and Andreas Schwab for
      reporting the problem and testing on powerpc.
      Signed-off-by: NMel Gorman <mel@csn.ul.ie>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      6391af17
  11. 30 9月, 2006 1 次提交
  12. 27 9月, 2006 1 次提交
  13. 26 9月, 2006 7 次提交
  14. 19 9月, 2006 1 次提交
    • L
      Revert mmiocfg heuristics and blacklist changes · 79e453d4
      Linus Torvalds 提交于
      This reverts commits 11012d41 and
      40dd2d20, which allowed us to use the
      MMIO accesses for PCI config cycles even without the area being marked
      reserved in the e820 memory tables.
      
      Those changes were needed for EFI-environment Intel macs, but broke some
      newer Intel 965 boards, so for now it's better to revert to our old
      2.6.17 behaviour and at least avoid introducing any new breakage.
      
      Andi Kleen has a set of patches that work with both EFI and the broken
      Intel 965 boards, which will be applied once they get wider testing.
      
      Cc: Arjan van de Ven <arjan@infradead.org>
      Cc: Edgar Hucek <hostmaster@ed-soft.at>
      Cc: Andi Kleen <ak@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      79e453d4
  15. 31 8月, 2006 1 次提交
    • A
      [PATCH] x86: Revert e820 MCFG heuristics · 11012d41
      Andi Kleen 提交于
      The check for the MCFG table being reserved in the e820 map was originally
      added to detect a broken BIOS in a preproduction Intel SDV. However it also
      breaks the Apple x86 Macs, which can't supply this properly, but need
      a working MCFG. With this patch they wouldn't use the MCFG and not work.
      
      After some discussion I think it's best to remove the heuristic again.
      It also failed on some other boxes (although it didn't cause much
      problems there because old style port access for PCI config space
      still works as fallback), but the preproduction SDVs can just use
      pci=nommcfg. Supporting production machines properly is more
      important.
      
      Edgar Hucek did all the debugging work.
      
      Cc: Arjan van de Ven <arjan@infradead.org>
      Cc: Edgar Hucek <hostmaster@ed-soft.at>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      11012d41
  16. 15 7月, 2006 1 次提交
  17. 11 7月, 2006 1 次提交
  18. 01 7月, 2006 1 次提交
  19. 28 6月, 2006 1 次提交
    • V
      [PATCH] i386: export memory more than 4G through /proc/iomem · 87937472
      Vivek Goyal 提交于
      Currently /proc/iomem exports physical memory also apart from io device
      memory.  But on i386, it truncates any memory more than 4GB.  This leads to
      problems for kexec/kdump.
      
      Kexec reads /proc/iomem to determine the system memory layout and prepares a
      memory map based on that and passes it to the kernel being kexeced.  Given the
      fact that memory more than 4GB has been truncated, new kernel never gets to
      see and use that memory.
      
      Kdump also reads /proc/iomem to determine the physical memory layout of the
      system and encodes this informaiton in ELF headers.  After a crash new kernel
      parses these ELF headers being used by previous kernel and vmcore is prepared
      accordingly.  As memory more than 4GB has been truncated, kdump never sees
      that memory and never prepares ELF headers for it.  Hence vmcore is truncated
      and limited to 4GB even if there is more physical memory in the system.
      
      This patch exports memory more than 4GB through /proc/iomem on i386.
      
      Cc: Maneesh Soni <maneesh@in.ibm.com>
      Cc: Vivek Goyal <vgoyal@in.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      87937472
  20. 27 6月, 2006 1 次提交
    • J
      [PATCH] Time: i386 Conversion - part 2: Rework TSC Support · 539eb11e
      john stultz 提交于
      As part of the i386 conversion to the generic timekeeping infrastructure, this
      introduces a new tsc.c file.  The code in this file replaces the TSC
      initialization, management and access code currently in timer_tsc.c (which
      will be removed) that we want to preserve.
      
      The code also introduces the following functionality:
      
      o tsc_khz: like cpu_khz but stores the TSC frequency on systems that do not
        change TSC frequency w/ CPU frequency
      
      o check/mark_tsc_unstable: accessor/modifier flag for TSC timekeeping
        usability
      
      o minor cleanups to calibration math.
      
      This patch also includes a one line __cpuinitdata fix from Zwane Mwaikambo.
      Signed-off-by: NJohn Stultz <johnstul@us.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      539eb11e
  21. 26 6月, 2006 2 次提交
    • L
      Revert "swsusp special saveable pages support" commits · 3448097f
      Linus Torvalds 提交于
      This reverts commits
      
        3e3318de [PATCH] swsusp: x86_64 mark special saveable/unsaveable pages
        b6370d96 [PATCH] swsusp: i386 mark special saveable/unsaveable pages
        ce4ab001 [PATCH] swsusp: add architecture special saveable pages support
      
      because not only do they apparently cause page faults on x86, the
      infrastructure doesn't compile on powerpc.
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      3448097f
    • J
      [PATCH] Clean up and refactor i386 sub-architecture setup · e75eac33
      Jeremy Fitzhardinge 提交于
      Clean up and refactor i386 sub-architecture setup.
      
      This change moves all the code from the
      asm-i386/mach-*/setup_arch_pre/post.h headers, into
      arch/i386/mach-*/setup.c.  mach-*/setup_arch_pre.h is renamed to
      setup_arch.h, and contains only things which should be in header files.  It
      is purely code-motion; there should be no functional changes at all.
      
      Several functions in arch/i386/kernel/setup.c needed to be made non-static
      so that they're visible to the code in mach-*/setup.c.  asm-i386/setup.h is
      used to hold the prototypes for these functions.
      Signed-off-by: NJeremy Fitzhardinge <jeremy@xensource.com>
      Signed-off-by: NChris Wright <chrisw@sous-sol.org>
      Cc: Zachary Amsden <zach@vmware.com>
      Cc: Chris Wright <chrisw@sous-sol.org>
      Cc: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
      Cc: Martin Bligh <mbligh@google.com>
      Cc: James Bottomley <James.Bottomley@steeleye.com>
      Cc: Andrey Panin <pazke@donpac.ru>
      Cc: Dave Hansen <haveblue@us.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      e75eac33
  22. 23 6月, 2006 1 次提交
  23. 09 6月, 2006 1 次提交
    • A
      [PATCH] Fix HPET operation on 32-bit NVIDIA platforms · d44647b0
      Andy Currid 提交于
      From: "Andy Currid" <ACurrid@nvidia.com>
      
      This patch fixes a kernel panic during boot that occurs on NVIDIA platforms
      that have HPET enabled.
      
      When HPET is enabled, the standard timer IRQ is routed to IOAPIC pin 2 and is
      advertised as such in the ACPI APIC table - but an earlier workaround in the
      kernel was ignoring this override.  The fix is to honor timer IRQ overrides
      from ACPI when HPET is detected on an NVIDIA platform.
      Signed-off-by: NAndy Currid <acurrid@nvidia.com>
      Cc: "Brown, Len" <len.brown@intel.com>
      Cc: "Yu, Luming" <luming.yu@intel.com>
      Cc: Andi Kleen <ak@muc.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      d44647b0
  24. 13 5月, 2006 1 次提交
    • L
      Revert "[PATCH] i386: export: memory more than 4G through /proc/iomem" · 9be2f7c3
      Linus Torvalds 提交于
      This reverts commit 10dbe196.
      
      The resource struct is still 32-bit, so trying to save a 64-bit memory
      size there obviously won't work.
      
      When we merge the 64-bit resource series, we can re-enable this.
      
      Thanks to Sachin Sant and Maneesh Soni for debugging
      
      Cc: Maneesh Soni <maneesh@in.ibm.com>
      Cc: Sachin Sant <sachinp@in.ibm.com>
      Cc: Russell King <rmk+lkml@arm.linux.org.uk>
      Cc: Sharyathi Nagesh <sharyath@in.ibm.com>
      Cc: Arjan van de Ven <arjan@infradead.org>
      Cc: Vivek Goyal <vgoyal@in.ibm.com>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      9be2f7c3