Re: [PATCH 1/4] drm/edid: Pass connector to AVI inforframe functions

2018-12-03 Thread Andrzej Hajda
On 03.12.2018 22:38, Ville Syrjälä wrote: > On Thu, Nov 29, 2018 at 10:08:07AM +0100, Andrzej Hajda wrote: >> On 21.11.2018 19:19, Laurent Pinchart wrote: >>> Hi Ville, >>> >>> Thank you for the patch. >>> >>> On Tuesday, 20 November 2018 18:13:42 EET Ville Syrjala wrote: From: Ville Syrjälä

Re: [PATCH -next] drm/amdgpu: Fix return value check in amdgpu_allocate_static_csa()

2018-12-03 Thread Zhu, Rex
Hi Yongjun, This issue has been fixed. Thanks. Best Regards Rex commit 51f1f6f51712aade68cabb145ed8bab4a6c3997e Author: Rex Zhu Date: Fri Nov 23 18:52:21 2018 +0800 drm/amdgpu: Fix static checker warning drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c:49

Re: [PATCH] drm/sched: Fix a use-after-free when tracing the scheduler.

2018-12-03 Thread Koenig, Christian
Am 03.12.18 um 21:14 schrieb Eric Anholt: > With DEBUG_SLAB (poisoning on free) enabled, I could quickly produce > an oops when tracing V3D. Good catch, but the solution is a clear NAK. drm_sched_entity_add_dependency_cb() can result in setting entity->dependency to NULL. That in turn can lead

Re: [PATCH 1/4] drm/edid: Pass connector to AVI inforframe functions

2018-12-03 Thread Andrzej Hajda
On 03.12.2018 22:48, Ville Syrjälä wrote: > On Thu, Nov 29, 2018 at 09:46:16AM +0100, Andrzej Hajda wrote: >> Quite late, hopefully not too late. >> >> >> On 21.11.2018 12:51, Ville Syrjälä wrote: >>> On Wed, Nov 21, 2018 at 01:40:43PM +0200, Jani Nikula wrote: > return; > diff

Re: [PATCH -next] drm/amdgpu: Fix return value check in amdgpu_allocate_static_csa()

2018-12-03 Thread zhoucm1
On 2018年12月04日 14:39, Wei Yongjun wrote: Fix the return value check which testing the wrong variable in amdgpu_allocate_static_csa(). Fixes: 7946340fa389 ("drm/amdgpu: Move csa related code to separate file") Signed-off-by: Wei Yongjun --- drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c | 2 +- 1

RE: [PATCH 02/11] dma-buf: add new dma_fence_chain container v2

2018-12-03 Thread Zhou, David(ChunMing)
> -Original Message- > From: Christian König > Sent: Monday, December 03, 2018 9:56 PM > To: Zhou, David(ChunMing) ; Koenig, Christian > ; dri-de...@lists.freedesktop.org; amd- > g...@lists.freedesktop.org > Subject: Re: [PATCH 02/11] dma-buf: add new dma_fence_chain container > v2 > >

Re: [PATCH 2/2] drm/amdgpu/powerplay: fix clock stretcher limits on polaris

2018-12-03 Thread Zhang, Jerry(Junwei)
On 12/4/18 12:21 AM, Alex Deucher wrote: Adjust limits for newer polaris variants. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git

Re: [PATCH 1/2] drm/amdgpu/powerplay: fix mclk switch limit on polaris

2018-12-03 Thread Zhang, Jerry(Junwei)
On 12/4/18 12:21 AM, Alex Deucher wrote: Update switch limit on newer polaris variants. This may fix flickering with high refresh rates with mclk switching enabled. Signed-off-by: Alex Deucher Reviewed-by: Junwei Zhang --- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 5 - 1

Re: [PATCH 2/2] drm/amdgpu: replace get_user_pages with HMM address mirror helpers v2

2018-12-03 Thread Kuehling, Felix
See comments inline. I didn't review the amdgpu_cs and amdgpu_gem parts as I don't know them very well. On 2018-12-03 3:19 p.m., Yang, Philip wrote: > Use HMM helper function hmm_vma_fault() to get physical pages backing > userptr and start CPU page table update track of those pages. Then use >

Re: [PATCH 0/4] KFD upstreaming Nov 2018, part 2

2018-12-03 Thread Kuehling, Felix
Ping. Any comments, R-b, A-b? On 2018-11-20 10:07 p.m., Kuehling, Felix wrote: > This round adds support for more ROCm memory manager features: > * VRAM limit checking to avoid overcommitment > * DMABuf import for graphics interoperability > * Support for mapping doorbells into GPUVM address

Re: [PATCH 1/4] drm/edid: Pass connector to AVI inforframe functions

2018-12-03 Thread Ville Syrjälä
On Thu, Nov 29, 2018 at 09:46:16AM +0100, Andrzej Hajda wrote: > Quite late, hopefully not too late. > > > On 21.11.2018 12:51, Ville Syrjälä wrote: > > On Wed, Nov 21, 2018 at 01:40:43PM +0200, Jani Nikula wrote: > >> > >>> return; > >>> diff --git

Re: [PATCH 1/4] drm/edid: Pass connector to AVI inforframe functions

2018-12-03 Thread Ville Syrjälä
On Thu, Nov 29, 2018 at 10:08:07AM +0100, Andrzej Hajda wrote: > On 21.11.2018 19:19, Laurent Pinchart wrote: > > Hi Ville, > > > > Thank you for the patch. > > > > On Tuesday, 20 November 2018 18:13:42 EET Ville Syrjala wrote: > >> From: Ville Syrjälä > >> > >> Make life easier for drivers by

Re: [PATCH] drm/amdgpu: Update XGMI node print

2018-12-03 Thread Liu, Shaoyun
I'm ok with that change . Regards shaoyun.liu On 2018-12-03 3:32 p.m., Kuehling, Felix wrote: > Shaoyun, FYI > > > Acked-by: Felix Kuehling > > > On 2018-12-03 3:28 p.m., Deucher, Alexander wrote: >> Acked-by: Alex Deucher >> >>

Re: [Intel-gfx] [PATCH RFC 2/5] cgroup: Add mechanism to register vendor specific DRM devices

2018-12-03 Thread Kuehling, Felix
On 2018-11-28 4:14 a.m., Joonas Lahtinen wrote: > Quoting Ho, Kenny (2018-11-27 17:41:17) >> On Tue, Nov 27, 2018 at 4:46 AM Joonas Lahtinen >> wrote: >>> I think a more abstract property "% of GPU (processing power)" might >>> be a more universal approach. One can then implement that through

Re: [PATCH] drm/amdgpu: Update XGMI node print

2018-12-03 Thread Kuehling, Felix
Shaoyun, FYI Acked-by: Felix Kuehling On 2018-12-03 3:28 p.m., Deucher, Alexander wrote: > > Acked-by: Alex Deucher > > > *From:* amd-gfx on behalf of > Andrey Grodzovsky > *Sent:* Monday, December 3, 2018 3:03:41 PM

Re: [PATCH] drm/amdgpu: Update XGMI node print

2018-12-03 Thread Deucher, Alexander
Acked-by: Alex Deucher From: amd-gfx on behalf of Andrey Grodzovsky Sent: Monday, December 3, 2018 3:03:41 PM To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander; Grodzovsky, Andrey Subject: [PATCH] drm/amdgpu: Update XGMI node print

[PATCH 2/2] drm/amdgpu: replace get_user_pages with HMM address mirror helpers v2

2018-12-03 Thread Yang, Philip
Use HMM helper function hmm_vma_fault() to get physical pages backing userptr and start CPU page table update track of those pages. Then use hmm_vma_range_done() to check if those pages are updated before amdgpu_cs_submit for gfx or before user queues are resumed for kfd. If userptr pages are

[PATCH 1/2] drm/amdgpu: use HMM mirror callback to replace mmu notifier v5

2018-12-03 Thread Yang, Philip
Replace our MMU notifier with hmm_mirror_ops.sync_cpu_device_pagetables callback. Enable CONFIG_HMM and CONFIG_HMM_MIRROR as a dependency in DRM_AMDGPU_USERPTR Kconfig. It supports both KFD userptr and gfx userptr paths. The depdent HMM patchsets from Jérôme Glisse are all merged into 4.20.0

[PATCH] drm/sched: Fix a use-after-free when tracing the scheduler.

2018-12-03 Thread Eric Anholt
With DEBUG_SLAB (poisoning on free) enabled, I could quickly produce an oops when tracing V3D. Signed-off-by: Eric Anholt --- I think this patch is correct (though maybe a bigger refactor could avoid the extra get/put?), but I've still got this with "vblank_mode=0 perf record -a -e v3d:.\* -e

[PATCH] drm/amdgpu: Update XGMI node print

2018-12-03 Thread Andrey Grodzovsky
amdgpu_xgmi_update_topology is called both on device registration and reset. Fix misleading print since the device is added only once to the hive on registration and not on reset. Signed-off-by: Andrey Grodzovsky --- drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 2 +- 1 file changed, 1

[PATCH] drm/amd/powerplay: rv dal-pplib interface refactor powerplay part

2018-12-03 Thread hersen wu
[WHY] clarify dal input parameters to pplib interface, remove un-used parameters. dal knows exactly which parameters needed and their effects at pplib and smu sides. current dal sequence for dcn1_update_clock to pplib: 1.smu10_display_clock_voltage_request for dcefclk

Re: [Intel-gfx] [PATCH RFC 2/5] cgroup: Add mechanism to register vendor specific DRM devices

2018-12-03 Thread Matt Roper
On Mon, Dec 03, 2018 at 06:46:01AM +, Ho, Kenny wrote: > Hey Matt, > > On Fri, Nov 30, 2018 at 5:22 PM Matt Roper wrote: > > I think Joonas is describing something closer in > > design to the cgroup-v2 "cpu" controller, which partitions the general > > time/usage allocated to via cgroup;

Re: [PATCH 1/3] dma-buf: add dma_fence_get_stub

2018-12-03 Thread Christian König
Am 03.12.18 um 18:06 schrieb Chris Wilson: Quoting Christian König (2018-12-03 16:12:14) Am 03.12.18 um 17:08 schrieb Eric Anholt: Christian König writes: Extract of useful code from the timeline work. This provides a function to return a stub or dummy fence which is always signaled.

Re: [PATCH 1/3] dma-buf: add dma_fence_get_stub

2018-12-03 Thread Chris Wilson
Quoting Christian König (2018-12-03 16:12:14) > Am 03.12.18 um 17:08 schrieb Eric Anholt: > > Christian König writes: > > > >> Extract of useful code from the timeline work. This provides a function > >> to return a stub or dummy fence which is always signaled. > >> > >> Signed-off-by: Christian

Re: [PATCH 1/3] dma-buf: add dma_fence_get_stub

2018-12-03 Thread Eric Anholt
Christian König writes: > Am 03.12.18 um 17:08 schrieb Eric Anholt: >> Christian König writes: >> >>> Extract of useful code from the timeline work. This provides a function >>> to return a stub or dummy fence which is always signaled. >>> >>> Signed-off-by: Christian König >>> --- >>>

Re: [PATCH 02/11] drm/amdgpu: send IVs to the KFD only after processing them v2

2018-12-03 Thread Koenig, Christian
Ah! Never mind, now I see it what you mean! I accidentally added my debug change DRM_DEBUG->DRM_ERROR to this patch as well. Sorry for the noise, Christian. Am 03.12.18 um 17:35 schrieb Christian König: >> No. As far as I can tell, you're missing these two: >> >>

Re: [PATCH 02/11] drm/amdgpu: send IVs to the KFD only after processing them v2

2018-12-03 Thread Christian König
No. As far as I can tell, you're missing these two: GFX_9_0__SRCID__CP_BAD_OPCODE_ERROR (183) GFX_9_0__SRCID__SQ_INTERRUPT_ID (239) 239 is used for signaling events from shaders and can be very frequent. Triggering an error message on those interrupts would be bad. Mhm, then why didn't those

Re: [PATCH 02/11] drm/amdgpu: send IVs to the KFD only after processing them v2

2018-12-03 Thread Kuehling, Felix
On 2018-12-01 9:11 a.m., Christian König wrote: >> Won't this break VM fault handling in KFD? > No, we still send all VM faults to KFD after processing them. Only > filtered retries are not send to the KFD any more. OK, I missed that src->funcs->process returning 0 means "not handled", >0 means

Re: [PATCH 1/2] drm/amdgpu/gmc8: update MC firmware for polaris

2018-12-03 Thread Christian König
Am 03.12.18 um 15:47 schrieb Alex Deucher: Some variants require different MC firmware images. Reviewed-by: Junwei Zhang Signed-off-by: Alex Deucher Acked-by: Christian König for the series. --- drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 29 - 1 file changed,

[PATCH 2/2] drm/amdgpu/powerplay: fix clock stretcher limits on polaris

2018-12-03 Thread Alex Deucher
Adjust limits for newer polaris variants. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c

[PATCH 1/2] drm/amdgpu/powerplay: fix mclk switch limit on polaris

2018-12-03 Thread Alex Deucher
Update switch limit on newer polaris variants. This may fix flickering with high refresh rates with mclk switching enabled. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

Re: [PATCH 1/3] dma-buf: add dma_fence_get_stub

2018-12-03 Thread Chris Wilson
Quoting Eric Anholt (2018-12-03 16:08:40) > Christian König writes: > > > Extract of useful code from the timeline work. This provides a function > > to return a stub or dummy fence which is always signaled. > > > > Signed-off-by: Christian König > > --- > > drivers/dma-buf/dma-fence.c | 36

Re: [PATCH 1/3] dma-buf: add dma_fence_get_stub

2018-12-03 Thread Christian König
Am 03.12.18 um 17:08 schrieb Eric Anholt: Christian König writes: Extract of useful code from the timeline work. This provides a function to return a stub or dummy fence which is always signaled. Signed-off-by: Christian König --- drivers/dma-buf/dma-fence.c | 36

Re: [PATCH 1/3] dma-buf: add dma_fence_get_stub

2018-12-03 Thread Eric Anholt
Christian König writes: > Extract of useful code from the timeline work. This provides a function > to return a stub or dummy fence which is always signaled. > > Signed-off-by: Christian König > --- > drivers/dma-buf/dma-fence.c | 36 +++- >

Re: [PATCH 2/3] drm/syncobj: use dma_fence_get_stub

2018-12-03 Thread Chris Wilson
Quoting Christian König (2018-12-03 13:07:58) > Extract of useful code from the timeline work. Let's use just a single > stub fence instance instead of allocating a new one all the time. > > Signed-off-by: Chunming Zhou > Signed-off-by: Christian König Reviewed-by: Chris Wilson -Chris

Re: [PATCH 1/3] dma-buf: add dma_fence_get_stub

2018-12-03 Thread Chris Wilson
Quoting Christian König (2018-12-03 13:07:57) > Extract of useful code from the timeline work. This provides a function > to return a stub or dummy fence which is always signaled. > > Signed-off-by: Christian König Reviewed-by: Chris Wilson -Chris ___

Re: [PATCH v3 1/3] drm/connector: Add generic underscan properties

2018-12-03 Thread Eric Anholt
Boris Brezillon writes: > On Mon, 3 Dec 2018 16:40:11 +0200 > Ville Syrjälä wrote: > >> On Thu, Nov 22, 2018 at 12:23:29PM +0100, Boris Brezillon wrote: >> > @@ -924,6 +978,29 @@ struct drm_connector { >> > */ >> >struct drm_property_blob *path_blob_ptr; >> > >> > + /** >> > + *

Re: [PATCH v3 1/3] drm/connector: Add generic underscan properties

2018-12-03 Thread Boris Brezillon
On Mon, 3 Dec 2018 16:40:11 +0200 Ville Syrjälä wrote: > On Thu, Nov 22, 2018 at 12:23:29PM +0100, Boris Brezillon wrote: > > @@ -924,6 +978,29 @@ struct drm_connector { > > */ > > struct drm_property_blob *path_blob_ptr; > > > > + /** > > +* @underscan_mode_property: Optional

[PATCH 2/2] drm/amdgpu/gmc8: always load MC firmware in the driver

2018-12-03 Thread Alex Deucher
Some power features rely on the driver loaded version so always load the MC firmware from the driver even if the vbios loaded a version already. Reviewed-by: Junwei Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 9 + 1 file changed, 1 insertion(+), 8

[PATCH 1/2] drm/amdgpu/gmc8: update MC firmware for polaris

2018-12-03 Thread Alex Deucher
Some variants require different MC firmware images. Reviewed-by: Junwei Zhang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 29 - 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c

Re: [PATCH v3 1/3] drm/connector: Add generic underscan properties

2018-12-03 Thread Ville Syrjälä
On Thu, Nov 22, 2018 at 12:23:29PM +0100, Boris Brezillon wrote: > @@ -924,6 +978,29 @@ struct drm_connector { >*/ > struct drm_property_blob *path_blob_ptr; > > + /** > + * @underscan_mode_property: Optional connector underscan mode. Used by > + * the driver to scale

Re: [PATCH v3 3/3] drm/amdgpu: Implement concurrent asic reset for XGMI.

2018-12-03 Thread Deucher, Alexander
Patches 1, 2: Reviewed-by: Alex Deucher Patch 3: Acked-by: Alex Deucher From: amd-gfx on behalf of Andrey Grodzovsky Sent: Friday, November 30, 2018 4:41:10 PM To: amd-gfx@lists.freedesktop.org; Deucher, Alexander; Wang, Ken;

Re: [PATCH 02/11] dma-buf: add new dma_fence_chain container v2

2018-12-03 Thread Christian König
Am 03.12.18 um 14:44 schrieb Chunming Zhou: 在 2018/12/3 21:28, Christian König 写道: Am 03.12.18 um 14:18 schrieb Chunming Zhou: 在 2018/12/3 19:00, Christian König 写道: Am 03.12.18 um 06:25 schrieb zhoucm1: On 2018年11月28日 22:50, Christian König wrote: Lockless container implementation similar

Re: [PATCH 02/11] dma-buf: add new dma_fence_chain container v2

2018-12-03 Thread Chunming Zhou
在 2018/12/3 21:28, Christian König 写道: > Am 03.12.18 um 14:18 schrieb Chunming Zhou: >> >> 在 2018/12/3 19:00, Christian König 写道: >>> Am 03.12.18 um 06:25 schrieb zhoucm1: On 2018年11月28日 22:50, Christian König wrote: > Lockless container implementation similar to a dma_fence_array,

Re: [PATCH 02/11] dma-buf: add new dma_fence_chain container v2

2018-12-03 Thread Christian König
Am 03.12.18 um 14:18 schrieb Chunming Zhou: 在 2018/12/3 19:00, Christian König 写道: Am 03.12.18 um 06:25 schrieb zhoucm1: On 2018年11月28日 22:50, Christian König wrote: Lockless container implementation similar to a dma_fence_array, but with only two elements per node and automatic garbage

[PATCH 1/3] dma-buf: add dma_fence_get_stub

2018-12-03 Thread Christian König
Extract of useful code from the timeline work. This provides a function to return a stub or dummy fence which is always signaled. Signed-off-by: Christian König --- drivers/dma-buf/dma-fence.c | 36 +++- include/linux/dma-fence.h | 1 + 2 files changed, 36

Re: [PATCH] drm/amdgpu: NULL check before some freeing functions is not needed.

2018-12-03 Thread Koenig, Christian
Am 02.12.18 um 21:52 schrieb Thomas Meyer: > NULL check before some freeing functions is not needed. > > Signed-off-by: Thomas Meyer Reviewed-by: Christian König > --- > > diff -u -p a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c > b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c > ---

Re: [PATCH] drm/amdgpu: enlarge maximum waiting time of KIQ

2018-12-03 Thread Christian König
Am 03.12.18 um 04:00 schrieb wentalou: KIQ in VF’s init delayed by another VF’s reset, which would cause late_init failed occasionally. MAX_KIQ_REG_TRY enlarged from 20 to 80 would fix this issue. Change-Id: Iac680af3cbd6afe4f8e408785f0795e1b23dba83 Signed-off-by: wentalou Your full name

Re: [PATCH 02/11] dma-buf: add new dma_fence_chain container v2

2018-12-03 Thread Christian König
Am 03.12.18 um 06:25 schrieb zhoucm1: On 2018年11月28日 22:50, Christian König wrote: Lockless container implementation similar to a dma_fence_array, but with only two elements per node and automatic garbage collection. v2: properly document dma_fence_chain_for_each, add