diff options
author | Ravi Bangoria <ravi.bangoria@amd.com> | 2024-08-08 06:29:35 +0000 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2024-08-08 18:02:15 +0200 |
commit | 408eb7417a92c5354c7be34f7425b305dfe30ad9 (patch) | |
tree | 4b48ca92bc9691ff95683a6c994def1a20df70bb /scripts/generate_rust_analyzer.py | |
parent | 350afa8a1101f62ce31bc4ed6f69cf4b90ec4fa2 (diff) |
x86/bus_lock: Add support for AMD
Add Bus Lock Detect (called Bus Lock Trap in AMD docs) support for AMD
platforms. Bus Lock Detect is enumerated with CPUID Fn0000_0007_ECX_x0
bit [24 / BUSLOCKTRAP]. It can be enabled through MSR_IA32_DEBUGCTLMSR.
When enabled, hardware clears DR6[11] and raises a #DB exception on
occurrence of Bus Lock if CPL > 0. More detail about the feature can be
found in AMD APM[1].
[1]: AMD64 Architecture Programmer's Manual Pub. 40332, Rev. 4.07 - June
2023, Vol 2, 13.1.3.6 Bus Lock Trap
https://bugzilla.kernel.org/attachment.cgi?id=304653
Signed-off-by: Ravi Bangoria <ravi.bangoria@amd.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Link: https://lore.kernel.org/all/20240808062937.1149-3-ravi.bangoria@amd.com
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions