[PATCH] drm/amdgpu: Add error message for DAC setup failure

2020-10-05 Thread Shashank Sharma
This patch adds a return value check and an error message to highlight the DAC setup failure case during encoder DPMS operation. Cc: Alex Deucher Signed-off-by: Shashank Sharma --- drivers/gpu/drm/amd/amdgpu/atombios_encoders.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --g

Re: [PATCH] drm/amdgpu: remove unintended executable mode

2020-10-05 Thread Alex Deucher
On Mon, Oct 5, 2020 at 3:22 AM Lukas Bulwahn wrote: > > Besides the intended change, commit 3437f5f6c979 ("drm/amdgpu: add gfx > support for van gogh (v2)") also set the source files gfx_v10_0.c to be > executable, i.e., changed from old mode 644 to new mode 755. > > Set to the usual mode for sour

Re: [PATCH] drm/amd/display: Add missing function pointers for dcn3

2020-10-05 Thread Lakha, Bhawanpreet
[AMD Official Use Only - Internal Distribution Only] Thanks, .calc_vupdate_position : Used to help avoid cursor stuttering .set_pipe : Needed for setting abm WIll add these before pushing. From: Kazlauskas, Nicholas Sent: October 5, 2020 2:12 PM To: Lakha, Bhaw

Re: [PATCH] drm/amd/display: Add missing function pointers for dcn3

2020-10-05 Thread Kazlauskas, Nicholas
On 2020-10-05 2:10 p.m., Bhawanpreet Lakha wrote: These function pointers are missing from dcn30_init .calc_vupdate_position .set_pipe So add them Signed-off-by: Bhawanpreet Lakha Reviewed-by: Nicholas Kazlauskas Would be good to mention what these are used for specifically though. The c

[PATCH] drm/amd/display: Add missing function pointers for dcn3

2020-10-05 Thread Bhawanpreet Lakha
These function pointers are missing from dcn30_init .calc_vupdate_position .set_pipe So add them Signed-off-by: Bhawanpreet Lakha --- drivers/gpu/drm/amd/display/dc/dcn30/dcn30_init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_init.c b/dri

RE: [PATCH 3/3] drm/amdgpu: add xgmi perfmons for arcturus

2020-10-05 Thread Kasiviswanathan, Harish
[AMD Official Use Only - Internal Distribution Only] This patch series Reviewed-By: Harish Kasiviswanathan -Original Message- From: Kim, Jonathan Sent: Friday, October 2, 2020 4:19 PM To: amd-gfx@lists.freedesktop.org Cc: Kasiviswanathan, Harish ; Kim, Jonathan Subject: [PATCH 3/3]

Re: [PATCH] drm/amd/display: [FIX] Compilation error

2020-10-05 Thread Rodrigo Siqueira
Reviewed-by: Rodrigo Siqueira On 10/02, Qingqing Zhuo wrote: > [Why] > ifdef mismatch. > > [How] > Update to the correct flag. > > Signed-off-by: Qingqing Zhuo > Cc: > --- > drivers/gpu/drm/amd/display/dc/dce/dce_abm.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a

[PATCH AUTOSEL 4.19 2/2] drm/amdgpu: prevent double kfree ttm->sg

2020-10-05 Thread Sasha Levin
From: Philip Yang [ Upstream commit 1d0e16ac1a9e800598dcfa5b6bc53b704a103390 ] Set ttm->sg to NULL after kfree, to avoid memory corruption backtrace: [ 420.932812] kernel BUG at /build/linux-do9eLF/linux-4.15.0/mm/slub.c:295! [ 420.934182] invalid opcode: [#1] SMP NOPTI [ 420.935445] Mo

[PATCH AUTOSEL 4.14 2/2] drm/amdgpu: prevent double kfree ttm->sg

2020-10-05 Thread Sasha Levin
From: Philip Yang [ Upstream commit 1d0e16ac1a9e800598dcfa5b6bc53b704a103390 ] Set ttm->sg to NULL after kfree, to avoid memory corruption backtrace: [ 420.932812] kernel BUG at /build/linux-do9eLF/linux-4.15.0/mm/slub.c:295! [ 420.934182] invalid opcode: [#1] SMP NOPTI [ 420.935445] Mo

[PATCH AUTOSEL 5.8 09/12] drm/amd/display: fix return value check for hdcp_work

2020-10-05 Thread Sasha Levin
From: Flora Cui [ Upstream commit 898c7302f4de1d91065e80fc46552b3ec70894ff ] max_caps might be 0, thus hdcp_work might be ZERO_SIZE_PTR Signed-off-by: Flora Cui Reviewed-by: Feifei Xu Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm

[PATCH AUTOSEL 4.9 2/2] drm/amdgpu: prevent double kfree ttm->sg

2020-10-05 Thread Sasha Levin
From: Philip Yang [ Upstream commit 1d0e16ac1a9e800598dcfa5b6bc53b704a103390 ] Set ttm->sg to NULL after kfree, to avoid memory corruption backtrace: [ 420.932812] kernel BUG at /build/linux-do9eLF/linux-4.15.0/mm/slub.c:295! [ 420.934182] invalid opcode: [#1] SMP NOPTI [ 420.935445] Mo

[PATCH AUTOSEL 5.4 2/4] drm/amdgpu: prevent double kfree ttm->sg

2020-10-05 Thread Sasha Levin
From: Philip Yang [ Upstream commit 1d0e16ac1a9e800598dcfa5b6bc53b704a103390 ] Set ttm->sg to NULL after kfree, to avoid memory corruption backtrace: [ 420.932812] kernel BUG at /build/linux-do9eLF/linux-4.15.0/mm/slub.c:295! [ 420.934182] invalid opcode: [#1] SMP NOPTI [ 420.935445] Mo

[PATCH AUTOSEL 5.8 04/12] drm/amdgpu: prevent double kfree ttm->sg

2020-10-05 Thread Sasha Levin
From: Philip Yang [ Upstream commit 1d0e16ac1a9e800598dcfa5b6bc53b704a103390 ] Set ttm->sg to NULL after kfree, to avoid memory corruption backtrace: [ 420.932812] kernel BUG at /build/linux-do9eLF/linux-4.15.0/mm/slub.c:295! [ 420.934182] invalid opcode: [#1] SMP NOPTI [ 420.935445] Mo

[PATCH AUTOSEL 5.8 08/12] drm/amd/pm: Removed fixed clock in auto mode DPM

2020-10-05 Thread Sasha Levin
From: Sudheesh Mavila [ Upstream commit 97cf32996c46d9935cc133d910a75fb687dd6144 ] SMU10_UMD_PSTATE_PEAK_FCLK value should not be used to set the DPM. Suggested-by: Evan Quan Reviewed-by: Evan Quan Signed-off-by: Sudheesh Mavila Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- d

Re: [PATCH] drm/amdgpu: align frag_end to covered address space

2020-10-05 Thread Christian König
Am 05.10.20 um 16:40 schrieb Alex Sierra: align frag_end to the next pd when there are no page table entries on the current pde. Maybe add something like "This fixes invalidation of larger address space areas where some page tables are allocated and other aren't". Signed-off-by: Alex Sierr

[PATCH] drm/amdgpu: align frag_end to covered address space

2020-10-05 Thread Alex Sierra
align frag_end to the next pd when there are no page table entries on the current pde. Signed-off-by: Alex Sierra Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu

[PATCH] drm/amdgpu: remove unintended executable mode

2020-10-05 Thread Lukas Bulwahn
Besides the intended change, commit 3437f5f6c979 ("drm/amdgpu: add gfx support for van gogh (v2)") also set the source files gfx_v10_0.c to be executable, i.e., changed from old mode 644 to new mode 755. Set to the usual mode for source and headers files. No functional change. Signed-off-by: Luka