diff options
| author | Satyajit Sahu <[email protected]> | 2021-08-27 06:11:08 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-09-01 20:55:11 +0000 |
| commit | 080e613c74bb50e6fc52cf466ff2a43cbd5a382b (patch) | |
| tree | 729b05941bab24a069902ba066318028c624a70f /drivers/gpu/drm/amd/amdgpu/vce_v3_0.c | |
| parent | drm/amd/amdgpu: add mpio to ras block (diff) | |
| download | kernel-080e613c74bb50e6fc52cf466ff2a43cbd5a382b.tar.gz kernel-080e613c74bb50e6fc52cf466ff2a43cbd5a382b.zip | |
drm/amdgpu/vce: set the priority for each ring
VCE has multiple rings. Set the proper priority level for each
ring while initializing.
Signed-off-by: Satyajit Sahu <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/vce_v3_0.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/vce_v3_0.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c index 9de66893ccd6..2a18c1e089fd 100644 --- a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c +++ b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c @@ -440,10 +440,12 @@ static int vce_v3_0_sw_init(void *handle) return r; for (i = 0; i < adev->vce.num_rings; i++) { + enum amdgpu_ring_priority_level hw_prio = amdgpu_vce_get_ring_prio(i); + ring = &adev->vce.ring[i]; sprintf(ring->name, "vce%d", i); r = amdgpu_ring_init(adev, ring, 512, &adev->vce.irq, 0, - AMDGPU_RING_PRIO_DEFAULT, NULL); + hw_prio, NULL); if (r) return r; } |
