[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/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/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/