summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLe Ma <le.ma@amd.com>2021-07-20 17:16:46 +0800
committerAlex Deucher <alexander.deucher@amd.com>2023-03-07 14:21:56 -0500
commit4c93c62e77467fd5e9a9fcfd708a50b23a9951e3 (patch)
treecde045d2c8aba77b915c812f1b71897e709aa762 /drivers
parent2b396e75be74078640becb36ba8c01977bf1e0be (diff)
downloadlinux-stable-4c93c62e77467fd5e9a9fcfd708a50b23a9951e3.tar.gz
linux-stable-4c93c62e77467fd5e9a9fcfd708a50b23a9951e3.tar.bz2
linux-stable-4c93c62e77467fd5e9a9fcfd708a50b23a9951e3.zip
drm/amdgpu: skip ih2 rb allocation for IH 4.4.2
No ih2 hardware on IH 4.4.2. Signed-off-by: Le Ma <le.ma@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/vega20_ih.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vega20_ih.c b/drivers/gpu/drm/amd/amdgpu/vega20_ih.c
index 44bfa233487a..827e2768f867 100644
--- a/drivers/gpu/drm/amd/amdgpu/vega20_ih.c
+++ b/drivers/gpu/drm/amd/amdgpu/vega20_ih.c
@@ -552,12 +552,14 @@ static int vega20_ih_sw_init(void *handle)
adev->irq.ih1.use_doorbell = true;
adev->irq.ih1.doorbell_index = (adev->doorbell_index.ih + 1) << 1;
- r = amdgpu_ih_ring_init(adev, &adev->irq.ih2, PAGE_SIZE, true);
- if (r)
- return r;
+ if (adev->ip_versions[OSSSYS_HWIP][0] != IP_VERSION(4, 4, 2)) {
+ r = amdgpu_ih_ring_init(adev, &adev->irq.ih2, PAGE_SIZE, true);
+ if (r)
+ return r;
- adev->irq.ih2.use_doorbell = true;
- adev->irq.ih2.doorbell_index = (adev->doorbell_index.ih + 2) << 1;
+ adev->irq.ih2.use_doorbell = true;
+ adev->irq.ih2.doorbell_index = (adev->doorbell_index.ih + 2) << 1;
+ }
/* initialize ih control registers offset */
vega20_ih_init_register_offset(adev);