diff options
author | Dave Airlie <airlied@redhat.com> | 2018-09-27 19:48:35 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2018-09-27 19:48:40 -0400 |
commit | 87c2ee740c07f1edae9eec8bc45cb9b32a68f323 (patch) | |
tree | 1515f53eacb86689f2f96279e51cf0053ae8a308 /drivers/gpu/drm/amd/amdgpu/tonga_ih.c | |
parent | 2de0b0a158bf423208c3898522c8fa1c1078df48 (diff) | |
parent | 6a96243056217662843694a4cbc83158d0e84403 (diff) |
Merge branch 'drm-next-4.20' of git://people.freedesktop.org/~agd5f/linux into drm-next
More new features and fixes for 4.20:
- Add dynamic powergating support for VCN on picasso
- Scheduler cleanup
- Vega20 support for KFD
- DC cleanups and bug fixes
Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Alex Deucher <alexdeucher@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180927184348.2696-1-alexander.deucher@amd.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/tonga_ih.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/tonga_ih.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/tonga_ih.c b/drivers/gpu/drm/amd/amdgpu/tonga_ih.c index 52853d8a8fdd..3abffd06b5c7 100644 --- a/drivers/gpu/drm/amd/amdgpu/tonga_ih.c +++ b/drivers/gpu/drm/amd/amdgpu/tonga_ih.c | |||
@@ -266,7 +266,7 @@ static void tonga_ih_decode_iv(struct amdgpu_device *adev, | |||
266 | dw[2] = le32_to_cpu(adev->irq.ih.ring[ring_index + 2]); | 266 | dw[2] = le32_to_cpu(adev->irq.ih.ring[ring_index + 2]); |
267 | dw[3] = le32_to_cpu(adev->irq.ih.ring[ring_index + 3]); | 267 | dw[3] = le32_to_cpu(adev->irq.ih.ring[ring_index + 3]); |
268 | 268 | ||
269 | entry->client_id = AMDGPU_IH_CLIENTID_LEGACY; | 269 | entry->client_id = AMDGPU_IRQ_CLIENTID_LEGACY; |
270 | entry->src_id = dw[0] & 0xff; | 270 | entry->src_id = dw[0] & 0xff; |
271 | entry->src_data[0] = dw[1] & 0xfffffff; | 271 | entry->src_data[0] = dw[1] & 0xfffffff; |
272 | entry->ring_id = dw[2] & 0xff; | 272 | entry->ring_id = dw[2] & 0xff; |
@@ -317,7 +317,7 @@ static int tonga_ih_sw_init(void *handle) | |||
317 | int r; | 317 | int r; |
318 | struct amdgpu_device *adev = (struct amdgpu_device *)handle; | 318 | struct amdgpu_device *adev = (struct amdgpu_device *)handle; |
319 | 319 | ||
320 | r = amdgpu_ih_ring_init(adev, 64 * 1024, true); | 320 | r = amdgpu_ih_ring_init(adev, &adev->irq.ih, 64 * 1024, true); |
321 | if (r) | 321 | if (r) |
322 | return r; | 322 | return r; |
323 | 323 | ||
@@ -334,7 +334,7 @@ static int tonga_ih_sw_fini(void *handle) | |||
334 | struct amdgpu_device *adev = (struct amdgpu_device *)handle; | 334 | struct amdgpu_device *adev = (struct amdgpu_device *)handle; |
335 | 335 | ||
336 | amdgpu_irq_fini(adev); | 336 | amdgpu_irq_fini(adev); |
337 | amdgpu_ih_ring_fini(adev); | 337 | amdgpu_ih_ring_fini(adev, &adev->irq.ih); |
338 | amdgpu_irq_remove_domain(adev); | 338 | amdgpu_irq_remove_domain(adev); |
339 | 339 | ||
340 | return 0; | 340 | return 0; |
@@ -513,8 +513,7 @@ static const struct amdgpu_ih_funcs tonga_ih_funcs = { | |||
513 | 513 | ||
514 | static void tonga_ih_set_interrupt_funcs(struct amdgpu_device *adev) | 514 | static void tonga_ih_set_interrupt_funcs(struct amdgpu_device *adev) |
515 | { | 515 | { |
516 | if (adev->irq.ih_funcs == NULL) | 516 | adev->irq.ih_funcs = &tonga_ih_funcs; |
517 | adev->irq.ih_funcs = &tonga_ih_funcs; | ||
518 | } | 517 | } |
519 | 518 | ||
520 | const struct amdgpu_ip_block_version tonga_ih_ip_block = | 519 | const struct amdgpu_ip_block_version tonga_ih_ip_block = |