Re: [Nouveau] Fix for vblank on nvc0

2012-11-15 Thread Sven Joachim
On 2012-11-12 22:52 +0100, Maarten Lankhorst wrote:

 Op 12-11-12 22:30, Kelly Doran schreef:
 I had Sven test this patch... he said it works.  I think chipset
 number test was executing code that we thought was only either 0x50 or
 0xc0, but was actually more specific with things like 0x92.

 Oh right vblank is busted anyway... needs to be nv_device(priv-)card_type == 
 NV_50 to work.

 Your patch is the correct fix.

The patch has landed in the nouveau/master branch now, but not in
drm-nouveau-fixes where it is also needed.

Cheers,
   Sven
___
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau


Re: [Nouveau] Fix for vblank on nvc0

2012-11-12 Thread Kelly Doran
Okay I have added two patches, one of them should fix the problem...

On Sun, Nov 11, 2012 at 12:51 PM, Kelly Doran kel.p.do...@gmail.com wrote:
 I was under the impression that the else block was only executed for nvc0
 code, but maybe the nv92 code was executing it too, so that may need an
 extra code block to work again.  Otherwise the bar flush in the nv50 section
 is causing the problems...  I can write up some patches later if you want
 but I don't have any cards from these chipsets to test with, and I gotta go
 for the afternoon.


 On Sun, Nov 11, 2012 at 12:35 PM, Marcin Slusarz marcin.slus...@gmail.com
 wrote:

 On Sun, Nov 11, 2012 at 07:26:17PM +0100, Marcin Slusarz wrote:
  On Tue, Nov 06, 2012 at 07:30:00PM +0100, Maarten Lankhorst wrote:
  
  
   Op 06-11-12 15:48, Kelly Doran schreef:
The vblank on nvc0 was not working correctly and would freeze X, I
managed
to track it down and fix it with some help from m.b.lankhorst, see
https://bugs.freedesktop.org/show_bug.cgi?id=56692 for details.
   
   Reviewed-by: Maarten Lankhorst maarten.lankho...@canonical.com
  
   I recommended the bar flush since nvd0 does as well, and there might
   be a small race
   otherwise.
  
   Can this still get in before final 3.7 release?
 
  This patch breaks vblank here (nv92) completely.
 
  [ 6879.200427] Console: switching to colour VGA+ 80x25
  [ 6879.202884] drm: unregistered panic notifier
  [ 6879.334278] [TTM] Finalizing pool allocator
  [ 6879.334518] [TTM] Finalizing DMA pool allocator
  [ 6879.334765] [TTM] Zone  kernel: Used memory at exit: 0 kiB
  [ 6879.335004] [TTM] Zone   dma32: Used memory at exit: 0 kiB
  [ 6879.340472] [drm] Module unloaded
  [ 6879.397744] [drm] Initialized drm 1.1.0 20060810
  [ 6879.408149] nouveau  [  DEVICE][:02:00.0] BOOT0  : 0x092a00a2
  [ 6879.408401] nouveau  [  DEVICE][:02:00.0] Chipset: G92 (NV92)
  [ 6879.408641] nouveau  [  DEVICE][:02:00.0] Family : NV50
  [ 6879.409752] nouveau  [   VBIOS][:02:00.0] checking PRAMIN for
  image...
  [ 6879.409997] nouveau  [   VBIOS][:02:00.0] ... signature not found
  [ 6879.410236] nouveau  [   VBIOS][:02:00.0] checking PROM for
  image...
  [ 6879.549018] nouveau  [   VBIOS][:02:00.0] ... appears to be valid
  [ 6879.549259] nouveau  [   VBIOS][:02:00.0] using image from PROM
  [ 6879.549640] nouveau  [   VBIOS][:02:00.0] BIT signature found
  [ 6879.549879] nouveau  [   VBIOS][:02:00.0] version 62.92.63.00
  [ 6879.570275] nouveau  [ MXM][:02:00.0] no VBIOS data, nothing
  to do
  [ 6879.572488] nouveau  [ PFB][:02:00.0] RAM type: GDDR3
  [ 6879.572726] nouveau  [ PFB][:02:00.0] RAM size: 512 MiB
  [ 6879.572964] nouveau  [ PFB][:02:00.0]ZCOMP: 4032 tags
  [ 6879.597652] [TTM] Zone  kernel: Available graphics memory: 3047140
  kiB
  [ 6879.597892] [TTM] Zone   dma32: Available graphics memory: 2097152
  kiB
  [ 6879.598130] [TTM] Initializing pool allocator
  [ 6879.598367] [TTM] Initializing DMA pool allocator
  [ 6879.602860] nouveau  [ DRM] VRAM: 512 MiB
  [ 6879.603102] nouveau  [ DRM] GART: 512 MiB
  [ 6879.603339] nouveau  [ DRM] BIT BIOS found
  [ 6879.603575] nouveau  [ DRM] Bios version 62.92.63.00
  [ 6879.603813] nouveau  [ DRM] TMDS table version 2.0
  [ 6879.604050] nouveau  [ DRM] DCB version 4.0
  [ 6879.604287] nouveau  [ DRM] DCB outp 00: 02000300 0028
  [ 6879.604524] nouveau  [ DRM] DCB outp 01: 01000302 00020030
  [ 6879.604763] nouveau  [ DRM] DCB outp 02: 04011310 0028
  [ 6879.605000] nouveau  [ DRM] DCB outp 03: 02011312 00020030
  [ 6879.605238] nouveau  [ DRM] DCB conn 00: 1030
  [ 6879.605516] nouveau  [ DRM] DCB conn 01: 2130
  [ 6879.648012] [drm] Supports vblank timestamp caching Rev 1
  (10.10.2010).
  [ 6879.648257] [drm] No driver support for vblank timestamp query.
  [ 6879.648708] nouveau  [ DRM] 1 available performance level(s)
  [ 6879.648953] nouveau  [ DRM] 3: core 650MHz shader 1625MHz memory
  1000MHz voltage 1050mV fanspeed 100%
  [ 6879.649391] nouveau  [ DRM] c: core 399MHz shader 810MHz memory
  399MHz voltage 1050mV fanspeed 34%
  [ 6879.693947] nouveau  [ DRM] MM: using CRYPT for buffer copies
  [ 6879.791680] nouveau  [ DRM] allocated 1920x1080 fb: 0x7, bo
  880018f20800
  [ 6879.792175] fbcon: nouveaufb (fb0) is primary device
  [ 6879.850216] Console: switching to colour frame buffer device 240x67
  [ 6879.897075] fb0: nouveaufb frame buffer device
  [ 6879.897075] drm: registered panic notifier
  [ 6879.897078] [drm] Initialized nouveau 1.1.0 20120801 for :02:00.0
  on minor 0
  I'm starting glxgears here
  xorg hangs, with occasional mouse movement
  [ 6907.054696] nouveau  [   PFIFO][:02:00.0] unknown intr
  0x0040, ch 2
  pkill glxgears from fbcon
  [ 6963.987969] nouveau E[   15318] failed to idle channel 0x
  xorg still hangs
  [ 7034.713069] nouveau E[  

Re: [Nouveau] Fix for vblank on nvc0

2012-11-12 Thread Kelly Doran
I had Sven test this patch... he said it works.  I think chipset
number test was executing code that we thought was only either 0x50 or
0xc0, but was actually more specific with things like 0x92.

On Sun, Nov 11, 2012 at 2:25 PM, Maarten Lankhorst
maarten.lankho...@canonical.com wrote:
 Op 11-11-12 19:35, Marcin Slusarz schreef:
 On Sun, Nov 11, 2012 at 07:26:17PM +0100, Marcin Slusarz wrote:
 On Tue, Nov 06, 2012 at 07:30:00PM +0100, Maarten Lankhorst wrote:

 Op 06-11-12 15:48, Kelly Doran schreef:
 The vblank on nvc0 was not working correctly and would freeze X, I managed
 to track it down and fix it with some help from m.b.lankhorst, see
 https://bugs.freedesktop.org/show_bug.cgi?id=56692 for details.

 Reviewed-by: Maarten Lankhorst maarten.lankho...@canonical.com

 I recommended the bar flush since nvd0 does as well, and there might be a 
 small race
 otherwise.

 Can this still get in before final 3.7 release?
 This patch breaks vblank here (nv92) completely.
 Does removing the bar flush help?

 ~Maarte


vblank-fix1.patch
Description: Binary data
___
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau


Re: [Nouveau] Fix for vblank on nvc0

2012-11-12 Thread Maarten Lankhorst
Op 12-11-12 22:30, Kelly Doran schreef:
 I had Sven test this patch... he said it works.  I think chipset
 number test was executing code that we thought was only either 0x50 or
 0xc0, but was actually more specific with things like 0x92.

Oh right vblank is busted anyway... needs to be nv_device(priv-)card_type == 
NV_50 to work.

Your patch is the correct fix.

~Maarten
___
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau


Re: [Nouveau] Fix for vblank on nvc0

2012-11-12 Thread Marcin Slusarz
On Mon, Nov 12, 2012 at 06:14:05AM -0600, Kelly Doran wrote:
 Okay I have added two patches, one of them should fix the problem...
 

vblank-fix1.patch works, thanks.

Marcin
___
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau


Re: [Nouveau] Fix for vblank on nvc0

2012-11-11 Thread Marcin Slusarz
On Tue, Nov 06, 2012 at 07:30:00PM +0100, Maarten Lankhorst wrote:
 
 
 Op 06-11-12 15:48, Kelly Doran schreef:
  The vblank on nvc0 was not working correctly and would freeze X, I managed
  to track it down and fix it with some help from m.b.lankhorst, see
  https://bugs.freedesktop.org/show_bug.cgi?id=56692 for details.
 
 Reviewed-by: Maarten Lankhorst maarten.lankho...@canonical.com
 
 I recommended the bar flush since nvd0 does as well, and there might be a 
 small race
 otherwise.
 
 Can this still get in before final 3.7 release?

This patch breaks vblank here (nv92) completely.

[ 6879.200427] Console: switching to colour VGA+ 80x25
[ 6879.202884] drm: unregistered panic notifier
[ 6879.334278] [TTM] Finalizing pool allocator
[ 6879.334518] [TTM] Finalizing DMA pool allocator
[ 6879.334765] [TTM] Zone  kernel: Used memory at exit: 0 kiB
[ 6879.335004] [TTM] Zone   dma32: Used memory at exit: 0 kiB
[ 6879.340472] [drm] Module unloaded
[ 6879.397744] [drm] Initialized drm 1.1.0 20060810
[ 6879.408149] nouveau  [  DEVICE][:02:00.0] BOOT0  : 0x092a00a2
[ 6879.408401] nouveau  [  DEVICE][:02:00.0] Chipset: G92 (NV92)
[ 6879.408641] nouveau  [  DEVICE][:02:00.0] Family : NV50
[ 6879.409752] nouveau  [   VBIOS][:02:00.0] checking PRAMIN for image...
[ 6879.409997] nouveau  [   VBIOS][:02:00.0] ... signature not found
[ 6879.410236] nouveau  [   VBIOS][:02:00.0] checking PROM for image...
[ 6879.549018] nouveau  [   VBIOS][:02:00.0] ... appears to be valid
[ 6879.549259] nouveau  [   VBIOS][:02:00.0] using image from PROM
[ 6879.549640] nouveau  [   VBIOS][:02:00.0] BIT signature found
[ 6879.549879] nouveau  [   VBIOS][:02:00.0] version 62.92.63.00
[ 6879.570275] nouveau  [ MXM][:02:00.0] no VBIOS data, nothing to do
[ 6879.572488] nouveau  [ PFB][:02:00.0] RAM type: GDDR3
[ 6879.572726] nouveau  [ PFB][:02:00.0] RAM size: 512 MiB
[ 6879.572964] nouveau  [ PFB][:02:00.0]ZCOMP: 4032 tags
[ 6879.597652] [TTM] Zone  kernel: Available graphics memory: 3047140 kiB
[ 6879.597892] [TTM] Zone   dma32: Available graphics memory: 2097152 kiB
[ 6879.598130] [TTM] Initializing pool allocator
[ 6879.598367] [TTM] Initializing DMA pool allocator
[ 6879.602860] nouveau  [ DRM] VRAM: 512 MiB
[ 6879.603102] nouveau  [ DRM] GART: 512 MiB
[ 6879.603339] nouveau  [ DRM] BIT BIOS found
[ 6879.603575] nouveau  [ DRM] Bios version 62.92.63.00
[ 6879.603813] nouveau  [ DRM] TMDS table version 2.0
[ 6879.604050] nouveau  [ DRM] DCB version 4.0
[ 6879.604287] nouveau  [ DRM] DCB outp 00: 02000300 0028
[ 6879.604524] nouveau  [ DRM] DCB outp 01: 01000302 00020030
[ 6879.604763] nouveau  [ DRM] DCB outp 02: 04011310 0028
[ 6879.605000] nouveau  [ DRM] DCB outp 03: 02011312 00020030
[ 6879.605238] nouveau  [ DRM] DCB conn 00: 1030
[ 6879.605516] nouveau  [ DRM] DCB conn 01: 2130
[ 6879.648012] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[ 6879.648257] [drm] No driver support for vblank timestamp query.
[ 6879.648708] nouveau  [ DRM] 1 available performance level(s)
[ 6879.648953] nouveau  [ DRM] 3: core 650MHz shader 1625MHz memory 1000MHz 
voltage 1050mV fanspeed 100%
[ 6879.649391] nouveau  [ DRM] c: core 399MHz shader 810MHz memory 399MHz 
voltage 1050mV fanspeed 34%
[ 6879.693947] nouveau  [ DRM] MM: using CRYPT for buffer copies
[ 6879.791680] nouveau  [ DRM] allocated 1920x1080 fb: 0x7, bo 
880018f20800
[ 6879.792175] fbcon: nouveaufb (fb0) is primary device
[ 6879.850216] Console: switching to colour frame buffer device 240x67
[ 6879.897075] fb0: nouveaufb frame buffer device
[ 6879.897075] drm: registered panic notifier
[ 6879.897078] [drm] Initialized nouveau 1.1.0 20120801 for :02:00.0 on 
minor 0
I'm starting glxgears here
xorg hangs, with occasional mouse movement
[ 6907.054696] nouveau  [   PFIFO][:02:00.0] unknown intr 0x0040, ch 2
pkill glxgears from fbcon
[ 6963.987969] nouveau E[   15318] failed to idle channel 0x
xorg still hangs
[ 7034.713069] nouveau E[  PGRAPH][:02:00.0] TRAP_TPDMA_2D - TP 0 - Unknown 
fault at address 002006
[ 7034.713167] nouveau E[  PGRAPH][:02:00.0] TRAP_TPDMA_2D - TP 0 - e0c: 
, e18: , e1c: , e20: 0037, e24: 0c03
[ 7034.713286] nouveau  [  PGRAPH][:02:00.0]  TRAP
[ 7034.713353] nouveau E[  PGRAPH][:02:00.0] ch 2 [0x001faf9000] subc 2 
class 0x502d mthd 0x060c data 0x000b
[ 7034.713454] nouveau E[ PFB][:02:00.0] trapped write at 0x00 
on channel 0x0001fea0 PEEPHOLE/PFIFO_WRITE/00 reason: NULL_DMAOBJ
[ 7034.713624] nouveau E[  PGRAPH][:02:00.0] TRAP_TPDMA_RT - TP 0 - Unknown 
fault at address 002006
[ 7034.713713] nouveau E[  PGRAPH][:02:00.0] TRAP_TPDMA_RT - TP 0 - e0c: 
, e18: , e1c: 0002, e20: 3b00, e24: 0003
[ 7034.713834] nouveau E[  PGRAPH][:02:00.0] TRAP_TPDMA_RT - TP 1 - 

Re: [Nouveau] Fix for vblank on nvc0

2012-11-11 Thread Marcin Slusarz
On Sun, Nov 11, 2012 at 07:26:17PM +0100, Marcin Slusarz wrote:
 On Tue, Nov 06, 2012 at 07:30:00PM +0100, Maarten Lankhorst wrote:
  
  
  Op 06-11-12 15:48, Kelly Doran schreef:
   The vblank on nvc0 was not working correctly and would freeze X, I managed
   to track it down and fix it with some help from m.b.lankhorst, see
   https://bugs.freedesktop.org/show_bug.cgi?id=56692 for details.
  
  Reviewed-by: Maarten Lankhorst maarten.lankho...@canonical.com
  
  I recommended the bar flush since nvd0 does as well, and there might be a 
  small race
  otherwise.
  
  Can this still get in before final 3.7 release?
 
 This patch breaks vblank here (nv92) completely.
 
 [ 6879.200427] Console: switching to colour VGA+ 80x25
 [ 6879.202884] drm: unregistered panic notifier
 [ 6879.334278] [TTM] Finalizing pool allocator
 [ 6879.334518] [TTM] Finalizing DMA pool allocator
 [ 6879.334765] [TTM] Zone  kernel: Used memory at exit: 0 kiB
 [ 6879.335004] [TTM] Zone   dma32: Used memory at exit: 0 kiB
 [ 6879.340472] [drm] Module unloaded
 [ 6879.397744] [drm] Initialized drm 1.1.0 20060810
 [ 6879.408149] nouveau  [  DEVICE][:02:00.0] BOOT0  : 0x092a00a2
 [ 6879.408401] nouveau  [  DEVICE][:02:00.0] Chipset: G92 (NV92)
 [ 6879.408641] nouveau  [  DEVICE][:02:00.0] Family : NV50
 [ 6879.409752] nouveau  [   VBIOS][:02:00.0] checking PRAMIN for image...
 [ 6879.409997] nouveau  [   VBIOS][:02:00.0] ... signature not found
 [ 6879.410236] nouveau  [   VBIOS][:02:00.0] checking PROM for image...
 [ 6879.549018] nouveau  [   VBIOS][:02:00.0] ... appears to be valid
 [ 6879.549259] nouveau  [   VBIOS][:02:00.0] using image from PROM
 [ 6879.549640] nouveau  [   VBIOS][:02:00.0] BIT signature found
 [ 6879.549879] nouveau  [   VBIOS][:02:00.0] version 62.92.63.00
 [ 6879.570275] nouveau  [ MXM][:02:00.0] no VBIOS data, nothing to do
 [ 6879.572488] nouveau  [ PFB][:02:00.0] RAM type: GDDR3
 [ 6879.572726] nouveau  [ PFB][:02:00.0] RAM size: 512 MiB
 [ 6879.572964] nouveau  [ PFB][:02:00.0]ZCOMP: 4032 tags
 [ 6879.597652] [TTM] Zone  kernel: Available graphics memory: 3047140 kiB
 [ 6879.597892] [TTM] Zone   dma32: Available graphics memory: 2097152 kiB
 [ 6879.598130] [TTM] Initializing pool allocator
 [ 6879.598367] [TTM] Initializing DMA pool allocator
 [ 6879.602860] nouveau  [ DRM] VRAM: 512 MiB
 [ 6879.603102] nouveau  [ DRM] GART: 512 MiB
 [ 6879.603339] nouveau  [ DRM] BIT BIOS found
 [ 6879.603575] nouveau  [ DRM] Bios version 62.92.63.00
 [ 6879.603813] nouveau  [ DRM] TMDS table version 2.0
 [ 6879.604050] nouveau  [ DRM] DCB version 4.0
 [ 6879.604287] nouveau  [ DRM] DCB outp 00: 02000300 0028
 [ 6879.604524] nouveau  [ DRM] DCB outp 01: 01000302 00020030
 [ 6879.604763] nouveau  [ DRM] DCB outp 02: 04011310 0028
 [ 6879.605000] nouveau  [ DRM] DCB outp 03: 02011312 00020030
 [ 6879.605238] nouveau  [ DRM] DCB conn 00: 1030
 [ 6879.605516] nouveau  [ DRM] DCB conn 01: 2130
 [ 6879.648012] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
 [ 6879.648257] [drm] No driver support for vblank timestamp query.
 [ 6879.648708] nouveau  [ DRM] 1 available performance level(s)
 [ 6879.648953] nouveau  [ DRM] 3: core 650MHz shader 1625MHz memory 
 1000MHz voltage 1050mV fanspeed 100%
 [ 6879.649391] nouveau  [ DRM] c: core 399MHz shader 810MHz memory 399MHz 
 voltage 1050mV fanspeed 34%
 [ 6879.693947] nouveau  [ DRM] MM: using CRYPT for buffer copies
 [ 6879.791680] nouveau  [ DRM] allocated 1920x1080 fb: 0x7, bo 
 880018f20800
 [ 6879.792175] fbcon: nouveaufb (fb0) is primary device
 [ 6879.850216] Console: switching to colour frame buffer device 240x67
 [ 6879.897075] fb0: nouveaufb frame buffer device
 [ 6879.897075] drm: registered panic notifier
 [ 6879.897078] [drm] Initialized nouveau 1.1.0 20120801 for :02:00.0 on 
 minor 0
 I'm starting glxgears here
 xorg hangs, with occasional mouse movement
 [ 6907.054696] nouveau  [   PFIFO][:02:00.0] unknown intr 0x0040, ch 2
 pkill glxgears from fbcon
 [ 6963.987969] nouveau E[   15318] failed to idle channel 0x
 xorg still hangs
 [ 7034.713069] nouveau E[  PGRAPH][:02:00.0] TRAP_TPDMA_2D - TP 0 - 
 Unknown fault at address 002006
 [ 7034.713167] nouveau E[  PGRAPH][:02:00.0] TRAP_TPDMA_2D - TP 0 - e0c: 
 , e18: , e1c: , e20: 0037, e24: 0c03
 [ 7034.713286] nouveau  [  PGRAPH][:02:00.0]  TRAP
 [ 7034.713353] nouveau E[  PGRAPH][:02:00.0] ch 2 [0x001faf9000] subc 2 
 class 0x502d mthd 0x060c data 0x000b
 [ 7034.713454] nouveau E[ PFB][:02:00.0] trapped write at 
 0x00 on channel 0x0001fea0 PEEPHOLE/PFIFO_WRITE/00 reason: NULL_DMAOBJ
 [ 7034.713624] nouveau E[  PGRAPH][:02:00.0] TRAP_TPDMA_RT - TP 0 - 
 Unknown fault at address 002006
 [ 7034.713713] nouveau E[  PGRAPH][:02:00.0] TRAP_TPDMA_RT - 

Re: [Nouveau] Fix for vblank on nvc0

2012-11-11 Thread Kelly Doran
I was under the impression that the else block was only executed for nvc0
code, but maybe the nv92 code was executing it too, so that may need an
extra code block to work again.  Otherwise the bar flush in the nv50
section is causing the problems...  I can write up some patches later if
you want but I don't have any cards from these chipsets to test with, and I
gotta go for the afternoon.

On Sun, Nov 11, 2012 at 12:35 PM, Marcin Slusarz
marcin.slus...@gmail.comwrote:

 On Sun, Nov 11, 2012 at 07:26:17PM +0100, Marcin Slusarz wrote:
  On Tue, Nov 06, 2012 at 07:30:00PM +0100, Maarten Lankhorst wrote:
  
  
   Op 06-11-12 15:48, Kelly Doran schreef:
The vblank on nvc0 was not working correctly and would freeze X, I
 managed
to track it down and fix it with some help from m.b.lankhorst, see
https://bugs.freedesktop.org/show_bug.cgi?id=56692 for details.
   
   Reviewed-by: Maarten Lankhorst maarten.lankho...@canonical.com
  
   I recommended the bar flush since nvd0 does as well, and there might
 be a small race
   otherwise.
  
   Can this still get in before final 3.7 release?
 
  This patch breaks vblank here (nv92) completely.
 
  [ 6879.200427] Console: switching to colour VGA+ 80x25
  [ 6879.202884] drm: unregistered panic notifier
  [ 6879.334278] [TTM] Finalizing pool allocator
  [ 6879.334518] [TTM] Finalizing DMA pool allocator
  [ 6879.334765] [TTM] Zone  kernel: Used memory at exit: 0 kiB
  [ 6879.335004] [TTM] Zone   dma32: Used memory at exit: 0 kiB
  [ 6879.340472] [drm] Module unloaded
  [ 6879.397744] [drm] Initialized drm 1.1.0 20060810
  [ 6879.408149] nouveau  [  DEVICE][:02:00.0] BOOT0  : 0x092a00a2
  [ 6879.408401] nouveau  [  DEVICE][:02:00.0] Chipset: G92 (NV92)
  [ 6879.408641] nouveau  [  DEVICE][:02:00.0] Family : NV50
  [ 6879.409752] nouveau  [   VBIOS][:02:00.0] checking PRAMIN for
 image...
  [ 6879.409997] nouveau  [   VBIOS][:02:00.0] ... signature not found
  [ 6879.410236] nouveau  [   VBIOS][:02:00.0] checking PROM for
 image...
  [ 6879.549018] nouveau  [   VBIOS][:02:00.0] ... appears to be valid
  [ 6879.549259] nouveau  [   VBIOS][:02:00.0] using image from PROM
  [ 6879.549640] nouveau  [   VBIOS][:02:00.0] BIT signature found
  [ 6879.549879] nouveau  [   VBIOS][:02:00.0] version 62.92.63.00
  [ 6879.570275] nouveau  [ MXM][:02:00.0] no VBIOS data, nothing
 to do
  [ 6879.572488] nouveau  [ PFB][:02:00.0] RAM type: GDDR3
  [ 6879.572726] nouveau  [ PFB][:02:00.0] RAM size: 512 MiB
  [ 6879.572964] nouveau  [ PFB][:02:00.0]ZCOMP: 4032 tags
  [ 6879.597652] [TTM] Zone  kernel: Available graphics memory: 3047140 kiB
  [ 6879.597892] [TTM] Zone   dma32: Available graphics memory: 2097152 kiB
  [ 6879.598130] [TTM] Initializing pool allocator
  [ 6879.598367] [TTM] Initializing DMA pool allocator
  [ 6879.602860] nouveau  [ DRM] VRAM: 512 MiB
  [ 6879.603102] nouveau  [ DRM] GART: 512 MiB
  [ 6879.603339] nouveau  [ DRM] BIT BIOS found
  [ 6879.603575] nouveau  [ DRM] Bios version 62.92.63.00
  [ 6879.603813] nouveau  [ DRM] TMDS table version 2.0
  [ 6879.604050] nouveau  [ DRM] DCB version 4.0
  [ 6879.604287] nouveau  [ DRM] DCB outp 00: 02000300 0028
  [ 6879.604524] nouveau  [ DRM] DCB outp 01: 01000302 00020030
  [ 6879.604763] nouveau  [ DRM] DCB outp 02: 04011310 0028
  [ 6879.605000] nouveau  [ DRM] DCB outp 03: 02011312 00020030
  [ 6879.605238] nouveau  [ DRM] DCB conn 00: 1030
  [ 6879.605516] nouveau  [ DRM] DCB conn 01: 2130
  [ 6879.648012] [drm] Supports vblank timestamp caching Rev 1
 (10.10.2010).
  [ 6879.648257] [drm] No driver support for vblank timestamp query.
  [ 6879.648708] nouveau  [ DRM] 1 available performance level(s)
  [ 6879.648953] nouveau  [ DRM] 3: core 650MHz shader 1625MHz memory
 1000MHz voltage 1050mV fanspeed 100%
  [ 6879.649391] nouveau  [ DRM] c: core 399MHz shader 810MHz memory
 399MHz voltage 1050mV fanspeed 34%
  [ 6879.693947] nouveau  [ DRM] MM: using CRYPT for buffer copies
  [ 6879.791680] nouveau  [ DRM] allocated 1920x1080 fb: 0x7, bo
 880018f20800
  [ 6879.792175] fbcon: nouveaufb (fb0) is primary device
  [ 6879.850216] Console: switching to colour frame buffer device 240x67
  [ 6879.897075] fb0: nouveaufb frame buffer device
  [ 6879.897075] drm: registered panic notifier
  [ 6879.897078] [drm] Initialized nouveau 1.1.0 20120801 for :02:00.0
 on minor 0
  I'm starting glxgears here
  xorg hangs, with occasional mouse movement
  [ 6907.054696] nouveau  [   PFIFO][:02:00.0] unknown intr
 0x0040, ch 2
  pkill glxgears from fbcon
  [ 6963.987969] nouveau E[   15318] failed to idle channel 0x
  xorg still hangs
  [ 7034.713069] nouveau E[  PGRAPH][:02:00.0] TRAP_TPDMA_2D - TP 0 -
 Unknown fault at address 002006
  [ 7034.713167] nouveau E[  PGRAPH][:02:00.0] TRAP_TPDMA_2D - TP 0 -
 e0c: , e18: , 

Re: [Nouveau] Fix for vblank on nvc0

2012-11-11 Thread Maarten Lankhorst
Op 11-11-12 19:35, Marcin Slusarz schreef:
 On Sun, Nov 11, 2012 at 07:26:17PM +0100, Marcin Slusarz wrote:
 On Tue, Nov 06, 2012 at 07:30:00PM +0100, Maarten Lankhorst wrote:

 Op 06-11-12 15:48, Kelly Doran schreef:
 The vblank on nvc0 was not working correctly and would freeze X, I managed
 to track it down and fix it with some help from m.b.lankhorst, see
 https://bugs.freedesktop.org/show_bug.cgi?id=56692 for details.

 Reviewed-by: Maarten Lankhorst maarten.lankho...@canonical.com

 I recommended the bar flush since nvd0 does as well, and there might be a 
 small race
 otherwise.

 Can this still get in before final 3.7 release?
 This patch breaks vblank here (nv92) completely.
Does removing the bar flush help?

~Maarte
___
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau


[Nouveau] Fix for vblank on nvc0

2012-11-10 Thread Kelly Doran
The vblank on nvc0 was not working correctly and would freeze X, I managed
to track it down and fix it with some help from m.b.lankhorst, see
https://bugs.freedesktop.org/show_bug.cgi?id=56692 for details.


nvc0_vblank_fix.patch
Description: Binary data
___
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau


Re: [Nouveau] Fix for vblank on nvc0

2012-11-06 Thread Maarten Lankhorst


Op 06-11-12 15:48, Kelly Doran schreef:
 The vblank on nvc0 was not working correctly and would freeze X, I managed
 to track it down and fix it with some help from m.b.lankhorst, see
 https://bugs.freedesktop.org/show_bug.cgi?id=56692 for details.

Reviewed-by: Maarten Lankhorst maarten.lankho...@canonical.com

I recommended the bar flush since nvd0 does as well, and there might be a small 
race
otherwise.

Can this still get in before final 3.7 release?

~Maarten
___
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau