[PATCH 00/10] udmabuf: misc fixes.

2018-09-11 Thread Gerd Hoffmann
Gerd Hoffmann (10): udmabuf: sort headers, drop uapi/ path prefix udmabuf: improve map_udmabuf error handling udmabuf: use pgoff_t for pagecount udmabuf: constify udmabuf_ops udmabuf: constify udmabuf_create args udmabuf: add MEMFD_CREATE dependency udmabuf: rework limits udmabuf:

[PATCH 09/10] udmabuf: use EBADFD in case we didn't got a memfd

2018-09-11 Thread Gerd Hoffmann
Reported-by: Laurent Pinchart Signed-off-by: Gerd Hoffmann --- drivers/dma-buf/udmabuf.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c index ec46513a47..1862bb6bed 100644 --- a/drivers/dma-buf/udmabuf.c +++ b/driv

[PATCH 02/10] udmabuf: improve map_udmabuf error handling

2018-09-11 Thread Gerd Hoffmann
Reported-by: Laurent Pinchart Signed-off-by: Gerd Hoffmann --- drivers/dma-buf/udmabuf.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c index e63d301bcb..19bd918209 100644 --- a/drivers/dma-buf/udm

[PATCH 08/10] udmabuf: improve udmabuf_create error handling

2018-09-11 Thread Gerd Hoffmann
Reported-by: Laurent Pinchart Signed-off-by: Gerd Hoffmann --- drivers/dma-buf/udmabuf.c | 25 - 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c index cb99a7886a..ec46513a47 100644 --- a/drivers/dma-buf

[PATCH 01/10] udmabuf: sort headers, drop uapi/ path prefix

2018-09-11 Thread Gerd Hoffmann
Reported-by: Laurent Pinchart Signed-off-by: Gerd Hoffmann --- drivers/dma-buf/udmabuf.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c index 2e8502250a..e63d301bcb 100644 --- a/drivers/dma-buf/udmabuf.c

[PATCH 06/10] udmabuf: add MEMFD_CREATE dependency

2018-09-11 Thread Gerd Hoffmann
udmabuf builds without it, but if userspace can not create memfd handles in the first place it is rather pointless to include it. Signed-off-by: Gerd Hoffmann --- drivers/dma-buf/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma-buf/Kconfig b/drivers/dma-buf/Kconfig index 3

[PATCH 04/10] udmabuf: constify udmabuf_ops

2018-09-11 Thread Gerd Hoffmann
Reported-by: Laurent Pinchart Signed-off-by: Gerd Hoffmann --- drivers/dma-buf/udmabuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c index ec22f203b5..44c3c1bf20 100644 --- a/drivers/dma-buf/udmabuf.c +++ b/drivers/dma

[PATCH 05/10] udmabuf: constify udmabuf_create args

2018-09-11 Thread Gerd Hoffmann
Reported-by: Laurent Pinchart Signed-off-by: Gerd Hoffmann --- drivers/dma-buf/udmabuf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c index 44c3c1bf20..0cf7e85585 100644 --- a/drivers/dma-buf/udmabuf.c +++ b/drivers

[PATCH 10/10] udmabuf: use ENOTTY for invalid ioctls

2018-09-11 Thread Gerd Hoffmann
Reported-by: Laurent Pinchart Signed-off-by: Gerd Hoffmann --- drivers/dma-buf/udmabuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c index 1862bb6bed..a543fd6ea1 100644 --- a/drivers/dma-buf/udmabuf.c +++ b/drivers/dma

Re: [PATCH 02/20] drm/arc: Use drm_fbdev_generic_setup()

2018-09-11 Thread Alexey Brodkin
Hi Noralf, On Sat, 2018-09-08 at 15:46 +0200, Noralf Trønnes wrote: > The CMA helper is already using the drm_fb_helper_generic_probe part of > the generic fbdev emulation. This patch makes full use of the generic > fbdev emulation by using its drm_client callbacks. This means that > drm_mode_conf

RE: [RFC PATCH] drm: Add new DIRTY fb flags to pass interlaced alternate fields

2018-09-11 Thread Satish Kumar Nagireddy
Hi Ville, Daniel, Thanks a lot for the reply. Some comments below. > -Original Message- > From: Daniel Vetter [mailto:daniel.vet...@ffwll.ch] On Behalf Of Daniel Vetter > Sent: Monday, September 10, 2018 1:28 PM > To: Ville Syrjälä > Cc: Satish Kumar Nagireddy ; dri- > de...@lists.freede

[PATCH -next] drm/omap: dss: Use PTR_ERR_OR_ZERO in hdmi_audio_register()

2018-09-11 Thread YueHaibing
Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: YueHaibing --- drivers/gpu/drm/omapdrm/dss/hdmi4.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/dss/hdmi4.c b/drivers/g

Re: [PATCH 4.19 regression fix 1/2] staging: vboxvideo: Fix IRQs no longer working

2018-09-11 Thread Nicholas Mc Guire
On Mon, Sep 10, 2018 at 08:30:38PM +0200, Hans de Goede wrote: > Commit 1daddbc8dec5 ("staging: vboxvideo: Update driver to use > drm_dev_register.") replaced the obsolere drm_get_pci_dev() with > normal pci probe and remove functions. > > But the new vbox_pci_probe() is missing a pci_enable_devic

[PATCH -next] drm: Remove set but not used variable 'config'

2018-09-11 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/drm_plane.c: In function 'drm_mode_getplane_res': drivers/gpu/drm/drm_plane.c:475:26: warning: variable 'config' set but not used [-Wunused-but-set-variable] Signed-off-by: YueHaibing --- drivers/gpu/drm/drm_plane.c | 2 -- 1 file

Re: [PATCH xf86-video-amdgpu] Add checking color management properties

2018-09-11 Thread Michel Dänzer
Hi Aaron, thanks for the patch. Moving to the amd-gfx mailing list, where xf86-video-amdgpu patches are reviewed. Comments inline below. On 2018-09-10 1:14 p.m., Aaron Liu wrote: > Add gamma_lut/degamma_lut/ctm checking before pushing > staged color management properties on the CRTC. > If abo

Re: [PATCH 5/5] ARM: sun8i: dts: drop A64 HDMI PHY fallback compatible from R40 DT

2018-09-11 Thread Jernej Škrabec
Dne ponedeljek, 10. september 2018 ob 16:23:54 CEST je Maxime Ripard napisal(a): > On Fri, Sep 07, 2018 at 03:22:34PM +0800, Icenowy Zheng wrote: > > The R40 HDMI PHY seems to be different to the A64 one, the A64 one > > has no input mux, but the R40 one has. > > > > Drop the A64 fallback compati

Re: omap4: support for manually updated display

2018-09-11 Thread Tony Lindgren
* Laurent Pinchart [180910 12:28]: > On Monday, 10 September 2018 14:59:23 EEST Tomi Valkeinen wrote: > > A large omapdrm change set from Laurent was merged into drm-next, and > > I'm certain they conflict with this series. Laurent also has continued > > that work, and while those new patches have

Re: [PATCH 4.19 regression fix 2/2] staging: vboxvideo: Change address of scanout buffer on page-flip

2018-09-11 Thread Steve Longerbeam
Hi Hans, On 09/10/2018 11:30 AM, Hans de Goede wrote: Commit 2408898e3b6c ("staging: vboxvideo: Add page-flip support") only calls vbox_crtc_do_set_base() on page-flips, but despite that function's name it only pins the new fb, unpins the old fb and sets vbox_crtc->fb_offset. It does not progra

[PATCH -next] drm/omap: omap_display_timings: Use PTR_ERR_OR_ZERO in hdmi5_core_init()

2018-09-11 Thread YueHaibing
Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: YueHaibing --- drivers/gpu/drm/omapdrm/dss/hdmi5_core.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/dss/hdmi5_core.c b

[PATCH 4/4] staging: vboxvideo: Drop vbox_bo_unref() helper

2018-09-11 Thread Hans de Goede
Drop the unnecessary vbox_bo_unref() helper and directly call ttm_bo_put() at the single call site. Signed-off-by: Hans de Goede --- drivers/staging/vboxvideo/vbox_main.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/staging/vboxvideo/vbox_main.c b/d

[PATCH 3/4] staging: vboxvideo: Remove vboxfb_create_object() wrapper

2018-09-11 Thread Hans de Goede
The vboxfb_create_object() wrapper really does nothing more then just call vbox_gem_create(), so this commit drops it, replacing it with a direct call to vbox_gem_create(). Signed-off-by: Hans de Goede --- drivers/staging/vboxvideo/vbox_fb.c | 22 +- 1 file changed, 1 inserti

[PATCH 1/4] staging: vboxvideo: Fix modeset / page_flip error handling

2018-09-11 Thread Hans de Goede
The default settings for Linux vms created in VirtualBox allocate only 16M of videomem. When running fullscreen on a 1920x1080 (or bigger) monitor this is not a lot. When using GNOME3 on Wayland we have already been seeing out of video memory errors for a while now. After commit 2408898e3b6c ("sta

[PATCH 2/4] staging: vboxvideo: Skip currrent crtc when updating crtcs

2018-09-11 Thread Hans de Goede
In vbox_crtc_set_base_and_mode() we update all the crtcs when the single_framebuffer setting changes, including the one on which vbox_crtc_set_base_and_mode() was called, so we end up doing vbox_do_modeset() on it twice. This commit skips the crtc on which we are updating in the loop to update the

Re: [PATCH 4.19 regression fix 1/2] staging: vboxvideo: Fix IRQs no longer working

2018-09-11 Thread Dan Carpenter
On Tue, Sep 11, 2018 at 06:48:27AM +, Nicholas Mc Guire wrote: > On Mon, Sep 10, 2018 at 08:30:38PM +0200, Hans de Goede wrote: > > Commit 1daddbc8dec5 ("staging: vboxvideo: Update driver to use > > drm_dev_register.") replaced the obsolere drm_get_pci_dev() with > > normal pci probe and remove

Re: [PATCH 1/2] drm/ttm: set ttm_buffer_object pointer as null after it's freed

2018-09-11 Thread Huang Rui
On Mon, Sep 10, 2018 at 09:10:00PM +0800, Koenig, Christian wrote: > Am 10.09.2018 um 15:05 schrieb Tom St Denis: > > On 2018-09-10 9:04 a.m., Christian König wrote: > >> Hi Tom, > >> > >> I'm talking about adding new printks to figure out what the heck is > >> going wrong here. > >> > >> Thanks,

Re: [RFC PATCH] drm: Add new DIRTY fb flags to pass interlaced alternate fields

2018-09-11 Thread Daniel Vetter
On Tue, Sep 11, 2018 at 02:54:22AM +, Satish Kumar Nagireddy wrote: > Hi Ville, Daniel, > > Thanks a lot for the reply. Some comments below. > > > -Original Message- > > From: Daniel Vetter [mailto:daniel.vet...@ffwll.ch] On Behalf Of Daniel > > Vetter > > Sent: Monday, September 10,

[Bug 107898] "kfd: Failed to resume IOMMU for device 1002:15dd" on Raven Ridge

2018-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107898 Bug ID: 107898 Summary: "kfd: Failed to resume IOMMU for device 1002:15dd" on Raven Ridge Product: DRI Version: DRI git Hardware: x86-64 (AMD64) OS: Linux

Re: [PATCH -next] drm: Remove set but not used variable 'config'

2018-09-11 Thread Daniel Vetter
On Tue, Sep 11, 2018 at 06:20:14AM +, YueHaibing wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/gpu/drm/drm_plane.c: In function 'drm_mode_getplane_res': > drivers/gpu/drm/drm_plane.c:475:26: warning: > variable 'config' set but not used [-Wunused-but-set-variable] > > S

Re: [PATCH 03/10] udmabuf: use pgoff_t for pagecount

2018-09-11 Thread Daniel Vetter
On Tue, Sep 11, 2018 at 08:59:14AM +0200, Gerd Hoffmann wrote: > Reported-by: Laurent Pinchart > Signed-off-by: Gerd Hoffmann TIL pgoff_t stands for page cache offset. I think we're pretty bad at using that within i915 :-) On the entire series Acked-by: Daniel Vetter I did try to review in de

Re: [PATCH 1/4] fbdev: Drop FBINFO_CAN_FORCE_OUTPUT flag

2018-09-11 Thread Daniel Vetter
On Mon, Sep 10, 2018 at 02:48:43PM +0200, Bartlomiej Zolnierkiewicz wrote: > > On 08/22/2018 10:54 AM, Daniel Vetter wrote: > > This was only added for the drm's fbdev emulation support, so that it > > would try harder to show the Oops. > > > > Unfortunately this never really worked reliably, and

Re: [PATCH 4.19 regression fix 1/2] staging: vboxvideo: Fix IRQs no longer working

2018-09-11 Thread Dan Carpenter
On Tue, Sep 11, 2018 at 07:41:10AM +, Nicholas Mc Guire wrote: > On Tue, Sep 11, 2018 at 08:53:35AM +0200, Hans de Goede wrote: > > Hi, > > > > On 11-09-18 08:48, Nicholas Mc Guire wrote: > > >On Mon, Sep 10, 2018 at 08:30:38PM +0200, Hans de Goede wrote: > > >>Commit 1daddbc8dec5 ("staging: v

[PATCH v3 3/3] drm: add LG eDP panel to quirk database

2018-09-11 Thread Lee, Shawn C
The N value was computed by kernel driver that based on synchronous clock mode. But only specific N value (0x8000) would be acceptable for LG LP140WF6-SPM1 eDP panel which is running at asynchronous clock mode. With the other N value, Tcon will enter BITS mode and display black screen. Add this pan

[PATCH v3 2/3] drm: Change limited M/N quirk to constant N quirk.

2018-09-11 Thread Lee, Shawn C
Some DP dongles in particular seem to be fussy about too large link M/N values. Set specific value for N divider can resolve this issue per dongle vendor's comment. So configure N as constant value (0x8000) to instead of reduce M/N formula when specific DP dongle connected. v2: add more comments f

[PATCH v3 0/3] add LG panel to dpcd quirk database

2018-09-11 Thread Lee, Shawn C
Only specific N value (0x8000) would be acceptable for LG LP140WF6-SPM1 eDP panel which is running at asynchronous clock mode. With the other N value, it will enter BITS mode and display black screen. This patch series set constant N value for specific sink/branch device that would cover similar is

[PATCH v3 1/3] drm: Add support for device_id based detection.

2018-09-11 Thread Lee, Shawn C
DP quirk list just compare sink or branch device's OUI so far. That means particular vendor's products will be applied specific change. This change would confirm device_id the same or not. Then driver can implement some changes for branch/sink device that really need additional WA. v2: use sizeof

[Bug 105251] [Vega10] GPU lockup on boot: VMC page fault

2018-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105251 --- Comment #52 from zzyx...@gmail.com --- Created attachment 141522 --> https://bugs.freedesktop.org/attachment.cgi?id=141522&action=edit Logs + trace with patched mesa, plus example code which consistently triggers crash. I've been experienc

Re: [PATCH 1/4] fbdev: Drop FBINFO_CAN_FORCE_OUTPUT flag

2018-09-11 Thread Bartlomiej Zolnierkiewicz
On 09/11/2018 09:42 AM, Daniel Vetter wrote: > On Mon, Sep 10, 2018 at 02:48:43PM +0200, Bartlomiej Zolnierkiewicz wrote: >> >> On 08/22/2018 10:54 AM, Daniel Vetter wrote: >>> This was only added for the drm's fbdev emulation support, so that it >>> would try harder to show the Oops. >>> >>> Unfor

[Bug 107898] "kfd: Failed to resume IOMMU for device 1002:15dd" on Raven Ridge

2018-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107898 Marvin Damschen changed: What|Removed |Added Attachment #141520|text/x-log |text/plain mime type|

[Bug 107898] "kfd: Failed to resume IOMMU for device 1002:15dd" on Raven Ridge

2018-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107898 --- Comment #1 from Oded Gabbay --- Added Felix to CC -- You are receiving this mail because: You are the assignee for the bug.___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists

Re: [PATCH 01/10] udmabuf: sort headers, drop uapi/ path prefix

2018-09-11 Thread Laurent Pinchart
Hi Gerd, Thank you for the patch. On Tuesday, 11 September 2018 09:59:12 EEST Gerd Hoffmann wrote: > Reported-by: Laurent Pinchart > Signed-off-by: Gerd Hoffmann > --- > drivers/dma-buf/udmabuf.c | 17 - > 1 file changed, 8 insertions(+), 9 deletions(-) > > diff --git a/driver

Re: [PATCH 02/10] udmabuf: improve map_udmabuf error handling

2018-09-11 Thread Laurent Pinchart
Hi Gerd, Thank you for the patch. On Tuesday, 11 September 2018 09:59:13 EEST Gerd Hoffmann wrote: A commit message would be nice, for all patches in this series. > Reported-by: Laurent Pinchart > Signed-off-by: Gerd Hoffmann Reviewed-by: Reviewed-by: Laurent Pinchart > --- > drivers/dma-

Re: [PATCH 04/10] udmabuf: constify udmabuf_ops

2018-09-11 Thread Laurent Pinchart
Hi Gerd, Thank you for the patch. On Tuesday, 11 September 2018 09:59:15 EEST Gerd Hoffmann wrote: > Reported-by: Laurent Pinchart > Signed-off-by: Gerd Hoffmann Reviewed-by: Laurent Pinchart > --- > drivers/dma-buf/udmabuf.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff

Re: [PATCH 05/10] udmabuf: constify udmabuf_create args

2018-09-11 Thread Laurent Pinchart
Hi Gerd, Thank you for the patch. On Tuesday, 11 September 2018 09:59:16 EEST Gerd Hoffmann wrote: > Reported-by: Laurent Pinchart > Signed-off-by: Gerd Hoffmann > --- > drivers/dma-buf/udmabuf.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/dma-buf/udma

Re: [PATCH 06/10] udmabuf: add MEMFD_CREATE dependency

2018-09-11 Thread Laurent Pinchart
Hi Gerd, Thank you for the patch. On Tuesday, 11 September 2018 09:59:17 EEST Gerd Hoffmann wrote: > udmabuf builds without it, but if userspace can not create memfd > handles in the first place it is rather pointless to include it. Except perhaps for compile test coverage ? How about d

Re: [PATCH 07/10] udmabuf: rework limits

2018-09-11 Thread Laurent Pinchart
Hi Gerd, Thank you for the patch. On Tuesday, 11 September 2018 09:59:18 EEST Gerd Hoffmann wrote: > Create variable for the list length limit. Serves as documentation, > also allows to make it a module parameter if needed. > > Also add a total size limit. > > Signed-off-by: Gerd Hoffmann > -

Re: [PATCH 08/10] udmabuf: improve udmabuf_create error handling

2018-09-11 Thread Laurent Pinchart
Hi Gerd, Thank you for the patch. On Tuesday, 11 September 2018 09:59:19 EEST Gerd Hoffmann wrote: > Reported-by: Laurent Pinchart > Signed-off-by: Gerd Hoffmann Reviewed-by: Laurent Pinchart > --- > drivers/dma-buf/udmabuf.c | 25 - > 1 file changed, 12 insertions(+

Re: [PATCH 10/10] udmabuf: use ENOTTY for invalid ioctls

2018-09-11 Thread Laurent Pinchart
Hi Gerd, Thank you for the patch. On Tuesday, 11 September 2018 09:59:21 EEST Gerd Hoffmann wrote: > Reported-by: Laurent Pinchart > Signed-off-by: Gerd Hoffmann Reviewed-by: Laurent Pinchart > --- > drivers/dma-buf/udmabuf.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff

Re: [PATCH v7] Add udmabuf misc device

2018-09-11 Thread Laurent Pinchart
Hi Gerd, On Tuesday, 11 September 2018 09:50:14 EEST Gerd Hoffmann wrote: > Hi, > > >> +#define UDMABUF_CREATE _IOW('u', 0x42, struct udmabuf_create) > > > > Why do you start at 0x42 if you reserve the 0x40-0x4f range ? > > No particular strong reason, just that using 42 was less boring

[Bug 105251] [Vega10] GPU lockup on boot: VMC page fault

2018-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105251 --- Comment #53 from CheatCodesOfLife --- Created attachment 141524 --> https://bugs.freedesktop.org/attachment.cgi?id=141524&action=edit vega_crasher Logs + trace with patched mesa Hi Michel, Even with the chattr +S command, the buffer list

Re: [PATCH v7] Add udmabuf misc device

2018-09-11 Thread Daniel Vetter
On Tue, Sep 11, 2018 at 11:50 AM, Laurent Pinchart wrote: > Hi Gerd, > > On Tuesday, 11 September 2018 09:50:14 EEST Gerd Hoffmann wrote: >> Hi, >> >> >> +#define UDMABUF_CREATE _IOW('u', 0x42, struct udmabuf_create) >> > >> > Why do you start at 0x42 if you reserve the 0x40-0x4f range ? >

[Bug 199619] screen stays dark for long on bootup since kernel 4.17.0-rc2+

2018-09-11 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=199619 --- Comment #12 from Ant (untaintablean...@hotmail.co.uk) --- Elmar, did you have a look at my bug report from comment 4? Does installing something like rng-tools fix the problem? If it does, then you are suffering from the same, widespread, w

[PATCH] drm/sun4i: fix build failure with CONFIG_DRM_SUN8I_MIXER=m

2018-09-11 Thread Maxime Ripard
Having DRM_SUN4I built-in but DRM_SUN8I_MIXER as a loadable module results in a link error, as we try to access a symbol from the sun8i_tcon_top.ko module: ERROR: "sun8i_tcon_top_de_config" [drivers/gpu/drm/sun4i/sun4i-tcon.ko] undefined! ERROR: "sun8i_tcon_top_set_hdmi_src" [drivers/gpu/drm/sun4

[Bug 107889] colors are wrong on one screen with Radeon RX Vega M GL and Kernel 4.18

2018-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107889 --- Comment #5 from Mauro Carvalho Chehab --- Created attachment 141526 --> https://bugs.freedesktop.org/attachment.cgi?id=141526&action=edit Dmesg with Kernel 4.18.0 vanilla -- You are receiving this mail because: You are the assignee for t

[Bug 107889] colors are wrong on one screen with Radeon RX Vega M GL and Kernel 4.18

2018-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107889 --- Comment #6 from Mauro Carvalho Chehab --- (In reply to Alex Deucher from comment #4) > Can you bisect? Also please attach your dmesg output. Bisect didn't work. There is a regression between 4.17 and 4.18-rc4 on ext4fs that causes it fail

Re: [PATCH 00/20] drm/cma-helper drivers: Use drm_fbdev_generic_setup()

2018-09-11 Thread Noralf Trønnes
Cc: dri-devel and Sam (sorry about the slip) Den 10.09.2018 14.53, skrev Noralf Trønnes: Den 08.09.2018 15.46, skrev Noralf Trønnes: This patchset moves the drivers using the CMA helper fully over to the generic fbdev emulation. The unused fbdev code is removed from the CMA helper. Maxime a

[Bug 107889] colors are wrong on one screen with Radeon RX Vega M GL and Kernel 4.18

2018-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107889 --- Comment #7 from Mauro Carvalho Chehab --- (In reply to Mauro Carvalho Chehab from comment #5) > Created attachment 141526 [details] > Dmesg with Kernel 4.18.0 vanilla Forgot to mention, but the bug also happens on 4.18.0 vanilla. So, the bu

Re: [PATCH v7] Add udmabuf misc device

2018-09-11 Thread Gerd Hoffmann
> > >> +if (WARN_ON(vmf->pgoff >= ubuf->pagecount)) > > >> +return VM_FAULT_SIGBUS; > > > > > > Just curious, when do you expect this to happen ? > > > > It should not. If it actually happens it would be a bug somewhere, > > thats why the WARN_ON. > > But you seem to con

Re: [PATCH 2/4] vt: Remove vc_panic_force_write

2018-09-11 Thread Daniel Vetter
On Wed, Aug 22, 2018 at 10:59:19AM +0200, Greg Kroah-Hartman wrote: > On Wed, Aug 22, 2018 at 10:54:03AM +0200, Daniel Vetter wrote: > > It was only used by the panic support in fbcon, which is now gone. > > Remove this now dead code too. > > > > Cc: Greg Kroah-Hartman > > Cc: Kees Cook > > Cc:

Re: [Intel-gfx] [PATCH 1/4] fbdev: Drop FBINFO_CAN_FORCE_OUTPUT flag

2018-09-11 Thread Daniel Vetter
On Tue, Sep 11, 2018 at 10:47:34AM +0200, Bartlomiej Zolnierkiewicz wrote: > On 09/11/2018 09:42 AM, Daniel Vetter wrote: > > On Mon, Sep 10, 2018 at 02:48:43PM +0200, Bartlomiej Zolnierkiewicz wrote: > >> > >> On 08/22/2018 10:54 AM, Daniel Vetter wrote: > >>> This was only added for the drm's fbd

Re: [PATCH 08/20] drm/arm/hdlcd: Use drm_fbdev_generic_setup()

2018-09-11 Thread Liviu Dudau
On Sat, Sep 08, 2018 at 03:46:36PM +0200, Noralf Trønnes wrote: > The CMA helper is already using the drm_fb_helper_generic_probe part of > the generic fbdev emulation. This patch makes full use of the generic > fbdev emulation by using its drm_client callbacks. This means that > drm_mode_config_fu

Re: [PATCH 09/20] drm/arm/mali: Use drm_fbdev_generic_setup()

2018-09-11 Thread Liviu Dudau
On Sat, Sep 08, 2018 at 03:46:37PM +0200, Noralf Trønnes wrote: > The CMA helper is already using the drm_fb_helper_generic_probe part of > the generic fbdev emulation. This patch makes full use of the generic > fbdev emulation by using its drm_client callbacks. This means that > drm_mode_config_fu

Re: [PATCH v2] drm: Clarify DRM_MODE_REFLECT_X/Y documentation

2018-09-11 Thread Ville Syrjälä
On Mon, Sep 10, 2018 at 06:29:46PM +0100, Alexandru Gheorghe wrote: > DRM_MODE_REFLECT_X and DRM_MODE_REFLECT_Y meaning seems a bit unclear > to me, so try to clarify that with a bit of ascii graphics. > > Changes since v1: > - Move the ascii graphics in the kerneldoc where all plane > prope

[Bug 107889] colors are wrong on one screen with Radeon RX Vega M GL and Kernel 4.18

2018-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107889 --- Comment #8 from Michel Dänzer --- (In reply to Mauro Carvalho Chehab from comment #6) > Bisect didn't work. There is a regression between 4.17 and 4.18-rc4 on > ext4fs that causes it fail to mount a file system: There are ways to deal with

Re: [PATCH 08/20] drm/arm/hdlcd: Use drm_fbdev_generic_setup()

2018-09-11 Thread Noralf Trønnes
Den 11.09.2018 14.17, skrev Liviu Dudau: On Sat, Sep 08, 2018 at 03:46:36PM +0200, Noralf Trønnes wrote: The CMA helper is already using the drm_fb_helper_generic_probe part of the generic fbdev emulation. This patch makes full use of the generic fbdev emulation by using its drm_client callback

[PATCH v3 1/2] drm: Add library for shmem backed GEM objects

2018-09-11 Thread Noralf Trønnes
This adds a library for shmem backed GEM objects with the necessary drm_driver callbacks. Signed-off-by: Noralf Trønnes --- Changes since version 2: - Grammar (Sam Ravnborg) - s/drm_gem_shmem_put_pages_unlocked/drm_gem_shmem_put_pages_locked/ (Sam Ravnborg) - Add debug ouput in error path (Sam

[PATCH v3 2/2] drm/tinydrm: Switch from CMA to shmem buffers

2018-09-11 Thread Noralf Trønnes
This move makes tinydrm useful for more drivers. tinydrm doesn't need continuous memory, but at the time it was convenient to use the CMA library. The spi core can do dma on is_vmalloc() addresses making this possible. Cc: David Lechner Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/tinydrm/

[PATCH v3 0/2] drm: Add shmem GEM library

2018-09-11 Thread Noralf Trønnes
This patchset adds a library for shmem backed GEM objects and makes use of it in tinydrm. When I made tinydrm I used the CMA helper because it was very easy to use. July last year I learned that this limits which drivers to PRIME import from, since CMA requires continuous memory. tinydrm drivers d

Re: omap4: support for manually updated display

2018-09-11 Thread Pavel Machek
Hi! > > > A large omapdrm change set from Laurent was merged into drm-next, and > > > I'm certain they conflict with this series. Laurent also has continued > > > that work, and while those new patches haven't been sent for review yet, > > > I fear they'll also conflict with these. > > > > > > So

Re: backlight - chicken and egg challenge

2018-09-11 Thread Liviu Dudau
On Mon, Sep 10, 2018 at 09:27:24AM +0200, Boris Brezillon wrote: > Hi Sam, > > On Sat, 8 Sep 2018 22:17:55 +0200 > Sam Ravnborg wrote: > > > Hi all. > > > > When working on the DRM driver for Atmel LCDC the first approach > > was to use a MFD driver, that had two sub-drivers: > > - PWM dirver >

Re: [PATCH v2] drm: Clarify DRM_MODE_REFLECT_X/Y documentation

2018-09-11 Thread Alexandru-Cosmin Gheorghe
Hi Ville, On Tue, Sep 11, 2018 at 03:27:09PM +0300, Ville Syrjälä wrote: > On Mon, Sep 10, 2018 at 06:29:46PM +0100, Alexandru Gheorghe wrote: > > DRM_MODE_REFLECT_X and DRM_MODE_REFLECT_Y meaning seems a bit unclear > > to me, so try to clarify that with a bit of ascii graphics. > > > > Changes

Re: [PATCH 05/16] drm: rcar-du: lvds: D3/E3 support

2018-09-11 Thread jacopo mondi
Hi Laurent, On Tue, Sep 04, 2018 at 03:10:16PM +0300, Laurent Pinchart wrote: > The LVDS encoders in the D3 and E3 SoCs differ significantly from those > in the other R-Car Gen3 family members: > > - The LVDS PLL architecture is more complex and requires computing PLL > parameters manually. > -

[Bug 107880] Regression: System fails to boot on raven ridge 4.18 vs 4.19 rc

2018-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107880 --- Comment #9 from jam...@amd.com --- Hi Marvin, That is great! I want to check with you where this old VCN firmware came from. Did you install old AMD ROCm package on this system before? Best Regards! James Zhu -- You are receiving this m

Re: [PATCH 04/16] drm: bridge: thc63: Restrict modes based on hardware operating frequency

2018-09-11 Thread jacopo mondi
Hi Laurent, sorry, I might be confused but, On Tue, Sep 04, 2018 at 03:10:15PM +0300, Laurent Pinchart wrote: > The THC63LVD1024 is restricted to a pixel clock frequency in the range > of 8 to 135 MHz. Implement the bridge .mode_valid() operation > accordingly. > > Signed-off-by: Laurent Pincha

[Bug 107154] [drm] GPU recovery disabled.

2018-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107154 --- Comment #11 from kyle.de...@mykolab.com --- > systemd-udevd This is not systemd's fault, but indicative of something hanging in kernel land, which udevd ends up being blocked on. Experienced this a few major kernel releases ago, which were

[PATCH v2 13/13] udmabuf: add documentation

2018-09-11 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- include/uapi/linux/udmabuf.h | 50 +--- Documentation/driver-api/dma-buf.rst | 8 ++ 2 files changed, 55 insertions(+), 3 deletions(-) diff --git a/include/uapi/linux/udmabuf.h b/include/uapi/linux/udmabuf.h index 46b6

[PATCH v2 02/13] udmabuf: improve map_udmabuf error handling

2018-09-11 Thread Gerd Hoffmann
Reported-by: Laurent Pinchart Signed-off-by: Gerd Hoffmann Reviewed-by: Laurent Pinchart Acked-by: Daniel Vetter --- drivers/dma-buf/udmabuf.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c index

[PATCH v2 07/13] udmabuf: rework limits

2018-09-11 Thread Gerd Hoffmann
Create variable for the list length limit. Serves as documentation, also allows to make it a module parameter if needed. Also add a total size limit. Signed-off-by: Gerd Hoffmann Acked-by: Daniel Vetter --- drivers/dma-buf/udmabuf.c | 10 -- 1 file changed, 8 insertions(+), 2 deletion

[PATCH v2 03/13] udmabuf: use pgoff_t for pagecount

2018-09-11 Thread Gerd Hoffmann
Reported-by: Laurent Pinchart Signed-off-by: Gerd Hoffmann Acked-by: Daniel Vetter --- drivers/dma-buf/udmabuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c index 0d03367c57..d99a9b59d3 100644 --- a/drivers/dma-buf/ud

[PATCH v2 06/13] udmabuf: add MEMFD_CREATE dependency

2018-09-11 Thread Gerd Hoffmann
udmabuf builds without it, but if userspace can not create memfd handles in the first place it is rather pointless to include it, except for test builds. Signed-off-by: Gerd Hoffmann Acked-by: Daniel Vetter --- drivers/dma-buf/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/

[PATCH v2 04/13] udmabuf: constify udmabuf_ops

2018-09-11 Thread Gerd Hoffmann
Reported-by: Laurent Pinchart Signed-off-by: Gerd Hoffmann Reviewed-by: Laurent Pinchart Acked-by: Daniel Vetter --- drivers/dma-buf/udmabuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c index d99a9b59d3..e3560e840d

[PATCH v2 08/13] udmabuf: improve udmabuf_create error handling

2018-09-11 Thread Gerd Hoffmann
Reported-by: Laurent Pinchart Signed-off-by: Gerd Hoffmann Reviewed-by: Laurent Pinchart Acked-by: Daniel Vetter --- drivers/dma-buf/udmabuf.c | 25 - 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c i

[PATCH v2 01/13] udmabuf: sort headers, drop uapi/ path prefix

2018-09-11 Thread Gerd Hoffmann
Reported-by: Laurent Pinchart Signed-off-by: Gerd Hoffmann Reviewed-by: Laurent Pinchart Acked-by: Daniel Vetter --- drivers/dma-buf/udmabuf.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c index 2e850

[PATCH v2 12/13] udmabuf: use sizeof(variable) instead of sizeof(type)

2018-09-11 Thread Gerd Hoffmann
Reported-by: Laurent Pinchart Signed-off-by: Gerd Hoffmann --- drivers/dma-buf/udmabuf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c index 7a4fd2194d..92af9b5300 100644 --- a/drivers/dma-buf/udmabuf.c +++ b/drive

[PATCH v2 05/13] udmabuf: constify udmabuf_create args

2018-09-11 Thread Gerd Hoffmann
Reported-by: Laurent Pinchart Signed-off-by: Gerd Hoffmann Reviewed-by: Laurent Pinchart Acked-by: Daniel Vetter --- drivers/dma-buf/udmabuf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c index e3560e840d..4167da8

[PATCH v2 00/13] udmabuf: misc fixes.

2018-09-11 Thread Gerd Hoffmann
v2: review updates, add three new patches. Gerd Hoffmann (13): udmabuf: sort headers, drop uapi/ path prefix udmabuf: improve map_udmabuf error handling udmabuf: use pgoff_t for pagecount udmabuf: constify udmabuf_ops udmabuf: constify udmabuf_create args udmabuf: add MEMFD_CREATE depe

[PATCH v2 11/13] udmabuf: drop WARN_ON() check.

2018-09-11 Thread Gerd Hoffmann
Reported-by: Laurent Pinchart Signed-off-by: Gerd Hoffmann --- drivers/dma-buf/udmabuf.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c index b637a8be6d..7a4fd2194d 100644 --- a/drivers/dma-buf/udmabuf.c +++ b/drivers/dma-buf/udmabuf.c

[PATCH v2 10/13] udmabuf: use ENOTTY for invalid ioctls

2018-09-11 Thread Gerd Hoffmann
Reported-by: Laurent Pinchart Signed-off-by: Gerd Hoffmann Reviewed-by: Laurent Pinchart Acked-by: Daniel Vetter --- drivers/dma-buf/udmabuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c index 652707f993..b637a8be6d

[PATCH v2 09/13] udmabuf: use EBADFD in case we didn't got a memfd

2018-09-11 Thread Gerd Hoffmann
Reported-by: Laurent Pinchart Signed-off-by: Gerd Hoffmann Acked-by: Daniel Vetter --- drivers/dma-buf/udmabuf.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c index e821361566..652707f993 100644 --- a/drivers/dma

Re: [PATCH v2] drm: Clarify DRM_MODE_REFLECT_X/Y documentation

2018-09-11 Thread Ville Syrjälä
On Tue, Sep 11, 2018 at 02:20:22PM +0100, Alexandru-Cosmin Gheorghe wrote: > Hi Ville, > > On Tue, Sep 11, 2018 at 03:27:09PM +0300, Ville Syrjälä wrote: > > On Mon, Sep 10, 2018 at 06:29:46PM +0100, Alexandru Gheorghe wrote: > > > DRM_MODE_REFLECT_X and DRM_MODE_REFLECT_Y meaning seems a bit uncl

[Bug 107001] hard system freeze with mesa 18.1.x on AMD RX 580

2018-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107001 --- Comment #3 from cla...@mathr.co.uk --- So, I got some freezes with Linux 4.18.5 and Mesa 18.0.5 (the version of Mesa that I assumed was bug free), and so far (24 hours uptime) no freezes with Linux 4.18.7 and Mesa 18.1.7-1. The Linux change

[Bug 200531] amdgpu: *ERROR* REG_WAIT timeout when a display is put to sleep

2018-09-11 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=200531 Benjamin Berg (benja...@sipsolutions.net) changed: What|Removed |Added CC||benja...@sipso

Re: [PATCH v2 05/13] udmabuf: constify udmabuf_create args

2018-09-11 Thread Laurent Pinchart
Hi Gerd, Thank you for the patch. On Tuesday, 11 September 2018 16:42:08 EEST Gerd Hoffmann wrote: > Reported-by: Laurent Pinchart > Signed-off-by: Gerd Hoffmann > Reviewed-by: Laurent Pinchart > Acked-by: Daniel Vetter > --- > drivers/dma-buf/udmabuf.c | 4 ++-- > 1 file changed, 2 insertio

Re: [PATCH 07/16] drm: rcar-du: Use LVDS PLL clock as dot clock when possible

2018-09-11 Thread jacopo mondi
Hi Laurent, On Tue, Sep 04, 2018 at 03:10:18PM +0300, Laurent Pinchart wrote: > On selected SoCs, the DU can use the clock output by the LVDS encoder > PLL as its input dot clock. This feature is optional, but on the D3 and > E3 SoC it is often the only way to obtain a precise dot clock frequency,

Re: [PATCH v2 11/13] udmabuf: drop WARN_ON() check.

2018-09-11 Thread Laurent Pinchart
Hi Gerd, Thank you for the patch. On Tuesday, 11 September 2018 16:42:14 EEST Gerd Hoffmann wrote: Still no commit message ? :-) > Reported-by: Laurent Pinchart > Signed-off-by: Gerd Hoffmann Reviewed-by: Laurent Pinchart > --- > drivers/dma-buf/udmabuf.c | 3 --- > 1 file changed, 3 dele

Re: [PATCH v2 12/13] udmabuf: use sizeof(variable) instead of sizeof(type)

2018-09-11 Thread Laurent Pinchart
Hi Gerd, Thank you for the patch. On Tuesday, 11 September 2018 16:42:15 EEST Gerd Hoffmann wrote: > Reported-by: Laurent Pinchart > Signed-off-by: Gerd Hoffmann Reviewed-by: Laurent Pinchart > --- > drivers/dma-buf/udmabuf.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) >

[Bug 107880] Regression: System fails to boot on raven ridge 4.18 vs 4.19 rc

2018-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107880 --- Comment #10 from Marvin Damschen --- (In reply to jam...@amd.com from comment #9) > Did you install old AMD ROCm package on this system before? Yes, I did. I now believe that removing all traces of rocm-dkms eliminated the root of the probl

Re: [PATCH] etnaviv: setup missing dma_mask

2018-09-11 Thread Eugeniy Paltsev
Hi Lucas, Maybe you have any comments or remarks about this patch? And if you don't could you please apply it. Thanks! On Thu, 2018-08-23 at 19:38 +0300, Eugeniy Paltsev wrote: > As for today etnaviv device doesn't setup dma_mask. > The etnaviv device is a virtual device not represented in DT >

Re: [PATCH 08/16] drm: rcar-du: Enable configurable DPAD0 routing on Gen3

2018-09-11 Thread jacopo mondi
Hi Laurent, On Tue, Sep 04, 2018 at 03:10:19PM +0300, Laurent Pinchart wrote: > All Gen3 SoCs supported so far have a fixed association between DPAD0 > and DU channels, which led to hardcoding that association when writing > the corresponding hardware register. The D3 and E3 will break that > mech

Re: [PATCH v2] drm: Clarify DRM_MODE_REFLECT_X/Y documentation

2018-09-11 Thread Alexandru-Cosmin Gheorghe
On Tue, Sep 11, 2018 at 04:45:25PM +0300, Ville Syrjälä wrote: > On Tue, Sep 11, 2018 at 02:20:22PM +0100, Alexandru-Cosmin Gheorghe wrote: > > Hi Ville, > > > > On Tue, Sep 11, 2018 at 03:27:09PM +0300, Ville Syrjälä wrote: > > > On Mon, Sep 10, 2018 at 06:29:46PM +0100, Alexandru Gheorghe wrote:

[PATCH 1/9] drm: Add variable refresh rate properties to DRM connector

2018-09-11 Thread Nicholas Kazlauskas
Modern monitor hardware is capable of supporting variable refresh rates and adaptive sync technologies. The properties for querying and controlling these features should be exposed on the DRM connector. This patch introduces two new properties for variable refresh rate support: - variable_refresh

  1   2   3   >