[PATCH] drm: amd: display: fix kernel-doc struct warning

2020-04-19 Thread Randy Dunlap
Fix a kernel-doc warning of missing struct field desription: ../drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h:331: warning: Function parameter or member 'hdcp_workqueue' not described in 'amdgpu_display_manager' Fixes: 52704fcaf74b ("drm/amd/display: Initialize HDCP work queue") Signed-off-b

[PATCH] drm: amdgpu: fix kernel-doc struct warning

2020-04-19 Thread Randy Dunlap
Fix a kernel-doc warning of missing struct field desription: ../drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c:92: warning: Function parameter or member 'vm' not described in 'amdgpu_vm_eviction_lock' Fixes: a269e44989f3 ("drm/amdgpu: Avoid reclaim fs while eviction lock") Signed-off-by: Randy Dunlap C

[PATCH] drm/amd/display: remove unneeded conversion to bool

2020-04-19 Thread Jason Yan
The '==' expression itself is bool, no need to convert it to bool again. This fixes the following coccicheck warning: drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c:485:66-71: WARNING: conversion to bool not needed here drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c:896:68-73: WARNING: c

Re:Re: [PATCH] drm/amdgpu: Return more error codes in amdgpu_connector_set_property()

2020-04-19 Thread 赵军奎
发件人:Markus Elfring 发送日期:2020-04-19 17:34:47 收件人:Bernard Zhao ,amd-gfx@lists.freedesktop.org,dri-de...@lists.freedesktop.org,Alex Deucher ,"Christian König" ,Chunming Zhou 抄送人:Andrzej Pietrasiewicz ,Daniel Vetter ,David Airlie ,Dhinakaran Pandiyan ,"José Roberto de Souza" ,Lyude Paul ,Neil

Reg. Adaptive Sync feature in xf86-video-amdgpu

2020-04-19 Thread uday kiran pichika
Hello Team, I'm working on adding Adaptive Sync feature in Xserver/modesetting. When understanding the existing AMD's implementation, I've few doubts regarding the vrr property being set on the Window from MESA. I have made the modifications in xserver/modesetting but when i launch the applicatio

Re:Re: [PATCH] drm/amdgpu: Reduce a lock scope in amdgpu_amdkfd_gpuvm_free_memory_of_gpu()

2020-04-19 Thread 赵军奎
From: Markus Elfring Date: 2020-04-19 17:05:07 To: Bernard Zhao ,amd-gfx@lists.freedesktop.org,dri-de...@lists.freedesktop.org,Alex Deucher ,"Christian König" ,Chunming Zhou ,"Felix Kühling" Cc: ker...@vivo.com,linux-ker...@vger.kernel.org,Daniel Vetter ,David Airlie Subject: Re: [PATCH

RE: [PATCH] drm/amdgpu: refine kiq read register

2020-04-19 Thread Liu, Monk
Christian >>> Well I was under the assumption that this is actually what is done here. If that is not the case the patch is a rather clear NAK. <<< There are two kinds of problems in the current KIQ reading reg, Yintian tend to fix one of them but not all ... The first problem is : During the

RE: [PATCH] drm/amd/powerplay: update smu12_driver_if.h to align with pmfw

2020-04-19 Thread Huang, Ray
[AMD Official Use Only - Internal Distribution Only] Acked-by: Huang Rui -Original Message- From: Liang, Prike Sent: Monday, April 20, 2020 10:11 AM To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander ; Huang, Ray ; Liang, Prike Subject: [PATCH] drm/amd/powerplay: update smu12_d

[PATCH] drm/amdgpu: Fix kernel panic while gpu recovery

2020-04-19 Thread xinhui pan
Ras error occurs while gpu recovery. We can not add its list head to two lists at same time. Signed-off-by: xinhui pan --- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/dr

RE: [PATCH] drm/amdgpu: refine kiq read register

2020-04-19 Thread Tao, Yintian
Hi Felix Many thanks for your review. I have modified it according to your comments and suggestion. Best Regards Yintian Tao -Original Message- From: Kuehling, Felix Sent: 2020年4月17日 23:39 To: Tao, Yintian ; Liu, Monk Cc: amd-gfx@lists.freedesktop.org Subject: Re: [PATCH] drm/amdgpu:

[PATCH] drm/amd/powerplay: update smu12_driver_if.h to align with pmfw

2020-04-19 Thread Prike Liang
Update the smu12_driver_if.h header to follow the pmfw release. Signed-off-by: Prike Liang Reviewed-by: Alex Deucher --- .../gpu/drm/amd/powerplay/inc/smu12_driver_if.h| 40 ++ 1 file changed, 25 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/

[PATCH] drm/amdkfd: Track GPU memory utilization per process

2020-04-19 Thread Mukul Joshi
Track GPU memory usage on a per process basis and report it through sysfs. Signed-off-by: Mukul Joshi --- drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 12 ++ drivers/gpu/drm/amd/amdkfd/kfd_priv.h| 7 drivers/gpu/drm/amd/amdkfd/kfd_process.c | 51 ++-- 3 files chan

Re:Re: [PATCH] drm/amdgpu: Remove an unnecessary condition check in reserve_bo_and_cond_vms()

2020-04-19 Thread 赵军奎
发件人:Markus Elfring 发送日期:2020-04-19 02:18:06 收件人:Bernard Zhao ,Alex Deucher ,"Christian König" ,amd-gfx@lists.freedesktop.org,dri-de...@lists.freedesktop.org 抄送人:"Felix Kühling" ,linux-ker...@vger.kernel.org,opensource.ker...@vivo.com,Chunming Zhou ,Daniel Vetter ,David Airlie 主题:Re: [PAT

Re: [PATCH] drm/amdgpu: Reduce a lock scope in amdgpu_amdkfd_gpuvm_free_memory_of_gpu()

2020-04-19 Thread Markus Elfring
> Maybe we could reduce the mutex_lock(&mem->lock)`s protected code area, > and noneed to protect pr_debug. I suggest to improve the commit message. Would you like to adjust the patch subject? Do you imagine that data synchronisation should evolve in other ways? Regards, Markus _

[PATCH] amdgpu_cs_bo_handles_chunk, remove check info NULL branch

2020-04-19 Thread Bernard Zhao
kvfree ensure that the null pointer will do nothing. If addr is NULL, first is_vmalloc_addr will not enter, and kfree function just return when addr is NULL. There will be no risk here. Signed-off-by: Bernard Zhao --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 3 +-- 1 file changed, 1 insertion(+)

Re: [PATCH] drm/amdgpu: Remove an unnecessary null pointer check in amdgpu_cs_bo_handles_chunk()

2020-04-19 Thread Markus Elfring
> kvfree ensure that the null pointer will do nothing. I suggest to improve the commit message. Would you like to adjust the patch subject? Are you looking for further questionable condition checks? … > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c > @@ -98,8 +98,7 @@ static int amdgpu_cs_bo_han

[PATCH] amdgpu_connector_set_property, fix error branch not return errno

2020-04-19 Thread Bernard Zhao
The "if(!encoder)" branch return the same value 0 of the success branch, maybe return -EINVAL is more better. Signed-off-by: Bernard Zhao w --- drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/amd/am

Re: [PATCH] drm/amdgpu: Remove an unnecessary condition check in reserve_bo_and_cond_vms()

2020-04-19 Thread Markus Elfring
> There is no need to if check again, Thanks for this information. * Should the function name be mentioned in this change description? * Would you like to adjust the patch subject? > maybe we could merge into the above else branch. I suggest to reconsider this wording. … > +++ b/drivers/gpu

Re: [PATCH] drm/amdgpu: Return more error codes in amdgpu_connector_set_property()

2020-04-19 Thread Markus Elfring
> The "if(!encoder)" branch return the same value 0 of the success > branch, maybe return -EINVAL is more better. I suggest to improve the commit message. * Would you like to adjust the patch subject? * How do you think about to add the tag “Fixes” because of adjustments for the exception hand

Re: [PATCH] drm/amdgpu: refine kiq read register

2020-04-19 Thread Christian König
Am 17.04.20 um 17:39 schrieb Felix Kuehling: Am 2020-04-17 um 2:53 a.m. schrieb Yintian Tao: According to the current kiq read register method, there will be race condition when using KIQ to read register if multiple clients want to read at same time just like the expample below: 1. client-A sta

Re: [PATCH 05/35] drm/amd/display: Remove byte swapping for dmcub abm config table

2020-04-19 Thread Christian König
Am 17.04.20 um 23:43 schrieb Rodrigo Siqueira: Hi, Wyatt made the below patch for fixing this issue. I can apply it on top of this patchset if you all agree. [Why] Current code does not guarantee the correct endianness of memory being copied to fw, specifically in the case where cpu isn't littl

Re: [PATCH 05/35] drm/amd/display: Remove byte swapping for dmcub abm config table

2020-04-19 Thread Christian König
Am 17.04.20 um 17:40 schrieb Harry Wentland: On 2020-04-17 8:09 a.m., Christian König wrote: Am 17.04.20 um 12:43 schrieb Michel Dänzer: On 2020-04-17 11:22 a.m., Christian König wrote: Agreed, just wanted to reply as well since I think something is not correctly understood here. The cpu_to_b

RE: [PATCH] drm/amdgpu: replace DRM prefix with PCI device info for gfx/mmhub

2020-04-19 Thread Chen, Guchun
[AMD Public Use] Reviewed-by: Guchun Chen Regards, Guchun -Original Message- From: Dennis Li Sent: Saturday, April 18, 2020 12:11 PM To: amd-gfx@lists.freedesktop.org; Deucher, Alexander ; Zhou1, Tao ; Zhang, Hawking ; Chen, Guchun Cc: Li, Dennis Subject: [PATCH] drm/amdgpu: repla