Re: [PATCH v6 3/3] drm: bridge: cdns-mhdp: add j721e wrapper

2020-03-12 Thread Tomi Valkeinen
Hi Laurent, On 11/03/2020 22:52, Laurent Pinchart wrote: +void cdns_mhdp_j721e_enable(struct cdns_mhdp_device *mhdp) +{ + /* +* Eneble VIF_0 and select DPI2 as its input. DSS0 DPI0 is connected +* to eDP DPI2. This is the only supported SST configuration on +* J721

Re: [PATCH v6 2/3] drm: bridge: Add support for Cadence MHDP DPI/DP bridge

2020-03-12 Thread Tomi Valkeinen
Hi Laurent, On 12/03/2020 00:20, Laurent Pinchart wrote: + ret = load_firmware(mhdp); + if (ret) + goto phy_exit; + + drm_bridge_add(&mhdp->bridge); What if someone starts using the bridge before the firmware is operational ? It seems that you should delay bridge

Re: [Nouveau] [PATCH v3 1/4] nouveau/hmm: fix vma range check for migration

2020-03-12 Thread Ben Skeggs
I've taken all 4 patches in my tree. Thanks Ralph, Ben. On Wed, 4 Mar 2020 at 10:14, Ralph Campbell wrote: > > find_vma_intersection(mm, start, end) only guarantees that end is greater > than or equal to vma->vm_start but doesn't guarantee that start is > greater than or equal to vma->vm_start.

Re: [RESEND PATCH v2 8/9] media: fsl-viu: Constify ioreadX() iomem argument (as in generic implementation)

2020-03-12 Thread Hans Verkuil
On 2/19/20 6:50 PM, Krzysztof Kozlowski wrote: > The ioreadX() helpers have inconsistent interface. On some architectures > void *__iomem address argument is a pointer to const, on some not. > > Implementations of ioreadX() do not modify the memory under the address > so they can be converted to

[PATCH hmm 0/8] Various error case bug fixes for hmm_range_fault()

2020-03-12 Thread Jason Gunthorpe
From: Jason Gunthorpe The hmm_range_fault() flow is fairly complicated. The scheme allows the caller to specify if it needs a usable result for each page, or if it only needs the current page table status filled in. This mixture of behavior is useful for a caller that wants to build a 'prefetch a

[PATCH v11 3/5] clk / soc: mediatek: Move mt8173 MMSYS to platform driver

2020-03-12 Thread Enric Balletbo i Serra
From: Matthias Brugger There is no strong reason for this to use CLK_OF_DECLARE instead of being a platform driver. Plus, MMSYS provides clocks but also a shared register space for the mediatek-drm and the mediatek-mdp driver. So move the MMSYS clocks to a new platform driver and also create a ne

RE: [PATCH v3 2/2] arm64: dts: renesas: Add HiHope RZ/G2M board with idk-1110wr display

2020-03-12 Thread Prabhakar Mahadev Lad
Hi Geert, Thank you for the review. > -Original Message- > From: Geert Uytterhoeven > Sent: 11 March 2020 10:08 > To: Prabhakar Mahadev Lad > Cc: Thierry Reding ; Sam Ravnborg > ; David Airlie ; Daniel Vetter > ; Rob Herring ; Mark Rutland > ; Magnus Damm ; > DRI Development ; open list

[PATCH 1/5] dt-bindings: vendor-prefixes: Add Xingbangda

2020-03-12 Thread Icenowy Zheng
Shenzhen Xingbangda Display Technology Co., Ltd is a company which produces LCD modules. It supplies the LCD panels of the PinePhone series (the developers' kit and the final phone). Add the vendor prefix of it. Signed-off-by: Icenowy Zheng --- Documentation/devicetree/bindings/vendor-prefixes.

Re: [PATCH V4 2/3] arch: mips: brcm: Add 7425 flash-edu support

2020-03-12 Thread Miquel Raynal
On Wed, 2020-01-22 at 21:33:12 UTC, Kamal Dasu wrote: > Nand controller v5.0 and v6.0 have nand edu blocks that enable > dma nand flash transfers. This allows for faster read and write > access. > > Signed-off-by: Kamal Dasu > Acked-by: Paul Burton > Reviewed-by: Florian Fainelli Applied to ht

[PATCH 2/2] display/drm/bridge: tc358775 DSI/LVDS driver

2020-03-12 Thread Vinay Simha BN
dsi2lvds tc358775 bridge driver added Tested in apq8016, ifc6309 board and panel auo,b101xtn01 Signed-off-by: Vinay Simha BN --- v1: Initial version v2: * Andrzej Hajda review comments incorporated SPDX identifier development debug removed alphabetic order headers u32 instead of unit32_

[PATCH v4 2/2] arm64: dts: renesas: Add HiHope RZ/G2M board with idk-1110wr display

2020-03-12 Thread Lad Prabhakar
From: Fabrizio Castro The HiHope RZ/G2M is advertised as compatible with panel idk-1110wr from Advantech, however the panel isn't sold alongside the board. A new dts, adding everything that's required to get the panel to work with HiHope RZ/G2M, is the most convenient way to support the HiHope RZ

[PATCH v12 4/5] soc / drm: mediatek: Move routing control to mmsys device

2020-03-12 Thread Enric Balletbo i Serra
Provide a mtk_mmsys_ddp_connect() and mtk_mmsys_disconnect() functions to replace mtk_ddp_add_comp_to_path() and mtk_ddp_remove_comp_from_path(). Those functions will allow DRM driver and others to control the data path routing. Signed-off-by: Enric Balletbo i Serra Reviewed-by: Matthias Brugger

Re: [PATCH 4/6] drm/amdgpu: add checks if DMA-buf P2P is supported

2020-03-12 Thread Jason Gunthorpe
On Wed, Mar 11, 2020 at 03:33:01PM +0100, Christian König wrote: > Am 11.03.20 um 15:04 schrieb Jason Gunthorpe: > > On Wed, Mar 11, 2020 at 02:51:56PM +0100, Christian König wrote: > > > Check if we can do peer2peer on the PCIe bus. > > > > > > Signed-off-by: Christian König > > > drivers/gpu/

[PATCH 1/2] dt-binding: Add DSI/LVDS tc358775 bridge bindings

2020-03-12 Thread Vinay Simha BN
Add yaml documentation for DSI/LVDS tc358775 bridge Signed-off-by: Vinay Simha BN --- v1: Initial version --- .../bindings/display/bridge/toshiba-tc358775.yaml | 174 + 1 file changed, 174 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/

[PATCH v2 2/4] dt-bindings: display: bridge: add it66121 bindings

2020-03-12 Thread Phong LE
Add the ITE bridge HDMI it66121 bindings. Signed-off-by: Phong LE --- .../bindings/display/bridge/ite,it66121.yaml | 98 +++ 1 file changed, 98 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/ite,it66121.yaml diff --git a/Documentation/device

How to wait for DRM_MODE_CONNECTED status?

2020-03-12 Thread Vikas Patil
Dear All, What is the most effective/optimal/recommended way to wait for DRM_MODE_CONNECTED status? This is to make sure when disply manager (uses drm apis) starts and if it do not get the DRM_MODE_CONNECTED status as some dependent driver is still loading and setting up (e.g. serializer driver)

[PATCH 2/5] dt-bindings: panel: add binding for Xingbangda XBD599 panel

2020-03-12 Thread Icenowy Zheng
Xingbangda XBD599 is a 5.99" 720x1440 MIPI-DSI LCD panel. Add its device tree binding. Signed-off-by: Icenowy Zheng --- .../display/panel/xingbangda,xbd599.yaml | 50 +++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/x

Re: [PATCH v11 0/5] arm/arm64: mediatek: Fix mt8173 mmsys device probing

2020-03-12 Thread Enric Balletbo i Serra
Hi CK, On 11/3/20 14:01, CK Hu wrote: > Hi, Enric: > > I'm confused this is v11 or v12. > For v12, you've lost some 'Acked-by' and 'Reviewed-by' tag. > Right, sorry about that, I messed my workflow after a patman upgrade that didn't work. I'll collect the acks and reviews and send a v12 later t

Re: [PATCH -next 013/491] INGENIC JZ47xx SoCs: Use fallthrough;

2020-03-12 Thread Miquel Raynal
Ulf Hansson wrote on Wed, 11 Mar 2020 15:20:59 +0100: > On Wed, 11 Mar 2020 at 08:40, Miquel Raynal wrote: > > > > Hi Joe, > > > > Joe Perches wrote on Tue, 10 Mar 2020 21:51:27 -0700: > > > > > Convert the various uses of fallthrough comments to fallthrough; > > > > > > Done via script > >

Re: [PATCH 5/6] drm/amdgpu: add support for exporting VRAM using DMA-buf v2

2020-03-12 Thread Jason Gunthorpe
On Wed, Mar 11, 2020 at 02:51:57PM +0100, Christian König wrote: > +/** > + * amdgpu_vram_mgr_alloc_sgt - allocate and fill a sg table > + * > + * @adev: amdgpu device pointer > + * @mem: TTM memory object > + * @dev: the other device > + * @dir: dma direction > + * @sgt: resulting sg table > + * >

[PATCH v2] dt-bindings: display: convert rockchip vop bindings to yaml

2020-03-12 Thread Johan Jonker
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 --- Changes v2: No new properties --- .../bindings/display/rockchip/rockchip-vop.txt | 74 .../bindings/displa

[PATCH v2 1/4] dt-bindings: add ITE vendor

2020-03-12 Thread Phong LE
Add ITE Tech Inc. prefix "ite" in vendor-prefixes. More information on: http://www.ite.com.tw/ Signed-off-by: Phong LE --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Docume

[PATCH] drm: mxsfb: fix Kconfig menu presentation

2020-03-12 Thread Randy Dunlap
From: Randy Dunlap Make DRM_MXS depend on DRM. This causes the MXS FB menu to be presented in the DRM menu where it should be instead of in the Graphics support menu. Fixes: 45d59d704080 ("drm: Add new driver for MXSFB controller") Signed-off-by: Randy Dunlap Cc: Marek Vasut Cc: Lucas Stach C

[PATCH v11 1/5] drm/mediatek: Omit warning on probe defers

2020-03-12 Thread Enric Balletbo i Serra
From: Matthias Brugger It can happen that the mmsys clock drivers aren't probed before the platform driver gets invoked. The platform driver used to print a warning that the driver failed to get the clocks. Omit this error on the defered probe path. Signed-off-by: Matthias Brugger Reviewed-by:

Re: [PATCH 10/21] drm/tegra: remove checks for debugfs functions return value

2020-03-12 Thread Wambui Karuga
Hey Thierry, On Wed, 11 Mar 2020, Thierry Reding wrote: On Thu, Feb 27, 2020 at 03:02:21PM +0300, Wambui Karuga wrote: Since 987d65d01356 (drm: debugfs: make drm_debugfs_create_files() never fail) there is no need to check the return value of drm_debugfs_create_files(). Therefore, remove the r

Re: [PATCH v12 3/5] clk / soc: mediatek: Move mt8173 MMSYS to platform driver

2020-03-12 Thread Enric Balletbo i Serra
On 11/3/20 17:53, Enric Balletbo i Serra wrote: > From: Matthias Brugger > > There is no strong reason for this to use CLK_OF_DECLARE instead of > being a platform driver. Plus, MMSYS provides clocks but also a shared > register space for the mediatek-drm and the mediatek-mdp > driver. So move

Re: [RFC v2 6/8] MIPS: DTS: jz4780: account for Synopsys HDMI driver and LCD controller

2020-03-12 Thread Paul Cercueil
Hi Nikolaus, Le mer., mars 11, 2020 at 13:43, H. Nikolaus Schaller a écrit : Hi Paul, Am 02.03.2020 um 20:27 schrieb Paul Cercueil : Hi Nikolaus, Le ven., févr. 28, 2020 at 19:19, H. Nikolaus Schaller a écrit : From: Paul Boddie A specialisation of the generic Synopsys HDMI driv

Re: [PATCH 5/6] drm/amdgpu: add support for exporting VRAM using DMA-buf v2

2020-03-12 Thread Jason Gunthorpe
On Wed, Mar 11, 2020 at 02:51:57PM +0100, Christian König wrote: > +/** > + * amdgpu_vram_mgr_alloc_sgt - allocate and fill a sg table > + * > + * @adev: amdgpu device pointer > + * @sgt: sg table to free Wrong kdoc in many ways > + * Free a previously allocate sg table. > + */ > +void amdgpu_v

Re: [PATCH 4/6] drm/amdgpu: add checks if DMA-buf P2P is supported

2020-03-12 Thread Jason Gunthorpe
On Wed, Mar 11, 2020 at 03:43:03PM +0100, Christian König wrote: > > > > int 'p2pdma map bar'( > > > > struct pci_device *source, > > > > unsigned int source_bar_number, > > > > struct pci_device *dest, > > > > physaddr&len *array_of_offsets & length pairs into source bar, > > >

Re: [PATCH v11 3/5] clk / soc: mediatek: Move mt8173 MMSYS to platform driver

2020-03-12 Thread Matthias Brugger
On 11/03/2020 12:56, Enric Balletbo i Serra wrote: > From: Matthias Brugger > > There is no strong reason for this to use CLK_OF_DECLARE instead of > being a platform driver. Plus, MMSYS provides clocks but also a shared > register space for the mediatek-drm and the mediatek-mdp > driver. So m

[PATCH 3/5] drm: panel: add Xingbangda XBD599 panel

2020-03-12 Thread Icenowy Zheng
Xingbangda XBD599 is a 5.99" 720x1440 MIPI-DSI IPS LCD panel made by Xingbangda, which is used on PinePhone final assembled phones. Add support for it. Signed-off-by: Icenowy Zheng --- drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile| 1 +

[PATCH v2 0/4] Add it66121 driver

2020-03-12 Thread Phong LE
The IT66121 is a high-performance and low-power single channel HDMI transmitter, fully compliant with HDMI 1.3a, HDCP 1.2 and backward compatible to DVI 1.0 specifications. It supports pixel rates from 25MHz to 165MHz. This series contains document bindings, add vendor prefix, Kconfig to enable or

[PATCH v3 1/4] dma-buf: add support for virtio exported objects

2020-03-12 Thread David Stevens
This change adds a new dma-buf operation that allows dma-bufs to be used by virtio drivers to share exported objects. The new operation allows the importing driver to query the exporting driver for the UUID which identifies the underlying exported object. Signed-off-by: David Stevens --- drivers

[PATCH v12 3/5] clk / soc: mediatek: Move mt8173 MMSYS to platform driver

2020-03-12 Thread Enric Balletbo i Serra
From: Matthias Brugger There is no strong reason for this to use CLK_OF_DECLARE instead of being a platform driver. Plus, MMSYS provides clocks but also a shared register space for the mediatek-drm and the mediatek-mdp driver. So move the MMSYS clocks to a new platform driver and also create a ne

Re: [PATCH V4 1/3] dt: bindings: brcmnand: Add support for flash-edu

2020-03-12 Thread Miquel Raynal
On Wed, 2020-01-22 at 21:33:11 UTC, Kamal Dasu wrote: > Adding support for EBI DMA unit (EDU). > > Signed-off-by: Kamal Dasu > Reviewed-by: Rob Herring Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks. Miquel __

[PATCH hmm 2/8] mm/hmm: don't free the cached pgmap while scanning

2020-03-12 Thread Jason Gunthorpe
From: Jason Gunthorpe The pgmap is held in the hmm_vma_walk variable in hope of speeding up future get_dev_pagemap() calls by hitting the same pointer. The algorithm doesn't actually care about how long the pgmap is held for. Move the put of the cached pgmap to after the walk is completed and de

[PATCH v4 0/2] Add LVDS panel support to HiHope RZ/G2M

2020-03-12 Thread Lad Prabhakar
Dear All, The HiHope RZ/G2M is advertised as supporting panel idk-1110wr from Advantech, but the panel doesn't come with the board, it has to purchased separatey, therefore this series adds panel support to a new DT. v3->v4 * Included rzg2-advantech-idk-1110wr-panel.dtsi in r8a774a1-hihope-rz

Re: [PATCH 1/2] drm/panel: Add Starry KR070PE2T

2020-03-12 Thread Pascal Roeleven
On 2020-03-10 19:54, Sam Ravnborg wrote: A few things to improve. The binding should be a separate patch. subject - shall start with dt-bindings: Shall be sent to deveicetree mailing list. Hi Sam, Thank you very much for your review. I did consider this. The reason I combined the patches, is

[GIT PULL] drm/arc: Filter out interlaced mode

2020-03-12 Thread Alexey Brodkin
Hi David, Daniel! The following changes since commit e3c3b6e66da1caeb39a504b03ddcdd3693e45254: Merge tag 'exynos-drm-fixes-for-v5.6-rc5-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos into drm-fixes (2020-03-12 11:02:52 +1000) are available in the Git repository at:

[PATCH] drm: amd/acp: fix broken menu structure

2020-03-12 Thread Randy Dunlap
From: Randy Dunlap Fix the Kconfig dependencies so that the menu is presented correctly by adding a dependency on DRM_AMDGPU to the "menu" Kconfig statement. This makes a continuous dependency on DRM_AMDGPU in the DRM AMD menus and eliminates a broken menu structure. Fixes: a8fe58cec351 ("drm/a

[PATCH hmm 6/8] mm/hmm: reorganize how !pte_present is handled in hmm_vma_handle_pte()

2020-03-12 Thread Jason Gunthorpe
From: Jason Gunthorpe The intention with this code is to determine if the caller required the pages to be valid, and if so, then take some action to make them valid. The action varies depending on the page type. In all cases, if the caller doesn't ask for the page, then hmm_range_fault() should

[PATCH v11 5/5] soc / drm: mediatek: Fix mediatek-drm device probing

2020-03-12 Thread Enric Balletbo i Serra
In the actual implementation the same compatible string "mediatek,-mmsys" is used to bind the clock drivers (drivers/soc/mediatek) as well as to the gpu driver (drivers/gpu/drm/mediatek/mtk_drm_drv.c). This ends with the problem that the only probed driver is the clock driver and there is no displa

[PATCH hmm 5/8] mm/hmm: add missing call to hmm_range_need_fault() before returning EFAULT

2020-03-12 Thread Jason Gunthorpe
From: Jason Gunthorpe All return paths that do EFAULT must call hmm_range_need_fault() to determine if the user requires this page to be valid. If the page cannot be made valid if the user later requires it, due to vma flags in this case, then the return should be HMM_PFN_ERROR. Fixes: a3e0d41c

[PATCH v11 0/5] arm/arm64: mediatek: Fix mt8173 mmsys device probing

2020-03-12 Thread Enric Balletbo i Serra
Dear all, These patches are intended to solve an old standing issue on some Mediatek devices (mt8173, mt2701 and mt2712 are affected by this issue). Up to now both drivers, clock and drm are probed with the same device tree compatible. But only the first driver gets probed, which in effect breaks

RE: [PATCH] DRM: ARC: PGU: interlaced mode not supported

2020-03-12 Thread Alexey Brodkin
Hi Greg, > -Original Message- > From: Greg KH > Sent: Wednesday, March 11, 2020 8:22 PM > To: Eugeniy Paltsev > Cc: dri-devel@lists.freedesktop.org; Alexey Brodkin ; > linux-snps- > a...@lists.infradead.org; linux-ker...@vger.kernel.org; David Airlie > ; Daniel Vetter > ; sta...@vger.k

[PATCH v3] dt-bindings: display: convert rockchip vop bindings to yaml

2020-03-12 Thread Johan Jonker
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 --- Changes v3: Change description Changes v2: No new properties --- .../bindings/display/rockchip/rockchip-vop.txt | 74

Re: [PATCH v2 4/4] MAINTAINERS: add it66121 HDMI bridge driver entry

2020-03-12 Thread Andy Shevchenko
On Wed, Mar 11, 2020 at 01:51:35PM +0100, Phong LE wrote: > Add Neil Armstrong and myself as maintainers Run parse-maintainers.pl to fix issues. > Signed-off-by: Phong LE > --- > MAINTAINERS | 8 > 1 file changed, 8 insertions(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index 37c2

[PATCH 4/5] drm/sun4i: sun6i_mipi_dsi: fix horizontal timing calculation

2020-03-12 Thread Icenowy Zheng
The max() function call in horizontal timing calculation shouldn't pad a length already subtracted with overhead to overhead, instead it should only prevent the set timing to underflow. Signed-off-by: Icenowy Zheng --- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 10 +- 1 file changed, 5 ins

Re: [PATCH v2] dt-bindings: display: convert rockchip vop bindings to yaml

2020-03-12 Thread sandy.huang
Hi johan, 在 2020/3/11 21:05, Johan Jonker 写道: 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 --- Changes v2: No new properties --- .../bindings/display/rockchip/rockchip-

[PATCH 0/5] Add support for PinePhone LCD panel

2020-03-12 Thread Icenowy Zheng
This patchset adds support for the LCD panel of PinePhone. The first 3 patches are for the panel itself, and the last 2 patches are for enabling it on PinePhone. PATCH 4 is the fix of a bug in sun6i_mipi_dsi which will gets triggered on XBD599. Icenowy Zheng (5): dt-bindings: vendor-prefixes:

[PATCH v3 2/4] drm/prime: add support for virtio exported objects

2020-03-12 Thread David Stevens
This change exposes dma-buf's get_uuid callback to PRIME drivers. Signed-off-by: David Stevens --- drivers/gpu/drm/drm_prime.c | 23 +++ include/drm/drm_drv.h | 10 ++ 2 files changed, 33 insertions(+) diff --git a/drivers/gpu/drm/drm_prime.c b/drivers/gpu/drm/

Re: [RFC v2 6/8] MIPS: DTS: jz4780: account for Synopsys HDMI driver and LCD controller

2020-03-12 Thread H. Nikolaus Schaller
Hi Paul, > Am 11.03.2020 um 14:20 schrieb Paul Cercueil : > > Hi Nikolaus, > > > Le mer., mars 11, 2020 at 13:43, H. Nikolaus Schaller a > écrit : >> Hi Paul, >>> The JZ4780's LCD controller is much newer than the JZ4740 one, so even if >>> it works with the "ingenic,jz4740-lcd" compatible s

[PATCH hmm 4/8] mm/hmm: add missing pfns set to hmm_vma_walk_pmd()

2020-03-12 Thread Jason Gunthorpe
From: Jason Gunthorpe All success exit paths from the walker functions must set the pfns array. A migration entry with no required fault is a HMM_PFN_NONE return, just like the pte case. Fixes: d08faca018c4 ("mm/hmm: properly handle migration pmd") Signed-off-by: Jason Gunthorpe --- mm/hmm.c

RE: [PATCH v2 05/17] drm/arc: make arcgpu_debugfs_init() return 0.

2020-03-12 Thread Alexey Brodkin
Hi Wambui, > -Original Message- > From: Wambui Karuga > Sent: Tuesday, March 10, 2020 8:31 PM > To: airl...@linux.ie; dan...@ffwll.ch; Alexey Brodkin > Cc: dri-devel@lists.freedesktop.org; linux-ker...@vger.kernel.org; > gre...@linuxfoundation.org > Subject: [PATCH v2 05/17] drm/arc: ma

[PATCH v12 5/5] soc / drm: mediatek: Fix mediatek-drm device probing

2020-03-12 Thread Enric Balletbo i Serra
In the actual implementation the same compatible string "mediatek,-mmsys" is used to bind the clock drivers (drivers/soc/mediatek) as well as to the gpu driver (drivers/gpu/drm/mediatek/mtk_drm_drv.c). This ends with the problem that the only probed driver is the clock driver and there is no displa

[PATCH v3 4/4] drm/virtio: Support virtgpu exported resources

2020-03-12 Thread David Stevens
Add support for UUID-based resource sharing mechanism to virtgpu. This implements the new virtgpu commands and hooks them up to dma-buf's get_uuid callback. Signed-off-by: David Stevens --- drivers/gpu/drm/virtio/virtgpu_drv.c | 3 ++ drivers/gpu/drm/virtio/virtgpu_drv.h | 18 + dri

[PATCH hmm 3/8] mm/hmm: do not call hmm_vma_walk_hole() while holding a spinlock

2020-03-12 Thread Jason Gunthorpe
From: Jason Gunthorpe This eventually calls into handle_mm_fault() which is a sleeping function. Release the lock first. hmm_vma_walk_hole() does not touch the contents of the PUD, so it does not need the lock. Fixes: 3afc423632a1 ("mm: pagewalk: add p4d_entry() and pgd_entry()") Cc: Steven Pri

[PATCH v6 1/2] dt-bindings: display: add visionox rm69299 panel variant

2020-03-12 Thread Harigovindan P
Add bindings for visionox rm69299 panel. Signed-off-by: Harigovindan P --- Changes in v2: - Removed unwanted properties from description. - Creating source files without execute permissions(Rob Herring). Changes in v3: - Changing txt file into yaml Changes in v4:

[PATCH v3 3/4] virtio-gpu: add VIRTIO_GPU_F_RESOURCE_UUID feature

2020-03-12 Thread David Stevens
This feature allows the guest to request a UUID from the host for a particular virtio_gpu resource. The UUID can then be shared with other virtio devices, to allow the other host devices to access the virtio_gpu's corresponding host resource. Signed-off-by: David Stevens --- include/uapi/linux/v

[PATCH v11 2/5] dt-bindings: mediatek: Update mmsys binding to reflect it is a system controller

2020-03-12 Thread Enric Balletbo i Serra
The mmsys system controller is not only a pure clock controller, so update the binding documentation to reflect that apart from providing clocks, it also provides routing and miscellaneous control registers. Signed-off-by: Enric Balletbo i Serra Reviewed-by: Matthias Brugger Reviewed-by: CK Hu

Re: [PATCH v11 5/5] soc / drm: mediatek: Fix mediatek-drm device probing

2020-03-12 Thread Matthias Brugger
On 11/03/2020 12:56, Enric Balletbo i Serra wrote: > In the actual implementation the same compatible string > "mediatek,-mmsys" is used to bind the clock drivers > (drivers/soc/mediatek) as well as to the gpu driver > (drivers/gpu/drm/mediatek/mtk_drm_drv.c). This ends with the problem > that t

Re: [RFC v2 6/8] MIPS: DTS: jz4780: account for Synopsys HDMI driver and LCD controller

2020-03-12 Thread H. Nikolaus Schaller
Hi Paul, > Am 02.03.2020 um 20:27 schrieb Paul Cercueil : > > Hi Nikolaus, > > > Le ven., févr. 28, 2020 at 19:19, H. Nikolaus Schaller a > écrit : >> From: Paul Boddie >> A specialisation of the generic Synopsys HDMI driver is employed for JZ4780 >> HDMI support. This requires a new driver,

Re: Plumbing explicit synchronization through the Linux ecosystem

2020-03-12 Thread Nicolas Dufresne
(I know I'm going to be spammed by so many mailing list ...) Le mercredi 11 mars 2020 à 14:21 -0500, Jason Ekstrand a écrit : > On Wed, Mar 11, 2020 at 12:31 PM Jason Ekstrand wrote: > > All, > > > > Sorry for casting such a broad net with this one. I'm sure most people > > who reply will get at

Re: [PATCH V4 3/3] mtd: rawnand: brcmnand: Add support for flash-edu for dma transfers

2020-03-12 Thread Miquel Raynal
On Wed, 2020-01-22 at 21:33:13 UTC, Kamal Dasu wrote: > Legacy mips soc platforms that have controller v5.0 and 6.0 use > flash-edu block for dma transfers. This change adds support for > nand dma transfers using the EDU block. > > Signed-off-by: Kamal Dasu Applied to https://git.kernel.org/pub/

[PATCH v12 1/5] drm/mediatek: Omit warning on probe defers

2020-03-12 Thread Enric Balletbo i Serra
From: Matthias Brugger It can happen that the mmsys clock drivers aren't probed before the platform driver gets invoked. The platform driver used to print a warning that the driver failed to get the clocks. Omit this error on the defered probe path. Signed-off-by: Matthias Brugger Reviewed-by:

[PATCH v4 1/2] dt-bindings: display: Add idk-1110wr binding

2020-03-12 Thread Lad Prabhakar
From: Fabrizio Castro Add binding for the idk-1110wr LVDS panel from Advantech. Some panel-specific documentation can be found here: https://buy.advantech.eu/Displays/Embedded-LCD-Kits-LCD-Kit-Modules/model-IDK-1110WR-55WSA1E.htm Signed-off-by: Fabrizio Castro Reviewed-by: Rob Herring Reviewe

[PATCH v6 2/2] drm/panel: add support for rm69299 visionox panel driver

2020-03-12 Thread Harigovindan P
Add support for Visionox panel driver. Signed-off-by: Harigovindan P --- Changes in v2: - Dropping redundant space in Kconfig(Sam Ravnborg). - Changing structure for include files(Sam Ravnborg). - Removing backlight related code and functions(Sam Ravnborg). - Remo

Re: [PATCH v11 4/5] soc / drm: mediatek: Move routing control to mmsys device

2020-03-12 Thread Matthias Brugger
On 11/03/2020 14:07, CK Hu wrote: > Hi, Enric: > > On Wed, 2020-03-11 at 12:56 +0100, Enric Balletbo i Serra wrote: >> Provide a mtk_mmsys_ddp_connect() and mtk_mmsys_disconnect() functions to >> replace mtk_ddp_add_comp_to_path() and mtk_ddp_remove_comp_from_path(). >> Those functions will all

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

2020-03-12 Thread Harigovindan P
Adding support for visionox rm69299 panel driver and adding bindings for the same panel. Harigovindan P (2): dt-bindings: display: add visionox rm69299 panel variant drm/panel: add support for rm69299 visionox panel driver .../display/panel/visionox,rm69299.yaml | 77 + drivers/g

[PATCH hmm 7/8] mm/hmm: return -EFAULT when setting HMM_PFN_ERROR on requested valid pages

2020-03-12 Thread Jason Gunthorpe
From: Jason Gunthorpe hmm_range_fault() should never return 0 if the caller requested a valid page, but the pfns output for that page would be HMM_PFN_ERROR. hmm_pte_need_fault() must always be called before setting HMM_PFN_ERROR to detect if the page is in faulting mode or not. Fix two cases i

Re: [linux-sunxi] [PATCH 2/2] ARM: dts: sun4i: Add support for Topwise A721 tablet

2020-03-12 Thread Pascal Roeleven
On 2020-03-10 15:02, Ondřej Jirman wrote: Hello Pascal, On Tue, Mar 10, 2020 at 11:27:24AM +0100, Pascal Roeleven wrote: The Topwise A721/LY-F1 tablet is a tablet sold around 2012 under different brands. The mainboard mentions A721 clearly, so this tablet is best known under this name. Signed-

[PATCH 5/5] arm64: allwinner: dts: a64: add LCD-related device nodes for PinePhone

2020-03-12 Thread Icenowy Zheng
PinePhone uses PWM backlight and a XBD599 LCD panel over DSI for display. Add its device nodes. Signed-off-by: Icenowy Zheng --- .../dts/allwinner/sun50i-a64-pinephone.dtsi | 37 +++ 1 file changed, 37 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pineph

[PATCH hmm 8/8] mm/hmm: add missing call to hmm_pte_need_fault in HMM_PFN_SPECIAL handling

2020-03-12 Thread Jason Gunthorpe
From: Jason Gunthorpe Currently if a special PTE is encountered hmm_range_fault() immediately returns EFAULT and sets the HMM_PFN_SPECIAL error output (which nothing uses). EFAULT should only be returned after testing with hmm_pte_need_fault(). Also pte_devmap() and pte_special() are exclusive,

[PATCH -next] drm/msm/dpu: Remove some set but not used variables

2020-03-12 Thread tongtiangen
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c: In function _dpu_debugfs_show_regset32: drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c:142:26: warning: variable priv set but not used [-Wunused-but-set-variable] drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c: In function

RE: [PATCH libdrm] modetest: call drmModeCrtcSetGamma() only if add_property_optional returns true

2020-03-12 Thread Rohit Visavalia
Hi Ilia Mirkin, Thanks for the review. By old-fashioned way you mean to say using drmModeCrtcSetGamma()? If yes then, it shows error as "failed to set gamma: Function no implemented" if any platform specific drm has no gamma property implemented. Current code shows error while running modetest

[PATCH v12 0/5] arm/arm64: mediatek: Fix mt8173 mmsys device probing

2020-03-12 Thread Enric Balletbo i Serra
Dear all, These patches are intended to solve an old standing issue on some Mediatek devices (mt8173, mt2701 and mt2712 are affected by this issue). Up to now both drivers, clock and drm are probed with the same device tree compatible. But only the first driver gets probed, which in effect breaks

[PATCH v3 0/4] Support virtio cross-device resources

2020-03-12 Thread David Stevens
This patchset implements the current proposal for virtio cross-device resource sharing [1], with minor changes based on recent comments. It is expected that this will be used to import virtio resources into the virtio-video driver currently under discussion [2]. This patchset adds a new hook to dm

Re: [PATCH] display/bridge: dsi2lvds tc358775 driver

2020-03-12 Thread Vinay Simha B N
Laurent Pinchart, if we want to set to jeida-18 data mapping, do we need to set DATA3 with "Logic 0" LVI_L0 ? Please see reply inline. On Fri, Mar 6, 2020 at 7:02 PM Laurent Pinchart wrote: > > Hi Vinay, > > Thank you for the patch. > > On Fri, Mar 06, 2020 at 06:06:36PM +0530, Vinay Simha B N

[PATCH v11 4/5] soc / drm: mediatek: Move routing control to mmsys device

2020-03-12 Thread Enric Balletbo i Serra
Provide a mtk_mmsys_ddp_connect() and mtk_mmsys_disconnect() functions to replace mtk_ddp_add_comp_to_path() and mtk_ddp_remove_comp_from_path(). Those functions will allow DRM driver and others to control the data path routing. Signed-off-by: Enric Balletbo i Serra Reviewed-by: Matthias Brugger

[PATCH v12 2/5] dt-bindings: mediatek: Update mmsys binding to reflect it is a system controller

2020-03-12 Thread Enric Balletbo i Serra
The mmsys system controller is not only a pure clock controller, so update the binding documentation to reflect that apart from providing clocks, it also provides routing and miscellaneous control registers. Signed-off-by: Enric Balletbo i Serra Reviewed-by: Matthias Brugger Reviewed-by: CK Hu

[PATCH v2 4/4] MAINTAINERS: add it66121 HDMI bridge driver entry

2020-03-12 Thread Phong LE
Add Neil Armstrong and myself as maintainers Signed-off-by: Phong LE --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 37c2963226d4..3d722d723686 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8977,6 +8977,14 @@ T: git git://linuxtv

[PATCH v2 3/4] drm: bridge: add it66121 driver

2020-03-12 Thread Phong LE
This commit is a simple driver for bridge HMDI it66121. The input format is RBG and there is no color conversion. Audio, HDCP and CEC are not supported yet. Signed-off-by: Phong LE --- drivers/gpu/drm/bridge/Kconfig | 8 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bri

Re: [PATCH -next 013/491] INGENIC JZ47xx SoCs: Use fallthrough;

2020-03-12 Thread Ulf Hansson
On Wed, 11 Mar 2020 at 08:40, Miquel Raynal wrote: > > Hi Joe, > > Joe Perches wrote on Tue, 10 Mar 2020 21:51:27 -0700: > > > Convert the various uses of fallthrough comments to fallthrough; > > > > Done via script > > Link: > > https://lore.kernel.org/lkml/b56602fcf79f849e733e7b521bb0e17895d39

[PATCH 0/5] Add support for PinePhone LCD panel

2020-03-12 Thread Icenowy Zheng
This patchset adds support for the LCD panel of PinePhone. The first 3 patches are for the panel itself, and the last 2 patches are for enabling it on PinePhone. PATCH 4 is the fix of a bug in sun6i_mipi_dsi which will gets triggered on XBD599. Icenowy Zheng (5): dt-bindings: vendor-prefixes:

[PATCH hmm 1/8] mm/hmm: add missing unmaps of the ptep during hmm_vma_handle_pte()

2020-03-12 Thread Jason Gunthorpe
From: Jason Gunthorpe Many of the direct returns of error skipped doing the pte_unmap(). All non zero exit paths must unmap the pte. The pte_unmap() is split unnaturally like this because some of the error exit paths trigger a sleep and must release the lock before sleeping. Fixes: 992de9a8b751

Re: [PATCH 4/6] drm/amdgpu: add checks if DMA-buf P2P is supported

2020-03-12 Thread Jason Gunthorpe
On Wed, Mar 11, 2020 at 02:51:56PM +0100, Christian König wrote: > Check if we can do peer2peer on the PCIe bus. > > Signed-off-by: Christian König > drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_bu

Re: [PATCH v2 3/4] drm: bridge: add it66121 driver

2020-03-12 Thread Andy Shevchenko
On Wed, Mar 11, 2020 at 01:51:34PM +0100, Phong LE wrote: > This commit is a simple driver for bridge HMDI it66121. > The input format is RBG and there is no color conversion. > Audio, HDCP and CEC are not supported yet. I guess you should have been told in your company how to use get_maintainer.p

[PATCH v8 4/5] drm/i915: Add helper code for ACPI privacy screen

2020-03-12 Thread Rajat Jain
Add helper functions that can allow i915 to detect and control an integrated privacy screen via ACPI methods. These shall be used in the next patch. Signed-off-by: Rajat Jain --- v8: Initial version. formed by refactoring the previous patch 4. print the connector name in the debug messages.

Re: [PATCH v7 4/4] drm/i915: Add support for integrated privacy screen

2020-03-12 Thread Rajat Jain
Hi Jani, On Mon, Mar 9, 2020 at 5:18 PM Rajat Jain wrote: > > Hi Jani, > > I have 1 question / need 1 help about this patch: Kind ignore, I found the answer, and posted my new patchset here: https://patchwork.freedesktop.org/series/74607/ I got a "failed to apply" email from the patchwork. Can

Re: [PATCH v2 3/4] drm: bridge: add it66121 driver

2020-03-12 Thread Andy Shevchenko
On Thu, Mar 12, 2020 at 2:56 AM Laurent Pinchart wrote: > On Wed, Mar 11, 2020 at 03:55:35PM +0200, Andy Shevchenko wrote: > > On Wed, Mar 11, 2020 at 01:51:34PM +0100, Phong LE wrote: > > > This commit is a simple driver for bridge HMDI it66121. > > > The input format is RBG and there is no color

Re: [PATCH hmm 3/8] mm/hmm: do not call hmm_vma_walk_hole() while holding a spinlock

2020-03-12 Thread Steven Price
On 11/03/2020 18:35, Jason Gunthorpe wrote: From: Jason Gunthorpe This eventually calls into handle_mm_fault() which is a sleeping function. Release the lock first. hmm_vma_walk_hole() does not touch the contents of the PUD, so it does not need the lock. Fixes: 3afc423632a1 ("mm: pagewalk: ad

RE: [RFC][PATCH 3/5] drm/i915: Enable scaling filter for plane and pipe

2020-03-12 Thread Laxminarayan Bharadiya, Pankaj
> -Original Message- > From: Ville Syrjälä > Sent: 10 March 2020 21:36 > To: Laxminarayan Bharadiya, Pankaj > > Cc: jani.nik...@linux.intel.com; dan...@ffwll.ch; intel- > g...@lists.freedesktop.org; dri-devel@lists.freedesktop.org; airl...@linux.ie; > maarten.lankho...@linux.intel.com;

Re: [RFC PATCH 0/8] *** Per context fencing ***

2020-03-12 Thread Gerd Hoffmann
Hi, > Can virtqueues be added dynamically? No. > Or can we have > fixed but enough (e.g., 64) virtqueues? Well, I wouldn't bet that any specific number is enough. When gtk starts rendering using vulkan by default the number of contexts of a standard gnome desktop will be pretty high I guess

Re: [RFC PATCH 0/8] *** Per context fencing ***

2020-03-12 Thread Gerd Hoffmann
Hi, > I will start with... how many timelines do we want to expose per > context? In my mind, it goes like > > V1: 1 timeline per virtqueue (there is one timeline for ctrlq right now) > V2: 1 timeline per context (VK and GL on different timelines) > V3: N timelines per context (each VkQueue in

RE: [RFC][PATCH 5/5] drm/i915/display: Add Nearest-neighbor based integer scaling support

2020-03-12 Thread Laxminarayan Bharadiya, Pankaj
> -Original Message- > From: Ville Syrjälä > Sent: 10 March 2020 21:47 > To: Laxminarayan Bharadiya, Pankaj > > Cc: jani.nik...@linux.intel.com; dan...@ffwll.ch; intel- > g...@lists.freedesktop.org; dri-devel@lists.freedesktop.org; airl...@linux.ie; > maarten.lankho...@linux.intel.com;

Re: [PATCH v2] drm/bridge: analogix_dp: Split bind() into probe() and real bind()

2020-03-12 Thread Andrzej Hajda
On 10.03.2020 11:34, Marek Szyprowski wrote: > Analogix_dp driver acquires all its resources in the ->bind() callback, > what is a bit against the component driver based approach, where the > driver initialization is split into a probe(), where all resources are > gathered, and a bind(), where all

Re: [RFC PATCH 0/8] *** Per context fencing ***

2020-03-12 Thread Gerd Hoffmann
On Wed, Mar 11, 2020 at 04:36:16PM -0700, Gurchetan Singh wrote: > On Wed, Mar 11, 2020 at 3:36 AM Gerd Hoffmann wrote: > > > Hi, > > > > > I should've been more clear -- this is an internal cleanup/preparation > > and > > > the per-context changes are invisible to host userspace. > > > > Ok, i

Re: [PATCH v1 3/3] drm/tegra: dc: Silence RGB output deferred-probe error

2020-03-12 Thread Thierry Reding
On Mon, Mar 09, 2020 at 01:38:09AM +0300, Dmitry Osipenko wrote: > Driver fails to probe with -EPROBE_DEFER if display output isn't ready > yet. This produces a bit noisy error message in KMSG during kernel's boot > up on Tegra20 and Tegra30 because RGB output tends to be probed earlier > than a co

Re: [PATCH v1 1/1] dt-bindings: display: fix panel warnings

2020-03-12 Thread Linus Walleij
On Sun, Mar 8, 2020 at 12:50 PM Sam Ravnborg wrote: > Fix following type af warnings in the panel bindings: > > Warning (unit_address_vs_reg): /example-0/dsi/panel: node has a reg or ranges > property, but no unit name > Warning (unit_address_vs_reg): /example-0/dsi@ff45: node has a unit nam

Re: [PATCH v4 0/2] Add LVDS panel support to HiHope RZ/G2M

2020-03-12 Thread Geert Uytterhoeven
Hi Lad, On Wed, Mar 11, 2020 at 9:03 PM Lad Prabhakar wrote: > The HiHope RZ/G2M is advertised as supporting panel idk-1110wr from > Advantech, but the panel doesn't come with the board, it has to purchased > separatey, therefore this series adds panel support to a new DT. > > v3->v4 > * Include

  1   2   >