Re: [PATCH] drm: radeon: fix overflow on 32bit systems

2018-11-28 Thread Christian König
Am 27.11.18 um 12:50 schrieb Yang Xiao: From: Young Xiao the type mem->start is unsigned long, so this can overflow on 32bit system, since the type addr is uint64_t. Signed-off-by: Young Xiao Reviewed-by: Christian König --- drivers/gpu/drm/radeon/radeon_vm.c | 2 +- 1 file changed, 1

Re: [PATCH] drm/fbdev: Make skip_vt_switch the default

2018-11-28 Thread Daniel Vetter
On Wed, Nov 28, 2018 at 08:17:04AM +0100, Maarten Lankhorst wrote: > Op 27-11-18 om 18:34 schreef Daniel Vetter: > > KMS drivers really should all be able to restore their display state > > on resume without fbcon helping out. So make this the default. > > > > Since I'm not entirely foolish, make i

Re: [Intel-gfx] [PATCH v5 4/5] drm: Add library for shmem backed GEM objects

2018-11-28 Thread Daniel Vetter
On Tue, Nov 27, 2018 at 12:38:44PM -0800, Eric Anholt wrote: > Daniel Vetter writes: > > > On Mon, Nov 26, 2018 at 04:36:21PM -0800, Eric Anholt wrote: > >> Noralf Trønnes writes: > >> > +static void drm_gem_shmem_vm_close(struct vm_area_struct *vma) > >> > +{ > >> > +struct drm_gem_obje

Re: [PATCH v6 3/6] drm/dp_mst: Start tracking per-port VCPI allocations

2018-11-28 Thread Daniel Vetter
On Tue, Nov 27, 2018 at 08:44:14PM -0500, Lyude Paul wrote: > On Tue, 2018-11-27 at 20:44 +0100, Daniel Vetter wrote: > > On Tue, Nov 27, 2018 at 12:48:59PM -0500, Lyude Paul wrote: > > > On Mon, 2018-11-26 at 22:22 +0100, Daniel Vetter wrote: > > > > On Mon, Nov 26, 2018 at 10:04:21PM +0100, Danie

Re: [PATCH 1/3] drm: Move drm_mode_setcrtc() local re-init to failure path

2018-11-28 Thread Daniel Vetter
On Tue, Nov 27, 2018 at 05:46:38PM -0500, Sean Paul wrote: > From: Sean Paul > > Instead of always re-initializing the variables we need to clean up on > out, move the re-initialization into the branch that goes back to retry > label. > > This is a lateral move right now, but will allow us to pu

Re: [PATCH 2/3] drm: Move atomic_state_put after locks are dropped

2018-11-28 Thread Daniel Vetter
On Tue, Nov 27, 2018 at 05:46:39PM -0500, Sean Paul wrote: > From: Sean Paul > > drm_atomic_state_put doesn't require any locking, and this makes things > easier for switching to modeset_lock_all helpers in a future patch > > Cc: Daniel Vetter > Signed-off-by: Sean Paul > --- > drivers/gpu/dr

[PATCH] [BUG REPORT] Panic with sys_imageblit on arm64

2018-11-28 Thread yezengruan
From: yezengruan Hi all, When I run linux-4.19.2 on arm64, I got panic in sys_imageblit. My test steps are as fllows: 1) Remote login using BMC; 2) Enter a bunch of 'Enter' keys; 3) Execute the 'top' command and continuously press shift + page up several times. This gives the following panic

Re: [PATCH] drm/meson: Add support for VIC alternate timings

2018-11-28 Thread Maxime Jourdan
On Tue, Nov 6, 2018 at 11:55 AM Neil Armstrong wrote: > > This change is an attempt to handle the alternate clock for the CEA mode. > 60Hz vs. 59.94Hz, 30Hz vs 29.97Hz or 24Hz vs 23.97Hz on the Amlogic Meson SoC > DRM Driver pixel clock generation. > > The actual clock generation will be moved to

[BUG REPORT] Panic with sys_imageblit on arm64

2018-11-28 Thread yezengruan
Hi all, When I run linux-4.19.2 on arm64, I got panic in sys_imageblit. My test steps are as fllows: 1) Remote login using BMC; 2) Enter a bunch of 'Enter' keys; 3) Execute the 'top' command and continuously press shift + page up several times. This gives the following panic on the serial conso

Re: 4.20.0-rc3 nouveau/Quadro P2000 Mobile: runpm causing ACPI errors, lockups

2018-11-28 Thread Mika Westerberg
+linux-acpi Hi Michael, On Mon, Nov 26, 2018 at 10:53:26PM -0500, Michael S. Tsirkin wrote: > So a new thinkpad: > 01:00.0 VGA compatible controller: NVIDIA Corporation GP107GLM [Quadro P2000 > Mobile] (rev a1) > > Hangs whenever I try to poke at the card. It starts happily enough with > > [

Re: [PATCH V2] mm: Replace all open encodings for NUMA_NO_NODE

2018-11-28 Thread Michael Ellerman
Anshuman Khandual writes: > At present there are multiple places where invalid node number is encoded > as -1. Even though implicitly understood it is always better to have macros > in there. Replace these open encodings for an invalid node number with the > global macro NUMA_NO_NODE. This helps r

Re: [RFC PATCH v2] android: ion: How to properly clean caches for uncached allocations

2018-11-28 Thread Liam Mark
On Tue, 27 Nov 2018, Brian Starkey wrote: > Hi Liam, > > On Mon, Nov 26, 2018 at 08:59:44PM -0800, Liam Mark wrote: > > On Tue, 20 Nov 2018, Brian Starkey wrote: > > > > > Hi Liam, > > > > > > I'm missing a bit of context here, but I did read the v1 thread. > > > Please accept my apologies if I

Re: [BUG] drm_rockchip: rk3066_hdmi: No driver support for vblank timestamp query.

2018-11-28 Thread Johan Jonker
On 11/27/18 10:11 AM, Tomasz Figa wrote: > > I don't see display support enabled in the rk3066-mk808.dts in latest > upstream: > https://elixir.bootlin.com/linux/latest/source/arch/arm/boot/dts/rk3066a-mk808.dts > > Do you have any local changes in your kernel sources? > Thanks for your respo

[PATCH][resend] drm: dw-hdmi-i2s: convert to SPDX identifiers

2018-11-28 Thread Kuninori Morimoto
From: Kuninori Morimoto This patch updates license to use SPDX-License-Identifier instead of verbose license text. Signed-off-by: Kuninori Morimoto --- 2weeks passed. resend drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --

Re: [PATCH] drm/meson: Add HDMI 1.4 4k modes

2018-11-28 Thread Maxime Jourdan
On Tue, Nov 6, 2018 at 10:35 AM Neil Armstrong wrote: > > Add the timings for the HDMI 1.4 4K modes support : > - 3840x2160@30 > - 3840x2160@25 > - 3840x2160@24 > > Since the 297000Hz pixel clock is already managed and the modes are > compatible with the HDMI 1.4 current HDMI PHY+Controller suppor

[PATCH] drm/amd/display: fix uninitialized symbol 'id' in bios_parser_get_src_obj

2018-11-28 Thread Yang Xiao
From: Young Xiao See commit a8f976473196 ("drm/amd/display: Bunch of smatch error and warning fixes in DC") for detail. Signed-off-by: Young Xiao --- drivers/gpu/drm/amd/display/dc/bios/bios_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/di

Re: [PATCH v8 3/7] mm, devm_memremap_pages: Fix shutdown handling

2018-11-28 Thread Logan Gunthorpe
Hey Dan, On 2018-11-20 4:13 p.m., Dan Williams wrote: > The last step before devm_memremap_pages() returns success is to > allocate a release action, devm_memremap_pages_release(), to tear the > entire setup down. However, the result from devm_add_action() is not > checked. > > Checking the error

Re: [BUG] drm_rockchip: rk3066_hdmi: No driver support for vblank timestamp query.

2018-11-28 Thread Johan Jonker
My local changes for VOP and HDMI. (PART 2) From 81bc4d4f83b57161c8ba7005875a2f9ff9ec1d3a Mon Sep 17 00:00:00 2001 From: Finley Xiao Date: Mon, 6 Nov 2017 11:50:54 +0800 Subject: [PATCH] clk: rockchip: rk3188: Add CLK_SET_RATE_PARENT for lcdc dclk Add CLK_SET_RATE_PARENT for lcdc dclk. Signed-of

Re: [linux-sunxi] Re: [PATCH v4 08/26] drm/sun4i: sun6i_mipi_dsi: Fix VBP size calculation

2018-11-28 Thread Jagan Teki
On Tue, Nov 27, 2018 at 3:55 PM Maxime Ripard wrote: > > On Tue, Nov 20, 2018 at 09:55:42PM +0530, Jagan Teki wrote: > > On Tue, Nov 20, 2018 at 9:27 PM Maxime Ripard > > wrote: > > > > > > On Thu, Nov 15, 2018 at 11:19:53PM +0530, Jagan Teki wrote: > > > > On Thu, Nov 15, 2018 at 3:26 PM Maxime

[PATCH] drm: radeon: fix overflow on 32bit systems

2018-11-28 Thread Yang Xiao
From: Young Xiao the type mem->start is unsigned long, so this can overflow on 32bit system, since the type addr is uint64_t. Signed-off-by: Young Xiao --- drivers/gpu/drm/radeon/radeon_vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/radeon_vm.c

[PATCH v2] dt-bindings: drm/panel: simple: Fix typo in EDT etm-series compatible

2018-11-28 Thread Jan Tuerk
This fixes the error in the compatible documentation for the EDT etm0700[g].. panels which have accidentally documented as etm0700[8]0.. Signed-off-by: Jan Tuerk --- .../devicetree/bindings/display/panel/edt,et-series.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Changes v

Re: [PATCH 3/3] drm: Add DRM_MODESET_LOCK_BEGIN/END helpers

2018-11-28 Thread Daniel Vetter
On Tue, Nov 27, 2018 at 05:46:40PM -0500, Sean Paul wrote: > From: Sean Paul > > This patch adds a couple of helpers to remove the boilerplate involved > in grabbing all of the modeset locks. > > I've also converted the obvious cases in drm core to use the helpers. > > The only remaining instan

RE: [Intel-gfx] [PATCH RFC 2/5] cgroup: Add mechanism to register vendor specific DRM devices

2018-11-28 Thread Joonas Lahtinen
Quoting Ho, Kenny (2018-11-27 17:41:17) > On Tue, Nov 27, 2018 at 4:46 AM Joonas Lahtinen > wrote: > > I think a more abstract property "% of GPU (processing power)" might > > be a more universal approach. One can then implement that through > > subdividing the resources or timeslicing them, depe

Re: [PATCH v2 0/3] drm/vc4: Add a load tracker

2018-11-28 Thread Paul Kocialkowski
Hi, On Thu, 2018-10-25 at 14:45 +0200, Boris Brezillon wrote: > Hello, > > This is the 2nd version of the VC4 load tracker patch. > > Daniel, as you suggested, I've implemented a generic infrastructure to > track and report underrun errors (patch 1). Not sure this is what you > had in mind, but

[Bug 201795] [Regression] Wrong 4k resolution detected with DisplayPort to HDMI adapter on amdgpu

2018-11-28 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=201795 --- Comment #3 from Michel Dänzer (mic...@daenzer.net) --- Please also attach the output of dmesg and the Xorg log file in each case. -- You are receiving this mail because: You are watching the assignee of the bug. _

Re: [PATCH v2 0/3] drm/vc4: Add a load tracker

2018-11-28 Thread Boris Brezillon
On Wed, 28 Nov 2018 10:16:17 +0100 Paul Kocialkowski wrote: > Hi, > > On Thu, 2018-10-25 at 14:45 +0200, Boris Brezillon wrote: > > Hello, > > > > This is the 2nd version of the VC4 load tracker patch. > > > > Daniel, as you suggested, I've implemented a generic infrastructure to > > track and

[PULL] drm-misc-next

2018-11-28 Thread Maarten Lankhorst
Hi Dave, Here's the next pull request for v4.21. :) drm-misc-next-2018-11-28: drm-misc-next for v4.21: Core Changes: - Merge drm_info.c into drm_debugfs.c - Complete the fake drm_crtc_commit's hw_done/flip_done sooner. - Remove deprecated drm_obj_ref/unref functions. All drivers use get/put now.

[Bug 105725] WARNING: CPU: 0 PID: 487 at drivers/gpu/drm/amd/amdgpu/../display /dc/gpio/gpio_base.c:64 dal_gpio_open_ex+0xc/0x30 [amdgpu]

2018-11-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105725 --- Comment #14 from hjpries...@gmail.com --- I am now running 4.19.4 and did not get the messages anymore. The messages where there from 4.5.11 to 4.18.16 -- You are receiving this mail because: You are the assignee for the bug.___

[PATCH v2] drm/meson: Fix an Alpha Primary Plane bug on Meson GXL/GXM SoCs

2018-11-28 Thread Neil Armstrong
On the Amlogic GXL & GXM SoCs, a bug occurs on the primary plane when alpha is used where the alpha is not aligned with the pixel content. The woraround Amlogic implemented is to reset the OSD1 plane hardware block each time the plane is (re)enabled, solving the issue. In the reset, we still need

[PATCH] drm: Fix up drm_atomic_state_helper.[hc] extraction

2018-11-28 Thread Daniel Vetter
I've misplaced two functions by accident: - drm_atomic_helper_duplicate_state is really part of the resume/suspend/shutdown device-wide helpers. - drm_atomic_helper_legacy_gamma_set is part of the legacy ioctl compat helpers. Move them both back. Fixes: 9ef8a9dc4b21 ("drm: Extract drm_atomic_

[PATCH] drm/vkms: Fix plane duplicate_state

2018-11-28 Thread Daniel Vetter
We need to handle allocation failures and bail out. While at it, tune the allocation failures down to debug level. syzbot injected an allocation failure and then hit this WARN_ON. Reported-by: syzbot+eb6e5365f23c02517...@syzkaller.appspotmail.com Signed-off-by: Daniel Vetter Cc: Haneen Mohammed

[PATCH 4/6] drm/qxl: use shadow bo directly

2018-11-28 Thread Gerd Hoffmann
Pass the shadow bo to qxl_io_create_primary() instead of expecting qxl_io_create_primary to check bo->shadow. Set is_primary flag on the shadow bo. Move the is_primary tracking into qxl_io_create_primary() and qxl_io_destroy_primary() functions. That simplifies primary surface tracking and the w

[PATCH 3/6] drm/qxl: track primary bo

2018-11-28 Thread Gerd Hoffmann
Track which bo is used as primary surface. With that in place we don't need the primary_created flag any more, we can just check the primary bo pointer instead. Also verify we don't already have a primary surface in qxl_io_create_primary(). Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/

[PATCH 6/6] drm/qxl: use qxl_num_crtc directly

2018-11-28 Thread Gerd Hoffmann
Skip the pointless and slightly confusing indirection via qdev->monitors_config->max_allowed. Just use qxl_num_crtc instead. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_display.c | 25 +++-- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/drivers

[PATCH 2/6] drm/qxl: drop unused offset parameter from qxl_io_create_primary()

2018-11-28 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_drv.h | 1 - drivers/gpu/drm/qxl/qxl_cmd.c | 7 +++ drivers/gpu/drm/qxl/qxl_display.c | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_drv.h b/drivers/gpu/drm/qxl/qxl_drv.h index 14d

[PATCH 5/6] drm/qxl: cover all crtcs in shadow bo.

2018-11-28 Thread Gerd Hoffmann
The qxl device supports only a single active framebuffer ("primary surface" in spice terminology). In multihead configurations are handled by defining rectangles within the primary surface for each head/crtc. Userspace which uses the qxl ioctl interface (xorg qxl driver) is aware of this limitati

[PATCH 1/6] drm/qxl: move qxl_primary_apply_cursor to correct place

2018-11-28 Thread Gerd Hoffmann
The cursor must be set again after creating the primary surface. Also drop the error message. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_display.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl

[PATCH 0/6] drm/qxl: make qxl multihead work with wayland

2018-11-28 Thread Gerd Hoffmann
Some cleanups and preparations (patches 1-4, also 6). The change which makes wayland actually work in multihead configurations is patch 5. Gerd Hoffmann (6): drm/qxl: move qxl_primary_apply_cursor to correct place drm/qxl: drop unused offset parameter from qxl_io_create_primary() drm/qxl: tr

Re: [RFC PATCH v2] android: ion: How to properly clean caches for uncached allocations

2018-11-28 Thread Brian Starkey
Hi Liam, On Tue, Nov 27, 2018 at 10:46:07PM -0800, Liam Mark wrote: > On Tue, 27 Nov 2018, Brian Starkey wrote: > > > Hi Liam, > > > > On Mon, Nov 26, 2018 at 08:59:44PM -0800, Liam Mark wrote: > > > On Tue, 20 Nov 2018, Brian Starkey wrote: > > > > > > > Hi Liam, > > > > > > > > I'm missing a

[Bug 108781] 4.19 Regression - Hawaii (R9 390) boot failure - Invalid PCC GPIO / invalid powerlevel state / Fatal error during GPU init

2018-11-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108781 --- Comment #27 from freedesk...@nuclearsunshine.com --- OK there seems to be something screwy going on with the amdgpu.dpm option - if that's set to 0, it still results in a blank screen. It has to be removed entirely from the kernel command lin

Re: [v4 2/3] drm: Add DP colorspace property

2018-11-28 Thread Brian Starkey
Hi Uma, On Tue, Nov 27, 2018 at 10:10:42PM +0530, Uma Shankar wrote: > This patch adds a DP colorspace property, enabling > userspace to switch to various supported colorspaces. > This will help enable BT2020 along with other colorspaces. > > v2: Addressed Maarten and Ville's review comments. Enh

[Bug 108781] 4.19 Regression - Hawaii (R9 390) boot failure - Invalid PCC GPIO / invalid powerlevel state / Fatal error during GPU init

2018-11-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108781 --- Comment #28 from Linnea S --- (In reply to freedesktop from comment #27) > OK there seems to be something screwy going on with the amdgpu.dpm option - > if that's set to 0, it still results in a blank screen. It has to be removed > entirely

Re: [v4 0/3] Add Colorspace connector property interface

2018-11-28 Thread Brian Starkey
Hi, On Tue, Nov 27, 2018 at 10:10:40PM +0530, Uma Shankar wrote: > This patch series creates a new connector property to program > colorspace to sink devices. Modern sink devices support more > than 1 type of colorspace like 601, 709, BT2020 etc. This helps > to switch based on content type which

Re: [PATCH v2 1/1] drm: msm: Replace dma_map_sg with dma_sync_sg*

2018-11-28 Thread Rob Clark
On Wed, Nov 28, 2018 at 2:39 AM Christoph Hellwig wrote: > > > + /* > > + * dma_sync_sg_*() flush the physical pages, so point > > + * sg->dma_address to the physical ones for the right > > behavior. > > + */ > > + for_each_sg(msm_obj

[Bug 199619] screen stays dark for long on bootup since kernel 4.17.0-rc2+

2018-11-28 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=199619 --- Comment #14 from Elmar Stellnberger (estel...@elstel.org) --- It is the same with kernel 4.20.0-rc4+. Are there any plans to extend the number of devices that can contribute to the entropy pool? f.i. I have an accelerometer in my notebook whic

[Bug 93826] 2560x1440 @144Hz graphic glitches and bad refresh rate

2018-11-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=93826 --- Comment #79 from Timo Gurr --- Just like Scott Mereau posted before I also run into the problem with a FreeSync monitor @75Hz with the default power_dpm_force_performance_level set to auto. Manually setting it to high works around the proble

Re: [PATCH v2 0/3] drm/vc4: Add a load tracker

2018-11-28 Thread Paul Kocialkowski
Hi, On Wed, 2018-11-28 at 10:29 +0100, Boris Brezillon wrote: > On Wed, 28 Nov 2018 10:16:17 +0100 > Paul Kocialkowski wrote: > > > Hi, > > > > On Thu, 2018-10-25 at 14:45 +0200, Boris Brezillon wrote: > > > Hello, > > > > > > This is the 2nd version of the VC4 load tracker patch. > > > > > >

[Bug 107823] [amdgpu/displayport] Blackscreen on native resolution

2018-11-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107823 --- Comment #20 from Jan Burgmeier --- Created attachment 142644 --> https://bugs.freedesktop.org/attachment.cgi?id=142644&action=edit Change resolution for reproduction -- You are receiving this mail because: You are the assignee for the bu

[Bug 107823] [amdgpu/displayport] Blackscreen on native resolution

2018-11-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107823 --- Comment #21 from Jan Burgmeier --- Created attachment 142645 --> https://bugs.freedesktop.org/attachment.cgi?id=142645&action=edit System information -- You are receiving this mail because: You are the assignee for the bug.__

[Bug 107823] [amdgpu/displayport] Blackscreen on native resolution

2018-11-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107823 --- Comment #22 from Jan Burgmeier --- Let me know if you need more information -- You are receiving this mail because: You are the assignee for the bug.___ dri-devel mailing list dri-devel@lists.fre

[PATCH] Return only active connectors for GET_RESOURCES

2018-11-28 Thread Stanislav Lisovskiy
Currently kernel might allocate different connector ids for the same outputs in case of DP MST, which seems to confuse userspace. There are can be different connector ids in the list, which could be assigned to the same output, while being in different states. This results in issues, like external

[PATCH v2] Return only active connectors for get_resources ioctl

2018-11-28 Thread Stanislav Lisovskiy
Currently kernel might allocate different connector ids for the same outputs in case of DP MST, which seems to confuse userspace. There are can be different connector ids in the list, which could be assigned to the same output, while being in different states. This results in issues, like external

RE: [v4 2/3] drm: Add DP colorspace property

2018-11-28 Thread Shankar, Uma
>-Original Message- >From: Brian Starkey [mailto:brian.star...@arm.com] >Sent: Wednesday, November 28, 2018 5:12 PM >To: Shankar, Uma >Cc: intel-...@lists.freedesktop.org; dri-devel@lists.freedesktop.org; >Lankhorst, >Maarten ; Syrjala, Ville >; >Sharma, Shashank ; jo...@kwiboo.se; >ha

[PATCH v2 1/4] drm/i915: Fix GEN9 HDCP1.4 key load process

2018-11-28 Thread Ramalingam C
HDCP1.4 key load process varies between Intel platform to platform. For Gen9 platforms except BXT and GLK, HDCP1.4 key is loaded using the GT Driver Mailbox interface. So all GEN9_BC platforms will use the GT Driver Mailbox interface for HDCP1.4 key load. v2: Using the IS_GEN9_BC for filtering

[Bug 107690] Blackscreen after installing AMD driver 18.30 for Vega 64 on Ubuntu 18.04.1 (HDMI EDID 2.0 issue)

2018-11-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107690 --- Comment #16 from Gleb Zasyadko --- (In reply to Nicholas Kazlauskas from comment #7) > Please post a dmesg log from a 4.19 or 4.18 kernel with 2.0 mode enabled on > your display. Good day! Any ideas? Is there anything to do with this? --

Re: [PATCH v2 1/1] drm: msm: Replace dma_map_sg with dma_sync_sg*

2018-11-28 Thread Lukas Wunner
On Tue, Nov 27, 2018 at 11:39:40PM -0800, Christoph Hellwig wrote: > > + /* > > +* dma_sync_sg_*() flush the physical pages, so point > > +* sg->dma_address to the physical ones for the right behavior. > > +*/ > > + for_each_sg(msm_obj->sgt->s

Re: [PATCH 2/3] drm: Move atomic_state_put after locks are dropped

2018-11-28 Thread Sean Paul
On Wed, Nov 28, 2018 at 09:35:47AM +0100, Daniel Vetter wrote: > On Tue, Nov 27, 2018 at 05:46:39PM -0500, Sean Paul wrote: > > From: Sean Paul > > > > drm_atomic_state_put doesn't require any locking, and this makes things > > easier for switching to modeset_lock_all helpers in a future patch >

RE: [v4 0/3] Add Colorspace connector property interface

2018-11-28 Thread Shankar, Uma
>-Original Message- >From: dri-devel [mailto:dri-devel-boun...@lists.freedesktop.org] On Behalf Of >Brian Starkey >Sent: Wednesday, November 28, 2018 5:27 PM >To: Shankar, Uma >Cc: Syrjala, Ville ; jo...@kwiboo.se; intel- >g...@lists.freedesktop.org; dri-devel@lists.freedesktop.org; >han

Re: [PATCH 3/3] drm: Add DRM_MODESET_LOCK_BEGIN/END helpers

2018-11-28 Thread Sean Paul
On Wed, Nov 28, 2018 at 10:01:07AM +0100, Daniel Vetter wrote: > On Tue, Nov 27, 2018 at 05:46:40PM -0500, Sean Paul wrote: > > From: Sean Paul > > > > This patch adds a couple of helpers to remove the boilerplate involved > > in grabbing all of the modeset locks. > > > > I've also converted the

[Bug 108825] Regression Raven Ridge: Banding on eDP display

2018-11-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108825 --- Comment #6 from Nicholas Kazlauskas --- (In reply to Samantha McVey from comment #5) > I have bisected it to commit: drm/amd/display: Support amdgpu "max bpc" > connector property > 307638884f721b02b6a54ee8b351c5b4434bd4a6 Author: Nicholas K

Re: [PATCH] Return only active connectors for GET_RESOURCES

2018-11-28 Thread Chris Wilson
Quoting Stanislav Lisovskiy (2018-11-28 13:52:10) > Currently kernel might allocate different connector ids > for the same outputs in case of DP MST, which seems to > confuse userspace. There are can be different connector > ids in the list, which could be assigned to the same > output, while being

[Bug 108781] 4.19 Regression - Hawaii (R9 390) boot failure - Invalid PCC GPIO / invalid powerlevel state / Fatal error during GPU init

2018-11-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108781 --- Comment #29 from pascalp --- For me it is the other way round: With my 290x I used to boot fine under 4.18 without amdgpu.dpm set at all. After updating to 4.19 and being unable to boot I read that amdgpu.dpm defaults to "enabled" so I expli

Re: [v4 0/3] Add Colorspace connector property interface

2018-11-28 Thread Brian Starkey
On Wed, Nov 28, 2018 at 02:29:53PM +, Shankar, Uma wrote: > > > >-Original Message- > >From: dri-devel [mailto:dri-devel-boun...@lists.freedesktop.org] On Behalf Of > >Brian Starkey > >Sent: Wednesday, November 28, 2018 5:27 PM > >To: Shankar, Uma > >Cc: Syrjala, Ville ; jo...@kwiboo

restart syncobj timeline changes v2

2018-11-28 Thread Christian König
Tested this patch set more extensively in the last two weeks and fixed tons of additional bugs. Still only testing with hand made DRM patches, but those are now rather reliable at least on amdgpu. Setting up igt is the next thing on the TODO list. UAPI seems to be pretty solid already except fo

[PATCH 01/11] dma-buf: make fence sequence numbers 64 bit

2018-11-28 Thread Christian König
For a lot of use cases we need 64bit sequence numbers. Currently drivers overload the dma_fence structure to store the additional bits. Stop doing that and make the sequence number in the dma_fence always 64bit. For compatibility with hardware which can do only 32bit sequences the comparisons in

[PATCH 03/11] drm: revert "expand replace_fence to support timeline point v2"

2018-11-28 Thread Christian König
This reverts commit 9a09a42369a4a37a959c051d8e1a1f948c1529a4. The whole interface isn't thought through. Since this function can't fail we actually can't allocate an object to store the sync point. Sorry, I should have taken the lead on this from the very beginning and reviewed it more thoughtful

[PATCH 07/11] drm/syncobj: add support for timeline point wait v7

2018-11-28 Thread Christian König
From: Chunming Zhou points array is one-to-one match with syncobjs array. v2: add seperate ioctl for timeline point wait, otherwise break uapi. v3: userspace can specify two kinds waits:: a. Wait for time point to be completed. b. and wait for time point to become available v4: rebase v5: add com

[PATCH 10/11] drm/amdgpu: add timeline support in amdgpu CS v2

2018-11-28 Thread Christian König
From: Chunming Zhou syncobj wait/signal operation is appending in command submission. v2: separate to two kinds in/out_deps functions Signed-off-by: Chunming Zhou Cc: Daniel Rakos Cc: Jason Ekstrand Cc: Bas Nieuwenhuizen Cc: Dave Airlie Cc: Christian König Cc: Chris Wilson --- drivers/gp

[PATCH 06/11] drm/syncobj: add new drm_syncobj_add_point interface v2

2018-11-28 Thread Christian König
Use the dma_fence_chain object to create a timeline of fence objects instead of just replacing the existing fence. v2: rebase and cleanup Signed-off-by: Christian König --- drivers/gpu/drm/drm_syncobj.c | 37 + include/drm/drm_syncobj.h | 5 + 2 file

[PATCH 11/11] drm/amdgpu: update version for timeline syncobj support in amdgpu

2018-11-28 Thread Christian König
From: Chunming Zhou Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index 90f474f98b6e..316bfc1a6a75 100644 --- a/dri

[PATCH 02/11] dma-buf: add new dma_fence_chain container v2

2018-11-28 Thread Christian König
Lockless container implementation similar to a dma_fence_array, but with only two elements per node and automatic garbage collection. v2: properly document dma_fence_chain_for_each, add dma_fence_chain_find_seqno, drop prev reference during garbage collection if it's not a chain fence. Signed

[PATCH 09/11] drm/syncobj: use the timeline point in drm_syncobj_find_fence v3

2018-11-28 Thread Christian König
Implement finding the right timeline point in drm_syncobj_find_fence. v2: return -EINVAL when the point is not submitted yet. v3: fix reference counting bug, add flags handling as well Signed-off-by: Christian König --- drivers/gpu/drm/drm_syncobj.c | 43

[PATCH 08/11] drm/syncobj: add timeline payload query ioctl v4

2018-11-28 Thread Christian König
From: Chunming Zhou user mode can query timeline payload. v2: check return value of copy_to_user v3: handle querying entry by entry v4: rebase on new chain container, simplify interface Signed-off-by: Chunming Zhou Cc: Daniel Rakos Cc: Jason Ekstrand Cc: Bas Nieuwenhuizen Cc: Dave Airlie Cc

[PATCH 04/11] drm/syncobj: use only a single stub fence

2018-11-28 Thread Christian König
Extract of useful code from the timeline work. Let's use just a single stub fence instance instead of allocating a new one all the time. Signed-off-by: Chunming Zhou Signed-off-by: Christian König --- drivers/gpu/drm/drm_syncobj.c | 67 ++- 1 file changed

[PATCH 05/11] drm/syncobj: remove drm_syncobj_cb and cleanup

2018-11-28 Thread Christian König
This completes "drm/syncobj: Drop add/remove_callback from driver interface" and cleans up the implementation a bit. Signed-off-by: Christian König --- drivers/gpu/drm/drm_syncobj.c | 91 ++- include/drm/drm_syncobj.h | 21 -- 2 files changed,

[PATCH libdrm 3/5] add timeline wait/query ioctl v2

2018-11-28 Thread Christian König
From: Chunming Zhou v2: drop export/import Signed-off-by: Chunming Zhou --- xf86drm.c | 44 xf86drm.h | 8 2 files changed, 52 insertions(+) diff --git a/xf86drm.c b/xf86drm.c index 71ad54ba..afa2f466 100644 --- a/xf86drm.c +++ b/xf86drm.

[PATCH libdrm 4/5] wrap syncobj timeline query/wait APIs for amdgpu v3

2018-11-28 Thread Christian König
From: Chunming Zhou v2: symbos are stored in lexical order. v3: drop export/import and extra query indirection Signed-off-by: Chunming Zhou Signed-off-by: Christian König --- amdgpu/amdgpu-symbol-check | 2 ++ amdgpu/amdgpu.h| 39 +++ amdgpu/am

[PATCH libdrm 1/5] new syncobj extension v2

2018-11-28 Thread Christian König
From: Chunming Zhou v2: drop not implemented IOCTLs and flags Signed-off-by: Chunming Zhou Signed-off-by: Christian König --- include/drm/drm.h | 25 + 1 file changed, 25 insertions(+) diff --git a/include/drm/drm.h b/include/drm/drm.h index 85c685a2..34f1e3f9 100644

[PATCH libdrm 2/5] addr cs chunk for syncobj timeline

2018-11-28 Thread Christian König
From: Chunming Zhou Signed-off-by: Chunming Zhou --- include/drm/amdgpu_drm.h | 9 + 1 file changed, 9 insertions(+) diff --git a/include/drm/amdgpu_drm.h b/include/drm/amdgpu_drm.h index 1ceec56d..a3c067dd 100644 --- a/include/drm/amdgpu_drm.h +++ b/include/drm/amdgpu_drm.h @@ -517,6

[PATCH libdrm 5/5] add syncobj timeline tests v2

2018-11-28 Thread Christian König
From: Chunming Zhou v2: drop DRM_SYNCOBJ_CREATE_TYPE_TIMELINE, fix timeout calculation, fix some warnings Signed-off-by: Chunming Zhou Signed-off-by: Christian König --- tests/amdgpu/Makefile.am | 3 +- tests/amdgpu/amdgpu_test.c | 12 ++ tests/amdgpu/amdgpu_test.h | 21

Re: 4.20.0-rc3 nouveau/Quadro P2000 Mobile: runpm causing ACPI errors, lockups

2018-11-28 Thread Michael S. Tsirkin
On Wed, Nov 28, 2018 at 01:08:57PM +0200, Mika Westerberg wrote: > On Tue, Nov 27, 2018 at 09:49:44PM -0500, Michael S. Tsirkin wrote: > > On Tue, Nov 27, 2018 at 11:36:50AM +0200, Mika Westerberg wrote: > > > +linux-acpi > > > > > > Hi Michael, > > > > > > On Mon, Nov 26, 2018 at 10:53:26PM -050

[PATCH 0/2] drm/virtio: fence cleanups

2018-11-28 Thread Gerd Hoffmann
Gerd Hoffmann (2): drm/virtio: fence: pass plain pointer drm/virtio: virtio_gpu_cmd_resource_create_3d: drop unused fence arg drivers/gpu/drm/virtio/virtgpu_drv.h | 15 +++ drivers/gpu/drm/virtio/virtgpu_fence.c | 10 +- drivers/gpu/drm/virtio/virtgpu_ioctl.c | 10

[PATCH 2/2] drm/virtio: virtio_gpu_cmd_resource_create_3d: drop unused fence arg

2018-11-28 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/virtio/virtgpu_drv.h | 3 +-- drivers/gpu/drm/virtio/virtgpu_ioctl.c | 2 +- drivers/gpu/drm/virtio/virtgpu_vq.c| 5 ++--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/virtio/virtgpu_drv.h b/drivers/gpu/drm/

[PATCH 1/2] drm/virtio: fence: pass plain pointer

2018-11-28 Thread Gerd Hoffmann
Since commit "9fdd90c0f4 drm/virtio: add virtio_gpu_alloc_fence()" fences are not allocated any more by virtio_gpu_fence_emit(). So there is no need to pass down a reference to the fence pointer, a plain pointer is enough now. Convert virtio_gpu_fence_emit() and callers. Signed-off-by: Gerd Hoff

Re: [PATCH] drm/fbdev: Make skip_vt_switch the default

2018-11-28 Thread Heiko Stübner
Am Dienstag, 27. November 2018, 18:34:24 CET schrieb Daniel Vetter: > KMS drivers really should all be able to restore their display state > on resume without fbcon helping out. So make this the default. > > Since I'm not entirely foolish, make it only a default, which drivers > can still override

Re: [PATCH 4/9] drm/rockchip/rockchip_drm_gem.c: Convert to use vm_insert_range

2018-11-28 Thread Heiko Stübner
Hi Souptick, Am Montag, 26. November 2018, 06:36:42 CET schrieb Souptick Joarder: > On Thu, Nov 15, 2018 at 9:14 PM Souptick Joarder wrote: > > Convert to use vm_insert_range() to map range of kernel > > memory to user vma. > > > > Signed-off-by: Souptick Joarder > > Any feedback for this pat

[Bug 108889] [CI][SHARDS] igt@sw_sync@sync_busy_fork_unixsocket - incomplete - __igt_fork_helper: Assertion `!proc->running' failed.

2018-11-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108889 Bug ID: 108889 Summary: [CI][SHARDS] igt@sw_sync@sync_busy_fork_unixsocket - incomplete - __igt_fork_helper: Assertion `!proc->running' failed. Product: DRI Vers

Re: [PATCH 1/9] mm: Introduce new vm_insert_range API

2018-11-28 Thread Heiko Stübner
Am Donnerstag, 15. November 2018, 16:45:30 CET schrieb Souptick Joarder: > Previouly drivers have their own way of mapping range of > kernel pages/memory into user vma and this was done by > invoking vm_insert_page() within a loop. > > As this pattern is common across different drivers, it can > b

[Bug 108889] [CI][SHARDS] igt@sw_sync@sync_busy_fork_unixsocket - incomplete - __igt_fork_helper: Assertion `!proc->running' failed.

2018-11-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108889 Martin Peres changed: What|Removed |Added Whiteboard||ReadyForDev Priority|medium

[Bug 108889] [CI][SHARDS] igt@sw_sync@sync_busy_fork_unixsocket - incomplete - __igt_fork_helper: Assertion `!proc->running' failed.

2018-11-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108889 --- Comment #2 from Chris Wilson --- So why was this marked incomplete and not CRASH? -- You are receiving this mail because: You are the assignee for the bug.___ dri-devel mailing list dri-devel@lis

[Bug 108889] [CI][SHARDS] igt@sw_sync@sync_busy_fork_unixsocket - incomplete - __igt_fork_helper: Assertion `!proc->running' failed.

2018-11-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108889 --- Comment #3 from Martin Peres --- (In reply to Chris Wilson from comment #2) > So why was this marked incomplete and not CRASH? +1 -- You are receiving this mail because: You are the assignee for the bug.___

[PATCH] fbdev: uvesafb: fix spelling mistake "memoery" -> "memory"

2018-11-28 Thread Colin King
From: Colin Ian King There is a spelling mistake in the module parameter description, fix it. Signed-off-by: Colin Ian King --- drivers/video/fbdev/uvesafb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/uvesafb.c b/drivers/video/fbdev/uvesafb.c index

Re: [PATCH] drm/msm/dpu: set geometry for iommu domain

2018-11-28 Thread Jordan Crouse
On Tue, Nov 27, 2018 at 03:58:13PM -0800, Jeykumar Sankaran wrote: > Specify geometry for DPU iommu domain which sets > the address space for gem allocations. > > Signed-off-by: Jeykumar Sankaran > Suggested-by: Jordan Crouse > Suggested-by: Vivek Gautam There is a lot of confusion surrounding

Re: [PATCH] Return only active connectors for GET_RESOURCES

2018-11-28 Thread Lisovskiy, Stanislav
On Wed, 2018-11-28 at 14:39 +, Chris Wilson wrote: > Quoting Stanislav Lisovskiy (2018-11-28 13:52:10) > > Currently kernel might allocate different connector ids > > for the same outputs in case of DP MST, which seems to > > confuse userspace. There are can be different connector > > ids in th

[Bug 108890] VLC Segmentation fault (core dumped)

2018-11-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108890 Bug ID: 108890 Summary: VLC Segmentation fault (core dumped) Product: DRI Version: unspecified Hardware: Other OS: Linux (All) Status: NEW Severity: norm

[PATCH] fbdev: uvesafb: fix spelling mistake "memoery" -> "memory"

2018-11-28 Thread Colin King
From: Colin Ian King There is a spelling mistake in the module parameter description, fix it. Signed-off-by: Colin Ian King --- drivers/video/fbdev/uvesafb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/uvesafb.c b/drivers/video/fbdev/uvesafb.c index

Re: [PATCH] drm/fbdev: Make skip_vt_switch the default

2018-11-28 Thread Li, Samuel
Reviewed-by: Samuel Li On 2018-11-28 3:20 a.m., Daniel Vetter wrote: > On Wed, Nov 28, 2018 at 08:17:04AM +0100, Maarten Lankhorst wrote: >> Op 27-11-18 om 18:34 schreef Daniel Vetter: >>> KMS drivers really should all be able to restore their display state >>> on resume without fbcon helping o

Re: [v4 1/3] drm: Add HDMI colorspace property

2018-11-28 Thread Sharma, Shashank
Regards Shashank On 11/27/2018 10:10 PM, Uma Shankar wrote: This patch adds a HDMI colorspace property, enabling userspace to switch to various supported colorspaces. This will help enable BT2020 along with other colorspaces. v2: Addressed Maarten and Ville's review comments. Enhanced the col

Re: [v4 2/3] drm: Add DP colorspace property

2018-11-28 Thread Sharma, Shashank
Regards Shashank On 11/27/2018 10:10 PM, Uma Shankar wrote: This patch adds a DP colorspace property, enabling userspace to switch to various supported colorspaces. This will help enable BT2020 along with other colorspaces. v2: Addressed Maarten and Ville's review comments. Enhanced the

[PATCH 2/2] drm/tegra: dc: Don't clean up unused display controller

2018-11-28 Thread Thierry Reding
From: Thierry Reding Display controllers that don't own any windows and which therefore aren't currently being assigned a primary plane are not registered as a CRTC with the DRM framework. They request neither a syncpoint nor an interrupt because they don't use them, so avoid cleaning up those re

  1   2   >