[Nouveau] CRTC video scanout position for high precision vblank timestamping?

2010-12-29 Thread Mario Kleiner
Hello all, i have recently implemented some patches to the drm core and to the intel and radeon kms drivers to provide high precision timestamping of vblank intervals and for timestamping of pageflip bufferswap completion. This is needed to properly implement the DRI2 sync swap bits and

Re: [Nouveau] CRTC video scanout position for high precision vblank timestamping?

2010-12-29 Thread Mario Kleiner
On 12/29/2010 10:44 AM, Ben Skeggs wrote: On Wed, 2010-12-29 at 10:37 +0100, Maarten Maathuis wrote: On Wed, Dec 29, 2010 at 10:35 AM, Maarten Maathuismadman2...@gmail.com wrote: On Wed, Dec 29, 2010 at 10:01 AM, Mario Kleiner mario.klei...@tuebingen.mpg.de wrote: Hello all, i have

Re: [Nouveau] CRTC video scanout position for high precision vblank timestamping?

2010-12-29 Thread Mario Kleiner
On 12/29/2010 10:35 AM, Maarten Maathuis wrote: I found these by simply dumping the entire range modesetting related registers. At the time they didn't help me (the issue of swapbuffers remains unsolved on this generation of hardware, it didn't interest me *that* much). I don't know what exactly

[Nouveau] [PATCH] drm/nouveau: Use drm_vblank_count_and_time() for pageflip completion events.

2011-09-02 Thread Mario Kleiner
Emit kms pageflip completion events with proper vblank count and timestamp for the vblank interval in which the pageflip completed. This makes the timestamps and counts consistent with what the OML_sync_control spec defines. Signed-off-by: Mario Kleiner mario.klei...@tuebingen.mpg.de --- drivers

[Nouveau] [PATCH 3/3] dri2: Fixes to swap scheduling, especially for copy-swaps.

2011-09-02 Thread Mario Kleiner
Treats vblank event scheduling for the non-pageflip swap case correctly. Allows vblank controlled swaps for redirected windows. Fixes some corner-cases in OML_sync_control scheduling when divisor and remainder parameters are used. Signed-off-by: Mario Kleiner mario.klei...@tuebingen.mpg.de

[Nouveau] nouveau-ddx: Improvements to DRI2 kms pageflip and swapbuffers support.

2011-09-02 Thread Mario Kleiner
Hi. The following series of three patches provides some improvements and bug fixes to DRI2 swap scheduling, kms pageflipping and pageflip completion timestamping. And a fix for desktop corruption when switching between redirected and unredirected fullscreen windows. These are mostly direct

[Nouveau] [PATCH 2/3] dri2: Update front buffer pixmap and name before exchanging buffers

2011-09-02 Thread Mario Kleiner
for the ati/radeon ddx to fix the same bug there. See thread at: http://lists.x.org/archives/xorg-devel/2011-May/021908.html Signed-off-by: Mario Kleiner mario.klei...@tuebingen.mpg.de --- src/nouveau_dri2.c | 45 ++--- 1 files changed, 42 insertions(+), 3

[Nouveau] [PATCH 1/3] dri2: Implement handling of pageflip completion events.

2011-09-02 Thread Mario Kleiner
of the crtc whose vblank event initially triggered the swap is used, but handler waits for flip completion on all involved crtc's before completing the swap and releasing the old framebuffer. This code is almost identical to the code used in the ati/radeon ddx and intel ddx. Signed-off-by: Mario

Re: [Nouveau] [PATCH 3/3] dri2: Fixes to swap scheduling, especially for copy-swaps.

2011-09-08 Thread Mario Kleiner
On Sep 8, 2011, at 1:00 AM, Francisco Jerez wrote: Thanks for your review. See comments below. Mario Kleiner mario.klei...@tuebingen.mpg.de writes: Treats vblank event scheduling for the non-pageflip swap case correctly. Allows vblank controlled swaps for redirected windows. Fixes some

Re: [Nouveau] [PATCH 1/3] dri2: Implement handling of pageflip completion events.

2011-09-18 Thread Mario Kleiner
, +unsigned int tv_usec, void *event_data); Bool nouveau_dri2_init(ScreenPtr pScreen); void nouveau_dri2_fini(ScreenPtr pScreen); * Mario Kleiner Max Planck Institute for Biological Cybernetics Spemannstr. 38 72076

Re: [Nouveau] [PATCH 3/3] dri2: Fixes to swap scheduling, especially for copy-swaps.

2011-09-18 Thread Mario Kleiner
On 09/09/2011 11:14 PM, Francisco Jerez wrote: Mario Kleinermario.klei...@tuebingen.mpg.de writes: On Sep 8, 2011, at 1:00 AM, Francisco Jerez wrote: Thanks for your review. See comments below. Mario Kleinermario.klei...@tuebingen.mpg.de writes: Treats vblank event scheduling for the

[Nouveau] [Patches][nouveau/kms]: Precise Vblank and pageflip timestamping

2012-02-15 Thread Mario Kleiner
Hi, these are two patches against the nouveau kms driver. The first patch makes sure that pageflip completion events get their vblank count and timestamp from the drm. The second patch from Lucas Stach, here included with his permission, makes sure that the timestamps of vblanks are calculated

[Nouveau] [PATCH 1/2] drm/nouveau: Use drm_vblank_count_and_time() for pageflip completion events.

2012-02-15 Thread Mario Kleiner
Emit kms pageflip completion events with proper vblank count and timestamp for the vblank interval in which the pageflip completed. This makes the timestamps and counts consistent with what the OML_sync_control spec defines. Signed-off-by: Mario Kleiner mario.klei...@tuebingen.mpg.de --- drivers

[Nouveau] [PATCH 2/2] nouveau: implement precise vblank timestamping

2012-02-15 Thread Mario Kleiner
timestamps (compliant to OML_sync_control spec) Kudos to Mario for his many helpful comments and testing. Signed-off-by: Lucas Stach d...@lynxeye.de Reviewed-by: Mario Kleiner mario.klei...@tuebingen.mpg.de Tested-by: Mario Kleiner mario.klei...@tuebingen.mpg.de --- drivers/gpu/drm/nouveau

[Nouveau] [Patches][nouveau/ddx]: Improvements to bufferswap implementation and timestamping

2012-02-15 Thread Mario Kleiner
Hi, here a set of patches against the nouveau-ddx. This is an extended and revised set, based on Francisco Jerez feedback from autumn last year. [1/9] Makes pageflipping work again on X-Server 1.12rc. It apparently stopped working somewhere around Xorg 1.11+. [2/9] Implements handling of

[Nouveau] [PATCH 1/9] dri2: Fix can_exchange() to allow page-flipping on new servers.

2012-02-15 Thread Mario Kleiner
can_exchange() fails on at least Xorg 1.12+. This fixes it in the same way it was fixed in the ati intel ddx. Signed-off-by: Mario Kleiner mario.klei...@tuebingen.mpg.de --- src/nouveau_dri2.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/nouveau_dri2.c b/src

[Nouveau] [PATCH 2/9] dri2: Implement handling of pageflip completion events.

2012-02-15 Thread Mario Kleiner
of the crtc whose vblank event initially triggered the swap is used, but handler waits for flip completion on all involved crtc's before completing the swap and releasing the old framebuffer. This code is almost identical to the code used in the ati/radeon ddx and intel ddx. Signed-off-by: Mario

[Nouveau] [PATCH 3/9] dri2: Add support for DRI2SwapLimit() API.

2012-02-15 Thread Mario Kleiner
-buffering on XOrg 1.12+, 1 for double-buffering on older servers, as we can't change the swap limit there. Signed-off-by: Mario Kleiner mario.klei...@tuebingen.mpg.de --- man/nouveau.man| 11 +++ src/nouveau_dri2.c | 29 +++-- src/nv_const.h |2

[Nouveau] [PATCH 4/9] dri2: Update front buffer pixmap and name before exchanging buffers

2012-02-15 Thread Mario Kleiner
for the ati/radeon ddx to fix the same bug there. See thread at: http://lists.x.org/archives/xorg-devel/2011-May/021908.html Fixes FDO bug #35452. Signed-off-by: Mario Kleiner mario.klei...@tuebingen.mpg.de --- src/nouveau_dri2.c | 45 ++--- 1 files changed, 42

[Nouveau] [PATCH 6/9] dri2: Allow vblank controlled swaps for redirected windows. Part I

2012-02-15 Thread Mario Kleiner
(), glXGetSyncValuesOML(), glXWaitVideoSyncSGI, ... Signed-off-by: Mario Kleiner mario.klei...@tuebingen.mpg.de --- src/nouveau_dri2.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/src/nouveau_dri2.c b/src/nouveau_dri2.c index 719b3bb..6a0800c 100644 --- a/src/nouveau_dri2.c +++ b/src

[Nouveau] [PATCH 7/9] dri2: Allow vblank controlled swaps for redirected windows. Part II

2012-02-15 Thread Mario Kleiner
vblank, at least if sync to vblank for the compositor is on. Signed-off-by: Mario Kleiner mario.klei...@tuebingen.mpg.de --- src/nouveau_dri2.c | 32 +--- 1 files changed, 29 insertions(+), 3 deletions(-) diff --git a/src/nouveau_dri2.c b/src/nouveau_dri2.c index

[Nouveau] [PATCH 8/9] dri2: Reimplement hack for triple-buffering on old X-Servers.

2012-02-15 Thread Mario Kleiner
-servers. Signed-off-by: Mario Kleiner mario.klei...@tuebingen.mpg.de --- man/nouveau.man|6 +- src/nouveau_dri2.c | 32 +--- src/nv_driver.c| 11 ++- 3 files changed, 40 insertions(+), 9 deletions(-) diff --git a/man/nouveau.man b/man/nouveau.man

[Nouveau] [PATCH 9/9] dri2: Fix corner case crash for swaplimit 1

2012-02-15 Thread Mario Kleiner
this throttling is not needed or done. Signed-off-by: Mario Kleiner mario.klei...@tuebingen.mpg.de --- src/nouveau_dri2.c | 26 ++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/src/nouveau_dri2.c b/src/nouveau_dri2.c index f0c7fec..7878a5a 100644 --- a/src

Re: [Nouveau] [PATCH 1/9] dri2: Fix can_exchange() to allow page-flipping on new servers.

2012-02-19 Thread Mario Kleiner
On 02/16/2012 11:04 AM, Michel Dänzer wrote: On Don, 2012-02-16 at 00:45 +0100, Mario Kleiner wrote: can_exchange() fails on at least Xorg 1.12+. This fixes it in the same way it was fixed in the ati intel ddx. Signed-off-by: Mario Kleinermario.klei...@tuebingen.mpg.de --- src/nouveau_dri2

Re: [Nouveau] [PATCH 9/9] dri2: Fix corner case crash for swaplimit 1

2012-02-19 Thread Mario Kleiner
On 02/16/2012 10:46 AM, Michel Dänzer wrote: On Don, 2012-02-16 at 00:45 +0100, Mario Kleiner wrote: If a swaplimit 1 is set on a server which supports the swaplimit api (XOrg 1.12.0+), the following can happen: 1. Client calls glXSwapBuffersMscOML() with a swap target 1 vblank

Re: [Nouveau] [Patches][nouveau/kms]: Precise Vblank and pageflip timestamping v2

2012-02-21 Thread Mario Kleiner
On Feb 20, 2012, at 8:24 AM, Lucas Stach wrote: Just updated versions of the patches send by Mario Kleiner. This ones are rebased on top of the nouveau tree and updated according to the review feedback. This time hopefully the right ones. Regards, Lucas Ben, thanks for the feedback

Re: [Nouveau] [PATCH 1/9] dri2: Fix can_exchange() to allow page-flipping on new servers.

2012-02-21 Thread Mario Kleiner
On 02/20/2012 11:27 AM, Michel Dänzer wrote: On Mon, 2012-02-20 at 05:59 +0100, Mario Kleiner wrote: On 02/16/2012 11:04 AM, Michel Dänzer wrote: On Don, 2012-02-16 at 00:45 +0100, Mario Kleiner wrote: can_exchange() fails on at least Xorg 1.12+. This fixes it in the same way it was fixed

[Nouveau] [PATCH 01/10] dri2: Fix can_exchange() to allow page-flipping on more mesa versions.

2012-03-01 Thread Mario Kleiner
. Tested for screen DefaultDepth 24 and also 30 bits (for RGB10 framebuffers) on NV-50. The problem was fixed in the same way in the ati intel ddx. Signed-off-by: Mario Kleiner mario.klei...@tuebingen.mpg.de --- src/nouveau_dri2.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

[Nouveau] [PATCH 10/10] dri2: Testpatch: Fix corner case crash but not the problem.

2012-03-01 Thread Mario Kleiner
, so not useful in practice. Signed-off-by: Mario Kleiner mario.klei...@tuebingen.mpg.de --- src/nouveau_dri2.c | 57 +++- 1 files changed, 34 insertions(+), 23 deletions(-) diff --git a/src/nouveau_dri2.c b/src/nouveau_dri2.c index 7878a5a..eb008c9

Re: [Nouveau] [Patches][nouveau/ddx]: Improvements to bufferswap implementation and timestamping

2012-03-01 Thread Mario Kleiner
On 02/29/2012 08:17 AM, Ben Skeggs wrote: On Thu, 2012-02-16 at 00:45 +0100, Mario Kleiner wrote: Hi, Hey Mario, What's your plan with this patchset? Do you intend on taking Michel's comments into account? CC'ing Francisco as he had some comments on IRC. I'd like to get this all sorted

Re: [Nouveau] [PATCH 01/10] dri2: Fix can_exchange() to allow page-flipping on more mesa versions.

2012-03-02 Thread Mario Kleiner
On Mar 1, 2012, at 9:37 PM, Daniel Stone wrote: Hi, On 1 March 2012 18:11, Mario Kleiner mario.klei...@tuebingen.mpg.de wrote: can_exchange() returns false and thereby prevents page flipping on some drawables where page flipping would work fine. This due to non-matching drawable depths

[Nouveau] Fix for potential nouveau-ddx/x-server crash on XOrg 1.12+

2012-10-09 Thread Mario Kleiner
Hi all, the following patch fixes a race-condition in the nouveau ddx which caused frequent x-server crashes for at least 1 user under some loads when OpenGL triple-buffering is enabled, which it is by default on XOrg 1.12 and later. As a side effect, it provides a small optimization for the

[Nouveau] [PATCH] dri2: Fix potential race and crash for swap at next vblank.

2012-10-09 Thread Mario Kleiner
on the nouveau mailing list at 12th July 2012 and for testing this patch. Reported-by: Anssi Hannula anssi.hann...@iki.fi Tested-by: Anssi Hannula anssi.hann...@iki.fi Signed-off-by: Mario Kleiner mario.klei...@tuebingen.mpg.de --- src/nouveau_dri2.c | 51

Re: [Nouveau] [PATCH] dri2: Fix potential race and crash for swap at next vblank.

2012-10-19 Thread Mario Kleiner
Ping :) -mario On 09.10.12 09:06, Mario Kleiner wrote: This fixes a potential race + crash that wasn't properly handled by commit 248de8cdbd6d0bc062633b49896fa4791148cd3b and happened at least on one users machine. That commit wrongly assumed no special action would be needed for swaps at next

[Nouveau] [PATCH] Take shift in crtc positions for ZaphodHeads configs into account.

2015-06-27 Thread Mario Kleiner
crtc is hardwired to the external DP connector, resulting in a failure where dual-display on single-x-screen works fine, but assigning each output to a separate x-screen via ZaphodHeads fails due to the mismatched encoder-possible_crtcs bitmasks. This patch fixes the problem. Signed-off-by: Mario

[Nouveau] [PATCH] Add Option DRI to allow selection of maximum DRI level.

2015-07-29 Thread Mario Kleiner
-off-by: Mario Kleiner mario.kleiner...@gmail.com Cc: Ilia Mirkin imir...@alum.mit.edu Cc: Emil Velikov emil.l.veli...@gmail.com Cc: Martin Peres martin.pe...@free.fr Cc: Ben Skeggs bske...@redhat.com --- man/nouveau.man | 6 ++ src/nouveau_dri2.c | 11 ++- src/nouveau_glamor.c

[Nouveau] [PATCH 2/2] Add Option DRI to allow selection of maximum DRI level. (v2)

2015-07-29 Thread Mario Kleiner
fixed up Bool return type of nouveau_present_init(). Signed-off-by: Mario Kleiner mario.kleiner...@gmail.com Cc: Ilia Mirkin imir...@alum.mit.edu Cc: Emil Velikov emil.l.veli...@gmail.com Cc: Martin Peres martin.pe...@free.fr Cc: Ben Skeggs bske...@redhat.com --- man/nouveau.man | 6

[Nouveau] [PATCH 1/2] present: Fixup return type of nouveau_present_init()

2015-07-29 Thread Mario Kleiner
Make it a Bool consistently, as declared in header. Reported-by: Ilia Mirkin imir...@alum.mit.edu Signed-off-by: Mario Kleiner mario.kleiner...@gmail.com --- src/nouveau_present.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nouveau_present.c b/src

Re: [Nouveau] [PATCH] Take shift in crtc positions for ZaphodHeads configs into account.

2015-08-06 Thread Mario Kleiner
. nouveau-kms seems to be the only one that does something clever with that bitmask, so needs a bit of special treatment. On Sat, Jun 27, 2015 at 8:33 PM, Mario Kleiner mario.kleiner...@gmail.com wrote: In multi-x-screen ZaphodHeads configurations, there isn't a one-to-one mapping of kernel provided

Re: [Nouveau] [PATCH] Add Option DRI3 to allow to disable DRI3 under EXA.

2015-07-13 Thread Mario Kleiner
/intel.man#n68 On Mon, Jun 29, 2015 at 11:30 PM, Mario Kleiner mario.kleiner...@gmail.com wrote: X-Server versions older than 1.16.3 have bugs in their DRI3/Present implementation which impair nouveau, so it is better to stick to good old DRI2 by default on such servers. E.g., page flipping doesn't

Re: [Nouveau] [PATCH] Add Option DRI3 to allow to disable DRI3 under EXA.

2015-07-19 Thread Mario Kleiner
On 07/18/2015 01:09 PM, Dave Airlie wrote: We can disable it by default on exa - intel and amd/radeon drivers also disable by default. However, on gpus = maxwell only glamor accel is supported and glamor on nouveau is either dri3/present or no hw accel at all afaics. You probably saw my

Re: [Nouveau] [PATCH] Add Option DRI3 to allow to disable DRI3 under EXA.

2015-07-14 Thread Mario Kleiner
On 07/14/2015 05:26 PM, Ilia Mirkin wrote: On Mon, Jul 13, 2015 at 11:43 PM, Mario Kleiner mario.kleiner...@gmail.com wrote: On 07/07/2015 09:51 PM, Ilia Mirkin wrote: Lastly, from some discussions with ajax on IRC, it appears that DRI3 is half-baked at best wrt sync between server and client

Re: [Nouveau] [PATCH] drm/nouveau: Fix pre-nv50 pageflip events

2015-11-09 Thread Mario Kleiner
ario On 11/06/2015 06:19 PM, Thierry Reding wrote: Cc += Mario Kleiner, Mario, can you take a look whether this proposed solution makes sense and fixes the issues you were seeing back when you posted the patch in commit: commit af4870e406126b7ac0ae7c7ce5751f25ebe60f28 Author: Mario Kleiner

Re: [Nouveau] [PATCH] drm/nouveau: Fix pre-nv50 pageflip events (v2)

2015-11-09 Thread Mario Kleiner
On 11/09/2015 02:02 PM, Ilia Mirkin wrote: On Mon, Nov 9, 2015 at 7:57 AM, Mario Kleiner <mario.kleiner...@gmail.com> wrote: From: Daniel Vetter <daniel.vet...@ffwll.ch> Apparently pre-nv50 pageflip events happen before the actual vblank period. Therefore that functionality got s

[Nouveau] [PATCH] drm/nouveau: Fix pre-nv50 pageflip events (v2)

2015-11-09 Thread Mario Kleiner
From: Daniel Vetter <daniel.vet...@ffwll.ch> Apparently pre-nv50 pageflip events happen before the actual vblank period. Therefore that functionality got semi-disabled in commit af4870e406126b7ac0ae7c7ce5751f25ebe60f28 Author: Mario Kleiner <mario.kleiner...@gmail.com> Date: Tue

[Nouveau] [PATCH] drm/nouveau: Fix pre-nv50 pageflip events (v3)

2015-11-10 Thread Mario Kleiner
From: Daniel Vetter <daniel.vet...@ffwll.ch> Apparently pre-nv50 pageflip events happen before the actual vblank period. Therefore that functionality got semi-disabled in commit af4870e406126b7ac0ae7c7ce5751f25ebe60f28 Author: Mario Kleiner <mario.kleiner...@gmail.com> Date: Tue

Re: [Nouveau] [PATCH] drm/nouveau: Fix pre-nv50 pageflip events (v3)

2015-11-10 Thread Mario Kleiner
On 11/10/2015 05:00 PM, Thierry Reding wrote: On Tue, Nov 10, 2015 at 03:54:52PM +0100, Mario Kleiner wrote: From: Daniel Vetter <daniel.vet...@ffwll.ch> Apparently pre-nv50 pageflip events happen before the actual vblank period. Therefore that functionality got semi-disabled in

Re: [Nouveau] [PATCH] Take shift in crtc positions for ZaphodHeads configs into account.

2015-11-14 Thread Mario Kleiner
with ZaphodHeads. Any objections if I just push this out? On Sat, Jun 27, 2015 at 8:33 PM, Mario Kleiner <mario.kleiner...@gmail.com> wrote: In multi-x-screen ZaphodHeads configurations, there isn't a one-to-one mapping of kernel provided drmmode crtc index to the index of the corresponding xf

Re: [Nouveau] [PATCH] drm/nouveau: Fix pre-nv50 pageflip events

2015-11-07 Thread Mario Kleiner
Sorry for the late reply! Looking into it... -mario On 11/06/2015 06:19 PM, Thierry Reding wrote: Cc += Mario Kleiner, Mario, can you take a look whether this proposed solution makes sense and fixes the issues you were seeing back when you posted the patch in commit: commit

Re: [Nouveau] [PATCH] drm/nouveau: Fix pre-nv50 pageflip events

2015-12-01 Thread Mario Kleiner
eriod. Therefore that functionality got semi-disabled in commit af4870e406126b7ac0ae7c7ce5751f25ebe60f28 Author: Mario Kleiner <mario.kleiner...@gmail.com> Date: Tue May 13 00:42:08 2014 +0200 drm/nouveau/kms/nv04-nv40: fix pageflip events via special case. Unfortunately that hack g

Re: [Nouveau] [PATCH 2/2] drm/nouveau: Queue hpd_work on (runtime) resume

2017-01-23 Thread Mario Kleiner
On 11/21/2016 05:50 PM, Hans de Goede wrote: We need to call drm_helper_hpd_irq_event() on resume to properly detect monitor connection / disconnection on some laptops, use hpd_work for this to avoid deadlocks. Hi, this seems to introduce a hang of nouveau in 4.10-rc if the gpu is runtime

[Nouveau] [PATCH] drm/nouveau/kms/nv50: Fix atomic pageflip events.

2016-11-22 Thread Mario Kleiner
-off-by: Mario Kleiner <mario.kleiner...@gmail.com> Cc: Ben Skeggs <bske...@redhat.com> --- drivers/gpu/drm/nouveau/nv50_display.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/nouveau/nv50_display.c b/drivers/gpu/drm/nouveau/nv50_display.c index a9855a4..ad

[Nouveau] [PATCH] drm/nouveau/kms: Increase max retries in scanout position queries.

2017-04-23 Thread Mario Kleiner
of uptime in a hard to reproduce manner. Signed-off-by: Mario Kleiner <mario.kleiner...@gmail.com> Cc: Ben Skeggs <bske...@redhat.com> --- drivers/gpu/drm/nouveau/nouveau_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_

[Nouveau] [PATCH] drm/nouveau/fb/gf100-: Fix 32 bit wraparound in new ram detection

2017-04-28 Thread Mario Kleiner
A missing u64 cast causes a 32-Bit wraparound from 4096 MiB to 0 MiB and therefore total 0 MiB VRAM detected if card has 4096 Mib per FBP. Signed-off-by: Mario Kleiner <mario.kleiner...@gmail.com> --- drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c | 2 +- 1 file changed, 1 insertion

[Nouveau] [PATCH 2/4] drm/radeon: Allow vblank_disable_immediate.

2017-06-20 Thread Mario Kleiner
(or echo 0 > /sys/module/drm/parameters/vblankoffdelay) would keep vblank irqs permanently on to approximate old behavior. Signed-off-by: Mario Kleiner <mario.kleiner...@gmail.com> Cc: Alex Deucher <alexander.deuc...@amd.com> Cc: Michel Dänzer <michel.daen...@amd.com> --- d

[Nouveau] [PATCH 1/4] drm/vc4: Allow vblank_disable_immediate on non-fw-kms.

2017-06-20 Thread Mario Kleiner
offdelay=0 would keep vblank irqs on to approximate old behavior. Signed-off-by: Mario Kleiner <mario.kleiner...@gmail.com> Cc: Eric Anholt <e...@anholt.net> --- drivers/gpu/drm/vc4/vc4_kms.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/vc4/vc4_kms.c b/drivers

[Nouveau] Enable vblank_disable_immediate on more drivers.

2017-06-20 Thread Mario Kleiner
This patch series sets dev->vblank_disable_immediate = true on radeon/amdgpu-kms, nouveau-kms for nv50+, and vc4 for the real kms driver (as opposed to dispmanx firmware backed kms). All the drivers should be ready in theory, given their implementation, for fast vblank disable/enable. In

[Nouveau] [PATCH 3/4] drm/amdgpu: Allow vblank_disable_immediate.

2017-06-20 Thread Mario Kleiner
drm.vblankoffdelay=0 (or echo 0 > /sys/module/drm/parameters/vblankoffdelay) would keep vblank irqs permanently on to approximate old behavior. Signed-off-by: Mario Kleiner <mario.kleiner...@gmail.com> Cc: Alex Deucher <alexander.deuc...@amd.com> Cc: Michel Dänzer <michel.daen...@amd.com

[Nouveau] [PATCH 4/4] drm/nouveau/kms/nv50-: Allow vblank_disable_immediate.

2017-06-20 Thread Mario Kleiner
ith kernel cmdline option drm.vblankoffdelay=0 (or echo 0 > /sys/module/drm/parameters/vblankoffdelay) would keep vblank irqs permanently on to approximate old behavior. Signed-off-by: Mario Kleiner <mario.kleiner...@gmail.com> Cc: Ben Skeggs <bske...@redhat.com> --- drivers/gpu/drm/n

Re: [Nouveau] [PATCH 1/4] drm/vc4: Allow vblank_disable_immediate on non-fw-kms.

2017-06-21 Thread Mario Kleiner
On 06/21/2017 06:19 PM, Eric Anholt wrote: Mario Kleiner <mario.kleiner...@gmail.com> writes: With instantaneous high precision vblank timestamping that updates at leading edge of vblank, the emulated "hw vblank counter" from vblank timestamping which increments at leadin

[Nouveau] [PATCH] Fix colormap handling at screen depth 30. (v2)

2018-06-12 Thread Mario Kleiner
at > 8 bpc. This disables color palette handling on such servers at > 8 bpc, but still keeps RandR gamma table handling intact. Tested on 1.19.6 and 1.20.0 to do the right thing. Signed-off-by: Mario Kleiner --- src/nv_driver.c | 11 +++ 1 file changed, 7 insertions(+),

Re: [Nouveau] Nouveau Digest, Vol 131, Issue 3

2018-04-30 Thread Mario Kleiner
On Sat, Apr 28, 2018 at 7:22 PM, Ilia Mirkin <imir...@alum.mit.edu> wrote: > On Thu, Mar 8, 2018 at 11:29 PM, Ilia Mirkin <imir...@alum.mit.edu> wrote: >> On Mon, Mar 5, 2018 at 7:33 AM, Ilia Mirkin <imir...@alum.mit.edu> wrote: >>> On Mon, Mar 5, 2018 at 1:17

[Nouveau] [PATCH] Fix colormap handling at screen depth 30.

2018-02-28 Thread Mario Kleiner
equipment to make sure identity gamma ramps actually are identity mappings at the output. Signed-off-by: Mario Kleiner <mario.kleiner...@gmail.com> --- src/nv_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nv_driver.c b/src/nv_driver.c index 32062eb..4fcd4c1

Re: [Nouveau] nouveau 30bpp / deep color status

2018-03-08 Thread Mario Kleiner
Cc'ing mesa-dev, which was left out. On 03/05/2018 01:40 PM, Ilia Mirkin wrote: On Mon, Mar 5, 2018 at 2:25 AM, Mario Kleiner <mario.kleiner...@gmail.com> wrote: On 02/05/2018 12:50 AM, Ilia Mirkin wrote: In case anyone's curious about 30bpp framebuffer support, here's the current

Re: [Nouveau] Nouveau Digest, Vol 131, Issue 3

2018-03-04 Thread Mario Kleiner
On 03/03/2018 12:59 AM, Ilia Mirkin wrote: On Fri, Mar 2, 2018 at 6:46 PM, Mario Kleiner <mario.kleiner...@gmail.com> wrote: On 03/02/2018 11:29 PM, Ilia Mirkin wrote: OK, so even if you're passing 1024 to xf86HandleColormaps, gamma_set still only gets called with a 256-entry LUT?

Re: [Nouveau] nouveau 30bpp / deep color status

2018-03-04 Thread Mario Kleiner
On 02/05/2018 12:50 AM, Ilia Mirkin wrote: In case anyone's curious about 30bpp framebuffer support, here's the current status: Kernel: Ben and I have switched the code to using a 256-based LUT for Kepler+, and I've also written a patch to cause the addfb ioctl to use the proper format. You

Re: [Nouveau] Nouveau Digest, Vol 131, Issue 3

2018-03-02 Thread Mario Kleiner
On 03/02/2018 11:29 PM, Ilia Mirkin wrote: On Fri, Mar 2, 2018 at 5:16 PM, Mario Kleiner <mario.kleiner...@gmail.com> wrote: On 03/01/2018 07:21 PM, nouveau-requ...@lists.freedesktop.org wrote: Message: 1 Date: Thu, 1 Mar 2018 08:15:55 -0500 From: Ilia Mirkin <imir...@alum.mit.edu&g

Re: [Nouveau] Nouveau Digest, Vol 131, Issue 3

2018-03-02 Thread Mario Kleiner
On 03/01/2018 07:21 PM, nouveau-requ...@lists.freedesktop.org wrote: Message: 1 Date: Thu, 1 Mar 2018 08:15:55 -0500 From: Ilia Mirkin <imir...@alum.mit.edu> To: Mario Kleiner <mario.kleiner...@gmail.com> Cc: nouveau <nouveau@lists.freedesktop.org> Subject: Re: [Nouveau] [P

[Nouveau] Invitation: XDC 2023 A Corunha Spain @ Tue Oct 17 - Thu Oct 19, 2023 (nouveau@lists.freedesktop.org)

2023-04-17 Thread mario . kleiner . de
BEGIN:VCALENDAR PRODID:-//Google Inc//Google Calendar 70.9054//EN VERSION:2.0 CALSCALE:GREGORIAN METHOD:REQUEST BEGIN:VEVENT DTSTART;VALUE=DATE:20231017 DTEND;VALUE=DATE:20231020 DTSTAMP:20230417T170311Z ORGANIZER;CN=mario.kleiner...@gmail.com:mailto:mario.kleiner...@gmail.com

[Nouveau] Canceled event: XDC 2023 A Corunha Spain @ Tue Oct 17 - Thu Oct 19, 2023 (nouveau@lists.freedesktop.org)

2023-04-17 Thread mario . kleiner . de
-...@lists.freedesktop.org ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;CN=No uveau Dev;X-NUM-GUESTS=0:mailto:nouveau@lists.freedesktop.org ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;CN=mario. kleiner...@gmail.com;X-NUM-GUESTS=0:mailto:mario.kleiner