Re: [PATCH 2/7] x86: mtrr: Do not clear the unused ones in mtrr_commit()

2021-08-01 Thread Bin Meng
On Mon, Aug 2, 2021 at 3:19 AM Simon Glass wrote: > > On Sat, 31 Jul 2021 at 02:45, Bin Meng wrote: > > > > 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

Re: [PATCH 2/7] x86: mtrr: Do not clear the unused ones in mtrr_commit()

2021-08-01 Thread Simon Glass
On Sat, 31 Jul 2021 at 02:45, Bin Meng wrote: > > 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 ca

[PATCH 2/7] x86: mtrr: Do not clear the unused ones in mtrr_commit()

2021-07-31 Thread Bin Meng
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