]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu/jpeg4.0.3: use num_jpeg_inst for SR-IOV
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Dec 2024 21:28:20 +0000 (16:28 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 11 Dec 2024 22:37:23 +0000 (17:37 -0500)
They should be the same, but use the proper variable.

Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c

index fd0490934f9124d2ea4584b1c82957d69019296b..88f9771c16869c7c631325163c5e987cb6f0149e 100644 (file)
@@ -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;