linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PROBLEM : PCI hotplug crashes with 2.4.9
@ 2001-08-20 19:33 Pierre JUHEN
  2001-08-20 19:36 ` Greg KH
  0 siblings, 1 reply; 6+ messages in thread
From: Pierre JUHEN @ 2001-08-20 19:33 UTC (permalink / raw)
  To: mj, linux-kernel, linux-hotplug-devel

[1.] PCI hotplug crashes with 2.4.9

[2.] hotplug causes the system to crash with kernel 2.4.9 (same
configuration with 2.4.6 was OK). A manual run of
"/etc/rc.d/init.d/hotplug start" shows that the system crashes
immediatly when the system starts to scan the PCI devices. Only the
first line "pcimodules scanning 00:00.0" is displayed. No trace is
written in /var/log/messages.

[3.] PCI hotplug kernel
[4.] Linux version 2.4.9 (root@pierre.juhen) (gcc version 2.96 20000731
(Red Hat Linux 7.1 2.96-81)) #2 dim aoû 19 19:02:56 CEST 2001
[5.]
[6.] /etc/hotplug/pci.rc start
[7.]
[7.1] Software

Linux pierre.juhen 2.4.9 #2 dim aoû 19 19:02:56 CEST 2001 i686 unknown

Gnu C                  2.96
Gnu make               3.79.1
binutils               2.10.91.0.2
util-linux             2.10s
mount                  2.11b
modutils               2.4.2
e2fsprogs              1.19
reiserfsprogs          3.x.0b
pcmcia-cs              3.1.19
PPP                    2.4.0
isdn4k-utils           3.1pre1
Linux C Library        2.2.2
Dynamic linker (ldd)   2.2.2
Procps                 2.0.7
Net-tools              1.56
Console-tools          0.3.3
Sh-utils               2.0


[7.2] Processor

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 5
model name      : Pentium II (Deschutes)
stepping        : 2
cpu MHz         : 400.914
cache size      : 512 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca
cmov pat pse36 mmx fxsr
bogomips        : 799.53

[7.3] modules

pppoatm                 2832   1
ppp_generic            14816   3 [pppoatm]
slhc                    5024   0 [ppp_generic]
usb-uhci               21088   0 (unused)
speedtch               11568   3
snd-seq-midi            3600   0 (unused)
snd-seq-midi-event      3264   0 [snd-seq-midi]
snd-seq                41792   0 [snd-seq-midi snd-seq-midi-event]
snd-card-ens1371        2288   0
snd-ens1371             9664   0 [snd-card-ens1371]
snd-rawmidi            10080   0 [snd-seq-midi snd-ens1371]
snd-seq-device          4016   0 [snd-seq-midi snd-seq snd-rawmidi]
snd-pcm                31520   0 [snd-ens1371]
snd-timer               8560   0 [snd-seq snd-pcm]
snd-ac97-codec         25024   0 [snd-ens1371]
snd-mixer              24608   0 [snd-ens1371 snd-ac97-codec]
snd                    34896   1 [snd-seq-midi snd-seq-midi-event
snd-seq snd-card-ens1371 snd-ens1371 snd-rawmidi snd-seq-device snd-pcm
snd-timer snd-ac97-codec snd-mixer]
soundcore               4144   2 [snd]
3c509                   6224   1 (autoclean)
ipchains               35904   0 (unused)
nls_iso8859-1           2880   1 (autoclean)
nls_cp437               4384   1 (autoclean)
vfat                    9424   1 (autoclean)
fat                    32320   0 (autoclean) [vfat]
usbcore                50272   1 [usb-uhci speedtch]

[7.4]  iomem / ioports

00000000-0009fbff : System RAM
0009fc00-0009ffff : reserved
000a0000-000bffff : Video RAM area
000c0000-000c7fff : Video ROM
000c8000-000cdfff : Extension ROM
000f0000-000fffff : System ROM
00100000-07feffff : System RAM
  00100000-001fb813 : Kernel code
  001fb814-00257b7f : Kernel data
07ff0000-07ff2fff : ACPI Non-volatile Storage
07ff3000-07ffffff : ACPI Tables
d8000000-dbffffff : Intel Corporation 440BX/ZX - 82443BX/ZX Host bridge
dc000000-deffffff : PCI Bus #01
  dc000000-dc003fff : Matrox Graphics, Inc. MGA G200 AGP
  dd000000-dd7fffff : Matrox Graphics, Inc. MGA G200 AGP
df000000-dfffffff : PCI Bus #01
  df000000-dfffffff : Matrox Graphics, Inc. MGA G200 AGP
e1000000-e1003fff : PCI device 104c:8020 (Texas Instruments)
e1004000-e1004fff : Adaptec AHA-2940U/UW / AHA-39xx / AIC-7895
  e1004000-e1004fff : aic7xxx
e1005000-e10057ff : PCI device 104c:8020 (Texas Instruments)
e1006000-e1006fff : Adaptec AHA-2940U/UW / AHA-39xx / AIC-7895 (#2)
  e1006000-e1006fff : aic7xxx
ffff0000-ffffffff : reserved

0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
01f0-01f7 : ide0
0280-028f : 3c509
02f8-02ff : serial(auto)
03c0-03df : vga+
03f6-03f6 : ide0
03f8-03ff : serial(auto)
0cf8-0cff : PCI conf1
4000-403f : Intel Corporation 82371AB PIIX4 ACPI
5000-501f : Intel Corporation 82371AB PIIX4 ACPI
e000-e01f : Intel Corporation 82371AB PIIX4 USB
  e000-e01f : usb-uhci
e400-e43f : Ensoniq ES1371 [AudioPCI-97]
  e400-e43f : Ensoniq AudioPCI
e800-e8ff : Adaptec AHA-2940U/UW / AHA-39xx / AIC-7895
ec00-ecff : Adaptec AHA-2940U/UW / AHA-39xx / AIC-7895 (#2)
f000-f00f : Intel Corporation 82371AB PIIX4 IDE

[7.5] PCI

00:00.0 Host bridge: Intel Corporation 440BX/ZX - 82443BX/ZX Host bridge
(rev 02)
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
        Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort+ >SERR- <PERR+
        Latency: 32
        Region 0: Memory at d8000000 (32-bit, prefetchable) [size=64M]
        Capabilities: [a0] AGP version 1.0
                Status: RQ=31 SBA+ 64bit- FW- Rate=x1,x2
                Command: RQ=0 SBA- AGP- 64bit- FW- Rate=<none>

00:01.0 PCI bridge: Intel Corporation 440BX/ZX - 82443BX/ZX AGP bridge
(rev 02) (prog-if 00 [Normal decode])
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR+ FastB2B-
        Status: Cap- 66Mhz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 64
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
        I/O behind bridge: 0000f000-00000fff
        Memory behind bridge: dc000000-deffffff
        Prefetchable memory behind bridge: df000000-dfffffff
        BridgeCtl: Parity- SERR- NoISA- VGA+ MAbort- >Reset- FastB2B+

00:07.0 ISA bridge: Intel Corporation 82371AB PIIX4 ISA (rev 02)
        Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
        Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 0

00:07.1 IDE interface: Intel Corporation 82371AB PIIX4 IDE (rev 01)
(prog-if 80 [Master])
        Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
        Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 32
        Region 4: I/O ports at f000 [size=16]

00:07.2 USB Controller: Intel Corporation 82371AB PIIX4 USB (rev 01)
(prog-if 00 [UHCI])
        Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
        Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 32
        Interrupt: pin D routed to IRQ 11
        Region 4: I/O ports at e000 [size=32]

00:07.3 Bridge: Intel Corporation 82371AB PIIX4 ACPI (rev 02)
        Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
        Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Interrupt: pin ? routed to IRQ 9

00:0f.0 FireWire (IEEE 1394): Texas Instruments: Unknown device 8020
(prog-if 10 [OHCI])
        Subsystem: Pinnacle Systems Inc.: Unknown device 000e
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
        Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 32 (500ns min, 1000ns max), cache line size 08
        Interrupt: pin A routed to IRQ 15
        Region 0: Memory at e1005000 (32-bit, non-prefetchable)
[size=2K]
        Region 1: Memory at e1000000 (32-bit, non-prefetchable)
[size=16K]
        Capabilities: [44] Power Management version 1
                Flags: PMEClk- DSI- D1- D2+ AuxCurrent=0mA
PME(D0-,D1-,D2+,D3hot+,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:10.0 Multimedia audio controller: Ensoniq ES1371 [AudioPCI-97] (rev
02)
        Subsystem: Ensoniq Creative Sound Blaster AudioPCI64V,
AudioPCI128
        Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
        Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort-
<TAbort+ <MAbort+ >SERR- <PERR-
        Latency: 64 (3000ns min, 32000ns max)
        Interrupt: pin A routed to IRQ 10
        Region 0: I/O ports at e400 [size=64]
        Capabilities: [dc] Power Management version 1
                Flags: PMEClk- DSI+ D1- D2+ AuxCurrent=0mA
PME(D0+,D1-,D2+,D3hot+,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:14.0 SCSI storage controller: Adaptec AHA-2940U/UW / AHA-39xx /
AIC-7895 (rev 04)
        Subsystem: Adaptec AHA-2940U/2940UW Dual AHA-394xAU/AUW/AUWD
AIC-7895B
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
        Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 32 (2000ns min, 2000ns max)
        Interrupt: pin A routed to IRQ 11
        Region 0: I/O ports at e800 [disabled] [size=256]
        Region 1: Memory at e1004000 (32-bit, non-prefetchable)
[size=4K]
        Expansion ROM at e0000000 [disabled] [size=64K]
        Capabilities: [dc] Power Management version 1
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:14.1 SCSI storage controller: Adaptec AHA-2940U/UW / AHA-39xx /
AIC-7895 (rev 04)
        Subsystem: Adaptec AHA-2940U/2940UW Dual AHA-394xAU/AUW/AUWD
AIC-7895B
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
        Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 32 (2000ns min, 2000ns max)
        Interrupt: pin B routed to IRQ 15
        Region 0: I/O ports at ec00 [disabled] [size=256]
        Region 1: Memory at e1006000 (32-bit, non-prefetchable)
[size=4K]
        Capabilities: [dc] Power Management version 1
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-

01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G200 AGP
(rev 01) (prog-if 00 [VGA])
        Subsystem: Matrox Graphics, Inc. MGA-G200 AGP
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
        Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 32 (4000ns min, 8000ns max), cache line size 08
        Interrupt: pin A routed to IRQ 15
        Region 0: Memory at df000000 (32-bit, prefetchable) [size=16M]
        Region 1: Memory at dc000000 (32-bit, non-prefetchable)
[size=16K]
        Region 2: Memory at dd000000 (32-bit, non-prefetchable)
[size=8M]
        Expansion ROM at <unassigned> [disabled] [size=64K]
        Capabilities: [dc] Power Management version 1
                Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [f0] AGP version 1.0
                Status: RQ=31 SBA+ 64bit- FW- Rate=x1,x2
                Command: RQ=31 SBA+ AGP+ 64bit- FW- Rate=x2

[7.6] SCSI

Host: scsi0 Channel: 00 Id: 04 Lun: 00
  Vendor: MATSHITA Model: CD-R   CW-7502   Rev: 4.10
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 06 Lun: 00
  Vendor: IBM      Model: DDRS-34560W      Rev: S97B
  Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 10 Lun: 00
  Vendor: IBM      Model: DDRS-39130D      Rev: DC1B
  Type:   Direct-Access                    ANSI SCSI revision: 02

[7.7] hotplug version : hotplug-2001_04_24-1_7.x (binary RPM)

[8.] Workaround : rename /etc/hotplug/pci.rc for example with
/etc/hotplug/pci.not-rc. This disable PCI hotplug but keeps
USB hotplugging




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: PROBLEM : PCI hotplug crashes with 2.4.9
  2001-08-20 19:33 PROBLEM : PCI hotplug crashes with 2.4.9 Pierre JUHEN
@ 2001-08-20 19:36 ` Greg KH
  2001-08-20 22:50   ` David Brownell
  0 siblings, 1 reply; 6+ messages in thread
From: Greg KH @ 2001-08-20 19:36 UTC (permalink / raw)
  To: Pierre JUHEN; +Cc: mj, linux-kernel, linux-hotplug-devel

On Mon, Aug 20, 2001 at 09:33:43PM +0200, Pierre JUHEN wrote:
> 
> [3.] PCI hotplug kernel

Do you mean a kernel with the PCI hotplug controller patch that is
at http://www.kroah.com/linux/hotplug/  ?

Or just the CONFIG_HOTPLUG selection enabled?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: PROBLEM : PCI hotplug crashes with 2.4.9
  2001-08-20 19:36 ` Greg KH
@ 2001-08-20 22:50   ` David Brownell
  2001-08-21 18:04     ` Pierre JUHEN
  0 siblings, 1 reply; 6+ messages in thread
From: David Brownell @ 2001-08-20 22:50 UTC (permalink / raw)
  To: Greg KH, Pierre JUHEN; +Cc: mj, linux-kernel, linux-hotplug-devel

>     Only the
> first line "pcimodules scanning 00:00.0" is displayed.

Curious.  If anything, I'd expect it to say
"pcimodules is scanning more than 00:00.0".
(The last version I saw didn't have a way to
scan for modules appropriate to a particular
PCI slot, and the hotplug scripts warn about
that limitation.)

You might try renaming "pcimodules" to "pcimodules-"
to see if that changes any interesting behavior.  I notice
you're using RedHat with 7.1 and usb-uhci.  I seem to
recall that Kudzu wanted to do some hotplug-ish things;
they may not play well together yet.

- Dave



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: PROBLEM : PCI hotplug crashes with 2.4.9
  2001-08-20 22:50   ` David Brownell
@ 2001-08-21 18:04     ` Pierre JUHEN
  2001-08-21 18:22       ` David Brownell
  0 siblings, 1 reply; 6+ messages in thread
From: Pierre JUHEN @ 2001-08-21 18:04 UTC (permalink / raw)
  To: David Brownell; +Cc: Greg KH, mj, linux-kernel, linux-hotplug-devel

I was a bit lazy, writing by memory : you are right the system says

"pcimodules is scanning more than 00:00.0"

but onluy this line and crashes. Under 2.4.6, it scans all the pci
adresses.

Renaming pcimodules to pcimodules- leads to " ** can't synthesize pci
hotplug events".

On my system, kudzu is started after hotplug, so the problem seems not
linked with that,
since it crashes even during boot, very early, just after fsck.




David Brownell a écrit :

> >     Only the
> > first line "pcimodules scanning 00:00.0" is displayed.
>
> Curious.  If anything, I'd expect it to say
> "pcimodules is scanning more than 00:00.0".
> (The last version I saw didn't have a way to
> scan for modules appropriate to a particular
> PCI slot, and the hotplug scripts warn about
> that limitation.)
>
> You might try renaming "pcimodules" to "pcimodules-"
> to see if that changes any interesting behavior.  I notice
> you're using RedHat with 7.1 and usb-uhci.  I seem to
> recall that Kudzu wanted to do some hotplug-ish things;
> they may not play well together yet.
>
> - Dave


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: PROBLEM : PCI hotplug crashes with 2.4.9
  2001-08-21 18:04     ` Pierre JUHEN
@ 2001-08-21 18:22       ` David Brownell
  2001-08-21 21:09         ` Pierre JUHEN
  0 siblings, 1 reply; 6+ messages in thread
From: David Brownell @ 2001-08-21 18:22 UTC (permalink / raw)
  To: Pierre JUHEN; +Cc: Greg KH, mj, linux-kernel, linux-hotplug-devel

> I was a bit lazy, writing by memory : you are right the system says
>
> "pcimodules is scanning more than 00:00.0"
>
> but onluy this line and crashes. Under 2.4.6, it scans all the pci
> adresses.

Then you should be able to try reproducing this by hand,
without hotplug scripts at all.  Is it "pcimodules" that's making
it crash?  Or is it the subsequent "modprobe" commands?
Neither of those is supposed to be able to crash the kernel.

You should be able to track this down pretty easily.  Disable
the /etc/hotplug/pci.rc script for a moment ("pci.rc-"), boot, then
run it by hand like "sh -x pci.rc start".  That's pretty much the way
it's done at boot time, except that by passing the "-x" you get
some nice debug output, and will be able to see what user
mode command caused the crash.

- Dave




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: PROBLEM : PCI hotplug crashes with 2.4.9
  2001-08-21 18:22       ` David Brownell
@ 2001-08-21 21:09         ` Pierre JUHEN
  0 siblings, 0 replies; 6+ messages in thread
From: Pierre JUHEN @ 2001-08-21 21:09 UTC (permalink / raw)
  To: David Brownell; +Cc: Greg KH, mj, linux-kernel, linux-hotplug-devel

The offending command is "/sbin/modprobe ohci1394".

Thank you for your help.

I will dig around ieee1394 tomorrow.

Regards,

Pierre
_________________________________________

David Brownell a écrit :

> > I was a bit lazy, writing by memory : you are right the system says
> >
> > "pcimodules is scanning more than 00:00.0"
> >
> > but onluy this line and crashes. Under 2.4.6, it scans all the pci
> > adresses.
> 
> Then you should be able to try reproducing this by hand,
> without hotplug scripts at all.  Is it "pcimodules" that's making
> it crash?  Or is it the subsequent "modprobe" commands?
> Neither of those is supposed to be able to crash the kernel.
> 
> You should be able to track this down pretty easily.  Disable
> the /etc/hotplug/pci.rc script for a moment ("pci.rc-"), boot, then
> run it by hand like "sh -x pci.rc start".  That's pretty much the way
> it's done at boot time, except that by passing the "-x" you get
> some nice debug output, and will be able to see what user
> mode command caused the crash.
> 
> - Dave

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-08-21 21:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-20 19:33 PROBLEM : PCI hotplug crashes with 2.4.9 Pierre JUHEN
2001-08-20 19:36 ` Greg KH
2001-08-20 22:50   ` David Brownell
2001-08-21 18:04     ` Pierre JUHEN
2001-08-21 18:22       ` David Brownell
2001-08-21 21:09         ` Pierre JUHEN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).