* 2.4.0-test11-pre7: isapnp hang
@ 2000-11-19 23:34 Tim Waugh
2000-11-20 0:09 ` Alan Cox
2000-11-20 0:32 ` H. Peter Anvin
0 siblings, 2 replies; 8+ messages in thread
From: Tim Waugh @ 2000-11-19 23:34 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 325 bytes --]
Reading from port 0x313 (my ISA NE2000 is at 0x300-0x31f) hangs my
machine dead. Unfortunately, reading from that port is exactly what
the isapnp code does on boot, if compiled into the kernel.
Is it the network card's fault (probably), or is there a less invasive
probe that isapnp could use (unlikely, I guess)?
Tim.
*/
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: 2.4.0-test11-pre7: isapnp hang
2000-11-19 23:34 2.4.0-test11-pre7: isapnp hang Tim Waugh
@ 2000-11-20 0:09 ` Alan Cox
2000-11-20 0:19 ` Alan Cox
2000-11-20 0:32 ` H. Peter Anvin
1 sibling, 1 reply; 8+ messages in thread
From: Alan Cox @ 2000-11-20 0:09 UTC (permalink / raw)
To: Tim Waugh; +Cc: linux-kernel
> Reading from port 0x313 (my ISA NE2000 is at 0x300-0x31f) hangs my
> machine dead. Unfortunately, reading from that port is exactly what
> the isapnp code does on boot, if compiled into the kernel.
>
> Is it the network card's fault (probably), or is there a less invasive
> probe that isapnp could use (unlikely, I guess)?
That shouldnt be possible - we are supposed to start at 0x203 and skip the
problem area.
static int isapnp_next_rdp(void)
{
int rdp = isapnp_rdp;
while (rdp <= 0x3ff) {
if (!check_region(rdp, 1)) {
isapnp_rdp = rdp;
return 0;
}
rdp += RDP_STEP;
/*
* We cannot use NE2000 probe spaces for ISAPnP or we
* will lock up machines.
*/
if(rdp >= 0x280 && rdp <= 0x380)
continue;
}
return -1;
}
If you can find out why that port is being touched I'd like to know
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: 2.4.0-test11-pre7: isapnp hang
2000-11-20 0:09 ` Alan Cox
@ 2000-11-20 0:19 ` Alan Cox
2000-11-20 9:23 ` Tim Waugh
0 siblings, 1 reply; 8+ messages in thread
From: Alan Cox @ 2000-11-20 0:19 UTC (permalink / raw)
To: Alan Cox; +Cc: Tim Waugh, linux-kernel
> > Is it the network card's fault (probably), or is there a less invasive
> > probe that isapnp could use (unlikely, I guess)?
>
>
> That shouldnt be possible - we are supposed to start at 0x203 and skip the
> problem area.
And a quick read of the code I pasted instead of just pasting suggests instead
we should be using the patch below. Question however is who stole port 0x279
which is the normal port to use. It shouldnt be lp since lp is supposed to
init after pnp.
--- drivers/pnp/isapnp.c.old Tue Oct 31 20:29:59 2000
+++ drivers/pnp/isapnp.c Sun Nov 19 23:43:15 2000
@@ -270,17 +270,16 @@
{
int rdp = isapnp_rdp;
while (rdp <= 0x3ff) {
- if (!check_region(rdp, 1)) {
- isapnp_rdp = rdp;
- return 0;
- }
- rdp += RDP_STEP;
/*
* We cannot use NE2000 probe spaces for ISAPnP or we
* will lock up machines.
*/
- if(rdp >= 0x280 && rdp <= 0x380)
- continue;
+ if ((rdp < 0x280 || rdp > 0x380) && !check_region(rdp, 1))
+ {
+ isapnp_rdp = rdp;
+ return 0;
+ }
+ rdp += RDP_STEP;
}
return -1;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: 2.4.0-test11-pre7: isapnp hang
2000-11-20 0:19 ` Alan Cox
@ 2000-11-20 9:23 ` Tim Waugh
0 siblings, 0 replies; 8+ messages in thread
From: Tim Waugh @ 2000-11-20 9:23 UTC (permalink / raw)
To: Alan Cox; +Cc: linux-kernel
On Mon, Nov 20, 2000 at 12:19:43AM +0000, Alan Cox wrote:
> And a quick read of the code I pasted instead of just pasting
> suggests instead we should be using the patch below. Question
> however is who stole port 0x279 which is the normal port to use. It
> shouldnt be lp since lp is supposed to init after pnp.
Your patch fixes the problem (of course). lp is not compiled into the
kernel (nor is parport), and after boot /proc/ioports shows:
[...]
01f0-01f7 : ide0
02e8-02ef : serial(auto)
[...]
Tim.
*/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: 2.4.0-test11-pre7: isapnp hang
2000-11-19 23:34 2.4.0-test11-pre7: isapnp hang Tim Waugh
2000-11-20 0:09 ` Alan Cox
@ 2000-11-20 0:32 ` H. Peter Anvin
2000-11-20 1:06 ` Alan Cox
1 sibling, 1 reply; 8+ messages in thread
From: H. Peter Anvin @ 2000-11-20 0:32 UTC (permalink / raw)
To: linux-kernel
Followup to: <20001119233450.H20970@redhat.com>
By author: Tim Waugh <twaugh@redhat.com>
In newsgroup: linux.dev.kernel
>
> Reading from port 0x313 (my ISA NE2000 is at 0x300-0x31f) hangs my
> machine dead. Unfortunately, reading from that port is exactly what
> the isapnp code does on boot, if compiled into the kernel.
>
> Is it the network card's fault (probably), or is there a less invasive
> probe that isapnp could use (unlikely, I guess)?
>
Try reserving ports 0x300-0x31f on the kernel command line
("reserve=0x300,0x20").
I'm surprised isapnp uses a port in such a commonly used range,
though.
-hpa
--
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: 2.4.0-test11-pre7: isapnp hang
2000-11-20 0:32 ` H. Peter Anvin
@ 2000-11-20 1:06 ` Alan Cox
2000-11-20 1:22 ` H. Peter Anvin
0 siblings, 1 reply; 8+ messages in thread
From: Alan Cox @ 2000-11-20 1:06 UTC (permalink / raw)
To: H. Peter Anvin; +Cc: linux-kernel
> Try reserving ports 0x300-0x31f on the kernel command line
> ("reserve=0x300,0x20").
>
> I'm surprised isapnp uses a port in such a commonly used range,
> though.
It seems to be a combination of two bugs. The one I posted a patch for and
something odd that is taking port 0x279 before the pnp probe is run, which
suggests a link order issue. Although in truth _nobody_ should be claing
that anyway
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: 2.4.0-test11-pre7: isapnp hang
2000-11-20 1:06 ` Alan Cox
@ 2000-11-20 1:22 ` H. Peter Anvin
2000-11-20 12:45 ` Alan Cox
0 siblings, 1 reply; 8+ messages in thread
From: H. Peter Anvin @ 2000-11-20 1:22 UTC (permalink / raw)
To: linux-kernel
Followup to: <E13xfQ1-0003CR-00@the-village.bc.nu>
By author: Alan Cox <alan@lxorguk.ukuu.org.uk>
In newsgroup: linux.dev.kernel
>
> > Try reserving ports 0x300-0x31f on the kernel command line
> > ("reserve=0x300,0x20").
> >
> > I'm surprised isapnp uses a port in such a commonly used range,
> > though.
>
> It seems to be a combination of two bugs. The one I posted a patch for and
> something odd that is taking port 0x279 before the pnp probe is run, which
> suggests a link order issue. Although in truth _nobody_ should be claing
> that anyway
>
It seems to me that it would be better to initialize all the (non-PnP)
ISA cards first, and have them claim their preferred ranges. Now you
can pick the PnP isolate port out of what is left, and also have a
much better idea of what is available.
-hpa
--
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: 2.4.0-test11-pre7: isapnp hang
2000-11-20 1:22 ` H. Peter Anvin
@ 2000-11-20 12:45 ` Alan Cox
0 siblings, 0 replies; 8+ messages in thread
From: Alan Cox @ 2000-11-20 12:45 UTC (permalink / raw)
To: H. Peter Anvin; +Cc: linux-kernel
> It seems to me that it would be better to initialize all the (non-PnP)
> ISA cards first, and have them claim their preferred ranges. Now you
> can pick the PnP isolate port out of what is left, and also have a
> much better idea of what is available.
Post 2.4 only. It means re-architecting all the ISA probes so that they don't
mix the PnP and non PnP probes. I suspect implementing a copy of the PCI
hot swap API would be the simplest
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2000-11-20 13:16 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-19 23:34 2.4.0-test11-pre7: isapnp hang Tim Waugh
2000-11-20 0:09 ` Alan Cox
2000-11-20 0:19 ` Alan Cox
2000-11-20 9:23 ` Tim Waugh
2000-11-20 0:32 ` H. Peter Anvin
2000-11-20 1:06 ` Alan Cox
2000-11-20 1:22 ` H. Peter Anvin
2000-11-20 12:45 ` Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox