drm/amdgpu/jpeg4.0.3: use num_jpeg_inst for SR-IOV
Subsystems (2)
Alex Deucher
maintainerPATCH 1/2 drm/amdgpu/jpeg4.0.3: use num_jpeg_inst for SR-IOV
They should be the same, but use the proper variable.
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c +1 -1
@@ -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 ;
Signature · 1 line
2.47.1
Alex Deucher
maintainerPATCH 2/2 drm/amdgpu/jpeg5.0.1: use num_jpeg_inst for SR-IOV
They should be the same, but use the proper variable.
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c +1 -1
@@ -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 ;
Signature · 1 line
2.47.1
RE: [PATCH 2/2] drm/amdgpu/jpeg5.0.1: use num_jpeg_inst for SR-IOV
[AMD Official Use Only - AMD Internal Distribution Only]
The series is:
Reviewed-by Ruijing Dong <[email protected]>
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: Tuesday, December 10, 2024 4:47 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>
Subject: [PATCH 2/2] drm/amdgpu/jpeg5.0.1: use num_jpeg_inst for SR-IOV
They should be the same, but use the proper variable.
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c +1 -1
@@ -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 ;
--
2.47.1