Patch "drm/amdkfd: fix resume error when iommu disabled in Picasso" has been added to the 5.14-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

    drm/amdkfd: fix resume error when iommu disabled in Picasso

to the 5.14-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:
     drm-amdkfd-fix-resume-error-when-iommu-disabled-in-p.patch
and it can be found in the queue-5.14 subdirectory.

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



commit bae50eee2921fab17fa6045686c2cf4079a7f9a9
Author: Yifan Zhang <yifan1.zhang@xxxxxxx>
Date:   Mon Oct 11 20:42:31 2021 +0800

    drm/amdkfd: fix resume error when iommu disabled in Picasso
    
    [ Upstream commit 6f4b590aae217da16cfa44039a2abcfb209137ab ]
    
    When IOMMU disabled in sbios and kfd in iommuv2 path,
    IOMMU resume failure blocks system resume. Don't allow kfd to
    use iommu v2 when iommu is disabled.
    
    Reported-by: youling <youling257@xxxxxxxxx>
    Tested-by: youling <youling257@xxxxxxxxx>
    Signed-off-by: Yifan Zhang <yifan1.zhang@xxxxxxx>
    Reviewed-by: James Zhu <James.Zhu@xxxxxxx>
    Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device.c b/drivers/gpu/drm/amd/amdkfd/kfd_device.c
index ef64fb8f1bbf5..900ea693c71c6 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_device.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_device.c
@@ -867,6 +867,7 @@ bool kgd2kfd_device_init(struct kfd_dev *kfd,
 	kfd_double_confirm_iommu_support(kfd);
 
 	if (kfd_iommu_device_init(kfd)) {
+		kfd->use_iommu_v2 = false;
 		dev_err(kfd_device, "Error initializing iommuv2\n");
 		goto device_iommu_error;
 	}



[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