[PATCH] drm/amdgpu/vcn: update vcn5 enc/dec capabilities

2024-05-15 Thread Ruijing Dong
Update the capabilities for supporting 8k encoding/decoding. Signed-off-by: Ruijing Dong --- drivers/gpu/drm/amd/amdgpu/soc24.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/soc24.c b/drivers/gpu/drm/amd/amdgpu/soc24.c index

[PATCH] drm/amdgpu/vcn: update vcn4 fw shared data structure

2022-09-22 Thread Ruijing Dong
update VF_RB_SETUP_FLAG, add SMU_DPM_INTERFACE_FLAG, and corresponding change in VCN4. Signed-off-by: Ruijing Dong --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | 8 +++- drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c | 4 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers

[PATCH v5] drm/amdgpu: add comment to HW_IP_VCN_ENC type

2022-07-18 Thread Ruijing Dong
>From VCN4, AMDGPU_HW_IP_VCN_ENC is re-used to support both encoding and decoding jobs. link: https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/245/commits Reviewed-by: Leo Liu Signed-off-by: Ruijing Dong --- include/uapi/drm/amdgpu_drm.h | 4 1 file changed, 4 insertions(+) d

[PATCH v4] drm/amdgpu: add HW_IP_VCN_UNIFIED type

2022-07-16 Thread Ruijing Dong
>From VCN4, AMDGPU_HW_IP_VCN_UNIFIED is used to support both encoding and decoding jobs, it re-uses the same queue number of AMDGPU_HW_IP_VCN_ENC. link: https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/245/commits Signed-off-by: Ruijing Dong --- include/uapi/drm/amdgpu_drm.h

[PATCH v3] drm/amdgpu: add comments to HW_IP_VCN_ENC

2022-07-16 Thread Ruijing Dong
>From VCN4, HW_IP_VCN_ENC will be used as unified queue, and support both encoding and decoding jobs, HW_IP_VCN_DEC is retired from VCN4. link: https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/245/commits Signed-off-by: Ruijing Dong --- include/uapi/drm/amdgpu_drm.h | 7 +++ 1 f

[PATCH v2] drm/amdgpu: add HW_IP_VCN_UNIFIED type

2022-07-16 Thread Ruijing Dong
Define HW_IP_VCN_UNIFIED type the same as HW_IP_VCN_ENC. VCN4 support for libdrm needs a new definition for the unified queue, so that it can align to the kernel. link: https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/245/commits Signed-off-by: Ruijing Dong --- include/uapi/drm

[PATCH] drm/amdgpu: align between libdrm and drm api

2022-07-14 Thread Ruijing Dong
define HW_IP_VCN_UNIFIED the same as HW_IP_VCN_ENC Signed-off-by: Ruijing Dong --- include/uapi/drm/amdgpu_drm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/drm/amdgpu_drm.h b/include/uapi/drm/amdgpu_drm.h index 18d3246d636e..fe33db8441bc 100644 --- a/include/uapi/drm

[PATCH] drm/amdgpu/vcn: fix no previous prototype warning

2022-06-22 Thread Ruijing Dong
Declare 'static', as the function is not indended to be used outside of this translation unit. Fixes: 748483dbc215 ("drm/amdgpu/vcn: add unified queue ib test") Reported-by: kernel test robot Signed-off-by: Ruijing Dong --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 2 +- 1 file

[PATCH] drm/amdgpu/vcn: adjust unified queue code format

2022-06-14 Thread Ruijing Dong
Fixed some errors and warnings found by checkpatch.pl. Signed-off-by: Ruijing Dong --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 12 ++-- drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c | 8 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH 2/2] drm/amdgpu/vcn: support unified queue only in vcn4

2022-06-07 Thread Ruijing Dong
- remove multiple queue support. - add unified queue related functions. Signed-off-by: Ruijing Dong --- drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c | 563 +++--- 1 file changed, 140 insertions(+), 423 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c b/drivers/gpu

[PATCH 1/2] drm/amdgpu/vcn: add unified queue ib test

2022-06-07 Thread Ruijing Dong
- add unified queue headers - add unified queue ib tests. Signed-off-by: Ruijing Dong --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 102 +++- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | 1 + 2 files changed, 100 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd

[PATCH 2/2] drm/amdgpu/vcn: Add vcn firmware log

2022-03-02 Thread Ruijing Dong
vcn fwlog is for debugging purpose only, by default, it is disabled. Signed-off-by: Ruijing Dong --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 3 + drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 10 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 8 ++ drivers/gpu/drm/amd/amdgpu

[PATCH 1/2] drm/amdgpu/vcn: Update fw shared data structure

2022-03-02 Thread Ruijing Dong
Add fw log in fw shared data structure. Signed-off-by: Ruijing Dong --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 14 - drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | 26 +++-- drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c | 18 - drivers/gpu/drm/amd/amdgpu