Patch "iommu/sun50i: Remove IOMMU_DOMAIN_IDENTITY" has been added to the 5.15-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/sun50i: Remove IOMMU_DOMAIN_IDENTITY

to the 5.15-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-sun50i-remove-iommu_domain_identity.patch
and it can be found in the queue-5.15 subdirectory.

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



commit 76bbba12ca6f0846e06e23480e4c134134c4fc6c
Author: Jason Gunthorpe <jgg@xxxxxxxx>
Date:   Mon Nov 28 10:06:28 2022 -0400

    iommu/sun50i: Remove IOMMU_DOMAIN_IDENTITY
    
    [ Upstream commit ef5bb8e7a7127218f826b9ccdf7508e7a339f4c2 ]
    
    This driver treats IOMMU_DOMAIN_IDENTITY the same as UNMANAGED, which
    cannot possibly be correct.
    
    UNMANAGED domains are required to start out blocking all DMAs. This seems
    to be what this driver does as it allocates a first level 'dt' for the IO
    page table that is 0 filled.
    
    Thus UNMANAGED looks like a working IO page table, and so IDENTITY must be
    a mistake. Remove it.
    
    Fixes: 4100b8c229b3 ("iommu: Add Allwinner H6 IOMMU driver")
    Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxx>
    Reviewed-by: Robin Murphy <robin.murphy@xxxxxxx>
    Link: https://lore.kernel.org/r/0-v1-97f0adf27b5e+1f0-s50_identity_jgg@xxxxxxxxxx
    Signed-off-by: Joerg Roedel <jroedel@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/iommu/sun50i-iommu.c b/drivers/iommu/sun50i-iommu.c
index ece3d4b4d7ca..ed3574195599 100644
--- a/drivers/iommu/sun50i-iommu.c
+++ b/drivers/iommu/sun50i-iommu.c
@@ -602,7 +602,6 @@ static struct iommu_domain *sun50i_iommu_domain_alloc(unsigned type)
 	struct sun50i_iommu_domain *sun50i_domain;
 
 	if (type != IOMMU_DOMAIN_DMA &&
-	    type != IOMMU_DOMAIN_IDENTITY &&
 	    type != IOMMU_DOMAIN_UNMANAGED)
 		return NULL;
 



[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