[PATCH] drm/mcde: Some fixes to handling video mode

2019-09-02 Thread Linus Walleij
The video DSI mode had not really been tested. These fixes makes it more likely to work on real hardware: - Set the HS clock to something the video mode reported by the panel can handle rather than the max HS rate. - Put the active width (x width) in the right bits and the VSA (vertical sync ac

[Bug 111481] AMD Navi GPU frequent freezes on both Manjaro/Ubuntu with kernel 5.3 and mesa 19.2 -git/llvm9

2019-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111481 --- Comment #14 from Marko Popovic --- (In reply to Mathieu Belanger from comment #13) > I was able to reproduce that Citra crash. > Followed the instruction, it did crash instantly after choosing continue (or > a fraction of a second after, th

[PATCH 1/3] drm/amd: be quiet when no SAD block is found

2019-09-02 Thread Jean Delvare
It is fine for displays without audio functionality to not provide any SAD block in their EDID. Do not log an error in that case, just return quietly. This fixes half of bug fdo#107825: https://bugs.freedesktop.org/show_bug.cgi?id=107825 Signed-off-by: Jean Delvare Cc: Alex Deucher Cc: "Christi

[PATCH 0/3] drm/edid: don't log errors on absent CEA SAD blocks

2019-09-02 Thread Jean Delvare
Hi all, This is my attempt to fix bug fdo#107825: https://bugs.freedesktop.org/show_bug.cgi?id=107825 [PATCH 1/3] drm/amd: be quiet when no SAD block is found [PATCH 2/3] drm/radeon: be quiet when no SAD block is found [PATCH 3/3] drm/edid: no CEA extension is not an error -- Jean Delvare SUSE

Re: [PATCH] drm/ingenic: Hardcode panel type to DPI

2019-09-02 Thread Paul Cercueil
Le jeu. 29 août 2019 à 16:46, Laurent Pinchart a écrit : Hi Paul, On Thu, Aug 29, 2019 at 12:03:32PM +0200, Paul Cercueil wrote: Le mar. 27 août 2019 à 7:00, Sam Ravnborg a écrit : > On Fri, Aug 23, 2019 at 11:30:09PM +0200, Paul Cercueil wrote: >> Le ven. 23 août 2019 à 23:23, Laurent

[PATCH 3/3] drm/edid: no CEA extension is not an error

2019-09-02 Thread Jean Delvare
It is fine for displays without audio functionality to not implement CEA extension in their EDID. Do not return an error in that case, instead return 0 as if there was a CEA extension with no audio or speaker block. This fixes half of bug fdo#107825: https://bugs.freedesktop.org/show_bug.cgi?id=10

[PATCH 2/3] drm/edid: don't log errors on absent CEA SAD blocks

2019-09-02 Thread Jean Delvare
It is fine for displays without audio functionality to not provide any SAD block in their EDID. Do not log an error in that case, just return quietly. Inspired by a similar fix to the amdgpu driver in the context of bug fdo#107825: https://bugs.freedesktop.org/show_bug.cgi?id=107825 Signed-off-by

[PATCH] drm/amdgpu: Move null pointer dereference check

2019-09-02 Thread Austin Kim
Null pointer dereference check should have been checked, ahead of below routine. struct amdgpu_device *adev = hwmgr->adev; With this commit, it could avoid potential NULL dereference. Signed-off-by: Austin Kim --- drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c | 5 +++-- 1 file chan

[PATCH] drm/amdgpu: Allow reading more status registers on si/cik

2019-09-02 Thread Trek
hello, this patch adds some registers to the list of allowed registers. It is based on commit c7890fea. I have added any register that is defined for each architecture. I'm interested only to mmSRBM_STATUS{,2} but I think it is good to have more coherency between architectures. Not sure if KMS_DR

Re: [PATCH 2/3] drm/radeon: be quiet when no SAD block is found

2019-09-02 Thread Jean Delvare
Oops, sorry, I messed up the subject line of that one, which should really read "drm/radeon: be quiet when no SAD block is found". -- Jean Delvare SUSE L3 Support ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/ma

Re: [PATCH 1/2] drm/mediatek: Support CMDQ interface in ddp component

2019-09-02 Thread Nicolas Boichat
On Fri, Aug 30, 2019 at 3:41 PM Bibby Hsieh wrote: > > The CMDQ (Command Queue) in MT8183 is used to help > update all relevant display controller registers > with critical time limation. > This patch add cmdq interface in ddp_comp interface, > let all ddp_comp interface can support cpu/cmdq funct

[Bug 109955] amdgpu [RX Vega 64] system freeze while gaming

2019-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109955 --- Comment #93 from Wilko Bartels --- (In reply to Wilko Bartels from comment #91) > how big are your swap partitions guys? just toying around here :-) also i wanna know if anyone else on arch tested the amdgpu-pro yet? i played only 3 hours n

[Bug 111481] AMD Navi GPU frequent freezes on both Manjaro/Ubuntu with kernel 5.3 and mesa 19.2 -git/llvm9

2019-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111481 --- Comment #15 from Pierre-Eric Pelloux-Prayer --- (In reply to Marko Popovic from comment #14) > > Yes, always happens at the same place with Citra emulator Could you capture a trace of the problem (using Apitrace or Renderdoc)? This would

Re: [PATCH 2/5] drm: dw-hdmi: move dw_hdmi_connector_detect()

2019-09-02 Thread Neil Armstrong
On 01/09/2019 18:14, Jonas Karlman wrote: > Move dw_hdmi_connector_detect() it will call dw_hdmi_connector_update_edid(). > > Signed-off-by: Jonas Karlman > --- > drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 30 +++ > 1 file changed, 15 insertions(+), 15 deletions(-) > > diff

Re: [PATCH 1/5] drm: dw-hdmi: extract dw_hdmi_connector_update_edid()

2019-09-02 Thread Neil Armstrong
Hi Jonas, On 01/09/2019 18:14, Jonas Karlman wrote: > Extract code that updates EDID into a dw_hdmi_connector_update_edid() > helper, it will be called from dw_hdmi_connector_detect(). Small nit, you should precise you add a bool to optionally add the modes. Anyway: Reviewed-by: Neil Armstrong

Re: [PATCH 5/5] drm: dw-hdmi: update ELD on HPD event

2019-09-02 Thread Neil Armstrong
On 01/09/2019 18:14, Jonas Karlman wrote: > Update connector ELD on HPD event, fixes stale ELD when > HDMI cable is unplugged/replugged or AVR is powered on/off. > > Signed-off-by: Jonas Karlman > --- > drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff

Re: [PATCH 4/5] Revert "drm/edid: make drm_edid_to_eld() static"

2019-09-02 Thread Neil Armstrong
On 01/09/2019 18:14, Jonas Karlman wrote: > drm_edid_to_eld() is needed to update stale connector ELD on HPD event. > > This reverts part of commit 79436a1c9bcc ("drm/edid: make drm_edid_to_eld() > static"). Why not a full revert ? The documentation revert seems also relevant now Neil > > Si

Re: [PATCH 3/5] drm: dw-hdmi: update CEC phys addr and EDID on HPD event

2019-09-02 Thread Neil Armstrong
On 01/09/2019 18:14, Jonas Karlman wrote: > Update CEC phys addr and EDID on HPD event, fixes lost CEC phys addr and > stale EDID when HDMI cable is unplugged/replugged or AVR is powered on/off. > > Signed-off-by: Jonas Karlman > --- > drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 16 +

Re: [PATCH v5, 22/32] drm/mediatek: add ovl0/ovl_2l0 usecase

2019-09-02 Thread CK Hu
Hi, Yongqiang: On Fri, 2019-08-30 at 13:58 +0800, CK Hu wrote: > Hi, Yongqiang: > > On Thu, 2019-08-29 at 22:50 +0800, yongqiang@mediatek.com wrote: > > From: Yongqiang Niu > > > > This patch add ovl0/ovl_2l0 usecase > > in ovl->ovl_2l0 direct link usecase: > > 1. the crtc support layer num

[Bug 111527] obs-studio + latest mesa on amdgpu/vega64 leaks kernel memory rapidly

2019-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111527 --- Comment #1 from Pierre-Eric Pelloux-Prayer --- > Reproduces with 19.3 - bfac462d929 > Does not reproduce with 19.1.4 > Could you bisect to find when the issue was introduced? -- You are receiving this mail because: You are the assignee

Re: [PATCH] drm/ingenic: Hardcode panel type to DPI

2019-09-02 Thread Laurent Pinchart
Hi Paul, On Sat, Aug 31, 2019 at 02:29:02PM +0200, Paul Cercueil wrote: > Le jeu. 29 août 2019 à 16:46, Laurent Pinchart a écrit : > > On Thu, Aug 29, 2019 at 12:03:32PM +0200, Paul Cercueil wrote: > >> Le mar. 27 août 2019 à 7:00, Sam Ravnborg a écrit : > >>> On Fri, Aug 23, 2019 at 11:30:09PM +

[Bug 111481] AMD Navi GPU frequent freezes on both Manjaro/Ubuntu with kernel 5.3 and mesa 19.2 -git/llvm9

2019-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111481 --- Comment #16 from Marko Popovic --- Created attachment 145232 --> https://bugs.freedesktop.org/attachment.cgi?id=145232&action=edit APITrace log from Citra crash -- You are receiving this mail because: You are the assignee for the bug.___

[Bug 111481] AMD Navi GPU frequent freezes on both Manjaro/Ubuntu with kernel 5.3 and mesa 19.2 -git/llvm9

2019-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111481 --- Comment #17 from Marko Popovic --- (In reply to Pierre-Eric Pelloux-Prayer from comment #15) > (In reply to Marko Popovic from comment #14) > > > > Yes, always happens at the same place with Citra emulator > > Could you capture a trace of

Re: [PATCH resend] video: backlight: Drop default m for {LCD,BACKLIGHT_CLASS_DEVICE}

2019-09-02 Thread Lee Jones
On Tue, 13 Aug 2019, Geert Uytterhoeven wrote: > When running "make oldconfig" on a .config where > CONFIG_BACKLIGHT_LCD_SUPPORT is not set, two new config options > ("Lowlevel LCD controls" and "Lowlevel Backlight controls") appear, both > defaulting to "m". > > Drop the "default m", as options

[PATCH 2/2] drm/panel: Add driver for Sony ACX424AKP panel

2019-09-02 Thread Linus Walleij
The Sony ACX424AKP is a command/videomode DSI panel for mobile devices. It is used on the ST-Ericsson HREF520 reference design. We support video mode by default, but it is possible to switch the panel into command mode by using the bool property "dsi-command-mode". Signed-off-by: Linus Walleij --

[PATCH 1/2] drm/panel: Add DT bindings for Sony ACX424AKP

2019-09-02 Thread Linus Walleij
This adds device tree bindings for the Sony ACX424AKP panel. Let's use YAML. Cc: devicet...@vger.kernel.org Signed-off-by: Linus Walleij --- .../display/panel/sony,acx424akp.yaml | 53 +++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bind

Re: [PATCH] video: backlight: tosa_lcd: drop check because i2c_unregister_device() is NULL safe

2019-09-02 Thread Lee Jones
On Tue, 20 Aug 2019, Wolfram Sang wrote: > No need to check the argument of i2c_unregister_device() because the > function itself does it. > > Signed-off-by: Wolfram Sang > --- > Build tested only, buildbot is happy, too. > > Please apply to your tree. > > drivers/video/backlight/tosa_lcd.c |

Re: [PATCH] pxa168fb: Fix the function used to release some memory in an error handling path

2019-09-02 Thread Lubomir Rintel
On Sat, 2019-08-31 at 12:00 +0200, Christophe JAILLET wrote: > In the probe function, some resources are allocated using 'dma_alloc_wc()', > they should be released with 'dma_free_wc()', not 'dma_free_coherent()'. > > We already use 'dma_free_wc()' in the remove function, but not in the > error ha

Re: [PATCH v3] backlight: gpio-backlight: Correct initial power state handling

2019-09-02 Thread Lee Jones
On Wed, 31 Jul 2019, Peter Ujfalusi wrote: > The default-on property - or the def_value via legacy pdata) should be > handled as: > if it is 1, the backlight must be enabled (kept enabled) > if it is 0, the backlight must be disabled (kept disabled) > > This only works for the case when default-o

[Bug 111481] AMD Navi GPU frequent freezes on both Manjaro/Ubuntu with kernel 5.3 and mesa 19.2 -git/llvm9

2019-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111481 --- Comment #18 from Marko Popovic --- Created attachment 145233 --> https://bugs.freedesktop.org/attachment.cgi?id=145233&action=edit APITrace log from RocketLeague crash I am adding Rocket League crash output from apitrace. -- You are rec

Re: [PATCH v3 0/7] backlight: gpio: simplify the driver

2019-09-02 Thread Lee Jones
On Wed, 24 Jul 2019, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > While working on my other series related to gpio-backlight[1] I noticed > that we could simplify the driver if we made the only user of platform > data use GPIO lookups and device properties. This series tries to do

Re: [PATCH] drm/stm: ltdc: add pinctrl for DPI encoder mode

2019-09-02 Thread Benjamin Gaignard
+dri-devel mailing list Le lun. 2 sept. 2019 à 10:47, Philippe CORNU a écrit : > > Hi Yannick, > > On 8/2/19 4:47 PM, Yannick Fertré wrote: > > The implementation of functions encoder_enable and encoder_disable > > make possible to control the pinctrl according to the encoder type. > > The pinctr

Re: [PATCH 1/2] drm/panel: Add DT bindings for Sony ACX424AKP

2019-09-02 Thread Thierry Reding
On Mon, Sep 02, 2019 at 11:06:32AM +0200, Linus Walleij wrote: > This adds device tree bindings for the Sony ACX424AKP panel. > Let's use YAML. > > Cc: devicet...@vger.kernel.org > Signed-off-by: Linus Walleij > --- > .../display/panel/sony,acx424akp.yaml | 53 +++ > 1 fi

Re: [PATCH v3 1/4] MAINTAINERS: Add entry for stable backlight sysfs ABI documentation

2019-09-02 Thread Lee Jones
On Tue, 09 Jul 2019, Matthias Kaehlcke wrote: > Add an entry for the stable backlight sysfs ABI to the MAINTAINERS > file. > > Signed-off-by: Matthias Kaehlcke > Acked-by: Daniel Thompson > --- > Changes in v3: > - none > > Changes in v2: > - added Daniel's 'Acked-by' tag > --- > MAINTAINERS

Re: [PATCH v3 4/4] backlight: pwm_bl: Set scale type for brightness curves specified in the DT

2019-09-02 Thread Lee Jones
On Tue, 09 Jul 2019, Matthias Kaehlcke wrote: > Check if a brightness curve specified in the device tree is linear or > not and set the corresponding property accordingly. This makes the > scale type available to userspace via the 'scale' sysfs attribute. > > To determine if a curve is linear it

Re: [PATCH v3 3/4] backlight: pwm_bl: Set scale type for CIE 1931 curves

2019-09-02 Thread Lee Jones
On Tue, 09 Jul 2019, Matthias Kaehlcke wrote: > For backlight curves calculated with the CIE 1931 algorithm set > the brightness scale type to non-linear. This makes the scale type > available to userspace via the 'scale' sysfs attribute. > > Signed-off-by: Matthias Kaehlcke > Tested-by: Enric B

Re: [PATCH v3 2/4] backlight: Expose brightness curve type through sysfs

2019-09-02 Thread Lee Jones
On Tue, 09 Jul 2019, Matthias Kaehlcke wrote: > Backlight brightness curves can have different shapes. The two main > types are linear and non-linear curves. The human eye doesn't > perceive linearly increasing/decreasing brightness as linear (see > also 88ba95bedb79 "backlight: pwm_bl: Compute br

Re: [PATCH v2] drm: dw-hdmi-i2s: enable audio clock in audio_startup

2019-09-02 Thread Neil Armstrong
Hi, On 02/09/2019 05:54, Cheng-Yi Chiang wrote: > In the designware databook, the sequence of enabling audio clock and > setting format is not clearly specified. > Currently, audio clock is enabled in the end of hw_param ops after > setting format. > > On some monitors, there is a possibility tha

[Bug 111528] Using Fan-Control causes mmhub-pagefault and unresponsive system on Navi

2019-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111528 --- Comment #1 from Marko Popovic --- I can confirmed that using CoreCTRL did make my GPU quite unstable and sometimes it would just lag for a few seconds and other times it would completely crash the system until I rebooted. The last time I ob

RE: [PATCH v3 0/8] Add dual-LVDS panel support to EK874

2019-09-02 Thread Fabrizio Castro
Hi Rob, Thank you for your feedback! > From: Rob Herring > Sent: 29 August 2019 16:27 > To: Fabrizio Castro > Subject: Re: [PATCH v3 0/8] Add dual-LVDS panel support to EK874 > > On Wed, Aug 28, 2019 at 1:36 PM Fabrizio Castro > wrote: > > > > Dear All, > > > > this series adds support for du

[Bug 103234] KWin crashed when Alt+Tab-ing through open windows

2019-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103234 Michel Dänzer changed: What|Removed |Added URL|https://ip192-168-0-1.com/ | -- You are receiving this mail becaus

[Bug 109955] amdgpu [RX Vega 64] system freeze while gaming

2019-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109955 --- Comment #94 from Mauro Gaspari --- (In reply to Wilko Bartels from comment #93) > (In reply to Wilko Bartels from comment #91) > > how big are your swap partitions guys? just toying around here :-) > > also i wanna know if anyone else on ar

Re: [PATCH 2/2] drm/panel: Add driver for Sony ACX424AKP panel

2019-09-02 Thread Thierry Reding
On Mon, Sep 02, 2019 at 11:06:33AM +0200, Linus Walleij wrote: > The Sony ACX424AKP is a command/videomode DSI panel for > mobile devices. It is used on the ST-Ericsson HREF520 > reference design. We support video mode by default, but > it is possible to switch the panel into command mode > by usin

Re: [PATCH v2] drm: dw-hdmi-i2s: enable audio clock in audio_startup

2019-09-02 Thread Jonas Karlman
On 2019-09-02 11:42, Neil Armstrong wrote: > Hi, > > On 02/09/2019 05:54, Cheng-Yi Chiang wrote: >> In the designware databook, the sequence of enabling audio clock and >> setting format is not clearly specified. >> Currently, audio clock is enabled in the end of hw_param ops after >> setting forma

[Bug 204725] black screen

2019-09-02 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204725 --- Comment #44 from Michel Dänzer (mic...@daenzer.net) --- (In reply to Dmitri Seletski from comment #39) > /usr/lib64/dri/swrast_dri.so failed (libLLVMAMDGPUCodeGen.so.8: cannot open > shared object file: No such file or directory) BTW, LLVM on

Re: [PATCH 3/5] drm: dw-hdmi: update CEC phys addr and EDID on HPD event

2019-09-02 Thread Jonas Karlman
On 2019-09-02 10:10, Neil Armstrong wrote: > On 01/09/2019 18:14, Jonas Karlman wrote: >> Update CEC phys addr and EDID on HPD event, fixes lost CEC phys addr and >> stale EDID when HDMI cable is unplugged/replugged or AVR is powered on/off. >> >> Signed-off-by: Jonas Karlman >> --- >> drivers/gp

Re: [PATCH -next] drm/etnaviv: fix missing unlock on error in etnaviv_iommuv1_context_alloc()

2019-09-02 Thread Lucas Stach
On Mo, 2019-08-19 at 06:17 +, Wei Yongjun wrote: > Add the missing unlock before return from function > etnaviv_iommuv1_context_alloc() > in the error handling case. > > Fixes: 27b67278e007 ("drm/etnaviv: rework MMU handling") > Signed-off-by: Wei Yongjun Thanks, applied. For my education,

Re: [PATCH 13/21] drm/dp: Do not busy-loop during link training

2019-09-02 Thread Thierry Reding
On Thu, Aug 08, 2019 at 03:33:27PM +0200, Philipp Zabel wrote: > On Mon, 2019-08-05 at 14:23 +0200, Thierry Reding wrote: > > From: Thierry Reding > > > > Use microsecond sleeps for the clock recovery and channel equalization > > delays during link training. The duration of these delays can be fr

Re: [PATCH 14/21] drm/dp: Use drm_dp_aux_rd_interval()

2019-09-02 Thread Thierry Reding
On Thu, Aug 08, 2019 at 03:17:33PM +0200, Philipp Zabel wrote: > On Mon, 2019-08-05 at 14:23 +0200, Thierry Reding wrote: > > From: Thierry Reding > > > > Make use of the newly added drm_dp_aux_rd_interval() helper in existing > > DP link training helpers and add comments about minimum required d

Re: [PATCH 20/21] drm/dp: Fix a couple of whitespace issues

2019-09-02 Thread Thierry Reding
On Thu, Aug 08, 2019 at 03:18:47PM +0200, Philipp Zabel wrote: > On Mon, 2019-08-05 at 14:23 +0200, Thierry Reding wrote: > > From: Thierry Reding > > > > Remove a gratuituous blank line in one place and add a blank line in > > another to improve readability. > > Seems like the comment descripti

[PATCH v2 13/21] drm/dp: Do not busy-loop during link training

2019-09-02 Thread Thierry Reding
From: Thierry Reding Use microsecond sleeps for the clock recovery and channel equalization delays during link training. The duration of these delays can be from 100 us up to 16 ms. It is rude to busy-loop for that amount of time. While at it, also convert to standard coding style by putting the

[PATCH v2 07/21] drm/dp: Read fast training capability from link

2019-09-02 Thread Thierry Reding
From: Thierry Reding While probing the DisplayPort link, query the fast training capability. If supported, drivers can use the fast link training sequence instead of the more involved full link training sequence. Reviewed-by: Philipp Zabel Signed-off-by: Thierry Reding --- drivers/gpu/drm/drm

[PATCH v2 08/21] drm/dp: Read TPS3 capability from sink

2019-09-02 Thread Thierry Reding
From: Thierry Reding The TPS3 capability can be exposed by DP 1.2 and later sinks if they support the alternative training pattern for channel equalization. Signed-off-by: Thierry Reding --- drivers/gpu/drm/drm_dp_helper.c | 3 +++ include/drm/drm_dp_helper.h | 2 ++ 2 files changed, 5 ins

[PATCH v2 11/21] drm/dp: Read eDP version from DPCD

2019-09-02 Thread Thierry Reding
From: Thierry Reding If the sink supports eDP, read the eDP revision from it's DPCD. Signed-off-by: Thierry Reding --- drivers/gpu/drm/drm_dp_helper.c | 16 +++- include/drm/drm_dp_helper.h | 2 ++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/

[PATCH v2 00/21] drm/dp: Various helper improvements and cleanups

2019-09-02 Thread Thierry Reding
From: Thierry Reding Hi, this series of patches improves the DP helpers a bit and cleans up some inconsistencies along the way. v2 incorporates all review comments add collects Reviewed-bys from v1. Thierry Thierry Reding (21): drm/dp: Sort includes alphabetically drm/dp: Add missing kern

[PATCH v2 03/21] drm/dp: Add drm_dp_link_reset() implementation

2019-09-02 Thread Thierry Reding
From: Thierry Reding Subsequent patches will add non-volatile fields to struct drm_dp_link, so introduce a function to zero out only the volatile fields. Signed-off-by: Thierry Reding --- drivers/gpu/drm/drm_dp_helper.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff

[PATCH v2 18/21] drm/dp: Add drm_dp_link_choose() helper

2019-09-02 Thread Thierry Reding
From: Thierry Reding This helper chooses an appropriate configuration, according to the bitrate requirements of the video mode and the capabilities of the DisplayPort sink. Signed-off-by: Thierry Reding --- drivers/gpu/drm/drm_dp_helper.c | 55 + include/drm/drm

[PATCH v2 10/21] drm/dp: Read alternate scrambler reset capability from sink

2019-09-02 Thread Thierry Reding
From: Thierry Reding Parse from the sink capabilities whether or not the eDP alternate scrambler reset value of 0xfffe is supported. Signed-off-by: Thierry Reding --- drivers/gpu/drm/drm_dp_helper.c | 5 + include/drm/drm_dp_helper.h | 9 + 2 files changed, 14 insertions(+) di

[PATCH v2 05/21] drm/dp: Turn link capabilities into booleans

2019-09-02 Thread Thierry Reding
From: Thierry Reding Rather than storing capabilities as flags in an integer, use a separate boolean per capability. This simplifies the code that checks for these capabilities. Cc: Rob Clark Reviewed-by: Andrzej Hajda Signed-off-by: Thierry Reding --- drivers/gpu/drm/bridge/tc358767.c | 9

[PATCH v2 21/21] drm/bridge: tc358767: Use DP nomenclature

2019-09-02 Thread Thierry Reding
From: Thierry Reding The DP specification uses the term "default framing" instead of "non- enhanced framing". Reviewed-by: Andrzej Hajda Signed-off-by: Thierry Reding --- drivers/gpu/drm/bridge/tc358767.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/br

[PATCH v2 04/21] drm/dp: Track link capabilities alongside settings

2019-09-02 Thread Thierry Reding
From: Thierry Reding Store capabilities in max_* fields and add separate fields for the currently selected settings. Cc: Rob Clark Reviewed-by: Andrzej Hajda Signed-off-by: Thierry Reding --- drivers/gpu/drm/bridge/tc358767.c | 14 ++--- drivers/gpu/drm/drm_dp_helper.c|

[PATCH v2 06/21] drm/dp: Probe link using existing parsing helpers

2019-09-02 Thread Thierry Reding
From: Thierry Reding Use existing parsing helpers to probe a DisplayPort link. Reviewed-by: Philipp Zabel Signed-off-by: Thierry Reding --- drivers/gpu/drm/drm_dp_helper.c | 29 ++--- include/drm/drm_dp_helper.h | 2 ++ 2 files changed, 24 insertions(+), 7 deletio

[PATCH v2 17/21] drm/dp: Enable alternate scrambler reset when supported

2019-09-02 Thread Thierry Reding
From: Thierry Reding If the sink is eDP and supports the alternate scrambler reset, enable it. Signed-off-by: Thierry Reding --- drivers/gpu/drm/drm_dp_helper.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/drm_dp_helper.c b/drivers/gpu/drm/drm_dp_helper.c index f5

[PATCH v2 09/21] drm/dp: Read channel coding capability from sink

2019-09-02 Thread Thierry Reding
From: Thierry Reding Parse from the sink capabilities whether or not it supports ANSI 8B/10B channel coding as specified in ANSI X3.230-1994, clause 11. Signed-off-by: Thierry Reding --- drivers/gpu/drm/drm_dp_helper.c | 3 +++ include/drm/drm_dp_helper.h | 9 + 2 files changed, 12

[PATCH v2 19/21] drm/dp: Add support for eDP link rates

2019-09-02 Thread Thierry Reding
From: Thierry Reding Signed-off-by: Thierry Reding --- drivers/gpu/drm/drm_dp_helper.c | 121 include/drm/drm_dp_helper.h | 9 +++ 2 files changed, 130 insertions(+) diff --git a/drivers/gpu/drm/drm_dp_helper.c b/drivers/gpu/drm/drm_dp_helper.c index 01d3

[PATCH v2 15/21] drm/dp: Add helper to get post-cursor adjustments

2019-09-02 Thread Thierry Reding
From: Thierry Reding If the transmitter supports pre-emphasis post cursor2 the sink will request adjustments in a similar way to how it requests adjustments to the voltage swing and pre-emphasis settings. Add a helper to extract these adjustments on a per-lane basis from the DPCD link status. R

[PATCH v2 01/21] drm/dp: Sort includes alphabetically

2019-09-02 Thread Thierry Reding
From: Thierry Reding Keeping the list sorted alphabetically makes it much easier to determine where to add new includes. Signed-off-by: Thierry Reding --- include/drm/drm_dp_helper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/drm/drm_dp_helper.h b/include/d

[PATCH v2 12/21] drm/dp: Read AUX read interval from DPCD

2019-09-02 Thread Thierry Reding
From: Thierry Reding Store the AUX read interval from DPCD, so that it can be used to wait for the durations given in the specification during link training. v2: use USEC_PER_MSEC instead of MSEC_PER_SEC for clarity Signed-off-by: Thierry Reding --- drivers/gpu/drm/drm_dp_helper.c | 3 +++ i

[PATCH v2 14/21] drm/dp: Use drm_dp_aux_rd_interval()

2019-09-02 Thread Thierry Reding
From: Thierry Reding Make use of the newly added drm_dp_aux_rd_interval() helper in existing DP link training helpers. v2: drop stale sentence from commit message (Philipp Zabel) Signed-off-by: Thierry Reding --- drivers/gpu/drm/drm_dp_helper.c | 26 +++--- 1 file changed,

[PATCH v2 20/21] drm/dp: Remove a gratuituous blank line

2019-09-02 Thread Thierry Reding
From: Thierry Reding It's idiomatic to check the return value of a function call immediately after the function call, without any blank lines in between, to make it more obvious that the two lines belong together. v2: fix outdated commit message (Philipp Zabel) Signed-off-by: Thierry Reding --

[PATCH v2 16/21] drm/dp: Set channel coding on link configuration

2019-09-02 Thread Thierry Reding
From: Thierry Reding Make use of ANSI 8B/10B channel coding if the DisplayPort sink supports it. Signed-off-by: Thierry Reding --- drivers/gpu/drm/drm_dp_helper.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_dp_helper.c b/drivers/gpu/drm/drm_d

[PATCH v2 02/21] drm/dp: Add missing kerneldoc for struct drm_dp_link

2019-09-02 Thread Thierry Reding
From: Thierry Reding The drm_dp_link structure tracks capabilities on the DP link. Add some kerneldoc to explain what each of its fields means. Signed-off-by: Thierry Reding --- include/drm/drm_dp_helper.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/drm/drm_dp_helper.h b

Re: [PATCH 1/2] drm/panel: Add DT bindings for Sony ACX424AKP

2019-09-02 Thread Linus Walleij
On Mon, Sep 2, 2019 at 11:35 AM Thierry Reding wrote: > > + dsi-command-mode: > > + type: boolean > > + description: > > + If this is specified, the panel will be used in command > > + mode instead of video mode. > > I'm not sure there's concensus on this one yet. I think so

Re: [PATCH 3/3] drm/edid: no CEA extension is not an error

2019-09-02 Thread Ville Syrjälä
On Fri, Aug 30, 2019 at 06:16:52PM +0200, Jean Delvare wrote: > It is fine for displays without audio functionality to not implement > CEA extension in their EDID. Do not return an error in that case, > instead return 0 as if there was a CEA extension with no audio or > speaker block. > > This fix

[Bug 111481] AMD Navi GPU frequent freezes on both Manjaro/Ubuntu with kernel 5.3 and mesa 19.2 -git/llvm9

2019-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111481 --- Comment #19 from Pierre-Eric Pelloux-Prayer --- (In reply to Marko Popovic from comment #17) > (In reply to Pierre-Eric Pelloux-Prayer from comment #15) > > (In reply to Marko Popovic from comment #14) > > > > > > Yes, always happens at th

[gabbayo:habanalabs-next 25/29] drivers/misc/habanalabs/device.c:552:2-3: Unneeded semicolon

2019-09-02 Thread kbuild test robot
tree: git://people.freedesktop.org/~gabbayo/linux habanalabs-next head: f3d40ffeb89564d31295fb01bc04929661e2bbcf commit: 127d20c1da61045a7903c5d76afe14b3a3a097c2 [25/29] habanalabs: add uapi to retrieve device utilization If you fix the issue, kindly add following tag Reported-by: kbuild test

[PATCH] habanalabs: fix semicolon.cocci warnings

2019-09-02 Thread kbuild test robot
From: kbuild test robot drivers/misc/habanalabs/device.c:552:2-3: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci Fixes: 127d20c1da61 ("habanalabs: add uapi to retrieve device utilization") Signed-off-by: kbuild test robot --- tree: git

Re: [PATCH v2] drm: dw-hdmi-i2s: enable audio clock in audio_startup

2019-09-02 Thread Neil Armstrong
On 02/09/2019 12:32, Jonas Karlman wrote: > On 2019-09-02 11:42, Neil Armstrong wrote: >> Hi, >> >> On 02/09/2019 05:54, Cheng-Yi Chiang wrote: >>> In the designware databook, the sequence of enabling audio clock and >>> setting format is not clearly specified. >>> Currently, audio clock is enabled

[Bug 111481] AMD Navi GPU frequent freezes on both Manjaro/Ubuntu with kernel 5.3 and mesa 19.2 -git/llvm9

2019-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111481 --- Comment #20 from Marko Popovic --- (In reply to Pierre-Eric Pelloux-Prayer from comment #19) > Thanks for the trace! > > Replaying the trace a few times is enough to reliably to reproduce the hang. > > Using AMD_DEBUG=nongg seems to preven

Re: [PATCH] drm/vkms: Use alpha value to blend values.

2019-09-02 Thread Ville Syrjälä
On Sat, Aug 31, 2019 at 06:25:46PM +0100, Sidong Yang wrote: > Use alpha value to blend source value and destination value Instead of > just overwrite with source value. > > Signed-off-by: Sidong Yang > --- > drivers/gpu/drm/vkms/vkms_composer.c | 13 +++-- > 1 file changed, 11 insertion

[RESEND PATCH v3 3/7] sh: ecovec24: don't set unused fields in platform data

2019-09-02 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Platform data fields other than fbdev are no longer used by the backlight driver. Remove them. Signed-off-by: Bartosz Golaszewski Reviewed-by: Andy Shevchenko Reviewed-by: Linus Walleij --- arch/sh/boards/mach-ecovec24/setup.c | 3 --- 1 file changed, 3 deletions(-)

dri-devel@lists.freedesktop.org

2019-09-02 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Instead of dereferencing pdev each time, use a helper variable for the associated device pointer. Signed-off-by: Bartosz Golaszewski Reviewed-by: Linus Walleij Reviewed-by: Daniel Thompson Reviewed-by: Andy Shevchenko --- drivers/video/backlight/gpio_backlight.c |

[RESEND PATCH v3 2/7] backlight: gpio: simplify the platform data handling

2019-09-02 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Now that the last user of platform data (sh ecovec24) defines a proper GPIO lookup and sets the 'default-on' device property, we can drop the platform_data-specific GPIO handling and unify a big chunk of code. The only field used from the platform data is now the fbdev

[RESEND PATCH v3 5/7] backlight: gpio: remove dev from struct gpio_backlight

2019-09-02 Thread Bartosz Golaszewski
From: Bartosz Golaszewski This field is unused. Remove it. Signed-off-by: Bartosz Golaszewski Reviewed-by: Andy Shevchenko Reviewed-by: Linus Walleij Reviewed-by: Daniel Thompson --- drivers/video/backlight/gpio_backlight.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/vide

[RESEND PATCH v3 1/7] sh: ecovec24: add additional properties to the backlight device

2019-09-02 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Add a GPIO lookup entry and a device property for GPIO backlight to the board file. Tie them to the platform device which is now registered using platform_device_register_full() because of the properties. These changes are inactive now but will be used once the gpio back

[RESEND PATCH v3 4/7] backlight: gpio: remove unused fields from platform data

2019-09-02 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Remove the platform data fields that nobody uses. Signed-off-by: Bartosz Golaszewski Reviewed-by: Andy Shevchenko Reviewed-by: Linus Walleij Reviewed-by: Daniel Thompson --- include/linux/platform_data/gpio_backlight.h | 3 --- 1 file changed, 3 deletions(-) diff

[RESEND PATCH v3 0/7] backlight: gpio: simplify the driver

2019-09-02 Thread Bartosz Golaszewski
From: Bartosz Golaszewski While working on my other series related to gpio-backlight[1] I noticed that we could simplify the driver if we made the only user of platform data use GPIO lookups and device properties. This series tries to do that. The first patch adds all necessary data structures t

Re: [PATCH v3 0/7] backlight: gpio: simplify the driver

2019-09-02 Thread Bartosz Golaszewski
pon., 2 wrz 2019 o 11:31 Lee Jones napisał(a): > > On Wed, 24 Jul 2019, Bartosz Golaszewski wrote: > > > From: Bartosz Golaszewski > > > > While working on my other series related to gpio-backlight[1] I noticed > > that we could simplify the driver if we made the only user of platform > > data us

[PATCH 3/5] drm/vram: add vram-mm debugfs file

2019-09-02 Thread Gerd Hoffmann
Wire up drm_mm_print() for vram helpers, using a new debugfs file, so one can see how vram is used: # cat /sys/kernel/debug/dri/0/vram-mm 0x-0x0300: 768: used 0x0300-0x0600: 768: used 0x0600-0x0900: 768: used

[PATCH 1/5] drm/ttm: add drm_gem_ttm_print_info()

2019-09-02 Thread Gerd Hoffmann
Now with ttm_buffer_object being a subclass of drm_gem_object we can easily lookup ttm_buffer_object for a given drm_gem_object, which in turm allows to create common helper functions. This patch starts off with a drm_gem_ttm_print_info() helper function which prints adds some ttm specific lines t

[PATCH 2/5] drm/vram: use drm_gem_ttm_print_info

2019-09-02 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- include/drm/drm_gem_vram_helper.h | 1 + drivers/gpu/drm/drm_gem_vram_helper.c | 3 ++- drivers/gpu/drm/Kconfig | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/drm/drm_gem_vram_helper.h b/include/drm/drm_gem_vram_hel

[PATCH 5/5] drm/qxl: use drm_gem_ttm_print_info

2019-09-02 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_drv.h| 1 + drivers/gpu/drm/qxl/qxl_object.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gpu/drm/qxl/qxl_drv.h b/drivers/gpu/drm/qxl/qxl_drv.h index 9e034c5fa87d..d4051409ce64 100644 --- a/drivers/gpu/drm/qxl/qxl_drv.h

[PATCH 4/5] drm/qxl: use drm_gem_object_funcs callbacks

2019-09-02 Thread Gerd Hoffmann
Switch qxl to use drm_gem_object_funcs callbacks instead of drm_driver callbacks. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_drv.c| 8 drivers/gpu/drm/qxl/qxl_object.c | 12 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/q

[PATCH 0/5] drm: add some ttm/vram info to debugfs

2019-09-02 Thread Gerd Hoffmann
Gerd Hoffmann (5): drm/ttm: add drm_gem_ttm_print_info() drm/vram: use drm_gem_ttm_print_info drm/vram: add vram-mm debugfs file drm/qxl: use drm_gem_object_funcs callbacks drm/qxl: use drm_gem_ttm_print_info drivers/gpu/drm/qxl/qxl_drv.h | 1 + include/drm/drm_gem_ttm_helper

[PATCH 0/7] drm/omap: misc improvements

2019-09-02 Thread Tomi Valkeinen
Hi, Misc improvements to omapdrm which have been lying around for a long time, and I've missed upstreaming them. And one new one, which makes the DSS5 HDMI pick up the color range automatically. Tomi Alejandro Hernandez (1): drm/omap: tweak HDMI DDC timings Jyri Sarha (3): drm/omap: Imple

[PATCH 5/7] drm/omap: Enable COLOR_ENCODING and COLOR_RANGE properties for planes

2019-09-02 Thread Tomi Valkeinen
From: Jyri Sarha Adds support for COLOR_ENCODING and COLOR_RANGE properties to omap_plane.c and dispc.c. The supported encodings and ranges are: For COLOR_ENCODING: - YCbCt BT.601 (default) - YCbCt BT.709 For COLOR_RANGE: - YCbCt limited range - YCbCt full range (default) Signed-off-by: Jyri S

[PATCH 1/7] drm/omap: drop unneeded locking from mgr_fld_write()

2019-09-02 Thread Tomi Valkeinen
Commit d49cd15550d9d4495f6187425318c245d58cb63f ("OMAPDSS: DISPC: lock access to DISPC_CONTROL & DISPC_CONFIG") added locking to mgr_fld_write(). This was needed in omapfb times due to lack of good locking, especially in the case of both V4L2 and fbdev layers using the DSS driver. This is not need

[PATCH 6/7] drm/omap: dss: platform_register_drivers() to dss.c and remove core.c

2019-09-02 Thread Tomi Valkeinen
From: Jyri Sarha The core.c just for registering the drivers is kind of useless. Let's get rid of it and register the dss drivers in dss.c. Signed-off-by: Jyri Sarha Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/Makefile | 2 +- drivers/gpu/drm/omapdrm/dss/core.c | 55 -

[PATCH 2/7] drm/omap: tweak HDMI DDC timings

2019-09-02 Thread Tomi Valkeinen
From: Alejandro Hernandez A "HDMI I2C Master Error" is sometimes reported with the current DDC SCL timings. The current settings for a 10us SCL period (100 KHz) causes the error with some displays. This patch increases the SCL signal period from 10us to 10.2us, with the new settings the error is

[PATCH 3/7] drm/omap: fix missing scaler pixel fmt limitations

2019-09-02 Thread Tomi Valkeinen
OMAP2 and OMAP3/AM4 have limitations with the scaler: - OMAP2 can only scale XRGB - OMAP3/AM4 can only scale XRGB, RGB565, YUYV and UYVY The driver doesn't check these limitations, which leads to sync-lost floods. This patch adds a check for the pixel formats when scaling. Signed-off-by:

  1   2   >