diff options
| author | Alex Deucher <[email protected]> | 2024-12-10 21:28:20 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-12-11 22:37:23 +0000 |
| commit | f53758bc34bf2a64c681f9278dd57738f322d5c3 (patch) | |
| tree | 9fee6251bfd13a3a92e8de0821564aef006e5d95 /drivers/gpu/drm/amd/amdgpu | |
| parent | drm/amdgpu: add sysfs reset mask for vcn 5.0.1 (diff) | |
| download | kernel-f53758bc34bf2a64c681f9278dd57738f322d5c3.tar.gz kernel-f53758bc34bf2a64c681f9278dd57738f322d5c3.zip | |
drm/amdgpu/jpeg4.0.3: use num_jpeg_inst for SR-IOV
They should be the same, but use the proper variable.
Reviewed-by: Ruijing Dong <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c index fd0490934f91..88f9771c1686 100644 --- a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c +++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c @@ -321,7 +321,7 @@ static int jpeg_v4_0_3_hw_init(struct amdgpu_ip_block *ip_block) if (r) return r; - for (i = 0; i < adev->vcn.num_vcn_inst; ++i) { + for (i = 0; i < adev->jpeg.num_jpeg_inst; ++i) { for (j = 0; j < adev->jpeg.num_jpeg_rings; ++j) { ring = &adev->jpeg.inst[i].ring_dec[j]; ring->wptr = 0; |
