[PATCH xf86-video-ati 2/2] Only call drmmode_validate_leases if RandR is enabled

2019-01-09 Thread Michel Dänzer
From: Michel Dänzer It would crash if RandR is disabled, e.g. because Xinerama is enabled. Bugzilla: https://bugs.freedesktop.org/109230 Signed-off-by: Michel Dänzer --- src/drmmode_display.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/drmmode_display.c b/src

[PATCH xf86-video-ati 1/2] Only call drmmode_uevent_init if RandR is enabled

2019-01-09 Thread Michel Dänzer
From: Michel Dänzer There's no point in listening for hotplug events if RandR is disabled, as there's no other mechanism for them to be propagated. We were already mostly ignoring them in that case. Inspired by https://gitlab.freedesktop.org/xorg/driver/xf86-video-in

Re: After Vega 56/64 GPU hang I unable reboot system

2019-01-10 Thread Michel Dänzer
s using DXVK, it could be an issue between DXVK and RADV. I'd start by filing a bug report against RADV. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer

amdgpu/TTM oopses since merging swiotlb_dma_ops into the dma_direct code

2019-01-10 Thread Michel Dänzer
Hi Christoph, https://bugs.freedesktop.org/109234 (please ignore comments #6-#9) was bisected to your commit 55897af63091 "dma-direct: merge swiotlb_dma_ops into the dma_direct code". Any ideas? -- Earthling Michel Dänzer | http://www.amd.com Libr

Re: After Vega 56/64 GPU hang I unable reboot system

2019-01-10 Thread Michel Dänzer
On 2019-01-10 10:42 a.m., Mikhail Gavrilov wrote: > On Thu, 10 Jan 2019 at 13:54, Michel Dänzer wrote: >> >> Assuming that's using DXVK, it could be an issue between DXVK and RADV. >> I'd start by filing a bug report against RADV. > > In the case of the last

[PATCH] Revert "drm/amdgpu: validate user GEM object size"

2019-01-10 Thread Michel Dänzer
From: Michel Dänzer It was at the same time too strict (for linear tiling modes, where no height alignment is required) and too lenient (for 2D tiling modes, where height may need to be aligned to values > 8). Signed-off-by: Michel Dänzer --- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c

Re: BISECTED- amd-staging-drm-next, xorg-server segfault A6-6310 APU - R4 Mullins.

2019-01-10 Thread Michel Dänzer
t; drm/amdgpu: validate user pitch alignment > > Userspace may request pitch alignment that is not supported by GPU. > Some requests 32, but GPU ignores it and uses default 64 when cpp is > 4. If GEM object is allocated based on the smaller alignment, GPU >

Re: [PATCH libdrm] amdgpu: update to latest marketing names from 18.50

2019-01-10 Thread Michel Dänzer
On 2019-01-10 3:22 p.m., Alex Deucher wrote: > Signed-off-by: Alex Deucher Reviewed-by: Michel Dänzer -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X develo

Re: [PATCH 1/2] drm/ttm: add lru notify to bo driver

2019-01-10 Thread Michel Dänzer
bject *bo); ... and this should be named something like del_from_lru_notify, for clarity. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Re: BISECTED- amd-staging-drm-next, xorg-server segfault A6-6310 APU - R4 Mullins.

2019-01-10 Thread Michel Dänzer
t;> >>> [...] >>> >>> 79c6b898011958fba7722528d567b64e1cdc8dbe is the first bad commit >>> commit 79c6b898011958fba7722528d567b64e1cdc8dbe >>> Author: Yu Zhao >>> Date: Mon Jan 7 15:51:14 2019 -0700 >>> >>> drm/amdgpu: v

Re: [PATCH] drm/ttm: stop always moving BOs on the LRU on page fault

2019-01-11 Thread Michel Dänzer
On 2019-01-11 2:15 p.m., Christian König wrote: > Move the BO on the LRU only when it is actually moved by a DMA > operation. > > Signed-off-by: Christian König Reviewed-by: Michel Dänzer -- Earthling Michel Dänzer | http://www.amd.com Libre softwar

Re: [PATCH] drm/ttm: stop always moving BOs on the LRU on page fault

2019-01-11 Thread Michel Dänzer
goto out_unlock; > } > + > + if (bo->moving != moving) { Hmm, could a driver just update the existing fence instead of attaching a new one? -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast

[PATCH] Revert "drm/amdgpu: validate user pitch alignment"

2019-01-11 Thread Michel Dänzer
From: Michel Dänzer The check turned out to be too strict in some cases. Signed-off-by: Michel Dänzer --- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c b/drivers/gpu/drm/amd/amdgpu

Re: BISECTED- amd-staging-drm-next, xorg-server segfault A6-6310 APU - R4 Mullins.

2019-01-11 Thread Michel Dänzer
ould be able to help with that. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c index 70a816dd8

Re: [PATCH] drm/ttm: stop always moving BOs on the LRU on page fault

2019-01-14 Thread Michel Dänzer
On 2019-01-11 8:12 p.m., Christian König wrote: > Am 11.01.19 um 15:17 schrieb Michel Dänzer: >> On 2019-01-11 2:15 p.m., Christian König wrote: >>> Move the BO on the LRU only when it is actually moved by a DMA >>> operation. >>> >>> [...] &

Re: amdgpu/TTM oopses since merging swiotlb_dma_ops into the dma_direct code

2019-01-14 Thread Michel Dänzer
printk_once in is_swiotlb_buffer, > maybe that gives a clue why we are hitting the swiotlb code here. Any progress? https://bugzilla.kernel.org/show_bug.cgi?id=202261 was also filed about this. I hope everyone's clear that this needs to be resolved one way or another

Re: pitch alignment questions

2019-01-14 Thread Michel Dänzer
On 2019-01-11 10:37 p.m., Yu Zhao wrote: > On Fri, Jan 11, 2019 at 04:27:44PM +0100, Michel Dänzer wrote: >> On 2019-01-10 6:56 p.m., Przemek Socha wrote: >>> >>> [ 147.846148] [drm:amdgpu_display_user_framebuffer_create [amdgpu]] >>> Invalid >

xf86-video-amdgpu merge request !21 is ready for review

2019-01-16 Thread Michel Dänzer
https://gitlab.freedesktop.org/xorg/driver/xf86-video-amdgpu/merge_requests/21 Thanks in advance for taking a look! -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer

Re: [PATCH libdrm] amdgpu: update amdgpu_drm.h

2019-01-16 Thread Michel Dänzer
oblem, see the rules for updating this. >> >> IIRC the code must land in an upstream kernel before it can be committed >> to libdrm. >> >> Christian. >> > > It looks like it's all in the master branch. That's good, but

Re: [RFC PATCH] drm: disable WC optimization for cache coherent devices on non-x86

2019-01-21 Thread Michel Dänzer
27;optimization' to get things working. FWIW, the amdgpu driver doesn't rely on non-snooped transfers for correct basic operation (the scenario Christian brought up is a very specialized use-case), so that shouldn't be an issue. -- Earthling Michel Dänzer

Re: [RFC PATCH] drm: disable WC optimization for cache coherent devices on non-x86

2019-01-21 Thread Michel Dänzer
On 2019-01-21 6:59 p.m., Ard Biesheuvel wrote: > On Mon, 21 Jan 2019 at 18:55, Michel Dänzer wrote: >> >> On 2019-01-21 5:30 p.m., Ard Biesheuvel wrote: >>> On Mon, 21 Jan 2019 at 17:22, Christoph Hellwig wrote: >>> >>>> Until that happens we sh

Re: [RFC PATCH] drm: disable WC optimization for cache coherent devices on non-x86

2019-01-21 Thread Michel Dänzer
On 2019-01-21 7:20 p.m., Ard Biesheuvel wrote: > On Mon, 21 Jan 2019 at 19:04, Michel Dänzer wrote: >> >> On 2019-01-21 6:59 p.m., Ard Biesheuvel wrote: >>> On Mon, 21 Jan 2019 at 18:55, Michel Dänzer wrote: >>>> >>>> On 2019-01-21 5:30 p.m., Ard B

Re: [RFC PATCH] drm: disable WC optimization for cache coherent devices on non-x86

2019-01-21 Thread Michel Dänzer
On 2019-01-21 7:28 p.m., Ard Biesheuvel wrote: > On Mon, 21 Jan 2019 at 19:24, Michel Dänzer wrote: >> On 2019-01-21 7:20 p.m., Ard Biesheuvel wrote: >>> On Mon, 21 Jan 2019 at 19:04, Michel Dänzer wrote: >>>> On 2019-01-21 6:59 p.m., Ard Biesheuvel wrote: >

Re: [PATCH 04/20] drm/amd/display: Know what a pageflip is

2019-01-23 Thread Michel Dänzer
; afb->address != old_afb->address); The second check after the || cannot be true if old_plane_state->fb == new_plane_state->fb, so it's dead code. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | M

Re: [RFC PATCH] drm: disable WC optimization for cache coherent devices on non-x86

2019-01-24 Thread Michel Dänzer
>> - >> - if (bo->flags & AMDGPU_GEM_CREATE_CPU_GTT_USWC) >> - DRM_INFO_ONCE("Please enable CONFIG_MTRR and CONFIG_X86_PAT >> for " >> - "better performance thanks to >> write-combini

Re: [RFC PATCH] drm: disable WC optimization for cache coherent devices on non-x86

2019-01-24 Thread Michel Dänzer
about non-cache coherent likely not working *at >>> all* unless the optimization is enabled. >> >> As Michel tried to explain this CAN'T happen. The optimization is a >> purely optional request from userspace. >> > > Right. > > S

xf86-video-amdgpu merge request !24 is ready for review

2019-01-25 Thread Michel Dänzer
https://gitlab.freedesktop.org/xorg/driver/xf86-video-amdgpu/merge_requests/24 Thanks in advance for taking a look! -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer

Re: [PATCH 05/20] drm/amd/display: Call into DC once per multiplane flip

2019-01-28 Thread Michel Dänzer
L); > + > + if (!flip) > + dm_error("Failed to allocate update bundles\n"); I can't see where this memory is freed, maybe this is the leak? -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast

Re: [PATCH] drm/amd/display - Don't leak memory when updating streams

2019-01-28 Thread Michel Dänzer
gt; but we wouldn't should be doing anything in that case anyway. > > Fixes: c00e0cc0fdc0 ("drm/amd/display: Call into DC once per multiplane flip") > Fixes: ea39594e0855 ("drm/amd/display: Perform plane updates only when > needed") > > Cc: Michel

[PATCH xf86-video-ati 3/7] glamor: Avoid glamor_create_pixmap for pixmaps backing windows

2019-01-28 Thread Michel Dänzer
From: Michel Dänzer If the compositing manager uses direct rendering (as is usually the case these days), the storage of a pixmap allocated by glamor_create_pixmap needs to be reallocated for sharing it with the compositing manager. Instead, allocate pixmap storage which can be shared directly

[PATCH xf86-video-ati 2/7] dri2: Flush in dri2_create_buffer2 after calling glamor_set_pixmap_bo

2019-01-28 Thread Michel Dänzer
From: Michel Dänzer To make sure the client can't use the shared pixmap storage for direct rendering first, which could produce garbage. Bugzilla: https://bugs.freedesktop.org/109235 (Ported from amdgpu commit ebd32b1c07208f8dbe853e089f5e4b7c6a7a658a) Signed-off-by: Michel Dänzer ---

[PATCH xf86-video-ati 4/7] Don't allow TearFree scanout flips to complete in the same vblank period

2019-01-28 Thread Michel Dänzer
From: Michel Dänzer We were using a relative target of 0, meaning "complete the flip ASAP". This could result in the flip sometimes, but not always completing in the same vertical blank period where the corresponding drawing occurred, potentially causing judder artifacts with ap

[PATCH xf86-video-ati 7/7] Keep waiting for a pending flip if drm_handle_event returns 0

2019-01-28 Thread Michel Dänzer
From: Michel Dänzer drm_wait_pending_flip stopped waiting if drm_handle_event returned 0, but that might have processed only some unrelated DRM events. As long as the flip is pending, we have to keep waiting for its completion event. Noticed while working on the previous fix. (Ported from

[PATCH xf86-video-ati 6/7] Call drmHandleEvent again if it was interrupted by a signal

2019-01-28 Thread Michel Dänzer
From: Michel Dänzer drmHandleEvent can be interrupted by a signal in read(), in which case it doesn't process any events but returns -1, which drm_handle_event propagated to its callers. This could cause the following failure cascade: 1. drm_wait_pending_flip stopped waiting for a pending

[PATCH xf86-video-ati 5/7] Only update drmmode_crtc->flip_pending after actually submitting a flip

2019-01-28 Thread Michel Dänzer
From: Michel Dänzer And only clear it if it matches the framebuffer of the completed flip being processed. Fixes (WW) RADEON(0): flip queue failed: Device or resource busy (WW) RADEON(0): Page flip failed: Device or resource busy (EE) RADEON(0): present flip failed due to clobbering

[PATCH xf86-video-ati 1/7] dri3: Flush if necessary in dri3_fd_from_pixmap

2019-01-28 Thread Michel Dänzer
From: Michel Dänzer To make sure the client can't use the shared pixmap storage for direct rendering first, which could produce garbage. Bugzilla: https://bugs.freedesktop.org/109235 (Ported from amdgpu commit d168532ee739f7e33a2798051e64ba445dd3859f) Signed-off-by: Michel Dänzer ---

Fwd: Bug#921004: downgrade to firmware-amd-graphics_20180825-1_all.deb

2019-01-31 Thread Michel Dänzer
Bad news I'm afraid, looks like the latest firmware (based on linux-firmware commit bc656509a3cfb60fcdfc905d7e23c18873e4e7b9 from 2019-01-14) broke some RX 580 cards. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthu

Re: Bug#921004: downgrade to firmware-amd-graphics_20180825-1_all.deb

2019-01-31 Thread Michel Dänzer
issues and these updates have been upstream > in linux-firmware for over a month now. It entered Debian sid about two weeks ago, so might have only entered Debian testing this week. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast

Re: After upgrade mesa to 19.0.0~rc1 all vulkan based application stop working ["vulkan-cube" received SIGSEGV in radv_pipeline_init_blend_state at ../src/amd/vulkan/radv_pipeline.c:699]

2019-02-04 Thread Michel Dänzer
ched via steam play DXVK > - vulcan-cube (backtrace is included to this message) > > Last working mesa version: > 18.3.2-1 Please report RADV issues at https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa&component=Drivers/Vulkan/radeon . -- Earthling Michel Dänzer

Re: [PATCH] Revert "Revert "drm/amd/powerplay: support Vega10 SOCclk and DCEFclk dpm level settings""

2019-02-04 Thread Michel Dänzer
eucher > > Signed-off-by: Kenneth Feng Revert "Revert "..."" is kind of an ugly shortlog. :) It's nicer to re-use the original commit's log, possibly amended with an explanation why the change is applied again. -- Earthling Michel Dänzer

kernel BUG at drivers/gpu/drm//ttm/ttm_bo.c:196!

2019-02-05 Thread Michel Dänzer
Hit this with an amdgpu piglit run today, see the attached dmesg excerpt. It's ttm_bo_ref_bug() being called from ttm_bo_del_from_lru(). Maybe this is still fallout from the "cleanup setting bulk_movable" change? -- Earthling Michel Dänzer | http://ww

Re: kernel BUG at drivers/gpu/drm//ttm/ttm_bo.c:196!

2019-02-05 Thread Michel Dänzer
before (not 100% sure though). I reverted the remaining hunk of the "cleanup setting bulk_movable" change, and it survived a piglit run. Could just be luck, though... -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast |

Re: kernel BUG at drivers/gpu/drm//ttm/ttm_bo.c:196!

2019-02-07 Thread Michel Dänzer
On 2019-02-07 10:58 a.m., Christian König wrote: > Am 05.02.19 um 18:40 schrieb Michel Dänzer: >> On 2019-02-05 4:45 p.m., Christian König wrote: >>> Possible, but unlikely. >>> >>> That sounds more like a reference counting problem where something is >>

Re: BUG - unable to handle null pointer, bisected - drm/amd/display: add gpio lock/unlock

2019-02-07 Thread Michel Dänzer
hine without it is > working fine. Same for me with Tonga. Chiawen / Tony / other DC developers, any ideas? If it cannot be fixed quickly, let's revert this change for now. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast

Re: BUG - unable to handle null pointer, bisected - drm/amd/display: add gpio lock/unlock

2019-02-07 Thread Michel Dänzer
On 2019-02-07 4:37 p.m., Alex Deucher wrote: > On Thu, Feb 7, 2019 at 10:33 AM Michel Dänzer wrote: >> >> On 2019-02-06 10:48 a.m., Przemek Socha wrote: >>> Good morning, >>> >>> on my Lenovo G50-45 a6310 APU with R4 Mullins commit >>> e261568

Re: [PATCH] drm/amd/display: Use vrr friendly pageflip throttling in DC.

2019-02-11 Thread Michel Dänzer
h rate. > > Fixes: bb47de736661 ("drm/amdgpu: Set FreeSync state using drm VRR > properties") > Signed-off-by: Mario Kleiner > Cc: > Cc: Nicholas Kazlauskas > Cc: Harry Wentland > Cc: Alex Deucher > Cc: Michel Dänzer I wonder if this couldn't be

Re: [PATCH] drm/amd/display: Use vrr friendly pageflip throttling in DC.

2019-02-12 Thread Michel Dänzer
On 2019-02-12 9:39 a.m., Mario Kleiner via dri-devel wrote: > On Mon, Feb 11, 2019 at 4:01 PM Michel Dänzer wrote: >> >> On 2019-02-09 7:52 a.m., Mario Kleiner wrote: >>> In VRR mode, keep track of the vblank count of the last >>> completed pageflip in

Re: [PATCH] drm/amd/display: Use vrr friendly pageflip throttling in DC.

2019-02-13 Thread Michel Dänzer
On 2019-02-13 10:53 a.m., Daniel Vetter wrote: > On Mon, Feb 11, 2019 at 04:01:12PM +0100, Michel Dänzer wrote: >> On 2019-02-09 7:52 a.m., Mario Kleiner wrote: >>> In VRR mode, keep track of the vblank count of the last >>> completed pageflip in amdgpu_crtc->last_f

Re: "ring gfx timeout" with Vega 64 on mesa 19.0.0-rc2 and kernel 5.0.0-rc6 (GPU reset still not works)

2019-02-14 Thread Michel Dänzer
Thanks for your cooperation. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.fre

Re: [PATCH] drm/amd/display: Fix deadlock with display during hanged ring recovery.

2019-02-14 Thread Michel Dänzer
erve it at all. >> >> That a good point, I honestly can't remember any more why it's here... >> It does look unnecessary given that we are not validating the BO here. > > I think we reserve it to grab the tiling flags to update the plane > address (and some ot

Re: [PATCH] drm/amd/display: Fix deadlock with display during hanged ring recovery.

2019-02-14 Thread Michel Dänzer
On 2019-02-14 5:57 p.m., Kazlauskas, Nicholas wrote: > On 2/14/19 11:47 AM, Grodzovsky, Andrey wrote: >> >> On 2/14/19 11:07 AM, Michel Dänzer wrote: >>> On 2019-02-14 4:54 p.m., Kazlauskas, Nicholas wrote: >>>> On 2/14/19 10:42 AM, Grodzovsky, Andrey wrote:

Re: [PATCH] drm/amdgpu: remove some old unused dpm helpers

2019-02-15 Thread Michel Dänzer
On 2019-02-14 9:58 p.m., Alex Deucher via amd-gfx wrote: > Carried over from radeon, but no longer used. > > Signed-off-by: Alex Deucher Reviewed-by: Michel Dänzer -- Earthling Michel Dänzer | http://www.amd.com Libre software e

KASAN caught amdgpu / HMM use-after-free

2019-02-27 Thread Michel Dänzer
See the attached dmesg excerpt. I've hit this a few times running piglit with amd-staging-drm-next, first on February 22nd. The memory was freed after calling hmm_mirror_unregister in amdgpu_mn_destroy. -- Earthling Michel Dänzer | https://www.amd.com Libre sof

Re: KASAN caught amdgpu / HMM use-after-free

2019-02-27 Thread Michel Dänzer
to workaround the issue. Please push it to amd-staging-drm-next, so that others don't run into the issue as well. -- Earthling Michel Dänzer | https://www.amd.com Libre software enthusiast | Mesa and X developer __

Re: KASAN caught amdgpu / HMM use-after-free

2019-02-28 Thread Michel Dänzer
e change? -- Earthling Michel Dänzer | https://www.amd.com Libre software enthusiast | Mesa and X developer ___ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Compiler warnings from RAS code

2019-02-28 Thread Michel Dänzer
^~ ./include/linux/kernel.h:879:19: note: in expansion of macro ‘__careful_cmp’ #define min(x, y) __careful_cmp(x, y, <) ^ drivers/gpu/drm//amd/amdgpu/amdgpu_ras.c:162:14: note: in expansion of macro ‘min’ ssize_t s = min(64ULL, size);

Re: [PATCH xf86-video-amdgpu] Fix hang when entering into dpms-off mode

2019-02-28 Thread Michel Dänzer
drm_now % 100, > This isn't a good solution I'm afraid, as it'll leave the struct amdgpu_drm_queue_entry memory associated with event_info->drm_queue_seq linked into the amdgpu_drm_queue list, which would gradually slow down processing o

Re: [PATCH xf86-video-amdgpu] Fix hang when entering into dpms-off mode

2019-02-28 Thread Michel Dänzer
On 2019-02-28 1:05 p.m., Michel Dänzer wrote: > On 2019-02-28 3:52 a.m., Aaron Liu wrote: >> >> @@ -900,7 +900,12 @@ CARD32 amdgpu_dri2_deferred_event(OsTimerPtr timer, >> CARD32 now, pointer data) >> delta_seq = delta_t * drmmode_crtc->dpms_last_fps

Re: [PATCH xf86-video-amdgpu] Fix hang when entering into dpms-off mode

2019-03-01 Thread Michel Dänzer
On 2019-03-01 7:37 a.m., Liu, Aaron wrote: > @Michel Dänzer, > > I have reviewed your patch and verified it passed. Thanks Aaron, so I assume I can add Reviewed-by: Aaron Liu Tested-by: Aaron Liu ? > I couldn't merge this merge request to your master manually. Don'

Re: [PATCH xf86-video-amdgpu] Allow changing DCC parameters between flips

2019-03-01 Thread Michel Dänzer
Thanks Marek for the patch, but xf86-video-amdgpu patches are being reviewed as GitLab merge requests since the last release[0]. I'll create a merge request with this patch and some follow-up changes. [0] Isn't README.md clear enough on this? -- Earthling Mic

[PATCH xf86-video-ati 2/2] dri2: Call drm_queue_handle_deferred in dri2_deferred_event

2019-03-01 Thread Michel Dänzer
From: Michel Dänzer drm_queue_handler just puts the event on the signalled list; without calling drm_queue_handle_deferred, actual processing of the event may be delayed indefinitely, e.g. until another event arrives from the kernel. This could result in DRI2 clients hanging during DPMS off

[PATCH xf86-video-ati 1/2] present: Check that flip and screen pixmap pitches match

2019-03-01 Thread Michel Dänzer
From: Michel Dänzer If they don't, flipping will result in corrupted display. Test case: * Run Xorg at 1920x1080 with no window manager * glxgears -geometry 2048x1080 The Present extension code in xserver 1.21 will check for this. (Ported from amdgpu c

[PATCH] drm/amdkfd: Add curly braces around idr_for_each_entry_continue loop

2019-03-05 Thread Michel Dänzer
From: Michel Dänzer The compiler pointed out that one if block unintentionally wasn't part of the loop: In file included from ./include/linux/kernfs.h:14, from ./include/linux/sysfs.h:16, from ./include/linux/kobject.h:20, from ./include/

Re: [PATCH 06/18] drm/amd/display: Drop underlay plane support

2019-03-05 Thread Michel Dänzer
nes; > + /* There is one primary plane per CRTC */ > + primary_planes = dm->dc->caps.max_streams; > + ASSERT(primary_planes < AMDGPU_MAX_PLANES); This assertion fails for me with Bonaire. In fact, since AMDGPU_MAX_PLANES is 6, and primary_planes seems to be the number o

Re: [PATCH] drm/amd/display: Don't ASSERT when total_planes == AMDGPU_MAX_PLANES

2019-03-05 Thread Michel Dänzer
On 2019-03-05 6:24 p.m., Nicholas Kazlauskas wrote: > [Why] > Can happen on ASICs with 6 planes, but this isn't a bug since we haven't > written outside the array. > > [How] > Use <= instead of <. > > Cc: Leo Li > Cc: Michel Dänzer > Reporte

Re: [PATCH] drm/amdkfd: Fix "-Wmisleading-indentation" warning

2019-03-06 Thread Michel Dänzer
anks Leo, but I already sent a fix for this: https://patchwork.freedesktop.org/patch/290410/ -- Earthling Michel Dänzer | https://www.amd.com Libre software enthusiast | Mesa and X developer ___ amd

Re: [PATCH 3/3] drm/amdgpu: more descriptive message if HMM not enabled

2019-03-06 Thread Michel Dänzer
so buggy/malicious userspace could spam dmesg with these errors. I'm afraid a different solution is needed. -- Earthling Michel Dänzer | https://www.amd.com Libre software enthusiast | Mesa and X developer ___ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx

[ANNOUNCE] xf86-video-amdgpu 19.0.0

2019-03-06 Thread Michel Dänzer
ns. Plus other improvements and fixes. Thanks to everybody who contributed to this release in any way! Mario Kleiner (1): Fix crash when page flipping in multi-X-Screen/Zaphod mode Michel Dänzer (53): Post-release version bump Convert README to markdown Handle pending sc

Re: [PATCH 3/3] drm/amdgpu: more descriptive message if HMM not enabled

2019-03-06 Thread Michel Dänzer
On 2019-03-06 3:42 p.m., Yang, Philip wrote: > On 2019-03-06 4:05 a.m., Michel Dänzer wrote: >> On 2019-03-05 7:09 p.m., Yang, Philip wrote: >>> If using old kernel config file, CONFIG_ZONE_DEVICE is not selected, >>> so CONFIG_HMM and CONFIG_HMM_MIRROR is not enabled, t

Re: randr: Virtual monitor not present with MST display

2019-03-06 Thread Michel Dänzer
589] [drm] SADs count is: -2, don't need to read it > > I didn’t provide the output of xrandr in my previous message. > > $ xrandr --listmonitors > Monitors: 2 > 0: +DisplayPort-9 1920/698x2160/392+0+0 DisplayPor

Re: [PATCH 3/3] drm/amdgpu: more descriptive message if HMM not enabled v2

2019-03-06 Thread Michel Dänzer
ed\n"); >>> +    DRM_WARN_ONCE("add CONFIG_ZONE_DEVICE=y in config file to fix >>> this\n"); >> >> One message please, apart from that looks good to me. >> >> Christian. >> > Do you mean use multiple line string with one DRM_

Re: [PATCH 3/3] drm/amdgpu: more descriptive message if HMM not enabled v3

2019-03-06 Thread Michel Dänzer
t; > + "add CONFIG_ZONE_DEVICE=y in config file to fix this\n"); With the second line indentation fixed to properly line up with the opening parenthesis, Reviewed-by: Michel Dänzer -- Earthling Michel Dänzer | https://www.amd.com Libre software en

[ANNOUNCE] xf86-video-ati 19.0.0

2019-03-06 Thread Michel Dänzer
age flipping in multi-X-Screen/Zaphod mode Michel Dänzer (30): dri3: Handle radeon_get_pixmap_bo returning NULL Handle pending scanout update in drmmode_crtc_scanout_free Make wait_pending_flip / handle_deferred symmetric in set_mode_major Allow up to six instances in Zaphod

Re: [PATCH] remove amdgpu_vrr_atom

2019-03-07 Thread Michel Dänzer
t? Maybe you ran into the Mesa bug fixed by https://gitlab.freedesktop.org/mesa/mesa/commit/c0a540f32067cc8cb126d9aa1eb12a11cf15373a?merge_request_iid=202 , or a similar bug elsewhere? -- Earthling Michel Dänzer | https://www.amd.com Libre software en

Re: [PATCH] drm/amdgpu: enable bo priority setting from user space

2019-03-07 Thread Michel Dänzer
IORITY_VERYHIGH; if (bp->type == ttm_bo_type_kernel) bo->tbo.priority = TTM_BO_PRIORITY_VERYHIGH; else bo->tbo.priority = bp->priority; would be clearer I think. -- Earthling Michel Dänzer | https://www.amd.com Libre software enthusiast | Mesa and X developer ___ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Re: [PATCH] drm/amdgpu: enable bo priority setting from user space

2019-03-07 Thread Michel Dänzer
On 2019-03-07 11:48 a.m., zhoucm1 wrote: > On 2019年03月07日 17:55, Michel Dänzer wrote: >> On 2019-03-07 10:15 a.m., Chunming Zhou wrote: >>> Signed-off-by: Chunming Zhou >> Please provide corresponding UMD patches showing how this is to be used. > spec is here: > ht

Re: randr: Virtual monitor not present with MST display

2019-03-08 Thread Michel Dänzer
On 2019-03-06 5:35 p.m., Paul Menzel wrote: > On 03/06/19 15:55, Michel Dänzer wrote: >> On 2019-03-06 1:41 p.m., Paul Menzel wrote: >>> On 03/05/19 20:07, Alex Deucher wrote: >>>> On Tue, Mar 5, 2019 at 1:16 PM Paul Menzel wrote: >>> >>>>> U

locking related bug detected since "drm/amdgpu: lookup vbios table to check ecc capability"

2019-03-08 Thread Michel Dänzer
our in the commit log, and it doesn't seem related to checking a VBIOS table for ECC capability. Was it intended? P.S. AFAICT this patch wasn't submitted to the amd-gfx list for review. All changes must be reviewed here before being applied to amd-staging-drm-next. -- Ear

[PATCH xf86-video-ati] Revert "glamor: Avoid glamor_create_pixmap for pixmaps backing windows"

2019-03-08 Thread Michel Dänzer
From: Michel Dänzer This reverts commit 274703087f80342f51fa69c935bb9a1cb0c4ae47. Reports of visual corruption were bisected to this, e.g. https://bugs.archlinux.org/task/61941 . I can reproduce this with Turks, but not with Bonaire. I assume it's a Mesa/glamor bug, but let's reve

Re: [PATCH] drm/amdgpu: limit the number of IVs processed at once

2019-03-08 Thread Michel Dänzer
mber of IVs processed at once */ > +#define AMDGPU_IH_MAX_NUM_IVS32 > + > struct amdgpu_device; > struct amdgpu_iv_entry; > > Reviewed-by: Michel Dänzer -- Earthling Michel Dänzer | https://www.amd.com Libre software enthusiast |

Re: [patch] ras fix patch set

2019-03-11 Thread Michel Dänzer
your editor is properly configured for the Linux kernel coding style. -- Earthling Michel Dänzer | https://www.amd.com Libre software enthusiast | Mesa and X developer ___ amd-gfx mailin

Re: will xf86-video-amdgpu is capable to drive AMD readeon Pro wx2100

2019-03-12 Thread Michel Dänzer
86-video-amdgpu requires the amdgpu kernel driver. Assuming the latter is working with your card, the former will work (as well as the generic modesetting Xorg driver). -- Earthling Michel Dänzer | https://www.amd.com Libre software enthusiast

Re: kernel BUG at drivers/gpu/drm//ttm/ttm_bo.c:196!

2019-03-12 Thread Michel Dänzer
On 2019-02-05 6:40 p.m., Michel Dänzer wrote: > > FWIW, I've hit this twice now today, whereas I don't remember ever > hitting it before (not 100% sure though). > > I reverted the remaining hunk of the "cleanup setting bulk_movable" > change, and it sur

Re: kernel BUG at drivers/gpu/drm//ttm/ttm_bo.c:196!

2019-03-12 Thread Michel Dänzer
On 2019-03-12 3:26 p.m., Koenig, Christian wrote: > Am 12.03.19 um 14:47 schrieb Michel Dänzer: >> On 2019-02-05 6:40 p.m., Michel Dänzer wrote: >>> FWIW, I've hit this twice now today, whereas I don't remember ever >>> hitting it before (not 100% sure thou

Re: [PATCH] drm/amdgpu: revert "cleanup setting bulk_movable"

2019-03-13 Thread Michel Dänzer
vm->evicted); > + > list_for_each_entry_safe(bo_base, tmp, &vm->evicted, vm_status) { > struct amdgpu_bo *bo = bo_base->bo; > > Reviewed-by: Michel Dänzer Tested-by: Michel Dänzer -- Earthling Michel Dänzer |

Re: [PATCH] drm/amd/display: Fix pageflip event race condition for DCN. (v2)

2020-03-13 Thread Michel Dänzer
be waiting for a flip - eg. DMCU powering down HUBP during PSR > entry. Static screen interrupt should happen after that flip finishes I > think. > > The CRTC can still be powered on with zero planes, and I don't think any > userspace explicitly asks for vblank events in this ca

Re: [Mesa-dev] [Intel-gfx] gitlab.fd.o financial situation and impact on services

2020-04-03 Thread Michel Dänzer
On 2020-03-01 6:46 a.m., Marek Olšák wrote: > For Mesa, we could run CI only when Marge pushes, so that it's a strictly > pre-merge CI. Thanks for the suggestion! I implemented something like this for Mesa: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4432 -- Earth

amdgpu dropping load callback triggers WARN_ON in __drm_mode_object_add

2020-04-03 Thread Michel Dänzer
always NULL here, and I don't think MST connectors getting added after dev->registered is set can be avoided? -- Earthling Michel Dänzer | https://redhat.com Libre software enthusiast | Mesa and X developer Apr 3 17:32:55 thor kerne

Re: [PATCH 30/36] drm/amd/display: Avoid create MST prop after registration

2020-04-06 Thread Michel Dänzer
7;t fix all of those, there's also one triggered by dm_dp_add_mst_connector => drm_encoder_init. git grep mst_encoders drivers/gpu/drm/i915/ shows how the i915 driver deals with this. Can you guys take care of that for 5.7 as well? -- Earthling Michel Dänzer |

Re: gitlab.fd.o financial situation and impact on services

2020-04-06 Thread Michel Dänzer
ered jobs don't exist at all in the pipeline, so they can't be triggered by any means. :) -- Earthling Michel Dänzer | https://redhat.com Libre software enthusiast | Mesa and X developer _

Re: [PATCH 30/36] drm/amd/display: Avoid create MST prop after registration

2020-04-07 Thread Michel Dänzer
r 5.7. That'll be great, thanks! -- Earthling Michel Dänzer | https://redhat.com Libre software enthusiast | Mesa and X developer ___ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://l

Re: [PATCH] drm/amdgpu: change SH MEM alignment mode for gfx10

2020-04-16 Thread Michel Dänzer
(3 << SH_MEM_CONFIG__INITIAL_INST_PREFETCH__SHIFT)) > > I bisected a bunch of piglit regressions (mostly half-float related, e.g. draw-vertices-half-float_gles2) with radeonsi on Navi 10 to this change. Does radeonsi/LLVM need corresponding changes? -- Earthling Miche

Re: [PATCH] drm/amdgpu: change SH MEM alignment mode for gfx10

2020-04-16 Thread Michel Dänzer
On 2020-04-16 3:25 p.m., Deucher, Alexander wrote: > [AMD Official Use Only - Internal Distribution Only] > >> -Original Message- >> From: amd-gfx On Behalf Of >> Michel Dänzer >> Sent: Thursday, April 16, 2020 5:57 AM >> To: Gao, Likun ; Marek O

Re: [PATCH 05/35] drm/amd/display: Remove byte swapping for dmcub abm config table

2020-04-17 Thread Michel Dänzer
hey should be a NO-OP on x86 if everything is done right. The *b*e macros aren't NOPs on little endian architectures like x86, they are on big endian architectures. Vice versa for the *l*e macros. -- Earthling Michel Dänzer | https://redhat.com

Re: Reg. Adaptive Sync feature in xf86-video-amdgpu

2020-04-20 Thread Michel Dänzer
indowPtr only. * > > Can you please help me in understanding on this ? This code in amdgpu_vrr_property_update is for the case when the ChangeProperty request is called for a window which is already flipping. In the case you're looking at, the window only starts flipping later, and the KMS property

Re: Reg. Adaptive Sync feature in xf86-video-amdgpu

2020-04-20 Thread Michel Dänzer
sa-defaults.conf (mostly for compositors / browsers / video players). -- Earthling Michel Dänzer | https://redhat.com Libre software enthusiast | Mesa and X developer ___ amd-gfx mailing

Re: Reg. Adaptive Sync feature in xf86-video-amdgpu

2020-04-20 Thread Michel Dänzer
On 2020-04-20 6:45 p.m., uday kiran pichika wrote: > On Mon, Apr 20, 2020 at 9:45 PM Michel Dänzer wrote: >> On 2020-04-20 6:04 p.m., uday kiran pichika wrote: >>> >>> Even in amdgpu_present_flip(), there is a check >>> for amdgpu_window_has_variable_ref

[PATCH] drm/amdgpu/dc: Use WARN_ON_ONCE for ASSERT

2020-04-29 Thread Michel Dänzer
From: Michel Dänzer Once should generally be enough for diagnosing what lead up to it, repeating it over and over can be pretty annoying. Signed-off-by: Michel Dänzer --- drivers/gpu/drm/amd/display/dc/os_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu

Re: [PATCH] drm/amdgpu/dc: Use WARN_ON_ONCE for ASSERT

2020-04-30 Thread Michel Dänzer
On 2020-04-30 4:55 p.m., Alex Deucher wrote: > On Wed, Apr 29, 2020 at 12:28 PM Michel Dänzer wrote: >> >> From: Michel Dänzer >> >> Once should generally be enough for diagnosing what lead up to it, >> repeating it over and over can be pretty annoying. &

Re: [PATCH AUTOSEL 5.6 33/50] drm/amdgpu: bump version for invalidate L2 before SDMA IBs

2020-05-07 Thread Michel Dänzer
3 > -#define KMS_DRIVER_MINOR 36 > +#define KMS_DRIVER_MINOR 37 > #define KMS_DRIVER_PATCHLEVEL0 > > int amdgpu_vram_limit = 0; > This requires the parent commit fdf83646c0542ecfb9adc4db8f741a1f43dca058 "drm/amdgpu: invalidate L2 before SDMA IBs (v2)

<    1   2   3   4   5   6   7   8   9   10   >