Skip to content

Commit ec53851

Browse files
committed
Merge tag 'iommu-fixes-v5.4-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu
Pull iommu fixes from Joerg Roedel: - Fix for Intel IOMMU to correct invalidation commands when in SVA mode. - Update MAINTAINERS entry for Intel IOMMU * tag 'iommu-fixes-v5.4-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu: iommu/vt-d: Fix QI_DEV_IOTLB_PFSID and QI_DEV_EIOTLB_PFSID macros MAINTAINERS: Update for INTEL IOMMU (VT-d) entry
2 parents cbb104f + 4e7120d commit ec53851

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

MAINTAINERS

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8298,11 +8298,14 @@ F: drivers/hid/intel-ish-hid/
82988298

82998299
INTEL IOMMU (VT-d)
83008300
M: David Woodhouse <[email protected]>
8301+
M: Lu Baolu <[email protected]>
83018302
8302-
T: git git://git.infradead.org/iommu-2.6.git
8303+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git
83038304
S: Supported
8304-
F: drivers/iommu/intel-iommu.c
8305+
F: drivers/iommu/dmar.c
8306+
F: drivers/iommu/intel*.[ch]
83058307
F: include/linux/intel-iommu.h
8308+
F: include/linux/intel-svm.h
83068309

83078310
INTEL IOP-ADMA DMA DRIVER
83088311
R: Dan Williams <[email protected]>

include/linux/intel-iommu.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,8 @@ enum {
336336
#define QI_DEV_IOTLB_SID(sid) ((u64)((sid) & 0xffff) << 32)
337337
#define QI_DEV_IOTLB_QDEP(qdep) (((qdep) & 0x1f) << 16)
338338
#define QI_DEV_IOTLB_ADDR(addr) ((u64)(addr) & VTD_PAGE_MASK)
339-
#define QI_DEV_IOTLB_PFSID(pfsid) (((u64)(pfsid & 0xf) << 12) | ((u64)(pfsid & 0xfff) << 52))
339+
#define QI_DEV_IOTLB_PFSID(pfsid) (((u64)(pfsid & 0xf) << 12) | \
340+
((u64)((pfsid >> 4) & 0xfff) << 52))
340341
#define QI_DEV_IOTLB_SIZE 1
341342
#define QI_DEV_IOTLB_MAX_INVS 32
342343

@@ -360,7 +361,8 @@ enum {
360361
#define QI_DEV_EIOTLB_PASID(p) (((u64)p) << 32)
361362
#define QI_DEV_EIOTLB_SID(sid) ((u64)((sid) & 0xffff) << 16)
362363
#define QI_DEV_EIOTLB_QDEP(qd) ((u64)((qd) & 0x1f) << 4)
363-
#define QI_DEV_EIOTLB_PFSID(pfsid) (((u64)(pfsid & 0xf) << 12) | ((u64)(pfsid & 0xfff) << 52))
364+
#define QI_DEV_EIOTLB_PFSID(pfsid) (((u64)(pfsid & 0xf) << 12) | \
365+
((u64)((pfsid >> 4) & 0xfff) << 52))
364366
#define QI_DEV_EIOTLB_MAX_INVS 32
365367

366368
/* Page group response descriptor QW0 */

0 commit comments

Comments
 (0)