diff options
author | Hawking Zhang <Hawking.Zhang@amd.com> | 2020-12-01 23:20:55 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-12-23 15:04:44 -0500 |
commit | a362976bf20957ef3bd74b2b3b9fd2d5a44fbb55 (patch) | |
tree | fd3630a9532863e77756f7679abec9acf83616f6 /drivers | |
parent | 1ce6940e2a0a0a5ace879c2cb520bb02cb440dcd (diff) | |
download | linux-stable-a362976bf20957ef3bd74b2b3b9fd2d5a44fbb55.tar.gz linux-stable-a362976bf20957ef3bd74b2b3b9fd2d5a44fbb55.tar.bz2 linux-stable-a362976bf20957ef3bd74b2b3b9fd2d5a44fbb55.zip |
drm/amdgpu: switch to ih_init_register_offset for navi10
Initialize ih control registers offset through helper
function navi10_ih_init_register_offset.
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Dennis Li <Dennis.Li@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/navi10_ih.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/navi10_ih.c b/drivers/gpu/drm/amd/amdgpu/navi10_ih.c index 786f15f829e9..35bd6d210135 100644 --- a/drivers/gpu/drm/amd/amdgpu/navi10_ih.c +++ b/drivers/gpu/drm/amd/amdgpu/navi10_ih.c @@ -847,6 +847,9 @@ static int navi10_ih_sw_init(void *handle) (adev->doorbell_index.ih + 2) << 1; } + /* initialize ih control registers offset */ + navi10_ih_init_register_offset(adev); + r = amdgpu_ih_ring_init(adev, &adev->irq.ih_soft, PAGE_SIZE, true); if (r) return r; |