Re: [PATCH 06/59] drm/prime: Actually remove DRIVER_PRIME everywhere

2019-06-14 Thread Sam Ravnborg
Hi Daniel. Minor nitpick.. > diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c > index 65d599065709..4fd09a9ad67a 100644 > --- a/drivers/gpu/drm/i915/i915_drv.c > +++ b/drivers/gpu/drm/i915/i915_drv.c > @@ -3193,7 +3193,7 @@ static struct drm_driver driver = { >

Re: [PATCH] drm/amd/display: fix compilation error

2019-06-13 Thread Sam Ravnborg
Hi Alex. On Wed, Jun 12, 2019 at 10:35:26PM -0400, Alex Deucher wrote: > On Wed, Jun 12, 2019 at 10:34 PM Hariprasad Kelam > wrote: > > > > this patch fixes below compilation error > > > > drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c: In > > function

Re: [PATCH v1 01/10] drm: fix build errors with drm_print.h

2019-06-11 Thread Sam Ravnborg
Hi Daniel. > > > > drm_print.h uses DRM_NAME - which is defined only in uapi/drm/drm.h. > > The error is seen when you include drm_print.h and not much other drm > > header files. > > Tiday we rely on other drm header files to pull in drm.h. > > > > Notice - the error only manifest itself when

Re: [PATCH v1 01/10] drm: fix build errors with drm_print.h

2019-06-11 Thread Sam Ravnborg
Hi Daniel. On Tue, Jun 11, 2019 at 10:39:11AM +0200, Daniel Vetter wrote: > On Mon, Jun 10, 2019 at 12:07:48AM +0200, Sam Ravnborg wrote: > > drm_print.h requires to fix build when macros are used. > > Pull in the header file in drm_print.h so users do not have to do it. >

Re: [PATCH v1 0/10] drm/amd: drop use of drmP.h

2019-06-10 Thread Sam Ravnborg
Hi Alex. > > Series is: > Reviewed-by: Alex Deucher > I'm fine to have this go through either drm-misc or my tree. Thanks, pushed to drm-misc-next. I ended up with a merge error in drm-tip that I dunno how to work with. Help would be appreciated. (I also wrote this on irc) It is getting late

Re: [PATCH v1 0/7] drm/radeon: drop obsolete header files

2019-06-10 Thread Sam Ravnborg
Hi Alex. > > Series is: > Reviewed-by: Alex Deucher > > Feel free to take it through drm-misc if you want, otherwise, let me > know and I'll take it through my tree. Applied to drm-misc-next. I had accidently left a few empty lines that checkpatch complained about. I fixed these when I

[PATCH v1 06/10] drm/amd: drop use of drmP.h from all header files

2019-06-09 Thread Sam Ravnborg
Drop use of the deprecated drmP.h header file from all amd header files. This makes it a more smooth process to get rid of drmP.h in the .c files. Added include files and forwards as appropriate. Signed-off-by: Sam Ravnborg Cc: Alex Deucher Cc: "Christian König" Cc: "David

[PATCH v1 03/10] drm/amd: drop use of drmp.h in os_types.h

2019-06-09 Thread Sam Ravnborg
Drop use of the deprecated drmP.h from display/dc/os_types.h Fix all fallout after this change. Most of the fixes was adding a missing include of vmalloc.h. Signed-off-by: Sam Ravnborg Cc: Alex Deucher Cc: "Christian König" Cc: "David (ChunMing) Zhou" Cc: David Airli

[PATCH v1 08/10] drm/amd: drop use of drmP.h in display/

2019-06-09 Thread Sam Ravnborg
Drop all uses of drmP.h in drm/amd/display/. Fix fallout. Signed-off-by: Sam Ravnborg Cc: Alex Deucher Cc: "Christian König" Cc: "David (ChunMing) Zhou" Cc: David Airlie Cc: Daniel Vetter --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 +++- drivers

[PATCH v1 10/10] drm/amd: drop use of drmP.h in remaining files

2019-06-09 Thread Sam Ravnborg
With this commit drm/amd/ has no longer any uses of the deprecated drmP.h header file. Signed-off-by: Sam Ravnborg Cc: Alex Deucher Cc: "Christian König" Cc: "David (ChunMing) Zhou" Cc: David Airlie Cc: Daniel Vetter --- drivers/gpu/drm/amd/amdgpu/atombios_crtc.c

[PATCH v1 04/10] drm/amd: drop use of drmP.h in amdgpu.h

2019-06-09 Thread Sam Ravnborg
Delete the unused drmP.h from amdgpu.h. Fix fallout in various files. Signed-off-by: Sam Ravnborg Cc: Alex Deucher Cc: "Christian König" Cc: "David (ChunMing) Zhou" Cc: David Airlie Cc: Daniel Vetter --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4 +

[PATCH v1 09/10] drm/amd: drop use of drmP.h in amdgpu/amdgpu*

2019-06-09 Thread Sam Ravnborg
Drop use of drmP.h in all files named amdgpu* in drm/amd/amdgpu/ Fix fallout. Signed-off-by: Sam Ravnborg Cc: Alex Deucher Cc: "Christian König" Cc: "David (ChunMing) Zhou" Cc: David Airlie Cc: Daniel Vetter --- drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 2

[PATCH v1 05/10] drm/amd: drop use of drmP.h in atom.h

2019-06-09 Thread Sam Ravnborg
Drop use of the deprecated drmP.h header from atom.h Fix fallout in various files. Signed-off-by: Sam Ravnborg Cc: Alex Deucher Cc: "Christian König" Cc: "David (ChunMing) Zhou" Cc: David Airlie Cc: Daniel Vetter --- drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c |

[PATCH v1 07/10] drm/amd: drop use of drmP.h in powerplay/

2019-06-09 Thread Sam Ravnborg
Delete the only include of drmP.h in powerplay/. Signed-off-by: Sam Ravnborg Cc: Alex Deucher Cc: "Christian König" Cc: "David (ChunMing) Zhou" Cc: David Airlie Cc: Daniel Vetter --- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 4 ++-- 1 file changed, 2 insertions(+),

[PATCH v1 02/10] drm/amd: drop dependencies on drm_os_linux.h

2019-06-09 Thread Sam Ravnborg
Fix so no files in drm/amd/ depends on the deprecated drm_os_linux.h header file. It was done manually: - remove drm_os_linux.h from drmP.h - fix all build errros Signed-off-by: Sam Ravnborg Cc: Alex Deucher Cc: "Christian König" Cc: "David (ChunMing) Zhou" Cc: Davi

[PATCH v1 01/10] drm: fix build errors with drm_print.h

2019-06-09 Thread Sam Ravnborg
drm_print.h requires to fix build when macros are used. Pull in the header file in drm_print.h so users do not have to do it. Signed-off-by: Sam Ravnborg Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul Cc: David Airlie Cc: Daniel Vetter --- include/drm/drm_print.h | 2 ++ 1 file

[PATCH v1 0/10] drm/amd: drop use of drmP.h

2019-06-09 Thread Sam Ravnborg
files was re-arranged, but in general the changes are kept to a minimum. When adding new include files the different blocks of include failes are seperated by empty lines. This account for some of the added lines. Sam Sam Ravnborg (10): drm: fix build errors with drm_print.h drm

[PATCH v1 7/7] drm/radeon: drop use of drmP.h (2/2)

2019-06-08 Thread Sam Ravnborg
Drop use of drmP.h in remaining .c files. To ease review a little the drmP.h removal was divided in two commits. Signed-off-by: Sam Ravnborg Cc: Alex Deucher Cc: "Christian König" Cc: "David (ChunMing) Zhou" Cc: David Airlie Cc: Daniel Vetter --- drivers/gpu/drm/ra

[PATCH v1 6/7] drm/radeon: drop use of drmP.h (1/2)

2019-06-08 Thread Sam Ravnborg
Drop use of drmP.h in all .c files named radeon*c. To ease review a little drmP.h removal was divided in two commits. Signed-off-by: Sam Ravnborg Cc: Alex Deucher Cc: "Christian König" Cc: "David (ChunMing) Zhou" Cc: David Airlie Cc: Daniel Vetter --- drivers/gpu/drm/

[PATCH v1 0/7] drm/radeon: drop obsolete header files

2019-06-08 Thread Sam Ravnborg
of drm-misc-next, but applies clean to drm-next-5.3-wip branch of the agd5f git tree. Sam Sam Ravnborg (7): drm: drm_crtc.h self-contained drm: drm_debugfs.h self-contained drm/radeon: drop dependency on drm_os_linux.h drm/radeon: drop drmP.h from header files drm

[PATCH v1 3/7] drm/radeon: drop dependency on drm_os_linux.h

2019-06-08 Thread Sam Ravnborg
The drm_os_linux.h header file is deprecated. Drop all uses of symbols from this file. All macros are just opencoded. A few adjustments to include files was required as the obsolete drm_os_linux.h included these headers. Signed-off-by: Sam Ravnborg Cc: Alex Deucher Cc: "Christian König

[PATCH v1 4/7] drm/radeon: drop drmP.h from header files

2019-06-08 Thread Sam Ravnborg
To ease conversion of .c files drop include of drmP.h from all header files. And fix-up build errors caused by this. Signed-off-by: Sam Ravnborg Cc: Alex Deucher Cc: "Christian König" Cc: "David (ChunMing) Zhou" Cc: David Airlie Cc: Daniel Vetter --- drivers/g

[PATCH v1 1/7] drm: drm_crtc.h self-contained

2019-06-08 Thread Sam Ravnborg
While removing drmP.h from drm/radeon a few files ended up including drm_crtc.h as the first file. This failed build due to a missing dependency in drm_crtc.h. Add the missing include file. Signed-off-by: Sam Ravnborg Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul Cc: David Airlie Cc

[PATCH v1 5/7] drm/radeon: prepare header files for drmP.h removal

2019-06-08 Thread Sam Ravnborg
While removing drmP.h from all .c files the list of header files are also sorted alphabetically. To allow this adjust the header files to pull in the dependencies they needed to allow this. Signed-off-by: Sam Ravnborg Cc: Alex Deucher Cc: "Christian König" Cc: "David (Chun

[PATCH v1 2/7] drm: drm_debugfs.h self-contained

2019-06-08 Thread Sam Ravnborg
While removing drmP.h from drm/radeon a few files ended up including drm_debugfs.h as the first file. This failed build due to missing dependencies in drm_debugfs.h. Add the missing include files. Signed-off-by: Sam Ravnborg Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul Cc: David

drop drmP.h usage? [Was: [pull] amdgpu, amdkfd drm-next-5.3]

2019-05-30 Thread Sam Ravnborg
Hi Alex et all. > - Various cleanups Any chance to persuade one of you guys to sweep through the amd / raedeon tree and drop use of the deprecated header drmP.h? Status at the moment (drm-misc-next): $git grep drmP | cut -d '/' -f 1 | uniq -c | sort -n | tail -n 10 11 meson 12

Re: [PATCH 07/10] drm/amd/display: use ttm_eu_reserve_buffers instead of amdgpu_bo_reserve v2

2019-05-28 Thread Sam Ravnborg
Hi Christian. On Tue, May 28, 2019 at 06:25:54PM +0200, Christian König wrote: > From: Chunming Zhou > > add ticket for display bo, so that it can preempt busy bo. > > v2: fix stupid rebase error > > Change-Id: I9f031cdcc8267de00e819ae303baa0a52df8ebb9 What is this? I do not recall seeing

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

2019-02-27 Thread Sam Ravnborg
. > > [1]: https://patchwork.kernel.org/patch/9632347/ > > Signed-off-by: Masahiro Yamada Patch looks good: Reviewed-by: Sam Ravnborg > --- > > I put all gpu/drm changes into a single patch because > they are trivial conversion. > > Please let me know if I nee

Re: [PATCH] drm: Split out drm_probe_helper.h

2019-01-23 Thread Sam Ravnborg
Hi Daniel. On Thu, Jan 17, 2019 at 10:03:34PM +0100, Daniel Vetter wrote: > Having the probe helper stuff (which pretty much everyone needs) in > the drm_crtc_helper.h file (which atomic drivers should never need) is > confusing. Split them out. > > To make sure I actually achieved the goal here

Re: [PATCH] drm: Split out drm_probe_helper.h

2019-01-21 Thread Sam Ravnborg
Hi Daniel et al. > > > > Yeah the drm_crtc_helper.h header is a bit the miniature drmP.h for legacy > > kms drivers. Just removing it from all the atomic drivers caused lots of > > fallout, I expect even more if you entirely remove the includes it has. > > Maybe a todo, care to pls create that

Re: [PATCH] drm: Split out drm_probe_helper.h

2019-01-17 Thread Sam Ravnborg
On Thu, Jan 17, 2019 at 05:45:41PM +0100, Daniel Vetter wrote: > On Wed, Jan 16, 2019 at 07:10:18PM +0100, Sam Ravnborg wrote: > > Hi Daniel. > > > > > v5: Actually try to sort them, and while at it, sort all the ones I > > > touch. > > > > Applied th

Re: [PATCH] drm: Split out drm_probe_helper.h

2019-01-16 Thread Sam Ravnborg
any build errros and I somehow lost the motivation. > include/drm/drm_probe_helper.h| 27 +++ This on the other hand is fine - as expected as this is a new file. But the above is just some random comments so: Acked-by:

<    1   2