[PATCH] drm/amd/display: Use vrr friendly pageflip throttling in DC.

2019-02-08 Thread Mario Kleiner
In VRR mode, keep track of the vblank count of the last completed pageflip in amdgpu_crtc->last_flip_vblank, as recorded in the pageflip completion handler after each completed flip. Use that count to prevent mmio programming a new pageflip within the same vblank in which the last pageflip

Re: [PATCH v2 4/4] drm/amdgpu: Simplify eviction fence handling

2019-02-08 Thread Kasiviswanathan, Harish
Reviewed By: Harish Kasiviswanathan On 2019-02-08 4:21 p.m., Kuehling, Felix wrote: > Temporarily removing eviction fences to avoid triggering them by > accident is no longer necessary due to the fence_owner logic in > amdgpu_sync_resv. > > As a result the ef_list usage of

Re: [PATCH 2/2] drm/amdgpu: Delete user queue doorbell variables

2019-02-08 Thread Kuehling, Felix
The series is Reviewed-by: Felix Kuehling On 2019-02-07 5:23 p.m., Zhao, Yong wrote: > They are no longer used, so delete them to avoid confusion. > > Change-Id: I3cf23fe7110ff88f53c0c279b2b4ec8d1a53b87c > Signed-off-by: Yong Zhao > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_doorbell.h | 8

Re: [PATCH 5/5] drm/amdkfd: Optimize out sdma doorbell array in kgd2kfd_shared_resources

2019-02-08 Thread Kuehling, Felix
Some nit-picks inline. Looks good otherwise. On 2019-02-05 3:31 p.m., Zhao, Yong wrote: > We can directly calculate the sdma doorbell index in the process doorbell > pages through the doorbell_index structure in amdgpu_device, so no need > to cache them in kgd2kfd_shared_resources any more,

Re: [PATCH 4/5] drm/amdkfd: Fix bugs regarding CP user queue doorbells mask on SOC15

2019-02-08 Thread Kuehling, Felix
The code is fine. Some comments about your comment changes inline to help clarify things a bit. On 2019-02-05 3:31 p.m., Zhao, Yong wrote: > Reserved doorbells for SDMA IH and VCN were not properly masked out > when allocating doorbells for CP user queues. This patch fixed that. > > Change-Id:

[PATCH v2 4/4] drm/amdgpu: Simplify eviction fence handling

2019-02-08 Thread Kuehling, Felix
Temporarily removing eviction fences to avoid triggering them by accident is no longer necessary due to the fence_owner logic in amdgpu_sync_resv. As a result the ef_list usage of amdgpu_amdkfd_remove_eviction_fence and amdgpu_amdkfd_add_eviction_fence are no longer needed. Signed-off-by: Felix

[PATCH v2 3/4] drm/amdgpu: Avoid setting off KFD eviction fences in amdgpu_vm

2019-02-08 Thread Kuehling, Felix
Use FENCE_OWNER_KFD to synchronize PT/PD initialization and clearing of page table entries. This avoids triggering KFD eviction fences on the PD reservation objects of compute VMs. Signed-off-by: Felix Kuehling Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 6 +++---

[PATCH v2 1/4] drm/amdgpu: Add helper to wait for BO fences using a sync object

2019-02-08 Thread Kuehling, Felix
Creates a temporary sync object to wait for the BO reservation. This generalizes amdgpu_vm_wait_pd. Signed-off-by: Felix Kuehling --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 24 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 1 +

[PATCH v2 2/4] drm/amdgpu: Replace ttm_bo_wait with amdgpu_bo_sync_wait

2019-02-08 Thread Kuehling, Felix
The fence_owner logic in amdgpu_sync_wait will allow waiting without having to temporarily remove eviction fences. Signed-off-by: Felix Kuehling Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[pull] amdgpu drm-next-5.1

2019-02-08 Thread Alex Deucher
Hi Dave, Daniel, Updates for 5.1: - GDS fixes - Add AMDGPU_CHUNK_ID_SCHEDULED_DEPENDENCIES interface - GPUVM fixes - PCIE DPM switching fixes for vega20 - Vega10 uclk DPM regression fix - DC Freesync fixes - DC ABM fixes - Various DC cleanups The following changes since commit

Re: [PATCH v2 02/10] drm/amd/display: dc/dce: add DCE6 support (v2)

2019-02-08 Thread Mauro Rossi
Hi Harry, On Wed, Oct 17, 2018 at 9:47 PM Wentland, Harry wrote: > > On 2018-10-17 4:35 a.m., Mauro Rossi wrote: > > DCE6 targets are added replicating existing DCE8 implementation. > > > > NOTE: dce_8_0_{d,sh_mask}.h headers used instead of dce_6_0_{d,sh_mask}.h > > only to build

Re: [PATCH v2 2/2] drm/drv: drm_dev_unplug(): Move out drm_dev_put() call

2019-02-08 Thread Oleksandr Andrushchenko
On 2/8/19 4:01 PM, Noralf Trønnes wrote: This makes it possible to use drm_dev_unplug() with the upcoming devm_drm_dev_init() which will do drm_dev_put() in its release callback. Cc: Alex Deucher Cc: Christian König Cc: David (ChunMing) Zhou Cc: Dave Airlie Cc: Sean Paul Cc: Oleksandr

Re: [PATCH] drm/amdgpu: cleanup amdgpu_ih_process a bit more

2019-02-08 Thread Kuehling, Felix
Sorry, I thought I had reviewed that already. The change is Reviewed-by: Felix Kuehling From: amd-gfx on behalf of Christian König Sent: Friday, February 8, 2019 7:42 AM To: amd-gfx@lists.freedesktop.org Subject: Re: [PATCH] drm/amdgpu: cleanup

[PATCH v2 2/2] drm/drv: drm_dev_unplug(): Move out drm_dev_put() call

2019-02-08 Thread Noralf Trønnes
This makes it possible to use drm_dev_unplug() with the upcoming devm_drm_dev_init() which will do drm_dev_put() in its release callback. Cc: Alex Deucher Cc: Christian König Cc: David (ChunMing) Zhou Cc: Dave Airlie Cc: Sean Paul Cc: Oleksandr Andrushchenko Cc: Daniel Vetter

[PATCH v2 0/2] drm/drv: Rework drm_dev_unplug() (was: Remove drm_dev_unplug())

2019-02-08 Thread Noralf Trønnes
This series makes drm_dev_unplug() compatible with the upcoming devm_drm_dev_init(), fixes a double drm_dev_unregister() situation and simplifies the drm_device ref handling wrt to the last fd closed after unregister. The first version of this patchset removed drm_dev_unplug(), see here for the

[PATCH v2 1/2] drm: Fix drm_release() and device unplug

2019-02-08 Thread Noralf Trønnes
If userspace has open fd(s) when drm_dev_unplug() is run, it will result in drm_dev_unregister() being called twice. First in drm_dev_unplug() and then later in drm_release() through the call to drm_put_dev(). Since userspace already holds a ref on drm_device through the drm_minor, it's not

Re: [PATCH] drm/amdgpu: cleanup amdgpu_ih_process a bit more

2019-02-08 Thread Christian König
Ping? Just a minor cleanup without functional change. Am 16.01.19 um 15:32 schrieb Christian König: Remove the callback and call the dispatcher directly. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c | 6 ++-- drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h | 4 +--

Re: [PATCH] drm/sched: Always trace the dependencies we wait on, to fix a race.

2019-02-08 Thread Christian König
Am 08.02.19 um 00:10 schrieb Eric Anholt: "Koenig, Christian" writes: Am 07.12.18 um 20:16 schrieb Eric Anholt: The entity->dependency can go away completely once we've called drm_sched_entity_add_dependency_cb() (if the cb is called before we get around to tracing). The tracepoint is more

Re: [PATCH 1/4] drm/amdgpu: Add helper to wait for a reservation using a sync object

2019-02-08 Thread Koenig, Christian
Am 07.02.19 um 20:53 schrieb Kuehling, Felix: > Creates a temporary sync object to wait for the reservation. This > generalizes amdgpu_vm_wait_pd. > > Signed-off-by: Felix Kuehling For this one it might be better to name this function amdgpu_bo_sync_wait and add it to amdgpu_object.c. Just