Re: [Intel-gfx] [PATCH v2] drm: prefix header search paths with $(srctree)/

2019-04-25 Thread Dave Airlie
Daniel, drm-misc-next-fixes? Dave. On Fri, 26 Apr 2019 at 12:25, wrote: > > Hi Dave, > > > -Original Message- > > From: Dave Airlie [mailto:airl...@gmail.com] > > Sent: Friday, April 26, 2019 11:19 AM > > To: Yamada, Masahiro/山田 真弘 > > Cc: David Airlie ; Daniel Vetter ; > > dri-devel ;

Re: [Intel-gfx] [PATCH v2] drm: prefix header search paths with $(srctree)/

2019-04-25 Thread Dave Airlie
On Fri, 26 Apr 2019 at 11:46, Masahiro Yamada wrote: > > Hi. > > > On Fri, Mar 29, 2019 at 8:37 PM Masahiro Yamada > wrote: > > > > Currently, the Kbuild core manipulates header search paths in a crazy > > way [1]. > > > > To fix this mess, I want all Makefiles to add explicit $(srctree)/ to > >

Re: [PATCH v3 12/26] compat_ioctl: move more drivers to compat_ptr_ioctl

2019-04-25 Thread Johannes Berg
On Thu, 2019-04-25 at 17:55 +0200, Arnd Bergmann wrote: > On Thu, Apr 25, 2019 at 5:35 PM Al Viro wrote: > > > > On Thu, Apr 25, 2019 at 12:21:53PM -0300, Mauro Carvalho Chehab wrote: > > > > > If I understand your patch description well, using compat_ptr_ioctl > > > only works if the driver is

Re: [PATCH v3 12/26] compat_ioctl: move more drivers to compat_ptr_ioctl

2019-04-25 Thread Arnd Bergmann
On Thu, Apr 25, 2019 at 5:35 PM Al Viro wrote: > > On Thu, Apr 25, 2019 at 12:21:53PM -0300, Mauro Carvalho Chehab wrote: > > > If I understand your patch description well, using compat_ptr_ioctl > > only works if the driver is not for s390, right? > > No; s390 is where "oh, just set ->compat_ioct

Re: [PATCH v3 12/26] compat_ioctl: move more drivers to compat_ptr_ioctl

2019-04-25 Thread Al Viro
On Thu, Apr 25, 2019 at 12:21:53PM -0300, Mauro Carvalho Chehab wrote: > If I understand your patch description well, using compat_ptr_ioctl > only works if the driver is not for s390, right? No; s390 is where "oh, just set ->compat_ioctl same as ->unlocked_ioctl and be done with that; compat_ptr

Re: [PATCH v3 12/26] compat_ioctl: move more drivers to compat_ptr_ioctl

2019-04-25 Thread Al Viro
On Thu, Apr 25, 2019 at 05:55:23PM +0200, Arnd Bergmann wrote: > On Thu, Apr 25, 2019 at 5:35 PM Al Viro wrote: > > > > On Thu, Apr 25, 2019 at 12:21:53PM -0300, Mauro Carvalho Chehab wrote: > > > > > If I understand your patch description well, using compat_ptr_ioctl > > > only works if the drive

Re: [PATCH v3 12/26] compat_ioctl: move more drivers to compat_ptr_ioctl

2019-04-25 Thread Mauro Carvalho Chehab
Em Thu, 25 Apr 2019 16:35:34 +0100 Al Viro escreveu: > On Thu, Apr 25, 2019 at 12:21:53PM -0300, Mauro Carvalho Chehab wrote: > > > If I understand your patch description well, using compat_ptr_ioctl > > only works if the driver is not for s390, right? > > No; s390 is where "oh, just set ->co

Re: [PATCH v3 12/26] compat_ioctl: move more drivers to compat_ptr_ioctl

2019-04-25 Thread Arnd Bergmann
On Thu, Apr 25, 2019 at 5:22 PM Mauro Carvalho Chehab wrote: > Em Tue, 16 Apr 2019 22:25:33 +0200 Arnd Bergmann escreveu: > > If I understand your patch description well, using compat_ptr_ioctl > only works if the driver is not for s390, right? No, the purpose of compat_ptr_ioctl() is to make su

Re: [PATCH v3 12/26] compat_ioctl: move more drivers to compat_ptr_ioctl

2019-04-25 Thread Mauro Carvalho Chehab
Em Tue, 16 Apr 2019 22:25:33 +0200 Arnd Bergmann escreveu: > The .ioctl and .compat_ioctl file operations have the same prototype so > they can both point to the same function, which works great almost all > the time when all the commands are compatible. > > One exception is the s390 architectur

Re: [PATCH 1/3] drm/amd/powerplay: expose Vega20 realtime memory utilization

2019-04-25 Thread Deucher, Alexander
Split this first patch into two, one to add the new sensor type and vega20 implementation, and one to add the new sysfs file. Then make the sysfs file change the last one in the series. With that fixed, the series is: Reviewed-by: Alex Deucher From: amd-gfx on

Re: [PATCH] drm/amdgpu: update Vega20 sdma golden settings

2019-04-25 Thread Deucher, Alexander
Are you sure these were actually removed? I feel like they may have been added to the golden registers in the driver, but they never actually got updated in the golden database, but the driver is still responsible for programming them correctly. I don't remember the details. Alex

Re: [PATCH 2/2] drm/amdgpu: power down the Vega20 VCE engine on request

2019-04-25 Thread Deucher, Alexander
Series is: Reviewed-by: Alex Deucher From: amd-gfx on behalf of Evan Quan Sent: Thursday, April 25, 2019 3:52 AM To: amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander; Quan, Evan; Liu, Leo Subject: [PATCH 2/2] drm/amdgpu: power down the Vega20 VCE engine on r

Re: [PATCH] drm/amdgpu: value of amdgpu_sriov_vf cannot be set into F32_POLL_ENABLE

2019-04-25 Thread Deucher, Alexander
Reviewed-by: Alex Deucher Please fix up your mail client or git config so your email address matches your signed off line. E.g., wentalou vs. Wentao Lou Thanks, Alex From: amd-gfx on behalf of wentalou Sent: Thursday, April 25, 2019 12:50 AM To: amd-gfx@l

[PATCH 3/3] drm/amd/powerplay: expose SMU7 asics realtime memory utilization

2019-04-25 Thread Evan Quan
Enable realtime memory utilization report on SMU7 asics. Change-Id: I0c090624048848aac69b78e7bdfb31e763cc6140 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c| 5 - drivers/gpu/drm/amd/powerplay/inc/smumgr.h | 1 + drivers/gpu/drm/amd/powerpl

[PATCH 2/3] drm/amd/powerplay: expose Vega12 realtime memory utilization

2019-04-25 Thread Evan Quan
Enable realtime memory utilization report on Vega12. Change-Id: I5175ebc5ffeae58989cc9cec6ddbd58bf9b1b5b0 Signed-off-by: Evan Quan --- .../gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/powerp

[PATCH 1/3] drm/amd/powerplay: expose Vega20 realtime memory utilization

2019-04-25 Thread Evan Quan
A new sysfs interface mem_busy_percent is added for telling how busy the VRAM is(in percentage). Change-Id: I302f7594000a1ad609d71563d8ab3872f37bfb8d Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c| 40 +++ .../gpu/drm/amd/include/kgd_pp_interface.h

[PATCH] drm/amdgpu: update Vega20 sdma golden settings

2019-04-25 Thread Evan Quan
Update Vega20 sdma golden settings. Change-Id: I0117aaa44ef4cd9e63a49375bd1028bf727224ef Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c index

[PATCH 1/2] drm/amdgpu: expose VCE 4.0 powergate interface

2019-04-25 Thread Evan Quan
SMU will use this interface to power down the VCE engine. Change-Id: I93a5887ddd425d8eb25b0cff812033a61f319593 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/amdgpu/vce_v4_0.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v4_

[PATCH 2/2] drm/amdgpu: power down the Vega20 VCE engine on request

2019-04-25 Thread Evan Quan
Power down the engine also along with disabling its DPM functionality. Change-Id: Ia0940b40d01da84269621d8a914c923fbf1b7da4 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/gp