[PATCH] drm/bridge: tc358767: fix poll timeouts

2019-12-09 Thread Tomi Valkeinen
Link training fails with: Link training timeout waiting for LT_LOOPDONE! main link enable error: -110 This is caused by too tight timeouts, which were changed recently in aa92213f388b ("drm/bridge: tc358767: Simplify polling in tc_link_training()"). With a quick glance, the commit does not c

Re: [resend PATCH v6 10/12] clk: mediatek: mt8183: switch mmsys to platform device probing

2019-12-09 Thread CK Hu
Hi, Matthias: On Sat, 2019-12-07 at 23:47 +0100, matthias@kernel.org wrote: > From: Matthias Brugger > > Switch probing for the MMSYS to support invocation to a > plain paltform device. The driver will be probed by the DRM subsystem. > > Singed-off-by: Matthias Brugger > --- > drivers/clk

i915 GPU HANG: 9:0:0x0, hang on rcs0 but can't report bug

2019-12-09 Thread i...@dantalion.nl
Hello everyone, This is my first message on this mailing list so bear with me. I am running an Arch based system with kernel 5.3.x, xorg-server 1.20.5 and xf86-video-intel 1:2.99.917. Recently I have been receiving GPU HANGS were my screen and mouse freeze for several seconds at a time. looking i

Re: [PATCH v2 0/2] Meson VPU: fix CVBS output

2019-12-09 Thread Neil Armstrong
On 08/12/2019 18:18, Martin Blumenstingl wrote: > The goal of this series is to fix the CVBS output with the Meson VPU > driver. Prior to this series kmscube reported: > failed to set mode: Invalid argument > > Changes since v1 at [0]: > - add patch to remove duplicate code (to match patch #2 ea

Re: [PATCH v3 2/2] drm/bridge: tc358767: Expose test mode functionality via debugfs

2019-12-09 Thread Tomi Valkeinen
(Cc'ing Daniel for the last paragraph) On 09/12/2019 07:08, Andrey Smirnov wrote: Presently, the driver code artificially limits test pattern mode to a single pattern with fixed color selection. It being a kernel module parameter makes switching "test pattern" <-> "proper output" modes on-the-fl

Re: [PATCH v4 00/11] drm: Add support for bus-format negotiation

2019-12-09 Thread Boris Brezillon
On Tue, 3 Dec 2019 20:19:24 +0200 Laurent Pinchart wrote: > Hi Boris, > > On Tue, Dec 03, 2019 at 03:15:04PM +0100, Boris Brezillon wrote: > > This patch series aims at adding support for runtime bus-format > > negotiation between all elements of the > > 'encoder -> bridges -> connector/display'

[PATCH v3 1/2] drm/bridge: tc358767: Introduce __tc_bridge_enable/disable()

2019-12-09 Thread Andrey Smirnov
Expose underlying implementation of bridge's enable/disable functions, so it would be possible to use them in other parts of the driver. Signed-off-by: Andrey Smirnov Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Tomi Valkeinen Cc: Cory Tusar Cc: Chris Healy Cc: Lucas Stach Cc: dri-devel@lists

Re: [PATCH] backlight: corgi: Convert to use GPIO descriptors

2019-12-09 Thread Robert Jarzmik
Linus Walleij writes: Hi Linus, > @@ -525,13 +525,33 @@ static void spitz_bl_kick_battery(void) > } > } > > +static struct gpiod_lookup_table spitz_lcdcon_gpio_table = { > + .dev_id = "spi0.1", How do you know the correct device name is "spi0.1" ? Cheers. -- Robert ___

[PATCH v4 5/7] drm: rcar-du: lvds: Fix mode for companion encoder

2019-12-09 Thread Fabrizio Castro
Primary and companion encoders need to set the same mode for things to work properly. rcar_lvds_mode_set gets called into for the primary encoder only, therefore initialize the companion encoder mode while sorting the primary encoder mode out. Fixes: fa440d870358 ("drm: rcar-du: lvds: Add support

Re: KASAN: slab-out-of-bounds Read in bit_putcs

2019-12-09 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:9455d25f Merge tag 'ntb-5.5' of git://github.com/jonmason/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16b1d1bce0 kernel config: https://syzkaller.appspot.com/x/.config?x=7a3b8f

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

2019-12-09 Thread syzbot
syzbot has bisected this bug to: commit 2de50e9674fc4ca3c6174b04477f69eb26b4ee31 Author: Russell Currey Date: Mon Feb 8 04:08:20 2016 + powerpc/powernv: Remove support for p5ioc2 bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1512d1bce0 start commit: b0d4beaa Merg

[PATCH v4 7/7] arm64: dts: renesas: Add EK874 board with idk-2121wr display support

2019-12-09 Thread Fabrizio Castro
The EK874 is advertised as compatible with panel IDK-2121WR from Advantech, however the panel isn't sold alongside the board. A new dts, adding everything that's required to get the panel to to work with the EK874, is the most convenient way to support the EK874 when it's connected to the IDK-2121W

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

2019-12-09 Thread Hillf Danton
On Sat, 07 Dec 2019 02:05:08 -0800 > Hello, > > syzbot found the following crash on: > > HEAD commit:7ada90eb Merge tag 'drm-next-2019-12-06' of git://anongit... > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=16997c82e0 > kernel config: https://sy

Re: [PATCH v2 5/9] drm/tegra: sor: Implement system suspend/resume

2019-12-09 Thread Dmitry Osipenko
03.12.2019 19:19, Thierry Reding пишет: > From: Thierry Reding > > Upon system suspend, make sure the +5V HDMI regulator is disabled. This > avoids potentially leaking current to the HDMI connector. This also > makes sure that upon resume the regulator is enabled again, which in > some cases is n

Re: KASAN: global-out-of-bounds Read in fb_pad_aligned_buffer

2019-12-09 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:9455d25f Merge tag 'ntb-5.5' of git://github.com/jonmason/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=171e09dae0 kernel config: https://syzkaller.appspot.com/x/.config?x=7a3b8f

RE: [PATCH][next] video: hyperv: hyperv_fb: fix indentation issue

2019-12-09 Thread Michael Kelley
From: Colin Ian King Sent: Thursday, November 14, 2019 9:27 AM > > There is a block of statements that are indented > too deeply, remove the extraneous tabs. > > Signed-off-by: Colin Ian King > --- > drivers/video/fbdev/hyperv_fb.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >

Re: [resend PATCH v6 02/12] dt-bindings: mediatek: Add compatible for mt7623

2019-12-09 Thread Enric Balletbo i Serra
Hi Matthias, On 7/12/19 23:47, matthias@kernel.org wrote: > From: Matthias Brugger > > MediaTek mt7623 uses the mt2701 binings as fallback. typo s/binings/bindings/ > Document this in the binding description. > > Signed-off-by: Matthias Brugger > --- > .../devicetree/bindings/display/me

RE: [PATCH v3 5/8] drm: bridge: thc63: Do not report input bus mode through bridge timings

2019-12-09 Thread Fabrizio Castro
Hi Laurent, Thank you for your feedback! > From: linux-kernel-ow...@vger.kernel.org > On Behalf Of Laurent Pinchart > Sent: 07 November 2019 19:52 > Subject: Re: [PATCH v3 5/8] drm: bridge: thc63: Do not report input bus mode > through bridge timings > > Hi Fabrizio, > > Thank you for the pa

[PATCH v4 6/7] dt-bindings: display: Add idk-2121wr binding

2019-12-09 Thread Fabrizio Castro
Add binding for the idk-2121wr LVDS panel from Advantech. Some panel-specific documentation can be found here: https://buy.advantech.eu/Displays/Embedded-LCD-Kits-High-Brightness/model-IDK-2121WR-K2FHA2E.htm Signed-off-by: Fabrizio Castro --- v3->v4: * Absorbed patch "dt-bindings: display: Add

[PATCH v3 2/2] drm/bridge: tc358767: Expose test mode functionality via debugfs

2019-12-09 Thread Andrey Smirnov
Presently, the driver code artificially limits test pattern mode to a single pattern with fixed color selection. It being a kernel module parameter makes switching "test pattern" <-> "proper output" modes on-the-fly clunky and outright impossible if the driver is built into the kernel. To improve

[PATCH v4] video: hyperv: hyperv_fb: Use physical memory for fb on HyperV Gen 1 VMs.

2019-12-09 Thread Wei Hu
On Hyper-V, Generation 1 VMs can directly use VM's physical memory for their framebuffers. This can improve the efficiency of framebuffer and overall performence for VM. The physical memory assigned to framebuffer must be contiguous. We use CMA allocator to get contiguouse physicial memory when the

KASAN: use-after-free Read in fb_mode_is_equal

2019-12-09 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:7ada90eb Merge tag 'drm-next-2019-12-06' of git://anongit... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16997c82e0 kernel config: https://syzkaller.appspot.com/x/.config?x=f07a23020fd7d21a da

[PATCH v4 2/7] drm: rcar-du: lvds: Improve identification of panels

2019-12-09 Thread Fabrizio Castro
Dual-LVDS panels are mistakenly identified as bridges, this commit replaces the current logic with a call to drm_of_find_panel_or_bridge to sort that out. Signed-off-by: Fabrizio Castro --- v3->v4: * New patch extracted from patch: "drm: rcar-du: lvds: Add dual-LVDS panels support" --- driver

Re: [PATCH v1 00/15] PHY: Update Cadence Torrent PHY driver with reconfiguration

2019-12-09 Thread Kishon Vijay Abraham I
Hi Yuti, On 04/12/19 1:51 am, Jyri Sarha wrote: Yuti, you have phy maintainer (Kishon) in cc, but you do not have linux-ker...@vger.kernel.org list mentioned under "GENERIC PHY FRAMEWORK" entry in the MAINTAINERS file [1]. Please add that to the recipient list in the next round. Can you resend

RE: [PATCH v3] video: hyperv: hyperv_fb: Use physical memory for fb on HyperV Gen 1 VMs.

2019-12-09 Thread Michael Kelley
From: Wei Hu Sent: Friday, December 6, 2019 3:32 AM > > On Hyper-V, Generation 1 VMs can directly use VM's physical memory for > their framebuffers. This can improve the efficiency of framebuffer and > overall performence for VM. The physical memory assigned to framebuffer > must be contiguous. W

Re: [RFC 06/13] drm/i915/svm: Page table mirroring support

2019-12-09 Thread Jason Gunthorpe
On Wed, Dec 04, 2019 at 04:51:36PM -0500, Jerome Glisse wrote: > On Tue, Dec 03, 2019 at 11:19:43AM -0800, Niranjan Vishwanathapura wrote: > > On Tue, Nov 26, 2019 at 06:32:52PM +, Jason Gunthorpe wrote: > > > On Mon, Nov 25, 2019 at 11:33:27AM -0500, Jerome Glisse wrote: > > > > On Fri, Nov 22

Re: [PATCH v1 02/15] dt-bindings:phy: Convert Cadence MHDP PHY bindings to YAML.

2019-12-09 Thread Kishon Vijay Abraham I
+Rob Hi, On 03/12/19 3:43 pm, Yuti Amonkar wrote: - Convert the MHDP PHY devicetree bindings to yaml schemas. - Rename DP PHY to have generic Torrent PHY nomrnclature. - Rename compatible string from "cdns,dp-phy" to "cdns,torrent-phy". Signed-off-by: Yuti Amonkar --- .../devicetree/binding

[PATCH v3 0/2] tc358767 test mode

2019-12-09 Thread Andrey Smirnov
Everyone: This series is a couple of patches exposing TestCtl register of tc358767, which can be pretty handy when troubleshooting link problems. Changes since [v2]: - Series rebased on 5.4 kernel Changes since [v1]: - Debugfs moved into a standalone directory and is now created as

[PATCH v4 4/7] drm: rcar-du: lvds: Allow for even and odd pixels swap

2019-12-09 Thread Fabrizio Castro
DT properties dual-lvds-even-pixels and dual-lvds-odd-pixels can be used to work out if the driver needs to swap even and odd pixels around. This patch makes use of the return value from function drm_of_lvds_get_dual_link_pixel_order to determine if we need to swap odd and even pixels around for t

Re: [PATCH] drm/panel: Add Boe Himax8279d MIPI-DSI LCD panel

2019-12-09 Thread Jerry Han
> > Hi Jerry, > > I love your patch! Yet something to improve: > > [auto build test ERROR on drm-exynos/exynos-drm-next] > [also build test ERROR on drm-intel/for-linux-next linus/master v5.4 > next-20191202] > [if your patch is applied to the wrong git tree, please drop us a note to help > improv

[PATCH v4 0/7] Add dual-LVDS panel support to EK874

2019-12-09 Thread Fabrizio Castro
Dear All, this series adds support for dual-LVDS panel IDK-2121WR from Advantech: https://buy.advantech.eu/Displays/Embedded-LCD-Kits-High-Brightness/model-IDK-2121WR-K2FHA2E.htm V4 incorporates most of the comments received from v3, making it significantly different from v3: patch "drm: rcar-du:

Re: [PATCH v2 01/25] drm/drm_panel: no error when no callback

2019-12-09 Thread Michał Mirosław
On Sat, Dec 07, 2019 at 03:03:29PM +0100, Sam Ravnborg wrote: > The callbacks in drm_panel_funcs are optional, so do not > return an error just because no callback is assigned. [...] > diff --git a/drivers/gpu/drm/drm_panel.c b/drivers/gpu/drm/drm_panel.c > index ed7985c0535a..4ab7229fb22b 100644 >

Re: [PATCH] drm/gma500: Pass GPIO for Intel MID using descriptors

2019-12-09 Thread Andy Shevchenko
On Fri, Dec 06, 2019 at 10:43:01AM +0100, Linus Walleij wrote: > The GMA500 driver is using the legacy GPIO API to fetch > three optional display control GPIO lines from the SFI > description used by the Medfield platform. > > Switch this over to use GPIO descriptors and delete the > custom platfo

[PATCH v4 3/7] drm: rcar-du: lvds: Get dual link configuration from DT

2019-12-09 Thread Fabrizio Castro
For dual-LVDS configurations, it is now possible to mark the DT port nodes for the sink with boolean properties (like dual-lvds-even-pixels and dual-lvds-odd-pixels) to let drivers know the encoders need to be configured in dual-LVDS mode. Rework the implementation of rcar_lvds_parse_dt_companion

[PATCH] drm/panel: Add Boe Himax8279d MIPI-DSI LCD panel

2019-12-09 Thread Jerry Han
Support Boe Himax8279d 8.0" 1200x1920 TFT LCD panel, it is a MIPI DSI panel. V9: - Adjust init code, make the format more concise - kill off default_off_cmds (Emil) - use mipi_dsi_dcs_set_display_{on,off} in their enable/disable callbacks. (Emil) - Adjusting the delay function (Emil) V8: - mo

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

2019-12-09 Thread Dmitry Vyukov
On Fri, Dec 6, 2019 at 5:34 PM syzbot wrote: > > syzbot has bisected this bug to: > > commit 2de50e9674fc4ca3c6174b04477f69eb26b4ee31 > Author: Russell Currey > Date: Mon Feb 8 04:08:20 2016 + > > powerpc/powernv: Remove support for p5ioc2 Another weird one, I must be missing somethin

[PATCH v2 1/2] drm: meson: venc: cvbs: deduplicate the meson_cvbs_mode lookup code

2019-12-09 Thread Martin Blumenstingl
Use a utility function to remove a bit of code duplication between meson_venc_cvbs_encoder_atomic_check() and meson_venc_cvbs_encoder_mode_set(). Both need to look up the struct meson_venc_cvbs based on a drm_display_mode. Signed-off-by: Martin Blumenstingl --- drivers/gpu/drm/meson/meson_venc_c

[PATCH v2 2/2] drm: meson: venc: cvbs: fix CVBS mode matching

2019-12-09 Thread Martin Blumenstingl
With commit 222ec1618c3ace ("drm: Add aspect ratio parsing in DRM layer") the drm core started honoring the picture_aspect_ratio field when comparing two drm_display_modes. Prior to that it was ignored. When the CVBS encoder driver was initially submitted there was no aspect ratio check. Switch fr

Re: [resend PATCH v6 01/12] dt-bindings: display: mediatek: Add mmsys binding description

2019-12-09 Thread Enric Balletbo i Serra
Hi Matthias, On 9/12/19 6:12, CK Hu wrote: > Hi, Matthias: > > On Sat, 2019-12-07 at 23:47 +0100, matthias@kernel.org wrote: >> From: Matthias Brugger >> >> The MediaTek DRM has a block called mmsys, which sets >> the routing and enalbes the different blocks. Typo s/enalbes/enables/ >> Thi

[PATCH] drm/gma500: add a missed gma_power_end in error path

2019-12-09 Thread Chuhong Yuan
oaktrail_lvds_mode_set() misses a gma_power_end() in an error path. Add the call to fix it. Signed-off-by: Chuhong Yuan --- drivers/gpu/drm/gma500/oaktrail_lvds.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/gma500/oaktrail_lvds.c b/drivers/gpu/drm/gma500/oaktrail_lvds.c

[PATCH v4 1/7] drm: of: Add drm_of_lvds_get_dual_link_pixel_order

2019-12-09 Thread Fabrizio Castro
An LVDS dual-link connection is made of two links, with even pixels transitting on one link, and odd pixels on the other link. The device tree can be used to fully describe dual-link LVDS connections between encoders and bridges/panels. The sink of an LVDS dual-link connection is made of two ports,

Re: KASAN: global-out-of-bounds Read in bit_putcs

2019-12-09 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:b0d4beaa Merge branch 'next.autofs' of git://git.kernel.or.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1015a90ee0 kernel config: https://syzkaller.appspot.com/x/.config?x=f07a23

[PATCH] drm/vmwgfx: Replace deprecated PTR_RET

2019-12-09 Thread Lukas Bulwahn
Commit 508108ea2747 ("drm/vmwgfx: Don't refcount command-buffer managed resource lookups during command buffer validation") slips in use of deprecated PTR_RET. Use PTR_ERR_OR_ZERO instead. As the PTR_ERR_OR_ZERO is a bit longer than PTR_RET, we introduce local variable ret for proper indentation a

RE: [PATCH v3 4/8] drm: rcar-du: lvds: Add dual-LVDS panels support

2019-12-09 Thread Fabrizio Castro
Hi Laurent, > From: linux-renesas-soc-ow...@vger.kernel.org > On Behalf Of Laurent Pinchart > Sent: 07 November 2019 19:51 > Subject: Re: [PATCH v3 4/8] drm: rcar-du: lvds: Add dual-LVDS panels support > > Hi Fabrizio, > > Thank you for the patch. > > On Wed, Aug 28, 2019 at 07:36:38PM +0100,

KASAN: global-out-of-bounds Read in fb_pad_aligned_buffer

2019-12-09 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:ad910e36 pipe: fix poll/select race introduced by the pipe.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15483196e0 kernel config: https://syzkaller.appspot.com/x/.config?x=318fa2bff8166d0d da

[PATCH v2 0/2] Meson VPU: fix CVBS output

2019-12-09 Thread Martin Blumenstingl
The goal of this series is to fix the CVBS output with the Meson VPU driver. Prior to this series kmscube reported: failed to set mode: Invalid argument Changes since v1 at [0]: - add patch to remove duplicate code (to match patch #2 easier) - use drm_mode_match without DRM_MODE_MATCH_ASPECT_RAT

Re: i915 GPU HANG: 9:0:0x0, hang on rcs0 but can't report bug

2019-12-09 Thread Chris Wilson
Quoting i...@dantalion.nl (2019-12-09 08:34:28) > Hello everyone, > > This is my first message on this mailing list so bear with me. I am > running an Arch based system with kernel 5.3.x, xorg-server 1.20.5 and > xf86-video-intel 1:2.99.917. > > Recently I have been receiving GPU HANGS were my sc

Re: [PATCH] drm/gma500: Pass GPIO for Intel MID using descriptors

2019-12-09 Thread Patrik Jakobsson
On Fri, Dec 6, 2019 at 10:43 AM Linus Walleij wrote: > > The GMA500 driver is using the legacy GPIO API to fetch > three optional display control GPIO lines from the SFI > description used by the Medfield platform. > > Switch this over to use GPIO descriptors and delete the > custom platform data.

Re: [PATCH v2 00/28] drm/bridge: Consolidate initialization

2019-12-09 Thread Neil Armstrong
Hi Mihail, On 04/12/2019 12:48, Mihail Atanassov wrote: > Hi all, > > I've dropped the fun parts of this series since they need more work, but > figured drm_bridge_init() as a concept is still valuable on its own (and > I think I'll need it to roll out device links for registered bridges), > so h

Re: [PATCH 1/4] dt-bindings: display: panel: document panel-id

2019-12-09 Thread Laurent Pinchart
Hi Rob, On Sun, Dec 08, 2019 at 01:23:59PM -0800, Rob Clark wrote: > On Sun, Dec 8, 2019 at 10:28 AM Laurent Pinchart wrote: > > On Sun, Dec 08, 2019 at 08:50:32AM -0800, Rob Clark wrote: > > > On Sun, Dec 8, 2019 at 6:45 AM Laurent Pinchart wrote: > > > > On Sat, Dec 07, 2019 at 12:35:50PM -0800,

Re: [PATCH v2 00/28] drm/bridge: Consolidate initialization

2019-12-09 Thread Mihail Atanassov
On Monday, 9 December 2019 10:39:07 GMT Neil Armstrong wrote: > Hi Mihail, Hi Neil, > > On 04/12/2019 12:48, Mihail Atanassov wrote: > > Hi all, > > > > I've dropped the fun parts of this series since they need more work, but > > figured drm_bridge_init() as a concept is still valuable on its o

[PATCH] drm/vmwgfx: Call vmw_driver_{load, unload}() before registering device

2019-12-09 Thread Thomas Zimmermann
The load/unload callbacks in struct drm_driver are deprecated. Remove them and call functions explicitly. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 44 + 1 file changed, 38 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/vm

[Bug 108514] heavy screen flickering with Mobility Radeon X1600 and kernel version 3.15rc2 onward

2019-12-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108514 Michel Dänzer changed: What|Removed |Added Status|VERIFIED|RESOLVED -- You are receiving this mai

Re: [PATCH v4] pci: prevent putting nvidia GPUs into lower device states on certain intel bridges

2019-12-09 Thread Karol Herbst
anybody any other ideas? It seems that both patches don't really fix the issue and I have no idea left on my side to try out. The only thing left I could do to further investigate would be to reverse engineer the Nvidia driver as they support runpm on Turing+ GPUs now, but I've heard users having s

Re: [PATCH v4] pci: prevent putting nvidia GPUs into lower device states on certain intel bridges

2019-12-09 Thread Rafael J. Wysocki
On Mon, Dec 9, 2019 at 12:17 PM Karol Herbst wrote: > > anybody any other ideas? Not yet, but I'm trying to collect some more information. > It seems that both patches don't really fix > the issue and I have no idea left on my side to try out. The only > thing left I could do to further investig

[PATCH v3 3/9] drm/nouveau: fault: Add support for GP10B

2019-12-09 Thread Thierry Reding
From: Thierry Reding There is no BAR2 on GP10B and there is no need to map through BAR2 because all memory is shared between the GPU and the CPU. Add a custom implementation of the fault sub-device that uses nvkm_memory_addr() instead of nvkm_memory_bar2() to return the address of a pinned fault

[PATCH v3 2/9] iommu: Add dummy dev_iommu_fwspec_get() helper

2019-12-09 Thread Thierry Reding
From: Thierry Reding This dummy implementation is useful to avoid a dependency on the IOMMU_API Kconfig symbol in drivers that can optionally use the IOMMU API. In order to fully use this, also move the struct iommu_fwspec definition out of the IOMMU_API protected region. Acked-by: Joerg Roedel

[PATCH v3 1/9] iommu: Document iommu_fwspec::flags field

2019-12-09 Thread Thierry Reding
From: Thierry Reding When this field was added in commit 5702ee24182f ("ACPI/IORT: Check ATS capability in root complex nodes"), the kerneldoc comment wasn't updated at the same time. Acked-by: Joerg Roedel Signed-off-by: Thierry Reding --- include/linux/iommu.h | 1 + 1 file changed, 1 inser

[PATCH v3 0/9] drm/nouveau: Various fixes for GP10B

2019-12-09 Thread Thierry Reding
From: Thierry Reding Hi Ben, here's a revised subset of the patches I had sent out a couple of weeks ago. I've reworked the BAR2 accesses in the way that you had suggested, which at least for GP10B turned out to be fairly trivial to do. I have not looked in detail at this for GV11B yet, but a cu

[PATCH v3 4/9] drm/nouveau: tegra: Do not try to disable PCI device

2019-12-09 Thread Thierry Reding
From: Thierry Reding When Nouveau is instantiated on top of a platform device, the dev->pdev field will be NULL and calling pci_disable_device() will crash. Move the PCI disabling code to the PCI specific driver removal code. Signed-off-by: Thierry Reding --- drivers/gpu/drm/nouveau/nouveau_dr

[PATCH v3 5/9] drm/nouveau: tegra: Avoid pulsing reset twice

2019-12-09 Thread Thierry Reding
From: Thierry Reding When the GPU powergate is controlled by a generic power domain provider, the reset will automatically be asserted and deasserted as part of the power-ungating procedure. On some Jetson TX2 boards, doing an additional assert and deassert of the GPU outside of the power-ungate

[PATCH v3 8/9] drm/nouveau: gp10b: Add custom L2 cache implementation

2019-12-09 Thread Thierry Reding
From: Thierry Reding There are extra registers that need to be programmed to make the level 2 cache work on GP10B, such as the stream ID register that is used when an SMMU is used to translate memory addresses. Signed-off-by: Thierry Reding --- Changes in v2: - remove IOMMU_API protection to in

[PATCH v3 6/9] drm/nouveau: tegra: Set clock rate if not set

2019-12-09 Thread Thierry Reding
From: Thierry Reding If the GPU clock has not had a rate set, initialize it to the maximum clock rate to make sure it does run. Signed-off-by: Thierry Reding --- drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm

[PATCH v3 7/9] drm/nouveau: secboot: Read WPR configuration from GPU registers

2019-12-09 Thread Thierry Reding
From: Thierry Reding The GPUs found on Tegra SoCs have registers that can be used to read the WPR configuration. Use these registers instead of reaching into the memory controller's register space to read the same information. Signed-off-by: Thierry Reding --- .../drm/nouveau/nvkm/subdev/secbo

[PATCH v3 9/9] drm/nouveau: gp10b: Use correct copy engine

2019-12-09 Thread Thierry Reding
From: Thierry Reding gp10b uses the new engine enumeration mechanism introduced in the Pascal architecture. As a result, the copy engine, which used to be at index 2 for prior Tegra GPU instantiations, has now moved to index 0. Fix up the index and also use the gp100 variant of the copy engine cl

Re: [PATCH v4] pci: prevent putting nvidia GPUs into lower device states on certain intel bridges

2019-12-09 Thread Karol Herbst
On Mon, Dec 9, 2019 at 12:39 PM Rafael J. Wysocki wrote: > > On Mon, Dec 9, 2019 at 12:17 PM Karol Herbst wrote: > > > > anybody any other ideas? > > Not yet, but I'm trying to collect some more information. > > > It seems that both patches don't really fix > > the issue and I have no idea left o

[PATCH] drm/omapdrm: Fix trivial spelling

2019-12-09 Thread Kieran Bingham
Fix trivial spelling identified while examining the code. s/supprted./supported./ Signed-off-by: Kieran Bingham --- drivers/gpu/drm/omapdrm/omap_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/omapdrm/omap_crtc.c b/drivers/gpu/drm/omapdrm/omap

Re: [PATCH] drm: rcar-du: Add r8a77980 support

2019-12-09 Thread Kieran Bingham
Hi Laurent, On 13/09/2019 10:03, Laurent Pinchart wrote: > Hello, > > On Fri, Sep 13, 2019 at 10:21:29AM +0200, Simon Horman wrote: >> On Thu, Sep 12, 2019 at 01:00:41PM +0300, Sergei Shtylyov wrote: >>> On 11.09.2019 22:25, Kieran Bingham wrote: >>> Add direct support for the r8a77980 (V3H)

Re: [PATCH] drm/omapdrm: Fix trivial spelling

2019-12-09 Thread Laurent Pinchart
Hi Kieran, Thank you for the patch. On Mon, Dec 09, 2019 at 12:33:19PM +, Kieran Bingham wrote: > Fix trivial spelling identified while examining the code. > > s/supprted./supported./ > > Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart > --- > drivers/gpu/drm/omapdrm/

[PATCH v2 1/2] gpu: host1x: Rename "parent" to "host"

2019-12-09 Thread Thierry Reding
From: Thierry Reding Rename the host1x clients' parent to "host" because that more closely describes what it is. The parent can be confused with the parent device in terms of the device hierarchy. Subsequent patches will add a new member that refers to the parent in that hierarchy. Signed-off-by

[PATCH v2 2/2] drm/tegra: Do not implement runtime PM

2019-12-09 Thread Thierry Reding
From: Thierry Reding The Tegra DRM driver heavily relies on the implementations for runtime suspend/resume to be called at specific times. Unfortunately, there are some cases where that doesn't work. One example is if the user disables runtime PM for a given subdevice. Another example is that the

Re: [PATCH] drm/panel: Add Boe Himax8279d MIPI-DSI LCD panel

2019-12-09 Thread Emil Velikov
On Mon, 9 Dec 2019 at 09:47, Jerry Han wrote: > > Support Boe Himax8279d 8.0" 1200x1920 TFT LCD panel, it is a MIPI DSI > panel. > > V9: > - Adjust init code, make the format more concise > - kill off default_off_cmds (Emil) > - use mipi_dsi_dcs_set_display_{on,off} in their enable/disable > c

Re: [Intel-gfx] [PATCH v3 09/12] HID: picoLCD: constify fb ops

2019-12-09 Thread Jani Nikula
On Tue, 03 Dec 2019, Jani Nikula wrote: > Now that the fbops member of struct fb_info is const, we can start > making the ops const as well. > > v2: fix typo (Christophe de Dinechin) > > Cc: Bruno Prémont > Cc: linux-in...@vger.kernel.org > Reviewed-by: Daniel Vetter > Acked-by: Bruno Prém

Re: [PATCH v3 11/12] samples: vfio-mdev: constify fb ops

2019-12-09 Thread Jani Nikula
On Tue, 03 Dec 2019, Jani Nikula wrote: > Now that the fbops member of struct fb_info is const, we can start > making the ops const as well. > > v2: fix typo (Christophe de Dinechin) > > Cc: Kirti Wankhede > Cc: k...@vger.kernel.org > Reviewed-by: Daniel Vetter > Signed-off-by: Jani Nikula

Re: [PATCH v3 12/12] auxdisplay: constify fb ops

2019-12-09 Thread Jani Nikula
On Tue, 03 Dec 2019, Jani Nikula wrote: > Now that the fbops member of struct fb_info is const, we can start > making the ops const as well. > > Cc: Miguel Ojeda Sandonis > Cc: Robin van der Gracht > Reviewed-by: Daniel Vetter > Reviewed-by: Miguel Ojeda > Acked-by: Robin van der Gracht > Sig

Re: [PATCH v8 11/17] drm/dp_mst: Add DSC enablement helpers to DRM

2019-12-09 Thread Mikita Lipski
On 12/6/19 7:24 PM, Lyude Paul wrote: Nice! All I've got is a couple of typos I noticed and one question, this looks great :) Thanks! I'll clean it up. The response to the question is below. On Tue, 2019-12-03 at 09:35 -0500, mikita.lip...@amd.com wrote: From: Mikita Lipski Adding a helpe

Re: [PATCH] drm/vmwgfx: Replace deprecated PTR_RET

2019-12-09 Thread Thomas Hellstrom
On Sun, 2019-12-08 at 11:53 +0100, Lukas Bulwahn wrote: > Commit 508108ea2747 ("drm/vmwgfx: Don't refcount command-buffer > managed > resource lookups during command buffer validation") slips in use of > deprecated PTR_RET. Use PTR_ERR_OR_ZERO instead. > > As the PTR_ERR_OR_ZERO is a bit longer th

Re: [PATCH v3 4/4] drm/fb-helper: Synchronize dirty worker with vblank

2019-12-09 Thread Emil Velikov
Hi Thomas, On Thu, 5 Dec 2019 at 16:01, Thomas Zimmermann wrote: > > Before updating the display from the console's shadow buffer, the dirty > worker now waits for a vblank. This allows several screen updates to pile > up and acts as a rate limiter. If a DRM master is present, it could > interfer

[PATCH v5 5/6] dt-bindings: display: rockchip-dsi: add px30 compatible

2019-12-09 Thread Heiko Stuebner
From: Heiko Stuebner The px30 SoC also uses a dw-mipi-dsi controller, so add the compatible value for it. changes in v5: - rebased on top of 5.5-rc1 - merged with dsi timing change to prevent ordering conflicts Signed-off-by: Heiko Stuebner Acked-by: Rob Herring --- .../bindings/display/rock

[PATCH v5 0/6] drm/rockchip: px30 dsi support

2019-12-09 Thread Heiko Stuebner
From: Heiko Stuebner This series addes support for the px30 Rockchip soc to the dsi driver. This includes support for external dsi-phys like used on the px30. What happened between v1 and v5? The then separate dsi hs2lp timing patch happened ;-) . As both it and this series touch similar areas i

[PATCH v5 3/6] dt-bindings: display: rockchip-dsi: document external phys

2019-12-09 Thread Heiko Stuebner
From: Heiko Stuebner Some dw-mipi-dsi instances in Rockchip SoCs use external dphys. In these cases the needs clock will also be generated externally so these don't need the ref-clock as well. changes in v5: - rebased on top of 5.5-rc1 - merged with dsi timing change to prevent ordering conflict

[PATCH v5 4/6] drm/rockchip: add ability to handle external dphys in mipi-dsi

2019-12-09 Thread Heiko Stuebner
From: Heiko Stuebner While the common case is that the dsi controller uses an internal dphy, accessed through the phy registers inside the dsi controller, there is also the possibility to use a separate dphy from a different vendor. One such case is the Rockchip px30 that uses a Innosilicon Mipi

[PATCH v5 1/6] drm/bridge/synopsys: dsi: driver-specific configuration of phy timings

2019-12-09 Thread Heiko Stuebner
From: Heiko Stuebner The timing values for dw-dsi are often dependent on the used display and according to Philippe Cornu will most likely also depend on the used phy technology in the soc-specific implementation. To solve this and allow specific implementations to define them as needed add a ne

[PATCH v5 6/6] drm/rockchip: dsi: add px30 support

2019-12-09 Thread Heiko Stuebner
From: Heiko Stuebner Add the compatible and GRF definitions for the PX30 soc. changes in v5: - rebased on top of 5.5-rc1 - merged with dsi timing change to prevent ordering conflicts Signed-off-by: Heiko Stuebner --- .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c | 27 +++ 1 fi

[PATCH v5 2/6] drm/bridge/synopsys: dsi: move phy_ops callbacks around panel enablement

2019-12-09 Thread Heiko Stuebner
From: Heiko Stuebner If implementation-specific phy_ops need to be defined they probably should be enabled before trying to talk to the panel and disabled only after the panel was disabled. Right now they are enabled last and disabled first, so might make it impossible to talk to some panels - e

Re: [PATCH v2 4/9] drm/udl: Inline DPMS code into CRTC enable and disable functions

2019-12-09 Thread Emil Velikov
On Fri, 6 Dec 2019 at 12:47, Thomas Zimmermann wrote: > > DPMS functionality is only used by the CRTC's enable and disable > functions. Inline the code. > > Signed-off-by: Thomas Zimmermann > --- > drivers/gpu/drm/udl/udl_modeset.c | 84 +++ > 1 file changed, 30 inser

[PATCH 2/3] dt-bindings: display: panel: Add binding document for Xinpeng XPP055C272

2019-12-09 Thread Heiko Stuebner
From: Heiko Stuebner The XPP055C272 is a 5.5" 720x1280 DSI display. Signed-off-by: Heiko Stuebner --- .../display/panel/xinpeng,xpp055c272.yaml | 45 +++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/xinpeng,xpp055c272

[PATCH v2 1/3] drm/tilcdc: Remove obsolete bundled tilcdc tfp410 driver

2019-12-09 Thread Jyri Sarha
Remove obsolete bundled tfp410 driver with its "ti,tilcdc,tfp410" devicetree binding. No platform has ever used this driver in the mainline kernel and if anybody connects tfp410 to tilcdc he or she should use the generic drm tfp410 bridge driver. Signed-off-by: Jyri Sarha Reviewed-by: Laurent Pin

[PATCH v2 0/3] drm/tilcdc: Remove "ti, tilcdc, tfp410" and mark "ti, tilcdc, panel" obsolete

2019-12-09 Thread Jyri Sarha
Since v1: - Add Reviewed-by: Laurent Pinchart to "drm/tilcdc: Remove obsolete bundled tilcdc tfp410 driver" - Add "drm/tilcdc: panel: Add WARN() with a comment to tilcdc-panel probe" Nobody should any more use the old tilcdc bundled drivers anymore. The driver is fully capable of using the gene

[PATCH 1/3] dt-bindings: Add vendor prefix for Xinpeng Technology

2019-12-09 Thread Heiko Stuebner
From: Heiko Stuebner Shenzhen Xinpeng Technology Co., Ltd produces for example display panels. Signed-off-by: Heiko Stuebner --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml

[PATCH 3/3] drm/panel: add panel driver for Xinpeng XPP055C272 panels

2019-12-09 Thread Heiko Stuebner
From: Heiko Stuebner Base on the somewhat similar Rocktech driver but adapted for panel-specific init of the XPP055C272. Signed-off-by: Heiko Stuebner --- drivers/gpu/drm/panel/Kconfig | 10 + drivers/gpu/drm/panel/Makefile| 1 + .../gpu/drm/panel/panel-xinpe

[PATCH v2 3/3] drm/tilcdc: panel: Add WARN() with a comment to tilcdc-panel probe

2019-12-09 Thread Jyri Sarha
Add WARN() to the beginnig of tilcdc-panel probe. The obsolete tilcdc-panel driver should not be used anymore, since tilcdc is fully capable of using generic drm panels like panel-simple and panel-common binding. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_panel.c | 10 ++

[PATCH v2 2/3] dt-bindings: display: Add obsolete note to "ti, tilcdc, panel" binding

2019-12-09 Thread Jyri Sarha
The "ti,tilcdc,panel" binding should not be used anymore, since tilcdc is fully capable of using generic drm panels like panel-simple and panel-common binding. However, the obsolete binding is still widely used in many mainline supported platforms that I do not have access to and who knows how many

[Intel-gfx][PATCH] drm/i915/display: cleanup intel_bw_state on i915 module removal

2019-12-09 Thread Pankaj Bharadiya
intel_bw_state allocated memory is not getting freed even after module removal. kmemleak reported backtrace: [<79019739>] kmemdup+0x17/0x40 [] intel_bw_duplicate_state+0x1b/0x40 [i915] [<7423ed0c>] drm_atomic_get_private_obj_state+0xca/0x140 [<000

Re: [PATCH v2 3/3] drm/tilcdc: panel: Add WARN() with a comment to tilcdc-panel probe

2019-12-09 Thread Laurent Pinchart
Hi Jyri, Thank you for the patch. On Mon, Dec 09, 2019 at 04:42:16PM +0200, Jyri Sarha wrote: > Add WARN() to the beginnig of tilcdc-panel probe. The obsolete s/beginnig/beginning/ > tilcdc-panel driver should not be used anymore, since tilcdc is fully > capable of using generic drm panels like

Re: [PATCH v2 2/3] dt-bindings: display: Add obsolete note to "ti,tilcdc,panel" binding

2019-12-09 Thread Laurent Pinchart
Hi Jyri, Thank you for the patch. On Mon, Dec 09, 2019 at 04:42:15PM +0200, Jyri Sarha wrote: > The "ti,tilcdc,panel" binding should not be used anymore, since tilcdc > is fully capable of using generic drm panels like panel-simple and > panel-common binding. However, the obsolete binding is stil

Re: [PATCH RESEND 1/4] dt-bindings: drm/bridge: analogix-anx7688: Add ANX7688 transmitter binding

2019-12-09 Thread Laurent Pinchart
Hi Hsin-Yi, Thank you for the patch. On Mon, Dec 09, 2019 at 10:50:13PM +0800, Hsin-Yi Wang wrote: > From: Nicolas Boichat > > Add support for analogix,anx7688 > > Signed-off-by: Nicolas Boichat > Signed-off-by: Hsin-Yi Wang > --- > .../bindings/display/bridge/anx7688.txt | 32 +++

Re: [PATCH RESEND 3/4] dt-bindings: drm/bridge: analogix-anx78xx: support bypass GPIO

2019-12-09 Thread Laurent Pinchart
Hi Hsin-Yi, Thank you for the patch. On Mon, Dec 09, 2019 at 10:50:15PM +0800, Hsin-Yi Wang wrote: > Support optional feature: bypass GPIO. > > Some SoC (eg. mt8173) have a hardware mux that connects to 2 ports: > anx7688 and hdmi. When the GPIO is active, the bridge is bypassed. This doesn't l

Re: [PATCH v3 2/2] drm/bridge: tc358767: Expose test mode functionality via debugfs

2019-12-09 Thread Tomi Valkeinen
On 09/12/2019 16:38, Andrey Smirnov wrote: On Mon, Dec 9, 2019 at 1:38 AM Tomi Valkeinen wrote: (Cc'ing Daniel for the last paragraph) On 09/12/2019 07:08, Andrey Smirnov wrote: Presently, the driver code artificially limits test pattern mode to a single pattern with fixed color selection. I

[Bug 205815] New: When playing a wine game, got black screen then screen flickers, game crashes and back to normal

2019-12-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=205815 Bug ID: 205815 Summary: When playing a wine game, got black screen then screen flickers, game crashes and back to normal Product: Drivers Version: 2.5 Kernel Version: 5.4.2-1~exp

  1   2   >