Okay my final attempt :-) is now checked in... the last issue that register_chrdev returns a 0 when the fops is the same caused your last problem.. hopefully this work..
if you can load/unload this module and see if it works... then I'll add the couple of lines to hopefully avoid using the second device.. Dave. On Thu, 15 Jul 2004, Bill Gou wrote: > Dave Airlie wrote: > > > > I've checked in a fix for this load/unload it probably won't help your > > main situation yet but I'd appreciate if you could check it the module > > load and unload, if that works I'll try and fix your specific problem or > > at least rule out the DRM..... > > > > oops again, seems this time at a different place. > > [drm] Debug messages ON > [drm:drm_probe] > [drm:i830_stub_register] > [drm:i830_stub_register] calling inter_module_register > [drm:i830_ctxbitmap_next] drm_ctxbitmap_next bit : 0 > [drm:i830_ctxbitmap_init] drm_ctxbitmap_init : 0 > [drm] Initialized i830 1.3.2 20021108 on minor 0: Intel Corp. 82852/855GM Integrated > Graphics Device > [drm:drm_probe] > [drm:i830_stub_register] > PCI: Enabling device 00:02.1 (0000 -> 0002) > [drm:i830_ctxbitmap_next] drm_ctxbitmap_next bit : 0 > [drm:i830_ctxbitmap_init] drm_ctxbitmap_init : 0 > [drm] Initialized i830 1.3.2 20021108 on minor 1: Intel Corp. 82852/855GM Integrated > Graphics Device (#2) > [drm:drm_exit] > [drm:drm_cleanup] > [drm:i830_takedown] > [drm:i830_stub_unregister] 0 > inter_module_put: no entry for 'drm'kernel BUG at module.c:230! > invalid operand: 0000 > CPU: 0 > EIP: 0010:[<c01190ba>] Tainted: PFZ > EFLAGS: 00010282 > eax: 00000027 ebx: ddeef5c0 ecx: dcfde000 edx: dcfdff64 > esi: c03069d7 edi: dec962f9 ebp: bfffe668 esp: d57b5f20 > ds: 0018 es: 0018 ss: 0018 > Process rmmod.old (pid: 2884, stackpage=d57b5000) > Stack: c02e2b20 dec962f5 00000000 dec97ac0 00000000 dec9031f dec962f5 d7cbb580 > d7cbb100 dec90558 00000000 dec9632a 00000000 dec97c60 dec8c910 00000000 > dec95fc4 c0328198 c155d800 c025d418 dec97c60 dec95fea fffffff0 dec8ca73 > Call Trace: [<dec962f5>] [<dec97ac0>] [<dec9031f>] [<dec962f5>] [<dec90558>] > [<dec9632a>] [<dec97c60>] [<dec8c910>] [<dec95fc4>] [<c025d418>] [<dec97c60>] > [<dec95fea>] [<dec8ca73>] [<dec97ac0>] [<dec95fea>] [<c011a66a>] [<c01199e7>] > [<c01079bf>] > > Code: 0f 0b e6 00 46 84 2e c0 83 c4 08 5b 5e 5f c3 8b 41 0c 85 c0 > > ----------- > > Decode the oops: > > ksymoops 2.4.9 on i686 2.4.24-1. Options used > -V (default) > -k /proc/ksyms (default) > -l /proc/modules (default) > -o /lib/modules/2.4.24-1/ (default) > -m /usr/src/linux-2.4.24-1/System.map (specified) > > Warning (compare_ksyms_lsmod): module i830 is in lsmod but not in ksyms, probably no > symbols exported > [drm] Debug messages ON > inter_module_put: no entry for 'drm'kernel BUG at module.c:230! > invalid operand: 0000 > CPU: 0 > EIP: 0010:[<c01190ba>] Tainted: PFZ > Using defaults from ksymoops -t elf32-i386 -a i386 > EFLAGS: 00010282 > eax: 00000027 ebx: ddeef5c0 ecx: dcfde000 edx: dcfdff64 > esi: c03069d7 edi: dec962f9 ebp: bfffe668 esp: d57b5f20 > ds: 0018 es: 0018 ss: 0018 > Process rmmod.old (pid: 2884, stackpage=d57b5000) > Stack: c02e2b20 dec962f5 00000000 dec97ac0 00000000 dec9031f dec962f5 d7cbb580 > d7cbb100 dec90558 00000000 dec9632a 00000000 dec97c60 dec8c910 00000000 > dec95fc4 c0328198 c155d800 c025d418 dec97c60 dec95fea fffffff0 dec8ca73 > Call Trace: [<dec962f5>] [<dec97ac0>] [<dec9031f>] [<dec962f5>] [<dec90558>] > [<dec9632a>] [<dec97c60>] [<dec8c910>] [<dec95fc4>] [<c025d418>] [<dec97c60>] > [<dec95fea>] [<dec8ca73>] [<dec97ac0>] [<dec95fea>] [<c011a66a>] [<c01199e7>] > [<c01079bf>] > Code: 0f 0b e6 00 46 84 2e c0 83 c4 08 5b 5e 5f c3 8b 41 0c 85 c0 > > > >>EIP; c01190ba <inter_module_put+5a/80> <===== > > >>ebx; ddeef5c0 <_end+1db2d2a8/1e81fd48> > >>ecx; dcfde000 <_end+1cc1bce8/1e81fd48> > >>edx; dcfdff64 <_end+1cc1dc4c/1e81fd48> > >>esi; c03069d7 <bl_order+28fcb/3abb4> > >>edi; dec962f9 <[vmnet].data.end+150ea/449e51> > >>esp; d57b5f20 <_end+153f3c08/1e81fd48> > > Trace; dec962f5 <[vmnet].data.end+150e6/449e51> > Trace; dec97ac0 <[vmnet].data.end+168b1/449e51> > Trace; dec9031f <[vmnet].data.end+f110/449e51> > Trace; dec962f5 <[vmnet].data.end+150e6/449e51> > Trace; dec90558 <[vmnet].data.end+f349/449e51> > Trace; dec9632a <[vmnet].data.end+1511b/449e51> > Trace; dec97c60 <[vmnet].data.end+16a51/449e51> > Trace; dec8c910 <[vmnet].data.end+b701/449e51> > Trace; dec95fc4 <[vmnet].data.end+14db5/449e51> > Trace; c025d418 <pci_unregister_driver+58/60> > Trace; dec97c60 <[vmnet].data.end+16a51/449e51> > Trace; dec95fea <[vmnet].data.end+14ddb/449e51> > Trace; dec8ca73 <[vmnet].data.end+b864/449e51> > Trace; dec97ac0 <[vmnet].data.end+168b1/449e51> > Trace; dec95fea <[vmnet].data.end+14ddb/449e51> > Trace; c011a66a <free_module+ba/d0> > Trace; c01199e7 <sys_delete_module+a7/1d0> > Trace; c01079bf <system_call+33/38> > > Code; c01190ba <inter_module_put+5a/80> > 00000000 <_EIP>: > Code; c01190ba <inter_module_put+5a/80> <===== > 0: 0f 0b ud2a <===== > Code; c01190bc <inter_module_put+5c/80> > 2: e6 00 out %al,$0x0 > Code; c01190be <inter_module_put+5e/80> > 4: 46 inc %esi > Code; c01190bf <inter_module_put+5f/80> > 5: 84 2e test %ch,(%esi) > Code; c01190c1 <inter_module_put+61/80> > 7: c0 83 c4 08 5b 5e 5f rolb $0x5f,0x5e5b08c4(%ebx) > Code; c01190c8 <inter_module_put+68/80> > e: c3 ret > Code; c01190c9 <inter_module_put+69/80> > f: 8b 41 0c mov 0xc(%ecx),%eax > Code; c01190cc <inter_module_put+6c/80> > 12: 85 c0 test %eax,%eax > > > 1 warning issued. Results may not be reliable. > -- David Airlie, Software Engineer http://www.skynet.ie/~airlied / airlied at skynet.ie pam_smb / Linux DECstation / Linux VAX / ILUG person ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click -- _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel
