mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
drm/amdgpu/jpeg5.0.1: use num_jpeg_inst for SR-IOV
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>
This commit is contained in:
parent
f53758bc34
commit
e70ba46795
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue