RE: [PATCH] drm/amdgpu/nv: fix codec array for SR_IOV

2023-03-09 Thread Chen, Guchun
Acked-by: Guchun Chen 

> -Original Message-
> From: amd-gfx  On Behalf Of Alex
> Deucher
> Sent: Friday, March 10, 2023 11:14 AM
> To: Deucher, Alexander 
> Cc: Jiapeng Chong ; Abaci Robot
> ; amd-gfx@lists.freedesktop.org
> Subject: Re: [PATCH] drm/amdgpu/nv: fix codec array for SR_IOV
> 
> Ping?
> 
> On Wed, Mar 8, 2023 at 10:51 PM Alex Deucher
>  wrote:
> >
> > Copy paste error.
> >
> > Fixes: 384334120b66 ("drm/amdgpu/nv: don't expose AV1 if VCN0 is
> > harvested")
> > Reported-by: Abaci Robot 
> > Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4454
> > Cc: Jiapeng Chong 
> > Signed-off-by: Alex Deucher 
> > ---
> >  drivers/gpu/drm/amd/amdgpu/nv.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c
> > b/drivers/gpu/drm/amd/amdgpu/nv.c index 855d390c41de..22e25ca285f8
> > 100644
> > --- a/drivers/gpu/drm/amd/amdgpu/nv.c
> > +++ b/drivers/gpu/drm/amd/amdgpu/nv.c
> > @@ -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
> >


Re: [PATCH] drm/amdgpu/nv: fix codec array for SR_IOV

2023-03-09 Thread Alex Deucher
Ping?

On Wed, Mar 8, 2023 at 10:51 PM Alex Deucher  wrote:
>
> Copy paste error.
>
> Fixes: 384334120b66 ("drm/amdgpu/nv: don't expose AV1 if VCN0 is harvested")
> Reported-by: Abaci Robot 
> Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4454
> Cc: Jiapeng Chong 
> Signed-off-by: Alex Deucher 
> ---
>  drivers/gpu/drm/amd/amdgpu/nv.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c
> index 855d390c41de..22e25ca285f8 100644
> --- a/drivers/gpu/drm/amd/amdgpu/nv.c
> +++ b/drivers/gpu/drm/amd/amdgpu/nv.c
> @@ -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
>


[PATCH] drm/amdgpu/nv: fix codec array for SR_IOV

2023-03-08 Thread Alex Deucher
Copy paste error.

Fixes: 384334120b66 ("drm/amdgpu/nv: don't expose AV1 if VCN0 is harvested")
Reported-by: Abaci Robot 
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4454
Cc: Jiapeng Chong 
Signed-off-by: Alex Deucher 
---
 drivers/gpu/drm/amd/amdgpu/nv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c
index 855d390c41de..22e25ca285f8 100644
--- a/drivers/gpu/drm/amd/amdgpu/nv.c
+++ b/drivers/gpu/drm/amd/amdgpu/nv.c
@@ -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