[Nouveau] [Bug 46557] nouveau: NV4E acceleration corruption when DMA above 31-bit (2 Gig barrier)

2012-11-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46557

--- Comment #26 from m.b.lankho...@gmail.com ---
Judging from the errors, I'd say it can't look up the handle it created.

Diving into the old dma implementation seems 

The handles for vram and gart could not be looked up, so guessing an invalid
entry was used.

Does setting dma_bits = 32 inside drivers/gpu/drm/nouveau/core/subdev/vm/nv44.c
help?

The old nouveau driver seemed to have commented out the part about 39-bits
support for cards  nv50.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau


[Nouveau] [Bug 56535] Resident evil 4 with wine: crash

2012-11-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=56535

--- Comment #11 from KinG-InFeT king.in...@gmail.com ---
I installed please with the option! strip the following packages:

mesa - with its dependencies
libdrm - with its dependencies
xf86-video-nouveau - with its dependencies
wine - with its dependencies

I restarted the command:
echo c | WINEDEBUG=-dbghelp_dwarf winedbg --gdb game.exe

result:

err:menubuilder:RefreshFileTypeAssociations failed wait for semaphore
fixme:iphlpapi:NotifyAddrChange (Handle 0xffe8b0, overlapped 0xffe8bc): stub
wine: configuration in '/root/.wine' has been updated.
0033:0034: create process 'C:\Program Files\CAPCOM\resident evil
4\game.exe'/0x110738 @0x7a72ea0 (00)
0033:0034: create thread I @0x7a72ea0
GNU gdb (GDB) 7.5
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as i686-pc-linux-gnu.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
0033:0034: loads DLL C:\windows\system32\KERNEL32.dll @0x7b81 (00)
0033:0034: loads DLL C:\windows\system32\ntdll.dll @0x7bc1 (00)
0033:0034: loads DLL C:\windows\system32\advapi32.dll @0x7e9b (00)
0033:0034: loads DLL C:\windows\system32\gdi32.dll @0x7ea2 (00)
0033:0034: loads DLL C:\windows\system32\version.dll @0x7eff (00)
0033:0034: loads DLL C:\windows\system32\user32.dll @0x7eb3 (00)
0033:0034: loads DLL C:\windows\system32\comctl32.dll @0x7ec9 (00)
0033:0034: loads DLL C:\windows\system32\shlwapi.dll @0x7e61 (00)
0033:0034: loads DLL C:\windows\system32\shell32.dll @0x7e69 (00)
0033:0034: loads DLL C:\windows\system32\winspool.drv @0x7e5d (00)
0033:0034: loads DLL C:\windows\system32\comdlg32.dll @0x7e8c (00)
0033:0034: loads DLL C:\windows\system32\wined3d.dll @0x7e45 (00)
0033:0034: loads DLL C:\windows\system32\d3d9.dll @0x7e59 (00)
0033:0034: loads DLL C:\windows\system32\d3dx9_30.dll @0x7e43 (00)
0033:0034: loads DLL C:\windows\system32\d3dcompiler_43.dll @0x7e33 (00)
0033:0034: loads DLL C:\windows\system32\d3dxof.dll @0x7e31 (00)
0033:0034: loads DLL C:\windows\system32\rpcrt4.dll @0x7e15 (00)
0033:0034: loads DLL C:\windows\system32\ole32.dll @0x7e1e (00)
0033:0034: loads DLL C:\windows\system32\d3dx9_36.dll @0x7e3b (00)
0033:0034: loads DLL C:\windows\system32\winex11.drv @0x7dfd (00)
0033:0034: loads DLL C:\windows\system32\dinput8.dll @0x7dd8 (00)
0033:0034: loads DLL C:\windows\system32\msacm32.dll @0x7dc4 (00)
0033:0034: loads DLL C:\windows\system32\winmm.dll @0x7dc7 (00)
0033:0034: loads DLL C:\windows\system32\dsound.dll @0x7dd2 (00)
0033:0034: loads DLL C:\windows\system32\imm32.dll @0x7dc2 (00)
0033:0034: loads DLL C:\windows\system32\oleaut32.dll @0x7daf (00)
0033:0034: loads DLL C:\windows\system32\uxtheme.dll @0x7dab (00)
0033:0034: exception code=0x8003
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need set solib-search-path or set sysroot?
0x7b860bff in start_process () from /usr/bin/../lib/wine/kernel32.dll.so
trace: 98 = 80
Wine-gdb Continuing.
wine client error:37: write: Descrittore di file errato
[Inferior 1 (Remote target) exited normally]
Wine-gdb quit

I see no difference between the two debug

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau


[Nouveau] [Bug 56535] Resident evil 4 with wine: crash

2012-11-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=56535

--- Comment #13 from KinG-InFeT king.in...@gmail.com ---
unfortunately crashed without even giving me the opportunity to save the
backtrace, but I managed to asismilare information outputs from the terminal.

Test 1:
┌─[root] @ [KinG-InFeT]
└─[(~/.wine/drive_c/Program Files/CAPCOM/resident evil 4)]  wine game.exe
fixme:d3d:init_driver_info Unable to find a driver/device info for
vendor_id=0x10de device_id=0x421 for driver_model=2
fixme:win:EnumDisplayDevicesW ((null),0,0x7c7f608,0x), stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1b55a0 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x21fd38 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x199d3d28 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x199d3d28 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x199d4150 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x199d4150 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x199f0f00 stub!
fixme:d3d:wined3d_device_set_software_vertex_processing device 0x13d9c0,
software 0 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x19ac2b70 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x93e7568 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x93e7800 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x93e7a98 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x93e7d30 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x93e7fe0 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x19ad2dc8 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x19ad6f20 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x19adb0b8 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x19adb3a8 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x19adb698 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x19adb988 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x19adbc78 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d142438 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d142ee8 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d1439b0 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d1444b8 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d144fc0 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d145ac8 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d1465d0 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d1470d8 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d1493e0 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d1596e8 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d159df0 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d15e0f8 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d160400 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d164708 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d16ca10 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d170d18 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d175020 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d179328 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d17d630 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d181938 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d185c40 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d186348 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d196650 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d1b6958 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d1b7c60 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d1c7f68 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d1e8270 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d1ec578 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d1ee880 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d1f0b88 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d200e90 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d202198 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d2034a0 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d2237a8 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d263ab0 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d273db8 stub!
fixme:d3d_texture:wined3d_texture_generate_mipmaps texture 0x1d2740a8 stub!

Re: [Nouveau] [PATCH] nouveau: Fix crash after D3

2012-11-07 Thread Marcin Slusarz
On Tue, Nov 06, 2012 at 10:03:40PM +0800, Daniel J Blueman wrote:
 In 3.7-rc4, when starting X with the integrated GPU and suspending the 
 discrete GPU,
 after one or more 32-bit applications are used (eg Skype) and X is stopped,
 we hit a panic.
 
 Prevent this by testing if the fini function is valid.

It's a bit weird. Can you explain better what is going on?
Why do we try to destroy this object (with NULL fini) only when GPU is
suspended? Maybe it means we are leaking this object on normal close/destroy?
Did you test what happens when you resume nv GPU after stopping X?

 Full panic bootlog is at: http://quora.org/2012/nouveau/dmesg-crash.txt
 Xorg.log is at: http://quora.org/2012/nouveau/Xorg.0.log-crash.txt
 Kernel log after fix is at: http://quora.org/2012/nouveau/dmesg-fix.txt
 
 Signed-off-by: Daniel J Blueman dan...@quora.org
 ---
  drivers/gpu/drm/nouveau/core/core/object.c |   10 +++---
  1 file changed, 7 insertions(+), 3 deletions(-)
 
 diff --git a/drivers/gpu/drm/nouveau/core/core/object.c 
 b/drivers/gpu/drm/nouveau/core/core/object.c
 index 0daab62..3da3525 100644
 --- a/drivers/gpu/drm/nouveau/core/core/object.c
 +++ b/drivers/gpu/drm/nouveau/core/core/object.c
 @@ -354,12 +354,16 @@ static int
  nouveau_object_decf(struct nouveau_object *object)
  {
   int ret;
 + struct nouveau_ofuncs *pfuncs;
  
   nv_trace(object, stopping...\n);
  
 - ret = nv_ofuncs(object)-fini(object, false);
 - if (ret)
 - nv_warn(object, failed fini, %d\n, ret);
 + pfuncs = nv_ofuncs(object);
 + if (pfuncs-fini) {
 + ret = nv_ofuncs(object)-fini(object, false);
 + if (ret)
 + nv_warn(object, failed fini, %d\n, ret);
 + }
  
   if (object-engine) {
   mutex_lock(nv_subdev(object-engine)-mutex);
 -- 
 1.7.10.4
 
___
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau


Re: [Nouveau] [PATCH] drm/nv50: decode PGRAPH status registers on TLB flush fail

2012-11-07 Thread Marcin Slusarz
On Wed, Nov 07, 2012 at 10:08:47AM +1000, Ben Skeggs wrote:
 On Tue, Nov 06, 2012 at 10:48:52PM +0100, Marcin Slusarz wrote:
  Now it outputs:
  nouveau E[  PGRAPH][:02:00.0] PGRAPH TLB flush idle timeout fail
  nouveau E[  PGRAPH][:02:00.0] PGRAPH_STATUS: BUSY DISPATCH VFETCH 
  CCACHE_UNK4 STRMOUT_GSCHED_UNK5 UNK14XX UNK1CXX CLIPID ZCULL ENG2D UNK34XX 
  TPRAST TPROP ROP (0x011fde03)
  nouveau E[  PGRAPH][:02:00.0] PGRAPH_VSTATUS: CCACHE (0x00145b4d) 
  (0x002d) ENG2D ROP (0x0034db40)
 
 How about this instead?
 
 PGRAPH_STATUS  : 0x011fde03 [BUSY DISPATCH VFETCH CCACHE_UNK4 
 STRMOUT_GSCHED_UNK5 UNK14XX UNK1CXX CLIPID ZCULL ENG2D UNK34XX TPRAST TPROP 
 ROP]
 PGRAPH_VSTATUS0: 0x00145b4d [CCACHE]
 PGRAPH_VSTATUS1: 0x002d []
 PGRAPH_VSTATUS2: 0x0034db40 [ENG2D ROP]

Looks good too. I'll post updated patch tomorrow.

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