1. 13 5月, 2008 3 次提交
    • Y
      x86: checking aperture size order · 8c9fd91a
      Yinghai Lu 提交于
      some systems are using 32M for gart and agp when memory is less than 4G.
      Kernel will reject and try to allcate another 64M that is not needed,
      and we will waste 64M of perfectly good RAM.
      
      this patch adds a workaround by checking aper_base/order between NB and
      agp bridge. If they are the same, and memory size is less than 4G, it
      will allow it.
      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>
      8c9fd91a
    • Y
      x86: agp_gart size checking for buggy device · 1edc1ab3
      Yinghai Lu 提交于
      while looking at Rafael J. Wysocki's system boot log,
      
      I found a funny printout:
      
      	Node 0: aperture @ de000000 size 32 MB
      	Aperture too small (32 MB)
      	AGP bridge at 00:04:00
      	Aperture from AGP @ de000000 size 4096 MB (APSIZE 0)
      	Aperture too small (0 MB)
      	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
      
      	...
      
      	agpgart: Detected AGP bridge 20
      	agpgart: Aperture pointing to RAM
      	agpgart: Aperture from AGP @ de000000 size 4096 MB
      	agpgart: Aperture too small (0 MB)
      	agpgart: No usable aperture found.
      	agpgart: Consider rebooting with iommu=memaper=2 to get a good aperture.
      
      it means BIOS allocated the correct gart on the NB and AGP bridge, but
      because a bug in the silicon (the agp bridge reports the wrong order,
      it wants 4G instead) the kernel will reject that allocation.
      
      Also, because the size is only 32MB, and we try to get another 64M for gart,
      late fix_northbridge can not revert that change because it still reads
      the wrong size from agp bridge.
      
      So try to double check the order value from the agp bridge, before calling
      aperture_valid().
      
      [ mingo@elte.hu: 32-bit fix. ]
      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>
      1edc1ab3
    • P
      x86: iommu: use symbolic constants, not hardcoded numbers · aa134f1b
      Pavel Machek 提交于
      Move symbolic constants into gart.h, and use them instead of hardcoded
      constant.
      Signed-off-by: NPavel Machek <pavel@suse.cz>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      aa134f1b
  2. 09 5月, 2008 2 次提交
  3. 06 5月, 2008 1 次提交
  4. 02 5月, 2008 2 次提交
    • K
      [POWERPC] Xilinx: Fix compile warnings · b17b8181
      Kumar Gala 提交于
      arch/powerpc/sysdev/xilinx_intc.c: In function 'xilinx_intc_init':
      arch/powerpc/sysdev/xilinx_intc.c:111: warning: format '%08X' expects type 'unsigned int', but argument 2 has type 'resource_size_t'
      drivers/char/xilinx_hwicap/xilinx_hwicap.c: In function 'hwicap_setup':
      drivers/char/xilinx_hwicap/xilinx_hwicap.c:626: warning: cast to pointer from integer of different size
      drivers/char/xilinx_hwicap/xilinx_hwicap.c:646: warning: format '%x' expects type 'unsigned int', but argument 6 has type 'resource_size_t'
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      b17b8181
    • A
      [PATCH] split linux/file.h · 9f3acc31
      Al Viro 提交于
      Initial splitoff of the low-level stuff; taken to fdtable.h
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      9f3acc31
  5. 01 5月, 2008 5 次提交
  6. 30 4月, 2008 27 次提交