We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff48f6d commit 23f10a5Copy full SHA for 23f10a5
drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c
@@ -187,14 +187,14 @@ static int jpeg_v2_5_hw_init(void *handle)
187
static int jpeg_v2_5_hw_fini(void *handle)
188
{
189
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
190
- struct amdgpu_ring *ring;
191
int i;
192
+ cancel_delayed_work_sync(&adev->vcn.idle_work);
193
+
194
for (i = 0; i < adev->jpeg.num_jpeg_inst; ++i) {
195
if (adev->jpeg.harvest_config & (1 << i))
196
continue;
197
- ring = &adev->jpeg.inst[i].ring_dec;
198
if (adev->jpeg.cur_state != AMD_PG_STATE_GATE &&
199
RREG32_SOC15(JPEG, i, mmUVD_JRBC_STATUS))
200
jpeg_v2_5_set_powergating_state(adev, AMD_PG_STATE_GATE);
0 commit comments