View Single Post
Old 02-04-04, 06:37 AM   #13
gilboa
Linux addict...
 
Join Date: Jan 2004
Posts: 540
Default

I've rebuilt the driver to generate full debug info.
Here's the output.

[root@gilboa-home-dev gilboa]# dmesg -c
[root@gilboa-home-dev gilboa]# modprobe nvidia
[root@gilboa-home-dev gilboa]# X

XFree86 Version 4.3.0 (Red Hat Linux 9 release: 4.3.0-2.90.43)
Release Date: 15 August 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: Linux 2.4.21-2.ELsmp i686 [ELF]
Build Date: 07 November 2003
Build Host: porky.devel.redhat.com
...
Module Loader present
OS Kernel: Linux version 2.6.1 (root@gilboa-home-dev) (gcc version 3.2.2 200302
2 (Red Hat Linux 3.2.2-5)) #2 SMP Wed Feb 4 09:16:12 IST 2004 P
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/XFree86.0.log", Time: Wed Feb 4 13:30:26 2004
(==) Using config file: "/etc/X11/XF86Config"
(EE) NVIDIA(0): Failed to map framebuffer memory
(EE) NVIDIA(0): *** Aborting ***

Fatal server error:
AddScreen/ScreenInit failed for driver 0
...

[root@gilboa-home-dev gilboa]# rmmod nvidia
[root@gilboa-home-dev gilboa]# dmesg -c
nvidia: module license 'NVIDIA' taints kernel.
(pci_read_config_dword returns the following values)
1: NVRM: 01:05.0 10de:0331 - 0xb6000000 [size=16M]
1: NVRM: 01:05.0 10de:0331 - 0xb8000000 [size=64M]
1: NVRM: found 1 device
1: nvidia: loading NVIDIA Linux x86 NVIDIA Kernel Module 1.0-5336 Wed Jan 14
8:29:26 PST 2004
1: nvidia_init_module: major number 195
1: nv_kern_open...
1: nv_kern_ctl_open
1: ioctl(0xc8, 0x82f18f4)
1: done with ioctl
1: ioctl(0xcb, 0xbffff968)
1: done with ioctl
1: ioctl(0x22, 0xbffff9a4)
1: done with ioctl
1: ioctl(0x4d, 0xbffff970)
1: done with ioctl
1: nv_kern_open...
1: nv_kern_open on device 0
1: NVRM: RmInitAdapter:
1: NVRM: RmSetupRegisters for 0x10de:0x331
1: NVRM: pci config info:
1: NVRM: registers look like: 0xb6000000 0x1000000
1: NVRM: fb looks like: 0xb8000000 0x4000000
1: NVRM: Successfully mapped framebuffer and registers
1: NVRM: final mappings:
1: NVRM: regs: 0xb6000000 0x1000000 0xf905a000
1: osCallVideoBIOS: 0x4f14 0x8e
1: nv_alloc_pages: 183 pages
1: NVRM: initializing rc timer
1: NVRM: rc timer initialized
1: NVRM: RmInitAdapter succeeded!
1: ioctl(0x23, 0xbffff994)
1: done with ioctl
1: ioctl(0xca, 0x82f18f0)
1: done with ioctl
1: ioctl(0x32, 0xbffff9b4)
1: done with ioctl
1: ioctl(0x32, 0xbffff9b0)
1: done with ioctl
1: ioctl(0x37, 0xbffff9b0)
1: done with ioctl
1: ioctl(0x32, 0xbffff9b8)
1: done with ioctl
1: ioctl(0x37, 0xbffff974)
1: done with ioctl
1: ioctl(0x32, 0xbffff97c)
1: done with ioctl
1: ioctl(0x32, 0xbffff97c)
1: done with ioctl
1: ioctl(0x32, 0xbffff97c)
1: done with ioctl
1: ioctl(0x32, 0xbffff97c)
1: done with ioctl
1: ioctl(0x32, 0xbffff97c)
1: done with ioctl
1: ioctl(0x32, 0xbffff988)
1: done with ioctl
1: ioctl(0x32, 0xbffff97c)
1: done with ioctl
1: ioctl(0x32, 0xbffff988)
1: done with ioctl
1: ioctl(0x32, 0xbffff97c)
1: done with ioctl
1: ioctl(0x32, 0xbffff988)
1: done with ioctl
1: ioctl(0x37, 0xbffff984)
1: done with ioctl
1: ioctl(0x27, 0xbffff98c)
1: nv_alloc_pages: 1 pages
1: nvos_malloc_pages: 1 pages
1: page_table: 0xf8b01000
1: done with ioctl
1: mmap([0x4067a000-0x4067b000] off=0x2900c000)
1: remapping 1 system pages for at 0xf6ad6640
1: ioctl(0x24, 0xbffff9a0)
1: done with ioctl
1: ioctl(0x32, 0xbffff9b0)
1: done with ioctl
1: ioctl(0x32, 0xbffff9b8)
1: done with ioctl
1: ioctl(0x37, 0xbffff988)
1: done with ioctl
1: ioctl(0x37, 0xbffff994)
1: done with ioctl
1: ioctl(0x37, 0xbffff968)
1: done with ioctl
1: ioctl(0x37, 0xbffff904)
1: done with ioctl
1: ioctl(0x37, 0xbffff904)
1: done with ioctl
1: ioctl(0x37, 0xbffff904)
1: done with ioctl
1: ioctl(0x37, 0xbffff828)
1: done with ioctl
1: ioctl(0x37, 0xbffff978)
1: done with ioctl
1: ioctl(0x37, 0xbffff99c)
1: done with ioctl
1: ioctl(0x29, 0xbffff9c8)
1: done with ioctl
1: ioctl(0x29, 0xbffff9bc)
1: nv_free_pages: 0x2900c000 0x1
1: nvos_free_pages: 1 pages
1: done with ioctl
1: vma_release for 0x4067a000 - 0x4067b000, offset 0x2900c000
1: at 0xf6ad6640, usage count 0, page_table 0xf8b01000
1: nvos_unlock_pages: 1 pages
1: nv_kern_close on device 0
1: NVRM: stopping rc timer
1: NVRM: rc timer stopped
1: nv_free_pages: 0xf8c16000 0xb7
1: tearing down registers
1: ioctl(0x22, 0xbffff970)
1: done with ioctl
1: ioctl(0x4d, 0xbffff93c)
1: done with ioctl
1: nv_kern_open...
1: nv_kern_open on device 0
1: NVRM: RmInitAdapter:
1: NVRM: RmSetupRegisters for 0x10de:0x331
1: NVRM: pci config info:
1: NVRM: registers look like: 0xb6000000 0x1000000
(16MB here.)
1: NVRM: fb looks like: 0xb8000000 0x4000000
(64MB here. Is this the wrong passed to the binary closed source driver?)
1: NVRM: Successfully mapped framebuffer and registers
1: NVRM: final mappings:
1: NVRM: regs: 0xb6000000 0x1000000 0xf905a000
1: osCallVideoBIOS: 0x4f14 0x8e
1: nv_alloc_pages: 183 pages
1: NVRM: initializing rc timer
1: NVRM: rc timer initialized
1: NVRM: RmInitAdapter succeeded!
1: ioctl(0x23, 0xbffff960)
1: done with ioctl
1: ioctl(0xca, 0x82f18f0)
1: done with ioctl
1: ioctl(0x48, 0xbffff9a0)
1: done with ioctl
1: ioctl(0x45, 0xbffff944)
1: NVRM: nv_agp_init
agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V2 device at 0000:00:00.0 into 4x mode
agpgart: Putting AGP V2 device at 0000:01:05.0 into 4x mode
1: NVRM: agp_init finished with status 0x0 and config 2
1: done with ioctl
1: ioctl(0x32, 0xbffff948)
1: done with ioctl
1: ioctl(0x37, 0xbffff93c)
1: done with ioctl
1: ioctl(0x27, 0xbffff930)
1: nv_alloc_pages: 16 pages
1: NVRM: AGPGART: allocated 16 pages
1: done with ioctl
1: mmap([0x4071b000-0x4072b000] off=0xc0000000)
1: ioctl(0x24, 0xbffff944)
1: done with ioctl
1: ioctl(0x26, 0xbffff934)
1: done with ioctl
1: mmap([0x4072b000-0x4073b000] off=0xb6800000)
1: ioctl(0x32, 0xbffff95c)
1: done with ioctl
1: ioctl(0x27, 0xbffff960)
1: done with ioctl
1: ioctl(0x4e, 0xbffff974)
1: done with ioctl
1: mmap([0x42136000-0x52036000] off=0xb8000000)
1: could not find map for vm 0xb8000000
1: NVRM: couldn't find pre-allocated memory!
1: ioctl(0x4f, 0xbffff94c)
1: done with ioctl
1: ioctl(0x29, 0xbffff994)
1: done with ioctl
1: ioctl(0x29, 0xbffff988)
1: nv_free_pages: 0xc0000000 0x10
1: NVRM: AGPGART: freed 16 pages
1: done with ioctl
1: vma_release for 0x4072b000 - 0x4073b000, offset 0xb6800000
1: vma_release for 0x4071b000 - 0x4072b000, offset 0xc0000000
1: at 0xf7028a80, usage count 0, page_table 0xf8ba8000
1: nvos_unlock_pages: 16 pages
1: nv_kern_close on device 0
1: NVRM: stopping rc timer
1: NVRM: rc timer stopped
1: NVRM: nv_agp_teardown
1: NVRM: AGPGART: backend released
1: NVRM: teardown finished with status 0x0
1: nv_free_pages: 0xf8c16000 0xb7
1: tearing down registers
1: nv_kern_ctl_close
1: nvidia_exit_module
[root@gilboa-home-dev gilboa]#


Anyone has any information about what should the pci_read_config_dword return on a normal GF5900/256 card so I'll know how to mimic the real values?

Gilboa
gilboa is offline   Reply With Quote