Bug 17858

Summary: pnp isa ed device problem on 4.0-RELEASE
Product: Base System Reporter: dmitry <dmitry>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-RELEASE   
Hardware: Any   
OS: Any   

Description dmitry 2000-04-08 07:20:01 UTC
when boot:
unknown0: RL2000A Compex Ethernet PNP Adapter at 0x220-0x23f irq 5 on isa0

but this device very good worked on 3.1-RELEASE, this pnpinfo out on 3.1

Checking for Plug-n-Play devices...

Card assigned CSN #1
Vendor ID CPX1501 (0x0115180e), Serial Number 0x48af5e0b
PnP Version 1.0, Vendor Version 1
Device Description: Compex RL2000A PNP Ethernet Adapter

Logical Device ID: CPX1501 0x0115180e #0
	Device powers up active
	Device supports I/O Range Check
	Vendor register funcs 00
Compatible Device ID: PNP80d6 (d680d041)
    I/O Range 0x220 .. 0x3e0, alignment 0x20, len 0x20
	[not 16-bit addr]
    IRQ: 5 10 11 12 15 IRQ: High true edge sensitive
End Tag

Successfully got 6 resources, 1 logical fdevs
-- card select # 0x0001

CSN CPX1501 (0x0115180e), Serial Number 0x48af5e0b

Logical device #0
IO:  0x0220 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
IRQ 5 0
DMA 4 4
IO range check 0x00 activate 0x01

Fix: 

i don't know how
How-To-Repeat: install this card ..
Comment 1 peter 2000-04-08 21:50:26 UTC
dmitry@asbaikaltv.ru wrote:
> >Number:         17858
> >Synopsis:       pnp isa ed device problem on 4.0-RELEASE
[..]
> Logical Device ID: CPX1501 0x0115180e #0
> 	Device powers up active
> 	Device supports I/O Range Check
> 	Vendor register funcs 00
> Compatible Device ID: PNP80d6 (d680d041)
                        ^^^^^^^^^^^^^^^^^^
>     I/O Range 0x220 .. 0x3e0, alignment 0x20, len 0x20
> 	[not 16-bit addr]
>     IRQ: 5 10 11 12 15 IRQ: High true edge sensitive

Hmm.  We check for that specific compatable pnpid, it should have matched
the if_ed driver.

However, can you try a couple of things please?  First, try this patch
and see if it makes any difference:

Index: if_ed_isa.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/ed/if_ed_isa.c,v
retrieving revision 1.5
diff -u -r1.5 if_ed_isa.c
--- if_ed_isa.c	1999/11/20 09:28:01	1.5
+++ if_ed_isa.c	2000/04/08 20:41:41
@@ -58,6 +58,7 @@
 	{ 0x19808c4a,	NULL },		/* RTL8019 */
 	{ 0x0090252a,	NULL },		/* JQE9000 */
 	{ 0x0020832e,	NULL },		/* KTC2000 */
+	{ 0x0115180e,	NULL },		/* CPX1501 */
 	{ 0,		NULL }
 };

cd to /sys/dev/ed and apply it with patch and reconfigure/rebuild a kernel
and reboot.

If this makes a difference, then we have a bug in our compatable device
matching code.

Can you please check your kernel config file?  You should be able to have
'device ed' in there with no 'at isa? port ...' or anything like that.

Also, if it's still not working, please try a 'boot -v' and see if the
if_ed driver prints any clues about resource conflicts or reasons for the
probe failure.

Cheers,
-Peter
Comment 2 Sheldon Hearn freebsd_committer freebsd_triage 2000-04-12 09:04:35 UTC
State Changed
From-To: open->closed

Closed on originator's request.