Sonny Jiang
736f7308d3
drm/amdgpu: fix a vcn4 boot poll bug in emulation mode
...
The return value should be set in vcn4 boot poll.
Signed-off-by: Sonny Jiang <sonny.jiang@amd.com >
Reviewed-by: James Zhu <James.Zhu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-07-28 16:28:54 -04:00
Guchun Chen
8585732baa
drm/amdgpu: use adev_to_drm for consistency
...
Keep code consistency when accessing drm_device from amdgpu driver.
Signed-off-by: Guchun Chen <guchun.chen@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-07-28 16:05:14 -04:00
Sonny Jiang
0b15205c73
drm/amdgpu: limiting AV1 to first instance on VCN4 decode
...
AV1 is only supported on first instance.
Signed-off-by: Sonny Jiang <sonny.jiang@amd.com >
Reviewed-by: James Zhu <James.Zhu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-07-18 16:37:09 -04:00
Ruijing Dong
e751e4be1e
drm/amdgpu/vcn: adjust unified queue code format
...
Fixed some errors and warnings found by checkpatch.pl.
Acked-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Ruijing Dong <ruijing.dong@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-06-21 17:54:37 -04:00
Ruijing Dong
bb4f196b47
drm/amdgpu/vcn: support unified queue only in vcn4
...
- remove multiple queue support
- add unified queue related functions
Acked-by: Leo Liu <leo.liu@amd.com >
Signed-off-by: Ruijing Dong <ruijing.dong@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-06-21 17:54:25 -04:00
Wan Jiabing
81c5495910
drm/amdgpu: Remove duplicated argument in vcn_v4_0
...
Fix following coccicheck warning:
./drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c:724:4-36: duplicated argument to & or |
Remove duplicated UVD_SUVD_CGC_GATE__SRE_H264_MASK.
Signed-off-by: Wan Jiabing <wanjiabing@vivo.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-10 17:53:13 -04:00
James Zhu
97aa0c184f
drm/amdgpu/vcn4: replace ip based software ring decode with common vcn software ring decode
...
Replace ip based software ring decode with common vcn software ring decode.
Signed-off-by: James Zhu <James.Zhu@amd.com >
Reviewed-by: Christian Koenig <Christian.Koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-06 16:57:52 -04:00
Leo Liu
8da1170a16
drm/amdgpu: add VCN4 ip block support
...
Add VCN 4.0 initialization and decoder/encoder ring functions.
Signed-off-by: Leo Liu <leo.liu@amd.com >
Reviewed-by: James Zhu <James.Zhu@amd.com >
Acked-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-04 10:43:56 -04:00