Patch "iommu/vt-d: Fix a bug for PDP check in prq_event_thread" has been added to the 5.4-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    iommu/vt-d: Fix a bug for PDP check in prq_event_thread

to the 5.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     iommu-vt-d-fix-a-bug-for-pdp-check-in-prq_event_thre.patch
and it can be found in the queue-5.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 60c4f423ad0cbe03a285a5c0b6be04ce26e87a26
Author: Liu, Yi L <yi.l.liu@xxxxxxxxx>
Date:   Fri Oct 30 10:37:24 2020 +0800

    iommu/vt-d: Fix a bug for PDP check in prq_event_thread
    
    [ Upstream commit 71cd8e2d16703a9df5c86a9e19f4cba99316cc53 ]
    
    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: 5b438f4ba315 ("iommu/vt-d: Support page request in scalable mode")
    Signed-off-by: Liu, Yi L <yi.l.liu@xxxxxxxxx>
    Signed-off-by: Yi Sun <yi.y.sun@xxxxxxxxxxxxxxx>
    Acked-by: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/1604025444-6954-3-git-send-email-yi.y.sun@xxxxxxxxxxxxxxx
    Signed-off-by: Joerg Roedel <jroedel@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/iommu/intel-svm.c b/drivers/iommu/intel-svm.c
index 1d3816cd65d57..ec69a99b99bab 100644
--- a/drivers/iommu/intel-svm.c
+++ b/drivers/iommu/intel-svm.c
@@ -646,7 +646,7 @@ static irqreturn_t prq_event_thread(int irq, void *d)
 			resp.qw0 = QI_PGRP_PASID(req->pasid) |
 				QI_PGRP_DID(req->rid) |
 				QI_PGRP_PASID_P(req->pasid_present) |
-				QI_PGRP_PDP(req->pasid_present) |
+				QI_PGRP_PDP(req->priv_data_present) |
 				QI_PGRP_RESP_CODE(result) |
 				QI_PGRP_RESP_TYPE;
 			resp.qw1 = QI_PGRP_IDX(req->prg_index) |



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux