Re: [PATCH] drm/panel: boe-tv101wum-n16: extend LCD support list

2020-03-31 Thread Nicolas Boichat
On Wed, Mar 25, 2020 at 4:17 PM David Lu wrote: > No very strong opinion, but for consistency, I'd have this as a title: drm/panel: support for boe,tv105wum-nw0 dsi video mode panel > Add entries for BOE TV105WUM-NW0 10.5" WUXGA TFT LCD panel. > > Signed-off-by: David Lu > Change-Id: I5b1cef259

Re: [PATCH v3 1/4] dt-bindings: display: mediatek: add property to control mipi tx drive current

2020-03-31 Thread Jitao Shi
On Mon, 2020-03-23 at 16:00 -0600, Rob Herring wrote: > On Wed, Mar 11, 2020 at 03:40:29PM +0800, Jitao Shi wrote: > > Add a property to control mipi tx drive current: > > "drive-strength-microamp" > > > > Signed-off-by: Jitao Shi > > --- > > .../devicetree/bindings/display/mediatek/mediatek,d

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

2020-03-31 Thread Adrian Ratiu
On Tue, 31 Mar 2020, Ezequiel Garcia wrote: On Tue, 2020-03-31 at 00:31 +0300, Adrian Ratiu wrote: On Mon, 30 Mar 2020, Ezequiel Garcia wrote: > Hello Fabio, Adrian: On Mon, 2020-03-30 at 08:49 -0300, > Fabio Estevam wrote: > > Hi Adrian, On Mon, Mar 30, 2020 at 8:34 AM Adrian Ratiu >

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

2020-03-31 Thread Daniel Vetter
Since I see no mention of this anywhere in your mail ... have you tried looking at drivers/gpu/vga/vga_switcheroo.c? This also supports switching of just outputs, not just the old optimus way of switching out the entire gpu and having to disable the other one. There's some rough corners (like the

Re: [PATCH 0/2] A couple of important fixes for i915 on 5.4

2020-03-31 Thread Sultan Alsawaf
On Mon, Mar 30, 2020 at 10:51:28AM +0200, Greg KH wrote: > On Sun, Mar 29, 2020 at 08:30:55PM -0700, Sultan Alsawaf wrote: > > From: Sultan Alsawaf > > > > Hi, > > > > This patchset contains fixes for two pesky i915 bugs that exist in 5.4. > > Any reason you didn't also cc: the developers invol

Re: [Outreachy kernel] [PATCH] staging: fbtft: Replace udelay with preferred usleep_range

2020-03-31 Thread John B. Wyatt IV
On Mon, 2020-03-30 at 19:40 +0200, Stefano Brivio wrote: > On Sun, 29 Mar 2020 12:37:18 +0200 (CEST) > Julia Lawall wrote: > > > On Sun, 29 Mar 2020, Soumyajit Deb wrote: > > > > > I had the same doubt the other day about the replacement of > > > udelay() with > > > usleep_range(). The correspon

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

2020-03-31 Thread Michael Ellerman
Christophe Leroy writes: > Le 27/03/2020 à 15:14, Andy Shevchenko a écrit : >> On Fri, Mar 27, 2020 at 02:22:55PM +0100, Arnd Bergmann wrote: >>> On Fri, Mar 27, 2020 at 2:15 PM Andy Shevchenko >>> wrote: On Fri, Mar 27, 2020 at 03:10:26PM +0200, Andy Shevchenko wrote: > On Fri, Mar 27,

[PATCH v2 2/2] powerpc: Remove Xilinx PPC405/PPC440 support

2020-03-31 Thread Michal Simek
The latest Xilinx design tools called ISE and EDK has been released in October 2013. New tool doesn't support any PPC405/PPC440 new designs. These platforms are no longer supported and tested. PowerPC 405/440 port is orphan from 2013 by commit cdeb89943bfc ("MAINTAINERS: Fix incorrect status tag")

[PATCH] drm/msm/dpu: ensure device suspend happens during PM sleep

2020-03-31 Thread Kalyan Thota
"The PM core always increments the runtime usage counter before calling the ->suspend() callback and decrements it after calling the ->resume() callback" DPU and DSI are managed as runtime devices. When suspend is triggered, PM core adds a refcount on all the devices and calls device suspend, sinc

[PATCH] drm/amd/display: Fix 64-bit division error on 32-bit platforms in mod_freesync_build_vrr_params

2020-03-31 Thread Nathan Chancellor
When building arm32 allyesconfig, ld.lld: error: undefined symbol: __aeabi_uldivmod >>> referenced by freesync.c >>> >>> gpu/drm/amd/display/modules/freesync/freesync.o:(mod_freesync_build_vrr_params) >>> in archive drivers/built-in.a >>> did you mean: __aeabi_uidivmod >>> defined

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

2020-03-31 Thread Ezequiel Garcia
On Tue, 2020-03-31 at 00:31 +0300, Adrian Ratiu wrote: > On Mon, 30 Mar 2020, Ezequiel Garcia > wrote: > > Hello Fabio, Adrian: > > > > On Mon, 2020-03-30 at 08:49 -0300, Fabio Estevam wrote: > > > Hi Adrian, On Mon, Mar 30, 2020 at 8:34 AM Adrian Ratiu > > > wrote: > > > > This adds suppo

Re: [PATCH v10 00/12] Convert PWM period and duty cycle to u64

2020-03-31 Thread Guru Das Srinagesh
On Sat, Mar 21, 2020 at 02:47:03PM +0300, Dan Carpenter wrote: > This is a giant CC list. Yes, this is because I received feedback [1] on an earlier patchset directing me to add the reviewers of patches to the cover letter as well so that they get some context for the patch. > There was one versi

Re: [PATCH v5 1/5] drm: bridge: dw_mipi_dsi: add initial regmap infrastructure

2020-03-31 Thread adrian61
Hello Adrian, I am testing hese changes on my STM32F769-DISCO and i found that: On Mon, Mar 30, 2020 at 2:35 PM Adrian Ratiu wrote: > > In order to support multiple versions of the Synopsis MIPI DSI host > controller, which have different register layouts but almost identical > HW protocols, we

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

2020-03-31 Thread Ezequiel Garcia
Hello Fabio, Adrian: On Mon, 2020-03-30 at 08:49 -0300, Fabio Estevam wrote: > Hi Adrian, > > On Mon, Mar 30, 2020 at 8:34 AM Adrian Ratiu > wrote: > > This adds support for the Synopsis DesignWare MIPI DSI v1.01 host > > controller which is embedded in i.MX 6 SoCs. > > > > Based on following

Re: [PATCH v10 00/12] Convert PWM period and duty cycle to u64

2020-03-31 Thread Guru Das Srinagesh
On Mon, Mar 30, 2020 at 09:26:36PM +0100, Daniel Thompson wrote: > On Mon, Mar 30, 2020 at 12:15:07PM -0700, Guru Das Srinagesh wrote: > > On Sat, Mar 21, 2020 at 02:47:03PM +0300, Dan Carpenter wrote: > > > This is a giant CC list. > > > > Yes, this is because I received feedback [1] on an earlie

Re: [PATCH 2/2] drm/i915/gt: Schedule request retirement when timeline idles

2020-03-31 Thread Sultan Alsawaf
CC'ing relevant folks. My apologies. Sultan ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH v5 1/5] drm: bridge: dw_mipi_dsi: add initial regmap infrastructure

2020-03-31 Thread adrian61
Forgot to mention mention DSI version 1.1, see ref manual for STM32F769 for more details: https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=2ahUKEwiRm4mhy8LoAhUP4BoKHaiLAJcQFjAAegQIBRAB&url=https%3A%2F%2Fwww.st.com%2Fresource%2Fen%2Freference_manual%2Fdm00224583-stm32f76xxx-and-st

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

2020-03-31 Thread kgunda
On 2020-03-25 21:07, Daniel Thompson wrote: On Mon, Mar 23, 2020 at 11:16:57PM +0530, Kiran Gunda wrote: Add WLED5 specific bindings. Signed-off-by: Kiran Gunda Signed-off-by: Subbaraman Narayanamurthy --- .../bindings/leds/backlight/qcom-wled.yaml | 39 ++ 1 fi

Re: [PATCH V4 2/4] backlight: qcom-wled: Add callback functions

2020-03-31 Thread kgunda
On 2020-03-25 21:00, Daniel Thompson wrote: On Mon, Mar 23, 2020 at 11:16:56PM +0530, Kiran Gunda wrote: Add wled_cabc_config, wled_sync_toggle, wled_ovp_fault_status and wled_ovp_delay callback functions to prepare the driver for adding WLED5 support. wled_cabc_config() ===> Used to configure

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

2020-03-31 Thread Michal Simek
Hi, recently we wanted to update xilinx intc driver and we found that function which we wanted to remove is still wired by ancient Xilinx PowerPC platforms. Here is the thread about it. https://lore.kernel.org/linux-next/48d3232d-0f1d-42ea-3109-f44bbabfa...@xilinx.com/ I have been talking about i

[PATCH] drm/xen: fix passing zero to 'PTR_ERR' warning

2020-03-31 Thread Ding Xiang
Fix a static code checker warning: drivers/gpu/drm/xen/xen_drm_front.c:404 xen_drm_drv_dumb_create() warn: passing zero to 'PTR_ERR' Signed-off-by: Ding Xiang --- drivers/gpu/drm/xen/xen_drm_front.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/xen/x

Re: [RFC v3 1/8] dt-bindings: display: convert ingenic, lcd.txt to ingenic, lcd.yaml

2020-03-31 Thread H. Nikolaus Schaller
Hi Paul, > Am 30.03.2020 um 17:42 schrieb Rob Herring : > > On Sun, 29 Mar 2020 19:35:47 +0200, "H. Nikolaus Schaller" wrote: >> and add compatible: jz4780-lcd, including an example how to >> configure both lcd controllers. >> >> Also fix the clock names and examples. >> >> Based on work by Pau

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

2020-03-31 Thread Christophe Leroy
Le 31/03/2020 à 07:30, Michael Ellerman a écrit : Christophe Leroy writes: Le 27/03/2020 à 15:14, Andy Shevchenko a écrit : On Fri, Mar 27, 2020 at 02:22:55PM +0100, Arnd Bergmann wrote: On Fri, Mar 27, 2020 at 2:15 PM Andy Shevchenko wrote: On Fri, Mar 27, 2020 at 03:10:26PM +0200, Andy

[PATCH 2/2] drm/i915/gt: Schedule request retirement when timeline idles

2020-03-31 Thread Sultan Alsawaf
From: Chris Wilson commit 311770173fac27845a3a83e2c16100a54d308f72 upstream. The major drawback of commit 7e34f4e4aad3 ("drm/i915/gen8+: Add RC6 CTX corruption WA") is that it disables RC6 while Skylake (and friends) is active, and we do not consider the GPU idle until all outstanding requests h

Re: [PATCH v5 3/5] drm: bridge: synopsis: add dsi v1.01 support

2020-03-31 Thread adrian61
Hello Adrian, Here i get a compile error: On Mon, Mar 30, 2020 at 2:36 PM Adrian Ratiu wrote: > > The Synopsis MIPI DSI v1.01 host controller is quite widely used > on platforms like i.mx6 and is not very different from the other > versions like the 1.31/1.30 used on rockchip/stm. The protocols

[PATCH 0/2] A couple of important fixes for i915 on 5.4

2020-03-31 Thread Sultan Alsawaf
From: Sultan Alsawaf Hi, This patchset contains fixes for two pesky i915 bugs that exist in 5.4. The first bug, fixed by "drm/i915/gt: Schedule request retirement when timeline idles" upstream, is very high power consumption by i915 hardware due to an old commit that broke the RC6 power state f

Re: [PATCH v3 0/5] Introduce drm scaling filter property

2020-03-31 Thread Pekka Paalanen
On Mon, 30 Mar 2020 19:30:27 + Simon Ser wrote: > Hi, > > On Monday, March 30, 2020 8:38 PM, Pankaj Bharadiya > wrote: > > > Userspace patch series link: https://github.com/lrusak/xbmc/pull/24 > > This pull request is against a fork, not the official Kodi repository. > Are there any pl

Re: [PATCH] drm: fix ifnullfree.cocci warnings

2020-03-31 Thread Daniel Vetter
On Fri, Mar 27, 2020 at 09:11:44AM +0100, Julia Lawall wrote: > NULL check before kfree is not needed. > > Generated by: scripts/coccinelle/free/ifnullfree.cocci > > Fixes: c6603c740e0e ("drm: add managed resources tied to drm_device") > Signed-off-by: kbuild test robot > Signed-off-by: Julia La

Re: [PATCH v1 6/6] drm/bridge: fix kernel-doc warning in panel.c

2020-03-31 Thread Daniel Vetter
On Sat, Mar 28, 2020 at 02:20:25PM +0100, Sam Ravnborg wrote: > Add missing documentation to fix following warning: > panel.c:303: warning: Function parameter or member 'bridge' not described in > 'drm_panel_bridge_connector' > > Signed-off-by: Sam Ravnborg > Cc: Laurent Pinchart > Cc: Boris Br

Re: [PATCH v1 4/6] drm: writeback: document callbacks

2020-03-31 Thread Daniel Vetter
On Sat, Mar 28, 2020 at 02:20:23PM +0100, 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 v1 3/6] drm/sched: fix kernel-doc in gpu_scheduler.h

2020-03-31 Thread Daniel Vetter
On Sat, Mar 28, 2020 at 02:20:22PM +0100, Sam Ravnborg wrote: > Fix following warning: > gpu_scheduler.h:103: warning: Function parameter or member 'priority' not > described in 'drm_sched_entity' > > Signed-off-by: Sam Ravnborg > Cc: Nirmoy Das > Cc: David Airlie > Cc: Daniel Vetter Inline

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

2020-03-31 Thread Daniel Vetter
On Mon, Mar 30, 2020 at 05:51:26PM -0400, Lyude Paul wrote: > I am glad that my explanation of vblanks made sense! Some comments below on > things I think we could improve here > > On Mon, 2020-03-30 at 20:57 +0200, Sam Ravnborg wrote: > > Lyude Paul wrote a very good intro to vblank here: > > >

[PATCH 0/5] Add support for GPU DDR BW scaling

2020-03-31 Thread Sharat Masetty
This series adds support for GPU DDR bandwidth scaling and is based on the bindings from Sarvana[1]. This work is based on Sibi's work for CPU side [2] which also lists all the needed dependencies to get this series working. My workspace is based on a chrome tag [3]. Although the bindings add suppo

[PATCH 1/5] arm64: dts: qcom: sc7180: Add interconnect bindings for GPU

2020-03-31 Thread Sharat Masetty
This patch adds the interconnect bindings to the GPU node. This enables the GPU->DDR path bandwidth voting. Signed-off-by: Sharat Masetty --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qco

[PATCH 2/5] arm64: dts: qcom: sc7180: Add GPU DDR BW opp table

2020-03-31 Thread Sharat Masetty
This patch adds a new opp table listing the GPU DDR bandwidth opps. Also adds a required_opp binding to the GPUs main OPP table which holds a phandle to a bandwidth opp in the new table. This enables linking the GPU power level opp to the DDR bandwidth opp and helps with scaling DDR along with GPU

[PATCH 3/5] drm: msm: scale DDR BW along with GPU frequency

2020-03-31 Thread Sharat Masetty
This patch adds support to parse the OPP tables attached the GPU device, the main opp table and the DDR bandwidth opp table. Additionally, vote for the GPU->DDR bandwidth when setting the GPU frequency by querying the linked DDR BW opp to the GPU opp. Signed-off-by: Sharat Masetty --- drivers/gp

[PATCH 5/5] dt-bindings: drm/msm/gpu: Document OPP phandle list for the GPU

2020-03-31 Thread Sharat Masetty
Update the documentation for listing the multiple optional GPU and the DDR OPP tables to help enable DDR scaling. Signed-off-by: Sharat Masetty --- .../devicetree/bindings/display/msm/gpu.txt| 63 +- 1 file changed, 61 insertions(+), 2 deletions(-) diff --git a/Docum

[PATCH 4/5] drm: msm: a6xx: Fix off by one error when setting GPU freq

2020-03-31 Thread Sharat Masetty
This patch fixes an error in the for loop, thereby allowing search on the full list of possible GPU power levels. Signed-off-by: Sharat Masetty --- drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gmu.c b/d

Re: [PATCH v2] fbcon: fix null-ptr-deref in fbcon_switch

2020-03-31 Thread Daniel Vetter
On Mon, Mar 30, 2020 at 09:16:19PM +0200, Sam Ravnborg wrote: > Hi Qiujun > > On Sun, Mar 29, 2020 at 04:56:47PM +0800, Qiujun Huang wrote: > > Set logo_shown to FBCON_LOGO_CANSHOW when the vc was deallocated. > > > > syzkaller report: https://lkml.org/lkml/2020/3/27/403 > > general protection fa

Re: [PATCH v2 3/4] drm/mediatek: Move mtk_hdmi_phy driver into drivers/phy/mediatek folder

2020-03-31 Thread Neil Armstrong
Hi, On 30/03/2020 16:12, Chun-Kuang Hu wrote: > From: CK Hu > > mtk_hdmi_phy is currently placed inside mediatek drm driver, but it's > more suitable to place a phy driver into phy driver folder, so move > mtk_hdmi_phy driver into phy driver folder. Pretty sure the subject should start with "ph

[PATCH] drm/vram-helpers: Set plane fence for display update

2020-03-31 Thread Thomas Zimmermann
Calling the VRAM helper's prepare_fb() helper now sets the plane's fence object. The helper still has to synchronize with other users of the GEM object. Leave a related TODO comment in the code. This will be useful for PRIME support. VRAM helpers don't support buffer sharing ATM, so there are no d

[PATCH] drm/vram-helpers: Merge code into a single file

2020-03-31 Thread Thomas Zimmermann
Most of the documentation was in an otherwise empty file, which was probably just left from a previous clean-up effort. So move code and documentation into a single file. Signed-off-by: Thomas Zimmermann --- Documentation/gpu/drm-mm.rst | 9 --- drivers/gpu/drm/Makefile

[PATCH v4 1/4] dt-bindings: display: mediatek: add property to control mipi tx drive current

2020-03-31 Thread Jitao Shi
Add a property to control mipi tx drive current: "drive-strength-microamp" Signed-off-by: Jitao Shi --- .../devicetree/bindings/display/mediatek/mediatek,dsi.txt| 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,dsi.txt b/Do

[PATCH v4 3/4] drm/mediatek: add the mipitx driving control

2020-03-31 Thread Jitao Shi
Add a property in device tree to control the driving by different board. Reviewed-by: Matthias Brugger Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_mipi_tx.c| 14 ++ drivers/gpu/drm/mediatek/mtk_mipi_tx.h| 1 + drivers/gpu/drm/mediatek/mtk_mt8183_mipi_t

[PATCH v4 2/4] dt-bindings: display: mediatek: get mipitx calibration data from nvmem

2020-03-31 Thread Jitao Shi
Add properties to get get mipitx calibration data. Reviewed-by: Rob Herring Signed-off-by: Jitao Shi --- .../devicetree/bindings/display/mediatek/mediatek,dsi.txt| 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,dsi.txt b/

[PATCH v4 4/4] drm/mediatek: config mipitx impedance with calibration data

2020-03-31 Thread Jitao Shi
Read calibration data from nvmem, and config mipitx impedance with calibration data to make sure their impedance are 100ohm. Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_mt8183_mipi_tx.c | 57 +++ 1 file changed, 57 insertions(+) diff --git a/drivers/gpu/drm/mediate

[PATCH v4 0/4] Config mipi tx current and impedance

2020-03-31 Thread Jitao Shi
Changes since v3: - refine drive-strength-microamp as from 3000 to 6000. Changes since v2: - fix the title of commit message. - rename mipitx-current-drive to drive-strength-microamp Changes since v1: - fix coding style. - change mtk_mipi_tx_config_calibration_data() to void Jitao Shi (4):

Re: [PATCH 1/6] dma-buf: add peer2peer flag

2020-03-31 Thread Daniel Vetter
On Mon, Mar 30, 2020 at 03:55:31PM +0200, Christian König wrote: > Add a peer2peer flag noting that the importer can deal with device > resources which are not backed by pages. > > Signed-off-by: Christian König On the series: Acked-by: Daniel Vetter > --- > drivers/dma-buf/dma-buf.c | 2 ++

Re: [PATCH] drm/vram-helpers: Set plane fence for display update

2020-03-31 Thread Gerd Hoffmann
Hi, > + * TODO: Synchronize with other users of the buffer. Buffers > + * cannot be pinned to VRAM while they are in use by other > + * drivers for DMA. We should probably wait for each GEM > + * object's fence before attempting to pin the buffer. The other

Re: [PATCH] drm/vram-helpers: Merge code into a single file

2020-03-31 Thread Gerd Hoffmann
On Tue, Mar 31, 2020 at 10:12:38AM +0200, Thomas Zimmermann wrote: > Most of the documentation was in an otherwise empty file, which was > probably just left from a previous clean-up effort. So move code and > documentation into a single file. > > Signed-off-by: Thomas Zimmermann Acked-by: Gerd

Re: [PATCH] drm/vram-helpers: Set plane fence for display update

2020-03-31 Thread Daniel Vetter
On Tue, Mar 31, 2020 at 10:11:30AM +0200, Thomas Zimmermann wrote: > Calling the VRAM helper's prepare_fb() helper now sets the plane's > fence object. The helper still has to synchronize with other users > of the GEM object. Leave a related TODO comment in the code. > > This will be useful for PR

Re: [PATCH] drm/mm: revert "Break long searches in fragmented address spaces"

2020-03-31 Thread Christian König
A not so gentle ping, since this pretty much broke all TTM based drivers. Could we revert this for now? Thanks, Christian. Am 30.03.20 um 14:34 schrieb Christian König: This reverts commit 7be1b9b8e9d1e9ef0342d2e001f44eec4030aa4d. The drm_mm is supposed to work in atomic context, so calling s

Re: [PATCH] drm: add docs about the IN_FORMATS plane property

2020-03-31 Thread Daniel Vetter
On Sun, Mar 29, 2020 at 02:45:08PM +, Simon Ser wrote: > This is a standard property attached to planes in drm_universal_plane_init > when drm_mode_config.allow_fb_modifiers is true. > > Signed-off-by: Simon Ser > Cc: Daniel Vetter > Cc: Daniel Stone > --- > drivers/gpu/drm/drm_blend.c | 6

Re: [PATCH] drm/mm: revert "Break long searches in fragmented address spaces"

2020-03-31 Thread Daniel Vetter
On Tue, Mar 31, 2020 at 10:59:45AM +0200, Christian König wrote: > A not so gentle ping, since this pretty much broke all TTM based drivers. > > Could we revert this for now? Always ack for revert. Acked-by: Daniel Vetter Needs to go to drm-misc-next-fixes, and then maybe also ask for a backme

Re: [PATCH] drm/mm: revert "Break long searches in fragmented address spaces"

2020-03-31 Thread Chris Wilson
Quoting Christian König (2020-03-31 09:59:45) > A not so gentle ping, since this pretty much broke all TTM based drivers. > > Could we revert this for now? Ping??? https://patchwork.freedesktop.org/patch/358535/?series=74984&rev=1 -Chris ___ dri-devel m

Re: [PATCH 20/22] drm/vkms: Use simple encoder

2020-03-31 Thread Thomas Zimmermann
Hi Am 24.03.20 um 12:59 schrieb Rodrigo Siqueira: > Hi Thomas, > > First of all, thanks for your patch! > > I applied all your series, compiled it, and when I tried > `make INSTALL_MOD_PATH=/PATH/ modules_instal` I got the following > message: > > depmod: ERROR: Cycle detected: drm_kms_helper

Re: [PATCH] drm/mm: revert "Break long searches in fragmented address spaces"

2020-03-31 Thread Chris Wilson
Quoting Daniel Vetter (2020-03-31 10:16:18) > On Tue, Mar 31, 2020 at 10:59:45AM +0200, Christian König wrote: > > A not so gentle ping, since this pretty much broke all TTM based drivers. > > > > Could we revert this for now? > > Always ack for revert. > > Acked-by: Daniel Vetter So you didn'

Re: [PATCH] drm/vram-helpers: Set plane fence for display update

2020-03-31 Thread Thomas Zimmermann
Hi Am 31.03.20 um 10:50 schrieb Daniel Vetter: > On Tue, Mar 31, 2020 at 10:11:30AM +0200, Thomas Zimmermann wrote: >> Calling the VRAM helper's prepare_fb() helper now sets the plane's >> fence object. The helper still has to synchronize with other users >> of the GEM object. Leave a related TODO

[PATCH v2] drm/vram-helpers: Set plane fence for display update

2020-03-31 Thread Thomas Zimmermann
Calling the VRAM helper's prepare_fb() helper now sets the plane's fence object. This will be useful for PRIME support. VRAM helpers don't support buffer sharing ATM, so for now there are no drivers requiring this change. v2: * removed a TODO comment about buffer synchronization Signed-of

Re: [PATCH] drm/mm: revert "Break long searches in fragmented address spaces"

2020-03-31 Thread Daniel Vetter
On Tue, Mar 31, 2020 at 11:20 AM Chris Wilson wrote: > Quoting Daniel Vetter (2020-03-31 10:16:18) > > On Tue, Mar 31, 2020 at 10:59:45AM +0200, Christian König wrote: > > > A not so gentle ping, since this pretty much broke all TTM based drivers. > > > > > > Could we revert this for now? > > > >

[PATCH 0/4] drm/amd/display: more code cleanup in the dc_link file

2020-03-31 Thread Melissa Wen
These patches address many code style issues on dc_link for readability and cleaning up warnings. Change suggested by checkpatch.pl. Some issues remain and need some minor code refactoring for proper handling. Melissa Wen (4): drm/amd/display: cleanup codestyle type BLOCK_COMMENT_STYLE on dc_li

[PATCH 1/4] drm/amd/display: cleanup codestyle type BLOCK_COMMENT_STYLE on dc_link

2020-03-31 Thread Melissa Wen
Solve comments alignment problems on dc_link file Signed-off-by: Melissa Wen --- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 25 +++ 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc

[PATCH 2/4] drm/amd/display: codestyle cleanup on dc_link file until detect_dp func

2020-03-31 Thread Melissa Wen
Removes codestyle issues on the file dc_link until detect_dp func as suggested by checkpatch.pl. Types covered: CHECK: Please don't use multiple blank lines CHECK: Comparison to NULL could be written ERROR: space required before the open parenthesis '(' CHECK: Alignment should match open parenthe

[PATCH 4/4] drm/amd/display: code cleanup of dc_link file on func dc_link_construct

2020-03-31 Thread Melissa Wen
Removes codestyle issues in dc_link file, on dc_link_construct and translate_encoder_to_transmitter as suggested by checkpatch.pl. Types covered: CHECK: Lines should not end with a '(' WARNING: Missing a blank line after declarations CHECK: Alignment should match open parenthesis CHECK: Compariso

[PATCH 3/4] drm/amd/display: code cleanup on dc_link from is_same_edid to get_ddc_line

2020-03-31 Thread Melissa Wen
Removes codestyle issues on the file dc_link between is_same_edid and get_ddc_line as suggested by checkpatch.pl. Types covered: CHECK: Blank lines aren't necessary after an open brace '{' CHECK: Blank lines aren't necessary before a close brace '}' WARNING: braces {} are not necessary for single

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

2020-03-31 Thread Heiko Stuebner
From: Heiko Stuebner The LTK050H3146W is a 5.0" 720x1280 DSI display. Signed-off-by: Heiko Stuebner --- .../display/panel/leadtek,ltk050h3146w.yaml | 49 +++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/leadtek,ltk050h3

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

2020-03-31 Thread Heiko Stuebner
From: Heiko Stuebner The LTK500HD1829W is 5.0" 720x1280 DSI display. Signed-off-by: Heiko Stuebner --- drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/panel/Makefile| 1 + .../drm/panel/panel-leadtek-ltk050h3146w.c| 589 ++ 3 files c

Re: [PATCH v2 2/2] powerpc: Remove Xilinx PPC405/PPC440 support

2020-03-31 Thread Bartlomiej Zolnierkiewicz
On 3/30/20 3:32 PM, Michal Simek wrote: > The latest Xilinx design tools called ISE and EDK has been released in > October 2013. New tool doesn't support any PPC405/PPC440 new designs. > These platforms are no longer supported and tested. > > PowerPC 405/440 port is orphan from 2013 by > commit

Re: [PATCH 0/3] video: Use scnprintf() for avoiding potential buffer overflow

2020-03-31 Thread Bartlomiej Zolnierkiewicz
On 3/27/20 9:25 AM, Takashi Iwai wrote: > On Fri, 20 Mar 2020 14:42:51 +0100, > Bartlomiej Zolnierkiewicz wrote: >> >> >> On 3/19/20 4:49 PM, Takashi Iwai wrote: >>> On Wed, 11 Mar 2020 10:32:27 +0100, >>> Takashi Iwai wrote: Hi, here is a series of trivial patches just to con

Re: [PATCH 0/3] video: Use scnprintf() for avoiding potential buffer overflow

2020-03-31 Thread Daniel Vetter
On Tue, Mar 31, 2020 at 01:59:32PM +0200, Bartlomiej Zolnierkiewicz wrote: > > On 3/27/20 9:25 AM, Takashi Iwai wrote: > > On Fri, 20 Mar 2020 14:42:51 +0100, > > Bartlomiej Zolnierkiewicz wrote: > >> > >> > >> On 3/19/20 4:49 PM, Takashi Iwai wrote: > >>> On Wed, 11 Mar 2020 10:32:27 +0100, > >>>

Re: INFO: trying to register non-static key in try_to_wake_up

2020-03-31 Thread Bartlomiej Zolnierkiewicz
On 3/31/20 12:18 PM, Dmitry Vyukov wrote: > On Tue, Mar 31, 2020 at 11:57 AM Peter Zijlstra wrote: >> >> On Mon, Mar 30, 2020 at 10:01:12PM -0700, syzbot wrote: >>> Hello, >>> >>> syzbot found the following crash on: >>> >>> HEAD commit:9420e8ad Merge tag 'for-linus' of git://git.kernel.org/

Re: framebuffer bug (Re: general protection fault in do_syscall_64)

2020-03-31 Thread Bartlomiej Zolnierkiewicz
[ please remember to include dri-devel ML & me on fbdev issues, thank you ] On 3/29/20 1:37 AM, Andy Lutomirski wrote: > On Sat, Mar 28, 2020 at 12:34 PM syzbot > wrote: >> >> Hello, >> >> syzbot found the following crash on: >> >> HEAD commit:69c5eea3 Merge branch 'parisc-5.6-2' of git://g

Re: [PATCH] drm/mm: revert "Break long searches in fragmented address spaces"

2020-03-31 Thread Christian König
Am 31.03.20 um 12:38 schrieb Daniel Vetter: On Tue, Mar 31, 2020 at 11:20 AM Chris Wilson wrote: Quoting Daniel Vetter (2020-03-31 10:16:18) On Tue, Mar 31, 2020 at 10:59:45AM +0200, Christian König wrote: A not so gentle ping, since this pretty much broke all TTM based drivers. Could we rev

Re: INFO: trying to register non-static key in try_to_wake_up

2020-03-31 Thread Daniel Vetter
On Tue, Mar 31, 2020 at 2:18 PM Bartlomiej Zolnierkiewicz wrote: > > > On 3/31/20 12:18 PM, Dmitry Vyukov wrote: > > On Tue, Mar 31, 2020 at 11:57 AM Peter Zijlstra > > wrote: > >> > >> On Mon, Mar 30, 2020 at 10:01:12PM -0700, syzbot wrote: > >>> Hello, > >>> > >>> syzbot found the following cr

Re: INFO: trying to register non-static key in try_to_wake_up

2020-03-31 Thread Daniel Vetter
On Tue, Mar 31, 2020 at 2:50 PM Daniel Vetter wrote: > > On Tue, Mar 31, 2020 at 2:18 PM Bartlomiej Zolnierkiewicz > wrote: > > > > > > On 3/31/20 12:18 PM, Dmitry Vyukov wrote: > > > On Tue, Mar 31, 2020 at 11:57 AM Peter Zijlstra > > > wrote: > > >> > > >> On Mon, Mar 30, 2020 at 10:01:12PM -

Re: [PATCH v2 3/4] drm/mediatek: Move mtk_hdmi_phy driver into drivers/phy/mediatek folder

2020-03-31 Thread Chun-Kuang Hu
Hi, Neil: Neil Armstrong 於 2020年3月31日 週二 下午4:05寫道: > > Hi, > > On 30/03/2020 16:12, Chun-Kuang Hu wrote: > > From: CK Hu > > > > mtk_hdmi_phy is currently placed inside mediatek drm driver, but it's > > more suitable to place a phy driver into phy driver folder, so move > > mtk_hdmi_phy driver i

Re: [PATCH] drm/mm: revert "Break long searches in fragmented address spaces"

2020-03-31 Thread Chris Wilson
Quoting Daniel Vetter (2020-03-31 11:38:50) > On Tue, Mar 31, 2020 at 11:20 AM Chris Wilson > wrote: > > Quoting Daniel Vetter (2020-03-31 10:16:18) > > > On Tue, Mar 31, 2020 at 10:59:45AM +0200, Christian König wrote: > > > > A not so gentle ping, since this pretty much broke all TTM based > >

[PATCH] drm/mm: Break long searches in fragmented address spaces

2020-03-31 Thread Chris Wilson
We try hard to select a suitable hole in the drm_mm first time. But if that is unsuccessful, we then have to look at neighbouring nodes, and this requires traversing the rbtree. Walking the rbtree can be slow (much slower than a linear list for deep trees), and if the drm_mm has been purposefully f

Re: [PATCH v10 00/12] Convert PWM period and duty cycle to u64

2020-03-31 Thread Daniel Thompson
On Mon, Mar 30, 2020 at 02:00:12PM -0700, Guru Das Srinagesh wrote: > On Mon, Mar 30, 2020 at 09:26:36PM +0100, Daniel Thompson wrote: > > On Mon, Mar 30, 2020 at 12:15:07PM -0700, Guru Das Srinagesh wrote: > > > On Sat, Mar 21, 2020 at 02:47:03PM +0300, Dan Carpenter wrote: > > > > This is a giant

Re: [v4,1/3] drm/prime: use dma length macro when mapping sg

2020-03-31 Thread Alex Deucher
On Tue, Mar 31, 2020 at 1:25 AM Marek Szyprowski wrote: > > Hi Alex, > > On 2020-03-30 15:23, Alex Deucher wrote: > > On Mon, Mar 30, 2020 at 4:18 AM Marek Szyprowski > > wrote: > >> Hi > >> > >> On 2020-03-27 10:10, Marek Szyprowski wrote: > >>> Hi Christian, > >>> > >>> On 2020-03-27 09:11, Chr

Re: [v4,1/3] drm/prime: use dma length macro when mapping sg

2020-03-31 Thread Marek Szyprowski
Hi Alex, On 2020-03-31 16:10, Alex Deucher wrote: > On Tue, Mar 31, 2020 at 1:25 AM Marek Szyprowski > wrote: >> Hi Alex, >> >> On 2020-03-30 15:23, Alex Deucher wrote: >>> On Mon, Mar 30, 2020 at 4:18 AM Marek Szyprowski >>> wrote: Hi On 2020-03-27 10:10, Marek Szyprowski wrote:

Re: [PATCH] drm/amd/display: Fix 64-bit division error on 32-bit platforms in mod_freesync_build_vrr_params

2020-03-31 Thread Alex Deucher
On Tue, Mar 31, 2020 at 3:38 AM Nathan Chancellor wrote: > > When building arm32 allyesconfig, > > ld.lld: error: undefined symbol: __aeabi_uldivmod > >>> referenced by freesync.c > >>> > >>> gpu/drm/amd/display/modules/freesync/freesync.o:(mod_freesync_build_vrr_params) > >>> in a

Re: [PATCH 4/4] dt-bindings: Add missing 'additionalProperties: false'

2020-03-31 Thread Rob Herring
On Mon, Mar 30, 2020 at 2:38 AM Masahiro Yamada wrote: > > Hi Rob, > > On Mon, Mar 30, 2020 at 4:09 PM Masahiro Yamada wrote: > > > > On Thu, Mar 26, 2020 at 7:06 AM Rob Herring wrote: > > > > > > Setting 'additionalProperties: false' is frequently omitted, but is > > > important in order to che

Re: [PATCH 1/4] dt-bindings: iio/accel: Drop duplicate adi, adxl345/6 from trivial-devices.yaml

2020-03-31 Thread Rob Herring
On Fri, Mar 27, 2020 at 2:22 PM Sam Ravnborg wrote: > > Hi Rob. > > On Wed, Mar 25, 2020 at 04:05:38PM -0600, Rob Herring wrote: > > The 'adi,adxl345' definition is a duplicate as there's a full binding in: > > Documentation/devicetree/bindings/iio/accel/adi,adxl345.yaml > > > > The trivial-device

Re: [Xen-devel] [PATCH] drm/xen: fix passing zero to 'PTR_ERR' warning

2020-03-31 Thread Oleksandr Andrushchenko
On 3/30/20 12:59, Ding Xiang wrote: Fix a static code checker warning: drivers/gpu/drm/xen/xen_drm_front.c:404 xen_drm_drv_dumb_create() warn: passing zero to 'PTR_ERR' Signed-off-by: Ding Xiang Reviewed-by: Oleksandr Andrushchenko --- drivers/gpu/drm/xen/xen_drm_front.c | 2 +-

Re: [PATCH 0/4] drm/amd/display: more code cleanup in the dc_link file

2020-03-31 Thread Alex Deucher
On Tue, Mar 31, 2020 at 6:55 AM Melissa Wen wrote: > > These patches address many code style issues on dc_link for readability > and cleaning up warnings. Change suggested by checkpatch.pl. > Some issues remain and need some minor code refactoring for proper handling. > > Melissa Wen (4): > drm/

Re: [Xen-devel] [PATCH] drm/xen: fix passing zero to 'PTR_ERR' warning

2020-03-31 Thread Daniel Vetter
On Tue, Mar 31, 2020 at 05:50:10PM +0300, Oleksandr Andrushchenko wrote: > On 3/30/20 12:59, Ding Xiang wrote: > > Fix a static code checker warning: > > drivers/gpu/drm/xen/xen_drm_front.c:404 xen_drm_drv_dumb_create() > > warn: passing zero to 'PTR_ERR' > > > > Signed-off-by: Ding Xian

[PATCH 2/2] drm/core: Calculate bpp in afbc helper

2020-03-31 Thread Andrzej Pietrasiewicz
Some drivers (komeda, malidp) don't set anything in cpp. If that is the case the right value can be inferred from the format. Then the "bpp" member can be eliminated from struct drm_afbc_framebuffer. Signed-off-by: Andrzej Pietrasiewicz --- Documentation/gpu/todo.rst | 15 -

[PATCH 0/2] AFBC fixes

2020-03-31 Thread Andrzej Pietrasiewicz
This short series addresses the way bpp value is made available for drm_gem_afbc_min_size(). It can be inferred from the format if a driver hasn't set anything in cpp[0] (patch 2/2). While at it, use proper debugging macro (patch 1/2). Andrzej Pietrasiewicz (2): drm/core: Use proper debugging m

[PATCH 1/2] drm/core: Use proper debugging macro

2020-03-31 Thread Andrzej Pietrasiewicz
Use drm_dbg_kms() instead of DRM_DEBUG_KMS. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/drm_gem_framebuffer_helper.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_gem_framebuffer_helper.c b/drivers/gpu/drm/drm_gem_framebuffer_helper.c

[PATCH v3 2/4] drm/mediatek: Separate mtk_hdmi_phy to an independent module

2020-03-31 Thread Chun-Kuang Hu
From: CK Hu mtk_hdmi_phy is a part of mtk_hdmi module, but phy driver should be an independent module rather than be part of drm module, so separate the phy driver to an independent module. Signed-off-by: CK Hu Signed-off-by: Chun-Kuang Hu --- drivers/gpu/drm/mediatek/Kconfig| 9

[PATCH v3 4/4] MAINTAINERS: add files for Mediatek DRM drivers

2020-03-31 Thread Chun-Kuang Hu
Mediatek HDMI phy driver is moved from drivers/gpu/drm/mediatek to drivers/phy/mediatek, so add the new folder to the Mediatek DRM drivers' information. Signed-off-by: Chun-Kuang Hu --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 38fe2f3f7b6f..

[PATCH v3 0/4] Move Mediatek HDMI PHY driver from DRM folder to PHY folder

2020-03-31 Thread Chun-Kuang Hu
mtk_hdmi_phy is currently placed inside mediatek drm driver, but it's more suitable to place a phy driver into phy driver folder, so move mtk_hdmi_phy driver into phy driver folder. Changes in v3: - Modify [PATCH v2 3/4] prefix. Changes in v2: - include module.h in mtk_hdmi.c CK Hu (3): drm/me

[PATCH v3 1/4] drm/mediatek: Move tz_disabled from mtk_hdmi_phy to mtk_hdmi driver

2020-03-31 Thread Chun-Kuang Hu
From: CK Hu tz_disabled is used to control mtk_hdmi output signal, but this variable is stored in mtk_hdmi_phy and mtk_hdmi_phy does not use it. So move tz_disabled to mtk_hdmi where it's used. Signed-off-by: CK Hu Signed-off-by: Chun-Kuang Hu --- drivers/gpu/drm/mediatek/mtk_hdmi.c

[PATCH v3 3/4] phy: mediatek: Move mtk_hdmi_phy driver into drivers/phy/mediatek folder

2020-03-31 Thread Chun-Kuang Hu
From: CK Hu mtk_hdmi_phy is currently placed inside mediatek drm driver, but it's more suitable to place a phy driver into phy driver folder, so move mtk_hdmi_phy driver into phy driver folder. Signed-off-by: CK Hu Signed-off-by: Chun-Kuang Hu --- drivers/gpu/drm/mediatek/Kconfig

Re: [PATCH] drm/msm/dpu: ensure device suspend happens during PM sleep

2020-03-31 Thread Doug Anderson
Hi, On Tue, Mar 31, 2020 at 6:58 AM Kalyan Thota wrote: > > "The PM core always increments the runtime usage counter > before calling the ->suspend() callback and decrements it > after calling the ->resume() callback" > > DPU and DSI are managed as runtime devices. When > suspend is triggered, PM

Re: [PATCH v10 0/2] Add support for rm69299 Visionox panel driver and add devicetree bindings for visionox panel

2020-03-31 Thread Matthias Kaehlcke
On Mon, Mar 30, 2020 at 09:25:11PM +0200, Sam Ravnborg wrote: > Hi Matthias. > > On Sun, Mar 29, 2020 at 10:44:17AM -0700, Matthias Kaehlcke wrote: > > Hi Sam, > > > > On Sat, Mar 28, 2020 at 09:40:47PM +0100, Sam Ravnborg wrote: > > > Hi Harigovindan > > > > > > On Fri, Mar 27, 2020 at 01:06:34

Re: [PATCH 4/5] drm: msm: a6xx: Fix off by one error when setting GPU freq

2020-03-31 Thread Jordan Crouse
On Tue, Mar 31, 2020 at 01:25:52PM +0530, Sharat Masetty wrote: > This patch fixes an error in the for loop, thereby allowing search on > the full list of possible GPU power levels. > > Signed-off-by: Sharat Masetty Oh fun. This qualifies for drm-fixes. Can you pull this out of the stack and CC

Re: [PATCH] drm: panel-orientation-quirks: 320 FHD and D330 HD

2020-03-31 Thread Jani Nikula
On Fri, 27 Mar 2020, David Santamaría Rogado wrote: > This patch is still valid as no changes to panel orientation quirks > have been done. Someone can review this to merge? Cc: Hans. > > El mar., 30 jul. 2019 a las 21:49, David Santamaría Rogado > () escribió: >> >> This adds the HD version of

Re: [PATCH] drm: panel-orientation-quirks: 320 FHD and D330 HD

2020-03-31 Thread Hans de Goede
Hi, On 3/31/20 6:44 PM, Jani Nikula wrote: On Fri, 27 Mar 2020, David Santamaría Rogado wrote: This patch is still valid as no changes to panel orientation quirks have been done. Someone can review this to merge? Cc: Hans. Looks good to me: Reviewed-by: Hans de Goede Regards, Hans

  1   2   >