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

"
The commit

  093af8d7f0ba3c6be1485973508584ef081e9f93
  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
..
2008-02-06 22:39:45 +01:00
2007-10-17 21:19:04 +02:00
2008-01-30 13:33:14 +01:00
2008-01-30 13:31:12 +01:00
2007-10-11 11:17:01 +02:00
2007-10-11 11:17:24 +02:00
2007-10-19 11:53:33 -07:00
2007-10-13 10:01:23 -07:00
2008-01-30 13:31:31 +01:00
2008-01-31 22:05:47 +01:00
2008-01-30 13:33:32 +01:00
2008-02-04 16:48:06 +01:00
2007-10-11 11:17:01 +02:00
2008-01-30 13:31:19 +01:00
2008-02-04 16:48:06 +01:00
2008-01-30 13:31:23 +01:00
2008-02-01 17:49:41 +01:00
2008-02-06 22:39:45 +01:00
2008-01-30 13:31:55 +01:00
2008-01-30 13:33:14 +01:00
2008-01-30 13:33:14 +01:00
2008-01-30 13:30:28 +01:00
2008-01-30 13:33:10 +01:00
2007-10-11 11:17:24 +02:00
2008-01-30 13:33:23 +01:00
2008-01-30 13:31:12 +01:00
2007-10-13 10:01:23 -07:00
2007-10-11 11:17:01 +02:00
2007-10-11 11:17:24 +02:00
2008-01-30 13:30:33 +01:00
2008-01-30 13:30:33 +01:00
2008-01-30 13:33:19 +01:00
2008-01-30 13:30:31 +01:00
2007-10-11 11:17:01 +02:00
2008-02-06 22:39:44 +01:00
2008-01-30 13:33:25 +01:00
2007-10-11 11:17:01 +02:00
2007-10-11 11:17:24 +02:00
2008-01-30 13:32:40 +01:00
2008-01-30 13:33:24 +01:00
2008-02-04 16:48:00 +01:00
2007-10-11 11:17:01 +02:00
2008-01-30 13:33:23 +01:00
2008-01-30 13:33:53 +01:00
2008-01-30 13:33:23 +01:00
2007-10-20 01:13:56 +02:00
2008-02-01 18:30:58 -05:00
2007-10-17 08:42:55 -07:00
2008-01-30 13:31:52 +01:00
2008-01-30 13:31:52 +01:00
2008-02-06 22:39:44 +01:00
2008-01-30 13:33:33 +01:00
2008-01-30 13:33:24 +01:00
2007-10-11 11:17:24 +02:00
2008-01-30 13:31:42 +01:00
2008-02-04 16:47:54 +01:00
2007-10-11 11:17:01 +02:00
2008-01-30 13:32:39 +01:00
2008-01-30 13:31:10 +01:00