[PATCH] drm/amd/display: disable FBC on underlay pipe

2018-04-27 Thread Shirish S
FBC is not applicable for the underlay pipe, hence disallow enabling and disabling of the same. This also fixes the BUG hit of calling sleep in atomic context. Signed-off-by: Shirish S Reviewed-by: Roman Li ---

Re: [PATCH xf86-video-amdgpu 2/2] Wait for pending flips in drmmode_output_set_tear_free

2018-04-27 Thread Michel Dänzer
On 2018-04-26 08:48 PM, Samuel Li wrote: > On 2018-04-26 11:58 AM, Michel Dänzer wrote: >> From: Michel Dänzer >> >> This prevents a nested call to drmHandleEvent, which would hang. >> >> Fixes hangs when disabling TearFree on a CRTC while a DRI3 client is >> page

[PATCH libdrm] amdgpu: Deinitialize vamgr_high{,_32}

2018-04-27 Thread Michel Dänzer
From: Michel Dänzer Fixes memory leaks. Signed-off-by: Michel Dänzer --- amdgpu/amdgpu_device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/amdgpu/amdgpu_device.c b/amdgpu/amdgpu_device.c index d81efcf8..983b19ab 100644 ---

[PATCH umr] Capture COMPUTE shaders in ring decoding as well.

2018-04-27 Thread Tom St Denis
Signed-off-by: Tom St Denis --- src/lib/ring_decode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/ring_decode.c b/src/lib/ring_decode.c index 42265e0a74c9..7e3218a46145 100644 --- a/src/lib/ring_decode.c +++ b/src/lib/ring_decode.c @@

[PATCH v2 1/2] drm/ttm: Only allocate huge pages with new flag TTM_PAGE_FLAG_TRANSHUGE

2018-04-27 Thread Michel Dänzer
From: Michel Dänzer Previously, TTM would always (with CONFIG_TRANSPARENT_HUGEPAGE enabled) try to allocate huge pages. However, not all drivers can take advantage of huge pages, but they would incur the overhead for allocating and freeing them anyway. Now, drivers which

amdgpu 0000:01:00.0: IH ring buffer overflow (0x00000010, 0x00000000, 0x00000020)

2018-04-27 Thread Paul Menzel
Dear Linux AMD folks, I get the overrun message below. $ more /proc/version Linux version 4.14.30.mx64.211 (r...@holidayincambodia.molgen.mpg.de) (gcc version 7.3.0 (GCC)) #1 SMP Tue Mar 27 12:40:07 CEST 2018 $ lspci -s 01:00.0 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc.

[PATCH] drm/amd/display: disable FBC on underlay pipe

2018-04-27 Thread Shirish S
FBC is not applicable for the underlay pipe, hence disallow enabling and disabling of the same. This also fixes the BUG hit of calling sleep in atomic context. Signed-off-by: Shirish S --- drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 7 ++- 1 file

[PATCH] drm/amd/display: remove need of modeset flag for overlay planes

2018-04-27 Thread Shirish S
This patch is in continuation to the "843e3c7 drm/amd/display: defer modeset check in dm_update_planes_state" where we started to eliminate the dependency on DRM_MODE_ATOMIC_ALLOW_MODESET to be set by the user space, which as such is not mandatory. After deferring, this patch eliminates the

Re: [PATCH] drm/amdgpu: Fix display corruption on CI with dpm enabled

2018-04-27 Thread Huang Rui
On Fri, Apr 27, 2018 at 02:18:40PM +0800, Rex Zhu wrote: > with dpm enabled, need to get active crtcs in dc/no-dc mode. > > caused by > 'commit ebb649667a31 ("drm/amdgpu: Set pm_display_cfg in non-dc mode")' > > Signed-off-by: Rex Zhu Reviewed-by: Huang Rui

RE: [PATCH] drm/amd/display: Don't return ddc result and read_bytes in same return value

2018-04-27 Thread S, Shirish
Thanks Harry, it works. Patch is Reviewed-by: Shirish S Regards, Shirish S -Original Message- From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf Of Harry Wentland Sent: Tuesday, April 24, 2018 8:57 PM To: amd-gfx@lists.freedesktop.org; S, Shirish

Re: [PATCH 1/2] drm/ttm: Add TTM_PAGE_FLAG_TRANSHUGE

2018-04-27 Thread Michel Dänzer
[ Dropping Roger He, his e-mail address seems to bounce ] On 2018-04-27 04:51 AM, zhoucm1 wrote: > On 2018年04月26日 23:06, Michel Dänzer wrote: >> From: Michel Dänzer >> >> When it's set, TTM tries to allocate huge pages if possible. > Do you mean original driver doesn't

Re: [PATCH] drm/amdgpu/sriov: reject kms open if TDR not finished or failed

2018-04-27 Thread Michel Dänzer
On 2018-04-27 10:15 AM, Deng, Emily wrote: > No, I mean during GPU reset, the app will fail, it is reasonable. I understand, but I don't agree that it's reasonable. :) -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast |

RE: [PATCH] drm/amdgpu/sriov: reject kms open if TDR not finished or failed

2018-04-27 Thread Deng, Emily
No, I mean during GPU reset, the app will fail, it is reasonable. The flag in_gpu_reset indicates the GPU is in reset state, after reset, we will set the flag back. Best Wishes, Emily Deng > -Original Message- > From: Michel Dänzer [mailto:mic...@daenzer.net] > Sent: Friday, April 27,

Re: [PATCH] drm/amd/pp: Skip fan attributes if fan not present

2018-04-27 Thread Huang Rui
On Fri, Apr 27, 2018 at 01:52:47PM +0800, Rex Zhu wrote: > With powerplay enabled, also need to skip fan attributes > if no fan present. > > Signed-off-by: Rex Zhu Reviewed-by: Huang Rui > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 21

Re: [PATCH] drm/amdgpu/sriov: reject kms open if TDR not finished or failed

2018-04-27 Thread Michel Dänzer
On 2018-04-27 07:29 AM, Deng, Emily wrote: > Sorry, I don't get your point, when the GPU is doing a reset, even > let the dkms open, the userspace will still fail, so during the > reset, any driver open kms is meaningless. That needs to be fixed, then. If the GPU reset succeeds, userspace

Re: [PATCH] drm/amdgpu/uvd7: add emit_reg_write_reg_wait ring callback

2018-04-27 Thread Huang Rui
On Thu, Apr 26, 2018 at 07:12:07PM +0800, Xiaojie Yuan wrote: > Fix the NULL pointer dereference while running amdgpu_test: > > [ 54.972246] BUG: unable to handle kernel NULL pointer dereference at > > [ 54.972265] IP: (null) > [ 54.972273] PGD 0 P4D 0 > [

Re: [PATCH 2/3] drm/scheduler: Don't call wait_event_killable for signaled process.

2018-04-27 Thread Eric W. Biederman
Andrey Grodzovsky writes: > On 04/26/2018 08:34 AM, Andrey Grodzovsky wrote: >> >> >> On 04/25/2018 08:01 PM, Eric W. Biederman wrote: >>> Andrey Grodzovsky writes: >>> On 04/25/2018 01:17 PM, Oleg Nesterov wrote: > On 04/25, Andrey

[PATCH] drm/amdgpu: Fix display corruption on CI with dpm enabled

2018-04-27 Thread Rex Zhu
with dpm enabled, need to get active crtcs in dc/no-dc mode. caused by 'commit ebb649667a31 ("drm/amdgpu: Set pm_display_cfg in non-dc mode")' Signed-off-by: Rex Zhu --- drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 32 1 file changed, 16

[PATCH 13/17] drm/radeon: Remove custom dma_fence_ops->wait implementation

2018-04-27 Thread Daniel Vetter
It's a copy of dma_fence_default_wait, written slightly differently. Signed-off-by: Daniel Vetter Cc: Alex Deucher Cc: "Christian König" Cc: "David (ChunMing) Zhou" Cc:

[PATCH] drm/amd/pp: Skip fan attributes if fan not present

2018-04-27 Thread Rex Zhu
With powerplay enabled, also need to skip fan attributes if no fan present. Signed-off-by: Rex Zhu --- drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 21 - drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 3 +++ 2 files changed, 11 insertions(+), 13