[PATCH] drm/amdgpu/soc21: update VCN 4 max HEVC encoding resolution

2024-02-06 Thread Thong
Update the maximum resolution reported for HEVC encoding on VCN 4 devices to reflect its 8K encoding capability. Signed-off-by: Thong --- drivers/gpu/drm/amd/amdgpu/soc21.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu

drm/amdgpu: update soc15 and nv max encoding height

2023-05-01 Thread Thong Thai
    drm/amdgpu: update soc15 and nv max encoding height     Update the values reported for Vega, VCN1/2: H.264 and HEVC encoding     maximum supported height to match the values from the hardware spec.     Signed-off-by: Thong Thai     Reviewed-by: Ruijing Dong The patch is attached for

drm/amdgpu/nv: update VCN 3 max HEVC encoding resolution

2023-05-01 Thread Thong Thai
, Thong Thai From 21f577a5458d84041a41a9041bf8aa9e10ff46b9 Mon Sep 17 00:00:00 2001 From: Thong Thai Date: Mon, 1 May 2023 11:04:36 -0400 Subject: [PATCH] drm/amdgpu/nv: update VCN 3 max HEVC encoding resolution Update the maximum resolution reported for HEVC encoding on VCN 3 devices to reflect

Re: [PATCH] drm/amdgpu: fix amdgpu_job_free_resources

2023-01-12 Thread Thong Thai
‘->’ (have ‘struct dma_fence’)   159 | if (job->base.s_fence && job->base.s_fence->finished->ops)   |     ^~ Thanks, Thong Thai On 2023-01-12 09:05, Alex Deucher wrote: On Thu, Jan 12, 2023 at 8:48 AM Chr

[PATCH] Revert "drm/amdgpu: enable VCN DPG on Raven and Raven2"

2019-12-06 Thread Thong Thai
This reverts commit a4840d91c984f93b2acdcd1d624bbc1af0d2. Reverting due to power efficiency issues seen on Raven 1 and 2 when DPG mode is enabled. Signed-off-by: Thong Thai Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/soc15.c | 8 ++-- 1 file changed, 2 insertions(+), 6

[PATCH 1/2] Revert "drm/amdgpu: use direct loading on renoir vcn for the moment"

2019-08-15 Thread Thai, Thong
This reverts commit 69fcd7347f6fb11edc7eaea7c7b9cff0044ce17e. --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 9 +++-- drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c | 9 +++-- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c b/drivers/gpu/drm

[PATCH 2/2] drm/amdgpu: enable VCN DPG for Renoir

2019-08-15 Thread Thai, Thong
Enable VCN Dynamic Powergating on Renoir devices. This will also enable indirect SRAM loading of VCN firmware on Renoir. Signed-off-by: Thong Thai --- drivers/gpu/drm/amd/amdgpu/soc15.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b

Re: [PATCH 1/2] drm/amd/amdgpu/vcn_v2_0: Mark RB commands as KMD commands

2019-07-26 Thread Thai, Thong
, July 26, 2019 3:17:19 AM To: Thai, Thong ; amd-gfx@lists.freedesktop.org Subject: Re: [PATCH 1/2] drm/amd/amdgpu/vcn_v2_0: Mark RB commands as KMD commands Am 25.07.19 um 17:52 schrieb Thai, Thong: > Sets the CMD_SOURCE bit for VCN 2.0 Decoder Ring Buffer commands. This > bit was previous

[PATCH v3 1/2] drm/amd/amdgpu/vcn_v2_0: Mark RB commands as KMD commands

2019-07-25 Thread Thai, Thong
Sets the CMD_SOURCE bit for VCN 2.0 Decoder Ring Buffer commands. This bit was previously set by the RBC HW on older firmware. Newer firmware uses a SW RBC and this bit has to be set by the driver. Signed-off-by: Thong Thai --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | 1 + drivers/gpu/drm/amd

[PATCH v3 2/2] drm/amd/amdgpu/vcn_v2_0: Move VCN 2.0 specific dec ring test to vcn_v2_0

2019-07-25 Thread Thai, Thong
VCN 2.0 firmware now requires a packet start command to be sent before any other decode ring buffer command. Signed-off-by: Thong Thai --- drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c | 32 ++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd

[PATCH v2] drm/amd/amdgpu/vcn_v2_0: Mark RB commands as KMD commands

2019-07-25 Thread Thai, Thong
Sets the CMD_SOURCE bit for VCN 2.0 Decoder Ring Buffer commands. This bit was previously set by the RBC HW on older firmware. Newer firmware uses a SW RBC and this bit has to be set by the driver. Signed-off-by: Thong Thai --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | 1 + drivers/gpu/drm/amd

[PATCH 1/2] drm/amd/amdgpu/vcn_v2_0: Mark RB commands as KMD commands

2019-07-25 Thread Thai, Thong
Sets the CMD_SOURCE bit for VCN 2.0 Decoder Ring Buffer commands. This bit was previously set by the RBC HW on older firmware. Newer firmware uses a SW RBC and this bit has to be set by the driver. Signed-off-by: Thong Thai --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | 1 + drivers/gpu/drm/amd

[PATCH 2/2] drm/amd/amdgpu/vcn_v2_0: Move VCN 2.0 specific dec ring test to vcn_v2_0

2019-07-25 Thread Thai, Thong
VCN 2.0 firmware now requires a packet start command to be sent before any other decode ring buffer command. Signed-off-by: Thong Thai --- drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c | 32 ++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd

[PATCH] drm/amd/amdgpu/vcn_v2_0: Set CMD_SOURCE for RB commands

2019-07-24 Thread Thai, Thong
Sets the CMD_SOURCE bit for VCN 2.0 decoder ring-buffer commands. This bit was previously set by the RBC HW on older versions of the firmware, and now needs to be set by the driver in order to work with the SW RBC found in newer versions of the firmware. Signed-off-by: Thong Thai --- drivers