RE: [PATCH] drm/ttm: drop the spin in delayed delete if the trylock doesn't work

2017-12-21 Thread He, Roger
Reviewed-by: Roger He -Original Message- From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf Of Christian K?nig Sent: Friday, December 22, 2017 2:06 AM To: dri-de...@lists.freedesktop.org; amd-gfx@lists.freedesktop.org Subject: [PATCH] drm/ttm: drop the spin in delaye

Re: [PATCH 2/3] exa: Accelerate ARGB2101010 pictures

2017-12-21 Thread Fredrik Höglund
On Monday 18 December 2017, Mario Kleiner wrote: > From: Fredrik Höglund > > Tested by Mario on a Radeon HD 4000 series for the r600 > exa path, and on Radeon HD 5770 for the evergreen exa > path. > > Reviewed-and-Tested-by: Mario Kleiner > Cc: Fredrik Höglund I think the only question is whe

Re: [PATCH 1/3] Fix xf86HandleColormaps() crash at color depth 30.

2017-12-21 Thread Mario Kleiner
On 12/19/2017 09:58 AM, Michel Dänzer wrote: On 2017-12-18 11:36 PM, Mario Kleiner wrote: The size of the X-Server pScreenPriv->PreAllocIndices array allocated within xf86HandleColormaps() is given by the given maxColors argument, but the range of indices by which the PreAllocIndices array is in

Re: [PATCH] drm/amd/pp: Get and save CZ/ST smu version

2017-12-21 Thread Deucher, Alexander
Reviewed-by: Alex Deucher From: amd-gfx on behalf of Rex Zhu Sent: Thursday, December 21, 2017 5:41:36 AM To: amd-gfx@lists.freedesktop.org Cc: Zhu, Rex Subject: [PATCH] drm/amd/pp: Get and save CZ/ST smu version The smu firmware is loaded by the sbios on APUs

Re: [PATCH 22/26] drm/amd/display: Use real BE and FE index to program regs.

2017-12-21 Thread Harry Wentland
I really should've checked before sending these but with this patch I hang the system on boot with Baffin. The rest of the patches in this set are kosher. Just a heads-up for anyone thinking of picking this up. Happy Holidays. Harry On 2017-12-21 05:08 PM, Harry Wentland wrote: > From: Yongqia

[PATCH 16/26] drm/amd/display: Disable eDP with a proper sequence.

2017-12-21 Thread Harry Wentland
From: Yongqiang Sun Proper sequence should be: disable backlight dp blank disable output edp power off In enable accelatate mode, all the encoder and controller are disabled, so move disable eDP to the function is the easiest way to implement. Signed-off-by: Yongqiang Sun Reviewed-by: Tony Che

[PATCH 11/26] drm/amd/display: disable eDP backlight for extend monitor only reboot use case.

2017-12-21 Thread Harry Wentland
From: Yongqiang Sun Signed-off-by: Yongqiang Sun Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/core/dc.c | 28 +++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/g

[PATCH 15/26] drm/amd/display: dal 3.1.28

2017-12-21 Thread Harry Wentland
From: Tony Cheng Signed-off-by: Tony Cheng Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h index 145909ace25d

[PATCH 13/26] drm/amd/display: Remove unnecessary fail labels in create_stream_for_sink

2017-12-21 Thread Harry Wentland
Signed-off-by: Harry Wentland Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/displa

[PATCH 23/26] drm/amd/display: Log which clocks are unsupported

2017-12-21 Thread Harry Wentland
It would be useful to know which clocks are unsupported when logging an error message about unsupported clocks. Signed-off-by: Harry Wentland Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c | 5 - 1 file changed, 4 insertions(+), 1 delet

[PATCH 26/26] drm/amd/display: Fix check for setting input TF

2017-12-21 Thread Harry Wentland
From: Andrew Jiang We no longer change the plane state pointer for full updates, and as such, we weren't setting the input transfer function and programming the degamma registers when we are supposed to. Check for a full update, an input TF change, or a gamma change in the update flags instead to

[PATCH 21/26] drm/amd/display: Move hubp reg access from hwss to hubp module.

2017-12-21 Thread Harry Wentland
From: Yongqiang Sun Signed-off-by: Yongqiang Sun Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dce/dce_hwseq.h | 12 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.c | 17 + drivers/gpu/drm/amd/display/dc/dcn10

[PATCH 24/26] drm/amd/display: Make create_stream_for_sink more consistent

2017-12-21 Thread Harry Wentland
We've got a helper function to call dc_create_stream_for_sink and one other place that calls it directly. Make sure we call the helper functions always since we need to update a bunch of things in stream and don't want to miss that. Signed-off-by: Harry Wentland Reviewed-by: Tony Cheng Acked-by:

[PATCH 19/26] drm/amd/display: Don't block dual-link DVI modes

2017-12-21 Thread Harry Wentland
Signed-off-by: Harry Wentland Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/core/dc_stream.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_stream.c b/drivers/gpu/drm/amd/display/dc/core/dc_stre

[PATCH 18/26] drm/amd/display: Don't allow dual-link DVI on all ASICs.

2017-12-21 Thread Harry Wentland
Our APUs (Carrizo, Stoney, Raven) don't support it. v2: Don't use is_apu as other ASICs might also not support it Signed-off-by: Harry Wentland Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/core/dc_stream.c | 5 +++-- drivers/gpu/drm/amd/display/d

[PATCH 12/26] drm/amd/display: Move MAX_TMDS_CLOCK define to header

2017-12-21 Thread Harry Wentland
Signed-off-by: Harry Wentland Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 3 --- drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c | 7 --- drivers/gpu/drm/amd/display/include/grph_object_ctrl_defs.h | 5 -

[PATCH 17/26] drm/amd/display: Debug print when validate_stream fails

2017-12-21 Thread Harry Wentland
It might be good to understand why validate fails. Signed-off-by: Harry Wentland Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/amdg

[PATCH 20/26] drm/amd/display: Debug-print reason for mode validation failure

2017-12-21 Thread Harry Wentland
Signed-off-by: Harry Wentland Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_d

[PATCH 22/26] drm/amd/display: Use real BE and FE index to program regs.

2017-12-21 Thread Harry Wentland
From: Yongqiang Sun In case of some pipes are fused, pipe_idx should not be used to program pipe regs. Instead of that, BE and FE inst number should be used for reg index. Signed-off-by: Yongqiang Sun Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/calcs/d

[PATCH 25/26] drm/amd/display: Define remove_stream_from_ctx resource func

2017-12-21 Thread Harry Wentland
From: Nikola Cornij This will allow us to clean up resources on a stream as needed. Signed-off-by: Nikola Cornij Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 3 +++ drivers/gpu/drm/amd/display/dc/inc/core_types.h | 5 + 2 file

[PATCH 08/26] drm/amd/display: Fix FBC topology change

2017-12-21 Thread Harry Wentland
From: Roman Li With FBC enabled there was a potential null-deref on topology change due to hardcorded pipe index. Signed-off-by: Roman Li Reviewed-by: Harry Wentland --- .../amd/display/dc/dce110/dce110_hw_sequencer.c| 23 ++ 1 file changed, 19 insertions(+), 4 deletio

[PATCH 07/26] drm/amd/display: Use pipe_control_lock instead of tg lock.

2017-12-21 Thread Harry Wentland
From: Yongqiang Sun Signed-off-by: Yongqiang Sun Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c b/

[PATCH 00/26] DC Patches Dec 21, 2017

2017-12-21 Thread Harry Wentland
* Don't block dual-link DVI modes (fix to light them up is pending) * Make FBC allocation size dynamic * Fix MST topology change problem * Bunch of DCN fixes Andrew Jiang (1): drm/amd/display: Fix check for setting input TF Charlene Liu (1): drm/amd/display: PME sw wa to support waking AZ

[PATCH 01/26] drm/amd/display: PME sw wa to support waking AZ D3

2017-12-21 Thread Harry Wentland
From: Charlene Liu Signed-off-by: Charlene Liu Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 12 drivers/gpu/drm/amd/display/dc/dm_pp_smu.h| 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/drivers/g

[PATCH 05/26] drm/amd/display: cleanup after FBC init rework

2017-12-21 Thread Harry Wentland
From: Roman Li After reworking FBC init for dynamic mem alloc old FBC init code in DC became redundant. Removing it. Signed-off-by: Roman Li Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/core/dc.c | 3 --- drivers/gpu/drm/amd/display/dc/dc.h | 3 ---

[PATCH 03/26] drm/amd/display: Eliminate several Maximus-specific code paths

2017-12-21 Thread Harry Wentland
From: Ken Chalmers This allows Maximus emulation to more closely mirror actual silicon execution. * Enable pool->base.display_clock creation on Maximus. * Enable rest of dce110_apply_ctx_to_hw on Maximus. * Remove apply_ctx_to_hw_fpga (no longer necessary with the full dce110_apply_ctx_to_hw e

[PATCH 14/26] drm/amd/display: Pass signal directly to enable_tmds_output

2017-12-21 Thread Harry Wentland
This makes the check for HDMI and dual-link DVI a bit more straightforward. Signed-off-by: Harry Wentland Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 3 +-- drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c | 15

[PATCH 04/26] drm/amd/display: make FBC mem alloc dynamic

2017-12-21 Thread Harry Wentland
From: Roman Li - FBC init reworked to alloc memory based on display mode. - Removed asic-dependencies from dm Signed-off-by: Roman Li Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 62 --- 1 file changed, 44 insert

[PATCH 06/26] drm/amd/display: Fix topology change issue in MST rehook

2017-12-21 Thread Harry Wentland
From: "Jerry (Fangzhi) Zuo" When topology changed and rehook up MST display to the same DP connector, need to take care of drm_dp_mst_port object. Due to the topology is changed, drm_dp_mst_port and corresponding i2c_algorithm object could be NULL in such situation. Signed-off-by: Jerry (Fangzh

[PATCH 10/26] drm/amd/display: Pass full 3x4 remap matrix for color transform

2017-12-21 Thread Harry Wentland
From: Krunoslav Kovac Signed-off-by: Krunoslav Kovac Reviewed-by: Aric Cyr Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dc_hw_types.h | 6 +- drivers/gpu/drm/amd/display/dc/dce/dce_transform.c | 17 +--- .../amd/display/dc/dce110/dce110_hw_sequencer.c| 94 +++

[PATCH 09/26] drm/amd/display: Prevent master programming in multisync

2017-12-21 Thread Harry Wentland
From: Mikita Lipski Verify that the stream is master - and program only the slave displays Signed-off-by: Mikita Lipski Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +- drivers/gpu/drm/amd/display/dc/core/dc.c

[PATCH 02/26] drm/amd/display: Fix Maximus pixel clock programming

2017-12-21 Thread Harry Wentland
From: Ken Chalmers Maximus testing now defaults to a 700 MHz emulated dispclk Signed-off-by: Ken Chalmers Reviewed-by: Tony Cheng Acked-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git

Re: AMD DC test results

2017-12-21 Thread Harry Wentland
Hi Drake, thanks for your extensive testing, solid test results, and help in tracking bugs across multiple branches. These results are quite helpful. If you have any questions don't hesitate to let us know. Btw, great job you're doing with Endless OS. I've never tried it but I like your approa

[PATCH] drm/ttm: drop the spin in delayed delete if the trylock doesn't work

2017-12-21 Thread Christian König
Thomas actually noticed that, but I didn't realized what he meant until now. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_bo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index 60bb5c12b568..84dfa2368a72 100644 -

Re: [PATCH] drm/amdgpu: Simplify amdgpu_lockup_timeout usage.

2017-12-21 Thread Christian König
Am 21.12.2017 um 18:09 schrieb Michel Dänzer: On 2017-12-19 06:47 PM, Christian König wrote: Yeah, that is a known issue which came to front again because Andrey's patch is slightly buggy. Please test and review the attached (only compile tested) fix for Andrey's patch. Still working on findin

Re: [PATCH] drm/amdgpu: Simplify amdgpu_lockup_timeout usage.

2017-12-21 Thread Michel Dänzer
On 2017-12-19 06:47 PM, Christian König wrote: > Yeah, that is a known issue which came to front again because Andrey's > patch is slightly buggy. > > Please test and review the attached (only compile tested) fix for > Andrey's patch. > > Still working on finding the root cause, but so far didn't

AMD DC test results

2017-12-21 Thread Daniel Drake
Hi, Thanks for the hard work on AMD DC development! Here are some new test results - hope they are interesting/useful. CONTEXT We have been tracking DC for a while as we work with multiple products where amdgpu previously was not able to support the HDMI audio output. We are hoping to ship the

[PATCH] drm/amd/pp: Get and save CZ/ST smu version

2017-12-21 Thread Rex Zhu
The smu firmware is loaded by the sbios on APUs, so query it from the smu and save the smu fw version info that is reported to userspace. Change-Id: Ifce41405c0369610985881cea26e14b0525e4d25 Signed-off-by: Rex Zhu --- drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 2 ++ drivers/gpu/drm/amd/

[PATCH] drm/radeon: use raw buffer printk specifier

2017-12-21 Thread Dmitry Rozhkov
printk format strings accepting a single subsequent argument are shorter thus easier to read. Instead of having format strings accepting 3 different arguments pointing to first 3 bytes of the same buffer rewrite the format string to accept only one argument - the buffer - with "%3ph" specifier. S

Re: [PATCH 1/3] drm/prime: forward begin_cpu_access callback to drivers

2017-12-21 Thread Daniel Vetter
On Wed, Dec 20, 2017 at 08:54:33PM +0100, Christian König wrote: > Am 20.12.2017 um 20:43 schrieb Daniel Vetter: > > On Wed, Dec 20, 2017 at 6:20 PM, Li, Samuel wrote: > > > Ping... can someone please review this patch? > > Might be simpler to implement your own dma-buf backend instead of > > goin

RE: [PATCH 1/7] drm/ttm: call ttm_bo_swapout directly when ttm shrink

2017-12-21 Thread He, Roger
Hi Thomas: Also I wonder what testing is being performed on these changes prior to submission? Vulkan CTS test with Per VM BO enabled. After that, Command submit will not need to provide BO list it will use. It is helpful for performance to CPU bound games. The reason why we enable ev

Re: [PATCH 5/5] drm/amdgpu: drop client_id from VM

2017-12-21 Thread Christian König
Yeah, well as I wrote the PASID in hardware is only 16bits (or sometimes even less). So we need an ida or idr to manage them instead of just an incrementing counter or otherwise we could wrap around rather quickly. Thanks for the review, Christian. Am 21.12.2017 um 09:39 schrieb Chunming Zho

Re: [PATCH 5/5] drm/amdgpu: drop client_id from VM

2017-12-21 Thread Chunming Zhou
The patch itself is Reviewed-by: Chunming Zhou Another question, vice versa, Could PASID directly use fence context if we switch to use fence context as client id? any bits limited in hw to present PASID? Regards, David Zhou On 2017年12月21日 16:15, Christian König wrote: The problem is PASID

Re: [PATCH 7/7] drm/ttm: enable swapout of per VM BOs during allocation and allows reaping of deleted BOs

2017-12-21 Thread Christian König
Am 21.12.2017 um 08:58 schrieb Thomas Hellstrom: What about "Enable recursive locking at swapout time to make it possible to swap out BOs that share the same reservation object." Is "per VM BOs" an AMD specific name? Yes, absolutely. It's even amdgpu specific, radeon uses the same function

Re: [PATCH 5/5] drm/amdgpu: drop client_id from VM

2017-12-21 Thread Christian König
The problem is PASID would never work correctly, it is only 16bits and so gets reused quite often. But we introduced the client_id because we needed an unique 64bit identifier which never repeats. Felix probably didn't knew that when he added the comment. Regards, Christian. Am 21.12.2017 u

Re: [PATCH 3/7] drm/ttm: use an operation ctx for ttm_mem_global_alloc_page

2017-12-21 Thread Thomas Hellstrom
On 12/21/2017 07:05 AM, He, Roger wrote: -Original Message- From: Christian König [mailto:ckoenig.leichtzumer...@gmail.com] Sent: Wednesday, December 20, 2017 9:36 PM To: He, Roger ; amd-gfx@lists.freedesktop.org; dri-de...@lists.freedesktop.org Subject: Re: [PATCH 3/7] drm/ttm: use an

Re: [PATCH 2/7] drm/ttm: use an operation ctx for ttm_mem_global_alloc

2017-12-21 Thread Thomas Hellstrom
With a suitable commit log, LGTM. Reviewed-by: Thomas Hellstrom On 12/20/2017 11:34 AM, Roger He wrote: Change-Id: I5279b5cd3560c4082b00f822219575a5f9c3808a Signed-off-by: Roger He --- drivers/gpu/drm/ttm/ttm_bo.c| 2 +- drivers/gpu/drm/ttm/ttm_memory.c