diff options
author | Yinghai Lu <[email protected]> | 2009-05-06 21:36:16 -0700 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2009-05-11 11:40:43 +0200 |
commit | 917a0153621572e88aeb2d5df025ad2e81027287 (patch) | |
tree | 4a1f06f9820f10d714814a9fa86f2094e8eb9c4a /net/lapb/lapb_iface.c | |
parent | b74d446f1f337e3fe906169a3266cb65ffa4179e (diff) |
x86: mtrr: Fix high_width computation when phys-addr is >= 44bit
found one system where cpu address line is 44bits, mtrr printout
is not right:
[ 0.000000] MTRR variable ranges enabled:
[ 0.000000] 0 base 0 00000000 mask FF0 00000000 write-back
[ 0.000000] 1 base 10 00000000 mask FFF 80000000 write-back
[ 0.000000] 2 base 0 80000000 mask FFF 80000000 uncachable
[ 0.000000] 3 base 0 7F800000 mask FFF FF800000 uncachable
Li Zefan and Frederic pointed out the high_width could be -4 some how.
It turns out when phys_addr is 44bit, size_or_mask will be
ffffffff,00000000 so ffs(size_or_mask) will be 0.
Try to check low 32 bit, to get correct high_width.
Signed-off-by: Yinghai Lu <[email protected]>
Also-analyzed-by: Frederic Weisbecker <[email protected]>
Also-analyzed-by: Li Zefan <[email protected]>
Cc: Jeremy Fitzhardinge <[email protected]>
Cc: Zhaolei <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Vegard Nossum <[email protected]>
Cc: Andrew Morton <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions