Skip to content

Commit

Permalink
drm/amdgpu/jpeg5.0.1: use num_jpeg_inst for SR-IOV
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
alexdeucher committed Dec 11, 2024
1 parent f53758b commit e70ba46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ static int jpeg_v5_0_1_hw_init(struct amdgpu_ip_block *ip_block)

if (amdgpu_sriov_vf(adev)) {
/* jpeg_v5_0_1_start_sriov(adev); */
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;
Expand Down

0 comments on commit e70ba46

Please sign in to comment.