Re: [PATCH RFC v2] drm/msm/mdp5: enable autorefresh

2020-01-20 Thread Brian Masney
On Tue, Dec 31, 2019 at 10:50:27PM -0500, Brian Masney wrote: > On Sun, Dec 29, 2019 at 09:00:53PM -0500, Brian Masney wrote: > > Since the introduction of commit 2d99ced787e3 ("drm/msm: async commit > > support"), command-mode panels began throwing the following errors: > > > > msm

[PATCH 2/4] video: fbdev: remove set but not used variable 'vSyncPol'

2020-01-20 Thread yu kuai
Fixes gcc '-Wunused-but-set-variable' warning: drivers/video/fbdev/aty/radeon_base.c: In function ‘radeonfb_set_par’: drivers/video/fbdev/aty/radeon_base.c:1653:38: warning: variable ‘vSyncPol’ set but not used [-Wunused-but-set-variable] It is never used, and so can be removed. Signed-off-by:

[PATCH v6 4/4] drm/bridge: add it6505 driver

2020-01-20 Thread allen
From: Allen Chen This adds support for the iTE IT6505. This device can convert DPI signal to DP output. Signed-off-by: Jitao Shi Signed-off-by: Yilun Lin Signed-off-by: Allen Chen Signed-off-by: Pi-Hsun Shih --- drivers/gpu/drm/bridge/Kconfig |7 + drivers/gpu/drm/bridge/Makefile

general protection fault in fbcon_invert_region

2020-01-20 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:def9d278 Linux 5.5-rc7 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=13000685e0 kernel config: https://syzkaller.appspot.com/x/.config?x=83c00afca9cf5153 dashboard link:

drm/i915 GPU hang

2020-01-20 Thread Piper Fowler-Wright
I have recently (since the New Year) been experiencing regular GPU hangs which typically render the system unusable. During the hangs the kernel buffer is filled with messages of the form [ 8269.599926] [drm:gen8_reset_engines [i915]] *ERROR* rcs0 reset request timed out: {request: 0001,

[PATCH 1/4] video: fbdev: remove set but not used variable 'hSyncPol'

2020-01-20 Thread yu kuai
Fixes gcc '-Wunused-but-set-variable' warning: drivers/video/fbdev/aty/radeon_base.c: In function ‘radeonfb_set_par’: drivers/video/fbdev/aty/radeon_base.c:1653:6: warning: variable ‘hSyncPol’ set but not used [-Wunused-but-set-variable] It is never used, and so can be removed. Signed-off-by:

Re: backend-drm and scanning really large resolutions

2020-01-20 Thread Pekka Paalanen
On Fri, 17 Jan 2020 10:51:45 -0600 Matt Hoosier wrote: > Hi all, > > I'm confronting a situation where the hardware with which I work is capable > of driving connectors at 4K or 8K, but doing so requires bonding the > scanning of multiple planes together. > > The scenario is that you'd have a

[PATCH -next] drm/ttm: remove unnecessary conversion to bool

2020-01-20 Thread Chen Zhou
The conversion to bool is not needed, remove it. Signed-off-by: Chen Zhou --- drivers/gpu/drm/nouveau/nouveau_ttm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_ttm.c b/drivers/gpu/drm/nouveau/nouveau_ttm.c index 7ca0a24..0cbcbe1 100644

[PATCH] video: remove set but not used variable 'ulScaleRight'

2020-01-20 Thread yu kuai
Fixes gcc '-Wunused-but-set-variable' warning: drivers/video/fbdev/kyro/STG4000OverlayDevice.c: In function ‘SetOverlayViewPort’: drivers/video/fbdev/kyro/STG4000OverlayDevice.c:334:19: warning: variable ‘ulScaleRight’ set but not used [-Wunused-but-set-variable] It is never used, and so can be

[PATCH v6 3/4] dt-bindings: Add binding for IT6505.

2020-01-20 Thread allen
Add a DT binding documentation for IT6505. Acked-by: Sam Ravnborg Signed-off-by: Allen Chen Signed-off-by: Pi-Hsun Shih --- .../bindings/display/bridge/ite,it6505.yaml| 89 ++ 1 file changed, 89 insertions(+) create mode 100644

[PATCH V2] video: remove set but not used variable 'mach64RefFreq'

2020-01-20 Thread yu kuai
Fixes gcc '-Wunused-but-set-variable' warning: drivers/video/fbdev/aty/mach64_gx.c: In function ‘aty_var_to_pll_8398’: drivers/video/fbdev/aty/mach64_gx.c:621:36: warning: variable ‘mach64RefFreq’ set but not used [-Wunused-but-set-variable] It is never used, and so can be removed.

[PATCH 3/4] video: fbdev: remove set but not used variable 'vSyncPol'

2020-01-20 Thread yu kuai
Fixes gcc '-Wunused-but-set-variable' warning: drivers/video/fbdev/aty/radeon_base.c: In function ‘radeonfb_set_par’: drivers/video/fbdev/aty/radeon_base.c:1653:48: warning: variable ‘cSync’ set but not used [-Wunused-but-set-variable] It is never used, and so can be removed. Signed-off-by: yu

[PATCH v6 0/4] IT6505 cover letter

2020-01-20 Thread allen
The IT6505 is a high-performance DisplayPort 1.1a transmitter, fully compliant with DisplayPort 1.1a, HDCP 1.3 specifications. The IT6505 supports color depth of up to 36 bits (12 bits/color) and ensures robust transmission of high-quality uncompressed video content, along with uncompressed and

[PATCH] video: remove set but not used variable 'mach64RefFreq'

2020-01-20 Thread yu kuai
Fixes gcc '-Wunused-but-set-variable' warning: drivers/video/fbdev/aty/mach64_gx.c: In function ‘aty_var_to_pll_8398’: drivers/video/fbdev/aty/mach64_gx.c:621:36: warning: variable ‘mach64RefFreq’ set but not used [-Wunused-but-set-variable] It is never used, and so can be removed.

[PATCH] drm/scheduler: fix inconsistent locking of job_list_lock

2020-01-20 Thread Lucas Stach
1db8c142b6c5 (drm/scheduler: Add drm_sched_suspend/resume_timeout()) made the job_list_lock IRQ safe in as the suspend/resume calls were expected to be called from IRQ context. This usage never materialized in upstream. Instead amdgpu started locking the job_list_lock in an IRQ unsafe way in

[PATCH v3 2/4] drm: Initialize struct drm_crtc_state.no_vblank from device settings

2020-01-20 Thread Thomas Zimmermann
At the end of a commit, atomic helpers can generate a VBLANK event automatically. Originally implemented for writeback connectors, the functionality can be used by any driver and/or hardware without proper VBLANK interrupt. First of all, the patch updates the documentation to make this behaviour

[PATCH v3 0/4] Use no_vblank property for drivers without VBLANK

2020-01-20 Thread Thomas Zimmermann
Instead of faking VBLANK events by themselves, drivers without VBLANK support can enable drm_crtc_vblank.no_vblank and let DRM do the rest. The patchset makes this official and converts over drivers. The current implementation looks at the number of initialized CRTCs wrt vblanking. If vblanking

[PATCH v3 1/4] drm: Add drm_crtc_has_vblank()

2020-01-20 Thread Thomas Zimmermann
The new interface drm_crtc_has_vblank() return true if vblanking has been initialized for a certain CRTC, or false otherwise. This function will be useful for initializing CRTC state. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_vblank.c | 21 +

[PATCH v3 4/4] drm/udl: Don't set struct drm_crtc_state.no_vblank explictly

2020-01-20 Thread Thomas Zimmermann
As udl does not initialize vblanking, atomic helpers initialize the value of struct drm_crtc_state.no_vblank to be true. No need to set it from within the driver. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/udl/udl_modeset.c | 11 --- 1 file changed, 11 deletions(-) diff --git

[PATCH v3 3/4] drm/ast: Don't set struct drm_crtc_state.no_vblank explictly

2020-01-20 Thread Thomas Zimmermann
As ast does not initialize vblanking, atomic helpers initialize the value of struct drm_crtc_state.no_vblank to be true. No need to set it from within the driver. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/ast/ast_mode.c | 2 -- 1 file changed, 2 deletions(-) diff --git

Re: [PATCH v2] drm/syncobj: Add documentation for timeline syncobj

2020-01-20 Thread Lionel Landwerlin
On 14/01/2020 16:25, Christian König wrote: Am 14.01.20 um 13:19 schrieb Lionel Landwerlin: We've added a set of new APIs to manipulate syncobjs holding timelines of dma_fence. This adds a bit of documentation about how this works. v2: Small language nits (Lionel) Signed-off-by: Lionel

[PATCH v3 14/22] drm/stm: Convert to struct drm_crtc_helper_funcs.get_scanout_position()

2020-01-20 Thread Thomas Zimmermann
The callback struct drm_driver.get_scanout_position() is deprecated in favor of struct drm_crtc_helper_funcs.get_scanout_position(). Convert stm over. Signed-off-by: Thomas Zimmermann Tested-by: Yannick Fertré --- drivers/gpu/drm/stm/drv.c | 1 - drivers/gpu/drm/stm/ltdc.c | 65

[PATCH v3 10/22] drm/radeon: Convert to struct drm_crtc_helper_funcs.get_scanout_position()

2020-01-20 Thread Thomas Zimmermann
The callback struct drm_driver.get_scanout_position() is deprecated in favor of struct drm_crtc_helper_funcs.get_scanout_position(). Convert radeon over. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/radeon/atombios_crtc.c | 1 + drivers/gpu/drm/radeon/radeon_display.c | 13

[PATCH v3 00/22] drm: Clean up VBLANK callbacks in struct drm_driver

2020-01-20 Thread Thomas Zimmermann
VBLANK handlers in struct drm_driver are deprecated. Only legacy, non-KMS drivers are supposed to used them. DRM drivers with kernel modesetting are supposed to use VBLANK callbacks of the CRTC infrastructure. This patchset converts all DRM drivers to CRTC VBLANK callbacks and cleans up struct

[PATCH v3 05/22] drm/amdgpu: Convert to CRTC VBLANK callbacks

2020-01-20 Thread Thomas Zimmermann
VBLANK callbacks in struct drm_driver are deprecated in favor of their equivalents in struct drm_crtc_funcs. Convert amdgpu over. v2: * don't wrap existing functions; change signature instead Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 6 +++---

Re: [PATCH] drm/scheduler: fix inconsistent locking of job_list_lock

2020-01-20 Thread Christian König
Am 20.01.20 um 11:51 schrieb Lucas Stach: 1db8c142b6c5 (drm/scheduler: Add drm_sched_suspend/resume_timeout()) made the job_list_lock IRQ safe in as the suspend/resume calls were expected to be called from IRQ context. This usage never materialized in upstream. Instead amdgpu started locking the

Re: [PATCH v3 06/22] drm/gma500: Convert to CRTC VBLANK callbacks

2020-01-20 Thread Patrik Jakobsson
On Mon, Jan 20, 2020 at 9:23 AM Thomas Zimmermann wrote: > > VBLANK callbacks in struct drm_driver are deprecated in favor of > their equivalents in struct drm_crtc_funcs. Convert gma500 over. > > Signed-off-by: Thomas Zimmermann Looks good. For this patch: Acked-by: Patrik Jakobsson > --- >

[PATCH v3 03/22] drm: Add get_vblank_timestamp() to struct drm_crtc_funcs

2020-01-20 Thread Thomas Zimmermann
The callback get_vblank_timestamp() is currently located in struct drm_driver, but really belongs into struct drm_crtc_funcs. Add an equivalent there. Driver will be converted in separate patches. The default implementation is drm_calc_vbltimestamp_from_scanoutpos(). The patch adds

[PATCH v3 06/22] drm/gma500: Convert to CRTC VBLANK callbacks

2020-01-20 Thread Thomas Zimmermann
VBLANK callbacks in struct drm_driver are deprecated in favor of their equivalents in struct drm_crtc_funcs. Convert gma500 over. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/gma500/cdv_intel_display.c | 3 +++ drivers/gpu/drm/gma500/psb_drv.c | 4

[PATCH v3 02/22] drm: Add get_scanout_position() to struct drm_crtc_helper_funcs

2020-01-20 Thread Thomas Zimmermann
The new callback get_scanout_position() reads the current location of the scanout process. The operation is currently located in struct drm_driver, but really belongs to the CRTC. Drivers will be converted in separate patches. To help with the conversion, the timestamp calculation has been moved

[PATCH v3 09/22] drm/nouveau: Convert to CRTC VBLANK callbacks

2020-01-20 Thread Thomas Zimmermann
VBLANK callbacks in struct drm_driver are deprecated in favor of their equivalents in struct drm_crtc_funcs. Convert nouvean over. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/nouveau/dispnv04/crtc.c | 3 +++ drivers/gpu/drm/nouveau/dispnv50/head.c | 4

[PATCH v3 04/22] drm/amdgpu: Convert to struct drm_crtc_helper_funcs.get_scanout_position()

2020-01-20 Thread Thomas Zimmermann
The callback struct drm_driver.get_scanout_position() is deprecated in favor of struct drm_crtc_helper_funcs.get_scanout_position(). Convert amdgpu over. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 12

[PATCH v3 08/22] drm/nouveau: Convert to struct drm_crtc_helper_funcs.get_scanout_position()

2020-01-20 Thread Thomas Zimmermann
The callback struct drm_driver.get_scanout_position() is deprecated in favor of struct drm_crtc_helper_funcs.get_scanout_position(). Convert nouveau over. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/nouveau/dispnv04/crtc.c | 1 + drivers/gpu/drm/nouveau/dispnv50/head.c | 1 +

[PATCH v3 12/22] drm/msm: Convert to struct drm_crtc_helper_funcs.get_scanout_position()

2020-01-20 Thread Thomas Zimmermann
The callback struct drm_driver.get_scanout_position() is deprecated in favor of struct drm_crtc_helper_funcs.get_scanout_position(). Convert mem over. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c | 67 +++

[PATCH v3 07/22] drm/i915: Convert to CRTC VBLANK callbacks

2020-01-20 Thread Thomas Zimmermann
VBLANK callbacks in struct drm_driver are deprecated in favor of their equivalents in struct drm_crtc_funcs. Convert i915 over. The callback struct drm_driver.get_scanout_position() is deprecated in favor of struct drm_crtc_helper_funcs.get_scanout_position(). i915 doesn't use CRTC helpers.

[PATCH v3 01/22] drm: Remove internal setup of struct drm_device.vblank_disable_immediate

2020-01-20 Thread Thomas Zimmermann
VBLANK interrupts can be disabled immediately or with a delay, where the latter is the default. The former option can be selected by setting get_vblank_timestamp and enabling vblank_disable_immediate in struct drm_device. Simplify the code in preparation of the removal of struct

Re: [PATCH] drm/scheduler: fix inconsistent locking of job_list_lock

2020-01-20 Thread Lucas Stach
On Mo, 2020-01-20 at 11:59 +0100, Christian König wrote: > Am 20.01.20 um 11:51 schrieb Lucas Stach: > > 1db8c142b6c5 (drm/scheduler: Add drm_sched_suspend/resume_timeout()) made > > the job_list_lock IRQ safe in as the suspend/resume calls were expected to > > be called from IRQ context. This

Re: [PATCH v7 5/5] MAINTAINERS: add entry for tidss

2020-01-20 Thread Benoit Parrot
Jyri Sarha wrote on Thu [2020-Jan-16 23:06:00 +0200]: > Add entry for tidss DRM driver. > > Version history: > > v2: no change > > v3: - Move tidss entry after omapdrm > - Add "T: git git://anongit.freedesktop.org/drm/drm-misc" > > v4: no change > > v5: no change > > v6: no change >

[PATCH v3 17/22] drm/vc4: Convert to struct drm_crtc_helper_funcs.get_scanout_position()

2020-01-20 Thread Thomas Zimmermann
The callback struct drm_driver.get_scanout_position() is deprecated in favor of struct drm_crtc_helper_funcs.get_scanout_position(). Convert vc4 over. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/vc4/vc4_crtc.c | 12 +++- drivers/gpu/drm/vc4/vc4_drv.c | 1 -

[PATCH v3 15/22] drm/stm: Convert to CRTC VBLANK callbacks

2020-01-20 Thread Thomas Zimmermann
VBLANK callbacks in struct drm_driver are deprecated in favor of their equivalents in struct drm_crtc_funcs. Convert stm over. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/stm/drv.c | 1 - drivers/gpu/drm/stm/ltdc.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v3 11/22] drm/radeon: Convert to CRTC VBLANK callbacks

2020-01-20 Thread Thomas Zimmermann
VBLANK callbacks in struct drm_driver are deprecated in favor of their equivalents in struct drm_crtc_funcs. Convert radeon over. Signed-off-by: Thomas Zimmermann Reviewed-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_display.c | 12 -- drivers/gpu/drm/radeon/radeon_drv.c | 7

[PATCH v3 21/22] drm: Clean-up VBLANK-related callbacks in struct drm_driver

2020-01-20 Thread Thomas Zimmermann
All non-legacy users of VBLANK functions in struct drm_driver have been converted to use the respective interfaces in struct drm_crtc_funcs. The remaining users of VBLANK callbacks in struct drm_driver are legacy drivers with userspace modesetting. All users of struct

[PATCH v3 20/22] drm/vmwgfx: Convert to CRTC VBLANK callbacks

2020-01-20 Thread Thomas Zimmermann
VBLANK callbacks in struct drm_driver are deprecated in favor of their equivalents in struct drm_crtc_funcs. Convert vmwgfx over. v2: * remove accidental whitespace fixes Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 3 ---

[PATCH v3 22/22] drm: Remove legacy version of get_scanout_position()

2020-01-20 Thread Thomas Zimmermann
The legacy version of get_scanout_position() was only useful while drivers still used drm_driver.get_scanout_position(). With no such drivers left, the related typedef and code can be removed Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_vblank.c| 27 +++

[PATCH v3 19/22] drm/vkms: Convert to CRTC VBLANK callbacks

2020-01-20 Thread Thomas Zimmermann
VBLANK callbacks in struct drm_driver are deprecated in favor of their equivalents in struct drm_crtc_funcs. Convert vkms over. Signed-off-by: Thomas Zimmermann Reviewed-by: Rodrigo Siqueira Tested-by: Rodrigo Siqueira --- drivers/gpu/drm/vkms/vkms_crtc.c | 9 ++---

[PATCH v3 18/22] drm/vc4: Convert to CRTC VBLANK callbacks

2020-01-20 Thread Thomas Zimmermann
VBLANK callbacks in struct drm_driver are deprecated in favor of their equivalents in struct drm_crtc_funcs. Convert vc4 over. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/vc4/vc4_crtc.c | 1 + drivers/gpu/drm/vc4/vc4_drv.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff

[PATCH v3 16/22] drm/sti: Convert to CRTC VBLANK callbacks

2020-01-20 Thread Thomas Zimmermann
VBLANK callbacks in struct drm_driver are deprecated in favor of their equivalents in struct drm_crtc_funcs. Convert sti over. v2: * remove unnecessary include of sti_crtc.h from sti_drv.c Signed-off-by: Thomas Zimmermann Acked-by: Benjamin Gaignard --- drivers/gpu/drm/sti/sti_crtc.c

[PATCH v3 13/22] drm/msm: Convert to CRTC VBLANK callbacks

2020-01-20 Thread Thomas Zimmermann
VBLANK callbacks in struct drm_driver are deprecated in favor of their equivalents in struct drm_crtc_funcs. Convert msm over. Signed-off-by: Thomas Zimmermann Tested-by: Yannick Fertré --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 2 ++ drivers/gpu/drm/msm/disp/mdp4/mdp4_crtc.c | 2 ++

[PATCH v6 2/4] Revert "drm/tegra: Move drm_dp_link helpers to Tegra DRM"

2020-01-20 Thread allen
IT6505 driver ite-it6505.c file using drm_dp_link helpers, so revert. This reverts commit 9a42c7c647a9ad0f7ebb147a52eda3dcb7c84292. Signed-off-by: Allen Chen --- drivers/gpu/drm/drm_dp_helper.c | 128 ++ drivers/gpu/drm/tegra/Makefile | 1 - drivers/gpu/drm/tegra/dp.c | 876

Re: [PATCH v2 3/3] dt-bindings: display: panel: add bindings for logic technologies displays

2020-01-20 Thread Marcel Ziswiler
On Wed, 2019-10-30 at 09:29 -0500, Rob Herring wrote: > On Sun, Oct 27, 2019 at 03:26:09PM +0100, Marcel Ziswiler wrote: > > From: Marcel Ziswiler > > > > Add bindings for the following 3 previously added display panels > > manufactured by Logic Technologies Limited: > > > > - LT161010-2NHC

Re: [PATCH v2 3/3] dt-bindings: display: panel: add bindings for logic technologies displays

2020-01-20 Thread Marcel Ziswiler
Sorry, just noticed that this has not gone through yet. On Wed, 2019-10-30 at 09:28 -0500, Rob Herring wrote: > On Sun, Oct 27, 2019 at 03:26:09PM +0100, Marcel Ziswiler wrote: > > From: Marcel Ziswiler > > > > Add bindings for the following 3 previously added display panels > > manufactured by

[PATCH 4/4] video: fbdev: remove set but not used variable 'bytpp'

2020-01-20 Thread yu kuai
Fixes gcc '-Wunused-but-set-variable' warning: drivers/video/fbdev/aty/radeon_base.c: In function ‘radeonfb_set_par’: drivers/video/fbdev/aty/radeon_base.c:1660:32: warning: variable ‘bytpp’ set but not used [-Wunused-but-set-variable] It is never used, and so can be removed. Signed-off-by: yu

[PATCH] drm/msm/mdp5: rate limit pp done timeout warnings

2020-01-20 Thread Brian Masney
Add rate limiting of the 'pp done time out' warnings since these warnings can quickly fill the dmesg buffer. Signed-off-by: Brian Masney --- drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 0/4] cleanup patches for unused variables

2020-01-20 Thread yu kuai
yu kuai (4): video: fbdev: remove set but not used variable 'hSyncPol' video: fbdev: remove set but not used variable 'vSyncPol' video: fbdev: remove set but not used variable 'vSyncPol' video: fbdev: remove set but not used variable 'bytpp' drivers/video/fbdev/aty/radeon_base.c | 10

Re: [Regression 5.5-rc1] Extremely low GPU performance on NVIDIA Tegra20/30

2020-01-20 Thread Dmitry Osipenko
13.12.2019 18:35, Dmitry Osipenko пишет: > 13.12.2019 18:10, Thierry Reding пишет: >> On Fri, Dec 13, 2019 at 12:25:33AM +0300, Dmitry Osipenko wrote: >>> Hello Thierry, >>> >>> Commit [1] introduced a severe GPU performance regression on Tegra20 and >>> Tegra30 using. >>> >>> [1] >>>

Re: [PATCH v2] drm: fix parameters documentation style

2020-01-20 Thread Benjamin GAIGNARD
On 1/18/20 10:41 AM, Sam Ravnborg wrote: > Hi Benjamin > > On Tue, Jan 14, 2020 at 05:01:35PM +0100, Benjamin Gaignard wrote: >> Remove old documentation style and use new one to avoid warnings when >> compiling with W=1 >> >> Signed-off-by: Benjamin Gaignard > Thanks for the warning fixes. >

Re: [PATCH v3 2/3] drm/panel: simple: add display timings for logic technologies displays

2020-01-20 Thread Marcel Ziswiler
Hi Sam On Sun, 2020-01-19 at 23:47 +0100, Sam Ravnborg wrote: > Hi Marcel. > > On Sun, Jan 19, 2020 at 11:02:03PM +0100, Marcel Ziswiler wrote: > > From: Marcel Ziswiler > > > > Add display timings for the following 3 display panels manufactured > > by > > Logic Technologies Limited: > > > >

[PATCH] fbdev: wait for references go away

2020-01-20 Thread Gerd Hoffmann
Problem: do_unregister_framebuffer() might return before the device is fully cleaned up, due to userspace having a file handle for /dev/fb0 open. Which can result in drm driver not being able to grab resources (and fail initialization) because the firmware framebuffer still holds them.

Re: [PATCH v3 20/22] drm/vmwgfx: Convert to CRTC VBLANK callbacks

2020-01-20 Thread Thomas Hellstrom
On 1/20/20 9:23 AM, Thomas Zimmermann wrote: > VBLANK callbacks in struct drm_driver are deprecated in favor of > their equivalents in struct drm_crtc_funcs. Convert vmwgfx over. > > v2: > * remove accidental whitespace fixes > > Signed-off-by: Thomas Zimmermann > --- >

Re: [PATCH v1 2/5] pardata: new bus for parallel data access

2020-01-20 Thread Geert Uytterhoeven
Hi Sam, (stumbled on this accidentally) On Thu, Aug 2, 2018 at 9:46 PM Sam Ravnborg wrote: > The pardata supports implement a simple bus for devices > that are connected using a parallel bus driven by GPIOs. > The is often used in combination with simple displays > that is often seen in older

Re: [RFC PATCH v3 2/2] drm/i915/gen7: Clear all EU/L3 residual contexts

2020-01-20 Thread Chris Wilson
Quoting Akeem G Abodunrin (2020-01-16 17:46:55) > +static u32 > +gen7_fill_interface_descriptor(struct batch_chunk *state, > + const struct batch_vals *bv, > + const struct cb_kernel *kernel, > + unsigned int

Re: [PATCH v4] drm/trace: Buffer DRM logs in a ringbuffer accessible via debugfs

2020-01-20 Thread Steven Rostedt
On Thu, 16 Jan 2020 07:27:22 +0100 Daniel Vetter wrote: > On Tue, Jan 14, 2020 at 12:21:43PM -0500, Sean Paul wrote: > > From: Sean Paul > > > > This patch uses a ring_buffer to keep a "flight recorder" (name credit > > Weston) > > of DRM logs for a specified set of debug categories. The user

Re: [PATCH v2] drm: fix parameters documentation style

2020-01-20 Thread Sam Ravnborg
Hi Benjamin. On Mon, Jan 20, 2020 at 08:11:01AM +, Benjamin GAIGNARD wrote: > > On 1/18/20 10:41 AM, Sam Ravnborg wrote: > > Hi Benjamin > > > > On Tue, Jan 14, 2020 at 05:01:35PM +0100, Benjamin Gaignard wrote: > >> Remove old documentation style and use new one to avoid warnings when > >>

[PATCH v8 1/5] dt-bindings: display: ti, k2g-dss: Add dt-schema yaml binding

2020-01-20 Thread Jyri Sarha
Add dt-schema yaml bindig for K2G DSS, an ultra-light version of TI Keystone Display SubSystem. Version history: v2: no change v3: - Add ports node - Add includes to dts example - reindent dts example v4: - Add descriptions to reg and clocks properties - Remove minItems when its

[PATCH v8 5/5] MAINTAINERS: add entry for tidss

2020-01-20 Thread Jyri Sarha
Add entry for tidss DRM driver. Version history: v2: no change v3: - Move tidss entry after omapdrm - Add "T: git git://anongit.freedesktop.org/drm/drm-misc" v4: no change v5: no change v6: no change v7: no change v8: - Add Reviewed-by: Benoit Parrot Signed-off-by: Jyri Sarha

[PATCH v8 4/5] drm/tidss: New driver for TI Keystone platform Display SubSystem

2020-01-20 Thread Jyri Sarha
This patch adds a new DRM driver for Texas Instruments DSS IPs used on Texas Instruments Keystone K2G, AM65x, and J721e SoCs. The new DSS IP is a major change to the older DSS IP versions, which are supported by the omapdrm driver. While on higher level the Keystone DSS resembles the older DSS

[PATCH v8 2/5] dt-bindings: display: ti, am65x-dss: Add dt-schema yaml binding

2020-01-20 Thread Jyri Sarha
Add dt-schema yaml bindig for AM65x DSS, AM65x version TI Keystone Display SubSystem. Version history: v2: no change v3: - Add ports node - use allOf in ti,am65x-oldi-io-ctrl to add both $ref and maxItems - Add includes to dts example - reindent dts example v4: - Add descriptions

[PATCH v8 3/5] dt-bindings: display: ti, j721e-dss: Add dt-schema yaml binding

2020-01-20 Thread Jyri Sarha
Add dt-schema yaml bindig for J721E DSS, J721E version TI Keystone Display SubSystem. Version history: v2: no change v3: - reg-names: "wp" -> "wb" - Add ports node - Add includes to dts example - reindent dts example v4: - Add descriptions to reg, clocks, and interrupts properties

[PATCH v8 0/5] drm/tidss: New driver for TI Keystone platform Display SubSystem

2020-01-20 Thread Jyri Sarha
Changes since v7: - "drm/tidss: New driver for TI Keystone platform Display SubSystem" - Remove idle debug prints from dispc_init() - Add Reviewed-by: Benoit Parrot - "MAINTAINERS: add entry for tidss" - Add Reviewed-by: Benoit Parrot Changes since v6: - Rebase on top of

Re: [PATCH v2 13/24] drm/etnaviv: reject timeouts with tv_nsec >= NSEC_PER_SEC

2020-01-20 Thread Arnd Bergmann
On Mon, Jan 20, 2020 at 6:48 PM Lucas Stach wrote: > On Fr, 2020-01-17 at 16:47 +0100, Guido Günther wrote: > > > > This breaks rendering here on arm64/gc7000 due to > > > > ioctl(6, DRM_IOCTL_ETNAVIV_GEM_CPU_PREP or DRM_IOCTL_MSM_GEM_CPU_PREP, > > 0xf7888680) = -1 EINVAL (Invalid argument)

Re: [PATCH v1 2/5] pardata: new bus for parallel data access

2020-01-20 Thread Sam Ravnborg
Hi Geert. > > It is on my TODO list to make a mipi-dbi driver that in the future > > replaces the auxdisplay driver for hd44780. > > Please note that hd44780 is a character controller. Directory was correct - but name was wrong. It is cfag12864b I have on my TODO. And yes, the code for hd44780

[PATCH v1 1/3] dt-bindings: display: add panel-timing.yaml

2020-01-20 Thread Sam Ravnborg
Add meta-schema variant of panel-timing and reference it from panel-common.yaml. Signed-off-by: Sam Ravnborg Cc: Laurent Pinchart Cc: Rob Herring Cc: Thierry Reding Cc: Oleksandr Suvorov Cc: devicet...@vger.kernel.org --- .../bindings/display/panel/panel-common.yaml | 7 +-

[PATCH v1 3/3] dt-bindings: display: convert panel-dpi to DT schema

2020-01-20 Thread Sam Ravnborg
With panel-timing converted, now convert the single remaining .txt user in panel/ of panel-timing to DT schema. Signed-off-by: Sam Ravnborg Cc: Rob Herring Cc: Thierry Reding Cc: Laurent Pinchart Cc: Maxime Ripard --- .../bindings/display/panel/panel-dpi.txt | 50 -

[PATCH v1 2/3] dt-bindings: display: convert display-timings to DT schema

2020-01-20 Thread Sam Ravnborg
Add display-timings.yaml - that references panel-timings.yaml. display-timings.yaml will be used for display bindings when they are converted to meta-schema format. For now the old display-timing.txt points to the new display-timings.yaml - and all users are left as-is. Signed-off-by: Sam

[PATCH v1 0/3] dt-bindings: convert timing + panel-dpi to DT schema

2020-01-20 Thread Sam Ravnborg
This set of patches convert display-timing.txt to DT schema. To do that add a panel-timing.yaml file that include all the panel-timing properties and use this in panel-common and in display-timings. panel-dpi was also converted so we have no .txt users left of panel-timing in panel/ Everything

linux-next: build failure after merge of the drm-intel-fixes tree

2020-01-20 Thread Stephen Rothwell
Hi all, After merging the drm-intel-fixes tree, today's linux-next build (x86_64 allmodconfig) failed like this: Caused by commit d8fcca47e195 ("drm/i915/userptr: fix size calculation") I have reverted that commit for today. -- Cheers, Stephen Rothwell pgpX9NjY6yUOo.pgp Description:

Re: [Intel-gfx] [PATCH v3 03/22] drm: Add get_vblank_timestamp() to struct drm_crtc_funcs

2020-01-20 Thread Ville Syrjälä
On Mon, Jan 20, 2020 at 09:22:55AM +0100, Thomas Zimmermann wrote: > The callback get_vblank_timestamp() is currently located in struct > drm_driver, but really belongs into struct drm_crtc_funcs. Add an > equivalent there. Driver will be converted in separate patches. > > The default

Re: [PATCH v3 22/22] drm: Remove legacy version of get_scanout_position()

2020-01-20 Thread Ville Syrjälä
On Mon, Jan 20, 2020 at 09:23:14AM +0100, Thomas Zimmermann wrote: > The legacy version of get_scanout_position() was only useful while > drivers still used drm_driver.get_scanout_position(). With no such > drivers left, the related typedef and code can be removed > > Signed-off-by: Thomas

Re: [Freedreno] [PATCH v2] drm/msm: Add syncobj support.

2020-01-20 Thread Jordan Crouse
On Fri, Jan 17, 2020 at 07:32:27PM +0100, Bas Nieuwenhuizen wrote: > On Fri, Jan 17, 2020 at 7:17 PM Jordan Crouse wrote: > > > > On Fri, Jan 17, 2020 at 12:04:17AM +0100, Bas Nieuwenhuizen wrote: > > > This > > > > > > 1) Enables core DRM syncobj support. > > > 2) Adds options to the submission

[PATCH] dt-bindings: restrict properties for sitronix,st7735r

2020-01-20 Thread Sam Ravnborg
Hi David. > > +allOf: > > + - $ref: panel/panel-common.yaml# > > not all of these properties are applicable. > > > +required: > > + - compatible > > + - reg > > + - dc-gpios > > + - reset-gpios > > Missing optional rotation and backlight properties. Thanks for catching this. I have

Re: [PATCH v1 2/5] pardata: new bus for parallel data access

2020-01-20 Thread Geert Uytterhoeven
Hi Sam, On Mon, Jan 20, 2020 at 7:48 PM Sam Ravnborg wrote: > On Mon, Jan 20, 2020 at 11:10:37AM +0100, Geert Uytterhoeven wrote: > > On Thu, Aug 2, 2018 at 9:46 PM Sam Ravnborg wrote: > > > The pardata supports implement a simple bus for devices > > > that are connected using a parallel bus

Re: [PATCH v2 13/24] drm/etnaviv: reject timeouts with tv_nsec >= NSEC_PER_SEC

2020-01-20 Thread Lucas Stach
On Fr, 2020-01-17 at 16:47 +0100, Guido Günther wrote: > Hi, > On Fri, Dec 13, 2019 at 09:53:41PM +0100, Arnd Bergmann wrote: > > Most kernel interfaces that take a timespec require normalized > > representation with tv_nsec between 0 and NSEC_PER_SEC. > > > > Passing values larger than

Re: [PATCH] fbdev: wait for references go away

2020-01-20 Thread Bartlomiej Zolnierkiewicz
Hi, On 1/20/20 11:00 AM, Gerd Hoffmann wrote: > Problem: do_unregister_framebuffer() might return before the device is > fully cleaned up, due to userspace having a file handle for /dev/fb0 do_unregister_framebuffer() doesn't guarantee that fb_info is freed after function's return (it only

Re: [PATCH] fbdev: wait for references go away

2020-01-20 Thread Bartlomiej Zolnierkiewicz
On 1/20/20 6:51 PM, Bartlomiej Zolnierkiewicz wrote: > do_unregister_framebuffer() doesn't guarantee that fb_info is freed after > function's return (it only drops the kernel reference on fb_info). s/kernel/fbdev device driver/ Best regards, -- Bartlomiej Zolnierkiewicz Samsung R Institute

Re: [PATCH v1 2/5] pardata: new bus for parallel data access

2020-01-20 Thread Sam Ravnborg
Hi Geert. On Mon, Jan 20, 2020 at 11:10:37AM +0100, Geert Uytterhoeven wrote: > Hi Sam, > > (stumbled on this accidentally) > > On Thu, Aug 2, 2018 at 9:46 PM Sam Ravnborg wrote: > > The pardata supports implement a simple bus for devices > > that are connected using a parallel bus driven by

Re: [PATCH 1/3] drm/panel: make LVDS panel driver DPI capable

2020-01-20 Thread Sam Ravnborg
Hi Oleksandr. Thanks for the quick reply. On Mon, Jan 20, 2020 at 10:03:20AM +, Oleksandr Suvorov wrote: > Hi Sam, > > On Sat, Jan 18, 2020 at 3:04 PM Sam Ravnborg wrote: > > > > > > The LVDS panel driver has almost everything which is required to > > > describe a simple parallel RGB panel

Re: [git pull] vmwgfx-next

2020-01-20 Thread Dave Airlie
On Thu, 16 Jan 2020 at 19:30, Thomas Hellström (VMware) wrote: > > Dave, Daniel > > The main 5.6 -next pull from vmwgfx. Minor things here and there, as well > as an added ioctl for host messaging and a corresponding api version bump. Is there userspace for this ioctl somewhere? I need a pointer

Re: [PATCH] fbdev: wait for references go away

2020-01-20 Thread Gerd Hoffmann
Hi, > > open. Which can result in drm driver not being able to grab resources > > (and fail initialization) because the firmware framebuffer still holds > > them. Reportedly plymouth can trigger this. > > Could you please describe issue some more? > > I guess that a problem is happening

[RFC] drm/hdcp: optimizing the srm handling

2020-01-20 Thread Ramalingam C
As we are not using the sysfs infrastructure anymore, link to it is removed. And global srm data and mutex to protect it are removed, with required handling at revocation check function. Yet to test hence RFC tag is added. Signed-off-by: Ramalingam C Suggested-by: Sean Paul ---

Re: linux-next: build failure after merge of the drm-intel-fixes tree

2020-01-20 Thread Joonas Lahtinen
Quoting Stephen Rothwell (2020-01-20 23:34:24) > Hi all, > > After merging the drm-intel-fixes tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > > Caused by commit > > d8fcca47e195 ("drm/i915/userptr: fix size calculation") > > I have reverted that commit for

Re: [PATCH v1 1/3] dt-bindings: display: add panel-timing.yaml

2020-01-20 Thread Maxime Ripard
Hi, On Mon, Jan 20, 2020 at 09:06:39PM +0100, Sam Ravnborg wrote: > Add meta-schema variant of panel-timing and > reference it from panel-common.yaml. > > Signed-off-by: Sam Ravnborg > Cc: Laurent Pinchart > Cc: Rob Herring > Cc: Thierry Reding > Cc: Oleksandr Suvorov > Cc:

Re: [PATCH v2] drm/syncobj: Add documentation for timeline syncobj

2020-01-20 Thread Christian König
Am 20.01.20 um 12:02 schrieb Lionel Landwerlin: On 14/01/2020 16:25, Christian König wrote: Am 14.01.20 um 13:19 schrieb Lionel Landwerlin: We've added a set of new APIs to manipulate syncobjs holding timelines of dma_fence. This adds a bit of documentation about how this works. v2: Small

Re: [PATCH v3 4/7] drm/panfrost: Add support for multiple regulators

2020-01-20 Thread Steven Price
On 14/01/2020 07:15, Nicolas Boichat wrote: > Some GPUs, namely, the bifrost/g72 part on MT8183, have a second > regulator for their SRAM, let's add support for that. > > We extend the framework in a generic manner so that we could > support more than 2 regulators, if required. > >

[Bug 206017] Kernel 5.4.x unusable with GUI due to crashes (some hard)

2020-01-20 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=206017 --- Comment #15 from Alex Deucher (alexdeuc...@gmail.com) --- Should be fixed in: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7aec9ec1cf324d5c5a8d17b9c78a34c388e5f17b which should also be landing in various

[Bug 206017] Kernel 5.4.x unusable with GUI due to crashes (some hard)

2020-01-20 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=206017 --- Comment #16 from udo (udo...@xs4all.nl) --- amdgpu.noretry=0 works as workaround so the commit should fix things well. Thanks for the commit! Still looking for the right component for https://bugzilla.kernel.org/show_bug.cgi?id=206191 :-/

Re: drm/i915 GPU hang

2020-01-20 Thread Chris Wilson
Quoting Piper Fowler-Wright (2020-01-18 20:28:42) > I have recently (since the New Year) been experiencing regular GPU hangs > which typically render the system unusable. > > During the hangs the kernel buffer is filled with messages of the form > > [ 8269.599926] [drm:gen8_reset_engines

[PATCH] drm/stm: ltdc: enable/disable depends on encoder

2020-01-20 Thread Yannick Fertre
From: Yannick Fertré When connected to a dsi host, the ltdc display controller must send frames only after the end of the dsi panel initialization to avoid errors when the dsi host sends commands to the dsi panel (dsi px fifo full). To avoid this issue, the display controller must be

Re: [PATCH v7 4/5] drm/tidss: New driver for TI Keystone platform Display SubSystem

2020-01-20 Thread Benoit Parrot
Jyri Sarha wrote on Fri [2020-Jan-17 00:09:29 +0200]: > This patch adds a new DRM driver for Texas Instruments DSS IPs used on > Texas Instruments Keystone K2G, AM65x, and J721e SoCs. The new DSS IP is > a major change to the older DSS IP versions, which are supported by > the omapdrm driver.

Re: [PATCH v2 1/5] dt-bindings: display: sitronix, st7735r: Convert to DT schema

2020-01-20 Thread David Lechner
On 1/15/20 6:45 AM, Geert Uytterhoeven wrote: Convert the DT binding documentation for Sitronix ST7735R displays to DT schema. Add a reference to the Adafruit 1.8" LCD while at it. Signed-off-by: Geert Uytterhoeven --- v2: - New. --- .../bindings/display/sitronix,st7735r.txt | 35

[PATCH 5/5] drm/rockchip: rk3066_hdmi: Cleanup component unbind

2020-01-20 Thread Ezequiel Garcia
Remove drm_connector_unregister() since it should be used only by drivers that call drm_dev_register explicitly. Also, call the DRM cleanups directly, instead of (ab)using the destroy hooks, for readability reasons. Signed-off-by: Ezequiel Garcia --- drivers/gpu/drm/rockchip/rk3066_hdmi.c | 8

  1   2   >