Re: irq sharing leads to system freeze

2015-11-16 Thread Stefan Sperling
On Mon, Nov 16, 2015 at 03:18:37PM +0100, Chris Mailer wrote:
> Hello,
> 
> Im using an old Evo N600c laptop with rtw0 pcmcia cardbus lancard.
> Utilizing the lancard (e.g. through netstart) while playing sound as
> well as playing sound while beeing online leads to an immediate system
> freeze.
> It seems that sound and network share IRQ 11.
> I tried to change the IRQ settings using config(8), which, however,
> doesn't seem to have any effect since the IRQs appear to not been set
> at that early state of boot.
> Here is my dmesg output: http://sprunge.us/KRAa
> Thanks,
> 
>  Chris

PLease always inline dmesg at the bottom of your mail.



irq sharing leads to system freeze

2015-11-16 Thread Chris Mailer
Hello,

Im using an old Evo N600c laptop with rtw0 pcmcia cardbus lancard.
Utilizing the lancard (e.g. through netstart) while playing sound as
well as playing sound while beeing online leads to an immediate system
freeze.
It seems that sound and network share IRQ 11.
I tried to change the IRQ settings using config(8), which, however,
doesn't seem to have any effect since the IRQs appear to not been set
at that early state of boot.
Here is my dmesg output: http://sprunge.us/KRAa
Thanks,

 Chris



Re: irq sharing leads to system freeze

2015-11-16 Thread Theo de Raadt
What you are trying to do is insane, wrong, and entirely unsupported.

> Ok, sorry. Here it comes:
> 20 alipm* at pci* dev -1 function -1 flags 0x0
> 221 viapm* at pci* dev -1 function -1 flags 0x0
> 222 amdiic* at pci* dev -1 function -1 flags 0x0
> 223 nviic* at pci* dev -1 function -1 flags 0x0
> 224 sdhc* at pci* dev -1 function -1 flags 0x0
> 225 kate* at pci* dev -1 function -1 flags 0x0
> 226 km* at pci* dev -1 function -1 flags 0x0
> 227 gcu* at pci* dev -1 function -1 flags 0x0
> --- more ---228 auglx* at pci* dev -1 function -1 flags 0x0
> 229 itherm* at pci* dev -1 function -1 flags 0x0
> 230 glxpcib* at pci* dev -1 function -1 flags 0x0
> 231 rtsx* at pci* dev -1 function -1 flags 0x0
> 232 virtio* at pci* dev -1 function -1 flags 0x0
> 233 vio* at virtio* flags 0x0
> 234 vioblk* at virtio* flags 0x0
> 235 viomb* at virtio* flags 0x0
> 236 viornd* at virtio* flags 0x0
> 237 vioscsi* at virtio* flags 0x0
> 238 agp* at aliagp*|amdagp*|intelagp*|sisagp*|viaagp*|intagp* flags 0x0
> 239 aliagp* at pchb* bus -1 flags 0x0
> --- more ---240 amdagp* at pchb* bus -1 flags 0x0
> 241 intelagp* at pchb* bus -1 flags 0x0
> 242 intagp* at inteldrm* flags 0x0
> 243 sisagp* at pchb* bus -1 flags 0x0
> 244 viaagp* at pchb* bus -1 flags 0x0
> 245 drm0 at inteldrm*|radeondrm* flags 0x0
> 246 drm* at inteldrm*|radeondrm* flags 0x0
> 247 inteldrm* at pci* dev -1 function -1 flags 0x0
> 248 radeondrm* at pci* dev -1 function -1 flags 0x0
> 249 pchb* at pci* dev -1 function -1 flags 0x0
> 250 amas* at pci* disable dev -1 function -1 flags 0x0
> 251 elansc* at pci* dev -1 function -1 flags 0x0
> --- more ---252 geodesc* at pci* dev -1 function -1 flags 0x0
> 253 glxsb* at pci* dev -1 function -1 flags 0x0
> 254 amdmsr0 at mainbus0 bus -1 flags 0x0
> 255 pcib* at pci* dev -1 function -1 flags 0x0
> 256 ichpcib* at pci* dev -1 function -1 flags 0x0
> 257 piixpcib* at pci* dev -1 function -1 flags 0x0
> 258 gscpcib* at pci* dev -1 function -1 flags 0x0
> 259 amdpcib* at pci* dev -1 function -1 flags 0x0
> 260 tcpcib* at pci* dev -1 function -1 flags 0x0
> 261 hme* at pci* dev -1 function -1 flags 0x0
> 262 isa0 at 
> mainbus0|pcib*|amdpcib*|tcpcib*|ichpcib*|piixpcib*|gscpcib*|glxpcib*
> bus -1 flags 0x0
> 263 isadma0 at isa0 port -1 size 0 iomem -1 iosiz 0 irq -1 drq -1 drq2
> -1 flags 0x0
> --- more ---264 fdc0 at isa0 port 0x3f0 size 0 iomem -1
> iosiz 0 irq 6 drq 2 drq2 -1 flags 0x0
> 265 fd* at fdc0 drive -1 flags 0x0
> 266 ast0 at isa0 port 0x1a0 size 0 iomem -1 iosiz 0 irq 5 drq -1 drq2
> -1 flags 0x0
> 267 com0 at isa0 port 0x3f8 size 0 iomem -1 iosiz 0 irq 4 drq -1 drq2
> -1 flags 0x0
> 268 com1 at isa0 port 0x2f8 size 0 iomem -1 iosiz 0 irq 3 drq -1 drq2
> -1 flags 0x0
> 269 com2 at isa0 port 0x3e8 size 0 iomem -1 iosiz 0 irq 5 drq -1 drq2
> -1 flags 0x0
> 270 com3 at isa0 disable port 0x2e8 size 0 iomem -1 iosiz 0 irq 9 drq
> -1 drq2 -1 flags 0x0
> 271 com* at ast0 slave -1 flags 0x0
> 272 com* at pcmcia* function -1 irq -1 flags 0x0
> 273 com* at isapnp0 port -1 size 0 iomem -1 iosiz 0 irq -1 drq -1 flags 0x0
> 274 cy0 at isa0 port -1 size 0 iomem 0xd4000 iosiz 0 irq 12 drq -1
> drq2 -1 flags 0x0
> 275 pckbc0 at isa0 port -1 size 0 iomem -1 iosiz 0 irq -1 drq -1 drq2
> -1 flags 0x0
> --- more ---UKC> change 263
> 263 isadma0 at isa0 port -1 size 0 iomem -1 iosiz 0 irq -1 drq -1 drq2
> -1 flags 0x0
> change (y/n) ?
> change (y/n) ?
> port [-1] ?
> size [0] ?
> iomem [-1] ?
> iosiz [0] ?
> irq [-1] ? 8
> drq [-1] ?
> drq2 [-1] ?
> flags [0] ?
> 263 isadma0 changed
> 263 isadma0 at isa0 port -1 size 0 iomem -1 iosiz 0 irq 8 drq -1 drq2
> -1 flags 0x0
> UKC> boot\^H \^H\^H \^H\^H \^H\^H \^Hquit
> Continuing...
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: date 06/02/02, BIOS32 rev. 0 @ 0xf, SMBIOS rev.
> 2.3 @ 0xfc087 (37 entries)
> bios0: vendor Compaq version "686DF v2.49" date 06/02/2002
> bios0: Compaq Evo N600c
> acpi0 at bios0: rev 0
> acpi0: sleep states S0 S1 S3 S4 S5
> acpi0: tables DSDT FACP SSDT SSDT
> acpi0: wakeup devices C052(S5) C17E(S5) C185(S5) C0A4(S3) C0AA(S3)
> C19F(S3) C1A0(S3) C1A3(S4) C1A4(S4)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpiprt0 at acpi0: bus -1 (C03F)
> acpiprt1 at acpi0: bus -1 (C17E)
> acpiprt2 at acpi0: bus -1 (C052)
> acpiprt3 at acpi0: bus -1 (C03E)
> acpicpu0 at acpi0: !C3(250@225 io@0x1085), !C2(500@2 io@0x1014),
> C1(1000@1 halt), FVS, 1066, 733 MHz
> acpipwrres0 at acpi0: C14E, resource for C149
> acpipwrres1 at acpi0: C162, resource for C14F
> acpipwrres2 at acpi0: C167, resource for C166
> acpipwrres3 at acpi0: C16B, resource for C168
> acpipwrres4 at acpi0: C174, resource for C172
> acpipwrres5 at acpi0: C1F3, resource for C1F6
> acpipwrres6 at acpi0: C1F4, resource for C1F7
> acpipwrres7 at acpi0: C1F5, resource for C1F8
> acpitz0 at acpi0: critical temperature is 108 degC
> acpiac0 at acpi0: AC unit online
> acpidock0 at acpi0: C14D not docked (0)
> 

Re: irq sharing leads to system freeze

2015-11-16 Thread Chris Mailer
Ok, sorry. Here it comes:
20 alipm* at pci* dev -1 function -1 flags 0x0
221 viapm* at pci* dev -1 function -1 flags 0x0
222 amdiic* at pci* dev -1 function -1 flags 0x0
223 nviic* at pci* dev -1 function -1 flags 0x0
224 sdhc* at pci* dev -1 function -1 flags 0x0
225 kate* at pci* dev -1 function -1 flags 0x0
226 km* at pci* dev -1 function -1 flags 0x0
227 gcu* at pci* dev -1 function -1 flags 0x0
--- more ---228 auglx* at pci* dev -1 function -1 flags 0x0
229 itherm* at pci* dev -1 function -1 flags 0x0
230 glxpcib* at pci* dev -1 function -1 flags 0x0
231 rtsx* at pci* dev -1 function -1 flags 0x0
232 virtio* at pci* dev -1 function -1 flags 0x0
233 vio* at virtio* flags 0x0
234 vioblk* at virtio* flags 0x0
235 viomb* at virtio* flags 0x0
236 viornd* at virtio* flags 0x0
237 vioscsi* at virtio* flags 0x0
238 agp* at aliagp*|amdagp*|intelagp*|sisagp*|viaagp*|intagp* flags 0x0
239 aliagp* at pchb* bus -1 flags 0x0
--- more ---240 amdagp* at pchb* bus -1 flags 0x0
241 intelagp* at pchb* bus -1 flags 0x0
242 intagp* at inteldrm* flags 0x0
243 sisagp* at pchb* bus -1 flags 0x0
244 viaagp* at pchb* bus -1 flags 0x0
245 drm0 at inteldrm*|radeondrm* flags 0x0
246 drm* at inteldrm*|radeondrm* flags 0x0
247 inteldrm* at pci* dev -1 function -1 flags 0x0
248 radeondrm* at pci* dev -1 function -1 flags 0x0
249 pchb* at pci* dev -1 function -1 flags 0x0
250 amas* at pci* disable dev -1 function -1 flags 0x0
251 elansc* at pci* dev -1 function -1 flags 0x0
--- more ---252 geodesc* at pci* dev -1 function -1 flags 0x0
253 glxsb* at pci* dev -1 function -1 flags 0x0
254 amdmsr0 at mainbus0 bus -1 flags 0x0
255 pcib* at pci* dev -1 function -1 flags 0x0
256 ichpcib* at pci* dev -1 function -1 flags 0x0
257 piixpcib* at pci* dev -1 function -1 flags 0x0
258 gscpcib* at pci* dev -1 function -1 flags 0x0
259 amdpcib* at pci* dev -1 function -1 flags 0x0
260 tcpcib* at pci* dev -1 function -1 flags 0x0
261 hme* at pci* dev -1 function -1 flags 0x0
262 isa0 at mainbus0|pcib*|amdpcib*|tcpcib*|ichpcib*|piixpcib*|gscpcib*|glxpcib*
bus -1 flags 0x0
263 isadma0 at isa0 port -1 size 0 iomem -1 iosiz 0 irq -1 drq -1 drq2
-1 flags 0x0
--- more ---264 fdc0 at isa0 port 0x3f0 size 0 iomem -1
iosiz 0 irq 6 drq 2 drq2 -1 flags 0x0
265 fd* at fdc0 drive -1 flags 0x0
266 ast0 at isa0 port 0x1a0 size 0 iomem -1 iosiz 0 irq 5 drq -1 drq2
-1 flags 0x0
267 com0 at isa0 port 0x3f8 size 0 iomem -1 iosiz 0 irq 4 drq -1 drq2
-1 flags 0x0
268 com1 at isa0 port 0x2f8 size 0 iomem -1 iosiz 0 irq 3 drq -1 drq2
-1 flags 0x0
269 com2 at isa0 port 0x3e8 size 0 iomem -1 iosiz 0 irq 5 drq -1 drq2
-1 flags 0x0
270 com3 at isa0 disable port 0x2e8 size 0 iomem -1 iosiz 0 irq 9 drq
-1 drq2 -1 flags 0x0
271 com* at ast0 slave -1 flags 0x0
272 com* at pcmcia* function -1 irq -1 flags 0x0
273 com* at isapnp0 port -1 size 0 iomem -1 iosiz 0 irq -1 drq -1 flags 0x0
274 cy0 at isa0 port -1 size 0 iomem 0xd4000 iosiz 0 irq 12 drq -1
drq2 -1 flags 0x0
275 pckbc0 at isa0 port -1 size 0 iomem -1 iosiz 0 irq -1 drq -1 drq2
-1 flags 0x0
--- more ---UKC> change 263
263 isadma0 at isa0 port -1 size 0 iomem -1 iosiz 0 irq -1 drq -1 drq2
-1 flags 0x0
change (y/n) ?
change (y/n) ?
port [-1] ?
size [0] ?
iomem [-1] ?
iosiz [0] ?
irq [-1] ? 8
drq [-1] ?
drq2 [-1] ?
flags [0] ?
263 isadma0 changed
263 isadma0 at isa0 port -1 size 0 iomem -1 iosiz 0 irq 8 drq -1 drq2
-1 flags 0x0
UKC> boot\^H \^H\^H \^H\^H \^H\^H \^Hquit
Continuing...
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 06/02/02, BIOS32 rev. 0 @ 0xf, SMBIOS rev.
2.3 @ 0xfc087 (37 entries)
bios0: vendor Compaq version "686DF v2.49" date 06/02/2002
bios0: Compaq Evo N600c
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP SSDT SSDT
acpi0: wakeup devices C052(S5) C17E(S5) C185(S5) C0A4(S3) C0AA(S3)
C19F(S3) C1A0(S3) C1A3(S4) C1A4(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiprt0 at acpi0: bus -1 (C03F)
acpiprt1 at acpi0: bus -1 (C17E)
acpiprt2 at acpi0: bus -1 (C052)
acpiprt3 at acpi0: bus -1 (C03E)
acpicpu0 at acpi0: !C3(250@225 io@0x1085), !C2(500@2 io@0x1014),
C1(1000@1 halt), FVS, 1066, 733 MHz
acpipwrres0 at acpi0: C14E, resource for C149
acpipwrres1 at acpi0: C162, resource for C14F
acpipwrres2 at acpi0: C167, resource for C166
acpipwrres3 at acpi0: C16B, resource for C168
acpipwrres4 at acpi0: C174, resource for C172
acpipwrres5 at acpi0: C1F3, resource for C1F6
acpipwrres6 at acpi0: C1F4, resource for C1F7
acpipwrres7 at acpi0: C1F5, resource for C1F8
acpitz0 at acpi0: critical temperature is 108 degC
acpiac0 at acpi0: AC unit online
acpidock0 at acpi0: C14D not docked (0)
bios0: ROM list: 0xc/0xf000
cpu0 at mainbus0: (uniprocessor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82830M Host" rev 0x04
intelagp0 at pchb0
agp0 at intelagp0: aperture at 0x6000, size 

Re: irq sharing leads to system freeze

2015-11-16 Thread Ted Unangst
Chris Mailer wrote:
> Ok, thanks for the straight forward reply:)
> Is there any other solution to get lan and wifi working together?

Find the bug. :) Interrupt sharing should not be a problem. It indicates a
some other problem exists, and that's the one that should be fixed.

This is not necessarily easy, but half-hearted workarounds aren't any better.



Re: irq sharing leads to system freeze

2015-11-16 Thread Chris Mailer
Ok, thanks for the straight forward reply:)
Is there any other solution to get lan and wifi working together?
Thanks,
Chris

On 11/16/15, Theo de Raadt  wrote:
> What you are trying to do is insane, wrong, and entirely unsupported.
>
>> Ok, sorry. Here it comes:
>> 20 alipm* at pci* dev -1 function -1 flags 0x0
>> 221 viapm* at pci* dev -1 function -1 flags 0x0
>> 222 amdiic* at pci* dev -1 function -1 flags 0x0
>> 223 nviic* at pci* dev -1 function -1 flags 0x0
>> 224 sdhc* at pci* dev -1 function -1 flags 0x0
>> 225 kate* at pci* dev -1 function -1 flags 0x0
>> 226 km* at pci* dev -1 function -1 flags 0x0
>> 227 gcu* at pci* dev -1 function -1 flags 0x0
>> --- more ---228 auglx* at pci* dev -1 function -1 flags 0x0
>> 229 itherm* at pci* dev -1 function -1 flags 0x0
>> 230 glxpcib* at pci* dev -1 function -1 flags 0x0
>> 231 rtsx* at pci* dev -1 function -1 flags 0x0
>> 232 virtio* at pci* dev -1 function -1 flags 0x0
>> 233 vio* at virtio* flags 0x0
>> 234 vioblk* at virtio* flags 0x0
>> 235 viomb* at virtio* flags 0x0
>> 236 viornd* at virtio* flags 0x0
>> 237 vioscsi* at virtio* flags 0x0
>> 238 agp* at aliagp*|amdagp*|intelagp*|sisagp*|viaagp*|intagp* flags 0x0
>> 239 aliagp* at pchb* bus -1 flags 0x0
>> --- more ---240 amdagp* at pchb* bus -1 flags 0x0
>> 241 intelagp* at pchb* bus -1 flags 0x0
>> 242 intagp* at inteldrm* flags 0x0
>> 243 sisagp* at pchb* bus -1 flags 0x0
>> 244 viaagp* at pchb* bus -1 flags 0x0
>> 245 drm0 at inteldrm*|radeondrm* flags 0x0
>> 246 drm* at inteldrm*|radeondrm* flags 0x0
>> 247 inteldrm* at pci* dev -1 function -1 flags 0x0
>> 248 radeondrm* at pci* dev -1 function -1 flags 0x0
>> 249 pchb* at pci* dev -1 function -1 flags 0x0
>> 250 amas* at pci* disable dev -1 function -1 flags 0x0
>> 251 elansc* at pci* dev -1 function -1 flags 0x0
>> --- more ---252 geodesc* at pci* dev -1 function -1 flags 0x0
>> 253 glxsb* at pci* dev -1 function -1 flags 0x0
>> 254 amdmsr0 at mainbus0 bus -1 flags 0x0
>> 255 pcib* at pci* dev -1 function -1 flags 0x0
>> 256 ichpcib* at pci* dev -1 function -1 flags 0x0
>> 257 piixpcib* at pci* dev -1 function -1 flags 0x0
>> 258 gscpcib* at pci* dev -1 function -1 flags 0x0
>> 259 amdpcib* at pci* dev -1 function -1 flags 0x0
>> 260 tcpcib* at pci* dev -1 function -1 flags 0x0
>> 261 hme* at pci* dev -1 function -1 flags 0x0
>> 262 isa0 at
>> mainbus0|pcib*|amdpcib*|tcpcib*|ichpcib*|piixpcib*|gscpcib*|glxpcib*
>> bus -1 flags 0x0
>> 263 isadma0 at isa0 port -1 size 0 iomem -1 iosiz 0 irq -1 drq -1 drq2
>> -1 flags 0x0
>> --- more ---264 fdc0 at isa0 port 0x3f0 size 0 iomem -1
>> iosiz 0 irq 6 drq 2 drq2 -1 flags 0x0
>> 265 fd* at fdc0 drive -1 flags 0x0
>> 266 ast0 at isa0 port 0x1a0 size 0 iomem -1 iosiz 0 irq 5 drq -1 drq2
>> -1 flags 0x0
>> 267 com0 at isa0 port 0x3f8 size 0 iomem -1 iosiz 0 irq 4 drq -1 drq2
>> -1 flags 0x0
>> 268 com1 at isa0 port 0x2f8 size 0 iomem -1 iosiz 0 irq 3 drq -1 drq2
>> -1 flags 0x0
>> 269 com2 at isa0 port 0x3e8 size 0 iomem -1 iosiz 0 irq 5 drq -1 drq2
>> -1 flags 0x0
>> 270 com3 at isa0 disable port 0x2e8 size 0 iomem -1 iosiz 0 irq 9 drq
>> -1 drq2 -1 flags 0x0
>> 271 com* at ast0 slave -1 flags 0x0
>> 272 com* at pcmcia* function -1 irq -1 flags 0x0
>> 273 com* at isapnp0 port -1 size 0 iomem -1 iosiz 0 irq -1 drq -1 flags
>> 0x0
>> 274 cy0 at isa0 port -1 size 0 iomem 0xd4000 iosiz 0 irq 12 drq -1
>> drq2 -1 flags 0x0
>> 275 pckbc0 at isa0 port -1 size 0 iomem -1 iosiz 0 irq -1 drq -1 drq2
>> -1 flags 0x0
>> --- more ---UKC> change 263
>> 263 isadma0 at isa0 port -1 size 0 iomem -1 iosiz 0 irq -1 drq -1 drq2
>> -1 flags 0x0
>> change (y/n) ?
>> change (y/n) ?
>> port [-1] ?
>> size [0] ?
>> iomem [-1] ?
>> iosiz [0] ?
>> irq [-1] ? 8
>> drq [-1] ?
>> drq2 [-1] ?
>> flags [0] ?
>> 263 isadma0 changed
>> 263 isadma0 at isa0 port -1 size 0 iomem -1 iosiz 0 irq 8 drq -1 drq2
>> -1 flags 0x0
>> UKC> boot\^H \^H\^H \^H\^H \^H\^H \^Hquit
>> Continuing...
>> mpath0 at root
>> scsibus0 at mpath0: 256 targets
>> mainbus0 at root
>> bios0 at mainbus0: date 06/02/02, BIOS32 rev. 0 @ 0xf, SMBIOS rev.
>> 2.3 @ 0xfc087 (37 entries)
>> bios0: vendor Compaq version "686DF v2.49" date 06/02/2002
>> bios0: Compaq Evo N600c
>> acpi0 at bios0: rev 0
>> acpi0: sleep states S0 S1 S3 S4 S5
>> acpi0: tables DSDT FACP SSDT SSDT
>> acpi0: wakeup devices C052(S5) C17E(S5) C185(S5) C0A4(S3) C0AA(S3)
>> C19F(S3) C1A0(S3) C1A3(S4) C1A4(S4)
>> acpitimer0 at acpi0: 3579545 Hz, 24 bits
>> acpiprt0 at acpi0: bus -1 (C03F)
>> acpiprt1 at acpi0: bus -1 (C17E)
>> acpiprt2 at acpi0: bus -1 (C052)
>> acpiprt3 at acpi0: bus -1 (C03E)
>> acpicpu0 at acpi0: !C3(250@225 io@0x1085), !C2(500@2 io@0x1014),
>> C1(1000@1 halt), FVS, 1066, 733 MHz
>> acpipwrres0 at acpi0: C14E, resource for C149
>> acpipwrres1 at acpi0: C162, resource for C14F
>> acpipwrres2 at acpi0: C167, resource for C166
>> acpipwrres3 at acpi0: C16B, resource for C168
>> acpipwrres4 at acpi0: