2.5.40: problems loading/unloading ide-scsi modules

2.5.40: problems loading/unloading ide-scsi modules

Post by Thomas Molin » Thu, 03 Oct 2002 02:50:07



I apologize in advance if this message is too long.  I included a lot of
data; I hope it is not too much.

I was puzzled when others were reporting oops and warning associated with
either booting 2.5.39/40 or associated with idea-scsi in some way (burning
a cd, loading/unloading the modules, etc).  I was not having any problems
with any of this.  My normal mode of operating includes loading some
modules at boot up, running cdrecord, mounting and unmounting CDs.  I
wasn't seeing any oops or warnings, but I wasn't loading and unloading
modules during a session.  The modules would get loaded, and wouldn't get
touched again until they were unloaded when the maching was rebooted/shut
down.  When I started rmmoding modules I was able to duplicate what others
were seeing.  This could be associated with module loading in general, but
I am able to load/unload other modules without problem.  There was also a
theory that some folks were having problems attributed to ISAPNP so I
compiled this kernel without support for it.

My normal complement of modules include:

Module                  Size  Used by    Not tainted
ymfpci                 45440   0
ac97_codec             12256   0  [ymfpci]
soundcore               6724   0  [ymfpci]
parport_pc             16516   1  (autoclean)
lp                      7712   0  (autoclean)
parport                24032   1  (autoclean) [parport_pc lp]
ide-scsi                9504   0
scsi_mod               60440   1  [ide-scsi]
rtc                     8896   0  (autoclean)

At this point I can load/unload any of the above modules, including
ide-scsi and scsi_mod with no problems.

After a typical session, my list of modules include:

Module                  Size  Used by    Not tainted
sr_mod                 14508   0  (autoclean)
cdrom                  31328   0  (autoclean) [sr_mod]
sg                     29604   0  (autoclean)
ymfpci                 45440   0
ac97_codec             12256   0  [ymfpci]
soundcore               6724   0  [ymfpci]
parport_pc             16516   1  (autoclean)
lp                      7712   0  (autoclean)
parport                24032   1  (autoclean) [parport_pc lp]
ide-scsi                9504   0
scsi_mod               60440   3  [sr_mod sg ide-scsi]
rtc                     8896   0  (autoclean)

At this point I can unload/load sg with no problem.  If I try to unload
any of the other ide-scsi modules (ide-scsi, scsi_mod, sr_mod) I get a
freeze at shutdown with various results.  If I rmmod ide-scsi and don't
reload it there are no problems at reboot.  If I reload ide-scsi the
system console freezes and shutdown ends with:

Shutting down devices
psmouse.c: Lost synchronization, throwing 1 bytes away.

If I try to rmmod sr_mod I get:

Unable to handle kernel paging request at virtual address 5a5a5a62
 printing eip:
c01a7c7c
*pde = 00000000
Oops: 0000
vfat fat sr_mod cdrom sg ymfpci ac97_codec soundcore parport_pc lp parport
ide-scsi scsi_mod rtc
CPU:    0
EIP:    0060:[<c01a7c7c>]    Not tainted
EFLAGS: 00010206
EIP is at devclass_remove_device+0xc/0x40
eax: 5a5a5a5a   ebx: 5a5a5a5a   ecx: d90ae7a8   edx: d7032020
esi: d7032020   edi: 00000000   ebp: d90ae7a8   esp: d637df50
ds: 0068   es: 0068   ss: 0068
Process rmmod (pid: 973, threadinfo=d637c000 task=d4f2c6c0)
Stack: 5a5a5a5a d7032020 c01a6fe6 d7032020 d7032020 d7032038 c01a709e
d7032020
       d90ae7a8 00000000 00000000 d5d5e000 c01a7adb d90ae7a8 d90ab000
d90abff3
       d90ae7a8 c011959e d90ab000 00000000 fffffff0 c0118a77 d90ab000
00000000
Call Trace:
 [<c01a6fe6>]device_detach+0x16/0x30
 [<c01a709e>]driver_detach+0x3e/0x60
 [<d90ae7a8>]sr_template+0x48/0xa0 [sr_mod]
 [<c01a7adb>]__remove_driver+0xb/0x30
 [<d90ae7a8>]sr_template+0x48/0xa0 [sr_mod]
 [<d90abff3>]exit_sr+0x43/0x50 [sr_mod]
 [<d90ae7a8>]sr_template+0x48/0xa0 [sr_mod]
 [<c011959e>]free_module+0x1e/0xb0
 [<c0118a77>]sys_delete_module+0xe7/0x1c0
 [<c0108b0f>]syscall_call+0x7/0xb

Code: 8b 58 08 85 db 74 1c 56 53 e8 96 01 00 00 56 53 e8 7f ff ff
 Segmentation fault

lsmod shows:
Module                  Size  Used by    Not taintedB
sr_mod                     0   0  (deleted)
cdrom                  31328   0  (autoclean) [sr_mod]
sg                     29604   0  (autoclean)
ymfpci                 45440   0
ac97_codec             12256   0  [ymfpci]
soundcore               6724   0  [ymfpci]
parport_pc             16516   1  (autoclean)
lp                      7712   0  (autoclean)
parport                24032   1  (autoclean) [parport_pc lp]
ide-scsi                9504   0
scsi_mod               60440   2  [sr_mod sg ide-scsi]
rtc                     8896   0  (autoclean)

I can remove ide-scsi, scsi_mod, but I can't remove either scsi_mod or
cdrom since they still think they are being used by sr_mod.

When I reboot now I get the following (hand-copied since the console is
dead when it happens):

Please stand by while rebooting the system
<6>flushing ide devices: hda hdc hdd
Shutting down devices
Unable to handle kernel paging request at virtual address 3d207061
printing eip:
c01a776d
*pde = 00000000
Oops: 0000
sr_mod cdrom scsi_mod ymfpci ac97_codec soundcore parport_pc lp parport rtc
CPU:    0
EIP:    0060:[<c01a776d>]   Not tainted
EFLAGS: 00010203
EIP is at device_shutdown+0x4d/0x60
eax: 3d207061   ebx: d70aa020   ecx: d7eef000   edx: d70aa020
esi: d70aa020   edi: 3d207061   ebp: bffffd68   esp: d7025e9c
ds: 0068   es: 0068   ss: 0068
Process reboot (pid: 1351, threadinfo=d7024000 task=d7fcd300)
Stack: 01234567 28121969 fee1dead c0121cb1 c0309f68 00000001 00000000 d7cda000
       d7cdaa00 d7cda6c0 c012f20f d7d4b4f8 d7cda000 00000246 d73133a0 c13bf6a0
       d7fc4000 d7fc48c4 d7fc48c0 c012f20f d7fea930 d7fc4000 00000246 d60a9790
Call trace:
  [<c0121cb1>]sys_reboot+0xd1/0x200
  [<c012f20f>]kmem_cache_free+0x19f/0x260
  [<c012f20f>]kmem_cache_free+0x19f/0x260
  [<c012f20f>]kmem_cache_free+0x19f/0x260
  [<c0213613>]sock_destroy_inode+0x13/0x90
  [<c014e012>]destroy_inode+0x32/0x50
  [<c014ccd9>]dput+0x119/0x140
  [<c013be57>]__fput+0xa7/0xd0
  [<c013a84d>]flip_close+0x4d/0x60
  [<c013a8a5>]sys_close+0x45/0x60
  [<c0108b0f>]syscall_call+0x7/0xb

Code: 8b 38 75 c6 85 f6 74 07 56 e8 b5 fa ff ff 5b 5b 5e 5f c3 55
 /etc/rc6.d/S01reboot: line 1:  1351 Segmentation fault      reboot -i -d -p<4>psmouse.c: Lost synchronization, throwing 1 bytes away.

INIT: no more processes left in this runlevel

Additional data:

[root@dad root]# cat /proc/interrupts
           CPU0
  0:     203140          XT-PIC  timer
  1:       1016          XT-PIC  i8042
  2:          0          XT-PIC  cascade
  3:        119          XT-PIC  eth0
  8:          1          XT-PIC  rtc
  9:          0          XT-PIC  acpi, ymfpci
 12:         46          XT-PIC  i8042
 14:       2665          XT-PIC  ide0
 15:         81          XT-PIC  ide1
NMI:          0
LOC:     203086
ERR:        183
MIS:          0

[root@dad root]# cat /proc/ioports
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0070-007f : rtc
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
01f0-01f7 : ide0
0376-0376 : ide1
0378-037a : parport0
03c0-03df : vesafb
03f6-03f6 : ide0
03f8-03ff : serial
0cf8-0cff : PCI conf1
7000-703f : Promise Technology, Inc. 20265
  7000-7007 : ide2
  7008-700f : ide3
  7010-703f : PDC20265
7400-7403 : Promise Technology, Inc. 20265
7800-7807 : Promise Technology, Inc. 20265
8000-8003 : Promise Technology, Inc. 20265
8400-8407 : Promise Technology, Inc. 20265
8800-883f : Intel Corp. 82557/8/9 [Ethernet Pro 100]
  8800-883f : e100
9000-9003 : Yamaha Corporation YMF-754 [DS-1E Audio Controller]
9400-943f : Yamaha Corporation YMF-754 [DS-1E Audio Controller]
b000-b01f : VIA Technologies, Inc. USB (#2)
b400-b41f : VIA Technologies, Inc. USB
b800-b80f : VIA Technologies, Inc. VT82C586B PIPC Bus Master IDE
  b800-b807 : ide0
  b808-b80f : ide1
d000-dfff : PCI Bus #01
  d800-d8ff : ATI Technologies Inc 3D Rage Pro AGP 1X/2X
e200-e27f : VIA Technologies, Inc. VT82C686 [Apollo Super ACPI]
e800-e80f : VIA Technologies, Inc. VT82C686 [Apollo Super ACPI]

[root@dad root]# cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 4
model name      : AMD Athlon(tm) Processor
stepping        : 2
cpu MHz         : 1343.389
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnowbogomips        :
2637.82

[root@dad root]# lspci
00:00.0 Host bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133] (rev
03)
00:01.0 PCI bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133 AGP]
00:04.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South]
(rev 40)
00:04.1 IDE interface: VIA Technologies, Inc. Bus Master IDE (rev 06)
00:04.2 USB Controller: VIA Technologies, Inc. USB (rev 16)
00:04.3 USB Controller: VIA Technologies, Inc. USB (rev 16)
00:04.4 Bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev
40)
00:0a.0 Multimedia audio controller: Yamaha Corporation YMF-754 [DS-1E
Audio Controller]
00:0d.0 Ethernet controller: Intel Corp. 82557/8/9 [Ethernet Pro 100] (rev
08)
00:11.0 Unknown mass storage controller: Promise Technology, Inc. 20265
(rev 02)
01:00.0 VGA compatible controller: ATI Technologies Inc 3D Rage Pro AGP
1X/2X (rev 5c)

config:

#
# Automatically generated by make menuconfig: don't edit
#
CONFIG_X86=y
CONFIG_ISA=y
# CONFIG_SBUS is not set
CONFIG_UID16=y
CONFIG_GENERIC_ISA_DMA=y

#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y

#
# General setup
#
CONFIG_NET=y
CONFIG_SYSVIPC=y
CONFIG_BSD_PROCESS_ACCT=y
CONFIG_SYSCTL=y

#
# Loadable module support
#
CONFIG_MODULES=y
CONFIG_MODVERSIONS=y
CONFIG_KMOD=y

#
# Processor type and features
#
# CONFIG_M386 is ...

read more »

 
 
 

2.5.40: problems loading/unloading ide-scsi modules

Post by walt » Thu, 03 Oct 2002 03:10:07



> ...When I started rmmoding modules I was able to duplicate what others
> were seeing.  This could be associated with module loading in general, but
> I am able to load/unload other modules without problem...

    <snippage>

Quote:> If I try to rmmod sr_mod I get:
>  Segmentation fault

That's what I saw with insmod for ppa.o today.  I wonder if the modutils need
to be recompiled?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. IDE-SCSI kernel param hangs 2.4.20-pre8-ac3 and 2.5.40

In order to write CD's I need to use IDE-SCSI, but when playing DVD's
(yes, it does both) I want to use the IDE interface, so my boot is set
to normally use IDE, but with the "hdd=ide-scsi" parameter I get SCSI.

This works fine up to and including 2.4.20-pre9, but any of the recent
2.4 -ac variants, and 2.5.40 (and maybe earlier) hang on the lattee just
after the enabling of swap space.  Normally the console would next note
that the hard drive parameters are being set, followed by
 "Entering run level: 3".

I get no logs written to disk at this point, and even the ATX power-off
button is inactive.  If you reboot the ext3 journalling does its thing,
and no trace exists of the entire aborted boot.

I've disabled all setting of hard disk stuff, (rc.sysinit already disables
CDROM DMA some time prior to the hang), but no change.

My system has the HD on a Promise card, and the CDROM, DVD on the motherboard
(Epox 8KHA+, VIA 266A chipset) IDE ports, but I get the same results putting
the HD on the VIA port (the Promise bios then doesn't load).

The kernel .config for 2.4.20-pre8 and 2.4.20-pre8-ac3 have no obvious variations
in the IDE etc region.

Pointers welcomed on how to proceed.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. niewbie firewall questions

3. ide-scsi ooops with 2.5.40 (PIIX4 and DVD)

4. cdrecord / Plextor 8432 on Ultra 10 with Solaris 8

5. ALSA Menuconfig Breakage in 2.5.40 and 2.5.40-bk1

6. No output from audio cds?

7. 2.5.40 modules don't load under RH 7.3?

8. HELP - modem/ppp

9. 2.5.40 (-ac4): IDE as modules anyone?

10. 2.5.40 install ide.o module failed

11. 2.5.40: problems with cmd649 ide

12. 2.5.54 fix ide-cd/ide-scsi oopses after module unload

13. compile errors on 2.5.40 - modules ieee1394 and i20