[PATCH] amdgpu/uvd: get ring reference from rq scheduler

2024-12-04 Thread David (Ming Qiang) Wu
base.sched may not be set for each instance and should not be used for cases such as non-IB tests. Signed-off-by: David (Ming Qiang) Wu --- drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c b/drivers

[PATCH 1/2] drm/amd/amdgpu: apply command submission parser for JPEG v2+

2024-09-05 Thread David (Ming Qiang) Wu
This patch extends the same cs parser from JPEG v4.0.3 to other JPEG versions (v2 and above). Rename to more common name as jpeg_v2_dec_ring_parse_cs() from jpeg_v4_0_3_dec_ring_parse_cs(). Signed-off-by: David (Ming Qiang) Wu --- drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c | 63

[PATCH 2/2] drm/amd/amdgpu: apply command submission parser for JPEG v1

2024-09-05 Thread David (Ming Qiang) Wu
Similar to jpeg_v2_dec_ring_parse_cs() but it has different register ranges and a few other registers access. Signed-off-by: David (Ming Qiang) Wu --- drivers/gpu/drm/amd/amdgpu/jpeg_v1_0.c | 76 +- drivers/gpu/drm/amd/amdgpu/jpeg_v1_0.h | 11 2 files changed, 86

[PATCH] drm/amd/amdgpu: apply command submission parser for all JPEG v2+

2024-08-16 Thread David (Ming Qiang) Wu
This patch extends the same cs parser from JPEG v4.0.3 to all other JPEG versions (v2 and above). Rename to more common name as jpeg_v2_dec_ring_parse_cs() from jpeg_v4_0_3_dec_ring_parse_cs(). Signed-off-by: David (Ming Qiang) Wu --- drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c | 61

[PATCH 2/2] drm/amd/amdgpu: cleanup parse_cs callbacks

2024-08-06 Thread David (Ming Qiang) Wu
ved. Signed-off-by: David (Ming Qiang) Wu --- drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 1 - drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 2 -- drivers/gpu/drm/amd/amdgpu/vce_v3_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/vce_v4_0.c | 2 +- 4 files changed, 2 insertions(+), 5 deletions(-) diff --gi

[PATCH 1/2] drm/amd/amdgpu: command submission parser for JPEG

2024-08-06 Thread David (Ming Qiang) Wu
Add JPEG IB command parser to ensure registers in the command are within the JPEG IP block. Signed-off-by: David (Ming Qiang) Wu --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 3 ++ drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c | 58 +++- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.h

[PATCH] drm/amdgpu: drop some kernel messages in VCN code

2024-05-30 Thread David (Ming Qiang) Wu
Similar to commit 15681da214b where some kernel log messages are dropped. With this commit, more log messages in older version of VCN/JPEG code are dropped. Signed-off-by: David (Ming Qiang) Wu --- drivers/gpu/drm/amd/amdgpu/jpeg_v1_0.c | 1 - drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c | 8

[PATCH] drm/amdgpu: drop some kernel messages in VCN code

2024-05-23 Thread David (Ming Qiang) Wu
We have messages when the VCN fails to initialize and there is no need to report on success. Also PSP loading FWs is the default for production. Signed-off-by: David (Ming Qiang) Wu --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 1 - drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_0.c | 3 --- drivers

[PATCH] drm/amd/amdgpu: update jpeg 5 capability

2024-05-09 Thread David (Ming Qiang) Wu
Based on the documentation the maximum resolustion should be 16384x16384. Signed-off-by: David (Ming Qiang) Wu --- drivers/gpu/drm/amd/amdgpu/soc24.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/soc24.c b/drivers/gpu/drm/amd/amdgpu/soc24.c

[PATCH] drm/amdgpu/jpeg: keep drm kernel message consistent

2024-05-09 Thread David (Ming Qiang) Wu
amdgpu jpeg kernel message is different than others such as vcn: [drm:jpeg_v5_0_0_hw_init [amdgpu]] JPEG decode initialized successfully. This patch is to make them consistent. The message after the change is: [drm] JPEG decode initialized successfully. Signed-off-by: David (Ming Qiang) Wu

[PATCH] drm/amdgpu/vcn: set VCN5 power gating state to GATE on suspend

2024-05-09 Thread David (Ming Qiang) Wu
amdgpu: amdgpu_device_ip_resume failed (-110). PM: dpm_run_callback(): pci_pm_resume+0x0/0x100 returns -110 PM: failed to resume async: error -110 Signed-off-by: David (Ming Qiang) Wu --- drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu

[PATCH] drm/amdgpu/vcn: remove irq disabling in vcn 5 suspend

2024-05-09 Thread David (Ming Qiang) Wu
-by: David (Ming Qiang) Wu --- drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c | 19 --- 1 file changed, 19 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c index 851975b5ce29..9b87d6a49b39 100644 --- a/drivers/gpu/drm/amd/amdgpu/

[PATCH] drm/amdgpu: not to save bo in the case of RAS err_event_athub

2023-09-21 Thread David (Ming Qiang) Wu
err_event_athub will corrupt VCPU buffer and not good to be restored in amdgpu_vcn_resume() and in this case the VCPU buffer needs to be cleared for VCN firmware to work properly. Signed-off-by: David (Ming Qiang) Wu --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 7 +++ 1 file changed, 7

[PATCH] drm/amdgpu: support more AV1 encoding requests

2023-02-22 Thread David (Ming Qiang) Wu
Ensuring accurate IB package searching and covers more corners for AV1 encoding requests. Signed-off-by: David (Ming Qiang) Wu Reviewed-by: Ruijing Dong --- drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c | 81 +-- 1 file changed, 75 insertions(+), 6 deletions(-) diff --git a

[PATCH] drm/amdgpu: limit AV1 to the first instance on VCN4 encode

2023-01-18 Thread David (Ming Qiang) Wu
AV1 is only supported on the first instance. Added vcn_v4_0_enc_find_ib_param() to help search for an IB param. Signed-off-by: David (Ming Qiang) Wu Reviewed-by: Ruijing Dong --- drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c | 62 --- 1 file changed, 46 insertions(+), 16