From: James Zhu <James.Zhu@amd.com>
To: <stable@vger.kernel.org>
Cc: <jzhums@gmail.com>, <alexander.deucher@amd.com>,
<kolAflash@kolahilft.de>, Yifan Zhang <yifan1.zhang@amd.com>,
Sasha Levin <sashal@kernel.org>
Subject: [PATCH 4/5] drm/amdgpu: init iommu after amdkfd device init
Date: Fri, 3 Dec 2021 12:27:31 -0500 [thread overview]
Message-ID: <1638552452-4198-5-git-send-email-James.Zhu@amd.com> (raw)
In-Reply-To: <1638552452-4198-1-git-send-email-James.Zhu@amd.com>
From: Yifan Zhang <yifan1.zhang@amd.com>
[ Upstream commit 714d9e4574d54596973ee3b0624ee4a16264d700 ]
This patch is to fix clinfo failure in Raven/Picasso:
Number of platforms: 1
Platform Profile: FULL_PROFILE
Platform Version: OpenCL 2.2 AMD-APP (3364.0)
Platform Name: AMD Accelerated Parallel Processing
Platform Vendor: Advanced Micro Devices, Inc.
Platform Extensions: cl_khr_icd cl_amd_event_callback
Platform Name: AMD Accelerated Parallel Processing Number of devices: 0
Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
Reviewed-by: James Zhu <James.Zhu@amd.com>
Tested-by: James Zhu <James.Zhu@amd.com>
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 2947bde..488e574 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -2220,10 +2220,6 @@ static int amdgpu_device_ip_init(struct amdgpu_device *adev)
if (r)
goto init_failed;
- r = amdgpu_amdkfd_resume_iommu(adev);
- if (r)
- goto init_failed;
-
r = amdgpu_device_ip_hw_init_phase1(adev);
if (r)
goto init_failed;
@@ -2259,6 +2255,10 @@ static int amdgpu_device_ip_init(struct amdgpu_device *adev)
amdgpu_xgmi_add_device(adev);
amdgpu_amdkfd_device_init(adev);
+ r = amdgpu_amdkfd_resume_iommu(adev);
+ if (r)
+ goto init_failed;
+
amdgpu_fru_get_product_info(adev);
init_failed:
--
2.7.4
next prev parent reply other threads:[~2021-12-03 17:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-03 17:27 [PATCH 0/5] Bug:211277 fix backport for 5.10, 5.12 stable James Zhu
2021-12-03 17:27 ` [PATCH 1/5] drm/amdkfd: separate kfd_iommu_resume from kfd_resume James Zhu
2021-12-03 17:27 ` [PATCH 2/5] drm/amdgpu: add amdgpu_amdkfd_resume_iommu James Zhu
2021-12-03 17:27 ` [PATCH 3/5] drm/amdgpu: move iommu_resume before ip init/resume James Zhu
2021-12-03 17:27 ` James Zhu [this message]
2021-12-03 17:27 ` [PATCH 5/5] drm/amdkfd: fix boot failure when iommu is disabled in Picasso James Zhu
2021-12-05 12:45 ` Greg Kroah-Hartman
2021-12-05 12:42 ` [PATCH 0/5] Bug:211277 fix backport for 5.10, 5.12 stable Greg KH
2021-12-07 8:04 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1638552452-4198-5-git-send-email-James.Zhu@amd.com \
--to=james.zhu@amd.com \
--cc=alexander.deucher@amd.com \
--cc=jzhums@gmail.com \
--cc=kolAflash@kolahilft.de \
--cc=sashal@kernel.org \
--cc=stable@vger.kernel.org \
--cc=yifan1.zhang@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.