aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorJuergen Gross <[email protected]>2023-05-02 14:09:28 +0200
committerBorislav Petkov (AMD) <[email protected]>2023-06-01 15:04:33 +0200
commit8227f40ade2362982505f66f1614b78a3a083ec9 (patch)
tree92d10d83202c2330f63eca2a64d36c69c3ac7a67 /lib/mpi/mpi-sub-ui.c
parenta4316603534cf7f4dcd9f9f1ed170257b987cca9 (diff)
x86/mtrr: Use new cache_map in mtrr_type_lookup()
Instead of crawling through the MTRR register state, use the new cache_map for looking up the cache type(s) of a memory region. This allows now to set the uniform parameter according to the uniformity of the cache mode of the region, instead of setting it only if the complete region is mapped by a single MTRR. This now includes even the region covered by the fixed MTRR registers. Make sure uniform is always set. [ bp: Massage. ] [ jgross: Explain mtrr_type_lookup() logic. ] Signed-off-by: Juergen Gross <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Tested-by: Michael Kelley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions