1. 19 4月, 2008 17 次提交
  2. 25 3月, 2008 7 次提交
  3. 24 3月, 2008 7 次提交
  4. 23 3月, 2008 1 次提交
    • T
      x86: revert: reserve dma32 early for gart · 9e963048
      Thomas Gleixner 提交于
      Revert
      
      commit f62f1fc9
      Author: Yinghai Lu <yhlu.kernel@gmail.com>
      Date:   Fri Mar 7 15:02:50 2008 -0800
      
          x86: reserve dma32 early for gart
      
      The patch has a dependency on bootmem modifications which are not .25
      material that late in the -rc cycle. The problem which is addressed by
      the patch is limited to machines with 256G and more memory booted with
      NUMA disabled. This is not a .25 regression and the audience which is
      affected by this problem is very limited, so it's safer to do the
      revert than pulling in intrusive bootmem changes right now.
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      9e963048
  5. 22 3月, 2008 8 次提交
    • D
      [SPARC64]: Remove most limitations to kernel image size. · 64658743
      David S. Miller 提交于
      Currently kernel images are limited to 8MB in size, and this causes
      problems especially when enabling features that take up a lot of
      kernel image space such as lockdep.
      
      The code now will align the kernel image size up to 4MB and map that
      many locked TLB entries.  So, the only practical limitation is the
      number of available locked TLB entries which is 16 on Cheetah and 64
      on pre-Cheetah sparc64 cpus.  Niagara cpus don't actually have hw
      locked TLB entry support.  Rather, the hypervisor transparently
      provides support for "locked" TLB entries since it runs with physical
      addressing and does the initial TLB miss processing.
      
      Fully utilizing this change requires some help from SILO, a patch for
      which will be submitted to the maintainer.  Essentially, SILO will
      only currently map up to 8MB for the kernel image and that needs to be
      increased.
      
      Note that neither this patch nor the SILO bits will help with network
      booting.  The openfirmware code will only map up to a certain amount
      of kernel image during a network boot and there isn't much we can to
      about that other than to implemented a layered network booting
      facility.  Solaris has this, and calls it "wanboot" and we may
      implement something similar at some point.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      64658743
    • Y
      x86_64: free_bootmem should take phys · 37bff62e
      Yinghai Lu 提交于
      so use nodedata_phys directly.
      Signed-off-by: NYinghai Lu <yhlu.kernel@gmail.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      37bff62e
    • Y
      x86: trim mtrr don't close gap for resource allocation. · 5dca6a1b
      Yinghai Lu 提交于
      fix the bug reported here:
      
      	http://bugzilla.kernel.org/show_bug.cgi?id=10232
      
      use update_memory_range() instead of add_memory_range() directly
      to avoid closing the gap.
      
      ( the new code only affects and runs on systems where the MTRR
        workaround triggers. )
      Signed-off-by: NYinghai Lu <yhlu.kernel@gmail.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      5dca6a1b
    • H
      x86: fix reboot problem with Dell Optiplex 745, 0KW626 board · fc1c8925
      Heinz-Ado Arnolds 提交于
      we have seen a little problem in rebooting Dell Optiplex 745 with the
      0KW626 board. Here is a small patch enabling reboot with this board,
      which forces the default reboot path it into the BIOS reboot mode.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      fc1c8925
    • J
      x86: fix fault_msg nul termination · e215f3c2
      Jiri Slaby 提交于
      The fault_msg text is not explictly nul terminated now in startup
      assembly. Do so by converting .ascii to .asciz.
      Signed-off-by: NJiri Slaby <jirislaby@gmail.com>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      e215f3c2
    • P
      x86: fix long standing bug with usb after hibernation with 4GB ram · 2050d45d
      Pavel Machek 提交于
      aperture_64.c takes a piece of memory and makes it into iommu
      window... but such window may not be saved by swsusp -- that leads to
      oops during hibernation.
      Signed-off-by: NPavel Machek <pavel@suse.cz>
      Acked-by: N"Rafael J. Wysocki" <rjw@sisk.pl>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      2050d45d
    • Z
      x86: hpet clock enable quirk on nVidia nForce 430 · 96bcf458
      Zbigniew Luszpinski 提交于
      this patch allows hpet=force on nVidia nForce 430 southbridge.
      This patch was tested by me on my old Asus A8N-VM CSM (where bios does not
      support hpet and does not advertise it via acpi entry). My nForce430 version:
      lspci -nn | grep LPC
      00:0a.0 ISA bridge [0601]: nVidia Corporation MCP51 LPC Bridge [10de:0260]
      (rev a2)
      
      Kernel 2.6.24.3 after patching and using hpet=force reports this:
      dmesg | grep -i hpet
      Kernel command line: root=/dev/sda8 ro vga=773 video=vesafb:mtrr:4,ywrap
      vt.default_utf8=0 hpet=force
      Force enabled HPET at base address 0xfed00000
      hpet clockevent registered
      Time: hpet clocksource has been installed.
      
      grep -i hpet /proc/timer_list
      Clock Event Device: hpet
       set_next_event: hpet_legacy_next_event
       set_mode:       hpet_legacy_set_mode
      
      grep Clock /proc/timer_list (before patching)
      Clock Event Device: pit
      Clock Event Device: lapic
      
      grep Clock /proc/timer_list (after patching)
      Clock Event Device: hpet
      Clock Event Device: lapic
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      96bcf458
    • Y
      x86: reserve dma32 early for gart · f62f1fc9
      Yinghai Lu 提交于
      a system with 256 GB of RAM, when NUMA is disabled crashes the
      following way:
      
      Your BIOS doesn't leave a aperture memory hole
      Please enable the IOMMU option in the BIOS setup
      This costs you 64 MB of RAM
      Cannot allocate aperture memory hole (ffff8101c0000000,65536K)
      Kernel panic - not syncing: Not enough memory for aperture
      Pid: 0, comm: swapper Not tainted 2.6.25-rc4-x86-latest.git #33
      
      Call Trace:
       [<ffffffff84037c62>] panic+0xb2/0x190
       [<ffffffff840381fc>] ? release_console_sem+0x7c/0x250
       [<ffffffff847b1628>] ? __alloc_bootmem_nopanic+0x48/0x90
       [<ffffffff847b0ac9>] ? free_bootmem+0x29/0x50
       [<ffffffff847ac1f7>] gart_iommu_hole_init+0x5e7/0x680
       [<ffffffff847b255b>] ? alloc_large_system_hash+0x16b/0x310
       [<ffffffff84506a2f>] ? _etext+0x0/0x1
       [<ffffffff847a2e8c>] pci_iommu_alloc+0x1c/0x40
       [<ffffffff847ac795>] mem_init+0x45/0x1a0
       [<ffffffff8479ff35>] start_kernel+0x295/0x380
       [<ffffffff8479f1c2>] _sinittext+0x1c2/0x230
      
      the root cause is : memmap PMD is too big,
      [ffffe200e0600000-ffffe200e07fffff] PMD ->ffff81383c000000 on node 0
      almost near 4G..., and vmemmap_alloc_block will use up the ram under 4G.
      
      solution will be:
      1. make memmap allocation get memory above 4G...
      2. reserve some dma32 range early before we try to set up memmap for all.
      and release that before pci_iommu_alloc, so gart or swiotlb could get some
      range under 4g limit for sure.
      
      the patch is using method 2.
      because method1 may need more code to handle SPARSEMEM and SPASEMEM_VMEMMAP
      
      will get
      Your BIOS doesn't leave a aperture memory hole
      Please enable the IOMMU option in the BIOS setup
      This costs you 64 MB of RAM
      Mapping aperture over 65536 KB of RAM @ 4000000
      Memory: 264245736k/268959744k available (8484k kernel code, 4187464k reserved, 4004k data, 724k init)
      Signed-off-by: NYinghai Lu <yhlu.kernel@gmail.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      f62f1fc9