diff options
| author | 2020-10-31 18:38:15 +0100 | |
|---|---|---|
| committer | 2020-11-24 12:06:38 -0500 | |
| commit | 26f32a377eeddc5af24821b1ef3a3a8de7a80211 (patch) | |
| tree | 4d3cf40eb491137819f4b2cd152bfb46e310e698 /drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h | |
| parent | drm/amdgpu: cleanup gmc_v10_0_process_interrupt a bit (diff) | |
| download | wireguard-linux-26f32a377eeddc5af24821b1ef3a3a8de7a80211.tar.xz wireguard-linux-26f32a377eeddc5af24821b1ef3a3a8de7a80211.zip | |
drm/amdgpu: add infrastructure for soft IH ring
Add a soft IH ring implementation similar to the hardware IH1/2.
This can be used if the hardware delegation of interrupts to IH1/2
doesn't work for some reason.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h index 4e0bb645176d..3c9cfe7eecff 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h @@ -72,6 +72,8 @@ struct amdgpu_ih_funcs { int amdgpu_ih_ring_init(struct amdgpu_device *adev, struct amdgpu_ih_ring *ih, unsigned ring_size, bool use_bus_addr); void amdgpu_ih_ring_fini(struct amdgpu_device *adev, struct amdgpu_ih_ring *ih); +void amdgpu_ih_ring_write(struct amdgpu_ih_ring *ih, const uint32_t *iv, + unsigned int num_dw); int amdgpu_ih_process(struct amdgpu_device *adev, struct amdgpu_ih_ring *ih); #endif |
