[PATCH -next] dma-buf: fix documentation build warnings

2020-04-07 Thread Randy Dunlap
mm-...@lists.linaro.org --- drivers/dma-buf/dma-buf.c |4 ++-- include/linux/dma-buf.h |3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) --- linux-next-20200407.orig/drivers/dma-buf/dma-buf.c +++ linux-next-20200407/drivers/dma-buf/dma-buf.c @@ -655,8 +655,8 @@ EXPORT_SYMBOL

[RESEND 2/2] drm: bridge: adv7511: Extend list of audio sample rates

2020-04-07 Thread Bogdan Togorean
ADV7511 support sample rates up to 192kHz. CTS and N parameters should be computed accordingly so this commit extend the list up to maximum supported sample rate. Signed-off-by: Bogdan Togorean --- drivers/gpu/drm/bridge/adv7511/adv7511_audio.c | 12 1 file changed, 12 insertions(+)

Re: [PATCH] gpu/drm: ingenic: Delete an error message in ingenic_drm_probe()

2020-04-07 Thread Paul Cercueil
Hi Markus, Le dim. 5 avril 2020 à 11:30, Markus Elfring a écrit : From: Markus Elfring Date: Sun, 5 Apr 2020 11:25:30 +0200 The function “platform_get_irq” can log an error already. Thus omit a redundant message for the exception handling in the calling function. This issue was detected by

[PATCH] amdgpu_kms: Remove unnecessary condition check

2020-04-07 Thread Aurabindo Pillai
Execution will only reach here if the asserted condition is true. Hence there is no need for the additional check. Signed-off-by: Aurabindo Pillai --- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu

Re: Aliases for DRI connectors?

2020-04-07 Thread Guillermo Rodriguez
Hi Pekka, El vie., 3 abr. 2020 a las 12:03, Pekka Paalanen () escribió: > > On Fri, 3 Apr 2020 10:28:52 +0200 > Guillermo Rodriguez wrote: > > > Hi Pekka, > > > > El vie., 3 abr. 2020 a las 10:14, Pekka Paalanen > > () escribió: > > > > > > On Wed, 1 Apr 2020 14:38:37 -0500 > > > Matt Hoosier wr

RE: [PATCH v2] drm/bridge: dw-mipi-dsi.c: Add VPG runtime config through debugfs

2020-04-07 Thread Angelo Ribeiro
Hi Adrian, > -Original Message- > From: Adrian Pop > Sent: Tuesday, April 7, 2020 7:58 AM > To: Angelo Ribeiro > Cc: yannick.fer...@st.com; philippe.co...@st.com; > benjamin.gaign...@st.com; airl...@linux.ie; Daniel Vetter > ; mcoquelin.st...@gmail.com; alexandre.tor...@st.com; > dri-dev

[PATCH V5 1/4] backlight: qcom-wled: convert the wled bindings to .yaml format

2020-04-07 Thread Kiran Gunda
Convert the qcom-wled bindings from .txt to .yaml format. Also replace PM8941 to WLED3 and PMI8998 to WLED4. Signed-off-by: Kiran Gunda Signed-off-by: Subbaraman Narayanamurthy Acked-by: Daniel Thompson --- .../bindings/leds/backlight/qcom-wled.txt | 154 .../bindings

[PATCH] drm/msm/mdp5: Fix mdp5_init error path for failed mdp5_kms allocation

2020-04-07 Thread Roy Spliet
When allocation for mdp5_kms fails, calling mdp5_destroy() leads to undefined behaviour, likely a nullptr exception or use-after-free troubles. Signed-off-by: Roy Spliet --- drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu

Re: [PATCH v5 1/5] PM / EM: add devices to Energy Model

2020-04-07 Thread Lukasz Luba
On 4/6/20 10:17 PM, Daniel Lezcano wrote: On 06/04/2020 18:07, Lukasz Luba wrote: On 4/6/20 3:58 PM, Daniel Lezcano wrote: Hi Lukasz, On 06/04/2020 15:29, Lukasz Luba wrote: Hi Daniel, Thank you for the review. On 4/3/20 5:05 PM, Daniel Lezcano wrote: Hi Lukasz, On 18/03/2020 12:4

Re: [PATCH 02/44] drm: Add devm_drm_dev_alloc macro

2020-04-07 Thread Sam Ravnborg
Hi Daniel. Finally managed to dive into this.. Maybe I need more coffee, it is still morning here. But alas this patch triggered a few comments. Sam On Fri, Apr 03, 2020 at 03:57:46PM +0200, Daniel Vetter wrote: > The kerneldoc is only added for this new function. Existing kerneldoc > a

Re: [PATCH 08/44] drm/vboxvideo: Stop using drm_device->dev_private

2020-04-07 Thread Thomas Zimmermann
Hi Am 07.04.20 um 09:24 schrieb Daniel Vetter: > On Mon, Apr 6, 2020 at 7:27 PM Thomas Zimmermann wrote: >> >> Hi >> >> Am 03.04.20 um 15:57 schrieb Daniel Vetter: >>> We use the baseclass pattern here, so lets to the proper (and more >>> typesafe) upcasting. >>> >>> Signed-off-by: Daniel Vetter

Re: [PATCH 0/2] powerpc: Remove support for ppc405/440 Xilinx platforms

2020-04-07 Thread Geert Uytterhoeven
Hi Ben, On Wed, Apr 8, 2020 at 1:34 AM Benjamin Herrenschmidt wrote: > On Fri, 2020-04-03 at 15:59 +1100, Michael Ellerman wrote: > > Benjamin Herrenschmidt writes: > > > On Tue, 2020-03-31 at 16:30 +1100, Michael Ellerman wrote: > > > > I have no attachment to 40x, and I'd certainly be happy to

Re: [PATCH 00/10] Set up generic fbdev after registering device

2020-04-07 Thread Thomas Zimmermann
Hi Sam Am 07.04.20 um 18:50 schrieb Sam Ravnborg: > Hi Thomas/Noralf. > >>> Having DRM core take care of fbdev emulation was an idea Laurent had >>> which was the spark that set me off making the generic fbdev emulation. >>> >>> Maybe it's still too early to make this move, I don't know. >> >> I

Re: [PATCH v2 2/2] drm/panel: add panel driver for Leadtek LTK050H3146W

2020-04-07 Thread Sam Ravnborg
Goodmorning Heiko. Thanks for the v2 of this driver. checkpatch, using --strict, complains about indent. I have also noted some of them below. A few comments in the following. Sam On Wed, Apr 08, 2020 at 01:23:51AM +0200, Heiko Stuebner wrote: > From: Heiko Stuebner > > The LTK050H31

Re: [PATCH v2 1/2] dt-bindings: display: panel: Add binding document for Leadtek LTK050H3146W

2020-04-07 Thread Sam Ravnborg
Goodmorning Heiko. On Wed, Apr 08, 2020 at 01:23:50AM +0200, Heiko Stuebner wrote: > From: Heiko Stuebner > > The LTK050H3146W is a 5.0" 720x1280 DSI display. > > changes in v2: > - add display variants > > Signed-off-by: Heiko Stuebner Applied to drm-misc-next. Sam > --- > .../di

[PATCH 0/2] drm/vkms: Add Virtual hardware module option

2020-04-07 Thread Gabriela Bittencourt
Hi, I'm trying to implement the virtual hardware (virtual_hw) module option on VKMS module. The virtual hardware module option is implemented as an option to skip the timing and vblank subtests. The main idea of virtual_hw is shorten the time used on each period of operation. For this, the timer

[PATCH 2/2] drm/vkms: Add 'virtual_hw' module option

2020-04-07 Thread Gabriela Bittencourt
Add Virtual Vblank, virtual hardware module option ('virtual_hw') allows to skip the timing of vblank routine. Signed-off-by: Gabriela Bittencourt --- drivers/gpu/drm/vkms/vkms_crtc.c | 28 ++-- drivers/gpu/drm/vkms/vkms_drv.c | 13 +++-- drivers/gpu/drm/vkms/vkm

[PATCH 1/2] drm/vkms: Rework vkms_vblank_simulate

2020-04-07 Thread Gabriela Bittencourt
Add support for Virtual Vblank on VKMS. Rework part of 'vkms_vblank_simulate' for schedule a compose worker outside. Signed-off-by: Gabriela Bittencourt --- drivers/gpu/drm/vkms/vkms_crtc.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/vkms/v

Re: [PATCH 12/15] drm/amdgpu/display: add a late register connector callback

2020-04-07 Thread Eric Biggers
On Fri, Feb 07, 2020 at 02:50:55PM -0500, Alex Deucher wrote: > To handle debugfs setup on non DP MST connectors. > > Reviewed-by: Harry Wentland > Acked-by: Christian König > Signed-off-by: Alex Deucher > --- > .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 18 ++ > 1 file c

Re: [git pull] drm fixes for 5.7-rc1

2020-04-07 Thread pr-tracker-bot
The pull request you sent on Wed, 8 Apr 2020 10:49:06 +1000: > git://anongit.freedesktop.org/drm/drm tags/drm-next-2020-04-08 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/f5e94d10e4c468357019e5c28d48499f677b284f Thank you! -- Deet-doot-dot, I am a bot. https://kor

[git pull] drm fixes for 5.7-rc1

2020-04-07 Thread Dave Airlie
Hi Linus, This is a set of fixes that have queued up, I think I might have another pull with some more before rc1 but I'd like to dequeue what I have now just in case Easter is more eggciting that expected. The main thing in here is a fix for a longstanding nouveau power management issues on cert

Re: [PATCH] drm/dp_mst: Zero assigned PBN when releasing VCPI slots

2020-04-07 Thread Lyude Paul
Hey - didn't get a chance to take a look at this today but I will review asap! On Tue, 2020-04-07 at 12:07 -0400, mikita.lip...@amd.com wrote: > From: Mikita Lipski > > Zero Port's PBN together with VCPI slots when releasing > allocated VCPI slots. That way when disabling the connector > it will

Re: [PATCH 0/2] powerpc: Remove support for ppc405/440 Xilinx platforms

2020-04-07 Thread Benjamin Herrenschmidt
On Fri, 2020-04-03 at 15:59 +1100, Michael Ellerman wrote: > Benjamin Herrenschmidt writes: > > On Tue, 2020-03-31 at 16:30 +1100, Michael Ellerman wrote: > > > I have no attachment to 40x, and I'd certainly be happy to have > > > less > > > code in the tree, we struggle to keep even the modern pl

Re: [PATCH 1/2] dt-bindings: display: panel: Add binding document for Leadtek LTK050H3146W

2020-04-07 Thread Heiko Stübner
Am Dienstag, 31. März 2020, 13:02:21 CEST schrieb Heiko Stuebner: > From: Heiko Stuebner > > The LTK050H3146W is a 5.0" 720x1280 DSI display. > > Signed-off-by: Heiko Stuebner FYI: replaced by v2 just now Heiko ___ dri-devel mailing list dri-devel

[PATCH v2 2/2] drm/panel: add panel driver for Leadtek LTK050H3146W

2020-04-07 Thread Heiko Stuebner
From: Heiko Stuebner The LTK050H3146W is 5.0" 720x1280 DSI display. There are two variants with essentially the same name, LTK050H3146W and LTK050H3146W-A2. They differ in their init sequence and mode details. changes in v2: - add display variants Signed-off-by: Heiko Stuebner --- drivers/gp

[PATCH v2 1/2] dt-bindings: display: panel: Add binding document for Leadtek LTK050H3146W

2020-04-07 Thread Heiko Stuebner
From: Heiko Stuebner The LTK050H3146W is a 5.0" 720x1280 DSI display. changes in v2: - add display variants Signed-off-by: Heiko Stuebner --- .../display/panel/leadtek,ltk050h3146w.yaml | 51 +++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/

[PATCH 1/2] dt-bindings: msm: disp: Add Display Port HPD GPIO bindings

2020-04-07 Thread Tanmay Shah
Add Display Port HPD GPIO description in bindings This Patch depends on: https://patchwork.kernel.org/patch/11468505/ Signed-off-by: Tanmay Shah --- Documentation/devicetree/bindings/display/msm/dp-sc7180.yaml | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devi

[PATCH 2/2] drm/msm/dp: Add Hot Plug Detect feature

2020-04-07 Thread Tanmay Shah
Configure HPD registers and interrupts to detect connect and disconnect pulses on HPD pin and issue hot plug accordingly. This patch depends on: https://patchwork.kernel.org/patch/11468511 https://patchwork.kernel.org/patch/11468715 https://patchwork.kernel.org/patch/114685

Re: [PATCH v5 1/2] dt-bindings: display: convert rockchip vop bindings to yaml

2020-04-07 Thread Sam Ravnborg
Hi Johan. On Fri, Apr 03, 2020 at 04:22:34PM +0200, Johan Jonker wrote: > Current dts files with 'vop' nodes are manually verified. > In order to automate this process rockchip-vop.txt > has to be converted to yaml. > > Signed-off-by: Johan Jonker > Reviewed-by: Rob Herring Thanks, I have appl

Re: [PATCH v3 1/3] dt-bindings: display: panel: Convert feiyang, fy07024di26a30d to DT schema

2020-04-07 Thread Sam Ravnborg
Hi Jagan. On Fri, Apr 03, 2020 at 07:54:51PM +0530, Jagan Teki wrote: > Convert the feiyang,fy07024di26a30d panel bindings to DT schema. > > Signed-off-by: Jagan Teki Thanks, this and the two other patches are now pushed to drm-misc-next. Sam > --- > Changes for v3: > - update the lic

Re: Bad rss-counter state from drm/ttm, drm/vmwgfx: Support huge TTM pagefaults

2020-04-07 Thread VMware
On 4/7/20 5:36 PM, Alex Xu (Hello71) wrote: Excerpts from Thomas Hellström (VMware)'s message of April 7, 2020 7:26 am: On 4/7/20 2:38 AM, Alex Xu (Hello71) wrote: Excerpts from Thomas Hellström (VMware)'s message of April 6, 2020 5:04 pm: Hi, On 4/6/20 9:51 PM, Alex Xu (Hello71) wrote: Usin

Re: [PATCH 2/5] video: Add missing annotation for cyber2000fb_enable_ddc() and cyber2000fb_disable_ddc()

2020-04-07 Thread Sam Ravnborg
Hi Jules. On Fri, Apr 03, 2020 at 05:05:02PM +0100, Jules Irenge wrote: > Sparse reports warnings at cyber2000fb_enable_ddc() > and cyber2000fb_disable_ddc() > > warning: context imbalance in cyber2000fb_enable_ddc() > - wrong count at exit > > warning: context imbalance in cyber2000

Re: [PATCH v2 15/17] drm/gma500: Stop using mode->private_flags

2020-04-07 Thread Sam Ravnborg
On Tue, Apr 07, 2020 at 10:08:00PM +0300, Ville Syrjälä wrote: > On Tue, Apr 07, 2020 at 08:56:53PM +0200, Sam Ravnborg wrote: > > Hi Ville. > > > > On Fri, Apr 03, 2020 at 11:40:06PM +0300, Ville Syrjala wrote: > > > From: Ville Syrjälä > > > > > > gma500 only uses mode->private_flags to convey

Re: [PATCH v2 10/17] drm: Shrink mode->private_flags

2020-04-07 Thread Ville Syrjälä
On Tue, Apr 07, 2020 at 08:52:05PM +0200, Sam Ravnborg wrote: > On Fri, Apr 03, 2020 at 11:40:01PM +0300, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > gma500 needs 4 bits (to store a pixel multiplier) in the > > mode->private_flags, i915 currently has three bits defined. > > No one else u

Re: [PATCH v2 15/17] drm/gma500: Stop using mode->private_flags

2020-04-07 Thread Ville Syrjälä
On Tue, Apr 07, 2020 at 08:56:53PM +0200, Sam Ravnborg wrote: > Hi Ville. > > On Fri, Apr 03, 2020 at 11:40:06PM +0300, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > gma500 only uses mode->private_flags to convey the sdvo pixel > > multiplier from the encoder .mode_fixup() hook to the enc

Re: [PATCH v2 16/17] drm: Nuke mode->private_flags

2020-04-07 Thread Sam Ravnborg
On Fri, Apr 03, 2020 at 11:40:07PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > The last two uses of mode->private_flags (in i915 and gma500) > are now gone. So let's remove mode->private_flags entirely. > > CC: Sam Ravnborg > Cc: Daniel Vetter > Cc: Emil Velikov > Signed-off-by: Vil

Re: [PATCH v2 15/17] drm/gma500: Stop using mode->private_flags

2020-04-07 Thread Sam Ravnborg
Hi Ville. On Fri, Apr 03, 2020 at 11:40:06PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > gma500 only uses mode->private_flags to convey the sdvo pixel > multiplier from the encoder .mode_fixup() hook to the encoder > .mode_set() hook. Those always seems get called as a pair so > let's

Re: [PATCH v2 12/17] drm/mcde: Use mode->clock instead of reverse calculating it from the vrefresh

2020-04-07 Thread Sam Ravnborg
On Fri, Apr 03, 2020 at 11:40:03PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > htotal*vtotal*vrefresh ~= clock. So just say "clock" when we mean it. > > Cc: Linus Walleij > Cc: Sam Ravnborg > Signed-off-by: Ville Syrjälä Reviewed-by: Sam Ravnborg > --- > drivers/gpu/drm/mcde/mcde_

Re: [PATCH v2 10/17] drm: Shrink mode->private_flags

2020-04-07 Thread Sam Ravnborg
On Fri, Apr 03, 2020 at 11:40:01PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > gma500 needs 4 bits (to store a pixel multiplier) in the > mode->private_flags, i915 currently has three bits defined. > No one else uses this. Reduce the size to u8. > > Reviewed-by: Emil Velikov > Signed-

Re: [PATCH v2 09/17] drm: Flatten drm_mode_vrefresh()

2020-04-07 Thread Sam Ravnborg
On Fri, Apr 03, 2020 at 11:40:00PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Remove the pointless whole-function indentation. Also don't > need to worry about negative values anymore since we switched > everything to u16. > > Reviewed-by: Emil Velikov > Signed-off-by: Ville Syrjälä

Re: [PATCH v2 08/17] drm: Shrink drm_display_mode timings

2020-04-07 Thread Sam Ravnborg
On Fri, Apr 03, 2020 at 11:39:59PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Store the timings (apart from the clock) as u16. The uapi mode > struct already uses u16 for everything so using something bigger > internally doesn't really help us. > > Reviewed-by: Emil Velikov > Reviewe

Re: [PATCH v2 05/17] drm: Shrink {width,height}_mm to u16

2020-04-07 Thread Sam Ravnborg
On Fri, Apr 03, 2020 at 11:39:56PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Instead of supporting ~2000km wide displayes let's limit ourselves > to ~65m. That seems plenty big enough to me. > > Even with EDID_QUIRK_DETAILED_IN_CM EDIDs seem to be limited to > 10*0xfff which fits int

Re: [PATCH v2 07/17] drm: Make mode->flags u32

2020-04-07 Thread Sam Ravnborg
On Fri, Apr 03, 2020 at 11:39:58PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > The mode flags are direclty exposed in the uapi as u32. Use the > same size type to store them internally. > > Reviewed-by: Emil Velikov > Signed-off-by: Ville Syrjälä Reviewed-by: Sam Ravnborg > --- > i

Re: [PATCH v2 06/17] drm: Shrink mode->type to u8

2020-04-07 Thread Sam Ravnborg
On Fri, Apr 03, 2020 at 11:39:57PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > We only have 7 bits defined for mode->type. Shrink the storage to u8. > > Reviewed-by: Emil Velikov > Reviewed-by: Daniel Vetter > Signed-off-by: Ville Syrjälä Reviewed-by: Sam Ravnborg > --- > include/

Re: [PATCH v2 01/17] drm: Nuke mode->hsync

2020-04-07 Thread Sam Ravnborg
On Fri, Apr 03, 2020 at 11:39:52PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Let's just calculate the hsync rate on demand. No point in wasting > space storing it and risking the cached value getting out of sync > with reality. > > v2: Move drm_mode_hsync() next to its only users >

Re: [PATCH] video: fbdev: don't print error message on platform_get_irq() failure

2020-04-07 Thread Sam Ravnborg
Hi Tang Bin On Mon, Apr 06, 2020 at 01:34:50PM +0800, Tang Bin wrote: > The platform_get_irq() can print error message,so remove the redundant > dev_err() here. > > Signed-off-by: Tang Bin > --- > drivers/video/fbdev/atmel_lcdfb.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers

Re: [PATCH v2 3/4] drm: ipk: Add extensions for DW MIPI DSI Host driver

2020-04-07 Thread Sam Ravnborg
Hi Angelo. One nit below. Sam On Mon, Apr 06, 2020 at 03:24:13PM +0200, Angelo Ribeiro wrote: > Add Synopsys DesignWare IPK specific extensions for Synopsys DesignWare > MIPI DSI Host driver. > > Cc: Maarten Lankhorst > Cc: Maxime Ripard > Cc: David Airlie > Cc: Daniel Vetter > Cc:

Re: [PATCH v2 2/4] drm: ipk: Add DRM driver for DesignWare IPK DSI

2020-04-07 Thread Sam Ravnborg
Hi Angelo. Has it been evaluated if the drm_simple_* stuff can be used? It looks like this is a single plane, single connector thing so a good candidate. Some nits below. Sam On Mon, Apr 06, 2020 at 03:24:12PM +0200, Angelo Ribeiro wrote: > Add support for Synopsys DesignWare VPG (Video

Re: [Freedreno] [PATCH] drm/msm/mdp5: Fix mdp5_init error path for failed mdp5_kms allocation

2020-04-07 Thread abhinavk
On 2020-04-07 10:07, Roy Spliet wrote: When allocation for mdp5_kms fails, calling mdp5_destroy() leads to undefined behaviour, likely a nullptr exception or use-after-free troubles. Signed-off-by: Roy Spliet Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c | 3 ++-

Re: [PATCH v2 4/4] drm/dp_mst: Print errors on ACT timeouts

2020-04-07 Thread Sean Paul
On Mon, Apr 6, 2020 at 6:13 PM Lyude Paul wrote: > > Although it's not unexpected for drm_dp_check_act_status() to fail due > to DPCD read failures (as the hub may have just been unplugged > suddenly), timeouts are a bit more worrying as they either mean we need > a longer timeout value, or we are

Re: [PATCH v2 3/4] drm/dp_mst: Increase ACT retry timeout to 3s

2020-04-07 Thread Sean Paul
On Mon, Apr 6, 2020 at 6:13 PM Lyude Paul wrote: > > Currently we only poll for an ACT up to 30 times, with a busy-wait delay > of 100µs between each attempt - giving us a timeout of 2900µs. While > this might seem sensible, it would appear that in certain scenarios it > can take dramatically long

Re: [PATCH v3 1/5] drm: Introduce plane and CRTC scaling filter properties

2020-04-07 Thread Ville Syrjälä
On Tue, Mar 31, 2020 at 12:08:53AM +0530, Pankaj Bharadiya wrote: > Introduce per-plane and per-CRTC scaling filter properties to allow > userspace to select the driver's default scaling filter or > Nearest-neighbor(NN) filter for upscaling operations on CRTC and > plane. > > Drivers can set up th

[Bug 206519] [amdgpu] kernel NULL pointer dereference on shutdown when CONFIG_DRM_AMD_DC_HDCP=y

2020-04-07 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=206519 Shlomo (shl...@fastmail.com) changed: What|Removed |Added Status|NEW |RESOLVED Resolutio

Re: [PATCH 00/10] Set up generic fbdev after registering device

2020-04-07 Thread Sam Ravnborg
Hi Thomas/Noralf. > > Having DRM core take care of fbdev emulation was an idea Laurent had > > which was the spark that set me off making the generic fbdev emulation. > > > > Maybe it's still too early to make this move, I don't know. > > I think we should wait a bit. As you mentioned, there are

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

2020-04-07 Thread Sam Ravnborg
On Tue, Apr 07, 2020 at 04:18:20PM +0300, Tomi Valkeinen wrote: > Hi Jyri, > > On 27/01/2020 18:00, Jyri Sarha wrote: > > This is intended to be the last patch series. I'll apply these trough > > drm-misc-next tomorrow. > > Were these ever merged? See 32a1795f57eecc3974901760400618571c9d357f ("d

Re: [PATCH v2 1/3] drm/vblank: Add intro to documentation

2020-04-07 Thread Sam Ravnborg
Hi Alex. On Tue, Apr 07, 2020 at 10:42:46AM -0400, Alex Deucher wrote: > On Mon, Apr 6, 2020 at 3:48 PM Sam Ravnborg wrote: > > > > Lyude Paul wrote a very good intro to vblank here: > > https://lore.kernel.org/dri-devel/faf63d8a9ed23c16af69762f59d0dca6b2bf085f.ca...@redhat.com/T/#mce6480be738160

[PATCH] drm/dp_mst: Zero assigned PBN when releasing VCPI slots

2020-04-07 Thread mikita.lipski
From: Mikita Lipski Zero Port's PBN together with VCPI slots when releasing allocated VCPI slots. That way when disabling the connector it will not cause issues in drm_dp_mst_atomic_check verifying branch bw limit. Signed-off-by: Mikita Lipski --- drivers/gpu/drm/drm_dp_mst_topology.c | 1 + 1

Re: [PATCH v2 2/3] drm: writeback: document callbacks

2020-04-07 Thread Sam Ravnborg
On Tue, Apr 07, 2020 at 01:04:31PM +0100, Liviu Dudau wrote: > On Mon, Apr 06, 2020 at 09:47:45PM +0200, Sam Ravnborg wrote: > > Document the callbacks: > > drm_connector_helper_funcs.prepare_writeback_job > > drm_connector_helper_funcs.cleanup_writeback_job > > > > The documentation was p

Re: [PATCH v2 3/3] drm/writeback: wire drm_writeback.h to kernel-doc

2020-04-07 Thread Sam Ravnborg
On Tue, Apr 07, 2020 at 10:08:51AM +0200, Daniel Vetter wrote: > On Mon, Apr 06, 2020 at 09:47:46PM +0200, Sam Ravnborg wrote: > > drm_writeback.h included a lot of nice kernel-doc comments. > > Wire it up so the header file is included in the kernel-doc > > generated documentation. > > > > Added

Re: [PATCH v2 13/17] drm/i915: Stop using mode->private_flags

2020-04-07 Thread Ville Syrjälä
On Tue, Apr 07, 2020 at 09:38:47AM +0200, Daniel Vetter wrote: > On Fri, Apr 03, 2020 at 11:40:04PM +0300, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > Replace the use of mode->private_flags with a truly private bitmaks > > in our own crtc state. We also need a copy in the crtc itself so

[Bug 202445] amdgpu/dc: framerate dropping below adaptive sync range causes screen flickering

2020-04-07 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=202445 --- Comment #39 from jaapbuur...@gmail.com --- To add to my previous comment: My ingame FPS is completely stable, yet my monitor's HZ is jumping all over the place as can be seen from the monitor's OSD. Previously, the luminance issue would only o

Re: [RESEND 2/2] drm: bridge: adv7511: Extend list of audio sample rates

2020-04-07 Thread Andrzej Hajda
On 24.02.2020 13:01, Bogdan Togorean wrote: > ADV7511 support sample rates up to 192kHz. CTS and N parameters should > be computed accordingly so this commit extend the list up to maximum > supported sample rate. > > Signed-off-by: Bogdan Togorean > --- > drivers/gpu/drm/bridge/adv7511/adv7511_au

[Bug 202445] amdgpu/dc: framerate dropping below adaptive sync range causes screen flickering

2020-04-07 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=202445 --- Comment #38 from jaapbuur...@gmail.com --- While I previously also had to same luminance flickering as you were describing on older kernels, kernel 5.5 and unfortunately also 5.6 are showing me flickering between a completely black screeb and

Re: [PATCH v2 1/3] drm/vblank: Add intro to documentation

2020-04-07 Thread Alex Deucher
On Mon, Apr 6, 2020 at 3:48 PM Sam Ravnborg wrote: > > Lyude Paul wrote a very good intro to vblank here: > https://lore.kernel.org/dri-devel/faf63d8a9ed23c16af69762f59d0dca6b2bf085f.ca...@redhat.com/T/#mce6480be738160e9d07c5d023e88fd78d7a06d27 > > Add this to the intro chapter in drm_vblank.c so

Re: [PATCH] dma-buf: support 32bit DMA_BUF_SET_NAME ioctl

2020-04-07 Thread Daniel Vetter
On Tue, Apr 7, 2020 at 3:26 PM Sumit Semwal wrote: > > Hello, > > Daniel, your comments here, please? Don't :-) I mean rule of thumb you should never need a compat_ioctl for a new ioctl, that's just failure to read https://www.kernel.org/doc/html/v5.4-preprc-cpu/ioctl/botching-up-ioctls.html Sp

[PATCH 1/3] drm/exynos: gem: Remove dead-code

2020-04-07 Thread Marek Szyprowski
The ExynosDRM page fault handler is never used, drm_gem_mmap() always calls exynos_drm_gem_mmap() function, which perform complete mapping for the given virtual address-space area. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/exynos/exynos_drm_drv.c | 1 - drivers/gpu/drm/exynos/exynos_d

[PATCH 0/3] ExynosDRM - rework GEM internals

2020-04-07 Thread Marek Szyprowski
Hi The recent discussion under the 'drm/prime: fix extracting of the DMA addresses from a scatterlist' [1] patch inspired me to take a look again into the Exynos DRM GEM internals. I've made a little cleanup and reworked some parts to make them more error proof for the various corner-cases. [1] h

[PATCH 3/3] drm/exynos: gem: Get rid of the internal 'pages' array

2020-04-07 Thread Marek Szyprowski
Internal pages array and scatter-list for them is not really needed for anything. FBDev emulation can simply rely on the DMA-mapping framework to create a proper kernel mapping for the buffer, while all other buffer use cases don't really need that array at all. Suggested-by: Christian König Sign

[PATCH 2/3] drm/exynos: gem: Rework scatter-list contiguity check on Prime import

2020-04-07 Thread Marek Szyprowski
Explicitly check if the imported buffer has been mapped as contiguous in the DMA address space, what is required by all Exynos DRM CRTC drivers. While touching this, set buffer flags depending on the availability of the IOMMU. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/exynos/exynos_drm

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

2020-04-07 Thread Tomi Valkeinen
Hi Jyri, On 27/01/2020 18:00, Jyri Sarha wrote: This is intended to be the last patch series. I'll apply these trough drm-misc-next tomorrow. Were these ever merged? Tomi Changes since v8: - "dt-bindings: display: ti,k2g-dss: Add dt-schema yaml binding" - Remove ports-node from the dts

[PATCH] dma-buf: Fix SET_NAME ioctl uapi

2020-04-07 Thread Daniel Vetter
The uapi is the same on 32 and 64 bit, but the number isnt. Everyone who botched this please re-read: https://www.kernel.org/doc/html/v5.4-preprc-cpu/ioctl/botching-up-ioctls.html Also, the type argument for the ioctl macros is for the type the void __user *arg pointer points at, which in this ca

Re: [PATCH] dma-buf: support 32bit DMA_BUF_SET_NAME ioctl

2020-04-07 Thread Sumit Semwal
Hello, Daniel, your comments here, please? On Mon, 24 Feb 2020 at 09:09, Martin Liu wrote: > > On Tue, Jan 14, 2020 at 09:41:01PM +0800, Martin Liu wrote: > > CC more MLs for winder review. > > > This commit adds SET_NAME ioctl coversion to > > support 32 bit ioctl. > > > > Signed-off-by: Martin

Re: [PATCH 03/10] drm/kirin: Set up fbdev after fully registering device

2020-04-07 Thread Thomas Zimmermann
Hi Am 07.04.20 um 10:04 schrieb Daniel Vetter: > On Mon, Apr 06, 2020 at 03:43:58PM +0200, Thomas Zimmermann wrote: >> Generic fbdev support is a DRM client. Set it up after fully registering >> the new DRM device. >> >> Signed-off-by: Thomas Zimmermann >> --- >> drivers/gpu/drm/hisilicon/kirin/

Re: [PATCH 00/10] Set up generic fbdev after registering device

2020-04-07 Thread Thomas Zimmermann
Hi Noralf Am 07.04.20 um 13:02 schrieb Noralf Trønnes: > > > Den 06.04.2020 15.43, skrev Thomas Zimmermann: >> Generic fbdev emulation is a DRM client. If possible, it should behave >> like userspace clients. Therefore it should not run before the driver >> registered the new DRM device. If the

Re: Curtaining API / Force blanking displays

2020-04-07 Thread Daniel Stone
Hi, On Tue, 7 Apr 2020 at 09:23, Pekka Paalanen wrote: > Maybe I should underline the read/write race: > > You do not get notified when a display server updates the screen, so > you poll. When your poll returns a new FB id, And that's only useful for Wayland systems. On X11, the server can (and

Re: [PATCH 07/10] drm/tilcdc: Set up fbdev after fully registering device

2020-04-07 Thread Jyri Sarha
On 06/04/2020 16:44, Thomas Zimmermann wrote: > Generic fbdev support is a DRM client. Set it up after fully registering > the new DRM device. > > Signed-off-by: Thomas Zimmermann Acked-by: Jyri Sarha However, this change hardly makes any difference, as the only place where "is_registere"'s va

Re: [Intel-gfx] [PATCH v5 14/16] drm/mst: Add support for QUERY_STREAM_ENCRYPTION_STATUS MST sideband message

2020-04-07 Thread Jani Nikula
On Thu, 26 Mar 2020, Lyude Paul wrote: > On Thu, 2020-03-05 at 15:12 -0500, Sean Paul wrote: >> From: Sean Paul >> >> Used to query whether an MST stream is encrypted or not. >> >> Signed-off-by: Sean Paul >> >> Link: >> https://patchwork.freedesktop.org/patch/msgid/20200218220242.107265-14-

Re: [PATCH v2 2/3] drm: writeback: document callbacks

2020-04-07 Thread Liviu Dudau
On Mon, Apr 06, 2020 at 09:47:45PM +0200, Sam Ravnborg wrote: > Document the callbacks: > drm_connector_helper_funcs.prepare_writeback_job > drm_connector_helper_funcs.cleanup_writeback_job > > The documentation was pulled from the changelong introducing the > callbacks, originally written

Re: [PATCH v2 1/3] drm/vblank: Add intro to documentation

2020-04-07 Thread Liviu Dudau
Hi Sam, Sorry for jumping in late on this, I have just a small suggestion: On Mon, Apr 06, 2020 at 09:47:44PM +0200, Sam Ravnborg wrote: > Lyude Paul wrote a very good intro to vblank here: > https://lore.kernel.org/dri-devel/faf63d8a9ed23c16af69762f59d0dca6b2bf085f.ca...@redhat.com/T/#mce6480be7

Re: Bad rss-counter state from drm/ttm, drm/vmwgfx: Support huge TTM pagefaults

2020-04-07 Thread VMware
On 4/7/20 2:38 AM, Alex Xu (Hello71) wrote: Excerpts from Thomas Hellström (VMware)'s message of April 6, 2020 5:04 pm: Hi, On 4/6/20 9:51 PM, Alex Xu (Hello71) wrote: Using 314b658 with amdgpu, starting sway and firefox causes "BUG: Bad rss-counter state" and "BUG: non-zero pgtables_bytes on

Re: [PATCH 05/10] drm/mediathek: Remove error check from fbdev setup

2020-04-07 Thread Noralf Trønnes
Den 06.04.2020 15.44, skrev Thomas Zimmermann: > Remove the error check from the fbdev setup function. The function > will print a warning. > > Signed-off-by: Thomas Zimmermann > --- Subject: s/mediathek/mediatek/ ___ dri-devel mailing list dri-deve

Re: [PATCH 00/10] Set up generic fbdev after registering device

2020-04-07 Thread Noralf Trønnes
Den 06.04.2020 15.43, skrev Thomas Zimmermann: > Generic fbdev emulation is a DRM client. If possible, it should behave > like userspace clients. Therefore it should not run before the driver > registered the new DRM device. If the setup function fails, the driver > should not report an error. >

Re: [PATCH 10/10] drm/fb-helper: Remove return value from drm_fbdev_generic_setup()

2020-04-07 Thread Sam Ravnborg
Hi Thomas. On Mon, Apr 06, 2020 at 03:44:05PM +0200, Thomas Zimmermann wrote: > Generic fbdev emulation is a DRM client. Drivers should invoke the > setup function, but not depend on its success. Hence remove the return > value. > > Signed-off-by: Thomas Zimmermann If this goes in as-is then it

Re: [PATCH 00/10] Set up generic fbdev after registering device

2020-04-07 Thread Sam Ravnborg
Hi Thomas. On Tue, Apr 07, 2020 at 08:28:59AM +0200, Thomas Zimmermann wrote: > Hi Sam > > Am 06.04.20 um 22:00 schrieb Sam Ravnborg: > > Hi Thomas. > > > > On Mon, Apr 06, 2020 at 03:43:55PM +0200, Thomas Zimmermann wrote: > >> Generic fbdev emulation is a DRM client. If possible, it should beh

Re: [PATCH v2] drm/ttm: clean up ttm_trace_dma_map/ttm_trace_dma_unmap (v2)

2020-04-07 Thread Christian König
Am 07.04.20 um 11:12 schrieb Huang Rui: ttm_trace_dma_map/ttm_trace_dma_unmap is never used anymore. v2: remove the file completely Signed-off-by: Huang Rui Reviewed-by: Christian König --- include/drm/ttm/ttm_debug.h | 31 --- 1 file changed, 31 deletions(-

Re: KMS enums and bitfields UAPI

2020-04-07 Thread Daniel Vetter
On Tue, Apr 7, 2020 at 10:19 AM Daniel Stone wrote: > > Hi, > > On Fri, 3 Apr 2020 at 13:24, Pekka Paalanen wrote: > > On Fri, 03 Apr 2020 10:15:21 + Simon Ser wrote: > > > At the very least, having a clear policy for both kernel public headers > > > and > > > user-space would help a lot. R

[PATCH v2] drm/ttm: clean up ttm_trace_dma_map/ttm_trace_dma_unmap (v2)

2020-04-07 Thread Huang Rui
ttm_trace_dma_map/ttm_trace_dma_unmap is never used anymore. v2: remove the file completely Signed-off-by: Huang Rui --- include/drm/ttm/ttm_debug.h | 31 --- 1 file changed, 31 deletions(-) delete mode 100644 include/drm/ttm/ttm_debug.h diff --git a/include/drm/tt

Re: [PATCH] Make the "Reducing compressed framebufer size" message be DRM_INFO_ONCE()

2020-04-07 Thread Jiri Slaby
On 06. 07. 18, 22:30, Rodrigo Vivi wrote: > On Fri, Jul 06, 2018 at 03:04:24PM -0400, Peter Jones wrote: >> This was sort of annoying me: >> >> random:~$ dmesg | tail -1 >> [523884.039227] [drm] Reducing the compressed framebuffer size. This may >> lead to less power savings than a non-reduced-siz

Bad rss-counter state from drm/ttm, drm/vmwgfx: Support huge TTM pagefaults

2020-04-07 Thread Alex Xu (Hello71)
Using 314b658 with amdgpu, starting sway and firefox causes "BUG: Bad rss-counter state" and "BUG: non-zero pgtables_bytes on freeing mm" to start filling dmesg, and then closing programs causes more BUGs and hangs, and then everything grinds to a halt (can't start more programs, can't even reb

Re: Bad rss-counter state from drm/ttm, drm/vmwgfx: Support huge TTM pagefaults

2020-04-07 Thread Alex Xu (Hello71)
Excerpts from Thomas Hellström (VMware)'s message of April 6, 2020 5:04 pm: > Hi, > > On 4/6/20 9:51 PM, Alex Xu (Hello71) wrote: >> Using 314b658 with amdgpu, starting sway and firefox causes "BUG: Bad >> rss-counter state" and "BUG: non-zero pgtables_bytes on freeing mm" to >> start filling dmes

Re: Curtaining API / Force blanking displays

2020-04-07 Thread Pekka Paalanen
On Mon, 6 Apr 2020 12:01:30 -0700 Erik Jensen wrote: > Thanks for the reply! (And thanks Simon for the pointer to ffmpeg.) > > > Screen scraping like that will have big problems trying to a) > > synchronize to the display updates correctly (was the screen > > updated, did you get old or new fram

Re: KMS enums and bitfields UAPI

2020-04-07 Thread Daniel Stone
Hi, On Fri, 3 Apr 2020 at 13:24, Pekka Paalanen wrote: > On Fri, 03 Apr 2020 10:15:21 + Simon Ser wrote: > > At the very least, having a clear policy for both kernel public headers and > > user-space would help a lot. Right now it's unclear for both parties what > > to do > > regarding enum

Re: [PATCH v2 2/4] drm: ipk: Add DRM driver for DesignWare IPK DSI

2020-04-07 Thread Daniel Vetter
On Mon, Apr 06, 2020 at 03:24:12PM +0200, Angelo Ribeiro wrote: > Add support for Synopsys DesignWare VPG (Video Pattern Generator) and > DRM driver for Synopsys DesignWare DSI Host IPK solution. > > Cc: Maarten Lankhorst > Cc: Maxime Ripard > Cc: David Airlie > Cc: Daniel Vetter > Cc: Gustavo

RE: [PATCH] drm/bridge: dw-mipi-dsi.c: Add VPG runtime config through debugfs

2020-04-07 Thread Angelo Ribeiro
Hi Adrian, You are right! Thanks for the help, Angelo Ribeiro From: Adrian Pop Date: Sat, Apr 04, 2020 at 11:56:11 > Hello Angelo, > > I get a compile error: error: ‘VID_MODE_VPG_MODE’ undeclared. I am > quite new to the mailing list, maybe I misapplied the patch. > > Regards, > Adrian > >

Re: [PATCH/RFC 4/6] dt-bindings: display: rockchip: dw-hdmi: Convert binding to YAML

2020-04-07 Thread Maxime Ripard
On Mon, Apr 06, 2020 at 08:50:28PM +0300, Laurent Pinchart wrote: > Hi Maxime, > > On Mon, Apr 06, 2020 at 07:09:15PM +0200, Maxime Ripard wrote: > > On Mon, Apr 06, 2020 at 02:19:27PM +0300, Laurent Pinchart wrote: > > > On Mon, Apr 06, 2020 at 10:00:32AM +0200, Maxime Ripard wrote: > > > > On Mon

Re: [PATCH 2/4] dt-bindings: display: bridge: Convert simple-bridge bindings to YAML

2020-04-07 Thread Maxime Ripard
On Mon, Apr 06, 2020 at 02:23:16AM +0300, Laurent Pinchart wrote: > The simple-bridge driver supports multiple simple or dumb bridges, > covered by different compatible strings but otherwise identical DT > bindings. Some of those bridges have undocumented bindings, while others > are documented in

Re: [PATCH v5 1/8] dt-bindings: add img, pvrsgx.yaml for Imagination GPUs

2020-04-07 Thread H. Nikolaus Schaller
> Am 29.03.2020 um 19:38 schrieb H. Nikolaus Schaller : > > The Imagination PVR/SGX GPU is part of several SoC from > multiple vendors, e.g. TI OMAP, Ingenic JZ4780, Intel Poulsbo, > Allwinner A83 and others. > > With this binding, we describe how the SGX processor is > interfaced to the SoC (r

Re: [PATCH v5 1/5] PM / EM: add devices to Energy Model

2020-04-07 Thread Lukasz Luba
On 4/6/20 3:58 PM, Daniel Lezcano wrote: Hi Lukasz, On 06/04/2020 15:29, Lukasz Luba wrote: Hi Daniel, Thank you for the review. On 4/3/20 5:05 PM, Daniel Lezcano wrote: Hi Lukasz, On 18/03/2020 12:45, Lukasz Luba wrote: Add support of other devices into the Energy Model framework no

[PATCH v2 0/4] drm: Add support for IPK DSI Host Driver

2020-04-07 Thread Angelo Ribeiro
This patch series adds support for the display subsystem in the Synopsys DesignWare IPK devices. The display pipeline is limited and does not have access to memory, the validation is done using a VPG (Video Pattern Generator), as DPI stimulus for the DW MIPI DSI Host. A Synopsys DesignWare MIPI D

Re: [PATCH] drm: mediatek: fix device passed to cmdq

2020-04-07 Thread Enric Balletbo i Serra
Hi Hsin-Yi Thanks for sending the patch upstream On 6/4/20 7:11, Hsin-Yi Wang wrote: > drm device is now probed from mmsys. We need to use mmsys device to get gce > nodes. Fix following errors: > > [0.740068] mediatek-drm mediatek-drm.1.auto: error -2 can't parse > gce-client-reg property (

  1   2   >