]> Git Repo - u-boot.git/commit
x86: mtrr: Do not clear the unused ones in mtrr_commit()
authorBin Meng <[email protected]>
Sat, 31 Jul 2021 08:45:24 +0000 (16:45 +0800)
committerBin Meng <[email protected]>
Mon, 2 Aug 2021 07:11:40 +0000 (15:11 +0800)
commit596bd0589ad8ee1df78133af740f1d29b235fb66
tree40d2941f1b7e1d4a3aa3eaecae547b9156f937e8
parentc79cbb5952068d9f05e4bcc7bdbbc8957fe35c68
x86: mtrr: Do not clear the unused ones in mtrr_commit()

Current mtrr_commit() logic assumes that MTRR MSRs are programmed
consecutively from index 0 to its maximum number, and whenever it
detects an unused one, it clears all other MTRRs starting from that
one. However this may not always be the case.

In fact, the clear is not much helpful because these MTRRs come out
of reset as disabled already. Drop the clear codes.

Signed-off-by: Bin Meng <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Tested on chromebook_coral, chromebook_samus, chromebook_link, minnowmax
Tested-by: Simon Glass <[email protected]>
arch/x86/cpu/mtrr.c
This page took 0.036576 seconds and 4 git commands to generate.