Patch "iommu/vt-d: Fix status code for Allocate/Free PASID command" has been added to the 5.10-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 status code for Allocate/Free PASID command

to the 5.10-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-status-code-for-allocate-free-pasid-c.patch
and it can be found in the queue-5.10 subdirectory.

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



commit 566ae64d8ccc82ffd825266270927bf545a7fc96
Author: Zenghui Yu <yuzenghui@xxxxxxxxxx>
Date:   Sat Feb 27 15:39:09 2021 +0800

    iommu/vt-d: Fix status code for Allocate/Free PASID command
    
    [ Upstream commit 444d66a23c1f1e4c4d12aed4812681d0ad835d60 ]
    
    As per Intel vt-d spec, Rev 3.0 (section 10.4.45 "Virtual Command Response
    Register"), the status code of "No PASID available" error in response to
    the Allocate PASID command is 2, not 1. The same for "Invalid PASID" error
    in response to the Free PASID command.
    
    We will otherwise see confusing kernel log under the command failure from
    guest side. Fix it.
    
    Fixes: 24f27d32ab6b ("iommu/vt-d: Enlightened PASID allocation")
    Signed-off-by: Zenghui Yu <yuzenghui@xxxxxxxxxx>
    Acked-by: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20210227073909.432-1-yuzenghui@xxxxxxxxxx
    Signed-off-by: Joerg Roedel <jroedel@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/iommu/intel/pasid.h b/drivers/iommu/intel/pasid.h
index 97dfcffbf495..444c0bec221a 100644
--- a/drivers/iommu/intel/pasid.h
+++ b/drivers/iommu/intel/pasid.h
@@ -30,8 +30,8 @@
 #define VCMD_VRSP_IP			0x1
 #define VCMD_VRSP_SC(e)			(((e) >> 1) & 0x3)
 #define VCMD_VRSP_SC_SUCCESS		0
-#define VCMD_VRSP_SC_NO_PASID_AVAIL	1
-#define VCMD_VRSP_SC_INVALID_PASID	1
+#define VCMD_VRSP_SC_NO_PASID_AVAIL	2
+#define VCMD_VRSP_SC_INVALID_PASID	2
 #define VCMD_VRSP_RESULT_PASID(e)	(((e) >> 8) & 0xfffff)
 #define VCMD_CMD_OPERAND(e)		((e) << 8)
 /*



[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