[PATCH 1/2] drm/virtgpu: plumb fix for virtgpu_drm.h / virtio_gpu.h discrepancy

2019-10-01 Thread Gurchetan Singh
virglrenderer has logic to validate both stride and layer_stride, but both are always zero. The fallback for that case is: stride = width * bytes_per_pixel layer_stride = stride * num_layers However, this assumption causes trouble in the following cases: 1) When allocating host-compatible

[PATCH 2/2] [RFC] drm/virtgpu: modify uapi with stride/layer_stride fix

2019-10-01 Thread Gurchetan Singh
This doesn't really break userspace, since it always passes down 0 for stride/layer_stride currently. We could: (1) modify UAPI now and add a VIRTGPU_PARAM_STRIDE_FIX feature (2) modify the UAPI now, and not expose a corresponding feature (i.e, VIRTGPU_PARAM_STRIDE_FIX). This would fold

[Bug 111846] Suspend to RAM cause screen to glitch on navi10

2019-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111846 --- Comment #3 from Yuxuan Shui --- Created attachment 145611 --> https://bugs.freedesktop.org/attachment.cgi?id=145611=edit Xorg.0.log (has a couple of suspension/hibernation) -- You are receiving this mail because: You are the assignee

[Bug 111846] Suspend to RAM cause screen to glitch on navi10

2019-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111846 --- Comment #2 from Yuxuan Shui --- Created attachment 145610 --> https://bugs.freedesktop.org/attachment.cgi?id=145610=edit dmesg (from suspend entry to exit) -- You are receiving this mail because: You are the assignee for the

[Bug 111879] GPU reset during hibernation

2019-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111879 --- Comment #4 from Yuxuan Shui --- (In reply to Alex Deucher from comment #3) > Created attachment 145608 [details] [review] > possible fix > > Does this patch fix the issue? I hiberate/resumed with this patch a couple of times, the problem

[Bug 204611] amdgpu error scheduling IBs when waking from sleep

2019-10-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204611 --- Comment #4 from tones...@hotmail.com --- I've been able to narrow the problem down a bit. The first commit where I get the scrolling amdgpu errors is 4f8b49092c37cf0c87c43bb2698d43c71cf0e4e5 Unfortunately that's a merge commit. One of the

[Bug 110674] Crashes / Resets From AMDGPU / Radeon VII

2019-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110674 --- Comment #153 from ReddestDream --- Just FYI, it appears that kernel 5.3.2 does not have the Vega 20 fix commits that Alex Deucher mentioned. -- You are receiving this mail because: You are the assignee for the

[PATCH V4 3/3] ARM: logicpd-torpedo-37xx-devkit-28: Reference new DRM panel

2019-10-01 Thread Adam Ford
With the removal of the panel-dpi from the omap drivers, the LCD no longer works. This patch points the device tree to a newly created panel named "logicpd,type28" Fixes: 8bf4b1621178 ("drm/omap: Remove panel-dpi driver") Signed-off-by: Adam Ford Acked-by: Sam Ravnborg --- V4: No Change V3:

[PATCH V4 3/3] ARM: logicpd-torpedo-37xx-devkit-28: Reference new DRM panel

2019-10-01 Thread Adam Ford
With the removal of the panel-dpi from the omap drivers, the LCD no longer works. This patch points the device tree to a newly created panel named "logicpd,type28" Fixes: 8bf4b1621178 ("drm/omap: Remove panel-dpi driver") Signed-off-by: Adam Ford Acked-by: Sam Ravnborg --- V4: No Change V3:

[PATCH V4 1/3] drm/panel: simple: Add Logic PD Type 28 display support

2019-10-01 Thread Adam Ford
Previously, there was an omap panel-dpi driver that would read generic timings from the device tree and set the display timing accordingly. This driver was removed so the screen no longer functions. This patch modifies the panel-simple file to setup the timings to the same values previously

[PATCH V4 2/3] dt-bindings: Add Logic PD Type 28 display panel

2019-10-01 Thread Adam Ford
This patch adds documentation of device tree bindings for the WVGA panel Logic PD Type 28 display. Signed-off-by: Adam Ford --- V4: Update per Rob H's suggestions and copy other panel yaml example from 5.4-rc1 V3: Correct build errors from 'make dt_binding_check' V2: Use YAML instead of TXT

[PATCH V4 1/3] drm/panel: simple: Add Logic PD Type 28 display support

2019-10-01 Thread Adam Ford
Previously, there was an omap panel-dpi driver that would read generic timings from the device tree and set the display timing accordingly. This driver was removed so the screen no longer functions. This patch modifies the panel-simple file to setup the timings to the same values previously

[PATCH V4 2/3] dt-bindings: Add Logic PD Type 28 display panel

2019-10-01 Thread Adam Ford
This patch adds documentation of device tree bindings for the WVGA panel Logic PD Type 28 display. Signed-off-by: Adam Ford --- V4: Update per Rob H's suggestions and copy other panel yaml example from 5.4-rc1 V3: Correct build errors from 'make dt_binding_check' V2: Use YAML instead of TXT

[PATCH] backlight: pwm_bl: Don't assign levels table repeatedly

2019-10-01 Thread Matthias Kaehlcke
pwm_backlight_probe() re-assigns pb->levels for every brightness level. This is not needed and was likely not intended, since neither side of the assignment changes during the loop. Assign the field only once. Signed-off-by: Matthias Kaehlcke --- drivers/video/backlight/pwm_bl.c | 4 ++-- 1

Re: [PATCH] drm/amdgpu: fix structurally dead code vcn_v2_5_hw_init

2019-10-01 Thread Liu, Leo
On 2019-10-01 5:57 p.m., Gustavo A. R. Silva wrote: > > On 10/1/19 16:46, Liu, Leo wrote: > > + ring->sched.ready = true; This is redundant. all the sched->ready is initialized as true, please refer to drm_sched_init() >>> I see... so in the following commit

Re: [PATCH] drm/amdgpu: fix structurally dead code vcn_v2_5_hw_init

2019-10-01 Thread Gustavo A. R. Silva
On 10/1/19 16:46, Liu, Leo wrote: + ring->sched.ready = true; >>> This is redundant. all the sched->ready is initialized as true, please >>> refer to drm_sched_init() >>> >> I see... so in the following commit 1b61de45dfaf ("drm/amdgpu: add initial >> VCN2.0 support (v2)") >>

Re: [PATCH v1 1/2] dt-bindings: add vendor prefix for logic technologies limited

2019-10-01 Thread Rob Herring
On Fri, 20 Sep 2019 09:54:10 +0200, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > Add vendor prefix for Logic Technologies Limited [1] which is a Chinese > display manufacturer e.g. distributed by German Endrich Bauelemente > Vertriebs GmbH [2]. > > [1] https://logictechno.com/contact-us/

Re: [PATCH] drm/amdgpu: fix structurally dead code vcn_v2_5_hw_init

2019-10-01 Thread Gustavo A. R. Silva
Hi, On 10/1/19 16:29, Liu, Leo wrote: > > On 2019-10-01 1:16 p.m., Gustavo A. R. Silva wrote: >> Notice that there is a *continue* statement in the middle of the >> for loop and that prevents the code below from ever being reached: >> >> r = amdgpu_ring_test_ring(ring); >> if (r) { >>

Re: [PATCH v1 2/2] drm/panel: simple: add display timings for logic technologies displays

2019-10-01 Thread Rob Herring
On Fri, Sep 20, 2019 at 09:54:11AM +0200, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > Add display timings for the following 3 display panels manufactured by > Logic Technologies Limited: > > - LT161010-2NHC e.g. as found in the Toradex Capacitive Touch Display > 7" Parallel [1] > -

[Bug 111879] GPU reset during hibernation

2019-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111879 --- Comment #3 from Alex Deucher --- Created attachment 145608 --> https://bugs.freedesktop.org/attachment.cgi?id=145608=edit possible fix Does this patch fix the issue? -- You are receiving this mail because: You are the assignee for the

Re: [PATCH] drm/amdgpu: fix structurally dead code vcn_v2_5_hw_init

2019-10-01 Thread Liu, Leo
On 2019-10-01 5:43 p.m., Gustavo A. R. Silva wrote: > Hi, > > On 10/1/19 16:29, Liu, Leo wrote: >> On 2019-10-01 1:16 p.m., Gustavo A. R. Silva wrote: >>> Notice that there is a *continue* statement in the middle of the >>> for loop and that prevents the code below from ever being reached: >>>

[Bug 111879] GPU reset during hibernation

2019-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111879 --- Comment #2 from Alex Deucher --- What chip is this? Please attach your full dmesg output. -- You are receiving this mail because: You are the assignee for the bug.___ dri-devel mailing list

Re: [PATCH] drm/amdgpu: fix structurally dead code vcn_v2_5_hw_init

2019-10-01 Thread Liu, Leo
On 2019-10-01 1:16 p.m., Gustavo A. R. Silva wrote: > Notice that there is a *continue* statement in the middle of the > for loop and that prevents the code below from ever being reached: > > r = amdgpu_ring_test_ring(ring); > if (r) { > ring->sched.ready = false; >

Re: [PATCH] drm: add fb max width/height fields to drm_mode_config

2019-10-01 Thread Jeykumar Sankaran
On 2019-09-30 03:39, Ville Syrjälä wrote: On Fri, Sep 27, 2019 at 06:28:51PM -0700, Jeykumar Sankaran wrote: The mode_config max width/height values determine the maximum resolution the pixel reader can handle. Not according to the docs I "fixed" a while ago. But the same values are used to

[Bug 205069] Black screen when starting graphical environment

2019-10-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=205069 --- Comment #5 from freddyrei...@comcast.net --- I've seen another report on a similar issue, where the suggestion (solution?) was to be using a newer mesa and llvm. I am on llvm 9 and mesa 19.2.0 * media-libs/mesa Latest version

[Bug 205069] Black screen when starting graphical environment

2019-10-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=205069 --- Comment #4 from freddyrei...@comcast.net --- Created attachment 285293 --> https://bugzilla.kernel.org/attachment.cgi?id=285293=edit Xorg log from amdgpu freeze startx -- You are receiving this mail because: You are watching the assignee

[Bug 205069] Black screen when starting graphical environment

2019-10-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=205069 --- Comment #3 from freddyrei...@comcast.net --- Created attachment 285291 --> https://bugzilla.kernel.org/attachment.cgi?id=285291=edit lspci -vv -- You are receiving this mail because: You are watching the assignee of the bug.

[Bug 205069] Black screen when starting graphical environment

2019-10-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=205069 --- Comment #2 from freddyrei...@comcast.net --- Created attachment 285289 --> https://bugzilla.kernel.org/attachment.cgi?id=285289=edit lsmod -- You are receiving this mail because: You are watching the assignee of the bug.

[Bug 205069] Black screen when starting graphical environment

2019-10-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=205069 --- Comment #1 from freddyrei...@comcast.net --- Created attachment 285287 --> https://bugzilla.kernel.org/attachment.cgi?id=285287=edit dmesg -- You are receiving this mail because: You are watching the assignee of the bug.

[Bug 205069] New: Black screen when starting graphical environment

2019-10-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=205069 Bug ID: 205069 Summary: Black screen when starting graphical environment Product: Drivers Version: 2.5 Kernel Version: 5.3.1, 5.4.0-rc1, latest Hardware: x86-64 OS: Linux

Re: [RESEND][PATCH v8 3/5] dma-buf: heaps: Add system heap to dmabuf heaps

2019-10-01 Thread John Stultz
On Mon, Sep 30, 2019 at 12:43 AM Hillf Danton wrote: > > > On Fri, 6 Sep 2019 18:47:09 + John Stultz wrote: > > > > +static int system_heap_allocate(struct dma_heap *heap, > > + unsigned long len, > > + unsigned long fd_flags, > > +

Re: [PATCH 10/60] drm/bridge: Add bridge driver for display connectors

2019-10-01 Thread Laurent Pinchart
Hi Tomi, On Mon, Sep 30, 2019 at 02:15:20PM +0300, Tomi Valkeinen wrote: > On 07/07/2019 21:18, Laurent Pinchart wrote: > > Display connectors are modelled in DT as a device node, but have so far > > been handled manually in several bridge drivers. This resulted in > > duplicate code in several

Re: [PATCH v2 05/50] drm/bridge: Extend bridge API to disable connector creation

2019-10-01 Thread Laurent Pinchart
Hi Tomi, On Tue, Oct 01, 2019 at 10:04:11AM +0300, Tomi Valkeinen wrote: > On 20/08/2019 04:16, Laurent Pinchart wrote: > > > @@ -,7 +1113,7 @@ int dw_mipi_dsi_bind(struct dw_mipi_dsi *dsi, struct > > drm_encoder *encoder) > > { > > int ret; > > > > - ret =

Re: [RFC PATCH] pci: prevent putting pcie devices into lower device states on certain intel bridges

2019-10-01 Thread Bjorn Helgaas
On Tue, Oct 01, 2019 at 06:21:28PM +0200, Karol Herbst wrote: > On Tue, Oct 1, 2019 at 3:27 PM Bjorn Helgaas wrote: > > On Mon, Sep 30, 2019 at 06:36:12PM +0200, Karol Herbst wrote: > > > On Mon, Sep 30, 2019 at 6:30 PM Mika Westerberg > > > wrote: > > > > > > > > On Mon, Sep 30, 2019 at

Re: [PATCH v4 8/9] drm: rcar-du: kms: Update CMM in atomic commit tail

2019-10-01 Thread Laurent Pinchart
Hi Ezequiel, On Mon, Sep 30, 2019 at 05:53:00PM -0300, Ezequiel Garcia wrote: > +Doug, Heiko: > > On Fri, 2019-09-06 at 15:54 +0200, Jacopo Mondi wrote: > > Update CMM settings at in the atomic commit tail helper method. > > The CMM is updated with new gamma values provided to the driver > > in

[Bug 111879] GPU reset during hibernation

2019-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111879 --- Comment #1 from Yuxuan Shui --- Looks like a GPU reset was triggered during hibernation and that's what's causing the "Failed to initialize parser" error. -- You are receiving this mail because: You are the assignee for the

[Bug 111879] GPU reset during hibernation

2019-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111879 Yuxuan Shui changed: What|Removed |Added Summary|Failed to initialize parser |GPU reset during

[Bug 111879] Failed to initialize parser after resuming from disk

2019-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111879 Bug ID: 111879 Summary: Failed to initialize parser after resuming from disk Product: DRI Version: unspecified Hardware: x86-64 (AMD64) OS: Linux (All) Status:

Re: [PATHC v6] video: hyperv: hyperv_fb: Support deferred IO for Hyper-V frame buffer driver

2019-10-01 Thread Sasha Levin
On Fri, Sep 20, 2019 at 05:26:34PM +, Michael Kelley wrote: From: Michael Kelley Sent: Wednesday, September 18, 2019 2:48 PM > > Without deferred IO support, hyperv_fb driver informs the host to refresh > the entire guest frame buffer at fixed rate, e.g. at 20Hz, no matter there > is

Re: [PATCH v5] video: hyperv: hyperv_fb: Support deferred IO for Hyper-V frame buffer driver

2019-10-01 Thread Sasha Levin
On Fri, Sep 13, 2019 at 06:02:55AM +, Wei Hu wrote: Without deferred IO support, hyperv_fb driver informs the host to refresh the entire guest frame buffer at fixed rate, e.g. at 20Hz, no matter there is screen update or not. This patch supports deferred IO for screens in graphics mode and

Re: [PATCH] video: hyperv_fb: Add the support of hibernation

2019-10-01 Thread Sasha Levin
On Wed, Sep 11, 2019 at 11:34:10PM +, Dexuan Cui wrote: This patch depends on the vmbus side change of the definition of struct hv_driver. Signed-off-by: Dexuan Cui Queued up for hyperv-next, thanks! -- Thanks, Sasha

[PATCH] drm: lima: Add support for multiple reset lines

2019-10-01 Thread John Stultz
From: Peter Griffin Some SoCs like HiKey have 2 reset lines, so update to use the devm_reset_control_array_* variant of the API so that multiple resets can be specified in DT. Cc: Qiang Yu Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Cc: l...@lists.freedesktop.org

[PATCH] drm/amdgpu: fix structurally dead code vcn_v2_5_hw_init

2019-10-01 Thread Gustavo A. R. Silva
Notice that there is a *continue* statement in the middle of the for loop and that prevents the code below from ever being reached: r = amdgpu_ring_test_ring(ring); if (r) { ring->sched.ready = false; goto done; } Fix this by removing the

[PATCH AUTOSEL 4.4 06/15] drm/amdgpu: Check for valid number of registers to read

2019-10-01 Thread Sasha Levin
From: Trek [ Upstream commit 73d8e6c7b841d9bf298c8928f228fb433676635c ] Do not try to allocate any amount of memory requested by the user. Instead limit it to 128 registers. Actually the longest series of consecutive allowed registers are 48, mmGB_TILE_MODE0-31 and mmGB_MACROTILE_MODE0-15

[PATCH AUTOSEL 4.9 07/19] drm/amdgpu: Check for valid number of registers to read

2019-10-01 Thread Sasha Levin
From: Trek [ Upstream commit 73d8e6c7b841d9bf298c8928f228fb433676635c ] Do not try to allocate any amount of memory requested by the user. Instead limit it to 128 registers. Actually the longest series of consecutive allowed registers are 48, mmGB_TILE_MODE0-31 and mmGB_MACROTILE_MODE0-15

[PATCH AUTOSEL 4.14 10/29] drm/amdgpu: Check for valid number of registers to read

2019-10-01 Thread Sasha Levin
From: Trek [ Upstream commit 73d8e6c7b841d9bf298c8928f228fb433676635c ] Do not try to allocate any amount of memory requested by the user. Instead limit it to 128 registers. Actually the longest series of consecutive allowed registers are 48, mmGB_TILE_MODE0-31 and mmGB_MACROTILE_MODE0-15

[PATCH AUTOSEL 4.19 41/43] drm/radeon: Bail earlier when radeon.cik_/si_support=0 is passed

2019-10-01 Thread Sasha Levin
From: Hans de Goede [ Upstream commit 9dbc88d013b79c62bd845cb9e7c0256e660967c5 ] Bail from the pci_driver probe function instead of from the drm_driver load function. This avoid /dev/dri/card0 temporarily getting registered and then unregistered again, sending unwanted add / remove udev events

[PATCH AUTOSEL 4.19 14/43] drm/amdgpu: Check for valid number of registers to read

2019-10-01 Thread Sasha Levin
From: Trek [ Upstream commit 73d8e6c7b841d9bf298c8928f228fb433676635c ] Do not try to allocate any amount of memory requested by the user. Instead limit it to 128 registers. Actually the longest series of consecutive allowed registers are 48, mmGB_TILE_MODE0-31 and mmGB_MACROTILE_MODE0-15

[PATCH AUTOSEL 4.19 13/43] drm/amdgpu: Fix KFD-related kernel oops on Hawaii

2019-10-01 Thread Sasha Levin
From: Felix Kuehling [ Upstream commit dcafbd50f2e4d5cc964aae409fb5691b743fba23 ] Hawaii needs to flush caches explicitly, submitting an IB in a user VMID from kernel mode. There is no s_fence in this case. Fixes: eb3961a57424 ("drm/amdgpu: remove fence context from the job") Signed-off-by:

[PATCH AUTOSEL 5.2 60/63] drm/radeon: Bail earlier when radeon.cik_/si_support=0 is passed

2019-10-01 Thread Sasha Levin
From: Hans de Goede [ Upstream commit 9dbc88d013b79c62bd845cb9e7c0256e660967c5 ] Bail from the pci_driver probe function instead of from the drm_driver load function. This avoid /dev/dri/card0 temporarily getting registered and then unregistered again, sending unwanted add / remove udev events

[PATCH AUTOSEL 5.2 19/63] drm/amdgpu: Check for valid number of registers to read

2019-10-01 Thread Sasha Levin
From: Trek [ Upstream commit 73d8e6c7b841d9bf298c8928f228fb433676635c ] Do not try to allocate any amount of memory requested by the user. Instead limit it to 128 registers. Actually the longest series of consecutive allowed registers are 48, mmGB_TILE_MODE0-31 and mmGB_MACROTILE_MODE0-15

[PATCH AUTOSEL 5.2 18/63] drm/amdgpu: Fix KFD-related kernel oops on Hawaii

2019-10-01 Thread Sasha Levin
From: Felix Kuehling [ Upstream commit dcafbd50f2e4d5cc964aae409fb5691b743fba23 ] Hawaii needs to flush caches explicitly, submitting an IB in a user VMID from kernel mode. There is no s_fence in this case. Fixes: eb3961a57424 ("drm/amdgpu: remove fence context from the job") Signed-off-by:

[PATCH AUTOSEL 5.3 68/71] drm/radeon: Bail earlier when radeon.cik_/si_support=0 is passed

2019-10-01 Thread Sasha Levin
From: Hans de Goede [ Upstream commit 9dbc88d013b79c62bd845cb9e7c0256e660967c5 ] Bail from the pci_driver probe function instead of from the drm_driver load function. This avoid /dev/dri/card0 temporarily getting registered and then unregistered again, sending unwanted add / remove udev events

[PATCH AUTOSEL 5.3 20/71] drm/amdgpu: Check for valid number of registers to read

2019-10-01 Thread Sasha Levin
From: Trek [ Upstream commit 73d8e6c7b841d9bf298c8928f228fb433676635c ] Do not try to allocate any amount of memory requested by the user. Instead limit it to 128 registers. Actually the longest series of consecutive allowed registers are 48, mmGB_TILE_MODE0-31 and mmGB_MACROTILE_MODE0-15

[PATCH AUTOSEL 5.3 19/71] drm/amdgpu: Fix KFD-related kernel oops on Hawaii

2019-10-01 Thread Sasha Levin
From: Felix Kuehling [ Upstream commit dcafbd50f2e4d5cc964aae409fb5691b743fba23 ] Hawaii needs to flush caches explicitly, submitting an IB in a user VMID from kernel mode. There is no s_fence in this case. Fixes: eb3961a57424 ("drm/amdgpu: remove fence context from the job") Signed-off-by:

Re: New sysfs interface for privacy screens

2019-10-01 Thread Greg KH
On Tue, Oct 01, 2019 at 10:09:46AM -0600, Mat King wrote: > Resending in plain text mode > > I have been looking into adding Linux support for electronic privacy > screens which is a feature on some new laptops which is built into the > display and allows users to turn it on instead of needing to

Re: [RFC PATCH] pci: prevent putting pcie devices into lower device states on certain intel bridges

2019-10-01 Thread Karol Herbst
On Tue, Oct 1, 2019 at 3:27 PM Bjorn Helgaas wrote: > > On Mon, Sep 30, 2019 at 06:36:12PM +0200, Karol Herbst wrote: > > On Mon, Sep 30, 2019 at 6:30 PM Mika Westerberg > > wrote: > > > > > > On Mon, Sep 30, 2019 at 06:05:14PM +0200, Karol Herbst wrote: > > > > still happens with your patch

[PATCH 12/14] drm/amd/display: MST DSC compute fair share

2019-10-01 Thread mikita.lipski
From: David Francis If there is limited link bandwidth on a MST network, it must be divided fairly between the streams on that network Implement an algorithm to determine the correct DSC config for each stream The algorithm: This [ ] ( ) represents the range of

[PATCH 11/14] drm/amd/display: Write DSC enable to MST DPCD

2019-10-01 Thread mikita.lipski
From: David Francis Rework the dm_helpers_write_dsc_enable callback to handle the MST case. Use the cached dsc_aux field. Reviewed-by: Wenjing Liu Signed-off-by: David Francis --- .../amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 19 ++- 1 file changed, 18 insertions(+), 1

[PATCH 06/14] drm/dp_mst: Add helpers for MST DSC and virtual DPCD aux

2019-10-01 Thread mikita.lipski
From: David Francis Add drm_dp_mst_dsc_aux_for_port. To enable DSC, the DSC_ENABLED register might have to be written on the leaf port's DPCD, its parent's DPCD, or the MST manager's DPCD. This function finds the correct aux for the job. As part of this, add drm_dp_mst_is_virtual_dpcd. Virtual

[PATCH 13/14] drm/amd/display: Recalculate VCPI slots for new DSC connectors

2019-10-01 Thread mikita.lipski
From: Mikita Lipski Since for DSC MST connector's PBN is claculated differently due to compression, we have to recalculate both PBN and VCPI slots for that connector. This patch proposes to use similair logic as in dm_encoder_helper_atomic_chek, but since we do not know which connectors will

[PATCH 14/14] drm/amd/display: Trigger modesets on MST DSC connectors

2019-10-01 Thread mikita.lipski
From: David Francis Whenever a connector on an MST network is attached, detached, or undergoes a modeset, the DSC configs for each stream on that topology will be recalculated. This can change their required bandwidth, requiring a full reprogramming, as though a modeset was performed, even if

[PATCH 02/14] drm/dp_mst: Add PBN calculation for DSC modes

2019-10-01 Thread mikita.lipski
From: David Francis With DSC, bpp can be fractional in multiples of 1/16. Change drm_dp_calc_pbn_mode to reflect this, adding a new parameter bool dsc. When this parameter is true, treat the bpp parameter as having units not of bits per pixel, but 1/16 of a bit per pixel v2: Don't add separate

[PATCH 08/14] drm/amd/display: Use correct helpers to compute timeslots

2019-10-01 Thread mikita.lipski
From: David Francis We were using drm helpers to convert a timing into its bandwidth, its bandwidth into pbn, and its pbn into timeslots These helpers -Did not take DSC timings into account -Used the link rate and lane count of the link's aux device, which are not the same as the link's current

[PATCH 09/14] drm/amd/display: Initialize DSC PPS variables to 0

2019-10-01 Thread mikita.lipski
From: David Francis For DSC MST, sometimes monitors would break out in full-screen static. The issue traced back to the PPS generation code, where these variables were being used uninitialized and were picking up garbage. memset to 0 to avoid this Reviewed-by: Nicholas Kazlauskas

[PATCH v2 00/14] DSC MST support for AMDGPU

2019-10-01 Thread mikita.lipski
From: Mikita Lipski This set of patches is a continuation of DSC enablement patches for AMDGPU. This set enables DSC on MST. It also contains implementation of both encoder and connector atomic check routines. First 12 patches have been introduced in multiple iterations to the mailing list

[PATCH 10/14] drm/amd/display: Validate DSC caps on MST endpoints

2019-10-01 Thread mikita.lipski
From: David Francis During MST mode enumeration, if a new dc_sink is created, populate it with dsc caps as appropriate. Use drm_dp_mst_dsc_aux_for_port to get the raw caps, then parse them onto dc_sink with dc_dsc_parse_dsc_dpcd. Reviewed-by: Wenjing Liu Signed-off-by: David Francis ---

[PATCH 03/14] drm/dp_mst: Parse FEC capability on MST ports

2019-10-01 Thread mikita.lipski
From: David Francis As of DP1.4, ENUM_PATH_RESOURCES returns a bit indicating if FEC can be supported up to that point in the MST network. The bit is the first byte of the ENUM_PATH_RESOURCES ack reply, bottom-most bit (refer to section 2.11.9.4 of DP standard, v1.4) That value is needed for

[PATCH 01/14] drm/amd/display: Add MST atomic routines

2019-10-01 Thread mikita.lipski
From: Mikita Lipski - Adding encoder atomic check to find vcpi slots for a connector - Using DRM helper functions to calculate PBN - Adding connector atomic check to release vcpi slots if connector loses CRTC - Calculate PBN and VCPI slots only once during atomic check and store them on amdgpu

[PATCH 05/14] drm/dp_mst: Fill branch->num_ports

2019-10-01 Thread mikita.lipski
From: David Francis This field on drm_dp_mst_branch was never filled It is initialized to zero when the port is kzallocced. When a port is added to the list, increment num_ports, and when a port is removed from the list, decrement num_ports. v2: remember to decrement on port removal v3: don't

[PATCH 07/14] drm/dp_mst: Add new quirk for Synaptics MST hubs

2019-10-01 Thread mikita.lipski
From: Mikita Lipski Synaptics DP1.4 hubs (BRANCH_ID 0x90CC24) do not support virtual DPCD registers, but do support DSC. The DSC caps can be read from the physical aux, like in SST DSC. These hubs have many different DEVICE_IDs. Add a new quirk to detect this case. Reviewed-by: Wenjing Liu

[PATCH 04/14] drm/dp_mst: Add MST support to DP DPCD R/W functions

2019-10-01 Thread mikita.lipski
From: David Francis Instead of having drm_dp_dpcd_read/write and drm_dp_mst_dpcd_read/write as entry points into the aux code, have drm_dp_dpcd_read/write handle both. This means that DRM drivers can make MST DPCD read/writes. v2: Fix spacing v3: Dump dpcd access on MST read/writes

New sysfs interface for privacy screens

2019-10-01 Thread Mat King
Resending in plain text mode I have been looking into adding Linux support for electronic privacy screens which is a feature on some new laptops which is built into the display and allows users to turn it on instead of needing to use a physical privacy filter. In discussions with my colleagues

Re: [PATCH v3] drm/bridge: analogix-anx78xx: add support for 7808 addresses

2019-10-01 Thread Enric Balletbo i Serra
Hi, On 22/9/19 19:59, Brian Masney wrote: > According to the downstream Android sources, the anx7808 variants use > address 0x78 for TX_P0 and the anx781x variants use address 0x70. Since > the datasheets aren't available for these devices, and we only have the > downstream kernel sources to look

[Bug 111877] AMDKFD crash with VegaM

2019-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111877 --- Comment #3 from Dimitar Atanasov --- yes this helps. clinfo is working now without crash and also darktable will find all gpu-s -- You are receiving this mail because: You are the assignee for the

Re: [RFC PATCH] drm:- Add a modifier to denote 'protected' framebuffer

2019-10-01 Thread Alex Deucher
On Mon, Sep 30, 2019 at 8:57 AM Ayan Halder wrote: > > On Mon, Sep 30, 2019 at 09:51:35AM +, Brian Starkey wrote: > > Hi, > > > > On Tue, Sep 17, 2019 at 07:36:45PM +0200, Daniel Vetter wrote: > > > On Tue, Sep 17, 2019 at 6:15 PM Neil Armstrong > > > wrote: > > > > > > > > Hi, > > > > > >

Re: [PATCH v2 2/8] dt-bindings: sram: Convert SRAM bindings to json-schema

2019-10-01 Thread Krzysztof Kozlowski
On Tue, Oct 01, 2019 at 09:00:03AM -0500, Rob Herring wrote: > On Wed, Sep 18, 2019 at 07:31:35PM +0200, Krzysztof Kozlowski wrote: > > Convert generic mmio-sram bindings to DT schema format using > > json-schema. > > I've been slow getting to this because I started on the same thing... > > > >

[Bug 111860] Crash in AMDGPU after resume on VegaM

2019-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111860 --- Comment #7 from Dimitar Atanasov --- Created attachment 145605 --> https://bugs.freedesktop.org/attachment.cgi?id=145605=edit dmesg_resume -- You are receiving this mail because: You are the assignee for the

Re: [PATCH V6 5/8] backlight: qcom-wled: Restructure the driver for WLED3

2019-10-01 Thread Dan Murphy
Kiran On 9/30/19 1:39 AM, Kiran Gunda wrote: Restructure the driver to add the support for new WLED peripherals. Signed-off-by: Kiran Gunda Acked-by: Daniel Thompson --- drivers/video/backlight/qcom-wled.c | 395 ++-- 1 file changed, 245 insertions(+), 150

Re: [PATCH V6 3/8] backlight: qcom-wled: Add new properties for PMI8998

2019-10-01 Thread Dan Murphy
Kiran On 9/30/19 1:39 AM, Kiran Gunda wrote: Update the bindings with the new properties used for PMI8998. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Reviewed-by: Rob Herring Acked-by: Daniel Thompson --- .../bindings/leds/backlight/qcom-wled.txt | 76

[Bug 111860] Crash in AMDGPU after resume on VegaM

2019-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111860 --- Comment #6 from Dimitar Atanasov --- It was working with 5.1.x but since 5.2.x it is not -- You are receiving this mail because: You are the assignee for the bug.___ dri-devel mailing list

[Bug 111877] AMDKFD crash with VegaM

2019-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111877 --- Comment #2 from Alex Deucher --- Does appending amdgpu.runpm=0 to the kernel command line in grub help? -- You are receiving this mail because: You are the assignee for the bug.___ dri-devel

[Bug 111860] Crash in AMDGPU after resume on VegaM

2019-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111860 --- Comment #5 from Dimitar Atanasov --- Created attachment 145604 --> https://bugs.freedesktop.org/attachment.cgi?id=145604=edit dmesg_full -- You are receiving this mail because: You are the assignee for the

[Bug 111877] AMDKFD crash with VegaM

2019-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111877 --- Comment #1 from Dimitar Atanasov --- CPU 8706G Precision 5530 2-in-1 Ubuntu 18.04.3 kernel 5.3.1 -- You are receiving this mail because: You are the assignee for the bug.___ dri-devel mailing

[Bug 111877] AMDKFD crash with VegaM

2019-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111877 Bug ID: 111877 Summary: AMDKFD crash with VegaM Product: DRI Version: DRI git Hardware: Other OS: All Status: NEW Severity: not set Priority:

Re: [PATCH V6 2/8] backlight: qcom-wled: restructure the qcom-wled bindings

2019-10-01 Thread Dan Murphy
Kiran On 9/30/19 1:39 AM, Kiran Gunda wrote: Restructure the qcom-wled bindings for the better readability. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Reviewed-by: Rob Herring Acked-by: Daniel Thompson Acked-by: Pavel Machek --- .../bindings/leds/backlight/qcom-wled.txt

Re: [PATCH v3] drm/print: add drm_debug_enabled()

2019-10-01 Thread Eric Engestrom
On Tuesday, 2019-10-01 17:06:14 +0300, Jani Nikula wrote: > Add helper to check if a drm debug category is enabled. Convert drm core > to use it. No functional changes. > > v2: Move unlikely() to drm_debug_enabled() (Eric) > > v3: Keep unlikely() when combined with other conditions (Eric) > >

Re: [PATCH V6 1/8] backlight: qcom-wled: Rename pm8941-wled.c to qcom-wled.c

2019-10-01 Thread Dan Murphy
Kiran On 9/30/19 1:39 AM, Kiran Gunda wrote: pm8941-wled.c driver is supporting the WLED peripheral on pm8941. Rename it to qcom-wled.c so that it can support WLED on multiple PMICs. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Acked-by: Rob Herring Acked-by: Daniel Thompson

[Bug 111860] Crash in AMDGPU after resume on VegaM

2019-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111860 --- Comment #4 from Alex Deucher --- Is this a regression? Did it work on a previous kernel? Please attach your full dmesg output from boot. -- You are receiving this mail because: You are the assignee for the

[Bug 111860] Crash in AMDGPU after resume on VegaM

2019-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111860 --- Comment #3 from Dimitar Atanasov --- No it will not work at all. DRI_PRIME is not functioning also -- You are receiving this mail because: You are the assignee for the bug.___ dri-devel mailing

Re: [PATCH v3 5/5] RFC: drm/atomic-helper: Reapply color transformation after resume

2019-10-01 Thread Ville Syrjälä
On Mon, Sep 30, 2019 at 07:28:02PM -0300, Ezequiel Garcia wrote: > Some platforms are not able to maintain the color transformation > state after a system suspend/resume cycle. > > Set the colog_mgmt_changed flag so that CMM on the CRTCs in > the suspend state are reapplied after system resume. >

Re: [Intel-gfx] [PATCH 1/4] drm/rect: Add drm_rect_translate_to()

2019-10-01 Thread Ville Syrjälä
On Tue, Oct 01, 2019 at 12:26:52PM +0300, Jani Nikula wrote: > On Mon, 30 Sep 2019, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > Add a helper to translate a rectangle to an absolute position. > > > > Signed-off-by: Ville Syrjälä > > The series is > > Reviewed-by: Jani Nikula >

Re: [PATCH v3 5/5] RFC: drm/atomic-helper: Reapply color transformation after resume

2019-10-01 Thread Jacopo Mondi
Hi Ezequiel, On Mon, Sep 30, 2019 at 07:28:02PM -0300, Ezequiel Garcia wrote: > Some platforms are not able to maintain the color transformation > state after a system suspend/resume cycle. > > Set the colog_mgmt_changed flag so that CMM on the CRTCs in CMM is the name of the Renesas unit for

[Bug 111846] Suspend to RAM cause screen to glitch on navi10

2019-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111846 --- Comment #1 from Alex Deucher --- Please attach your xorg log (if using X) and your dmesg output. -- You are receiving this mail because: You are the assignee for the bug.___ dri-devel mailing

Re: [PATCH v2 RESEND] drm/komeda: Workaround for broken FLIP_COMPLETE timestamps

2019-10-01 Thread Ayan Halder
On Tue, Oct 01, 2019 at 02:21:40PM +, Mihail Atanassov wrote: > When initially turning a crtc on, drm_reset_vblank_timestamp will > set the vblank timestamp to 0 for any driver that doesn't provide > a ->get_vblank_timestamp() hook. > > Unfortunately, the FLIP_COMPLETE event depends on that

[Bug 111860] Crash in AMDGPU after resume on VegaM

2019-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111860 --- Comment #2 from Alex Deucher --- That's just a warning. Does the driver still work properly? -- You are receiving this mail because: You are the assignee for the bug.___ dri-devel mailing list

[Bug 111876] AMD 5700 XT / Navi - BenQ XL2420G - No EDID read with DP connector, HDMI works fine

2019-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111876 --- Comment #4 from Christopher Jordan --- I forgot to mention - when using DP, after that EDID error, my screen displays a 640x480 tty. I can start X with it, but xrandr shows no other resolutions to use (probably because the KMS has no EDID

Re: [PATCH v4 1/7] backlight: gpio: remove unneeded include

2019-10-01 Thread Daniel Thompson
On Tue, Oct 01, 2019 at 02:58:31PM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > We no longer use any symbols from of_gpio.h. Remove this include. > > Signed-off-by: Bartosz Golaszewski Reviewed-by: Daniel Thompson > --- > drivers/video/backlight/gpio_backlight.c | 1 -

[PATCH v2 RESEND] drm/komeda: Workaround for broken FLIP_COMPLETE timestamps

2019-10-01 Thread Mihail Atanassov
When initially turning a crtc on, drm_reset_vblank_timestamp will set the vblank timestamp to 0 for any driver that doesn't provide a ->get_vblank_timestamp() hook. Unfortunately, the FLIP_COMPLETE event depends on that timestamp, and the only way to regenerate a valid one is to have vblank

[Bug 111876] AMD 5700 XT / Navi - BenQ XL2420G - No EDID read with DP connector, HDMI works fine

2019-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111876 --- Comment #3 from Christopher Jordan --- Created attachment 145601 --> https://bugs.freedesktop.org/attachment.cgi?id=145601=edit pacman -Q output -- You are receiving this mail because: You are the assignee for the

  1   2   >