Skip to contentSkip to conversation

drm/amdgpu/nv: fix codec array for SR_IOV

PATCH In review Alex Deucher 3 participants 3 messages Mar 9, 2023 – Mar 10, 2023

Subsystems (2)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

PATCH 1/1 drm/amdgpu/nv: fix codec array for SR_IOV

Copy paste error.

Fixes 384334120b66 ("drm/amdgpu/nv: don't expose AV1 if VCN0 is harvested")
Cc Jiapeng Chong <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/nv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/nv.c +2 -2
index 855d390c41de..22e25ca285f8 100644
@@ -1055,8 +1055,8 @@ static int nv_common_late_init(void *handle)
 			amdgpu_virt_update_sriov_video_codec(adev,
 							     sriov_sc_video_codecs_encode_array,
 							     ARRAY_SIZE(sriov_sc_video_codecs_encode_array),
-							     sriov_sc_video_codecs_decode_array_vcn1,
-							     ARRAY_SIZE(sriov_sc_video_codecs_decode_array_vcn1));
+							     sriov_sc_video_codecs_decode_array_vcn0,
+							     ARRAY_SIZE(sriov_sc_video_codecs_decode_array_vcn0));
 		}
 	}
 
Signature · 1 line
2.39.2
#1 lore raw

Ping?

Quoted 30 lines · Alex Deucher

Copy paste error.

Fixes 384334120b66 ("drm/amdgpu/nv: don't expose AV1 if VCN0 is harvested")
Cc Jiapeng Chong <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/nv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/nv.c +2 -3
index 855d390c41de..22e25ca285f8 100644
@@ -1055,8 +1055,8 @@ static int nv_common_late_init(void *handle)
                        amdgpu_virt_update_sriov_video_codec(adev,
                                                             sriov_sc_video_codecs_encode_array,
                                                             ARRAY_SIZE(sriov_sc_video_codecs_encode_array),
-                                                            sriov_sc_video_codecs_decode_array_vcn1,
-                                                            ARRAY_SIZE(sriov_sc_video_codecs_decode_array_vcn1));
+                                                            sriov_sc_video_codecs_decode_array_vcn0,
+                                                            ARRAY_SIZE(sriov_sc_video_codecs_decode_array_vcn0));
                }
        }
 
--

2.39.2

Acked-by
#2 lore raw
Quoted 50 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: Friday, March 10, 2023 11:14 AM
To: Deucher, Alexander <[email protected]>
Cc: Jiapeng Chong <[email protected]>; Abaci Robot <[email protected]>; [email protected]
Subject: Re: [PATCH] drm/amdgpu/nv: fix codec array for SR_IOV

Ping?

Quoted 19 lines · Alex Deucher

Copy paste error.

Fixes 384334120b66 ("drm/amdgpu/nv: don't expose AV1 if VCN0 is

harvested")

---
 drivers/gpu/drm/amd/amdgpu/nv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/drivers/gpu/drm/amd/amdgpu/nv.c index 855d390c41de..22e25ca285f8 100644

drivers/gpu/drm/amd/amdgpu/nv.c static int nv_common_late_init(void *handle) · line 1057

Quoted 3 lines
drivers/gpu/drm/amd/amdgpu/nv.c +0 -0
@@ -1055,8 +1055,8 @@ static int nv_common_late_init(void *handle)
                        amdgpu_virt_update_sriov_video_codec(adev,
                                                             sriov_sc_video_codecs_encode_array,
 

ARRAY_SIZE(sriov_sc_video_codecs_encode_array),

drivers/gpu/drm/amd/amdgpu/nv.c static int nv_common_late_init(void *handle) · line 1058

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/nv.c +0 -1
-

sriov_sc_video_codecs_decode_array_vcn1,

drivers/gpu/drm/amd/amdgpu/nv.c static int nv_common_late_init(void *handle) · line 1059

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/nv.c +0 -1
-

ARRAY_SIZE(sriov_sc_video_codecs_decode_array_vcn1));

drivers/gpu/drm/amd/amdgpu/nv.c static int nv_common_late_init(void *handle) · line 1058

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/nv.c +1 -0
+

sriov_sc_video_codecs_decode_array_vcn0,

Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/nv.c +2 -1
+
+ ARRAY_SIZE(sriov_sc_video_codecs_decode_array_vcn0));
                }
        }
 
--

2.39.2