[PATCH 13/13] drm/amdgpu: free vm lru when vm fini

2018-05-08 Thread Chunming Zhou
That means bo isn't per vm bo when vm fini, back to normal bo instead. Change-Id: Ida56abd0351422dd0b4a4393545c9cdb0e1a6818 Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 50 +- 1 file changed, 43 insertions(+), 7 deletions(-) diff --gi

[PATCH 12/13] drm/amdgpu: transferred bo doesn't use vm lru

2018-05-08 Thread Chunming Zhou
Change-Id: I1179a21aa3712b095fd50bed6956654e0f72e611 Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index 537f

[PATCH 10/13] drm/amdgpu: bulk move per vm bo

2018-05-08 Thread Chunming Zhou
Change-Id: I0d5fa7e5e88568f79e836ff47f9c9132cb7d349e Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index 5bef4ffa1c87..537f04d25535 1

[PATCH 11/13] ttm: export ttm_transfered_destroy

2018-05-08 Thread Chunming Zhou
driver will use it to check if the bo is transferred bo. Change-Id: I6a4f3bc00621f9cb3fc24b3bc9d7d7a8ac6cd629 Signed-off-by: Chunming Zhou --- drivers/gpu/drm/ttm/ttm_bo_util.c | 3 ++- include/drm/ttm/ttm_bo_driver.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers

[PATCH 09/13] drm/amdgpu: add bo index counter

2018-05-08 Thread Chunming Zhou
Change-Id: Iaec4e12164124c155753fc7aea85f76fde8d1ed6 Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 1 + 3 files changed, 3 insertions(+) diff --git a/drivers/gpu/dr

[PATCH 08/13] drm/amdgpu: use RB tree instead of link list

2018-05-08 Thread Chunming Zhou
Change-Id: Iaca5cdaccbc5beeb7a37c0f703cdfc97df4ece4f Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 2 + drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c| 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 85 +++--- drivers/gpu/drm/amd/amdgpu/am

[PATCH 07/13] drm/ttm: export ttm_bo_ref_bug

2018-05-08 Thread Chunming Zhou
Change-Id: I5b5f36b4c8af422b5c9d0eaf0c2d3b4db4d9cd0b Signed-off-by: Chunming Zhou --- drivers/gpu/drm/ttm/ttm_bo.c| 3 ++- include/drm/ttm/ttm_bo_driver.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index 98

[PATCH 06/13] drm/amdgpu: add amdgpu lru implementation

2018-05-08 Thread Chunming Zhou
Change-Id: I023d3dd314e49bc9b1649468a82ecca6043e4317 Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 59 ++ 1 file changed, 59 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c ind

[PATCH 05/13] drm/amdgpu: pass vm lru to buffer object

2018-05-08 Thread Chunming Zhou
Change-Id: I28351ad8e69c13038ccff40fd9f0369ddae91371 Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 3 ++- drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c| 14 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_object.c

[PATCH 04/13] drm/amdgpu: init/fini vm lru

2018-05-08 Thread Chunming Zhou
Change-Id: Icba45a329e2e2094581ad6c4b8b9028a2e5c5faa Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 2 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c| 2 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 37

[PATCH 03/13] drm/amdgpu: add lru backend for amdgpu driver

2018-05-08 Thread Chunming Zhou
Change-Id: I4ee2abf1ddf5c0fe59c5803da51e99bb57388d05 Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 4 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 25 + drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 9 + 3 files changed, 38 insertions(+

[PATCH 01/13] ttm: abstruct evictable bo

2018-05-08 Thread Chunming Zhou
Change-Id: Ie81985282fab1e564fc2948109fae2173613b465 Signed-off-by: Chunming Zhou --- drivers/gpu/drm/ttm/ttm_bo.c | 35 --- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index 98e06f8bf2

[PATCH 00/13] *** per vm lru ***

2018-05-08 Thread Chunming Zhou
move implemenation from ttm to amdgpu driver. (suggested by Christian) per-vm-lru is because of per-vm-bo, which has no chance to refresh lru, the nagtive effect is game performance isn't stable. so all per-vm-bo should have a default order, every per-vm-bo has its priority, relying on its creati

[PATCH 02/13] ttm: allow driver has own lru policy

2018-05-08 Thread Chunming Zhou
general ttm lru cannot statisfy amdgpu per-vm-bo requirement, we have to adapt it in amdgpu driver at least. Change-Id: I92b2286ef507c2e055ad9101cf31279d5f8db475 Signed-off-by: Chunming Zhou --- drivers/gpu/drm/ttm/ttm_bo.c| 54 ++--- include/drm/ttm/ttm_b

Re: 答复: [BUG] amdgpu: System freezes after resuming from suspend to ram the second time

2018-05-08 Thread Alex Deucher
On Tue, May 8, 2018 at 10:51 PM, Qu, Jim wrote: > Hi John, > > What driver version did you used? Did you try our last release driver? Looks like a similar issue to this bug: https://bugs.freedesktop.org/show_bug.cgi?id=105760 Seems to be an issue with Hybrid/PX configurations in some cases. Alex

答复: [BUG] amdgpu: System freezes after resuming from suspend to ram the second time

2018-05-08 Thread Qu, Jim
Hi John, What driver version did you used? Did you try our last release driver? Thanks JimQu 发件人: amd-gfx 代表 John Smith 发送时间: 2018年5月8日 23:17:47 收件人: amd-gfx@lists.freedesktop.org 抄送: Deucher, Alexander; Zhou, David(ChunMing); Koenig, Christian 主题: [BU

Re: amdgpu hangs on boot or shutdown on AMD Raven Ridge CPU (Engineer Sample)

2018-05-08 Thread Daniel Drake
WHi Alex, On Thu, Apr 19, 2018 at 4:13 PM, Alex Deucher wrote: https://bugs.freedesktop.org/show_bug.cgi?id=105684 >>> >>> No progress made on that bug report so far. >>> What can we do to help this advance? >> >> Ping, any news here? How can we help advance on this bug? > > Can you try one

Re: [PATCH v3] drm/amdgpu: Don't default to DC support for Kaveri and older

2018-05-08 Thread Deucher, Alexander
Reviewed-by: Alex Deucher From: amd-gfx on behalf of Harry Wentland Sent: Tuesday, May 8, 2018 11:33:42 AM To: amd-gfx@lists.freedesktop.org; Deucher, Alexander Cc: Wentland, Harry Subject: [PATCH v3] drm/amdgpu: Don't default to DC support for Kaveri and older

[PATCH 15/25] drm/amd/display: Fix up dm logging functionality

2018-05-08 Thread Harry Wentland
From: Anthony Koo Signed-off-by: Anthony Koo Reviewed-by: Aric Cyr Acked-by: Harry Wentland --- .../amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 5 .../drm/amd/display/dc/basics/log_helpers.c | 1 - .../gpu/drm/amd/display/dc/basics/logger.c| 1 + drivers/gpu/drm/amd/display/dc/d

[PATCH 20/25] drm/amd/display: Add fullscreen transitions to log

2018-05-08 Thread Harry Wentland
From: Anthony Koo Signed-off-by: Anthony Koo Reviewed-by: Aric Cyr Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- .../drm/amd/display/modules/inc/mod_stats.h | 4 + .../gpu/drm/amd/display/modules/stats/stats.c | 137 ++ 2 files changed, 114 insertions(+), 27 deleti

[PATCH 24/25] drm/amd/display: fix memory leaks

2018-05-08 Thread Harry Wentland
From: Anthony Koo Signed-off-by: Anthony Koo Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- .../gpu/drm/amd/display/modules/stats/stats.c | 24 --- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/display/modules/stats/stats.c b/drivers

[PATCH 16/25] drm/amd/display: use macro for logs

2018-05-08 Thread Harry Wentland
From: Anthony Koo Signed-off-by: Anthony Koo Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- .../amd/display/include/logger_interface.h| 9 + .../gpu/drm/amd/display/modules/stats/stats.c | 19 ++- 2 files changed, 15 insertions(+), 13 deletions(-) diff --gi

[PATCH 22/25] drm/amd/display: Clear underflow status for debug purposes

2018-05-08 Thread Harry Wentland
From: Nikola Cornij We want to keep underflow sticky bit on for the longevity tests outside of test environment. For debug purposes it is, however, useful to clear underflow status after the test that caused it so that the following tests are not affected. This change fullfils both requirements b

[PATCH 18/25] drm/amd/display: Only limit VSR downscaling when actually downscaling

2018-05-08 Thread Harry Wentland
From: Xingyue Tao Signed-off-by: Xingyue Tao Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- .../gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c | 21 +-- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c b/drivers

[PATCH 23/25] drm/amd/display: DCN1 link encoder

2018-05-08 Thread Harry Wentland
From: Eric Bernstein Create DCN1 link encoder files and update AUX and HPD register access. Signed-off-by: Eric Bernstein Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- .../drm/amd/display/dc/core/dc_link_hwss.c|2 - drivers/gpu/drm/amd/display/dc/dcn10/Makefile |2 +- .../

[PATCH 11/25] drm/amd/display: Add dc cap to restrict VSR downscaling src size

2018-05-08 Thread Harry Wentland
From: Xingyue Tao - Adds int max_downscale_src_width in dc struct - Checks and does not support if downscale size is more than 4k (width > 3840) Signed-off-by: Xingyue Tao Reviewed-by: Charlene Liu Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dc.h | 1 + drivers/

[PATCH 25/25] drm/amd/display: Clear connector's edid pointer

2018-05-08 Thread Harry Wentland
From: Mikita Lipski Clear connector's edid pointer on coonnector update, when unplugging the display. Fix poison EDID when hotplugging on previously used connector. Signed-off-by: Mikita Lipski Reviewed-by: Harry Wentland Cc: sta...@vger.kernel.org --- drivers/gpu/drm/amd/display/amdgpu_dm/a

[PATCH 21/25] drm/amd/display: fix bug with index check

2018-05-08 Thread Harry Wentland
From: Anthony Koo Signed-off-by: Anthony Koo Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/modules/stats/stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/modules/stats/stats.c b/drivers/gpu/drm/amd/disp

[PATCH 19/25] drm/amd/display: constify a few dc_surface_update fields

2018-05-08 Thread Harry Wentland
From: Jun Lei Signed-off-by: Jun Lei Reviewed-by: Jun Lei Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dc.h | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h index 7a9f60

[PATCH 17/25] drm/amd/display: don't create new dc_sink if nothing changed at detection

2018-05-08 Thread Harry Wentland
From: Samson Tam Signed-off-by: Samson Tam Reviewed-by: Aric Cyr Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 95 +++ 1 file changed, 77 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/dr

[PATCH 14/25] drm/amd/display: update dml to allow sync with DV

2018-05-08 Thread Harry Wentland
From: Dmytro Laktyushkin Signed-off-by: Dmytro Laktyushkin Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- .../amd/display/dc/dml/display_mode_enums.h | 13 + .../amd/display/dc/dml/display_mode_structs.h | 962 +- .../drm/amd/display/dc/dml/dml_inline_defs.h | 10 +

[PATCH 13/25] drm/amd/display: Log DTN only after the atomic commit in Diag

2018-05-08 Thread Harry Wentland
From: Nikola Cornij Also print HUBP info only if pipe enabled. This fixes having different DTN logs for different test sequences. Signed-off-by: Nikola Cornij Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- .../amd/display/dc/dcn10/dcn10_hw_sequencer.c | 119 +- 1 file c

[PATCH 12/25] drm/amd/display: disable mpo if brightness adjusted

2018-05-08 Thread Harry Wentland
From: Yue Hin Lau Signed-off-by: Yue Hin Lau Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dc.h | 1 + drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/displa

[PATCH 09/25] drm/amd/display: fix 31_32_fixpt shift functions

2018-05-08 Thread Harry Wentland
From: Dmytro Laktyushkin Signed-off-by: Dmytro Laktyushkin Reviewed-by: Eric Yang Acked-by: Harry Wentland --- .../gpu/drm/amd/display/include/fixed31_32.h | 26 +-- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/display/include/fixed31_32.

[PATCH 07/25] drm/amd/display: underflow/blankscreen recovery

2018-05-08 Thread Harry Wentland
From: Charlene Liu [Description] for any reason, if driver detects HUBP underflow, if a debug option enabled to enable recovery. it will kick in a sequence of recovery. Signed-off-by: Charlene Liu Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dc.h

[PATCH 10/25] drm/amd/display: fix a 32 bit shift meant to be 64 warning

2018-05-08 Thread Harry Wentland
From: Dmytro Laktyushkin Signed-off-by: Dmytro Laktyushkin Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/include/fixed31_32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/include/fixed31_32.h b/drivers/gpu/

[PATCH 08/25] drm/amd/display: Update HW sequencer initialization

2018-05-08 Thread Harry Wentland
From: Eric Bernstein Signed-off-by: Eric Bernstein Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- .../gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 6 +++--- .../gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.h | 2 ++ drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c |

[PATCH 05/25] drm/amd/display: add fixed point fractional bit truncation function

2018-05-08 Thread Harry Wentland
From: Dmytro Laktyushkin Signed-off-by: Dmytro Laktyushkin Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- .../gpu/drm/amd/display/include/fixed31_32.h| 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/gpu/drm/amd/display/include/fixed31_32.h b/drivers/gp

[PATCH 06/25] drm/amd/display: truncate scaling ratios and inits to 19 bit precision

2018-05-08 Thread Harry Wentland
From: Dmytro Laktyushkin Signed-off-by: Dmytro Laktyushkin Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- .../gpu/drm/amd/display/dc/core/dc_resource.c | 25 +-- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resourc

[PATCH 03/25] drm/amd/display: inline more of fixed point code

2018-05-08 Thread Harry Wentland
From: Dmytro Laktyushkin Signed-off-by: Dmytro Laktyushkin Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- .../drm/amd/display/dc/basics/fixpt31_32.c| 156 ++--- .../gpu/drm/amd/display/include/fixed31_32.h | 207 ++ .../amd/display/modules/color/color_gamma.

[PATCH 01/25] drm/amd/display: Cleanup unused SetPlaneConfig

2018-05-08 Thread Harry Wentland
From: Anthony Koo Signed-off-by: Anthony Koo Reviewed-by: Aric Cyr Acked-by: Harry Wentland --- .../display/dc/dce110/dce110_hw_sequencer.c | 69 --- .../amd/display/dc/dcn10/dcn10_hw_sequencer.c | 10 --- .../gpu/drm/amd/display/dc/inc/hw_sequencer.h | 5 -- 3 files change

[PATCH 04/25] drm/amd/display: Make DisplayStats work with just DC DisplayStats minor

2018-05-08 Thread Harry Wentland
From: Anthony Koo Remove dependency on the old FREESYNC_SW_STATS log mask used by DAL2 Also rename from profiling to displaystats Signed-off-by: Anthony Koo Reviewed-by: Aric Cyr Acked-by: Harry Wentland --- .../gpu/drm/amd/display/dc/basics/logger.c| 2 +- .../drm/amd/display/include/l

[PATCH 00/25] DC Patches May 8, 2018

2018-05-08 Thread Harry Wentland
* Fix poison EDID read when hotplugging display (Mikita) * Clean up fixed point code Anthony Koo (7): drm/amd/display: Cleanup unused SetPlaneConfig drm/amd/display: Make DisplayStats work with just DC DisplayStats minor drm/amd/display: Fix up dm logging functionality drm/amd/displa

[BUG] amdgpu: System freezes after resuming from suspend to ram the second time

2018-05-08 Thread John Smith
The amdgpu driver freezes the kernel, when suspending for the second time. When blacklisting amdgpu the suspend/resume works correctly. Please see the attached logs. Hardware: hp-zbook 15u 5g i7-8550 $ uname -a Linux MYPCNAME 4.17.0-rc3-ARCH+ #1 SMP PREEMPT Sun May 6 09:50:29 CEST 2018 x86_64 G

Re: [PATCH] drm/amdgpu: add HDP flush dummy for UVD 6/7

2018-05-08 Thread Deucher, Alexander
Acked-by: Alex Deucher From: amd-gfx on behalf of Christian König Sent: Tuesday, May 8, 2018 6:30:06 AM To: amd-gfx@lists.freedesktop.org Subject: [PATCH] drm/amdgpu: add HDP flush dummy for UVD 6/7 The UVD firmware doesn't seem to like the HDP flush here. Th

Re: [PATCH v2] drm/amdgpu: Don't default to DC support for Kaveri and older

2018-05-08 Thread Harry Wentland
On 2018-05-08 11:28 AM, Deucher, Alexander wrote: > You need to include mullins as well.  It's the same feature set as kabini. > Good catch. v3 incoming. > > Alex > > > > -

[PATCH v3] drm/amdgpu: Don't default to DC support for Kaveri and older

2018-05-08 Thread Harry Wentland
We've had a number of users report failures to detect and light up display with DC with LVDS and VGA. These connector types are not currently supported with DC. I'd like to add support but unfortunately don't have a system with LVDS or VGA available. In order not to cause regressions we should pro

Re: [PATCH v2] drm/amdgpu: Don't default to DC support for Kaveri and older

2018-05-08 Thread Deucher, Alexander
You need to include mullins as well. It's the same feature set as kabini. Alex From: amd-gfx on behalf of Harry Wentland Sent: Monday, May 7, 2018 7:24 PM To: amd-gfx@lists.freedesktop.org; Deucher, Alexander Cc: Wentland, Harry Subject: [PATCH v2] drm/amdgp

[PATCH] drm/amdgpu: add HDP flush dummy for UVD 6/7

2018-05-08 Thread Christian König
The UVD firmware doesn't seem to like the HDP flush here. This worked for years without HDP flush, so just skip it. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 16 ++-- drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c | 13 - 2 files changed, 26 inser

答复: [PATCH] drm/amd/pp: Implement force_clock_level for RV

2018-05-08 Thread Quan, Evan
Reviewed-by: Evan Quan 发件人: amd-gfx 代表 Rex Zhu 发送时间: 2018年5月8日 14:23:35 收件人: amd-gfx@lists.freedesktop.org 抄送: Zhu, Rex 主题: [PATCH] drm/amd/pp: Implement force_clock_level for RV under manual dpm mode, user can set gfx/mem clock through sysfs pp_dpm_sclk/mclk