summaryrefslogtreecommitdiff
path: root/Documentation/userspace-api/media/rc/keytable.c.rst
diff options
context:
space:
mode:
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>2020-12-10 19:24:36 +0300
committerWill Deacon <will@kernel.org>2020-12-11 15:47:22 +0300
commit5ae9a046a452d60b6a6c076f6df7e3f8e34f918f (patch)
tree1bf89ebb5b48718f004f943131246e33ae49335d /Documentation/userspace-api/media/rc/keytable.c.rst
parent71fe89ceb55bc0a85121b757cc8d3fb6ff457263 (diff)
downloadlinux-5ae9a046a452d60b6a6c076f6df7e3f8e34f918f.tar.xz
iommu/amd: Add sanity check for interrupt remapping table length macros
Currently, macros related to the interrupt remapping table length are defined separately. This has resulted in an oversight in which one of the macros were missed when changing the length. To prevent this, redefine the macros to add built-in sanity check. Also, rename macros to use the name of the DTE[IntTabLen] field as specified in the AMD IOMMU specification. There is no functional change. Suggested-by: Linus Torvalds <torvalds@linux-foundation.org> Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com> Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com> Cc: Will Deacon <will@kernel.org> Cc: Jerry Snitselaar <jsnitsel@redhat.com> Cc: Joerg Roedel <joro@8bytes.org> Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com> Link: https://lore.kernel.org/r/20201210162436.126321-1-suravee.suthikulpanit@amd.com Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'Documentation/userspace-api/media/rc/keytable.c.rst')
0 files changed, 0 insertions, 0 deletions