diff options
| author | Josh Poimboeuf <[email protected]> | 2024-04-11 05:40:46 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2024-04-11 08:30:33 +0000 |
| commit | cb2db5bb04d7f778fbc1a1ea2507aab436f1bff3 (patch) | |
| tree | c5bb43333f8292d9e7be5e2db8158e33e143be21 /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | |
| parent | x86/bugs: Fix BHI documentation (diff) | |
| download | kernel-cb2db5bb04d7f778fbc1a1ea2507aab436f1bff3.tar.gz kernel-cb2db5bb04d7f778fbc1a1ea2507aab436f1bff3.zip | |
x86/bugs: Cache the value of MSR_IA32_ARCH_CAPABILITIES
There's no need to keep reading MSR_IA32_ARCH_CAPABILITIES over and
over. It's even read in the BHI sysfs function which is a big no-no.
Just read it once and cache it.
Fixes: ec9404e40e8f ("x86/bhi: Add BHI mitigation knob")
Signed-off-by: Josh Poimboeuf <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Reviewed-by: Nikolay Borisov <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Sean Christopherson <[email protected]>
Link: https://lore.kernel.org/r/9592a18a814368e75f8f4b9d74d3883aa4fd1eaf.1712813475.git.jpoimboe@kernel.org
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
0 files changed, 0 insertions, 0 deletions
