android_kernel_xiaomi_sm8350/arch/x86
Yinghai Lu 20651af9ac x86: fix mttr trimming
Pavel Emelyanov reported that his networking card did not work
and bisected it down to:

"
The commit

  093af8d7f0
  x86_32: trim memory by updating e820

broke my e1000 card: on loading driver says that

  e1000: probe of 0000:04:03.0 failed with error -5

and the interface doesn't appear.
"

on a 32-bit kernel, base will overflow when try to do PAGE_SHIFT,
and highest_addr will always less 4G.

So use pfn instead of address to avoid the overflow when more than
4g RAM is installed on a 32-bit kernel.

Many thanks to Pavel Emelyanov for reporting and testing it.

Bisected-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>
Tested-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-02-06 22:39:45 +01:00
..
boot x86: rename LARGE_PAGE_SIZE to PMD_PAGE_SIZE 2008-02-04 16:48:08 +01:00
configs x86: Set CFQ as default in 32-bit defconfig 2008-01-30 13:32:49 +01:00
crypto
ia32 timerfd: wire the new timerfd API to the x86 family 2008-02-05 09:44:07 -08:00
kernel x86: fix mttr trimming 2008-02-06 22:39:45 +01:00
kvm kvm: i386 fix 2008-02-05 09:44:06 -08:00
lguest Merge git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus 2008-01-31 09:35:32 +11:00
lib iommu sg: kill __clear_bit_string and find_next_zero_string 2008-02-05 09:44:11 -08:00
mach-default
mach-es7000
mach-generic
mach-rdc321x x86: add support for the RDC R-321x SoC 2008-01-30 13:33:36 +01:00
mach-visws x86: cleanup mpspec variants 2008-01-30 13:30:35 +01:00
mach-voyager x86: convert TSC disabling to generic cpuid disable bitmap 2008-01-30 13:33:20 +01:00
math-emu x86: arch/x86/math-emu/errors.c: fix printk warnings 2008-01-30 13:32:13 +01:00
mm x86: delay CPA self-test and repeat it 2008-02-06 22:39:45 +01:00
oprofile x86: rename stack_pointer to kernel_trap_sp 2008-01-30 13:33:16 +01:00
pci intel-agp: add chipset flushing support 2008-02-05 14:33:32 +10:00
power x86: make __{save,restore}_processor_state static 2008-01-30 13:31:23 +01:00
vdso x86: add vdso32-int80-syms.lds to .gitignore 2008-01-30 13:33:24 +01:00
video
xen x86: return the page table level in lookup_address() 2008-01-30 13:33:43 +01:00
Kconfig iommu sg: x86: convert gart IOMMU to use the IOMMU helper 2008-02-05 09:44:11 -08:00
Kconfig.cpu x86: reduce CONFIG_X86_PPRO_FENCE bloat 2008-01-30 13:32:31 +01:00
Kconfig.debug x86: delay CPA self-test and repeat it 2008-02-06 22:39:45 +01:00
Makefile x86: define OBJCOPYFLAGS explicitly for each target. 2008-02-04 16:47:56 +01:00
Makefile_32.cpu