Skip to content

Commit 71cd8e2

Browse files
yiliu1765joergroedel
authored andcommitted
iommu/vt-d: Fix a bug for PDP check in prq_event_thread
In prq_event_thread(), the QI_PGRP_PDP is wrongly set by 'req->pasid_present' which should be replaced to 'req->priv_data_present'. Fixes: 5b438f4 ("iommu/vt-d: Support page request in scalable mode") Signed-off-by: Liu, Yi L <yi.l.liu@intel.com> Signed-off-by: Yi Sun <yi.y.sun@linux.intel.com> Acked-by: Lu Baolu <baolu.lu@linux.intel.com> Link: https://lore.kernel.org/r/1604025444-6954-3-git-send-email-yi.y.sun@linux.intel.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent eea4e29 commit 71cd8e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/iommu/intel/svm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ static irqreturn_t prq_event_thread(int irq, void *d)
10351035
resp.qw0 = QI_PGRP_PASID(req->pasid) |
10361036
QI_PGRP_DID(req->rid) |
10371037
QI_PGRP_PASID_P(req->pasid_present) |
1038-
QI_PGRP_PDP(req->pasid_present) |
1038+
QI_PGRP_PDP(req->priv_data_present) |
10391039
QI_PGRP_RESP_CODE(result) |
10401040
QI_PGRP_RESP_TYPE;
10411041
resp.qw1 = QI_PGRP_IDX(req->prg_index) |

0 commit comments

Comments
 (0)