drm/amdkfd: fix boot failure when iommu is disabled in Picasso.
Subsystems (4)
Alex Deucher
maintainerPATCH 1/1 drm/amdkfd: fix boot failure when iommu is disabled in Picasso.
From: Yifan Zhang <[email protected]>
When IOMMU disabled in sbios and kfd in iommuv2 path, iommuv2 init will fail. But this failure should not block amdgpu driver init.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ---- drivers/gpu/drm/amd/amdkfd/kfd_device.c | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0 -4
@@ -2380,10 +2380,6 @@ static int amdgpu_device_ip_init(struct amdgpu_device *adev)if (!adev->gmc.xgmi.pending_reset)amdgpu_amdkfd_device_init (adev); - r =amdgpu_amdkfd_resume_iommu (adev); -if (r) - goto init_failed; -amdgpu_fru_get_product_info (adev); init_failed:
drivers/gpu/drm/amd/amdkfd/kfd_device.c +3 -0
@@ -875,6 +875,9 @@ bool kgd2kfd_device_init(struct kfd_dev *kfd,svm_migrate_init ((struct amdgpu_device *)kfd->kgd); +if (kgd2kfd_resume_iommu (kfd)) + goto device_iommu_error; +if (kfd_resume (kfd)) goto kfd_resume_error;
Signature · 1 line
2.31.1
Greg KH
maintainerQuoted 14 lines · Alex Deucher
From: Yifan Zhang <[email protected]>
When IOMMU disabled in sbios and kfd in iommuv2 path, iommuv2 init will fail. But this failure should not block amdgpu driver init.
Reported-by youling <[email protected]>Tested-by youling <[email protected]>Signed-off-by Yifan Zhang <[email protected]>Reviewed-by James Zhu <[email protected]>Signed-off-by Alex Deucher <[email protected]>(cherry picked from commit afd18180c07026f94a80ff024acef5f4159084a4)Cc [email protected] # 5.14.x
Quoted 4 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ---- drivers/gpu/drm/amd/amdkfd/kfd_device.c | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-)
Now queued up, thanks.
greg k-h
Deucher, Alexander
maintainer[Public]
Quoted 57 lines
-----Original Message-----
From: Greg KH <[email protected]>
Sent: Wednesday, November 3, 2021 1:47 PM
To: Deucher, Alexander <[email protected]>
Cc: [email protected]; Zhang, Yifan <[email protected]>; youling <[email protected]>; Zhu, James <[email protected]>
Subject: Re: [PATCH] drm/amdkfd: fix boot failure when iommu is disabled in Picasso.Quoted 7 lines · Alex Deucher
From: Yifan Zhang <[email protected]>
When IOMMU disabled in sbios and kfd in iommuv2 path, iommuv2 init will fail. But this failure should not block amdgpu driver init.
Bug:
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugz
Quoted 1 line
illa.kernel.org%2Fshow_bug.cgi%3Fid%3D214859&data=04%7C01%7Cal exan
Quoted 1 line
der.deucher%40amd.com%7C995f91a70fdd40d87e4908d99ef1ffb9%7C3dd89 61fe48
Quoted 1 line
84e608e11a82d994e183d%7C0%7C0%7C637715584500181786%7CUnknown% 7CTWFpbGZ
Quoted 1 line
sb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6M n0%3
Quoted 1 line
D%7C1000&sdata=J9BXIQq57fr%2BfvFHNkrPYps0M7JaFzq4mTh3dMNsk Xw%3D&am
Quoted 4 lines
p;reserved=0
Bug:
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitl
ab.freedesktop.org%2Fdrm%2Famd%2F-%2Fissues%2F1770&data=04%7C01%7C
Quoted 1 line
alexander.deucher%40amd.com%7C995f91a70fdd40d87e4908d99ef1ffb9%7 C3dd89
Quoted 1 line
61fe4884e608e11a82d994e183d%7C0%7C0%7C637715584500181786%7CUnkn own%7CT
Quoted 1 line
WFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLC JXVCI
Quoted 1 line
6Mn0%3D%7C1000&sdata=OTO7kY60xizpZ0uHUn56OcZG0OzzUoytRnv QJfFCABg%3
Quoted 6 lines
D&reserved=0
Reported-by youling <[email protected]>Tested-by youling <[email protected]>Signed-off-by Yifan Zhang <[email protected]>Reviewed-by James Zhu <[email protected]>Signed-off-by Alex Deucher <[email protected]> (cherrypicked
Quoted 8 lines
Quoted 6 lines
from commit
afd18180c07026f94a80ff024acef5f4159084a4)
Cc: [email protected] # 5.14.x--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ---- drivers/gpu/drm/amd/amdkfd/kfd_device.c | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-)Now queued up, thanks.
Thanks. This should go to 5.15.x as well. I'm not sure if 5.15.x stable is open yet.
Alex
Quoted 2 lines
greg k-h
Greg KH
maintainerQuoted 66 lines · Alexander
[Public]
Quoted 64 lines
-----Original Message-----
From: Greg KH <[email protected]>
Sent: Wednesday, November 3, 2021 1:47 PM
To: Deucher, Alexander <[email protected]>
Cc: [email protected]; Zhang, Yifan <[email protected]>; youling <[email protected]>; Zhu, James <[email protected]>
Subject: Re: [PATCH] drm/amdkfd: fix boot failure when iommu is disabled in Picasso.Quoted 7 lines · Alex Deucher
From: Yifan Zhang <[email protected]>
When IOMMU disabled in sbios and kfd in iommuv2 path, iommuv2 init will fail. But this failure should not block amdgpu driver init.
Bug:
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugz
Quoted 1 line
illa.kernel.org%2Fshow_bug.cgi%3Fid%3D214859&data=04%7C01%7Cal exan
Quoted 1 line
der.deucher%40amd.com%7C995f91a70fdd40d87e4908d99ef1ffb9%7C3dd89 61fe48
Quoted 1 line
84e608e11a82d994e183d%7C0%7C0%7C637715584500181786%7CUnknown% 7CTWFpbGZ
Quoted 1 line
sb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6M n0%3
Quoted 1 line
D%7C1000&sdata=J9BXIQq57fr%2BfvFHNkrPYps0M7JaFzq4mTh3dMNsk Xw%3D&am
Quoted 4 lines
p;reserved=0
Bug:
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitl
ab.freedesktop.org%2Fdrm%2Famd%2F-%2Fissues%2F1770&data=04%7C01%7C
Quoted 1 line
alexander.deucher%40amd.com%7C995f91a70fdd40d87e4908d99ef1ffb9%7 C3dd89
Quoted 1 line
61fe4884e608e11a82d994e183d%7C0%7C0%7C637715584500181786%7CUnkn own%7CT
Quoted 1 line
WFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLC JXVCI
Quoted 1 line
6Mn0%3D%7C1000&sdata=OTO7kY60xizpZ0uHUn56OcZG0OzzUoytRnv QJfFCABg%3
Quoted 6 lines
D&reserved=0
Reported-by youling <[email protected]>Tested-by youling <[email protected]>Signed-off-by Yifan Zhang <[email protected]>Reviewed-by James Zhu <[email protected]>Signed-off-by Alex Deucher <[email protected]> (cherrypicked
Quoted 6 lines
from commit
afd18180c07026f94a80ff024acef5f4159084a4)
Cc: [email protected] # 5.14.x--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ---- drivers/gpu/drm/amd/amdkfd/kfd_device.c | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-)
Quoted 3 lines
Quoted 1 line
Now queued up, thanks.
Thanks. This should go to 5.15.x as well. I'm not sure if 5.15.x stable is open yet.
It already got added there as well :)
thanks,
greg k-h