All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nv50: fix crash in NV50SyncToVBlank
       [not found] ` <20120415010821.GA797-OI9uyE9O0yo@public.gmane.org>
@ 2012-04-15 11:46   ` Marcin Slusarz
       [not found]     ` <20120415114642.GA2838-OI9uyE9O0yo@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Marcin Slusarz @ 2012-04-15 11:46 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

Regression from "WIP: port to new libdrm".
---
 src/nv50_accel.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/nv50_accel.c b/src/nv50_accel.c
index 66d6cb8..7c640f2 100644
--- a/src/nv50_accel.c
+++ b/src/nv50_accel.c
@@ -44,6 +44,9 @@ NV50SyncToVBlank(PixmapPtr ppix, BoxPtr box)
 	if (!crtcs)
 		return;
 
+	if (!PUSH_SPACE(push, 10))
+		return;
+
 	BEGIN_NV04(push, SUBC_NVSW(0x0060), 2);
 	PUSH_DATA (push, pNv->vblank_sem->handle);
 	PUSH_DATA (push, 0);
-- 
1.7.8.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] nv50: fix crash in NV50SyncToVBlank
       [not found]     ` <20120415114642.GA2838-OI9uyE9O0yo@public.gmane.org>
@ 2012-05-03 13:08       ` Marcin Slusarz
       [not found]         ` <20120503130856.GA8541-OI9uyE9O0yo@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Marcin Slusarz @ 2012-05-03 13:08 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

On Sun, Apr 15, 2012 at 01:46:42PM +0200, Marcin Slusarz wrote:
> Regression from "WIP: port to new libdrm".
> ---
>  src/nv50_accel.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/src/nv50_accel.c b/src/nv50_accel.c
> index 66d6cb8..7c640f2 100644
> --- a/src/nv50_accel.c
> +++ b/src/nv50_accel.c
> @@ -44,6 +44,9 @@ NV50SyncToVBlank(PixmapPtr ppix, BoxPtr box)
>  	if (!crtcs)
>  		return;
>  
> +	if (!PUSH_SPACE(push, 10))
> +		return;
> +
>  	BEGIN_NV04(push, SUBC_NVSW(0x0060), 2);
>  	PUSH_DATA (push, pNv->vblank_sem->handle);
>  	PUSH_DATA (push, 0);
> -- 

Nobody uses "sync to vblank"? It's crashy as hell without this patch...

Marcin

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] nv50: fix crash in NV50SyncToVBlank
       [not found]         ` <20120503130856.GA8541-OI9uyE9O0yo@public.gmane.org>
@ 2012-05-03 16:25           ` Christoph Bumiller
  0 siblings, 0 replies; 3+ messages in thread
From: Christoph Bumiller @ 2012-05-03 16:25 UTC (permalink / raw)
  To: Marcin Slusarz; +Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

On 05/03/2012 03:08 PM, Marcin Slusarz wrote:
> On Sun, Apr 15, 2012 at 01:46:42PM +0200, Marcin Slusarz wrote:
>> Regression from "WIP: port to new libdrm".
>> ---
>>  src/nv50_accel.c |    3 +++
>>  1 files changed, 3 insertions(+), 0 deletions(-)
>>
>> diff --git a/src/nv50_accel.c b/src/nv50_accel.c
>> index 66d6cb8..7c640f2 100644
>> --- a/src/nv50_accel.c
>> +++ b/src/nv50_accel.c
>> @@ -44,6 +44,9 @@ NV50SyncToVBlank(PixmapPtr ppix, BoxPtr box)
>>  	if (!crtcs)
>>  		return;
>>  
>> +	if (!PUSH_SPACE(push, 10))
>> +		return;
>> +
>>  	BEGIN_NV04(push, SUBC_NVSW(0x0060), 2);
>>  	PUSH_DATA (push, pNv->vblank_sem->handle);
>>  	PUSH_DATA (push, 0);
>> -- 
> 
> Nobody uses "sync to vblank"? It's crashy as hell without this patch...
> 

Apparently not ... I certainly never enable it because I couldn't find
the switch that doesn't require restarting the X server yet (granted, I
haven't looked besides noticing driconf doesn't do it).

Patch pushed, thank you.


> Marcin
> _______________________________________________
> Nouveau mailing list
> Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
> http://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-05-03 16:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20120415010821.GA797@joi.lan>
     [not found] ` <20120415010821.GA797-OI9uyE9O0yo@public.gmane.org>
2012-04-15 11:46   ` [PATCH] nv50: fix crash in NV50SyncToVBlank Marcin Slusarz
     [not found]     ` <20120415114642.GA2838-OI9uyE9O0yo@public.gmane.org>
2012-05-03 13:08       ` Marcin Slusarz
     [not found]         ` <20120503130856.GA8541-OI9uyE9O0yo@public.gmane.org>
2012-05-03 16:25           ` Christoph Bumiller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.