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

2018-09-12 Thread Gerd Hoffmann
On Tue, Sep 11, 2018 at 06:07:10PM +0300, Laurent Pinchart wrote: > Hi Gerd, > > Thank you for the patch. > > On Tuesday, 11 September 2018 16:42:14 EEST Gerd Hoffmann wrote: > > Still no commit message ? :-) Well, there isn't much to explain about that one ... cheers, Gerd

Re: [virtio-dev] [PATCH 2/2] drm/virtio: add iommu support.

2018-09-12 Thread Jiandi An
I tested this with Gerd's qemu side fix with in the sirius/virtio-gpu-iommu branch https://git.kraxel.org/cgit/qemu/commit/?h=sirius/virtio-gpu-iommu=86f9d30e4a44ca47f007e51ab5744f87e79fb83e While this resolves the issue where iommu_platform attribute can be specified for virtio-gpu device in

[PATCH] drm/amdgpu: Add braces to initialize task_info subojects

2018-09-12 Thread Nathan Chancellor
Clang warns if there are missing braces around a subobject initializer. drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c:1447:41: warning: suggest braces around initialization of subobject [-Wmissing-braces] struct amdgpu_task_info task_info = { 0 };

Re: [PATCH v4] gpu/drm/exynos: Convert drm_atomic_helper_suspend/resume()

2018-09-12 Thread Souptick Joarder
On Thu, Aug 2, 2018 at 9:12 PM Souptick Joarder wrote: > > convert drm_atomic_helper_suspend/resume() to use > drm_mode_config_helper_suspend/resume(). > > exynos_drm_fbdev_suspend/resume can be removed > as drm_mode_config_helper_suspend/resume has > implement the same in generic way. > > Remove

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

2018-09-12 Thread Hans de Goede
Hi, On 11-09-18 20:46, Greg Kroah-Hartman wrote: On Tue, Sep 11, 2018 at 09:15:41AM +0200, Hans de Goede wrote: 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

[PATCH] drm: Differentiate the lack of an interface from invalid parameter

2018-09-12 Thread Chris Wilson
If the ioctl is not supported on a particular piece of HW/driver combination, report ENODEV so that it can be easily distinguished from both the lack of the ioctl and from a regular invalid parameter. Signed-off-by: Chris Wilson Cc: Daniel Vetter Cc: Ville Syrjälä ---

Re: [PATCH] drm: Differentiate the lack of an interface from invalid parameter

2018-09-12 Thread Daniel Vetter
On Wed, Sep 12, 2018 at 10:27 AM, Chris Wilson wrote: > If the ioctl is not supported on a particular piece of HW/driver > combination, report ENODEV so that it can be easily distinguished from > both the lack of the ioctl and from a regular invalid parameter. > > Signed-off-by: Chris Wilson >

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

2018-09-12 Thread Jani Nikula
On Tue, 11 Sep 2018, Clint Taylor wrote: > On 09/11/2018 01:56 AM, Lee, Shawn C wrote: >> 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

Re: [REGRESSION] boot-screen override by "34db50e55656 efifb: Copy the ACPI BGRT"

2018-09-12 Thread Hans de Goede
Hi, On 03-09-18 17:11, David Herrmann wrote: Hey On Mon, Sep 3, 2018 at 4:47 PM Hans de Goede wrote: Hi, On 03-09-18 16:16, Bartlomiej Zolnierkiewicz wrote: Hi, On Monday, September 03, 2018 03:23:38 PM David Herrmann wrote: Hey Since this commit: 34db50e55656 efifb: Copy the

[PATCH] efifb: BGRT: Add nobgrt option

2018-09-12 Thread Hans de Goede
In some setups restoring the BGRT logo is undesirable, allow passing video=efifb:nobgrt on the kernel commandline to disable it. Cc: David Herrmann Reported-by: David Herrmann Signed-off-by: Hans de Goede --- drivers/video/fbdev/efifb.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH v1 0/1] Add function to set the possible crtc for connector

2018-09-12 Thread Stu Hsieh
This patch add the function for connector driver(dpi or dsi) to set the possible crtc. The connector associated which crtc is depend on the ddp_path. Stu Hsieh (1): drm/mediatek: add function to match the connector and crtc drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 41

[PATCH v1 1/1] drm/mediatek: add function to match the connector and crtc

2018-09-12 Thread Stu Hsieh
This patch add function to match the connector and crtc Because the connector set the possible_crtc to match the crtc. This function would search the connector in every ddp path and return the corresponding value for possible_crtc. Change-Id: Id51de53b95039f8174462d483eb9bfee31b3b93b

[PATCH v3 1/3] udmabuf: add documentation

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

[PATCH v3 2/3] udmabuf: check that __pad is zero

2018-09-12 Thread Gerd Hoffmann
Reported-by: Yann Droneaud Signed-off-by: Gerd Hoffmann --- drivers/dma-buf/udmabuf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c index 9edabce0b8..964beadd11 100644 --- a/drivers/dma-buf/udmabuf.c +++ b/drivers/dma-buf/udmabuf.c

[PATCH v3 3/3] udmabuf: check that flags has no unsupported bits set

2018-09-12 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Reported-by: Yann Droneaud --- drivers/dma-buf/udmabuf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c index 964beadd11..acd97670c5 100644 --- a/drivers/dma-buf/udmabuf.c +++ b/drivers/dma-buf/udmabuf.c

[PATCH v3 0/3] udmabuf: misc fixes.

2018-09-12 Thread Gerd Hoffmann
v3: pushed first batch of fixes to drm-misc-next. documentation fix. two new patches adding sanity checks. v2: review updates, add three new patches. Gerd Hoffmann (3): udmabuf: add documentation udmabuf: check that __pad is zero udmabuf: check that flags has no unsupported bits set

Re: [PATCH] qxl: refactor to use drm_fb_helper_fbdev_setup

2018-09-12 Thread Gerd Hoffmann
On Mon, Sep 10, 2018 at 03:21:56PM +0200, Peter Wu wrote: > Lots of code can be removed by relying on fb-helper: > - "struct drm_framebuffer" moves to fb_helper.fb. > - "struct drm_gem_object" moves to fb_helper.obj[0]. > - "struct qxl_device" can be inferred as drm_fb_helper is embedded. > -

i915, HDMI/DP audio with multiple monitors

2018-09-12 Thread Bruno Prémont
Hi, I have a system with multiple monitors and would like to send notification sounds to the monitor on which corresponding window is visible. For a workstation and a tiny computer things look different: - workstation (Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz): 00:02.0 VGA compatible controller

[PATCH] drm/omap: Use ERR_CAST directly instead of RR_PTR(PTR_ERR())

2018-09-12 Thread zhong jiang
We prefer to use ERR_CAST to do so. The issue is detected with the help of Coccinelle. Signed-off-by: zhong jiang --- drivers/gpu/drm/omapdrm/dss/dss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/omapdrm/dss/dss.c b/drivers/gpu/drm/omapdrm/dss/dss.c

Re: [BUG] i915 HDMI connector status is connected after disconnection

2018-09-12 Thread Chris Chiu
On Fri, Aug 24, 2018 at 11:04 PM, Jani Nikula wrote: > On Wed, 22 Aug 2018, Chris Chiu wrote: >> On Fri, Jul 6, 2018 at 2:44 PM, Chris Chiu wrote: >>> On Thu, Jul 5, 2018 at 10:40 PM, Ville Syrjälä >>> wrote: On Thu, Jul 05, 2018 at 03:58:36PM +0800, Chris Chiu wrote: > Hi, >

Re: [PATCH v2 13/13] udmabuf: add documentation

2018-09-12 Thread Randy Dunlap
On 9/11/18 6:42 AM, Gerd Hoffmann wrote: > 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

Re: [v7] Add udmabuf misc device

2018-09-12 Thread Yann Droneaud
Hi, Le lundi 27 août 2018 à 11:34 +0200, Gerd Hoffmann a écrit : > A driver to let userspace turn memfd regions into dma-bufs. > > Use case: Allows qemu create dmabufs for the vga framebuffer or > virtio-gpu ressources. Then they can be passed around to display > those guest things on the

Re: [PATCH 2/3] drm/exynos: scaler: Add support for tiled formats

2018-09-12 Thread Andrzej Pietrasiewicz
Hi Inki, W dniu 12.09.2018 o 01:54, Inki Dae pisze: > Hi Marek and Andrzej, > > 2018년 08월 10일 22:29에 Marek Szyprowski 이(가) 쓴 글: >> From: Andrzej Pietrasiewicz >> >> Add support for 16x16 tiled formats: NV12/NV21, YUYV and YUV420. >> >> >> -static u32 scaler_get_format(u32 drm_fmt) >>

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

2018-09-12 Thread Nicholas Mc Guire
On Tue, Sep 11, 2018 at 10:20:41AM +0300, Dan Carpenter wrote: > 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.")

Re: [PATCH] drm/vkms: Add kerneldoc entry

2018-09-12 Thread Haneen Mohammed
On Tue, Sep 11, 2018 at 08:06:31PM +0200, Daniel Vetter wrote: > On Fri, Sep 07, 2018 at 08:41:36PM +0300, Haneen Mohammed wrote: > > Add an initial kerneldoc entry for vkms with a todo list. > > > > Signed-off-by: Haneen Mohammed > > --- > > Documentation/gpu/drivers.rst | 1 + > >

Re: [PATCH] gpu/drm/hisilicon: Convert drm_atomic_helper_suspend/resume()

2018-09-12 Thread Souptick Joarder
On Mon, Aug 6, 2018 at 8:16 PM Souptick Joarder wrote: > > convert drm_atomic_helper_suspend/resume() to use > drm_mode_config_helper_suspend/resume(). > > Fixed one sparse warning by making hibmc_drm_interrupt > static. > > Signed-off-by: Ajit Negi > Signed-off-by: Souptick Joarder >

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

2018-09-12 Thread Nicholas Mc Guire
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: vboxvideo: Update driver to use > >>drm_dev_register.") replaced the obsolere

[PATCH -next] drm/fb-helper: Remove set but not used variable 'connector_funcs'

2018-09-12 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/drm_fb_helper.c: In function 'drm_pick_crtcs': drivers/gpu/drm/drm_fb_helper.c:2373:43: warning: variable 'connector_funcs' set but not used [-Wunused-but-set-variable] Signed-off-by: YueHaibing --- drivers/gpu/drm/drm_fb_helper.c

[PATCH -next] drm/omap: remove set but not used variable 'frame_height'

2018-09-12 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/omapdrm/dss/dispc.c: In function 'dispc_ovl_setup_common': drivers/gpu/drm/omapdrm/dss/dispc.c:2627:19: warning: variable 'frame_height' set but not used [-Wunused-but-set-variable] Signed-off-by: YueHaibing ---

Re: [PATCH 6/9] drm/amdgpu: add freesync ioctl

2018-09-12 Thread Christian König
Am 11.09.2018 um 21:17 schrieb Alex Deucher: On Tue, Sep 11, 2018 at 1:59 PM Kazlauskas, Nicholas wrote: On 09/11/2018 01:51 PM, Christian König wrote: Am 11.09.2018 um 18:13 schrieb Nicholas Kazlauskas: From: Harry Wentland Add the ioctl to enable/disable freesync. Why do we still need

Re: [PATCH 1/3] [RFC]drm: add syncobj timeline support v4

2018-09-12 Thread Christian König
Ping? Have you seen my comments here? Looks like you haven't addressed any of them in your last mail. Christian. Am 06.09.2018 um 09:25 schrieb Christian König: Am 06.09.2018 um 08:25 schrieb Chunming Zhou: VK_KHR_timeline_semaphore: This extension introduces a new type of semaphore that has

Re: [PATCH] drm: Differentiate the lack of an interface from invalid parameter

2018-09-12 Thread Daniel Vetter
On Wed, Sep 12, 2018 at 10:50 AM, Chris Wilson wrote: > Quoting Daniel Vetter (2018-09-12 09:39:30) >> On Wed, Sep 12, 2018 at 10:27 AM, Chris Wilson >> wrote: >> > If the ioctl is not supported on a particular piece of HW/driver >> > combination, report ENODEV so that it can be easily

Re: [PATCH] drm: Differentiate the lack of an interface from invalid parameter

2018-09-12 Thread Chris Wilson
Quoting Daniel Vetter (2018-09-12 10:02:47) > On Wed, Sep 12, 2018 at 10:50 AM, Chris Wilson > wrote: > > Quoting Daniel Vetter (2018-09-12 09:39:30) > >> On Wed, Sep 12, 2018 at 10:27 AM, Chris Wilson > >> wrote: > >> > If the ioctl is not supported on a particular piece of HW/driver > >> >

Re: [RFC PATCH v2 1/3] drm/fourcc: Add 'bpp' field for formats with non-integer bytes-per-pixel

2018-09-12 Thread Brian Starkey
On Wed, Sep 12, 2018 at 04:27:04PM +0100, Liviu Dudau wrote: On Mon, Sep 10, 2018 at 09:53:25PM +0200, Daniel Vetter wrote: On Mon, Sep 10, 2018 at 09:50:03AM +0100, Brian Starkey wrote: > Hi, > > On Fri, Sep 07, 2018 at 09:28:44PM +0200, Daniel Vetter wrote: > > On Fri, Sep 07, 2018 at

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

2018-09-12 Thread Maxime Ripard
On Wed, Sep 12, 2018 at 04:25:36PM +0200, Daniel Vetter wrote: > On Wed, Sep 12, 2018 at 11:53 AM, Maxime Ripard > wrote: > > On Tue, Sep 11, 2018 at 10:17:02PM +0200, Daniel Vetter wrote: > >> On Tue, Sep 11, 2018 at 01:33:25PM +0200, Maxime Ripard wrote: > >> > Having DRM_SUN4I built-in but

[pull] amdgpu drm-fixes-4.19

2018-09-12 Thread Alex Deucher
Hi Dave, A few fixes for 4.19: - Fix a small memory leak - SR-IOV reset fix - Fix locking in MMU-notifier error path - Updated SDMA golden settings to fix a PRT hang The following changes since commit 67c6ed7cf9ebe53815f15bfdeb49ad91801c2235: Merge tag 'drm-intel-fixes-2018-09-05' of

Re: [PATCH libdrm] intel: annotate the intel genx helpers as private

2018-09-12 Thread Rodrigo Vivi
On Wed, Sep 12, 2018 at 08:50:54AM -0700, Rodrigo Vivi wrote: > From: Emil Velikov > > They're used internally and never meant to be part of the API. > Add the drm_private notation, which should resolve that. > > v2: (Rodrigo) Add missing include. > v3: (Rodrigo) Keep includes grouped per Eric

Re: i915, HDMI/DP audio with multiple monitors

2018-09-12 Thread Ville Syrjälä
On Tue, Sep 11, 2018 at 03:50:13PM +0200, Bruno Prémont wrote: > Hi, > > I have a system with multiple monitors and would like to send > notification sounds to the monitor on which corresponding > window is visible. > > For a workstation and a tiny computer things look different: > - workstation

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

2018-09-12 Thread Daniel Vetter
On Wed, Sep 12, 2018 at 5:47 PM, Maxime Ripard wrote: > On Wed, Sep 12, 2018 at 04:25:36PM +0200, Daniel Vetter wrote: >> On Wed, Sep 12, 2018 at 11:53 AM, Maxime Ripard >> wrote: >> > On Tue, Sep 11, 2018 at 10:17:02PM +0200, Daniel Vetter wrote: >> >> On Tue, Sep 11, 2018 at 01:33:25PM +0200,

Re: [PATCH v2 05/17] compat_ioctl: move more drivers to generic_compat_ioctl_ptrarg

2018-09-12 Thread Mauro Carvalho Chehab
Em Wed, 12 Sep 2018 17:08:52 +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

Re: [linux-sunxi] Re: [PATCH 08/27] clk: sunxi-ng: Add support for H6 DE3 clocks

2018-09-12 Thread Chen-Yu Tsai
On Wed, Sep 12, 2018 at 10:55 PM Jernej Škrabec wrote: > > Dne sreda, 12. september 2018 ob 14:20:08 CEST je Chen-Yu Tsai napisal(a): > > On Wed, Sep 5, 2018 at 1:46 AM Jernej Škrabec > wrote: > > > Dne torek, 04. september 2018 ob 11:04:21 CEST je Chen-Yu Tsai napisal(a): > > > > On Sun, Sep 2,

[PATCH libdrm] intel: annotate the intel genx helpers as private

2018-09-12 Thread Rodrigo Vivi
From: Emil Velikov They're used internally and never meant to be part of the API. Add the drm_private notation, which should resolve that. v2: (Rodrigo) Add missing include. v3: (Rodrigo) Keep includes grouped per Eric suggestion. Cc: Eric Engestrom Cc: Lucas De Marchi Cc: Chris Wilson Cc:

[PATCH] etnaviv: Make sure DMA is setup

2018-09-12 Thread Guido Günther
Since we don't want to setup up DMA via device tree we end up with arm64's dummy_dma_ops otherwise. Links: https://lists.freedesktop.org/archives/etnaviv/2018-August/001925.html Signed-off-by: Guido Günther --- drivers/gpu/drm/etnaviv/etnaviv_drv.c | 13 - 1 file changed, 12

Re: [PATCH] drm: Differentiate the lack of an interface from invalid parameter

2018-09-12 Thread Christian König
Am 12.09.2018 um 11:12 schrieb Chris Wilson: Quoting Daniel Vetter (2018-09-12 10:02:47) On Wed, Sep 12, 2018 at 10:50 AM, Chris Wilson wrote: Quoting Daniel Vetter (2018-09-12 09:39:30) On Wed, Sep 12, 2018 at 10:27 AM, Chris Wilson wrote: If the ioctl is not supported on a particular

[Bug 107910] Linux-4.18: Boot delayed with "VCE not responding" [regression]

2018-09-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107910 Bug ID: 107910 Summary: Linux-4.18: Boot delayed with "VCE not responding" [regression] Product: DRI Version: unspecified Hardware: Other OS: All

[Bug 107855] [regression] [amdgpu] [drm:vce_v2_0_start [amdgpu]] *ERROR* VCE not responding, giving up!!!

2018-09-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107855 Michel Dänzer changed: What|Removed |Added CC||linuxhi...@gmail.com --- Comment #12

[PATCH] gpu: host1x: Remove redundant of_dma_configure() call

2018-09-12 Thread Robin Murphy
Now that the Host1x bus_type implements a .dma_configure callback, subdevices should automatically get configured for DMA as their drivers bind, so there's no need to also force it at device creation time. CC: Thierry Reding CC: Mikko Perttunen Signed-off-by: Robin Murphy --- I *believe* my

[Bug 107910] Linux-4.18: Boot delayed with "VCE not responding" [regression]

2018-09-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107910 Michel Dänzer changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[PATCH v2 05/17] compat_ioctl: move more drivers to generic_compat_ioctl_ptrarg

2018-09-12 Thread Arnd Bergmann
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 architecture, where a compat pointer is only 31 bit wide, and converting it into

Re: [RFC PATCH v2 1/3] drm/fourcc: Add 'bpp' field for formats with non-integer bytes-per-pixel

2018-09-12 Thread Liviu Dudau
On Mon, Sep 10, 2018 at 09:53:25PM +0200, Daniel Vetter wrote: > On Mon, Sep 10, 2018 at 09:50:03AM +0100, Brian Starkey wrote: > > Hi, > > > > On Fri, Sep 07, 2018 at 09:28:44PM +0200, Daniel Vetter wrote: > > > On Fri, Sep 07, 2018 at 01:45:36PM +0100, Brian Starkey wrote: > > > > Hi Daniel, >

Re: [PATCH] etnaviv: Make sure DMA is setup

2018-09-12 Thread Lucas Stach
Hi Guido, I've just sent out a patch which should hopefully also fix this issue, in a (slightly) more correct way. I don't have my MX8M system up right now, so would appreciate if you could test drive this patch. Regards, Lucas Am Mittwoch, den 12.09.2018, 17:44 +0200 schrieb Guido Günther: >

Re: [PATCH v2 05/17] compat_ioctl: move more drivers to generic_compat_ioctl_ptrarg

2018-09-12 Thread Daniel Vetter
On Wed, Sep 12, 2018 at 5:08 PM, Arnd Bergmann wrote: > 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 architecture,

Re: [PATCH] etnaviv: Make sure DMA is setup

2018-09-12 Thread Lucas Stach
Am Mittwoch, den 12.09.2018, 17:50 +0200 schrieb Lucas Stach: > Hi Guido, > > I've just sent out a patch which should hopefully also fix this issue, > in a (slightly) more correct way. I don't have my MX8M system up right > now, so would appreciate if you could test drive this patch. And I just

Re: [Intel-gfx] [PATCH v4 19/25] drm/i915/dsc: Add a power domain for VDSC on eDP/MIPI DSI

2018-09-12 Thread Rodrigo Vivi
On Tue, Sep 11, 2018 at 05:56:01PM -0700, Manasi Navare wrote: > On Icelake, a separate power well PG2 is created for > VDSC engine used for eDP/MIPI DSI. bikeshed: To be more precise the PG2 wasn't *created* here, but it was reserved only for VDSC on eDP/MIPI use and everything else that was

Re: [PATCH] drm/amd/display: fix ptr_ret.cocci warnings

2018-09-12 Thread Alex Deucher
On Tue, Sep 11, 2018 at 8:59 PM kbuild test robot wrote: > > From: kbuild test robot > > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c:771:1-3: WARNING: > PTR_ERR_OR_ZERO can be used > > > Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR > > Generated by:

Re: [PATCH v2 05/17] compat_ioctl: move more drivers to generic_compat_ioctl_ptrarg

2018-09-12 Thread Greg Kroah-Hartman
On Wed, Sep 12, 2018 at 05:08:52PM +0200, Arnd Bergmann wrote: > 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

Re: [RFC PATCH v2 1/3] drm/fourcc: Add 'bpp' field for formats with non-integer bytes-per-pixel

2018-09-12 Thread Daniel Vetter
On Wed, Sep 12, 2018 at 3:52 PM, Brian Starkey wrote: > On Mon, Sep 10, 2018 at 09:53:25PM +0200, Daniel Vetter wrote: >> >> On Mon, Sep 10, 2018 at 09:50:03AM +0100, Brian Starkey wrote: >>> >>> Hi, >>> >>> On Fri, Sep 07, 2018 at 09:28:44PM +0200, Daniel Vetter wrote: >>> > On Fri, Sep 07, 2018

Re: i915, HDMI/DP audio with multiple monitors

2018-09-12 Thread Alex Deucher
On Wed, Sep 12, 2018 at 3:05 AM Bruno Prémont wrote: > > Hi, > > I have a system with multiple monitors and would like to send > notification sounds to the monitor on which corresponding > window is visible. > > For a workstation and a tiny computer things look different: > - workstation

Re: [RFC PATCH v2 1/3] drm/fourcc: Add 'bpp' field for formats with non-integer bytes-per-pixel

2018-09-12 Thread Daniel Vetter
On Wed, Sep 12, 2018 at 5:27 PM, Liviu Dudau wrote: > On Mon, Sep 10, 2018 at 09:53:25PM +0200, Daniel Vetter wrote: >> On Mon, Sep 10, 2018 at 09:50:03AM +0100, Brian Starkey wrote: >> > Hi, >> > >> > On Fri, Sep 07, 2018 at 09:28:44PM +0200, Daniel Vetter wrote: >> > > On Fri, Sep 07, 2018 at

Re: [PATCH v2 3/4] drm/i915/icl: Preparations for enabling Y210, Y212, Y216 formats

2018-09-12 Thread Juha-Pekka Heikkilä
Swati Sharma kirjoitti 12.9.2018 klo 13.32: From: Vidya Srinivas Signed-off-by: Swati Sharma Signed-off-by: Vidya Srinivas --- drivers/gpu/drm/i915/intel_display.c | 15 +++ drivers/gpu/drm/i915/intel_sprite.c | 3 +++ 2 files changed, 18 insertions(+) diff --git

[Bug 96881] ViennaCL fails dense_blas-bench-opencl benchmark with doubles on AMD CYPRESS (DRM 2.43.0, LLVM 3.8.0)

2018-09-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=96881 Jan Vesely changed: What|Removed |Added Depends on||99510 Referenced Bugs:

Re: [PATCH 2/2] vgaarb: Keep adding VGA device in queue

2018-09-12 Thread Alex Deucher
On Fri, Aug 31, 2018 at 5:39 PM Aaron Ma wrote: > > If failed to find the deivice owning the boot framebuffer, > try to use the first VGA device instead of the last one. > > Usually the 1st device is integrated GPU who owns the boot framebuffer. > > Signed-off-by: Aaron Ma Series is: Acked-by:

[PATCH v2 8/8] ARM: dts: imx6qdl-apalis: add GPIO I2C node for DDC

2018-09-12 Thread Stefan Agner
Currently, the DDC signals are controlled by the DWC HDMI I2C master to be used for HDMI (DVI on the Apalis Evaluation Board). However, the Apalis Evaluation board also allows to route the Apalis DDC I2C to the LVDS or the VGA connector. By default, the signal is routed to DVI (HDMI), and therefor

[PATCH v2 0/8] drm/bridge: add bus flag support

2018-09-12 Thread Stefan Agner
This v2 shifted a bit more to rework bridge timing support. While my use case mainly cares about complete bus flag support, it seems to me that bus timings have ended up to be more complex than necessary. Patch 2/3 are an attempt to simplify bus timings. This also aligns bridge timings with how

[PATCH v2 2/8] drm/pl111: simplify bridge timing support

2018-09-12 Thread Stefan Agner
Simplify bridge timing support by only supporting pixel clock polarity. This aligns pixel clock polarity handling for bridges with displays. Signed-off-by: Stefan Agner --- drivers/gpu/drm/pl111/pl111_display.c | 22 ++ 1 file changed, 6 insertions(+), 16 deletions(-) diff

[PATCH v2 3/8] drm/bridge: simplify bridge timing info

2018-09-12 Thread Stefan Agner
Bridges are typically connected to a parallel display signal with pixel clock, sync signals and data lines. Parallel display signals are also used in lower-end embedded display panels. For parallel display panels we currently do not specify setup/hold times. From discussions on the mailing list it

[PATCH v2 1/8] drm/bridge: use bus flags in bridge timings

2018-09-12 Thread Stefan Agner
The DRM bus flags conveys additional information on pixel data on the bus. All currently available bus flags might be of interest for a bridge. In the case at hand a dumb VGA bridge needs a specific data enable polarity (DRM_BUS_FLAG_DE_LOW). Replace the sampling_edge field with input_bus_flags

[PATCH v2 5/8] dt-bindings: display: add data-enable polarity property

2018-09-12 Thread Stefan Agner
Allow to specify the data-enable polarity required by a dumb VGA DAC converting parallel RGB to VGA. Signed-off-by: Stefan Agner --- .../devicetree/bindings/display/bridge/dumb-vga-dac.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v2 6/8] drm/imx: support handling bridge timings bus flags

2018-09-12 Thread Stefan Agner
A bridge might require specific settings for the pixel data on the bus. Copy the bus flags from the bridge timings if a bridge is in use. Signed-off-by: Stefan Agner --- drivers/gpu/drm/imx/parallel-display.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH v2 4/8] drm/bridge: allow to specify data-enable polarity

2018-09-12 Thread Stefan Agner
Support boards with a passive RGB to VGA bridge which require a low active data-enable polarity. Signed-off-by: Stefan Agner --- drivers/gpu/drm/bridge/dumb-vga-dac.c | 22 ++ 1 file changed, 18 insertions(+), 4 deletions(-) diff --git

[PATCH v2 7/8] ARM: dts: imx6qdl-apalis: add VGA support

2018-09-12 Thread Stefan Agner
The Apalis iMX6 modules use a simple DAC using resistor ladders to convert parallel RGB to VGA. Add support for this output using the dumb VGA driver. Signed-off-by: Stefan Agner --- arch/arm/boot/dts/imx6q-apalis-eval.dts | 28 + arch/arm/boot/dts/imx6qdl-apalis.dtsi | 52

Re: [PATCH] drm/amdgpu: Add braces to initialize task_info subojects

2018-09-12 Thread Alex Deucher
On Wed, Sep 12, 2018 at 2:40 PM Nathan Chancellor wrote: > > On Wed, Sep 12, 2018 at 10:38:30AM -0700, Nick Desaulniers wrote: > > On Tue, Sep 11, 2018 at 5:26 PM Nathan Chancellor > > wrote: > > > > > > Clang warns if there are missing braces around a subobject > > > initializer. > > > > > >

[Bug 99510] cl_khr_fp64 is reported as supported, but is not, on CAYMAN

2018-09-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99510 Jan Vesely changed: What|Removed |Added Blocks||96881 Referenced Bugs:

Re: i915, HDMI/DP audio with multiple monitors

2018-09-12 Thread Takashi Iwai
On Wed, 12 Sep 2018 19:46:58 +0200, Ville Syrjälä wrote: > > On Tue, Sep 11, 2018 at 03:50:13PM +0200, Bruno Prémont wrote: > > Hi, > > > > I have a system with multiple monitors and would like to send > > notification sounds to the monitor on which corresponding > > window is visible. > > > >

[PATCH 2/2] meson: intel: make symbols hidden by default

2018-09-12 Thread Lucas De Marchi
Signed-off-by: Lucas De Marchi --- intel/meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/intel/meson.build b/intel/meson.build index ff40ab91..c808781b 100644 --- a/intel/meson.build +++ b/intel/meson.build @@ -18,6 +18,8 @@ # OUT OF OR IN CONNECTION WITH THE

[PATCH 0/2] intel: hide library symbols by default

2018-09-12 Thread Lucas De Marchi
Rely on -fvisibility=hidden to hide the symbols. This only applies to drm_intel.so sice there's no point in extending this if it receives a nack for some reason. For the same reason, only done on meson as well. drm_private can also be removed from other symbols. If this passes a smoke test I'll

Re: [PATCH] drm/i915/dp: fix shifting by a negative number of bits

2018-09-12 Thread Paulo Zanoni
Em Qua, 2018-09-12 às 09:31 -0500, Gustavo A. R. Silva escreveu: > Function intel_port_to_tc() returns PORT_TC_NONE on error, which is > a negative value -1. In case PORT_TC_NONE is returned, there is an > undefined behavior when shifting by a negative number of bits in > both

Re: [PATCH 18/20] drm/vc4: Use drm_fbdev_generic_setup()

2018-09-12 Thread Eric Anholt
Noralf Trønnes writes: > 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_funcs->output_poll_changed and

RE: i915, HDMI/DP audio with multiple monitors

2018-09-12 Thread Yang, Libin
>-Original Message- >From: Ville Syrjälä [mailto:ville.syrj...@linux.intel.com] >Sent: Thursday, September 13, 2018 1:47 AM >To: Bruno Prémont >Cc: intel-...@lists.freedesktop.org; dri-devel@lists.freedesktop.org; Takashi >Iwai ; alsa-de...@alsa-project.org; Yang, Libin > >Subject: Re:

[PATCH 1/2] intel: annotate public functions

2018-09-12 Thread Lucas De Marchi
This was done with: while read sym; do read f func line _ <<<$(cscope -d -L -1 $sym) if [ ! -z "$f" ]; then line=$((line-1)) sed -i "${line}s/^/drm_public /" $f fi done < /tmp/a.txt Then some corner cases were manually fixed. "a.txt" above

drm/imx: Crash in drm_mode_config_cleanup

2018-09-12 Thread Stefan Agner
Hi, While working on Apalis iMX6 with four displays, I encountered the following crash: ... [2.978166] imx-drm display-subsystem: trying to bring up master [2.984368] imx-drm display-subsystem: Looking for component 0 [2.990236] imx-drm display-subsystem: master has incomplete

Re: [PATCH 12/20] drm/pl111: Use drm_fbdev_generic_setup()

2018-09-12 Thread Eric Anholt
Noralf Trønnes writes: > 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_funcs->output_poll_changed and

Re: drm/imx: Crash in drm_mode_config_cleanup

2018-09-12 Thread Stefan Agner
On 12.09.2018 15:26, Stefan Agner wrote: > Hi, > > While working on Apalis iMX6 with four displays, I encountered the > following crash: > > ... > [2.978166] imx-drm display-subsystem: trying to bring up master > [2.984368] imx-drm display-subsystem: Looking for component 0 > [

[git pull] drm nouveau runpm and mst fixes

2018-09-12 Thread Dave Airlie
Hi Linus, I'm sending this separately as it's a bit larger than I generally like for one driver, but it does contain a bunch of make my nvidia laptop not die (runpm) and a bunch of make my docking station and monitor display stuff (mst) fixes. Lyude has spent a lot of time on these, and we are

[Bug 107509] corrupted Box in top Right corner in some games

2018-09-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107509 --- Comment #8 from Timothy Arceri --- Payday 2 is fine for me on my RX480, mesa git, llvm 8.0 git, 4.17.18 kernel. -- You are receiving this mail because: You are the assignee for the bug.___

[PATCH v3 07/23] v4l: fwnode: Let the caller provide V4L2 fwnode endpoint

2018-09-12 Thread Sakari Ailus
Instead of allocating the V4L2 fwnode endpoint in v4l2_fwnode_endpoint_alloc_parse, let the caller to do this. This allows setting default parameters for the endpoint which is a very common need for drivers. Signed-off-by: Sakari Ailus Tested-by: Steve Longerbeam --- drivers/media/i2c/ov2659.c

[PATCH v3 01/23] v4l: fwnode: Add debug prints for V4L2 endpoint property parsing

2018-09-12 Thread Sakari Ailus
Print debug info as standard V4L2 endpoint are parsed. Signed-off-by: Sakari Ailus Reviewed-by: Niklas Söderlund Tested-by: Steve Longerbeam --- drivers/media/v4l2-core/v4l2-fwnode.c | 108 ++ 1 file changed, 85 insertions(+), 23 deletions(-) diff --git

[PATCH v3 00/23] V4L2 fwnode rework; support for default configuration

2018-09-12 Thread Sakari Ailus
Hello everyone, I've long thought the V4L2 fwnode framework requires some work (it's buggy and it does not adequately serve common needs). This set should address in particular these matters: - Most devices support a particular media bus type but the V4L2 fwnode framework was not able to use

[PATCH v3 05/23] v4l: fwnode: Add definitions for CSI-2 D-PHY, parallel and Bt.656 busses

2018-09-12 Thread Sakari Ailus
Add definitions corresponding to DT bindings to the CSI-2 D-PHY, parallel and Bt.656 busses. Signed-off-by: Sakari Ailus Tested-by: Steve Longerbeam --- drivers/media/v4l2-core/v4l2-fwnode.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-fwnode.c

[PATCH v3 02/23] v4l: fwnode: Use fwnode_graph_for_each_endpoint

2018-09-12 Thread Sakari Ailus
Use fwnode_graph_for_each_endpoint iterator for better readability. Signed-off-by: Sakari Ailus Reviewed-by: Niklas Söderlund Tested-by: Steve Longerbeam --- drivers/media/v4l2-core/v4l2-fwnode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH v3 22/23] v4l: fwnode: Update V4L2 fwnode endpoint parsing documentation

2018-09-12 Thread Sakari Ailus
The semantics of v4l2_fwnode_endpoint_parse() and v4l2_fwnode_endpoint_alloc_parse() have changed slightly: they now take the bus type from the user as well as a default configuration for the bus that shall reflect the DT binding defaults. Document this. Signed-off-by: Sakari Ailus Tested-by:

[PATCH v3 11/23] v4l: fwnode: Only assign configuration if there is no error

2018-09-12 Thread Sakari Ailus
Only assign endpoint configuration if the endpoint is parsed successfully. Signed-off-by: Sakari Ailus Tested-by: Steve Longerbeam --- drivers/media/v4l2-core/v4l2-fwnode.c | 30 ++ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git

[PATCH v3 08/23] v4l: fwnode: Detect bus type correctly

2018-09-12 Thread Sakari Ailus
In case the device supports multiple video bus types on an endpoint, the V4L2 fwnode framework attempts to detect the type based on the available information. This wasn't working really well, and sometimes could lead to the V4L2 fwnode endpoint struct as being mishandled between the bus types.

[PATCH v3 15/23] v4l: fwnode: Use default parallel flags

2018-09-12 Thread Sakari Ailus
The caller may provide default flags for the endpoint. Change the configuration based on what is available through the fwnode property API. Signed-off-by: Sakari Ailus Tested-by: Steve Longerbeam --- drivers/media/v4l2-core/v4l2-fwnode.c | 19 +++ 1 file changed, 19

[PATCH v3 03/23] v4l: fwnode: The CSI-2 clock is continuous if it's not non-continuous

2018-09-12 Thread Sakari Ailus
The continuous clock flag was only set if there was a clock or data lanes. This isn't needed as such a configuration is invalid to begin with. Always set the continuous clock flag if the non-continuous property is not found. Signed-off-by: Sakari Ailus Tested-by: Steve Longerbeam ---

[PATCH v3 04/23] dt-bindings: media: Specify bus type for MIPI D-PHY, others, explicitly

2018-09-12 Thread Sakari Ailus
Allow specifying the bus type explicitly for MIPI D-PHY, parallel and Bt.656 busses. This is useful for devices that can make use of different bus types. There are CSI-2 transmitters and receivers but the PHY selection needs to be made between C-PHY and D-PHY; many devices also support parallel

Re: [PATCH 1/3] [RFC]drm: add syncobj timeline support v4

2018-09-12 Thread zhoucm1
On 2018年09月12日 19:05, Christian König wrote: Am 12.09.2018 um 12:20 schrieb zhoucm1: [SNIP] Drop the term semaphore here, better use syncobj. This is from VK_KHR_timeline_semaphore extension describe, not my invention, I just quote it. In kernel side, we call syncobj, in UMD, they still

[Bug 107912] Please add support for PIPE_CAP_TGSI_MUL_ZERO_WINS to radeonsi

2018-09-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107912 Bug ID: 107912 Summary: Please add support for PIPE_CAP_TGSI_MUL_ZERO_WINS to radeonsi Product: Mesa Version: git Hardware: Other OS: All

[PATCH v3 18/23] v4l: fwnode: Use media bus type for bus parser selection

2018-09-12 Thread Sakari Ailus
Use the media bus types instead of the fwnode bus types internally. This is the interface to the drivers as well, making the use of the fwnode bus types more localised to the V4L2 fwnode framework. Signed-off-by: Sakari Ailus Tested-by: Steve Longerbeam ---

[PATCH v3 21/23] v4l: fwnode: Support parsing of CSI-2 C-PHY endpoints

2018-09-12 Thread Sakari Ailus
The V4L2 fwnode framework only parsed CSI-2 D-PHY endpoints while C-PHY support wasn't there. Also parse endpoints for media bus type V4L2_MBUS_CSI2_CPHY. Signed-off-by: Sakari Ailus Tested-by: Steve Longerbeam --- drivers/media/v4l2-core/v4l2-fwnode.c | 10 +++--- 1 file changed, 7

  1   2   >