diff options
author | Lu Baolu <[email protected]> | 2020-08-28 08:06:15 +0800 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2020-09-04 11:39:21 +0200 |
commit | 6e4e9ec65078093165463c13d4eb92b3e8d7b2e8 (patch) | |
tree | e114b3fced2821373fcbc6e08f19aa71c5db007d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 365d2a23663711c32e778c9c18b07163f9193925 (diff) |
iommu/vt-d: Serialize IOMMU GCMD register modifications
The VT-d spec requires (10.4.4 Global Command Register, GCMD_REG General
Description) that:
If multiple control fields in this register need to be modified, software
must serialize the modifications through multiple writes to this register.
However, in irq_remapping.c, modifications of IRE and CFI are done in one
write. We need to do two separate writes with STS checking after each. It
also checks the status register before writing command register to avoid
unnecessary register write.
Fixes: af8d102f999a4 ("x86/intel/irq_remapping: Clean up x2apic opt-out security warning mess")
Signed-off-by: Lu Baolu <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Jacob Pan <[email protected]>
Cc: Kevin Tian <[email protected]>
Cc: Ashok Raj <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions