[PATCH] drm/virtio: fix error check

2020-02-14 Thread Gerd Hoffmann
The >= compare op must happen in cpu byte order, doing it in little endian fails on big endian machines like s390. Reported-by: Sebastian Mitterle Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/virtio/virtgpu_vq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu

[RFC PATCH 2/6] drm/radeon: don't use ttm bo->offset

2020-02-14 Thread Nirmoy Das
Signed-off-by: Nirmoy Das --- drivers/gpu/drm/radeon/radeon.h| 1 + drivers/gpu/drm/radeon/radeon_object.h | 16 +++- drivers/gpu/drm/radeon/radeon_ttm.c| 4 +--- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gp

Re: [PATCH 1/1] Support LVDS output on Allwinner A20

2020-02-14 Thread Maxime Ripard
On Thu, Feb 13, 2020 at 12:46:53AM +0200, Andrey Lebedev wrote: > On Wed, Feb 12, 2020 at 01:53:45PM +0100, Maxime Ripard wrote: > > > > Side question, this will need some DT changes too, right? > > > > > > Hm, I agree. I think it would be reasonable to include LVDS0/1 pins > > > > That, but most i

Re: [PATCH v2 2/2] ARM: sun7i: dts: Add LVDS panel support on A20

2020-02-14 Thread Andrey Lebedev
On Thu, Feb 13, 2020 at 10:43:04AM +0100, Maxime Ripard wrote: > On Thu, Feb 13, 2020 at 12:23:57AM +0200, andrey.lebe...@gmail.com wrote: > > From: Andrey Lebedev > > > > Define pins for LVDS channels 0 and 1, configure reset line for tcon0 and > > provide sample LVDS panel, connected to tcon0. >

Re: [PATCH -next] crypto: ccree - remove set but not used variable 'du_size'

2020-02-14 Thread Herbert Xu
On Mon, Feb 03, 2020 at 03:39:21PM +, YueHaibing wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/crypto/ccree/cc_cipher.c: In function 'cc_setup_state_desc': > drivers/crypto/ccree/cc_cipher.c:536:15: warning: > variable 'du_size' set but not used [-Wunused-but-set-variabl

[PATCH v3 2/3] drm/sun4i: tcon: Support LVDS output on Allwinner A20

2020-02-14 Thread Andrey Lebedev
From: Andrey Lebedev A20 SoC (found in Cubieboard 2 among others) requires different LVDS set up procedure than A33. Timing controller (tcon) driver only implements sun6i-style procedure, that doesn't work on A20 (sun7i). Signed-off-by: Andrey Lebedev --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 2

Re: [PATCH v2 1/4] PM / EM: add devices to Energy Model

2020-02-14 Thread Dietmar Eggemann
On 06/02/2020 14:46, lukasz.l...@arm.com wrote: > From: Lukasz Luba [..] > @@ -26,7 +28,7 @@ framework, and interested clients reading the data from it:: s/::/: ? > | Thermal (IPA) | | Scheduler (EAS) | | Other | > +---+ +-+ +

[PATCH] drm/amd/display: Don't take the address of skip_scdc_overwrite in dc_link_detect_helper

2020-02-14 Thread Nathan Chancellor
Clang warns: ../drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:980:36: warning: address of 'sink->edid_caps.panel_patch.skip_scdc_overwrite' will always evaluate to 'true' [-Wpointer-bool-conversion] if (&sink->edid_caps.panel_patch.skip_scdc_overwrite) ~~

Re: [PATCH v2] drm/i915: Disable -Wtautological-constant-out-of-range-compare

2020-02-14 Thread Nathan Chancellor
On Thu, Feb 13, 2020 at 02:43:21PM -0800, Nick Desaulniers wrote: > On Wed, Feb 12, 2020 at 9:17 AM Michel Dänzer wrote: > > > > On 2020-02-12 6:07 p.m., Nathan Chancellor wrote: > > > On Wed, Feb 12, 2020 at 09:52:52AM +0100, Michel Dänzer wrote: > > >> On 2020-02-11 9:39 p.m., Nathan Chancellor

Re: [PATCH v2 1/2] ARM: sun7i: Support LVDS output on Allwinner A20

2020-02-14 Thread Maxime Ripard
Hi, The prefix of your title should be "drm/sun4i: tcon:" instead of "ARM: sun7i:" The latter would be if you were modifying files under arch/arm, but you're modifying files in (drivers/gpu/)drm/sun4i :) On Thu, Feb 13, 2020 at 12:23:55AM +0200, andrey.lebe...@gmail.com wrote: > From: Andrey Leb

Re: [PATCH v2 2/2] ARM: sun7i: dts: Add LVDS panel support on A20

2020-02-14 Thread Maxime Ripard
Hi, On Thu, Feb 13, 2020 at 10:08:23PM +0200, Andrey Lebedev wrote: > On Thu, Feb 13, 2020 at 10:43:04AM +0100, Maxime Ripard wrote: > > On Thu, Feb 13, 2020 at 12:23:57AM +0200, andrey.lebe...@gmail.com wrote: > > > From: Andrey Lebedev > > > > > > Define pins for LVDS channels 0 and 1, configur

[PATCH v3 3/3] ARM: dts: sun7i: Add LVDS panel support on A20

2020-02-14 Thread Andrey Lebedev
From: Andrey Lebedev Define pins for LVDS channels 0 and 1, configure reset line for tcon0 and provide sample LVDS panel, connected to tcon0. Signed-off-by: Andrey Lebedev --- arch/arm/boot/dts/sun7i-a20.dtsi | 28 ++-- 1 file changed, 26 insertions(+), 2 deletions(-)

[PATCH] drm/i915: Cast remain to unsigned long in eb_relocate_vma

2020-02-14 Thread Nathan Chancellor
A recent commit in clang added -Wtautological-compare to -Wall, which is enabled for i915 after -Wtautological-compare is disabled for the rest of the kernel so we see the following warning on x86_64: ../drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c:1433:22: warning: result of comparison of con

Re: general protection fault in fbcon_cursor

2020-02-14 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:f2850dd5 Merge tag 'kbuild-fixes-v5.6' of git://git.kernel.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=120eaae6e0 kernel config: https://syzkaller.appspot.com/x/.config?x=735296e

[RFC PATCH 0/6] do not store GPU address in TTM

2020-02-14 Thread Nirmoy Das
With this patch series I am trying to remove GPU address dependency in TTM and moving GPU address calculation to individual drm drivers. This is required[1] to continue the work started by Brian Welty to create struct drm_mem_region which can be leverage by DRM cgroup controller to manage memory l

RE: [PATCH v4 7/7] RFC: drm/panfrost: devfreq: Add support for 2 regulators

2020-02-14 Thread 范哲維
___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

[PATCH] drm/mediatek: Update the fb property mtk_plane_atomic_async_update

2020-02-14 Thread Enric Balletbo i Serra
Commit 920fffcc8912 ("drm/mediatek: update cursors by using async atomic update") added support to async updates of cursors by using the new atomic interface for that. Unfortunately, introduced two issues. The first one is that since then, the drm_atomic_helper_async_commit triggers a WARNING due c

[RFC PATCH 1/6] drm/amdgpu: move ttm bo->offset to amdgpu_bo

2020-02-14 Thread Nirmoy Das
GPU address should belong to driver not in memory management. This patch moves ttm bo.offset and gpu_offset calculation to amdgpu driver. Signed-off-by: Nirmoy Das --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 22 ++-- drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 1 + drivers/g

[RFC PATCH 5/6] drm/qxl: don't use ttm bo->offset

2020-02-14 Thread Nirmoy Das
Signed-off-by: Nirmoy Das --- drivers/gpu/drm/qxl/qxl_drv.h| 6 ++ drivers/gpu/drm/qxl/qxl_kms.c| 3 +++ drivers/gpu/drm/qxl/qxl_object.h | 5 - drivers/gpu/drm/qxl/qxl_ttm.c| 9 - 4 files changed, 5 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_

Re: [Intel-gfx] [PATCH v2] drm/i915: Disable -Wtautological-constant-out-of-range-compare

2020-02-14 Thread Nathan Chancellor
On Thu, Feb 13, 2020 at 04:37:15PM +0200, Jani Nikula wrote: > On Wed, 12 Feb 2020, Michel Dänzer wrote: > > On 2020-02-12 6:07 p.m., Nathan Chancellor wrote: > >> On Wed, Feb 12, 2020 at 09:52:52AM +0100, Michel Dänzer wrote: > >>> On 2020-02-11 9:39 p.m., Nathan Chancellor wrote: > On Tue,

[PATCH v2 1/2] Documentation: bindings: Add ANX7688 HDMI to DP bridge binding

2020-02-14 Thread Enric Balletbo i Serra
From: Nicolas Boichat Add documentation for DT properties supported by anx7688 HDMI-DP converter. Signed-off-by: Nicolas Boichat Signed-off-by: Hsin-Yi Wang Signed-off-by: Enric Balletbo i Serra --- Changes in v2: - Improve a bit the descriptions using the info from the datasheet. - Convert

Re: [PATCH v2 2/2] ARM: sun7i: dts: Add LVDS panel support on A20

2020-02-14 Thread Maxime Ripard
On Thu, Feb 13, 2020 at 12:23:57AM +0200, andrey.lebe...@gmail.com wrote: > From: Andrey Lebedev > > Define pins for LVDS channels 0 and 1, configure reset line for tcon0 and > provide sample LVDS panel, connected to tcon0. > > Signed-off-by: Andrey Lebedev And this prefix should be ARM: dts: su

[PATCH v3 1/3] drm/sun4i: tcon: Introduce LVDS setup routine setting

2020-02-14 Thread Andrey Lebedev
From: Andrey Lebedev Different sunxi flavors require slightly different sequence for enabling LVDS output. This allows to differentiate between them. Signed-off-by: Andrey Lebedev --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 68 -- drivers/gpu/drm/sun4i/sun4i_tcon.h |

Re: [PATCH] drm/mediatek: Update the fb property mtk_plane_atomic_async_update

2020-02-14 Thread Enric Balletbo i Serra
Hi, On 13/2/20 13:01, Enric Balletbo i Serra wrote: > Commit 920fffcc8912 ("drm/mediatek: update cursors by using async atomic > update") added support to async updates of cursors by using the new atomic > interface for that. Unfortunately, introduced two issues. The first one is > that since then

Re: [PATCH v2 1/4] PM / EM: add devices to Energy Model

2020-02-14 Thread Lukasz Luba
On 2/13/20 10:59 AM, Dietmar Eggemann wrote: On 06/02/2020 14:46, lukasz.l...@arm.com wrote: From: Lukasz Luba [..] @@ -26,7 +28,7 @@ framework, and interested clients reading the data from it:: s/::/: ? | Thermal (IPA) | | Scheduler (EAS) | | Other | +---

[PATCH v2 2/2] drm/bridge: anx7688: Add anx7688 bridge driver support

2020-02-14 Thread Enric Balletbo i Serra
From: Nicolas Boichat ANX7688 is a HDMI to DP converter (as well as USB-C port controller), that has an internal microcontroller. The only reason a Linux kernel driver is necessary is to reject resolutions that require more bandwidth than what is available on the DP side. DP bandwidth and lane c

[RFC PATCH 3/6] drm/vmwgfx: don't use ttm bo->offset

2020-02-14 Thread Nirmoy Das
Signed-off-by: Nirmoy Das --- drivers/gpu/drm/vmwgfx/vmwgfx_bo.c | 4 ++-- drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c| 2 +- drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c | 2 +- drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c | 2 -- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git

[RFC PATCH 4/6] drm/nouveau: don't use ttm bo->offset

2020-02-14 Thread Nirmoy Das
Signed-off-by: Nirmoy Das --- drivers/gpu/drm/nouveau/dispnv04/crtc.c | 6 +++--- drivers/gpu/drm/nouveau/dispnv04/disp.c | 2 +- drivers/gpu/drm/nouveau/dispnv04/overlay.c | 6 +++--- drivers/gpu/drm/nouveau/dispnv50/base507c.c | 2 +- drivers/gpu/drm/nouveau/dispnv50/core507d.c |

[RFC PATCH 6/6] drm/ttm: do not keep GPU dependent addresses

2020-02-14 Thread Nirmoy Das
GPU address handling is device specific and should be handle by its device driver. Signed-off-by: Nirmoy Das --- drivers/gpu/drm/ttm/ttm_bo.c| 7 --- include/drm/ttm/ttm_bo_api.h| 2 -- include/drm/ttm/ttm_bo_driver.h | 1 - 3 files changed, 10 deletions(-) diff --git a/drivers/gpu/

Re: [PATCH 1/1] Support LVDS output on Allwinner A20

2020-02-14 Thread Andrey Lebedev
On Thu, Feb 13, 2020 at 10:24:33AM +0100, Maxime Ripard wrote: > > > do you have a board when you have been able to test it? > > > > Yes, I have the hardware (Cubieboard 2) at hand, but I cannot change the > > any physical connections on it. FWIW, it is https://openvario.org, the > > device we are

[PATCH] drm/atomic-helper: fix kerneldoc

2020-02-14 Thread Daniel Vetter
Just a tiny copypasta mistake. Fixes: 751465913f04 ("drm/bridge: Add a drm_bridge_state object") Cc: Boris Brezillon Cc: Neil Armstrong Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_atomic_state_helper.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/drm_atomic_state

Re: [PATCH] drm/pl111: Support Integrator IM-PD1 module

2020-02-14 Thread Linus Walleij
On Thu, Feb 13, 2020 at 3:49 PM Daniel Vetter wrote: > Looking around in the arm/mach-integrator code this seems to match > roughly :-) I noticed there's also two more outputs for two panels, > but not here. Do we not care about these anymore? I actually have that hardware too (Integrator/PP2) a

Re: [PATCH v2] drm/i915: Disable -Wtautological-constant-out-of-range-compare

2020-02-14 Thread Nick Desaulniers
On Wed, Feb 12, 2020 at 9:17 AM Michel Dänzer wrote: > > On 2020-02-12 6:07 p.m., Nathan Chancellor wrote: > > On Wed, Feb 12, 2020 at 09:52:52AM +0100, Michel Dänzer wrote: > >> On 2020-02-11 9:39 p.m., Nathan Chancellor wrote: > >>> On Tue, Feb 11, 2020 at 10:41:48AM +0100, Michel Dänzer wrote:

[PATCH v5] dt-bindings: display: renesas: du: Document optional reset properties

2020-02-14 Thread Geert Uytterhoeven
Document the optional properties for describing module resets, to support resetting display channels on R-Car Gen2 and Gen3. Signed-off-by: Geert Uytterhoeven Acked-by: Laurent Pinchart Acked-by: Rob Herring --- Who's taking this kind of patches? V1 was submmitted in March 2017. v5: - Rebase

Re: [PATCH] drm/i915: Cast remain to unsigned long in eb_relocate_vma

2020-02-14 Thread Chris Wilson
Quoting Jani Nikula (2020-02-14 06:36:15) > On Thu, 13 Feb 2020, Nathan Chancellor wrote: > > A recent commit in clang added -Wtautological-compare to -Wall, which is > > enabled for i915 after -Wtautological-compare is disabled for the rest > > of the kernel so we see the following warning on x86

Re: [PATCH] drm/mediatek: fix race condition for HDMI jack status reporting

2020-02-14 Thread CK Hu
Hi, Tzung-Bi: On Fri, 2020-02-14 at 15:35 +0800, Tzung-Bi Shih wrote: > On Fri, Feb 14, 2020 at 3:07 PM CK Hu wrote: > > I think sound driver could be removed for some reason, and fn should be > > set to NULL before sound driver removed. In this case, codec_dev != NULL > > and fn == NULL. > > No

Re: [PATCH] drm/virtio: fix error check

2020-02-14 Thread Cornelia Huck
On Fri, 14 Feb 2020 09:01:00 +0100 Gerd Hoffmann wrote: > The >= compare op must happen in cpu byte order, doing it in > little endian fails on big endian machines like s390. > > Reported-by: Sebastian Mitterle > Signed-off-by: Gerd Hoffmann > --- > drivers/gpu/drm/virtio/virtgpu_vq.c | 2 +-

[PATCH] drm/print: Delete a few unused shouting macros

2020-02-14 Thread Daniel Vetter
We want to go over to the new lowercase ones, encourage that a bit more. Cc: Jani Nikula Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_managed.c | 21 + include/drm/drm_print.h | 26 -- 2 files changed, 21 insertions(+), 26 deletions(-)

Re: [RFC PATCH 5/6] drm/qxl: don't use ttm bo->offset

2020-02-14 Thread Gerd Hoffmann
> -   if (bo->mem.mm_node) > -   bo->offset = (bo->mem.start << PAGE_SHIFT) + > -   bdev->man[bo->mem.mem_type].gpu_offset; > -   else > -   bo->offset = 0; > - > > > My assumption is > > (bo->tbo.offset - slot->gpu_offset + offset) == (bo->tbo.me

Re: [PATCH] drm/print: Delete a few unused shouting macros

2020-02-14 Thread Jani Nikula
On Fri, 14 Feb 2020, Daniel Vetter wrote: > We want to go over to the new lowercase ones, encourage that a bit > more. > > Cc: Jani Nikula > Signed-off-by: Daniel Vetter > --- > drivers/gpu/drm/drm_managed.c | 21 + Oops? > include/drm/drm_print.h | 26 --

Re: [RFC PATCH 0/6] do not store GPU address in TTM

2020-02-14 Thread Thomas Zimmermann
Hi Am 13.02.20 um 13:01 schrieb Nirmoy Das: > With this patch series I am trying to remove GPU address dependency in > TTM and moving GPU address calculation to individual drm drivers. > This is required[1] to continue the work started by Brian Welty to create > struct drm_mem_region which can be

Re: [PATCH v5] dt-bindings: display: renesas: du: Document optional reset properties

2020-02-14 Thread Kieran Bingham
Hi Geert, On 14/02/2020 08:26, Geert Uytterhoeven wrote: > Document the optional properties for describing module resets, to > support resetting display channels on R-Car Gen2 and Gen3. > > Signed-off-by: Geert Uytterhoeven > Acked-by: Laurent Pinchart > Acked-by: Rob Herring Reviewed-by: Kie

Re: [RFC PATCH 1/3] KVM: vmx: rewrite the comment in vmx_get_mt_mask

2020-02-14 Thread Paolo Bonzini
On 13/02/20 22:30, Chia-I Wu wrote: > Better reflect the structure of the code and metion why we could not > always honor the guest. > > Signed-off-by: Chia-I Wu > Cc: Gurchetan Singh > Cc: Gerd Hoffmann > --- > arch/x86/kvm/vmx/vmx.c | 27 +-- > 1 file changed, 17 inse

[PATCH resend 0/2] dts: keystone-k2g-evm: Display support

2020-02-14 Thread Jyri Sarha
Resend because the earlier recipient list was wrong. Now that drm/tidss is queued for mainline, lets add display support for k2g-evm. There is no hurry since tidss is out only in v5.7, but it should not harm to have the dts changes in place before that. Jyri Sarha (2): ARM: dts: keystone-k2g:

[PATCH resend 2/2] ARM: dts: keystone-k2g-evm: add HDMI video support

2020-02-14 Thread Jyri Sarha
Add DT nodes for HDMI video support for K2G EVM. The HDMI uses SiI9022 DPI as HDMI encoder. The DSS DPI is connected to SiI9022 HDMI encoder's video input and encoder's output goes to HDMI connector. Signed-off-by: Jyri Sarha --- arch/arm/boot/dts/keystone-k2g-evm.dts | 101 +

[PATCH resend 1/2] ARM: dts: keystone-k2g: Add DSS node

2020-02-14 Thread Jyri Sarha
Add DT node for DSS. K2G has DSS version 6. Keystone family DSS are somewhat different compered to the old OMAP family DSSes and the binding looks different too. Signed-off-by: Jyri Sarha Signed-off-by: Tomi Valkeinen Signed-off-by: Jyri Sarha --- arch/arm/boot/dts/keystone-k2g.dtsi | 22 +

Re: [PATCH v7 01/13] dt-bindings: arm: move mmsys description to display

2020-02-14 Thread Matthias Brugger
On 14/02/2020 07:42, CK Hu wrote: > Hi, Matthias: > > On Thu, 2020-02-13 at 21:19 +0100, matthias@kernel.org wrote: >> From: Matthias Brugger >> >> The mmsys block provides registers and clocks for the display >> subsystem. The binding description should therefore live together with >> the

Re: [PATCH 1/3] arm64: dts: mt8183: Add gce setting in display node

2020-02-14 Thread Matthias Brugger
On 14/02/2020 05:49, Bibby Hsieh wrote: > In order to use GCE function, we need add some information > into display node (mboxes, mediatek,gce-client-reg, mediatek,gce-events). > > Signed-off-by: Bibby Hsieh > Signed-off-by: Yongqiang Niu > --- For the next time please provide some context o

Re: [RFC PATCH 0/3] KVM: x86: honor guest memory type

2020-02-14 Thread Paolo Bonzini
On 13/02/20 23:18, Chia-I Wu wrote: > > The bug you mentioned was probably this one > > https://bugzilla.kernel.org/show_bug.cgi?id=104091 Yes, indeed. > From what I can tell, the commit allowed the guests to create cached > mappings to MMIO regions and caused MCEs. That is different than wh

Re: [RFC PATCH 0/6] do not store GPU address in TTM

2020-02-14 Thread Nirmoy
On 2/14/20 10:19 AM, Thomas Zimmermann wrote: Hi Am 13.02.20 um 13:01 schrieb Nirmoy Das: With this patch series I am trying to remove GPU address dependency in TTM and moving GPU address calculation to individual drm drivers. This is required[1] to continue the work started by Brian Welty to

Re: [PATCH v4] drm/tidss: dispc: Rewrite naive plane positioning code

2020-02-14 Thread Tomi Valkeinen
On 13/02/2020 21:37, Jyri Sarha wrote: The old implementation of placing planes on the CRTC while configuring the planes was naive and relied on the order in which the planes were configured, enabled, and disabled. The situation where a plane's zpos was changed on the fly was completely broken. T

Re: [PATCH] drm/i915: Cast remain to unsigned long in eb_relocate_vma

2020-02-14 Thread Jani Nikula
On Fri, 14 Feb 2020, Chris Wilson wrote: > Quoting Jani Nikula (2020-02-14 06:36:15) >> On Thu, 13 Feb 2020, Nathan Chancellor wrote: >> > A recent commit in clang added -Wtautological-compare to -Wall, which is >> > enabled for i915 after -Wtautological-compare is disabled for the rest >> > of t

Re: [RFC PATCH 5/6] drm/qxl: don't use ttm bo->offset

2020-02-14 Thread Nirmoy
On 2/14/20 10:08 AM, Gerd Hoffmann wrote: -   if (bo->mem.mm_node) -   bo->offset = (bo->mem.start << PAGE_SHIFT) + -   bdev->man[bo->mem.mem_type].gpu_offset; -   else -   bo->offset = 0; - My assumption is (bo->tbo.offset - slot->gpu_offset

[Bug 206519] [amdgpu] kernel NULL pointer dereference on shutdown

2020-02-14 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=206519 --- Comment #3 from Shlomo (shl...@fastmail.com) --- The bug first occurs in Arch Linux 5.5.arch1-1, which set CONFIG_DRM_AMD_DC_HDCP=y [1]. Arch Linux 5.4.15.arch1-1 is good. Arch Linux 5.4.15.arch1-1 with CONFIG_DRM_AMD_DC_HDCP=y set (and no ot

Re: [PATCH v2 2/2] drm/bridge: anx7688: Add anx7688 bridge driver support

2020-02-14 Thread Andrzej Hajda
On 13.02.2020 15:54, Enric Balletbo i Serra wrote: > From: Nicolas Boichat > > ANX7688 is a HDMI to DP converter (as well as USB-C port controller), > that has an internal microcontroller. > > The only reason a Linux kernel driver is necessary is to reject > resolutions that require more bandwidth

[PATCH v4 0/6] drm/virtio: rework batching

2020-02-14 Thread Gerd Hoffmann
v4: - add patches #2 + #6. v3: - split into multiple patches. Gerd Hoffmann (6): drm/virtio: rework notification for better batching drm/virtio: notify before waiting drm/virtio: batch plane updates (pageflip) drm/virtio: batch resource creation drm/virtio: batch display query drm/vi

[PATCH v4 6/6] drm/virtio: move remaining virtio_gpu_notify calls

2020-02-14 Thread Gerd Hoffmann
Move all remaining virtio_gpu_notify() calls from virtio_gpu_cmd_* to the callers, for consistency reasons. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/virtio/virtgpu_gem.c| 2 ++ drivers/gpu/drm/virtio/virtgpu_ioctl.c | 3 +++ drivers/gpu/drm/virtio/virtgpu_kms.c| 3 +++ drivers/g

[PATCH v4 5/6] drm/virtio: batch display query

2020-02-14 Thread Gerd Hoffmann
Move virtio_gpu_notify() to higher-level functions for virtio_gpu_cmd_get_display_info() and virtio_gpu_cmd_get_edids(). virtio_gpu_config_changed_work_func() and virtio_gpu_init() will batch commands and notify only once per update Signed-off-by: Gerd Hoffmann Reviewed-by: Chia-I Wu --- drive

[PATCH v4 1/6] drm/virtio: rework notification for better batching

2020-02-14 Thread Gerd Hoffmann
Drop the virtio_gpu_{disable,enable}_notify(). Add a new virtio_gpu_notify() call instead, which must be called whenever the driver wants make sure the host is notified needed. Drop automatic notification from command submission. Add virtio_gpu_notify() calls after each command query instead. Th

[PATCH v4 3/6] drm/virtio: batch plane updates (pageflip)

2020-02-14 Thread Gerd Hoffmann
Move virtio_gpu_notify() to higher-level functions for virtio_gpu_cmd_resource_flush(), virtio_gpu_cmd_set_scanout() and virtio_gpu_cmd_transfer_to_host_{2d,3d}(). virtio_gpu_primary_plane_update() will notify only once for a series of commands (restores plane update command batching). Signed-off

[PATCH v4 2/6] drm/virtio: notify before waiting

2020-02-14 Thread Gerd Hoffmann
Before we are going to wait for virtqueue entries becoming available call virtio_gpu_notify() to make sure the host has seen everything we've submitted. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/virtio/virtgpu_vq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/virtio

[PATCH v4 4/6] drm/virtio: batch resource creation

2020-02-14 Thread Gerd Hoffmann
Move virtio_gpu_notify() to higher-level functions for virtio_gpu_cmd_create_resource(), virtio_gpu_cmd_resource_create_3d() and virtio_gpu_cmd_resource_attach_backing(). virtio_gpu_object_create() will batch commands and notify only once when creating a resource. Signed-off-by: Gerd Hoffmann Re

Re: [PATCH 1/2] dt-bindings: display: sun4i-tcon: Add LVDS Dual Link property

2020-02-14 Thread Laurent Pinchart
Hi Maxime, Thank you for the patch. On Fri, Feb 14, 2020 at 01:32:43PM +0100, Maxime Ripard wrote: > SoCs that have multiple TCONs can use the two set of pins on the first TCON > to drive a dual-link display. Add a property to enable the dual link. > > Signed-off-by: Maxime Ripard > --- > .../

Re: [PATCH v2 2/2] drm/bridge: anx7688: Add anx7688 bridge driver support

2020-02-14 Thread Nicolas Boichat
On Fri, Feb 14, 2020 at 8:18 PM Andrzej Hajda wrote: > > On 13.02.2020 15:54, Enric Balletbo i Serra wrote: > > From: Nicolas Boichat > > > > ANX7688 is a HDMI to DP converter (as well as USB-C port controller), > > that has an internal microcontroller. > > > > The only reason a Linux kernel driv

[PATCH] drm/qxl: don't take vga ports on rev5+

2020-02-14 Thread Gerd Hoffmann
qemu 5.0 introduces a new qxl hardware revision 5. Unlike revision 4 (and below) the device doesn't switch back into vga compatibility mode when someone touches the vga ports. So we don't have to reserve the vga ports any more to avoid that happening. Signed-off-by: Gerd Hoffmann --- drivers/g

Re: [RFC PATCH 2/6] drm/radeon: don't use ttm bo->offset

2020-02-14 Thread Christian König
Am 13.02.20 um 14:28 schrieb Nirmoy: On 2/13/20 2:00 PM, Christian König wrote: Am 13.02.20 um 13:31 schrieb Nirmoy: On 2/13/20 1:18 PM, Christian König wrote: Looks like most of the patch is missing? We should have quite a number of uses of the BO offset in radeon or do all of those go th

Re: [PATCH] drm/print: Delete a few unused shouting macros

2020-02-14 Thread Sam Ravnborg
Hi Daniel. On Fri, Feb 14, 2020 at 10:04:28AM +0100, Daniel Vetter wrote: > We want to go over to the new lowercase ones, encourage that a bit > more. Thanks for doing this, one item less on my TODO list now. > > Cc: Jani Nikula > Signed-off-by: Daniel Vetter > --- > drivers/gpu/drm/drm_manag

Re: [PATCH] drm/i915: Cast remain to unsigned long in eb_relocate_vma

2020-02-14 Thread Michel Dänzer
On 2020-02-14 12:49 p.m., Jani Nikula wrote: > On Fri, 14 Feb 2020, Chris Wilson wrote: >> Quoting Jani Nikula (2020-02-14 06:36:15) >>> On Thu, 13 Feb 2020, Nathan Chancellor wrote: A recent commit in clang added -Wtautological-compare to -Wall, which is enabled for i915 after -Wtautol

[PATCH AUTOSEL 5.5 007/542] drm/qxl: Complete exception handling in qxl_device_init()

2020-02-14 Thread Sasha Levin
From: Markus Elfring [ Upstream commit dbe3ad61dcebc49fe3efca70a0f752a95b4600f2 ] A coccicheck run provided information like the following. drivers/gpu/drm/qxl/qxl_kms.c:295:1-7: ERROR: missing iounmap; ioremap on line 178 and execution via conditional on line 185 Generated by: scripts/coccine

[PATCH AUTOSEL 5.5 024/542] drm: rcar-du: Recognize "renesas, vsps" in addition to "vsps"

2020-02-14 Thread Sasha Levin
From: Geert Uytterhoeven [ Upstream commit 7b627ce80fbd05885b27f711a5f9820f2b40749a ] The Renesas-specific "vsps" property lacks a vendor prefix. Add a "renesas," prefix to comply with DT best practises. Retain backward compatibility with old DTBs by falling back to "vsps" when needed. Fixes: 6

[PATCH AUTOSEL 5.5 001/542] drm/amdgpu: remove set but not used variable 'mc_shared_chmap' from 'gfx_v6_0.c' and 'gfx_v7_0.c'

2020-02-14 Thread Sasha Levin
From: yu kuai [ Upstream commit 747a397d394fac0001e4b3c03d7dce3a118af567 ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c: In function ‘gfx_v6_0_constants_init’: drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c:1579:6: warning: variable ‘mc_shared_chmap’ set but not u

[PATCH AUTOSEL 5.5 003/542] drm/dp_mst: fix multiple frees of tx->bytes

2020-02-14 Thread Sasha Levin
From: Colin Ian King [ Upstream commit 2c8bc91488fc57438c43b3bb19deb7fdbc1e5119 ] Currently tx->bytes is being freed r->num_transactions number of times because tx is not being set correctly. Fix this by setting tx to &r->transactions[i] so that the correct objects are being freed on each loop i

[PATCH AUTOSEL 5.5 002/542] drm/gma500: Fixup fbdev stolen size usage evaluation

2020-02-14 Thread Sasha Levin
From: Paul Kocialkowski [ Upstream commit fd1a5e521c3c083bb43ea731aae0f8b95f12b9bd ] psbfb_probe performs an evaluation of the required size from the stolen GTT memory, but gets it wrong in two distinct ways: - The resulting size must be page-size-aligned; - The size to allocate is derived from

[PATCH AUTOSEL 5.5 037/542] drm/mipi_dbi: Fix off-by-one bugs in mipi_dbi_blank()

2020-02-14 Thread Sasha Levin
From: Geert Uytterhoeven [ Upstream commit 2ce18249af5a28031b3f909cfafccc88ea966c9d ] When configuring the frame memory window, the last column and row numbers are written to the column resp. page address registers. These numbers are thus one less than the actual window width resp. height. Whi

[PATCH AUTOSEL 5.5 006/542] drm/virtio: fix byteorder handling in virtio_gpu_cmd_transfer_{from, to}_host_3d functions

2020-02-14 Thread Sasha Levin
From: Gerd Hoffmann [ Upstream commit 1dc3485247170d3b88a21cadee7f7da1f0433495 ] Be consistent with the rest of the code base. No functional change. v2: - fix sparse warnings for virtio_gpu_cmd_transfer_to_host_2d call. - move convert_to_hw_box helper function. Signed-off-by: Gerd Hoffmann

[PATCH AUTOSEL 5.5 029/542] drm/amd/display: Map ODM memory correctly when doing ODM combine

2020-02-14 Thread Sasha Levin
From: Nikola Cornij [ Upstream commit ec5b356c58941bb8930858155d9ce14ceb3d30a0 ] [why] Up to 4 ODM memory pieces are required per ODM combine and cannot overlap, i.e. each ODM "session" has to use its own memory pieces. The ODM-memory mapping is currently broken for generic case. The maximum nu

[PATCH AUTOSEL 5.5 038/542] drm/msm/adreno: fix zap vs no-zap handling

2020-02-14 Thread Sasha Levin
From: Rob Clark [ Upstream commit 15ab987c423df561e0949d77fb5043921ae59956 ] We can have two cases, when it comes to "zap" fw. Either the fw requires zap fw to take the GPU out of secure mode at boot, or it does not and we can write RBBM_SECVID_TRUST_CNTL directly. Previously we decided based

[PATCH AUTOSEL 5.5 039/542] pxa168fb: Fix the function used to release some memory in an error handling path

2020-02-14 Thread Sasha Levin
From: Christophe JAILLET [ Upstream commit 3c911fe799d1c338d94b78e7182ad452c37af897 ] In the probe function, some resources are allocated using 'dma_alloc_wc()', they should be released with 'dma_free_wc()', not 'dma_free_coherent()'. We already use 'dma_free_wc()' in the remove function, but n

Re: [PATCH 1/2] dt-bindings: display: sun4i-tcon: Add LVDS Dual Link property

2020-02-14 Thread Laurent Pinchart
Hi Maxime, On Fri, Feb 14, 2020 at 04:44:05PM +0100, Maxime Ripard wrote: > On Fri, Feb 14, 2020 at 03:10:25PM +0200, Laurent Pinchart wrote: > > On Fri, Feb 14, 2020 at 01:32:43PM +0100, Maxime Ripard wrote: > > > SoCs that have multiple TCONs can use the two set of pins on the first > > > TCON

[PATCH AUTOSEL 5.5 080/542] drm/amd/display: Clear state after exiting fixed active VRR state

2020-02-14 Thread Sasha Levin
From: Amanda Liu [ Upstream commit 6f8f76444baf405bacb0591d97549a71a9aaa1ac ] [why] Upon exiting a fixed active VRR state, the state isn't cleared. This leads to the variable VRR range to be calculated incorrectly. [how] Set fixed active state to false when updating vrr params Signed-off-by: A

[PATCH AUTOSEL 5.5 074/542] drm/nouveau/nouveau: fix incorrect sizeof on args.src an args.dst

2020-02-14 Thread Sasha Levin
From: Colin Ian King [ Upstream commit f42e4b337b327b1336c978c4b5174990a25f68a0 ] The sizeof is currently on args.src and args.dst and should be on *args.src and *args.dst. Fortunately these sizes just so happen to be the same size so it worked, however, this should be fixed and it also cleans u

[PATCH AUTOSEL 5.5 070/542] drm/amdgpu/sriov: workaround on rev_id for Navi12 under sriov

2020-02-14 Thread Sasha Levin
From: Tiecheng Zhou [ Upstream commit df5e984c8bd414561c320d6cbbb66d53abf4c7e2 ] guest vm gets 0x when reading RCC_DEV0_EPF0_STRAP0, as a consequence, the rev_id and external_rev_id are wrong. workaround it by hardcoding the rev_id to 0, which is the default value. v2. add comment in t

[PATCH AUTOSEL 5.5 117/542] drm/amd/display: Retrain dongles when SINK_COUNT becomes non-zero

2020-02-14 Thread Sasha Levin
From: Harry Wentland [ Upstream commit 3eb6d7aca53d81ce888624f09cd44dc0302161e8 ] [WHY] Two years ago the patch referenced by the Fixes tag stopped running dp_verify_link_cap_with_retries during DP detection when the reason for the detection was a short-pulse interrupt. This effectively meant th

[PATCH AUTOSEL 5.5 095/542] backlight: qcom-wled: Fix unsigned comparison to zero

2020-02-14 Thread Sasha Levin
From: Chen Zhou [ Upstream commit 7af43a76695db71a57203793fb9dd3c81a5783b1 ] Fixes coccicheck warning: ./drivers/video/backlight/qcom-wled.c:1104:5-15: WARNING: Unsigned expression compared with zero: string_len > 0 The unsigned variable string_len is assigned a return value from the ca

[PATCH AUTOSEL 5.5 131/542] drm/amdkfd: Fix a bug in SDMA RLC queue counting under HWS mode

2020-02-14 Thread Sasha Levin
From: Yong Zhao [ Upstream commit f38abc15d157b7b31fa7f651dc8bf92858c963f8 ] The sdma_queue_count increment should be done before execute_queues_cpsch(), which calls pm_calc_rlib_size() where sdma_queue_count is used to calculate whether over_subscription is triggered. With the previous code, w

[PATCH AUTOSEL 5.5 144/542] drm/amd/powerplay: remove set but not used variable 'vbios_version', 'data'

2020-02-14 Thread Sasha Levin
From: zhengbin [ Upstream commit cb7709223b39287a020e92ff880d11d377dc53a1 ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c: In function smu7_check_mc_firmware: drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c:4215:11: warning: variable vbios_ve

[PATCH AUTOSEL 5.5 138/542] drm/amd/display: Renoir chroma viewport WA

2020-02-14 Thread Sasha Levin
From: Eric Yang [ Upstream commit 1cad8ff7ecc6b70a062b8e8b74a0cd08c928341d ] [Why] For unknown reason, immediate flip with host VM translation on NV12 surface will underflow on last row of PTE. [How] Hack chroma viewport height to make fetch one more row of PTE. Note that this will cause hubp u

[PATCH AUTOSEL 5.5 158/542] drm/amd/display: remove set but not used variable 'bp' in bios_parser.c

2020-02-14 Thread Sasha Levin
From: zhengbin [ Upstream commit 7e30402bed151fc6222baafe5aa1abe3e65c3065 ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/amd/display/dc/bios/bios_parser.c: In function bios_get_board_layout_info: drivers/gpu/drm/amd/display/dc/bios/bios_parser.c:2743:22: warning: variable bp

[PATCH AUTOSEL 5.5 155/542] drm/amdkfd: remove set but not used variable 'top_dev'

2020-02-14 Thread Sasha Levin
From: zhengbin [ Upstream commit d191bd678153307573d615bb42da4fcca19fe477 ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/amd/amdkfd/kfd_iommu.c: In function kfd_iommu_device_init: drivers/gpu/drm/amd/amdkfd/kfd_iommu.c:65:30: warning: variable top_dev set but not used [-Wunus

[PATCH AUTOSEL 5.5 151/542] drm/gma500: remove set but not used variable 'htotal'

2020-02-14 Thread Sasha Levin
From: zhengbin [ Upstream commit dfa703b6f91818fa9f652c00e3589c104c518930 ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/gma500/oaktrail_hdmi.c: In function htotal_calculate: drivers/gpu/drm/gma500/oaktrail_hdmi.c:160:6: warning: variable htotal set but not used [-Wunused-but

[PATCH AUTOSEL 5.5 139/542] drm/amdgpu: remove 4 set but not used variable in amdgpu_atombios_get_connector_info_from_object_table

2020-02-14 Thread Sasha Levin
From: yu kuai [ Upstream commit bae028e3e521e8cb8caf2cc16a455ce4c55f2332 ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c: In function 'amdgpu_atombios_get_connector_info_from_object_table': drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c:376:26: warnin

[PATCH AUTOSEL 5.5 149/542] drm/amdgpu: remove set but not used variable 'invalid'

2020-02-14 Thread Sasha Levin
From: yu kuai [ Upstream commit 9e089a29c696d86d26e79737bafbce94738fb462 ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c: In function ‘amdgpu_amdkfd_evict_userptr’: drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c:1665:6: warning: variable ‘inva

[PATCH AUTOSEL 5.5 152/542] drm/gma500: remove set but not used variable 'error'

2020-02-14 Thread Sasha Levin
From: zhengbin [ Upstream commit a5eb29a9d2fc03d07af7d02f6c2e7ae1e6d985f9 ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/gma500/psb_irq.c: In function psb_sgx_interrupt: drivers/gpu/drm/gma500/psb_irq.c:210:6: warning: variable error set but not used [-Wunused-but-set-variabl

[PATCH AUTOSEL 5.5 153/542] drm/gma500: remove set but not used variable 'is_hdmi', 'is_crt'

2020-02-14 Thread Sasha Levin
From: zhengbin [ Upstream commit 834c43a97f341d319aa7b74099bbce2c4e75bc72 ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/gma500/cdv_intel_display.c: In function cdv_intel_crtc_mode_set: drivers/gpu/drm/gma500/cdv_intel_display.c:594:7: warning: variable is_hdmi set but not us

[PATCH AUTOSEL 5.5 156/542] drm/amd/display: remove set but not used variable 'old_plane_crtc'

2020-02-14 Thread Sasha Levin
From: zhengbin [ Upstream commit d3b65841b31c0192f997e0f9bc64dccbfaa97bcc ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c: In function dm_determine_update_type_for_commit: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c:6516:36: warning: var

[PATCH AUTOSEL 5.5 140/542] drm/amdgpu: remove set but not used variable 'dig_connector'

2020-02-14 Thread Sasha Levin
From: yu kuai [ Upstream commit 5bea7fedb7fe4d5e6d3ba9f385dd3619fb004ce7 ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/amd/amdgpu/atombios_dp.c: In function ‘amdgpu_atombios_dp_get_panel_mode’: drivers/gpu/drm/amd/amdgpu/atombios_dp.c:364:36: warning: variable ‘dig_connector’

[PATCH AUTOSEL 5.5 143/542] drm/amdgpu: remove set but not used variable 'mc_shared_chmap'

2020-02-14 Thread Sasha Levin
From: yu kuai [ Upstream commit e98042db2cb8d0b728cd76e05b9c2e1c84b7f72b ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c: In function ‘gfx_v8_0_gpu_early_init’: drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c:1713:6: warning: variable ‘mc_shared_chmap’ set but not u

[PATCH AUTOSEL 5.5 147/542] drm/amdgpu: remove set but not used variable 'amdgpu_connector'

2020-02-14 Thread Sasha Levin
From: yu kuai [ Upstream commit 4f2922d12d6c63d0f4aa4e859ad95aee6d0d4ea0 ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/amd/amdgpu/amdgpu_display.c: In function ‘amdgpu_display_crtc_scaling_mode_fixup’: drivers/gpu/drm/amd/amdgpu/amdgpu_display.c:693:27: warning: variable ‘amd

[PATCH AUTOSEL 5.5 142/542] drm/amdgpu: remove always false comparison in 'amdgpu_atombios_i2c_process_i2c_ch'

2020-02-14 Thread Sasha Levin
From: yu kuai [ Upstream commit 220ac8d1444054ade07ce14498fcda266410f90e ] Fixes gcc '-Wtype-limits' warning: drivers/gpu/drm/amd/amdgpu/atombios_i2c.c: In function ‘amdgpu_atombios_i2c_process_i2c_ch’: drivers/gpu/drm/amd/amdgpu/atombios_i2c.c:79:11: warning: comparison is always false due to

[PATCH AUTOSEL 5.5 141/542] drm/amdgpu: remove set but not used variable 'dig'

2020-02-14 Thread Sasha Levin
From: yu kuai [ Upstream commit d1d09dc417826f5a983e0f4f212f227beeb65e29 ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/amd/amdgpu/atombios_dp.c: In function ‘amdgpu_atombios_dp_link_train’: drivers/gpu/drm/amd/amdgpu/atombios_dp.c:716:34: warning: variable ‘dig’ set but not u

  1   2   3   4   >