Re: [PATCH] drm: enable render nodes wherever buffer sharing is supported

2020-04-28 Thread Peter Collingbourne
On Mon, Apr 27, 2020 at 1:47 PM Eric Anholt wrote: > > On Mon, Apr 27, 2020 at 1:05 PM Peter Collingbourne wrote: > > > > Render nodes are not just useful for devices supporting GPU hardware > > acceleration. Even on devices that only support dumb frame buffers, > > they are useful in situations

[PATCH] drm: Replace drm_modeset_lock/unlock_all with DRM_MODESET_LOCK_ALL_* helpers

2020-04-28 Thread Michal Orzel
As suggested by the TODO list for the kernel DRM subsystem, replace the deprecated functions that take/drop modeset locks with new helpers. Signed-off-by: Michal Orzel --- drivers/gpu/drm/drm_mode_object.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git

[PATCH v3 14/16] drm/gma500: Stop using mode->private_flags

2020-04-28 Thread Ville Syrjala
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 just stuff the pixel multiplier into the encoder itself as there are no state objects

Re: [PATCH 1/3] drm/db9000: Add Digital Blocks DB9000 LCD Controller

2020-04-28 Thread Daniel Vetter
On Tue, Apr 28, 2020 at 8:18 PM Sam Ravnborg wrote: > > Hi Gareth. > > On Mon, Apr 27, 2020 at 09:21:47AM +0100, Gareth Williams wrote: > > Add DRM support for the Digital Blocks DB9000 LCD Controller > > with the Renesas RZ/N1 specific changes. > > > > Signed-off-by: Gareth Williams > > --- > >

[Bug 207483] New: PowerColor AMD RX580 much higher power usage on idle than Windows 10

2020-04-28 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=207483 Bug ID: 207483 Summary: PowerColor AMD RX580 much higher power usage on idle than Windows 10 Product: Drivers Version: 2.5 Kernel Version: 5.5.2-050502-generic

[PATCH] drm/managed: Cleanup of unused functions and polishing docs

2020-04-28 Thread Daniel Vetter
Following functions are only used internally, not by drivers: - devm_drm_dev_init Also, now that we have a very slick and polished way to allocate a drm_device with devm_drm_dev_alloc, update all the docs to reflect the new reality. Mostly this consists of deleting old and misleading hints. Two

Re: [PATCH v1] staging: fbtft: fb_st7789v: Initialize the Display

2020-04-28 Thread Dan Carpenter
On Mon, Apr 27, 2020 at 02:36:25PM +0200, Oliver Graute wrote: > On 27/04/20, Dan Carpenter wrote: > > On Mon, Apr 27, 2020 at 10:36:42AM +0200, Oliver Graute wrote: > > > On 09/04/20, Dan Carpenter wrote: > > > > On Thu, Apr 09, 2020 at 11:25:32AM +0200, Oliver Graute wrote: > > > > > From:

Re: [PATCH v2 79/91] drm/vc4: hdmi: Deal with multiple debugfs files

2020-04-28 Thread Dave Stevenson
Hi Stefan and Maxime On Tue, 28 Apr 2020 at 16:57, Maxime Ripard wrote: > > Hi Stefan, > > On Sat, Apr 25, 2020 at 11:26:31PM +0200, Stefan Wahren wrote: > > Am 24.04.20 um 17:35 schrieb Maxime Ripard: > > > The HDMI driver was registering a single debugfs file so far with the name > > >

Re: [PATCH v3 05/17] drm/msm/dpu: Use OPP API to set clk/perf state

2020-04-28 Thread Rob Clark
On Tue, Apr 28, 2020 at 6:39 AM Rajendra Nayak wrote: > > On some qualcomm platforms DPU needs to express a perforamnce state s/perforamnce/performance/ > requirement on a power domain depennding on the clock rates. s/depennding/depending/ > Use OPP table from DT to register with OPP

[PATCH v3 11/16] drm/mcde: Use mode->clock instead of reverse calculating it from the vrefresh

2020-04-28 Thread Ville Syrjala
From: Ville Syrjälä htotal*vtotal*vrefresh ~= clock. So just say "clock" when we mean it. Cc: Linus Walleij Cc: Sam Ravnborg Reviewed-by: Daniel Vetter Reviewed-by: Sam Ravnborg Reviewed-by: Linus Walleij Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/mcde/mcde_dsi.c | 3 +-- 1 file

[PATCH v3 09/16] drm: Flatten drm_mode_vrefresh()

2020-04-28 Thread Ville Syrjala
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: Sam Ravnborg Reviewed-by: Emil Velikov Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_modes.c | 26

[PATCH v3 15/16] drm: Nuke mode->private_flags

2020-04-28 Thread Ville Syrjala
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. v2: Drop the earlier int->u8 conversion CC: Sam Ravnborg Cc: Daniel Vetter Cc: Emil Velikov Reviewed-by: Sam Ravnborg Signed-off-by: Ville Syrjälä

[PATCH v3 16/16] drm: Replace mode->export_head with a boolean

2020-04-28 Thread Ville Syrjala
From: Ville Syrjälä In order to shrink drm_display_mode below the magic two cacheline mark in 64bit we need to shrink it by another 8 bytes. The easiest thing to eliminate is the 'export_head' list head which is only used during the getconnector ioctl to temporarly track which modes on the

[PATCH v3 10/16] drm: pahole struct drm_display_mode

2020-04-28 Thread Ville Syrjala
From: Ville Syrjälä Reorganize drm_display_mode to eliminate all the holes. We'll put all the actual timings to the start of the struct and all the extra junk to the end. Gets the size down to 136 bytes on 64bit and 120 bytes on 32bit. With a bit more work we should be able to get this below

[PATCH v3 13/16] drm/i915: Replace I915_MODE_FLAG_INHERITED with a boolean

2020-04-28 Thread Ville Syrjala
From: Ville Syrjälä There's no reason for I915_MODE_FLAG_INHERITED to exist as a flag anymore. Just make it a boolean. CC: Sam Ravnborg Cc: Daniel Vetter Cc: Emil Velikov Reviewed-by: Daniel Vetter Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_atomic.c | 2 +-

[PATCH v3 12/16] drm/i915: Stop using mode->private_flags

2020-04-28 Thread Ville Syrjala
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 the vblank code can get at it. We already have scanline_offset in there for a similar reason, as well as the vblank->hwmode which is assigned

[PATCH v3 08/16] drm: Shrink drm_display_mode timings

2020-04-28 Thread Ville Syrjala
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: Sam Ravnborg Reviewed-by: Emil Velikov Reviewed-by: Daniel Vetter Signed-off-by: Ville Syrjälä

[PATCH v3 05/16] drm: Shrink {width,height}_mm to u16

2020-04-28 Thread Ville Syrjala
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 into the 16 bits. Reviewed-by: Sam Ravnborg Reviewed-by: Emil Velikov

[PATCH v3 04/16] drm/msm/dpu: Stop copying around mode->private_flags

2020-04-28 Thread Ville Syrjala
From: Ville Syrjälä The driver never sets mode->private_flags so copying it back and forth is entirely pointless. Stop doing it. Also drop private_flags from the tracepoint. Cc: Rob Clark Cc: Sean Paul Cc: linux-arm-...@vger.kernel.org Cc: freedr...@lists.freedesktop.org Reviewed-by: Emil

[PATCH v3 07/16] drm: Make mode->flags u32

2020-04-28 Thread Ville Syrjala
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: Sam Ravnborg Reviewed-by: Emil Velikov Signed-off-by: Ville Syrjälä --- include/drm/drm_modes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH v3 02/16] drm/i915: Introduce some local intel_dp variables

2020-04-28 Thread Ville Syrjala
From: Ville Syrjälä The drrs code dereferences mode->vrefresh via some really long chain of structures/pointers. Couldn't get coccinelle to see through all that so let's add some local variables to help it. Reviewed-by: Emil Velikov Signed-off-by: Ville Syrjälä ---

[PATCH v3 00/16] drm: Put drm_display_mode on diet

2020-04-28 Thread Ville Syrjala
From: Ville Syrjälä Rebased mode dieting series. Hopefully will get this past ci finally. Changes from v2: - rebase - dropped the int->u8 private_flags patch Only the last patch remains unreviewed. Ville Syrjälä (16): drm: Nuke mode->hsync drm/i915: Introduce some local intel_dp variables

[PATCH v3 01/16] drm: Nuke mode->hsync

2020-04-28 Thread Ville Syrjala
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 Drop the TODO Reviewed-by: Sam Ravnborg Reviewed-by: Emil Velikov #v1

[PATCH v3 06/16] drm: Shrink mode->type to u8

2020-04-28 Thread Ville Syrjala
From: Ville Syrjälä We only have 7 bits defined for mode->type. Shrink the storage to u8. Reviewed-by: Sam Ravnborg Reviewed-by: Emil Velikov Reviewed-by: Daniel Vetter Signed-off-by: Ville Syrjälä --- include/drm/drm_modes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH 26/59] drm/qxl: Use devm_drm_dev_alloc

2020-04-28 Thread Daniel Vetter
On Tue, Apr 28, 2020 at 07:00:26PM +0200, Sam Ravnborg wrote: > On Tue, Apr 28, 2020 at 04:00:11PM +0200, Daniel Vetter wrote: > > On Fri, Apr 24, 2020 at 05:09:11PM +0200, Sam Ravnborg wrote: > > > Hi Daniel > > > > > > On Wed, Apr 15, 2020 at 09:40:01AM +0200, Daniel Vetter wrote: > > > > Also

Re: [PATCH] drm/managed: Cleanup of unused functions and polishing docs

2020-04-28 Thread Sam Ravnborg
On Tue, Apr 28, 2020 at 08:51:01PM +0200, Daniel Vetter wrote: > Following functions are only used internally, not by drivers: > - devm_drm_dev_init > > Also, now that we have a very slick and polished way to allocate a > drm_device with devm_drm_dev_alloc, update all the docs to reflect the >

Re: [PATCH v7 4/8] drm: imx: Add i.MX 6 MIPI DSI host platform driver

2020-04-28 Thread Adrian Ratiu
Hi Daniel, On Tue, 28 Apr 2020, Daniel Vetter wrote: On Wed, Apr 22, 2020 at 04:07:27AM +0300, Laurent Pinchart wrote: Hi Adrian, On Tue, Apr 21, 2020 at 07:16:06PM +0300, Adrian Ratiu wrote: > This adds support for the Synopsis DesignWare MIPI DSI v1.01 > host controller which is

Re: [PATCH -next] drm/mediatek: Fix Kconfig warning

2020-04-28 Thread Chun-Kuang Hu
Daniel Vetter 於 2020年4月28日 週二 下午10:55寫道: > > On Sun, Apr 26, 2020 at 04:20:39PM +0800, Chun-Kuang Hu wrote: > > Hi, YueHaibing: > > > > YueHaibing 於 2020年4月20日 週一 下午10:04寫道: > > > > > > WARNING: unmet direct dependencies detected for MTK_MMSYS > > > Depends on [n]: (ARCH_MEDIATEK [=y] ||

Re: [PATCH 1/1] drm/mm: optimize rb_hole_addr rbtree search in high addr mode

2020-04-28 Thread Chris Wilson
Quoting Nirmoy Das (2020-04-28 17:04:23) > Userspace can severely fragment rb_hole_addr rbtree by manipulating > alignment while allocating buffers. Fragmented rb_hole_addr rbtree would > result in large delays while allocating buffer object for a userspace > application. It takes long time to

Re: [PATCH 3/5] drm/i915/dmabuf: Add LMEM knowledge to dmabuf map handler

2020-04-28 Thread Daniel Vetter
On Tue, Apr 28, 2020 at 05:36:03PM +, Ruhl, Michael J wrote: > >-Original Message- > >From: Daniel Vetter > >Sent: Tuesday, April 28, 2020 11:02 AM > >To: Ruhl, Michael J > >Cc: dri-devel@lists.freedesktop.org; dan...@ffwll.ch; Xiong, Jianxin > > > >Subject: Re: [PATCH 3/5]

Re: [RFC 00/17] DRM: fix struct sg_table nents vs. orig_nents misuse

2020-04-28 Thread Robin Murphy
On 2020-04-28 4:32 pm, Daniel Vetter wrote: On Tue, Apr 28, 2020 at 04:02:57PM +0200, Christoph Hellwig wrote: On Tue, Apr 28, 2020 at 03:19:48PM +0200, Marek Szyprowski wrote: 1. introduce a dma_{map,sync,unmap}_sgtable() wrappers, which will use a proper sg_table entries and call

Re: [PATCH v2 1/2] dt-bindings: display: simple: Add IVO M133NWF4 R0

2020-04-28 Thread Sam Ravnborg
Hi Rob. On Tue, Apr 28, 2020 at 09:27:51AM -0500, Rob Herring wrote: > On Sat, Apr 25, 2020 at 12:58 PM Sam Ravnborg wrote: > > > > Hi Björn. > > > > On Mon, Apr 20, 2020 at 02:57:27PM -0700, Bjorn Andersson wrote: > > > Define the vendor prefix for InfoVision Optoelectronics and add their > > >

Re: [PATCH] drm: Replace drm_modeset_lock/unlock_all with DRM_MODESET_LOCK_ALL_* helpers

2020-04-28 Thread Michał Orzeł
Patch resubmitted with intel-gfx mailing list added. Thanks, Michal wt., 28 kwi 2020 o 17:15 Daniel Vetter napisał(a): > On Sun, Apr 26, 2020 at 12:01:22PM +0200, Michal Orzel wrote: > > As suggested by the TODO list for the kernel DRM subsystem, replace > > the deprecated functions that

Re: [PATCH 38/59] drm/i915: Use devm_drm_dev_alloc

2020-04-28 Thread Daniel Vetter
On Wed, Apr 15, 2020 at 09:40:13AM +0200, Daniel Vetter wrote: > Luckily we're already well set up in the main driver, with > drm_dev_put() being the last thing in both the unload error case and > the pci remove function. > > Signed-off-by: Daniel Vetter Pushed to drm-misc-next with Jani's

Re: [PATCH 26/59] drm/qxl: Use devm_drm_dev_alloc

2020-04-28 Thread Sam Ravnborg
On Tue, Apr 28, 2020 at 04:00:11PM +0200, Daniel Vetter wrote: > On Fri, Apr 24, 2020 at 05:09:11PM +0200, Sam Ravnborg wrote: > > Hi Daniel > > > > On Wed, Apr 15, 2020 at 09:40:01AM +0200, Daniel Vetter wrote: > > > Also need to remove the drm_dev_put from the remove hook. > > > > > >

Re: [PATCH 1/1] drm/mm: optimize rb_hole_addr rbtree search in high addr mode

2020-04-28 Thread Nirmoy
On 4/28/20 6:18 PM, Chris Wilson wrote: Quoting Nirmoy Das (2020-04-28 17:04:23) Userspace can severely fragment rb_hole_addr rbtree by manipulating alignment while allocating buffers. Fragmented rb_hole_addr rbtree would result in large delays while allocating buffer object for a userspace

Re: [PATCH 1/3] drm/db9000: Add Digital Blocks DB9000 LCD Controller

2020-04-28 Thread Sam Ravnborg
Hi Gareth. On Mon, Apr 27, 2020 at 09:21:47AM +0100, Gareth Williams wrote: > Add DRM support for the Digital Blocks DB9000 LCD Controller > with the Renesas RZ/N1 specific changes. > > Signed-off-by: Gareth Williams > --- > drivers/gpu/drm/Kconfig| 2 + >

Re: KASAN: use-after-free Read in vkms_dumb_create

2020-04-28 Thread Ezequiel Garcia
On Tue, 28 Apr 2020 at 09:47, Hillf Danton wrote: > > > Sun, 26 Apr 2020 20:48:12 -0700 > > syzbot found the following crash on: > > > > HEAD commit:c578ddb3 Merge tag 'linux-kselftest-5.7-rc3' of git://git... > > git tree: upstream > > console output:

Re: [PATCH v1] staging: fbtft: fb_st7789v: enabled inversion

2020-04-28 Thread Dan Carpenter
On Mon, Apr 27, 2020 at 10:29:39AM +0200, Oliver Graute wrote: > On 09/04/20, Dan Carpenter wrote: > > On Thu, Apr 09, 2020 at 11:24:05AM +0200, Oliver Graute wrote: > > > From: Oliver Graute > > > > > > Enable inversion mode > > > > What the heck is an inversion mode and why would you want it?

Re: [RFC PATCH] dt-bindings: display: ti,tfp410.txt: convert to yaml

2020-04-28 Thread Sam Ravnborg
Hi Ricardo. Thanks for looking into this bridge binding. Some comments in the following. Sam On Tue, Apr 28, 2020 at 11:20:48AM +0200, Ricardo Cañuelo wrote: > Convert the DT binding documentation for the TI TFP410 DPI-to-DVI > encoder to json-schema. > > Signed-off-by: Ricardo Cañuelo

Re: [PATCH] drm/mediatek: stop iterating dma addresses when sg_dma_len() == 0

2020-04-28 Thread Chun-Kuang Hu
Hi, Anand, Anand K. Mistry 於 2020年4月28日 週二 上午9:54寫道: > > On Sun, 26 Apr 2020 at 18:04, Chun-Kuang Hu wrote: > > > > Hi, Anand: > > > > Anand K Mistry 於 2020年4月20日 週一 下午2:09寫道: > > > > > > If dma_map_sg() merges pages when creating the mapping, only the first > > > entries will have a valid

Re: [PATCH 56/59] drm/aspeed: Use managed drmm_mode_config_cleanup

2020-04-28 Thread Sam Ravnborg
On Tue, Apr 28, 2020 at 04:12:21PM +0200, Daniel Vetter wrote: > On Fri, Apr 24, 2020 at 08:10:02PM +0200, Sam Ravnborg wrote: > > On Wed, Apr 15, 2020 at 09:40:31AM +0200, Daniel Vetter wrote: > > > Since aspeed doesn't use devm_kzalloc anymore we can use the managed > > > mode config cleanup. >

RE: [PATCH 3/5] drm/i915/dmabuf: Add LMEM knowledge to dmabuf map handler

2020-04-28 Thread Ruhl, Michael J
>-Original Message- >From: Daniel Vetter >Sent: Tuesday, April 28, 2020 11:02 AM >To: Ruhl, Michael J >Cc: dri-devel@lists.freedesktop.org; dan...@ffwll.ch; Xiong, Jianxin > >Subject: Re: [PATCH 3/5] drm/i915/dmabuf: Add LMEM knowledge to dmabuf >map handler > >On Wed, Apr 22, 2020 at

Re: [PATCH] dt-bindings: arm-smmu: Add a new compatible string and a clock

2020-04-28 Thread Doug Anderson
Hi, On Tue, Apr 28, 2020 at 4:39 AM Sharat Masetty wrote: > > This patch adds a new compatible string for sc7180 and also an > additional clock listing needed to power the TBUs and the TCU. > > Signed-off-by: Sharat Masetty > --- > Documentation/devicetree/bindings/iommu/arm,smmu.yaml | 7

Re: Msg "PM: pci_pm_suspend(): ast_pm_suspend+0x0/0x40 [ast] returns -22" after migrating to V5.6.7 kernel from v5.5.10.

2020-04-28 Thread David Airlie
On Wed, Apr 29, 2020 at 6:38 AM Cary Garrett wrote: > > Hello Dave, > > Generating & booting v5.5.19 kernel, system will successfully enter suspend > state. > > Generating & booting v5.6.0 kernel, system fails to enter suspend state. > Thomas, do you have ast hw, care to help track it down, I

[PATCH] sun6i: dsi: fix gcc-4.8

2020-04-28 Thread Arnd Bergmann
Older compilers warn about initializers with incorrect curly braces: drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c: In function 'sun6i_dsi_encoder_enable': drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c:720:8: error: missing braces around initializer [-Werror=missing-braces] union phy_configure_opts opts = {

[PATCH] drm/rockchip: cdn-dp-core: Make cdn_dp_core_suspend/resume __maybe_unused

2020-04-28 Thread Arnd Bergmann
With the new static annotation, the compiler warns when the functions are actually unused: drivers/gpu/drm/rockchip/cdn-dp-core.c:1123:12: error: 'cdn_dp_resume' defined but not used [-Werror=unused-function] 1123 | static int cdn_dp_resume(struct device *dev) |^

[PATCH] drm/bridge: fix stack usage warning on old gcc

2020-04-28 Thread Arnd Bergmann
Some older versions of gcc badly optimize code that passes an inline function argument into another function by reference, causing huge stack usage: drivers/gpu/drm/bridge/tc358768.c: In function 'tc358768_bridge_pre_enable': drivers/gpu/drm/bridge/tc358768.c:840:1: error: the frame size of 2256

[PATCH] drm/i915: avoid unused scale_user_to_hw() warning

2020-04-28 Thread Arnd Bergmann
After the function is no longer marked 'inline', there is now a new warning pointing out that the only caller is inside of an #ifdef: drivers/gpu/drm/i915/display/intel_panel.c:493:12: warning: 'scale_user_to_hw' defined but not used [-Wunused-function] 493 | static u32 scale_user_to_hw(struct

[PATCH] amdgpu: fix gcc-4.8 build warnings

2020-04-28 Thread Arnd Bergmann
Older compilers warn about initializers with incorrect curly braces: drivers/gpu/drm/drm_dp_mst_topology.c: In function 'drm_dp_mst_dsc_aux_for_port': drivers/gpu/drm/drm_dp_mst_topology.c:5497:9: error: missing braces around initializer [-Werror=missing-braces] struct drm_dp_desc desc = { 0

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

2020-04-28 Thread Stephen Rothwell
Hi all, On Mon, 20 Apr 2020 13:01:18 +1000 Stephen Rothwell wrote: > > After merging the drm-misc tree, today's linux-next build (powerpc > allyesconfig) failed like this: > > drivers/video/fbdev/controlfb.c: In function 'controlfb_mmap': > drivers/video/fbdev/controlfb.c:756:23: error:

Re: [PATCH v8 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP bridge driver

2020-04-28 Thread Nicolas Boichat
On Mon, Apr 27, 2020 at 2:18 PM Xin Ji wrote: > > The ANX7625 is an ultra-low power 4K Mobile HD Transmitter designed > for portable device. It converts MIPI DSI/DPI to DisplayPort 1.3 4K. > > The ANX7625 can support both USB Type-C PD feature and MIPI DSI/DPI > to DP feature. This driver only

Re: [PATCH v3 1/6] drm/bridge: ti-sn65dsi86: Export bridge GPIOs to Linux

2020-04-28 Thread Doug Anderson
Hi, On Tue, Apr 28, 2020 at 5:44 AM Linus Walleij wrote: > > On Thu, Apr 23, 2020 at 6:26 PM Douglas Anderson > wrote: > > > The ti-sn65dsi86 MIPI DSI to eDP bridge chip has 4 pins on it that can > > be used as GPIOs in a system. Each pin can be configured as input, > > output, or a special

Re: [PATCH v3 05/17] drm/msm/dpu: Use OPP API to set clk/perf state

2020-04-28 Thread Matthias Kaehlcke
On Tue, Apr 28, 2020 at 07:02:53PM +0530, Rajendra Nayak wrote: > On some qualcomm platforms DPU needs to express a perforamnce state > requirement on a power domain depennding on the clock rates. > Use OPP table from DT to register with OPP framework and use > dev_pm_opp_set_rate() to set the

Re: [PATCH] amdgpu: fix gcc-4.8 build warnings

2020-04-28 Thread Rodrigo Siqueira
Thanks for your patch. Reviewed-by: Rodrigo Siqueira On 04/28, Arnd Bergmann wrote: > Older compilers warn about initializers with incorrect curly > braces: > > drivers/gpu/drm/drm_dp_mst_topology.c: In function > 'drm_dp_mst_dsc_aux_for_port': > drivers/gpu/drm/drm_dp_mst_topology.c:5497:9:

Re: [PATCH] backlight: l4f00242t03: Convert to GPIO descriptors

2020-04-28 Thread Shawn Guo
On Wed, Apr 15, 2020 at 02:14:49PM +0200, Linus Walleij wrote: > This converts the l4f00242t03 backlight driver to use GPIO > descriptors and switches the two Freescale i.MX boards over > to passing descriptors instead of global GPIO numbers. > > We use the typical names "enable" and "reset" as

[PATCH] drm/bridge: tc358764: fix ptr_ret.cocci warnings

2020-04-28 Thread kbuild test robot
://github.com/0day-ci/linux/commits/Sam-Ravnborg/drm-bridge-support-drm-bridge-connector-helper-panel-updates/20200428-060830 base: git://anongit.freedesktop.org/drm-intel for-linux-next tc358764.c |5 + 1 file changed, 1 insertion(+), 4 deletions(-) --- a/drivers/gpu/drm/bridge/tc358764.c

Re: [PATCH v2 04/21] drm/bridge: tc358764: add drm_panel_bridge support

2020-04-28 Thread kbuild test robot
Hi Sam, I love your patch! Perhaps something to improve: [auto build test WARNING on drm-intel/for-linux-next] [also build test WARNING on drm-exynos/exynos-drm-next tegra-drm/drm/tegra/for-next drm-tip/drm-tip linus/master v5.7-rc3 next-20200428] [cannot apply to drm/drm-next] [if your patch

Re: [PATCH] drm/meson: Remove unneeded semicolon

2020-04-28 Thread Neil Armstrong
On 24/04/2020 09:49, Zheng Bin wrote: > Fixes coccicheck warning: > > drivers/gpu/drm/meson/meson_plane.c:226:3-4: Unneeded semicolon > > Reported-by: Hulk Robot > Signed-off-by: Zheng Bin > --- > drivers/gpu/drm/meson/meson_plane.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >

Re: [PATCH] drm/meson: Remove unneeded semicolon

2020-04-28 Thread Neil Armstrong
On 24/04/2020 09:49, Zheng Bin wrote: > Fixes coccicheck warning: > > drivers/gpu/drm/meson/meson_plane.c:226:3-4: Unneeded semicolon > > Reported-by: Hulk Robot > Signed-off-by: Zheng Bin > --- > drivers/gpu/drm/meson/meson_plane.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >

[RFC PATCH] dt-bindings: display: ti,tfp410.txt: convert to yaml

2020-04-28 Thread Ricardo Cañuelo
Convert the DT binding documentation for the TI TFP410 DPI-to-DVI encoder to json-schema. Signed-off-by: Ricardo Cañuelo --- Hi all, I found some issues while converting this binding and I'd like to know your opinions on how to tackle them. 1) dtbs_check fails for

[PATCH v2] drm/meson: add mode selection limits against specific SoC revisions

2020-04-28 Thread Neil Armstrong
The Amlogic S805X/Y uses the same die as the S905X, but with more limited graphics capabilities. This adds a soc version detection adding specific limitations on the HDMI mode selections. Here, we limit to HDMI 1.3a max HDMI PHY clock frequency. Changes sinces v1: - Moved frequency check in the

Re: [PATCH] drm/virtio: only destroy created contexts

2020-04-28 Thread Gerd Hoffmann
On Wed, Apr 08, 2020 at 04:29:38PM -0700, Gurchetan Singh wrote: > This can happen if userspace doesn't issue any 3D ioctls before > closing the DRM fd. > > Fixes: 72b48ae800da ("drm/virtio: enqueue virtio_gpu_create_context > after the first 3D ioctl") > Signed-off-by: Gurchetan Singh Pushed

Re: [PATCH] backlight: lp855x: Ensure regulators are disabled on probe failure

2020-04-28 Thread Lee Jones
On Mon, 24 Feb 2020, Jon Hunter wrote: > If probing the LP885x backlight fails after the regulators have been > enabled, then the following warning is seen when releasing the > regulators ... > > WARNING: CPU: 1 PID: 289 at drivers/regulator/core.c:2051 > _regulator_put.part.28+0x158/0x160 >

[Bug 205089] amdgpu : drm:amdgpu_cs_ioctl : Failed to initialize parser -125

2020-04-28 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=205089 --- Comment #11 from Andreas Schneider (a...@samba.org) --- Yes, seems to work. I think this can be closed. -- You are receiving this mail because: You are watching the assignee of the bug. ___

[Bug 205089] amdgpu : drm:amdgpu_cs_ioctl : Failed to initialize parser -125

2020-04-28 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=205089 Bruno Jacquet (maxi...@free.fr) changed: What|Removed |Added Status|NEW |RESOLVED

Re: [RFC PATCH] dt-bindings: display: ti,tfp410.txt: convert to yaml

2020-04-28 Thread Tomi Valkeinen
On 28/04/2020 12:20, Ricardo Cañuelo wrote: 2) The definition of ti,deskew in the original binding seems to be tailored to the current driver and the way it's defined may not be very DT-friendly. This parameter maps to a 3-bit field in a hardware register that takes a value from 0 to 7,

Re: [PATCH v7 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP bridge driver

2020-04-28 Thread Daniel Vetter
On Fri, Apr 24, 2020 at 08:12:04PM +0800, Nicolas Boichat wrote: > On Fri, Apr 24, 2020 at 2:51 PM Xin Ji wrote: > > > > On Thu, Apr 23, 2020 at 07:55:15PM +0800, Nicolas Boichat wrote: > > > Hi, > > > > > > Just commenting on the mode_fixup function that was added in v7. > > > > > [snip] > > > >

Re: [PATCH] drm/qxl: lost qxl_bo_kunmap_atomic_page in qxl_image_init_helper()

2020-04-28 Thread Gerd Hoffmann
On Mon, Apr 27, 2020 at 10:55:27AM +0300, Vasily Averin wrote: > Signed-off-by: Vasily Averin > --- > drivers/gpu/drm/qxl/qxl_image.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/qxl/qxl_image.c b/drivers/gpu/drm/qxl/qxl_image.c > index 43688ecdd8a0..7270da62fc29

Re: How to handle disconnection of eDP panels due to dynamic display mux switches

2020-04-28 Thread Daniel Vetter
On Wed, Apr 22, 2020 at 05:04:54PM -0500, Daniel Dadap wrote: > On 4/3/20 2:59 PM, Daniel Vetter wrote: > > On Fri, Apr 3, 2020 at 8:06 PM Daniel Dadap wrote: > > > > > > On 4/3/20 2:16 AM, Daniel Vetter wrote: > > > > On Fri, Apr 3, 2020 at 8:54 AM Daniel Dadap wrote: > > > > > On 4/2/20 6:39

Re: [PATCH V6 3/4] backlight: qcom-wled: Add WLED5 bindings

2020-04-28 Thread Lee Jones
On Thu, 23 Apr 2020, Kiran Gunda wrote: > Add WLED5 specific bindings. > > Signed-off-by: Kiran Gunda > Signed-off-by: Subbaraman Narayanamurthy > Acked-by: Daniel Thompson > --- > .../bindings/leds/backlight/qcom-wled.yaml | 59 > -- > 1 file changed, 56

Re: [PATCH] dma-buf: Fix SET_NAME ioctl uapi

2020-04-28 Thread Sumit Semwal
Thanks Daniel, Martin, On Thu, 23 Apr 2020 at 20:21, Martin Liu wrote: > > On Thu, Apr 09, 2020 at 09:28:16AM +0530, Sumit Semwal wrote: > > Thanks for the patch, Daniel! > > > > > > On Tue, 7 Apr 2020 at 19:00, Daniel Vetter wrote: > > > > > > The uapi is the same on 32 and 64 bit, but the

Re: [PATCH 2/2] drm/qxl: qxl_release leak in qxl_hw_surface_alloc()

2020-04-28 Thread Gerd Hoffmann
On Mon, Apr 27, 2020 at 08:32:51AM +0300, Vasily Averin wrote: > Cc: sta...@vger.kernel.org > Fixes: 8002db6336dd ("qxl: convert qxl driver to proper use for reservations") > Signed-off-by: Vasily Averin Both patches pushed to drm-misc-fixes. thanks, Gerd

Re: [PATCH v4 3/3] drm/bridge: chrontel-ch7033: Add a new driver

2020-04-28 Thread Daniel Vetter
On Thu, Apr 23, 2020 at 11:18:45PM +0200, Lubomir Rintel wrote: > On Tue, Apr 21, 2020 at 02:54:12PM +0200, Daniel Vetter wrote: > > On Tue, Mar 24, 2020 at 04:19:31PM +0100, Lubomir Rintel wrote: > > > This is a driver for video encoder with VGA and DVI/HDMI outputs. > > > > > > There is no

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

2020-04-28 Thread Lee Jones
On Thu, 23 Apr 2020, Kiran Gunda wrote: > 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 > --- >

Re: [PATCH v3 1/2] DRM: ARC: add HDMI 2.0 TX encoder support

2020-04-28 Thread Daniel Vetter
On Tue, Apr 21, 2020 at 05:55:38PM +0200, Neil Armstrong wrote: > On 15/04/2020 19:33, Daniel Vetter wrote: > > On Wed, Apr 15, 2020 at 02:29:28AM +0300, Eugeniy Paltsev wrote: > >> The Synopsys ARC SoCs (like HSDK4xD) include on-chip DesignWare HDMI > >> encoders. Support them with a platform

Re: Linux GOP initialization is wrong

2020-04-28 Thread Hans de Goede
Hi David, On 4/28/20 1:58 AM, David Santamaría Rogado wrote: This is related to the issues at least on some devices for panel orientation quirks where added. Thank you for looking into this. My tests have been done over a Lenovo ideapad D330. This devices like the other ones that need

Re: [PATCH] drm/meson: add mode selection limits against specific SoC revisions

2020-04-28 Thread Neil Armstrong
Hi, On 22/04/2020 23:12, Martin Blumenstingl wrote: > Hi Neil, > > On Tue, Apr 21, 2020 at 3:44 PM Neil Armstrong > wrote: > [...] >> diff --git a/drivers/gpu/drm/meson/meson_dw_hdmi.c >> b/drivers/gpu/drm/meson/meson_dw_hdmi.c >> index e8c94915a4fc..dc3d5122475a 100644 >> ---

Re: [PATCH] drm/meson: viu: fix setting the OSD burst length in VIU_OSD1_FIFO_CTRL_STAT

2020-04-28 Thread Neil Armstrong
Hi, On 25/04/2020 22:39, Martin Blumenstingl wrote: > The burst length is configured in VIU_OSD1_FIFO_CTRL_STAT[31] and > VIU_OSD1_FIFO_CTRL_STAT[11:10]. The public S905D3 datasheet describes > this as: > - 0x0 = up to 24 per burst > - 0x1 = up to 32 per burst > - 0x2 = up to 48 per burst > - 0x3

[PATCH][next] drm/i915/gt: fix spelling mistake "evalution" -> "evaluation"

2020-04-28 Thread Colin King
From: Colin Ian King There is a spelling mistaking in a pr_notice message. Fix it. Signed-off-by: Colin Ian King --- drivers/gpu/drm/i915/gt/selftest_rps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gt/selftest_rps.c

[PATCH] dt-bindings: arm-smmu: Add a new compatible string and a clock

2020-04-28 Thread Sharat Masetty
This patch adds a new compatible string for sc7180 and also an additional clock listing needed to power the TBUs and the TCU. Signed-off-by: Sharat Masetty --- Documentation/devicetree/bindings/iommu/arm,smmu.yaml | 7 +++ 1 file changed, 7 insertions(+) diff --git

Re: [PATCH] drm: enable render nodes wherever buffer sharing is supported

2020-04-28 Thread Liviu Dudau
On Mon, Apr 27, 2020 at 07:22:02PM -0700, Peter Collingbourne wrote: > On Mon, Apr 27, 2020 at 1:47 PM Eric Anholt wrote: > > > > On Mon, Apr 27, 2020 at 1:05 PM Peter Collingbourne wrote: > > > > > > Render nodes are not just useful for devices supporting GPU hardware > > > acceleration. Even

<    1   2