[PATCH] drm/komeda: Adds power management support

2019-06-30 Thread Lowry Li (Arm Technology China)
From: "Lowry Li (Arm Technology China)" Adds system power management support in KMS kernel driver. Depends on: - https://patchwork.freedesktop.org/series/61650/ - https://patchwork.freedesktop.org/series/60083/ Changes since v1: Since we have unified mclk/pclk/pipeline->aclk to one mclk, which

Re: [PATCH v1 31/33] drm/bochs: drop use of drmP.h

2019-06-30 Thread Gerd Hoffmann
On Sun, Jun 30, 2019 at 08:19:20AM +0200, Sam Ravnborg wrote: > Drop use of the deprecated drmP.h header file. > Made bochs.h self-contained and then fixed > fallout in remaining files. > Several unused includes was dropped in the process. > > Signed-off-by: Sam Ravnborg > Cc: Gerd Hoffmann > Cc

Re: [PATCH v1 09/33] drm/qxl: drop use of drmP.h

2019-06-30 Thread Gerd Hoffmann
On Sun, Jun 30, 2019 at 08:18:58AM +0200, Sam Ravnborg wrote: > Drop use of the deprecated drmP.h header file. > While touching the files divided includes in blocks, > and when needed sort the blocks. > Fix fallout. > > Signed-off-by: Sam Ravnborg > Cc: Dave Airlie > Cc: Gerd Hoffmann > Cc: vir

Re: [PATCH v1 27/33] drm/virtgpu: drop use of drmP.h

2019-06-30 Thread Gerd Hoffmann
On Sun, Jun 30, 2019 at 08:19:16AM +0200, Sam Ravnborg wrote: > Drop use of the deprecated drmP.h header file. > Fix fallout by adding missing include files. > > Signed-off-by: Sam Ravnborg > Cc: David Airlie > Cc: Gerd Hoffmann > Cc: Daniel Vetter > Cc: virtualizat...@lists.linux-foundation.o

Re: [PATCH 1/4] drm/vram: Set GEM object functions for PRIME

2019-06-30 Thread Gerd Hoffmann
On Fri, Jun 28, 2019 at 02:26:56PM +0200, Thomas Zimmermann wrote: > PRIME functionality is now provided via the callback functions in > struct drm_gem_object_funcs. The driver-structure functions are obsolete. > As a side effect of this patch, VRAM-based drivers get basic PRIME > support automatic

[Bug 201465] Increased power consumption when using runtime-pm to suspend nvidia gpu

2019-06-30 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=201465 Zhang Rui (rui.zh...@intel.com) changed: What|Removed |Added CC||rui.zh...@intel.com

Re: [PATCH v1 02/33] drm/xen: drop use of drmP.h

2019-06-30 Thread Sam Ravnborg
Hi Oleksandr > > --- a/drivers/gpu/drm/xen/xen_drm_front.h > > +++ b/drivers/gpu/drm/xen/xen_drm_front.h > > @@ -11,13 +11,19 @@ > > #ifndef __XEN_DRM_FRONT_H_ > > #define __XEN_DRM_FRONT_H_ > > -#include > > -#include > > - > > #include > > +#include > > +#include > > +#include > no n

Re: [PATCH v1 02/33] drm/xen: drop use of drmP.h

2019-06-30 Thread Oleksandr Andrushchenko
On 6/30/19 9:18 AM, Sam Ravnborg wrote: The drmP.h header is deprecated. Drop all uses. Added includes/forwards to the header files and then fixed fallout in the .c files. Signed-off-by: Sam Ravnborg Cc: Oleksandr Andrushchenko Cc: xen-de...@lists.xenproject.org --- The list of cc: was too la

Re: [PATCH v5 08/12] dt-bindings: mediatek: Change the binding for mmsys clocks

2019-06-30 Thread CK Hu
Hi, Matthias: On Fri, 2018-11-30 at 16:59 +0800, Matthias Brugger wrote: > > On 30/11/2018 07:43, Stephen Boyd wrote: > > Quoting Matthias Brugger (2018-11-21 09:09:52) > >> > >> > >> On 21/11/2018 17:46, Stephen Boyd wrote: > >>> Quoting Rob Herring (2018-11-19 11:15:16) > On Sun, Nov 18, 2

[Bug 111010] Cemu Shader Cache Corruption Displaying Solid Color After commit 11e16ca7ce0

2019-06-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111010 --- Comment #3 from e88z4 --- I applied your patch to the latest mesa git-2042f22e28. Your patch fixed the issue. You can close this bug. Thank for responding so quickly. -- You are receiving this mail because: You are the assignee for the bug

Re: [PATCH 00/10] drm/vkms: rework crc worker

2019-06-30 Thread Rodrigo Siqueira
On 06/26, Daniel Vetter wrote: > On Wed, Jun 26, 2019 at 3:44 AM Rodrigo Siqueira > wrote: > > > > On 06/19, Daniel Vetter wrote: > > > On Tue, Jun 18, 2019 at 11:54 PM Rodrigo Siqueira > > > wrote: > > > > > > > > On Tue, Jun 18, 2019 at 5:56 AM Daniel Vetter wrote: > > > > > > > > > > On Mon,

[PATCH 2/2] drm/vkms: Introduce configfs for enabling/disabling connectors

2019-06-30 Thread Rodrigo Siqueira
This patch introduces an implementation of vkms subsystems through configfs; we want to be able to reconfigure vkms instance without having to reload the module. This commit adds the primary support for configfs by allowing vkms to expose the ability to enable/disable its connectors. Signed-off-by

[PATCH 1/2] drm/vkms: Add enable/disable functions per connector

2019-06-30 Thread Rodrigo Siqueira
Currently, virtual and writeback connectors have the code responsible for initialization and cleanup spread around different places in vkms. This patch creates an enable and disable function per connector which allows vkms to hotplug connectors easily. Signed-off-by: Rodrigo Siqueira --- drivers

[PATCH 0/2] drm/vkms: Introduce basic support for configfs

2019-06-30 Thread Rodrigo Siqueira
This patchset introduces the support for configfs in vkms by adding a primary structure for handling the vkms subsystem and exposing connectors as a use case. This series allows enabling/disabling virtual and writeback connectors on the fly. The first patch of this series reworks the initializatio

[Bug 111010] Cemu Shader Cache Corruption Displaying Solid Color After commit 11e16ca7ce0

2019-06-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111010 --- Comment #2 from Timothy Arceri --- (In reply to Timothy Arceri from comment #1) > Thanks for the top quality bug report! > > Just to be clear before 11e16ca7ce0 Cemu wasn't actually making use of the > cache as it was disabled for core prof

[Bug 111010] Cemu Shader Cache Corruption Displaying Solid Color After commit 11e16ca7ce0

2019-06-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111010 --- Comment #1 from Timothy Arceri --- Thanks for the top quality bug report! Just to be clear before 11e16ca7ce0 Cemu wasn't actually making use of the cache as it was disabled for core profiles (which Cemu uses). Enabling it uncovered a bug w

Re: [PATCH v4 4/4] drm/mtk: add panel orientation property

2019-06-30 Thread CK Hu
Hi, Derek: On Fri, 2019-06-21 at 20:41 -0700, Derek Basehore wrote: > This inits the panel orientation property for the mediatek dsi driver > if the panel orientation (connector.display_info.panel_orientation) is > not DRM_MODE_PANEL_ORIENTATION_UNKNOWN. > Reviewed-by: CK Hu > Signed-off-by: D

Re: [v5 6/7] drm/mediatek: change the dsi phytiming calculate method

2019-06-30 Thread CK Hu
Hi, Jitao: On Thu, 2019-06-27 at 16:01 +0800, Jitao Shi wrote: > Change the method of frame rate calc which can get more accurate > frame rate. > > data rate = pixel_clock * bit_per_pixel / lanes > Adjust hfp_wc to adapt the additional phy_data > > if MIPI_DSI_MODE_VIDEO_BURST > hfp_wc = h

Re: [v5 4/7] drm/mediatek: add frame size control

2019-06-30 Thread CK Hu
Hi, Jitao: On Thu, 2019-06-27 at 16:01 +0800, Jitao Shi wrote: > Our new DSI chip has frame size control. > So add the driver data to control for different chips. > > Signed-off-by: Jitao Shi > Reviewed-by: CK Hu This version is different than previous version, so you should remove the reviewe

Re: [PATCH 4/4] drm/bridge: ti-sn65dsi86: use helper to lookup panel-id

2019-06-30 Thread Rob Clark
On Sun, Jun 30, 2019 at 2:58 PM Laurent Pinchart wrote: > > Hi Rob, > > On Sun, Jun 30, 2019 at 02:50:59PM -0700, Rob Clark wrote: > > On Sun, Jun 30, 2019 at 2:17 PM Laurent Pinchart wrote: > > > On Sun, Jun 30, 2019 at 01:36:08PM -0700, Rob Clark wrote: > > > > From: Rob Clark > > > > > > > > U

Re: [PATCH 4/4] drm/bridge: ti-sn65dsi86: use helper to lookup panel-id

2019-06-30 Thread Laurent Pinchart
Hi Rob, On Sun, Jun 30, 2019 at 02:50:59PM -0700, Rob Clark wrote: > On Sun, Jun 30, 2019 at 2:17 PM Laurent Pinchart wrote: > > On Sun, Jun 30, 2019 at 01:36:08PM -0700, Rob Clark wrote: > > > From: Rob Clark > > > > > > Use the drm_of_find_panel_id() helper to decide which endpoint to use > > >

Re: [PATCH 4/4] drm/bridge: ti-sn65dsi86: use helper to lookup panel-id

2019-06-30 Thread Rob Clark
On Sun, Jun 30, 2019 at 2:17 PM Laurent Pinchart wrote: > > Hi Rob, > > Thank you for the patch. > > On Sun, Jun 30, 2019 at 01:36:08PM -0700, Rob Clark wrote: > > From: Rob Clark > > > > Use the drm_of_find_panel_id() helper to decide which endpoint to use > > when looking up panel. This way we

Re: [PATCH 0/4] drm+dt+efi: support devices with multiple possible panels

2019-06-30 Thread Rob Clark
On Sun, Jun 30, 2019 at 2:15 PM Laurent Pinchart wrote: > > Hi Rob, > > On Sun, Jun 30, 2019 at 02:05:21PM -0700, Rob Clark wrote: > > On Sun, Jun 30, 2019 at 1:47 PM Laurent Pinchart wrote: > > > On Sun, Jun 30, 2019 at 01:36:04PM -0700, Rob Clark wrote: > > > > From: Rob Clark > > > > > > > > N

Re: [PATCH 4/4] drm/bridge: ti-sn65dsi86: use helper to lookup panel-id

2019-06-30 Thread Laurent Pinchart
Hi Rob, Thank you for the patch. On Sun, Jun 30, 2019 at 01:36:08PM -0700, Rob Clark wrote: > From: Rob Clark > > Use the drm_of_find_panel_id() helper to decide which endpoint to use > when looking up panel. This way we can support devices that have > multiple possible panels, such as the aar

Re: [PATCH 0/4] drm+dt+efi: support devices with multiple possible panels

2019-06-30 Thread Laurent Pinchart
Hi Rob, On Sun, Jun 30, 2019 at 02:05:21PM -0700, Rob Clark wrote: > On Sun, Jun 30, 2019 at 1:47 PM Laurent Pinchart wrote: > > On Sun, Jun 30, 2019 at 01:36:04PM -0700, Rob Clark wrote: > > > From: Rob Clark > > > > > > Now that we can deal gracefully with bootloader (firmware) initialized > >

Re: [PATCH 0/4] drm+dt+efi: support devices with multiple possible panels

2019-06-30 Thread Rob Clark
On Sun, Jun 30, 2019 at 1:47 PM Laurent Pinchart wrote: > > Hi Rob, > > Thank you for the patch. > > On Sun, Jun 30, 2019 at 01:36:04PM -0700, Rob Clark wrote: > > From: Rob Clark > > > > Now that we can deal gracefully with bootloader (firmware) initialized > > display on aarch64 laptops[1], the

Re: [PATCH 1/3] DRM: ingenic: Use devm_platform_ioremap_resource

2019-06-30 Thread Sam Ravnborg
Hi Paul. > > > > > > -mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); > > > -base = devm_ioremap_resource(dev, mem); > > > +base = devm_platform_ioremap_resource(pdev, 0); > > > if (IS_ERR(base)) { > > > dev_err(dev, "Failed to get memo

Re: [PATCH v5 2/7] drm/panel: simple: Add ability to override typical timing

2019-06-30 Thread Sam Ravnborg
Hi Douglas. > > + > > + /* Only add timings if override was not there or failed to validate */ > > + if (num == 0 && panel->desc->num_timings) > > + num = panel_simple_get_timings_modes(panel); > > + > > + /* > > +* Only add fixed modes if timings/override added no mode. > > T

Re: [PATCH 0/4] drm+dt+efi: support devices with multiple possible panels

2019-06-30 Thread Laurent Pinchart
Hi Rob, Thank you for the patch. On Sun, Jun 30, 2019 at 01:36:04PM -0700, Rob Clark wrote: > From: Rob Clark > > Now that we can deal gracefully with bootloader (firmware) initialized > display on aarch64 laptops[1], the next step is to deal with the fact > that the same model of laptop can ha

[PATCH 1/4] dt-bindings: chosen: document panel-id binding

2019-06-30 Thread Rob Clark
From: Rob Clark The panel-id property in chosen can be used to communicate which panel, of multiple possibilities, is installed. Signed-off-by: Rob Clark --- Documentation/devicetree/bindings/chosen.txt | 69 1 file changed, 69 insertions(+) diff --git a/Documentation/dev

[PATCH 4/4] drm/bridge: ti-sn65dsi86: use helper to lookup panel-id

2019-06-30 Thread Rob Clark
From: Rob Clark Use the drm_of_find_panel_id() helper to decide which endpoint to use when looking up panel. This way we can support devices that have multiple possible panels, such as the aarch64 laptops. Signed-off-by: Rob Clark --- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 5 +++-- 1 file ch

[PATCH 3/4] drm: add helper to lookup panel-id

2019-06-30 Thread Rob Clark
From: Rob Clark Finds the panel-id from chosen, so drivers can use this to pick the correct endpoint when looking up panel. Signed-off-by: Rob Clark --- drivers/gpu/drm/drm_of.c | 21 + include/drm/drm_of.h | 7 +++ 2 files changed, 28 insertions(+) diff --git a/d

[PATCH 2/4] efi/libstub: detect panel-id

2019-06-30 Thread Rob Clark
From: Rob Clark On snapdragon aarch64 laptops, a 'UEFIDisplayInfo' variable is provided to communicate some information about the display. Crutially it has the panel-id, so the appropriate panel driver can be selected. Read this out and stash in /chosen/panel-id so that display driver can use i

[PATCH 0/4] drm+dt+efi: support devices with multiple possible panels

2019-06-30 Thread Rob Clark
From: Rob Clark Now that we can deal gracefully with bootloader (firmware) initialized display on aarch64 laptops[1], the next step is to deal with the fact that the same model of laptop can have one of multiple different panels. (For the yoga c630 that I have, I know of at least two possible pan

Re: [PATCH v5 2/7] drm/panel: simple: Add ability to override typical timing

2019-06-30 Thread Sam Ravnborg
Hi Douglas. Again, long overdue. The review triggered several questions that you should have had a long time ago. Hopefully they makes sense to you. Sam On Mon, Apr 01, 2019 at 10:17:19AM -0700, Douglas Anderson wrote: > From: Sean Paul > > This patch adds the ability to override the t

Re: [PATCH v5 1/7] dt-bindings: Add panel-timing subnode to simple-panel

2019-06-30 Thread Sam Ravnborg
Hi Douglas. Some long overdue review feedback. On Mon, Apr 01, 2019 at 10:17:18AM -0700, Douglas Anderson wrote: > From: Sean Paul > > This patch adds a new subnode to simple-panel allowing us to override > the typical timing expressed in the panel's display_timing. > > Changes in v2: > - Spl

Re: [PATCH v4 02/12] drm/virtio: switch virtio_gpu_wait_ioctl() to gem helper.

2019-06-30 Thread Chia-I Wu
On Fri, Jun 28, 2019 at 3:05 AM Gerd Hoffmann wrote: > > On Wed, Jun 26, 2019 at 04:55:20PM -0700, Chia-I Wu wrote: > > On Wed, Jun 19, 2019 at 11:07 PM Gerd Hoffmann wrote: > > > > > > Use drm_gem_reservation_object_wait() in virtio_gpu_wait_ioctl(). > > > This also makes the ioctl run lockless.

Re: [PATCH v4 08/12] drm/virtio: rework virtio_gpu_execbuffer_ioctl fencing

2019-06-30 Thread Chia-I Wu
On Fri, Jun 28, 2019 at 3:34 AM Gerd Hoffmann wrote: > > Hi, > > > > --- a/drivers/gpu/drm/virtio/virtgpu_drv.h > > > +++ b/drivers/gpu/drm/virtio/virtgpu_drv.h > > > @@ -120,9 +120,9 @@ struct virtio_gpu_vbuffer { > > > > > > char *resp_buf; > > > int resp_size; > > > - > > >

Re: [PATCH v4 11/12] drm/virtio: switch from ttm to gem shmem helpers

2019-06-30 Thread Chia-I Wu
On Fri, Jun 28, 2019 at 3:49 AM Gerd Hoffmann wrote: > > > > static inline struct virtio_gpu_object* > > > virtio_gpu_object_ref(struct virtio_gpu_object *bo) > > > The last users of these two helpers are removed with this patch. We > > can remove them. > > patch 12/12 does that. I meant virtio

Re: [PATCH v5 08/12] drm/virtio: rework virtio_gpu_execbuffer_ioctl fencing

2019-06-30 Thread Chia-I Wu
(pressed Send too early) On Sun, Jun 30, 2019 at 11:20 AM Chia-I Wu wrote: > > On Fri, Jun 28, 2019 at 5:13 AM Gerd Hoffmann wrote: > > > > Use gem reservation helpers and direct reservation_object_* calls > > instead of ttm. > > > > v5: fix fencing (Chia-I Wu). > > v3: Also attach the array of

[PATCH v3 03/22] drm: rockchip: Provide ddc symlink in rk3066_hdmi sysfs directory

2019-06-30 Thread Andrzej Pietrasiewicz
Use the ddc pointer provided by the generic connector. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/rockchip/rk3066_hdmi.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rk3066_hdmi.c b/drivers/gpu/drm/rockchip/rk3066_h

Re: [PATCH libdrm] etnaviv: Use hash table to track BO indexes

2019-06-30 Thread Marek Vasut
On 6/28/19 1:27 PM, Wladimir J. van der Laan wrote: >> Maybe you want to look at >> https://gitlab.freedesktop.org/mesa/mesa/merge_requests/1190 >> >> I updated this patch against mesa master, apparently the libdrm-etnaviv >> bits were folded into mesa now. > > Thanks! > stream->pipe = pi

Why is Thunderbolt 3 limited to 2.5 GT/s on Linux?

2019-06-30 Thread Timur Kristóf
Hi guys, I use an AMD RX 570 in a Thunderbolt 3 external GPU box. dmesg gives me the following message: pci :3a:00.0: 8.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x4 link at :04:04.0 (capable of 31.504 Gb/s with 8 GT/s x4 link) Here is a tree view of the devices as well as th

Re: Why is Thunderbolt 3 limited to 2.5 GT/s on Linux?

2019-06-30 Thread Timur Kristóf
Hi Mika, Thanks for your quick reply. > > 1. Why are there four bridge devices? 04:00.0, 04:01.0 and 04:02.0 > > look > > superfluous to me and nothing is connected to them. It actually > > gives > > me the feeling that the TB3 driver creates 4 devices with 2.5 GT/s > > each, instead of one devic

[PATCH v3 16/22] drm/mgag200: Provide ddc symlink in connector sysfs directory

2019-06-30 Thread Andrzej Pietrasiewicz
Use the ddc pointer provided by the generic connector. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/mgag200/mgag200_mode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/mgag200/mgag200_mode.c b/drivers/gpu/drm/mgag200/mgag200_mode.c index a25054015e8c..a22dbecd

[PATCH v3 17/22] drm/ast: Provide ddc symlink in connector sysfs directory

2019-06-30 Thread Andrzej Pietrasiewicz
Use the ddc pointer provided by the generic connector. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/ast/ast_mode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c index ffccbef962a4..155c3487a1a7 100644 --- a/drivers

[PATCH v3 00/22] Associate ddc adapters with connectors

2019-06-30 Thread Andrzej Pietrasiewicz
It is difficult for a user to know which of the i2c adapters is for which drm connector. This series addresses this problem. The idea is to have a symbolic link in connector's sysfs directory, e.g.: ls -l /sys/class/drm/card0-HDMI-A-1/ddc lrwxrwxrwx 1 root root 0 Jun 24 10:42 /sys/class/drm/card0

Re: Why is Thunderbolt 3 limited to 2.5 GT/s on Linux?

2019-06-30 Thread Mika Westerberg
On Fri, Jun 28, 2019 at 12:23:09PM +0200, Timur Kristóf wrote: > Hi guys, > > I use an AMD RX 570 in a Thunderbolt 3 external GPU box. > dmesg gives me the following message: > pci :3a:00.0: 8.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x4 > link at :04:04.0 (capable of 31.504

Re: Why is Thunderbolt 3 limited to 2.5 GT/s on Linux?

2019-06-30 Thread Timur Kristóf
On Fri, 2019-06-28 at 17:14 +0300, Mika Westerberg wrote: > On Fri, Jun 28, 2019 at 03:33:56PM +0200, Timur Kristóf wrote: > > I have two more questions: > > > > 1. What is the best way to test that the virtual link is indeed > > capable > > of 40 Gbit / sec? So far I've been unable to figure out

Re: Why is Thunderbolt 3 limited to 2.5 GT/s on Linux?

2019-06-30 Thread Timur Kristóf
> Well that's the extension PCIe downstream port. The other one is > 04:01.0. > > Typically 04:00.0 and 04:00.2 are used to connect TBT (05:00.0) and > xHCI > (39:00.0) but in your case you don't seem to have USB 3 devices > connected to that so it is not present. If you plug in USB-C device > (n

[PATCH v3 10/22] drm/imx: imx-tve: Provide ddc symlink in connector's sysfs

2019-06-30 Thread Andrzej Pietrasiewicz
Use the ddc pointer provided by the generic connector. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/imx/imx-tve.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/imx/imx-tve.c b/drivers/gpu/drm/imx/imx-tve.c index e725af8a0025..b8bee4e1f169

[PATCH v3 08/22] drm/tegra: Provide ddc symlink in output connector sysfs directory

2019-06-30 Thread Andrzej Pietrasiewicz
Use the ddc pointer provided by the generic connector. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/tegra/drm.h| 1 - drivers/gpu/drm/tegra/output.c | 12 ++-- drivers/gpu/drm/tegra/sor.c| 6 +++--- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/dri

Re: Why is Thunderbolt 3 limited to 2.5 GT/s on Linux?

2019-06-30 Thread Timur Kristóf
> > Sure, though in this case 3 of those downstream ports are not > > exposed > > by the hardware, so it's a bit surprising to see them there. > > They lead to other peripherals on the TBT host router such as the TBT > controller and xHCI. Also there are two downstream ports for > extension > fro

[PATCH v3 22/22] drm/radeon: Provide ddc symlink in connector sysfs directory

2019-06-30 Thread Andrzej Pietrasiewicz
Use the ddc pointer provided by the generic connector. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/radeon/radeon_connectors.c | 82 +- 1 file changed, 63 insertions(+), 19 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c b/drivers/gpu/drm/ra

[PATCH v3 18/22] drm/bridge: dumb-vga-dac: Provide ddc symlink in connector sysfs directory

2019-06-30 Thread Andrzej Pietrasiewicz
Use the ddc pointer provided by the generic connector. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/bridge/dumb-vga-dac.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/bridge/dumb-vga-dac.c b/drivers/gpu/drm/bridge/dumb-vga-

[PATCH v3 20/22] drm/bridge: ti-tfp410: Provide ddc symlink in connector sysfs directory

2019-06-30 Thread Andrzej Pietrasiewicz
Use the ddc pointer provided by the generic connector. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/bridge/ti-tfp410.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/bridge/ti-tfp410.c b/drivers/gpu/drm/bridge/ti-tfp410.c ind

Re: [PATCH 16/25] device-dax: use the dev_pagemap internal refcount

2019-06-30 Thread Jason Gunthorpe
On Fri, Jun 28, 2019 at 10:10:12AM -0700, Dan Williams wrote: > On Fri, Jun 28, 2019 at 10:08 AM Dan Williams > wrote: > > > > On Fri, Jun 28, 2019 at 10:02 AM Jason Gunthorpe wrote: > > > > > > On Fri, Jun 28, 2019 at 09:27:44AM -0700, Dan Williams wrote: > > > > On Fri, Jun 28, 2019 at 8:39 AM

[PATCH v3 01/22] drm: Include ddc adapter pointer in struct drm_connector

2019-06-30 Thread Andrzej Pietrasiewicz
Add generic code which creates symbolic links in sysfs, pointing to ddc interface used by a particular video output. For example: ls -l /sys/class/drm/card0-HDMI-A-1/ddc lrwxrwxrwx 1 root root 0 Jun 24 10:42 /sys/class/drm/card0-HDMI-A-1/ddc \ -> ../../../../soc/1388.i2c/i2c-2 This ma

Re: Why is Thunderbolt 3 limited to 2.5 GT/s on Linux?

2019-06-30 Thread Mika Westerberg
On Fri, Jun 28, 2019 at 01:08:07PM +0200, Timur Kristóf wrote: > Hi Mika, > > Thanks for your quick reply. > > > > 1. Why are there four bridge devices? 04:00.0, 04:01.0 and 04:02.0 > > > look > > > superfluous to me and nothing is connected to them. It actually > > > gives > > > me the feeling t

Re: [RFC PATCH] drm/panfrost: Add support for mapping BOs on GPU page faults

2019-06-30 Thread Steven Price
On 27/06/2019 17:38, Rob Herring wrote: > On Thu, Jun 27, 2019 at 4:57 AM Steven Price wrote: >> >> Sorry for the slow response, I've been on holiday for a few weeks. > > Welcome back. Thanks! >> >> On 20/06/2019 06:50, Tomeu Vizoso wrote: >>> On Mon, 17 Jun 2019 at 16:56, Rob Herring wrote: >

Re: [PATCH 16/25] device-dax: use the dev_pagemap internal refcount

2019-06-30 Thread Jason Gunthorpe
On Wed, Jun 26, 2019 at 02:27:15PM +0200, Christoph Hellwig wrote: > The functionality is identical to the one currently open coded in > device-dax. > > Signed-off-by: Christoph Hellwig > Reviewed-by: Ira Weiny > --- > drivers/dax/dax-private.h | 4 > drivers/dax/device.c | 43 --

[PATCH v3 11/22] drm/vc4: Provide ddc symlink in connector sysfs directory

2019-06-30 Thread Andrzej Pietrasiewicz
Use the ddc pointer provided by the generic connector. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/vc4/vc4_hdmi.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b/drivers/gpu/drm/vc4/vc4_hdmi.c index 87ad0879edf3..

[PATCH v3 13/22] drm: zte: Provide ddc symlink in vga connector sysfs directory

2019-06-30 Thread Andrzej Pietrasiewicz
Use the ddc pointer provided by the generic connector. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/zte/zx_vga.c | 25 + 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/drivers/gpu/drm/zte/zx_vga.c b/drivers/gpu/drm/zte/zx_vga.c index 1634a08707

[PATCH v3 04/22] drm: rockchip: Provide ddc symlink in inno_hdmi sysfs directory

2019-06-30 Thread Andrzej Pietrasiewicz
Use the ddc pointer provided by the generic connector. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/rockchip/inno_hdmi.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/rockchip/inno_hdmi.c b/drivers/gpu/drm/rockchip/inno_hdmi.c

[PATCH v3 15/22] drm: sti: Provide ddc symlink in hdmi connector sysfs directory

2019-06-30 Thread Andrzej Pietrasiewicz
Use the ddc pointer provided by the generic connector. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/sti/sti_hdmi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/sti/sti_hdmi.c b/drivers/gpu/drm/sti/sti_hdmi.c index f03d617edc4c..c5e6c33ff2cd 100644 --- a/drivers

Re: [PATCH 16/25] device-dax: use the dev_pagemap internal refcount

2019-06-30 Thread Jason Gunthorpe
On Fri, Jun 28, 2019 at 09:27:44AM -0700, Dan Williams wrote: > On Fri, Jun 28, 2019 at 8:39 AM Jason Gunthorpe wrote: > > > > On Wed, Jun 26, 2019 at 02:27:15PM +0200, Christoph Hellwig wrote: > > > The functionality is identical to the one currently open coded in > > > device-dax. > > > > > > Si

[PATCH v3 06/22] drm/sun4i: hdmi: Provide ddc symlink in sun4i hdmi connector sysfs directory

2019-06-30 Thread Andrzej Pietrasiewicz
Use the ddc pointer provided by the generic connector. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/sun4i/sun4i_hdmi.h | 1 - drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c | 14 +++--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_hd

[PATCH v3 05/22] drm/msm/hdmi: Provide ddc symlink in hdmi connector sysfs directory

2019-06-30 Thread Andrzej Pietrasiewicz
Use the ddc pointer provided by the generic connector. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/msm/hdmi/hdmi_connector.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/msm/hdmi/hdmi_connector.c b/drivers/gpu/drm/msm/hdmi/hdmi_connector.c index 07b4cb877d82.

[PATCH v3 07/22] drm/mediatek: Provide ddc symlink in hdmi connector sysfs directory

2019-06-30 Thread Andrzej Pietrasiewicz
Use the ddc pointer provided by the generic connector. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/mediatek/mtk_hdmi.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_hdmi.c b/drivers/gpu/drm/mediatek/mtk_hdmi.c index 5d6a9f

[PATCH v3 19/22] drm/bridge: dw-hdmi: Provide ddc symlink in connector sysfs directory

2019-06-30 Thread Andrzej Pietrasiewicz
Use the ddc pointer provided by the generic connector. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 40 +++ 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bri

[PATCH v3 12/22] drm: zte: Provide ddc symlink in hdmi connector sysfs directory

2019-06-30 Thread Andrzej Pietrasiewicz
Use the ddc pointer provided by the generic connector. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/zte/zx_hdmi.c | 25 + 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/drivers/gpu/drm/zte/zx_hdmi.c b/drivers/gpu/drm/zte/zx_hdmi.c index bfe918b

[PATCH v3 21/22] drm/amdgpu: Provide ddc symlink in connector sysfs directory

2019-06-30 Thread Andrzej Pietrasiewicz
Use the ddc pointer provided by the generic connector. Signed-off-by: Andrzej Pietrasiewicz --- .../gpu/drm/amd/amdgpu/amdgpu_connectors.c| 70 ++- 1 file changed, 51 insertions(+), 19 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c b/drivers/gpu/dr

Re: Why is Thunderbolt 3 limited to 2.5 GT/s on Linux?

2019-06-30 Thread Mika Westerberg
On Fri, Jun 28, 2019 at 03:33:56PM +0200, Timur Kristóf wrote: > I have two more questions: > > 1. What is the best way to test that the virtual link is indeed capable > of 40 Gbit / sec? So far I've been unable to figure out how to measure > its maximum throughput. I don't think there is any goo

[PATCH v3 09/22] drm/imx: imx-ldb: Provide ddc symlink in connector's sysfs

2019-06-30 Thread Andrzej Pietrasiewicz
Use the ddc pointer provided by the generic connector. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/imx/imx-ldb.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/imx/imx-ldb.c b/drivers/gpu/drm/imx/imx-ldb.c index 383733302280..44fdb2

Re: Why is Thunderbolt 3 limited to 2.5 GT/s on Linux?

2019-06-30 Thread Mika Westerberg
On Fri, Jun 28, 2019 at 02:21:36PM +0200, Timur Kristóf wrote: > > > > Sure, though in this case 3 of those downstream ports are not > > > exposed > > > by the hardware, so it's a bit surprising to see them there. > > > > They lead to other peripherals on the TBT host router such as the TBT > > c

[PATCH v3 02/22] drm/exynos: Provide ddc symlink in connector's sysfs

2019-06-30 Thread Andrzej Pietrasiewicz
Switch to using the ddc provided by the generic connector. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/exynos/exynos_hdmi.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c in

Re: [PATCH v4 hmm 00/12]

2019-06-30 Thread Jason Gunthorpe
On Mon, Jun 24, 2019 at 06:00:58PM -0300, Jason Gunthorpe wrote: > From: Jason Gunthorpe > > This patch series arised out of discussions with Jerome when looking at the > ODP changes, particularly informed by use after free races we have already > found and fixed in the ODP code (thanks to syzkal

[PATCH v3 14/22] drm/tilcdc: Provide ddc symlink in connector sysfs directory

2019-06-30 Thread Andrzej Pietrasiewicz
Use the ddc pointer provided by the generic connector. Signed-off-by: Andrzej Pietrasiewicz --- drivers/gpu/drm/tilcdc/tilcdc_tfp410.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_tfp410.c b/drivers/gpu/drm/tilcdc/tilcdc_tfp410.c index 62d014c20988..c373edb9

Re: [PATCH v5 09/12] drm/virtio: rework virtio_gpu_object_create fencing

2019-06-30 Thread Chia-I Wu
On Fri, Jun 28, 2019 at 5:13 AM Gerd Hoffmann wrote: > > Use gem reservation helpers and direct reservation_object_* calls > instead of ttm. > > v5: fix fencing (Chia-I Wu). > v3: Due to using the gem reservation object it is initialized and ready > for use before calling ttm_bo_init, so we can al

Re: [PATCH v5 08/12] drm/virtio: rework virtio_gpu_execbuffer_ioctl fencing

2019-06-30 Thread Chia-I Wu
On Fri, Jun 28, 2019 at 5:13 AM Gerd Hoffmann wrote: > > Use gem reservation helpers and direct reservation_object_* calls > instead of ttm. > > v5: fix fencing (Chia-I Wu). > v3: Also attach the array of gem objects to the virtio command buffer, > so we can drop the object references in the compl

Re: [PATCH 4/7] gpio: of: Support some legacy Qualcomm HDMI bindings

2019-06-30 Thread Rob Clark
On Sun, Jun 30, 2019 at 8:18 AM Linus Walleij wrote: > > On Sun, Jun 30, 2019 at 3:26 PM Rob Clark wrote: > > > I'm ok with this.. although I wonder if we need to try this hard for > > backwards compat? At least I don't see any upstream dts > > using the old names. Maybe it is ok to just look t

Re: [PATCH 4/7] gpio: of: Support some legacy Qualcomm HDMI bindings

2019-06-30 Thread Linus Walleij
On Sun, Jun 30, 2019 at 3:26 PM Rob Clark wrote: > I'm ok with this.. although I wonder if we need to try this hard for > backwards compat? At least I don't see any upstream dts > using the old names. Maybe it is ok to just look the other way and break > them. I am usually of the opinion that

[PATCH 4/5] drm/msm/dsi: get the clocks into OFF state at init

2019-06-30 Thread Rob Clark
From: Rob Clark Do an extra enable/disable cycle at init, to get the clks into disabled state in case bootloader left them enabled. In case they were already enabled, the clk_prepare_enable() has no real effect, other than getting the enable_count/prepare_count into the right state so that we ca

[PATCH 2/5] genpd/gdsc: inherit display powerdomain from bootloader

2019-06-30 Thread Rob Clark
From: Rob Clark Mark power domains that may be enabled by bootloader, and which should not be disabled until a driver takes them over. This keeps efifb alive until the real driver can be probed. In a distro kernel, the driver will most likely built as a module, and not probed until we get to us

[PATCH 5/5] drm/bridge: ti-sn65dsi86: support booloader enabled display

2019-06-30 Thread Rob Clark
From: Rob Clark Request the enable gpio ASIS to avoid disabling bridge during probe, if already enabled. And if already enabled, defer enabling runpm until attach to avoid cutting off the power to the bridge. Once we get to attach, we know panel and drm driver are probed successfully, so at thi

[PATCH 3/5] drm/msm/dsi: split clk rate setting and enable

2019-06-30 Thread Rob Clark
From: Rob Clark Prep work for the following patch. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/dsi/dsi.h | 2 ++ drivers/gpu/drm/msm/dsi/dsi_cfg.c | 3 +++ drivers/gpu/drm/msm/dsi/dsi_cfg.h | 1 + drivers/gpu/drm/msm/dsi/dsi_host.c | 38 ++ 4 files ch

[PATCH 1/5] clk: inherit clocks enabled by bootloader

2019-06-30 Thread Rob Clark
From: Rob Clark The goal here is to support inheriting a display setup by bootloader, although there may also be some non-display related use-cases. Rough idea is to add a flag for clks and power domains that might already be enabled when kernel starts, and which should not be disabled at late_i

[PATCH 0/5] drm+clk+genpd: support for bootloader enabled display

2019-06-30 Thread Rob Clark
From: Rob Clark The aarch64 laptops which ship with windows, have the display by the bootloader, and efifb (yah!). But unlike x86 laptops, device power management isn't handled via ACPI[1]. Currently the CCF and genpd frameworks will turn off power domains and clocks that they think are unused.

Re: [PATCH v1] drm/msm: drop use of drmP.h

2019-06-30 Thread Sam Ravnborg
Strange... git send-email did not send this to all recipients listed as Cc: ?!?!? Added the following persons missing in the mail: > Cc: Rob Clark > Cc: Daniel Vetter > Cc: Jordan Crouse > Cc: Jeykumar Sankaran > Cc: Maarten Lankhorst After sending out 40 mails I am not too happy to discover

Re: [PATCH v1] drm/shmobile: drop use of drmP.h

2019-06-30 Thread Sam Ravnborg
Hi Laurent. Thanks for the detailed feedback. > > If patch is OK, please apply to your tree > > as this driver is maintained outside drm-misc. > > > > I am happy to rebase on another tree, just let me know. > > The shmobile driver hasn't seen changes for a long time and I don't have > patches q

[Bug 101749] sclk scales badly in war thunder

2019-06-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101749 higu...@gmx.net changed: What|Removed |Added Status|NEEDINFO|RESOLVED Resolution|---

Re: [PATCH 4/7] gpio: of: Support some legacy Qualcomm HDMI bindings

2019-06-30 Thread Rob Clark
On Sat, Jun 29, 2019 at 6:02 AM Linus Walleij wrote: > > Insteaf of the MSM DRM code going around and inspecting the > device tree nodes by itself to find "qcom,misc" GPIO phandles, > we add a quirk to the core so that if "qcom,misc-gpios" and > "qcom,misc-gpio" isn't found, we try to find just >

[PATCH 3/3] drm/msm/dsi: make sure we have panel or bridge earlier

2019-06-30 Thread Rob Clark
From: Rob Clark If we are going to -EPROBE_DEFER due to panel/bridge not probed yet, we want to do it before we start touching hardware. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/dsi/dsi.h | 2 +- drivers/gpu/drm/msm/dsi/dsi_host.c| 30 +-- drivers/g

[PATCH 2/3] drm/msm/dpu: remove dpu_mdss:hwversion

2019-06-30 Thread Rob Clark
From: Rob Clark Unused and the extra rpm get/put interferes with handover from bootloader (ie. happens before we have a chance to check if things are already enabled). Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c | 5 - 1 file changed, 5 deletions(-) diff --git a/

[PATCH 0/3] drm/msm: few small cleanups

2019-06-30 Thread Rob Clark
From: Rob Clark 2 and 3 are some early prep-work to deal with bootloader enabled displays, where we want to avoid runpm get/put cycles until we know that we won't -EPROBE_DEFER. (Otherwise, it will kill the display, and it's not terribly nice to kill efifb and leave the user with no good way to

[PATCH 1/3] drm/msm: don't open-code governor name

2019-06-30 Thread Rob Clark
From: Rob Clark Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/msm_gpu.c b/drivers/gpu/drm/msm/msm_gpu.c index 0a4c77fb3d94..e323259a16d3 100644 --- a/drivers/gpu/drm/msm/msm_gpu.c +++ b/drivers/

[PATCH] drm/msm: stop abusing dma_map/unmap for cache

2019-06-30 Thread Rob Clark
From: Rob Clark Recently splats like this started showing up: WARNING: CPU: 4 PID: 251 at drivers/iommu/dma-iommu.c:451 __iommu_dma_unmap+0xb8/0xc0 Modules linked in: ath10k_snoc ath10k_core fuse msm ath mac80211 uvcvideo cfg80211 videobuf2_vmalloc videobuf2_memops vide CPU: 4 PID: 25

Re: [PATCH v1 25/33] drm/scheduler: drop use of drmP.h

2019-06-30 Thread Koenig, Christian
Am 30.06.19 um 08:19 schrieb Sam Ravnborg: > Drop use of the deprecated drmP.h header file. > Fix fallout. > > Signed-off-by: Sam Ravnborg > Cc: David Airlie > Cc: Daniel Vetter > Cc: Alex Deucher > Cc: Andrey Grodzovsky > Cc: "Christian König" > Cc: Huang Rui > Cc: Eric Anholt > Cc: Bas Ni

Re: [PATCH v1] drm/shmobile: drop use of drmP.h

2019-06-30 Thread Laurent Pinchart
Hi Sam, Thank you for the patch. On Sun, Jun 30, 2019 at 07:21:26AM +0200, Sam Ravnborg wrote: > Drop use of the deprecated drmP.h header file. > Fix fallout. > > Signed-off-by: Sam Ravnborg > Cc: Laurent Pinchart > Cc: Kieran Bingham > Cc: David Airlie > Cc: Daniel Vetter > Cc: linux-renes

Re: [PATCH 1/3] DRM: ingenic: Use devm_platform_ioremap_resource

2019-06-30 Thread Paul Cercueil
Le dim. 30 juin 2019 à 10:18, Sam Ravnborg a écrit : Hi Paul. On Thu, Jun 27, 2019 at 08:21:12PM +0200, Paul Cercueil wrote: Simplify a bit the probe function by using the newly introduced devm_platform_ioremap_resource(), instead of having to call platform_get_resource() followed by de

  1   2   >