Re: amdgpu: Enable full DCN support on POWER

2019-12-06 Thread Michel Dänzer
ishes shared ownership), our > general policy per recommendations is to add the copyright line. It > helps anyone looking at the file know at a glance that there is more > than one corporate author, and therefore e.g. the only terms it can > be used on without a complex multi-party li

Making use of more Gitlab features for xf86-video-amdgpu

2018-09-19 Thread Michel Dänzer
of xserver. A lot of this is new territory for me, I'll figure it out as I go along. Please bear with me. Once the new stuff has proven to work well for xf86-video-amdgpu, I want to start using it for -ati as well. Don't hesitate to ask questions or give feedback on this.

It's important to pay attention to e-mails from "kbuild test robot"

2018-09-20 Thread Michel Dänzer
h, or if the patch has already landed, an incremental fix-up patch. If it isn't clear what the issue is, please ask. This is a free service which can help improve the quality of our patches, let's take advantage of it. -- Earthling Michel Dänzer | http://ww

Re: Making use of more Gitlab features for xf86-video-amdgpu

2018-09-21 Thread Michel Dänzer
On 2018-09-19 6:46 p.m., Michel Dänzer wrote: > > With the 18.1.0 release out the door, I want to start making use of more > Gitlab features for xf86-video-amdgpu development. > > I've already enabled merge requests (MRs) at > https://gitlab.freedesktop.org/xorg/driver/x

Re: Making use of more Gitlab features for xf86-video-amdgpu

2018-09-21 Thread Michel Dänzer
op.org/xorg/driver/xf86-video-amdgpu using the button with the bell symbol at the top right. (This will only work if you're logged into your Gitlab account) -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and

Re: Making use of more Gitlab features for xf86-video-amdgpu

2018-09-21 Thread Michel Dänzer
On 2018-09-21 9:57 a.m., Christian König wrote: > Am 21.09.2018 um 09:42 schrieb Michel Dänzer: >> On 2018-09-21 9:22 a.m., Zhou, David(ChunMing) wrote: >>> After moving patch submitted and reviewed as MRs, mail list will be >>> no useful? And many people could miss ne

Re: Making use of more Gitlab features for xf86-video-amdgpu

2018-09-21 Thread Michel Dänzer
because each notification e-mail contains an URL which can be used to disable notification e-mails for the given MR to the corresponding account, which works without logging into the account. It looks like this is by design, e.g. so that it can work in e-mail clients via the List-Unsubscribe head

Re: [PATCH 3/7] drm/ttm: allow reserve more than one shared slot

2018-09-24 Thread Michel Dänzer
ffer_object *bo; > - bool shared; > + unsigned int shared; > }; > > /** > It would be better to change the name of the field to something more descriptive, e.g. "num_shared_fence_contexts", and fix up all users accordingly in this p

Re: [PATCH 5/7] drm/amdgpu: always reserve two slots for the VM

2018-09-24 Thread Michel Dänzer
re assigning values > 1 to this field, it would be good to have a comment explaining what the multiple shared fence slots correspond to. Same for patch 6. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and

Re: [PATCH v2 2/3] drm: Add variable refresh property to DRM CRTC

2018-09-25 Thread Michel Dänzer
th only the connector property, the user running e.g. xrandr --output --set variable_refresh_enabled 1 would result in variable refresh being enabled regardless of whether a variable refresh compatible client is currently using page flipping, which can result in flickering or getting stuck at

Re: [PATCH v2 2/3] drm: Add variable refresh property to DRM CRTC

2018-09-25 Thread Michel Dänzer
On 2018-09-25 4:04 p.m., Ville Syrjälä wrote: > On Tue, Sep 25, 2018 at 03:28:28PM +0200, Michel Dänzer wrote: >> On 2018-09-24 10:26 p.m., Ville Syrjälä wrote: >>> On Mon, Sep 24, 2018 at 03:06:02PM -0400, Kazlauskas, Nicholas wrote: >>>> On 09/24/2018

Re: [PATCH] drm/radeon: ratelimit bo warnings

2018-10-05 Thread Michel Dänzer
is patch is against 4.18.11: I saw the warnings on 4.17.6 with Mesa > 18.1.2, but nothing much seems to have changed in this area so I bet > this could recur. Not sure it makes sense to have the last paragraph in the Git commit log, but either way: Reviewed-by: Michel Dänzer > Signed-

Re: [PATCH v2 2/3] drm: Add variable refresh property to DRM CRTC

2018-10-05 Thread Michel Dänzer
> Knowing the vmin/vmax could potentially be useful for testing but most > applications shouldn't be trying to predict or adjust rendering based on > these. FWIW, recent research indicates that this is necessary for perfectly smooth animation without micro-stuttering, even

Re: [PATCH v2 2/3] drm: Add variable refresh property to DRM CRTC

2018-10-08 Thread Michel Dänzer
On 2018-10-05 7:48 p.m., Kazlauskas, Nicholas wrote: > On 10/05/2018 12:56 PM, Michel Dänzer wrote: >> On 2018-10-05 6:21 p.m., Kazlauskas, Nicholas wrote: >>> On 10/05/2018 04:10 AM, Pekka Paalanen wrote: >>>> >>>> I also believe that it would be usefu

Re: [PATCH 4/5] drm/amdgpu: Fix unnecessary warning in dmesg

2018-10-09 Thread Michel Dänzer
SP == 2 != AMDGPU_FW_LOAD_DIRECT == 0 I suspect you meant something else here. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___ amd-gfx mailing list amd

Re: [PATCH] drm/radeon: ratelimit bo warnings

2018-10-09 Thread Michel Dänzer
On 2018-10-05 7:14 p.m., Nick Alcock wrote: > On 5 Oct 2018, Michel Dänzer told this: > >> On 2018-10-04 9:58 p.m., Nick Alcock wrote: >>> So a few days ago I started getting sprays of these warnings -- >>> sorry, but because it was a few days ago I'm not sure

Re: [PATCH v2 0/3] A DRM API for adaptive sync and variable refresh rate support

2018-10-12 Thread Michel Dänzer
ng parameters (BTW Harry, does that work with DC?), but that should be easy to fix. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer

Re: [PATCH 17/26] drm/amd/display: implement PERF_TRACE on Linux

2018-10-12 Thread Michel Dänzer
ults can be read through the debugfs entry > amdgpu_perf_trace. Each result contains the time in ns and > number of GPU read/writes since the result before it. > > In my experimentation, each PERF_TRACE() call uses at most 700ns Should this use the Linux tracing infrastructure? -- Eart

Re: [PATCH v5 2/4] drm: Add vrr_enabled property to drm CRTC

2018-10-15 Thread Michel Dänzer
a per CRTC property is actually > the right approach. > > What we should rather do instead is to implement a target timestamp for > the page flip. You'd have to be more specific about how the latter could completely replace the former. I don't see how it could. -- Earthl

Re: [PATCH v5 2/4] drm: Add vrr_enabled property to drm CRTC

2018-10-15 Thread Michel Dänzer
On 2018-10-15 11:47 a.m., Christian König wrote: > Am 15.10.2018 um 11:40 schrieb Michel Dänzer: >> On 2018-10-13 7:38 p.m., Christian König wrote: >>> Am 12.10.2018 um 18:44 schrieb Nicholas Kazlauskas: >>>> This patch introduces the 'vrr_enabled' CRTC pro

[PATCH xf86-video-ati] dri3: Handle radeon_get_pixmap_bo returning NULL

2018-10-18 Thread Michel Dänzer
From: Michel Dänzer We were trying to already, but testing the wrong pointer. Fixes: b85b7b11f5b5 "Add struct radeon_buffer" Bug: https://bugs.debian.org/910846 Signed-off-by: Michel Dänzer --- src/radeon_dri3.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) di

Re: [PATCH 1/3] drm/sched: Add callback to mark if sched is ready to work.

2018-10-19 Thread Michel Dänzer
/include/drm/gpu_scheduler.h b/include/drm/gpu_scheduler.h > index 0684dcd..a6e18fe 100644 > --- a/include/drm/gpu_scheduler.h > +++ b/include/drm/gpu_scheduler.h > @@ -283,12 +283,15 @@ struct drm_gpu_scheduler { > spinlock_t job_list_lock; > int

Re: [PATCH 3/3] drm/amdkfd: Add proper prefix to functions

2018-10-19 Thread Michel Dänzer
on of continuation lines to match the modified first line. -- 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: [PATCH 1/8] dma-buf: remove shared fence staging in reservation object

2018-10-23 Thread Michel Dänzer
On 2018-10-23 2:20 p.m., Christian König wrote: > Ping once more! Adding a few more AMD people. > > Any comments on this? Patches 1 & 3 are a bit over my head I'm afraid. Patches 2, 4, 6-8 are Reviewed-by: Michel Dänzer -- Earthling Michel Dänzer |

Re: [PATCH 5/8] drm/amdgpu: fix using shared fence for exported BOs v2

2018-10-23 Thread Michel Dänzer
König As this is a bug fix, should it be before patch 5 and have Cc: stable? Either way, with the above fixed, Reviewed-by: Michel Dänzer -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast |

Re: [PATCH libdrm 2/2] amdgpu: don't track handles for non-memory allocations

2018-10-24 Thread Michel Dänzer
bout AMDGPU_GEM_DOMAIN_CPU? I mean, that's unlikely to actually be used here, but if it were, exporting and importing the resulting BO should work fine? Instead of white-listing the domains which can be shared, it might be better to black-list those which can't, i.e. GDS/GWS/OA. -- Eart

[PATCH xf86-video-ati 3/3] Allow up to six instances in Zaphod mode

2018-10-24 Thread Michel Dänzer
From: Michel Dänzer Corresponding to up to six CRTCs being available in the hardware. (Ported from amdgpu commit c9d43c1deb9a9cfc41a8d6439caf46d12d220853) Signed-off-by: Michel Dänzer --- src/drmmode_display.c | 38 - src/radeon.h | 2 +- src

[PATCH xf86-video-ati 1/3] Handle pending scanout update in drmmode_crtc_scanout_free

2018-10-24 Thread Michel Dänzer
From: Michel Dänzer We have to wait for a pending scanout flip or abort a pending scanout update, otherwise the corresponding event handler will likely crash after drmmode_crtc_scanout_free cleaned up the data structures. Fixes crash after VT switch while dedicated scanout pixmaps are enabled

[PATCH xf86-video-ati 2/3] Make wait_pending_flip / handle_deferred symmetric in set_mode_major

2018-10-24 Thread Michel Dänzer
From: Michel Dänzer We were always calling the latter, but not always the former, which could result in handling deferred DRM events prematurely. (Ported from amdgpu commit 955373a3e69baa241a1f267e96d04ddb902f689f) Signed-off-by: Michel Dänzer --- src/drmmode_display.c | 6 +- 1 file

Re: [PATCH v2 0/3] A DRM API for adaptive sync and variable refresh rate support

2018-10-26 Thread Michel Dänzer
On 2018-10-25 7:57 p.m., Wentland, Harry wrote: > On 2018-10-12 4:31 a.m., Koenig, Christian wrote: >> Am 12.10.2018 um 10:26 schrieb Michel Dänzer: >>> On 2018-10-11 9:44 p.m., Harry Wentland wrote: >>>> On 2018-10-03 04:25 AM, Mike Lothian wrote: >>>>>

Re: [PATCH v4 3/4] drm: Document variable refresh properties

2018-10-29 Thread Michel Dänzer
ich use them for animation timing. Maybe the timestamp could be updated appropriately (yes, I'm hand-waving :) in drm_crtc_send_vblank_event? -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer _

Re: [PATCH libdrm 1/2] amdgpu: prevent an integer wraparound of cpu_map_count

2018-10-30 Thread Michel Dänzer
s it? -- 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: [PATCH v4 3/4] drm: Document variable refresh properties

2018-10-30 Thread Michel Dänzer
On 2018-10-29 8:11 p.m., Kazlauskas, Nicholas wrote: > On 10/29/18 2:03 PM, Ville Syrjälä wrote: >> On Mon, Oct 29, 2018 at 05:37:49PM +0100, Michel Dänzer wrote: >>> On 2018-10-26 7:59 p.m., Ville Syrjälä wrote: >>>> On Fri, Oct 26, 2018 at 05:34:15PM +, Kazlau

Re: [PATCH v4 3/4] drm: Document variable refresh properties

2018-10-30 Thread Michel Dänzer
On 2018-10-29 7:03 p.m., Ville Syrjälä wrote: > On Mon, Oct 29, 2018 at 05:37:49PM +0100, Michel Dänzer wrote: >> On 2018-10-26 7:59 p.m., Ville Syrjälä wrote: >>> On Fri, Oct 26, 2018 at 05:34:15PM +, Kazlauskas, Nicholas wrote: >>>> On 10/26/18

Re: [PATCH libdrm 1/2] amdgpu: prevent an integer wraparound of cpu_map_count

2018-10-30 Thread Michel Dänzer
On 2018-10-30 4:52 p.m., Marek Olšák wrote: > On Tue, Oct 30, 2018, 11:49 AM Marek Olšák wrote: >> On Tue, Oct 30, 2018, 4:20 AM Michel Dänzer wrote: >> >>> On 2018-10-29 10:15 p.m., Marek Olšák wrote: >>>> You and I discussed this extensively internally a w

Re: [PATCH v4 3/4] drm: Document variable refresh properties

2018-10-31 Thread Michel Dänzer
On 2018-10-31 2:38 p.m., Kazlauskas, Nicholas wrote: > On 10/30/18 11:34 AM, Kazlauskas, Nicholas wrote: >> On 10/30/18 5:29 AM, Michel Dänzer wrote: >>> On 2018-10-29 7:03 p.m., Ville Syrjälä wrote: >>>> On Mon, Oct 29, 2018 at 05:37:49PM +0100, Michel Dänzer wrote

Re: [PATCH v4 3/4] drm: Document variable refresh properties

2018-10-31 Thread Michel Dänzer
On 2018-10-31 3:41 p.m., Kazlauskas, Nicholas wrote: > On 10/31/18 10:12 AM, Michel Dänzer wrote: >> On 2018-10-31 2:38 p.m., Kazlauskas, Nicholas wrote: >>> On 10/30/18 11:34 AM, Kazlauskas, Nicholas wrote: >>>> >>>> I understand the issue you're de

Re: [PATCH v4 3/4] drm: Document variable refresh properties

2018-11-01 Thread Michel Dänzer
On 2018-10-31 6:54 p.m., Kazlauskas, Nicholas wrote: > On 10/31/18 12:20 PM, Michel Dänzer wrote: >> On 2018-10-31 3:41 p.m., Kazlauskas, Nicholas wrote: >>> On 10/31/18 10:12 AM, Michel Dänzer wrote: >>>> On 2018-10-31 2:38 p.m., Kazlauskas, Nicholas wrote: >>

Re: [PATCH v4 3/4] drm: Document variable refresh properties

2018-11-01 Thread Michel Dänzer
On 2018-11-01 3:58 p.m., Kazlauskas, Nicholas wrote: > On 11/1/18 6:58 AM, Michel Dänzer wrote: >> On 2018-10-31 6:54 p.m., Kazlauskas, Nicholas wrote: >>> On 10/31/18 12:20 PM, Michel Dänzer wrote: >>>> On 2018-10-31 3:41 p.m., Kazlauskas, Nicholas wrote: >>>

Re: [PATCH v2 3/3] drm/amdgpu: Change powerplay clock requests to mHz

2018-11-02 Thread Michel Dänzer
ld be "MHz" for megahertz. -- 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.f

Re: [PATCH libdrm] amdgpu/test: Add illegal register and memory access test.

2018-11-02 Thread Michel Dänzer
. Ideally, it should also check at runtime that GPU recovery is actually enabled, as that still isn't the case by default except with bleeding edge amdgpu kernel code. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast |

Re: [PATCH xf86-video-ati] Update README for gitlab migration

2018-11-19 Thread Michel Dänzer
ad of suggesting gitlab merge requests. Pushed, thanks Alan! -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___ amd-gfx mailing list amd-gfx@list

Re: [PATCH v7 3/5] drm: Document variable refresh properties

2018-11-27 Thread Michel Dänzer
#x27; and the drm_crtc >>>> 'vrr_enabled' properties. >>>> >>>> Signed-off-by: Nicholas Kazlauskas >>>> Cc: Harry Wentland >>>> Cc: Manasi Navare >>>> Cc: Pekka Paalanen >>>> Cc: Ville Syrjälä >>

Re: regression in ttm

2018-12-05 Thread Michel Dänzer
On 2018-12-04 6:35 p.m., Koenig, Christian wrote: > Thanks, going to take a look tomorrow. I also hit this with Bonaire in my development system. I wonder why you didn't? How are you running piglit? -- Earthling Michel Dänzer | http://www.amd.com Libre

Re: regression in ttm

2018-12-05 Thread Michel Dänzer
On 2018-12-05 12:24 p.m., Koenig, Christian wrote: > Am 05.12.18 um 11:29 schrieb Michel Dänzer: >> On 2018-12-04 6:35 p.m., Koenig, Christian wrote: >>> Thanks, going to take a look tomorrow. >> I also hit this with Bonaire in my development system. I wonder why you >&g

Re: regression in ttm

2018-12-05 Thread Michel Dänzer
On 2018-12-05 12:41 p.m., Koenig, Christian wrote: > Am 05.12.18 um 12:33 schrieb Michel Dänzer: >> On 2018-12-05 12:24 p.m., Koenig, Christian wrote: >>> Am 05.12.18 um 11:29 schrieb Michel Dänzer: >>>> On 2018-12-04 6:35 p.m., Koenig, Christian wrote: >>>&

KASAN: use-after-free in drm_sched_entity_pop_job with amdgpu

2018-12-06 Thread Michel Dänzer
KASAN caught something during today's piglit run, see the attached dmesg excerpt. Looks like amdgpu destroys the VM while the scheduler still has a reference to its entity? -- Earthling Michel Dänzer | http://www.amd.com Libre software enthu

Re: [PATCH i-g-t] igt: add timeline test cases

2018-12-10 Thread Michel Dänzer
se run git rm tests/gem_ctx_bad_exec and re-send the patch. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___ amd-gfx mailing list amd-gfx@lists.

Re: [PATCH] drm/amd/display: Fix cursor pos and hotspot calcs

2018-12-12 Thread Michel Dänzer
x >= 0 ? x : 0; > + position->y = y >= 0 ? y : 0; > + position->x_hotspot = plane->state->fb->hot_x; > + position->y_hotspot = plane->state->fb->hot_y; I don't see how this could work correctly. Try moving a cursor which doesn't have

Re: [PATCH] drm/amd/display: Fix cursor pos and hotspot calcs

2018-12-12 Thread Michel Dänzer
On 2018-12-12 3:17 p.m., Kazlauskas, Nicholas wrote: > On 12/12/18 9:10 AM, Michel Dänzer wrote: >> On 2018-12-12 3:04 p.m., Nicholas Kazlauskas wrote: >>> [Why] >>> The cursor calculations in amdgpu_dm incorrectly assume that the >>> cursor hotspot is always (0

Re: [PATCH] drm/amd/display: Fix cursor pos and hotspot calcs

2018-12-12 Thread Michel Dänzer
On 2018-12-12 3:58 p.m., Kazlauskas, Nicholas wrote: > On 12/12/18 9:40 AM, Michel Dänzer wrote: >> On 2018-12-12 3:17 p.m., Kazlauskas, Nicholas wrote: >>> On 12/12/18 9:10 AM, Michel Dänzer wrote: >>>> On 2018-12-12 3:04 p.m., Nicholas Kazlauskas wrote: >>>

Re: [PATCH] drm/amd/display: Add fast path for cursor plane updates

2018-12-13 Thread Michel Dänzer
mdgpu/commit/0d60233d26ec70d4e1faa343b438e33829c6d5e4 , i.e. alternating between two BOs for the HW cursor, instead of always using the same one. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer Dec

[PATCH] drm/amdgpu: WARN once if amdgpu_bo_unpin is called for an unpinned BO

2018-12-13 Thread Michel Dänzer
From: Michel Dänzer It indicates a pin/unpin imbalance bug somewhere. While the bug isn't necessarily in the call chain hitting this, it's at least one part involved. Signed-off-by: Michel Dänzer --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 2 +- 1 file changed, 1 insertion(+),

Re: [PATCH] drm/amd/display: Add fast path for cursor plane updates

2018-12-14 Thread Michel Dänzer
On 2018-12-13 9:59 p.m., Kazlauskas, Nicholas wrote: > On 12/13/18 2:21 PM, Kazlauskas, Nicholas wrote: >> On 12/13/18 11:01 AM, Kazlauskas, Nicholas wrote: >>> On 12/13/18 10:48 AM, Michel Dänzer wrote: >>>> On 2018-12-05 8:59 p.m., Nicholas Kazlauskas wrote: >>

Re: [PATCH] drm/amd/display: Don't cleanup new cursor fb in fast cursor update

2018-12-14 Thread Michel Dänzer
ield was added (cursor_update) to dm_plane_state that's only > ever set to true during the fast path. If it's true, then cleanup_fb > doesn't unpin and unref the fb. > > Cc: Leo Li > Cc: Harry Wentland > Cc: Michel Dänzer > Signed-off-by: Nicholas Kazlauskas &g

Re: [PATCH] drm/amd/display: Skip fast cursor updates for fb changes

2018-12-17 Thread Michel Dänzer
n some following commit). > Why you think that making this the generic solution by moving this from > dm_plane_atomic_async_check to drm_atomic_helper_async_check > will break other drivers ? Please raise and discuss this with other developers on the dri-devel mailing list. :) Anyway, this lo

Re: [PATCH] Fix crash when page flipping in multi-X-Screen/Zaphod mode

2018-12-18 Thread Michel Dänzer
catch, thanks! Pushed with Fixes: 740f0850f1e4 "Store FB for each CRTC in drmmode_flipdata_rec" Reviewed-by: Michel Dänzer Do you want to make an xf86-video-amdgpu merge request as well? If not, I can take care of porting the fix. If you do it, please enable the "Allow commits from membe

Re: [PATCH] Fix crash when page flipping in multi-X-Screen/Zaphod mode

2018-12-19 Thread Michel Dänzer
On 2018-12-18 8:09 p.m., Mario Kleiner wrote: > On Tue, Dec 18, 2018 at 3:42 PM Michel Dänzer wrote: >> >> Good catch, thanks! Pushed with >> >> Fixes: 740f0850f1e4 "Store FB for each CRTC in drmmode_flipdata_rec" >> Reviewed-by: Michel Dänzer >&g

Re: [PATCH amdgpu] Fix crash when page flipping in multi-X-Screen/Zaphod mode

2018-12-19 Thread Michel Dänzer
900b12f129984e98886a7ac84b2f) > Signed-off-by: Mario Kleiner I created https://gitlab.freedesktop.org/xorg/driver/xf86-video-amdgpu/merge_requests/20 for this and merged it, thanks again! -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast |

Re: [PATCH] drm/amdgpu/virtual_dce: Need to pin the fb's bo

2018-12-21 Thread Michel Dänzer
tc *crtc, > + struct drm_display_mode *mode, > + struct drm_display_mode *adjusted_mode, > + int x, int y, struct drm_framebuffer *old_fb) Indentation of the continuation lines here

Re: [PATCH] drm/amdgpu/virtual_dce: Need to pin the fb's bo

2018-12-21 Thread Michel Dänzer
but that shouldn't be necessary here. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___ amd-gfx mailing list amd-gfx@lists.freedesktop.o

Re: [PATCH] drm/amdgpu/virtual_dce: Need to pin the fb's bo

2018-12-21 Thread Michel Dänzer
On 2018-12-21 9:45 a.m., Deng, Emily wrote: >> -Original Message- >> From: Michel Dänzer >> Sent: Friday, December 21, 2018 4:38 PM >> To: Deng, Emily >> Cc: amd-gfx@lists.freedesktop.org >> Subject: Re: [PATCH] drm/amdgpu/virtual_dce: Need to pin the

Re: [PATCH 1/3] drm/amd: fix race in page flip job

2018-12-21 Thread Michel Dänzer
pflip_status thus will refuse to notify the job > completion. The job will eventually times out. > > Reverse the order of calling page_flip and setting pflip_status to > fix the race. There is no race, amdgpu_crtc->pflip_status is protected by dev->event_

Re: [PATCH 2/3] drm/amd: validate user pitch alignment

2018-12-21 Thread Michel Dänzer
houldn't be printed by default, or buggy / malicious userspace can spam dmesg. I suggest using DRM_DEBUG_KMS or DRM_DEBUG_DRIVER. > + return ERR_PTR(-EINVAL); > + } > > obj = drm_gem_object_lookup(file_priv, mode_cmd->handles[0]); > if (obj ==

Re: [PATCH 2/3] drm/amd: validate user pitch alignment

2018-12-21 Thread Michel Dänzer
pu_align_pitch(adev, mode_cmd->width, cpp, false); Also, this needs to use mode_cmd->pitches[0] instead of mode_cmd->width, otherwise it'll spuriously fail for larger but well-aligned pitches. -- Earthling Michel Dänzer |

Re: [PATCH 3/3] drm/amd: validate user GEM object size

2018-12-21 Thread Michel Dänzer
eight, 8); > + if (obj->size < pitch * height) { > + dev_err(&dev->pdev->dev, "Invalid GEM size: expecting %d but > got %d\n", > + pitch * height, obj->size); Same comment as patch 2, and maybe

Re: [PATCH] drm/amdgpu/virtual_dce: Need to pin the fb's bo

2018-12-21 Thread Michel Dänzer
On 2018-12-21 10:17 a.m., Deng, Emily wrote: >> From: amd-gfx On Behalf Of Deng, >> Emily >>> From: Michel Dänzer >>> On 2018-12-21 9:45 a.m., Deng, Emily wrote: >>>>> From: Michel Dänzer >>>>> On 2018-12-21 8:26 a.m., Emily Deng wrot

Re: [PATCH] drm/amdgpu/virtual_dce: Need to pin the fb's bo

2018-12-21 Thread Michel Dänzer
On 2018-12-21 10:32 a.m., Deng, Emily wrote: >> -Original Message- >> From: Michel Dänzer >> Sent: Friday, December 21, 2018 5:28 PM >> To: Deng, Emily >> Cc: amd-gfx@lists.freedesktop.org >> Subject: Re: [PATCH] drm/amdgpu/virtual_dce: Need to pin t

Re: [PATCH] drm/amdgpu/virtual_dce: Need to pin the fb's bo

2018-12-21 Thread Michel Dänzer
On 2018-12-21 10:55 a.m., Deng, Emily wrote: >> -Original Message- >> From: amd-gfx On Behalf Of Deng, >> Emily >> Sent: Friday, December 21, 2018 5:41 PM >> To: Michel Dänzer >> Cc: amd-gfx@lists.freedesktop.org >> Subject: RE: [PATCH] drm/a

Re: [PATCH] drm/amdgpu/virtual_dce: Need to pin the fb's bo

2018-12-21 Thread Michel Dänzer
On 2018-12-21 11:15 a.m., Deng, Emily wrote: >> -Original Message- >> From: Michel Dänzer >> Sent: Friday, December 21, 2018 6:08 PM >> To: Deng, Emily >> Cc: amd-gfx@lists.freedesktop.org >> Subject: Re: [PATCH] drm/amdgpu/virtual_dce: Need to pin t

Re: [PATCH] drm/amdgpu/gmc: fix compiler errors [-Werror,-Wmissing-braces]

2018-12-21 Thread Michel Dänzer
xt branch. Patches must be tested appropriately (against the target branch), ideally before submitting them for review. Reviewers are not expected to look for things which trivially break the build. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthu

[PATCH xf86-video-ati 04/13] Use drm_abort_one in drm_queue_handler

2018-12-21 Thread Michel Dänzer
From: Michel Dänzer At this point, we've already established that e->handler is NULL, no need to check again in drm_queue_handle_one. This also makes it clearer what's happening. (Ported from amdgpu commit eda571222f5a6be47f8897e82d85199bb9d95251) Signed-off-by: Michel Dän

[PATCH xf86-video-ati 00/13] Porting outstanding changes from amdgpu

2018-12-21 Thread Michel Dänzer
From: Michel Dänzer These are the outstanding applicable changes ported from xf86-video-amdgpu. Michel Dänzer (13): Detect and fix up non-premultiplied cursor data Skip gamma correction of cursor data if premultiplied R/G/B > alpha glamor: Can work at depth >= 15 with current xserv

[PATCH xf86-video-ati 03/13] glamor: Can work at depth >= 15 with current xserver Git master

2018-12-21 Thread Michel Dänzer
From: Michel Dänzer (Ported from amdgpu commit 0734cdf544ffd3f2ac8749ad0e4bf43f8a5cea50) Signed-off-by: Michel Dänzer --- src/radeon_bo_helper.c | 2 ++ src/radeon_glamor.c| 9 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/radeon_bo_helper.c b/src

[PATCH xf86-video-ati 13/13] Use two HW cursor buffers per CRTC

2018-12-21 Thread Michel Dänzer
From: Michel Dänzer Switch to the other buffer when xf86_config->cursor changes. Avoids these issues possible when re-using the same buffer: * The HW may intermittently display a mix of the old and new cursor images. * If the hotspot changes, the HW may intermittently display the new cur

[PATCH xf86-video-ati 11/13] Use drmIoctl in drmmode_show_cursor

2018-12-21 Thread Michel Dänzer
From: Michel Dänzer This should be functionally equivalent to what drmModeSetCursor(2) do behind the scenes, but allows for new tricks in following changes. (Ported from amdgpu commit b344e1559e936046ef02c777fc4f6bcefa3830bc) Signed-off-by: Michel Dänzer --- src/drmmode_display.c | 21

[PATCH xf86-video-ati 02/13] Skip gamma correction of cursor data if premultiplied R/G/B > alpha

2018-12-21 Thread Michel Dänzer
From: Michel Dänzer The un-premultiplied R/G/B values would overflow the gamma LUT, so just pass through the data unchanged, and leave it up to the HW how to interpret such weird premultiplied alpha pixels. Bugzilla: https://bugs.freedesktop.org/108355 (Ported from amdgpu commit

[PATCH xf86-video-ati 10/13] Drop RADEONInfoRec::cursor_bo array

2018-12-21 Thread Michel Dänzer
From: Michel Dänzer Not needed or even useful for anything. (Ported from amdgpu commit e95044e45350870fa7e237860e89ade91ac03550) Signed-off-by: Michel Dänzer --- src/drmmode_display.c | 9 - src/drmmode_display.h | 1 - src/radeon.h | 1 - src/radeon_kms.c | 21

[PATCH xf86-video-ati 07/13] Perform scanout buffer update immediately if drmmode_wait_vblank fails

2018-12-21 Thread Michel Dänzer
From: Michel Dänzer Otherwise the damaged screen contents may never be displayed in that case. (Ported from amdgpu commit 500fadb16285146e91f62fce3a0ce1360ca684ba) Signed-off-by: Michel Dänzer --- src/radeon_kms.c | 29 +++-- 1 file changed, 19 insertions(+), 10

[PATCH xf86-video-ati 06/13] Move deferred vblank events to separate drm_vblank_deferred list

2018-12-21 Thread Michel Dänzer
From: Michel Dänzer It was still possible for nested xorg_list_for_each_entry_safe loops to occur over the drm_vblank_signalled list, which could mess up that list. Moving deferred events to a separate list allows processing the drm_vblank_signalled list without xorg_list_for_each_entry_safe

[PATCH xf86-video-ati 09/13] Automatically try re-enabling TearFree after a flip failed

2018-12-21 Thread Michel Dänzer
From: Michel Dänzer Specifically, after both the page flip and vblank ioctls failed, but then the vblank ioctl started working again. This can happen intermittently e.g. when hotplugging a DP display. Previously, TearFree would stay disabled in that case until a modeset was triggered somehow

[PATCH xf86-video-ati 08/13] Cancel pending scanout update in drmmode_crtc_scanout_update

2018-12-21 Thread Michel Dänzer
From: Michel Dänzer drmmode_crtc_scanout_update does the equivalent of a scanout update, so no need to do it again. This might also avoid issues if there's a pending scanout update at this point. (Ported from amdgpu commit 4e7a24ac5a64e402146953ec5850d13c05742116) Signed-off-by: Michel D

[PATCH xf86-video-ati 05/13] Explicitly keep track of whether a DRM event is for a flip or not

2018-12-21 Thread Michel Dänzer
From: Michel Dänzer When an async flip is performed, and TearFree is enabled on the CRTC used for timing, we schedule a vblank event for completing the page flip. The DRM event queuing code treated this event like a vblank event, but it needs to be treated like a page flip event. (Ported from

[PATCH xf86-video-ati 01/13] Detect and fix up non-premultiplied cursor data

2018-12-21 Thread Michel Dänzer
From: Michel Dänzer X server >= 1.18 already had code for this, but it only caught cases where some pixels have 0 for alpha and non-0 for a non-alpha component. Turns out some apps (e.g. the Civilization VI game) use non-premultiplied cursor data which doesn't have such pixels, but c

[PATCH xf86-video-ati 12/13] Update cursor position in drmmode_show_cursor if hotspot changed

2018-12-21 Thread Michel Dänzer
From: Michel Dänzer The cursor position is updated to be consistent with the new hotspot in the same ioctl call. (Ported from amdgpu commit b04697de5270e8e45744a7025c24df1f454a4cf0) Signed-off-by: Michel Dänzer --- src/drmmode_display.c | 75 +-- src

Re: [PATCH 2/3] drm/amd: validate user pitch alignment

2018-12-27 Thread Michel Dänzer
On 2018-12-23 10:44 p.m., Yu Zhao wrote: > On Fri, Dec 21, 2018 at 10:07:26AM +0100, Michel Dänzer wrote: >> On 2018-12-21 4:10 a.m., Yu Zhao wrote: >>> Userspace may request pitch alignment that is not supported by GPU. >>> Some requests 32, but GPU ignores it and

Re: [PATCH 1/2] drm/amdgpu/virtual_dce: No need to pin the fb's bo

2018-12-27 Thread Michel Dänzer
if (unlikely(amdgpu_bo_unpin(new_abo) != 0)) DRM_ERROR("failed to unpin new abo in error path\n"); } P.S. A lot of people are out for Christmas and New Year's. -- Earthling Michel Dänzer | http://www.amd.com Li

Re: [PATCH 2/2] drm/amdgpu/virtual_dce: No need to pin the cursor bo

2018-12-27 Thread Michel Dänzer
if (amdgpu_crtc->cursor_bo) { > + if (amdgpu_crtc->cursor_bo && > !adev->enable_virtual_display) { > struct amdgpu_bo *aobj = > gem_to_amdgpu_bo(amdgpu_crtc->cursor_bo); > r = amdgpu_bo_reser

Re: [PATCH] drm/amdgpu/virtual_dce: Need to pin the fb's bo

2018-12-27 Thread Michel Dänzer
On 2018-12-21 7:23 p.m., Koenig, Christian wrote: > Am 21.12.18 um 19:19 schrieb Alex Deucher: >> On Fri, Dec 21, 2018 at 1:15 PM Christian König >> wrote: >>> Am 21.12.18 um 10:09 schrieb Deng, Emily: >>>>> From: Michel Dänzer >>>>> On

Re: ATI FirePro 2260 doesn't work after the update 'drm-next-2018-12-14'

2019-01-03 Thread Michel Dänzer
g/enter_bug.cgi?product=DRI&component=DRM/Radeon , but note that somebody will likely need to bisect the commit which introduced it. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer __

Re: [PATCH v5 1/2] drm/amd: validate user pitch alignment

2019-01-03 Thread Michel Dänzer
return ERR_PTR(-EINVAL); > + } > > obj = drm_gem_object_lookup(file_priv, mode_cmd->handles[0]); > if (obj == NULL) { > Apart from the above, the v5 series looks good to me. -- Earthling Michel Dänzer | http://www.amd.co

Re: System with kernel 4.21 hang immediately after start (invalid opcode: 0000 [#1] SMP NOPTI)

2019-01-04 Thread Michel Dänzer
mit. >> First bad commit: [674e78acae0dfb4beb56132e41cbae5b60f7d662] >> drm/amd/display: Add fast path for cursor plane updates > > IIRC, the issue only shows up with newer versions of the ddx. Wayland compositors seem to hit it as well, I think Mikhail is using GNOME on Wayland. -- Earthling Michel Dänzer

Re: Regression with kernel 4.20 on armhf

2019-01-04 Thread Michel Dänzer
s the GPU to > hang, so it is not only timing sensitive, but is mainly because of > wrong openGL commands, that drive the GPU into an invalid state In that case, the problem would be expected to happen the same way on x86 as well. There seems to be some kind of platform specific

Re: [PATCH v5 1/2] drm/amd: validate user pitch alignment

2019-01-07 Thread Michel Dänzer
On 2019-01-07 5:00 a.m., Yu Zhao wrote: > On Thu, Jan 03, 2019 at 05:33:19PM +0100, Michel Dänzer wrote: >> On 2018-12-30 2:00 a.m., Yu Zhao wrote: >>> Userspace may request pitch alignment that is not supported by GPU. >>> Some requests 32, but GPU ignores it and uses d

Re: System with kernel 4.21 hang immediately after start (invalid opcode: 0000 [#1] SMP NOPTI)

2019-01-07 Thread Michel Dänzer
On 2019-01-06 11:26 p.m., Mikhail Gavrilov wrote: > On Sat, 5 Jan 2019 at 01:13, Mikhail Gavrilov > wrote: >> >> On Fri, 4 Jan 2019 at 23:02, Michel Dänzer wrote: >>> >>> On 2019-01-04 4:24 p.m., Alex Deucher wrote: >>>> On Fri, Jan 4, 2019 at 9:52

Re: [PATCH] drm/amdgpu: disable system memory page tables for now

2019-01-07 Thread Michel Dänzer
REATE_CPU_GTT_USWC; > Thanks for taking care of this Christian. Maybe add a reference to at least one of the bug reports about this, but either way: Reviewed-by: Michel Dänzer -- Earthling Michel Dänzer | http://www.amd.com Libre software ent

Re: System with kernel 4.21 hang immediately after start (invalid opcode: 0000 [#1] SMP NOPTI)

2019-01-07 Thread Michel Dänzer
On 2019-01-07 4:21 p.m., Mikhail Gavrilov wrote: > On Mon, 7 Jan 2019 at 15:09, Michel Dänzer wrote: >> >> Is this reproducible with commit 674e78acae0d ("drm/amd/display: Add >> fast path for cursor plane updates") + the patch above? > > Yes. I am sure I am

Re: Adaptive Sync/VRR not working in multi-head with a non-freesync monitor

2019-01-08 Thread Michel Dänzer
g, and page flipping can only be used in Xorg when the application window spans the whole virtual desktop. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer signature.asc Description: OpenPGP digit

Re: [PATCH v6 1/2] drm/amd: validate user pitch alignment

2019-01-08 Thread Michel Dänzer
> > Cc: sta...@vger.kernel.org # v4.2+ > Signed-off-by: Yu Zhao Both patches applied to amd-staging-drm-next (should land in 5.0), thanks! -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast |

Re: [PATCH AUTOSEL 4.20 034/117] drm/amdgpu: Correct get_crtc_scanoutpos behavior when vpos >= vtotal

2019-01-09 Thread Michel Dänzer
27;t needed in older kernels. -- 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

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