Re: PnP problems on install floppy in 4.0-SNAPS from current.freebsd.org

1999-10-13 Thread Doug Rabson

On Tue, 12 Oct 1999, Warner Losh wrote:

 In message [EMAIL PROTECTED] Doug 
Rabson writes:
 : Due to the nature of the pnp code, it might be probed as ed1 instead of
 : ed0.
 
 I have a SBC here that has an onboard PNP ne2000 chip on it.  It comes
 up as ed1 because I have ed0 at a wired address.  I don't see ed0 at
 all, and it just works, so I just hacked my rc.conf to use ed1 rather
 than ed0 like I did when it ran 3.3R.
 
 Now for the obligitory tangent:
 Does FreeBSD have the ability to reassign IRQs for PNP devices?  I
 have one that is coming up at IRQ 5, but I have a non-PNP device that
 is at 5, but many other IRQs free.  There is no way in the BIOS to set
 which IRQs are used for PNP and which ones are designated for legacy
 devices.

Right now, one can hack isa_find_irq() to restrict which interrupts it
checks. I have been thinking about using a loader environment variable for
this. One existing problem is that a pci device which doesn't match a
driver does not reserve its irq resource. Fixing that still leaves the
case of an unknown non-pnp isa device though.

--
Doug Rabson Mail:  [EMAIL PROTECTED]
Nonlinear Systems Ltd.  Phone: +44 181 442 9037




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: PnP problems on install floppy in 4.0-SNAPS from current.freebsd.org

1999-10-12 Thread Warner Losh

In message [EMAIL PROTECTED] Doug Rabson 
writes:
: Due to the nature of the pnp code, it might be probed as ed1 instead of
: ed0.

I have a SBC here that has an onboard PNP ne2000 chip on it.  It comes
up as ed1 because I have ed0 at a wired address.  I don't see ed0 at
all, and it just works, so I just hacked my rc.conf to use ed1 rather
than ed0 like I did when it ran 3.3R.

Now for the obligitory tangent:
Does FreeBSD have the ability to reassign IRQs for PNP devices?  I
have one that is coming up at IRQ 5, but I have a non-PNP device that
is at 5, but many other IRQs free.  There is no way in the BIOS to set
which IRQs are used for PNP and which ones are designated for legacy
devices.

Warner


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: PnP problems on install floppy in 4.0-SNAPS from current.freebsd.org

1999-10-11 Thread Doug Rabson

On Sun, 10 Oct 1999, Matthew N. Dodd wrote:

 On Sun, 10 Oct 1999, Matthew N. Dodd wrote:
  On Sun, 10 Oct 1999, Doug Rabson wrote:
   Your card is an SMC EtherEZ (8416). I think that needs some special
   extra tricks to get it supported. Matt Dodd [EMAIL PROTECTED] was
   working on this recently but I don't know if he has it working yet.
  
  I've got uncommitted patches that fix this I believe.  I need to go back
  and test them before I commit but they should work.
 
 Ok, I've tested my patches and remembered why I didn't ever do anything
 with them.
 
 *** ISA_GET_RESOURCE(,,SYS_RES_MEMORY,...) failed (2)
 unknown0: SMC EtherEZ (8416) at port 0x240-0x25f irq 9 on isa0
 
 ed_probe_WD80x3() doesn't understand boards that have no shared memory.
 
 While these cards work just fine in softset mode, turning on their PnP
 features seems to disable the use of shared memory.

I was looking at the Linux driver and I don't think it would be hard to
use their algorithm to set the memory resource appropriately. 

--
Doug Rabson Mail:  [EMAIL PROTECTED]
Nonlinear Systems Ltd.  Phone: +44 181 442 9037




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: PnP problems on install floppy in 4.0-SNAPS from current.freebsd.org

1999-10-11 Thread Matthew N. Dodd

On Mon, 11 Oct 1999, Doug Rabson wrote:
 I was looking at the Linux driver and I don't think it would be hard to
 use their algorithm to set the memory resource appropriately. 

Looks pretty simple.

I'll take a crack at it tomorrow.

-- 
| Matthew N. Dodd  | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD  |
| [EMAIL PROTECTED] |   2 x '84 Volvo 245DL| ix86,sparc,pmax |
| http://www.jurai.net/~winter | This Space For Rent  | ISO8802.5 4ever |



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: PnP problems on install floppy in 4.0-SNAPS from current.freebsd.org

1999-10-10 Thread Jason DiCioccio

I just tried the latest -CURRENT snapshot, 19991009 ,.. Now, on the old
floppy, I could set the parameters for ed0 and it would find ed0.. now it
doesn't find ed0 at all although it still finds 'unknown0' .. When you
fixed this freezing, did this ruin some other detection or something to
that effect?  I told it to probe 0x240 @ IRQ 7 which is where it is.. all
my bios settings etc have no changed since last time I used floppy (the
one that froze but still found ed0) ..

Thanks in advance,
Jason DiCioccio

On Sat, 9 Oct 1999, Doug Rabson wrote:

 On Sat, 9 Oct 1999, Jason DiCioccio wrote:
 
  
  Yes yes.. Long subject, but anyhow.. The problem I am having is that 4.0
  insists on detecting my ethernet card PnP at installation even though Id
  ont want it to.. When it does, it freezes up, and its much easier for me
  just to input the settings manually info the visual config.. I need to
  disable on install disk, or get a 4.0 floppy that doesn't freeze on
  'unknown0', of course, not having it detected at all would be preferable
  :)..
 
 There was a problem with the pnp code which caused freezes like this which
 I fixed. What date was the snap that you tried?
 
 --
 Doug Rabson   Mail:  [EMAIL PROTECTED]
 Nonlinear Systems Ltd.Phone: +44 181 442 9037
 
 
 



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: PnP problems on install floppy in 4.0-SNAPS from current.freebsd.org

1999-10-10 Thread Doug Rabson

On Sun, 10 Oct 1999, Jason DiCioccio wrote:

 I just tried the latest -CURRENT snapshot, 19991009 ,.. Now, on the old
 floppy, I could set the parameters for ed0 and it would find ed0.. now it
 doesn't find ed0 at all although it still finds 'unknown0' .. When you
 fixed this freezing, did this ruin some other detection or something to
 that effect?  I told it to probe 0x240 @ IRQ 7 which is where it is.. all
 my bios settings etc have no changed since last time I used floppy (the
 one that froze but still found ed0) ..

To debug this, I need the output of dmesg and pnpinfo from a kernel which
exhibits the problem.

--
Doug Rabson Mail:  [EMAIL PROTECTED]
Nonlinear Systems Ltd.  Phone: +44 181 442 9037




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: PnP problems on install floppy in 4.0-SNAPS from current.freebsd.org

1999-10-10 Thread Jason DiCioccio

Sorry I can't get pnpinfo, I can tell you though that dmesg does not even
show ed0 being probed at all.. In other words, it does nto even say 'ed0
not found at 0x240' .. And I am not deleting the device :-).. Are there
any conditions where this would happen?

Thanks

On Sun, 10 Oct 1999, Doug Rabson wrote:

 On Sun, 10 Oct 1999, Jason DiCioccio wrote:
 
  I just tried the latest -CURRENT snapshot, 19991009 ,.. Now, on the old
  floppy, I could set the parameters for ed0 and it would find ed0.. now it
  doesn't find ed0 at all although it still finds 'unknown0' .. When you
  fixed this freezing, did this ruin some other detection or something to
  that effect?  I told it to probe 0x240 @ IRQ 7 which is where it is.. all
  my bios settings etc have no changed since last time I used floppy (the
  one that froze but still found ed0) ..
 
 To debug this, I need the output of dmesg and pnpinfo from a kernel which
 exhibits the problem.
 
 --
 Doug Rabson   Mail:  [EMAIL PROTECTED]
 Nonlinear Systems Ltd.Phone: +44 181 442 9037
 
 
 



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: PnP problems on install floppy in 4.0-SNAPS from current.freebsd.org

1999-10-10 Thread Doug Rabson

On Sun, 10 Oct 1999, Jason DiCioccio wrote:

 Sorry I can't get pnpinfo, I can tell you though that dmesg does not even
 show ed0 being probed at all.. In other words, it does nto even say 'ed0
 not found at 0x240' .. And I am not deleting the device :-).. Are there
 any conditions where this would happen?

Due to the nature of the pnp code, it might be probed as ed1 instead of
ed0. If at all possible, could you put the card into a working FreeBSD box
so that I can see the pnpinfo. If we are missing a pnp ID for the card,
I need that information to fix it.

--
Doug Rabson Mail:  [EMAIL PROTECTED]
Nonlinear Systems Ltd.  Phone: +44 181 442 9037




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: PnP problems on install floppy in 4.0-SNAPS from current.freebsd.org

1999-10-10 Thread Jason DiCioccio

Another note :) .. PnP also probes unknown0 on the wrong irq (irq 3) while
it should be on irq 7

On Sun, 10 Oct 1999, Doug Rabson wrote:

 On Sun, 10 Oct 1999, Jason DiCioccio wrote:
 
  Sorry I can't get pnpinfo, I can tell you though that dmesg does not even
  show ed0 being probed at all.. In other words, it does nto even say 'ed0
  not found at 0x240' .. And I am not deleting the device :-).. Are there
  any conditions where this would happen?
 
 Due to the nature of the pnp code, it might be probed as ed1 instead of
 ed0. If at all possible, could you put the card into a working FreeBSD box
 so that I can see the pnpinfo. If we are missing a pnp ID for the card,
 I need that information to fix it.
 
 --
 Doug Rabson   Mail:  [EMAIL PROTECTED]
 Nonlinear Systems Ltd.Phone: +44 181 442 9037
 
 
 



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: PnP problems on install floppy in 4.0-SNAPS from current.freebsd.org

1999-10-10 Thread Doug Rabson

On Sun, 10 Oct 1999, Jason DiCioccio wrote:

 Another note :) .. PnP also probes unknown0 on the wrong irq (irq 3) while
 it should be on irq 7

Actually, we can put the card on any irq which it supports as long as
there isn't a conflict. Unless you have a sio1 in that box (which normally
uses irq 3), it is perfectly ok.

Your card is an SMC EtherEZ (8416). I think that needs some special extra
tricks to get it supported. Matt Dodd [EMAIL PROTECTED] was working on
this recently but I don't know if he has it working yet.

--
Doug Rabson Mail:  [EMAIL PROTECTED]
Nonlinear Systems Ltd.  Phone: +44 181 442 9037




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: PnP problems on install floppy in 4.0-SNAPS from current.freebsd.org

1999-10-10 Thread Matthew N. Dodd

On Sun, 10 Oct 1999, Doug Rabson wrote:
 Your card is an SMC EtherEZ (8416). I think that needs some special
 extra tricks to get it supported. Matt Dodd [EMAIL PROTECTED] was
 working on this recently but I don't know if he has it working yet.

I've got uncommitted patches that fix this I believe.  I need to go back
and test them before I commit but they should work.

-- 
| Matthew N. Dodd  | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD  |
| [EMAIL PROTECTED] |   2 x '84 Volvo 245DL| ix86,sparc,pmax |
| http://www.jurai.net/~winter | This Space For Rent  | ISO8802.5 4ever |



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: PnP problems on install floppy in 4.0-SNAPS from current.freebsd.org

1999-10-10 Thread Matthew N. Dodd

On Sun, 10 Oct 1999, Matthew N. Dodd wrote:
 On Sun, 10 Oct 1999, Doug Rabson wrote:
  Your card is an SMC EtherEZ (8416). I think that needs some special
  extra tricks to get it supported. Matt Dodd [EMAIL PROTECTED] was
  working on this recently but I don't know if he has it working yet.
 
 I've got uncommitted patches that fix this I believe.  I need to go back
 and test them before I commit but they should work.

Ok, I've tested my patches and remembered why I didn't ever do anything
with them.

*** ISA_GET_RESOURCE(,,SYS_RES_MEMORY,...) failed (2)
unknown0: SMC EtherEZ (8416) at port 0x240-0x25f irq 9 on isa0

ed_probe_WD80x3() doesn't understand boards that have no shared memory.

While these cards work just fine in softset mode, turning on their PnP
features seems to disable the use of shared memory.

mihoshi# pnpinfo
Checking for Plug-n-Play devices...

Card assigned CSN #1
Vendor ID SMC8416 (0x1684a34d), Serial Number 0xbba8d5c1
PnP Version 1.0, Vendor Version 16
Device Description: SMC EtherEZ (8416)

Logical Device ID: SMC8416 0x1684a34d #0
Device supports I/O Range Check
IRQ: 3 5 7 9 10 11 IRQ: High true edge sensitive
I/O Range 0x240 .. 0x3e0, alignment 0x20, len 0x20
[not 16-bit addr]
End Tag

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

CSN SMC8416 (0x1684a34d), Serial Number 0xbba8d5c1

Logical device #0
IO:  0x0240 0x 0x 0x 0x 0x 0x 0x
IRQ 9 0
DMA 0 0
IO range check 0x00 activate 0x01

This output appears to agree with what Win95 finds.

I'm investigating the possibility of making ed_probe_WD80x3() a bit more
flexible.

-- 
| Matthew N. Dodd  | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD  |
| [EMAIL PROTECTED] |   2 x '84 Volvo 245DL| ix86,sparc,pmax |
| http://www.jurai.net/~winter | This Space For Rent  | ISO8802.5 4ever |



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: PnP problems on install floppy in 4.0-SNAPS from current.freebsd.org

1999-10-10 Thread Jason DiCioccio

It worked when it was probed non-pnp :-).. As long as I set the params..
DId you get my email with pnpinfo and dmesg?

On Sun, 10 Oct 1999, Doug Rabson wrote:

 On Sun, 10 Oct 1999, Jason DiCioccio wrote:
 
  Another note :) .. PnP also probes unknown0 on the wrong irq (irq 3) while
  it should be on irq 7
 
 Actually, we can put the card on any irq which it supports as long as
 there isn't a conflict. Unless you have a sio1 in that box (which normally
 uses irq 3), it is perfectly ok.
 
 Your card is an SMC EtherEZ (8416). I think that needs some special extra
 tricks to get it supported. Matt Dodd [EMAIL PROTECTED] was working on
 this recently but I don't know if he has it working yet.
 
 --
 Doug Rabson   Mail:  [EMAIL PROTECTED]
 Nonlinear Systems Ltd.Phone: +44 181 442 9037
 
 
 



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: PnP problems on install floppy in 4.0-SNAPS from current.freebsd.org

1999-10-09 Thread Doug Rabson

On Sat, 9 Oct 1999, Jason DiCioccio wrote:

 
 Yes yes.. Long subject, but anyhow.. The problem I am having is that 4.0
 insists on detecting my ethernet card PnP at installation even though Id
 ont want it to.. When it does, it freezes up, and its much easier for me
 just to input the settings manually info the visual config.. I need to
 disable on install disk, or get a 4.0 floppy that doesn't freeze on
 'unknown0', of course, not having it detected at all would be preferable
 :)..

There was a problem with the pnp code which caused freezes like this which
I fixed. What date was the snap that you tried?

--
Doug Rabson Mail:  [EMAIL PROTECTED]
Nonlinear Systems Ltd.  Phone: +44 181 442 9037




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: PnP problems on install floppy in 4.0-SNAPS from current.freebsd.org

1999-10-09 Thread Daniel C. Sobral

Jason DiCioccio wrote:
 
 Yes yes.. Long subject, but anyhow.. The problem I am having is that 4.0
 insists on detecting my ethernet card PnP at installation even though Id
 ont want it to.. When it does, it freezes up, and its much easier for me
 just to input the settings manually info the visual config.. I need to
 disable on install disk, or get a 4.0 floppy that doesn't freeze on
 'unknown0', of course, not having it detected at all would be preferable
 :)..

I don't get it... why is it that you'd prefer it not to detect your
card, even if it did not freeze?

--
Daniel C. Sobral(8-DCS)
[EMAIL PROTECTED]
[EMAIL PROTECTED]

"I always feel generous when I'm in the inner circle of a
conspiracy to subvert the world order and, with a small group of
allies, just defeated an alien invasion. Maybe I should value myself
a little more?"



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: PnP problems on install floppy in 4.0-SNAPS from current.freebsd.org

1999-10-09 Thread Jason DiCioccio

I use visual_userconfig set ed0 to 0x240 and irq 7 and it detects it
 I dont need the PnP probe on ISA bus.


On Sat, 9 Oct 1999, Daniel C. Sobral wrote:

 Jason DiCioccio wrote:
  
  Yes yes.. Long subject, but anyhow.. The problem I am having is that 4.0
  insists on detecting my ethernet card PnP at installation even though Id
  ont want it to.. When it does, it freezes up, and its much easier for me
  just to input the settings manually info the visual config.. I need to
  disable on install disk, or get a 4.0 floppy that doesn't freeze on
  'unknown0', of course, not having it detected at all would be preferable
  :)..
 
 I don't get it... why is it that you'd prefer it not to detect your
 card, even if it did not freeze?
 
 --
 Daniel C. Sobral  (8-DCS)
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 
   "I always feel generous when I'm in the inner circle of a
 conspiracy to subvert the world order and, with a small group of
 allies, just defeated an alien invasion. Maybe I should value myself
 a little more?"
 
 



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: PnP problems on install floppy in 4.0-SNAPS from current.freebsd.org

1999-10-09 Thread Jason DiCioccio

I shall try again :)


On Sat, 9 Oct 1999, Doug Rabson wrote:

 On Sat, 9 Oct 1999, Jason DiCioccio wrote:
 
  
  Yes yes.. Long subject, but anyhow.. The problem I am having is that 4.0
  insists on detecting my ethernet card PnP at installation even though Id
  ont want it to.. When it does, it freezes up, and its much easier for me
  just to input the settings manually info the visual config.. I need to
  disable on install disk, or get a 4.0 floppy that doesn't freeze on
  'unknown0', of course, not having it detected at all would be preferable
  :)..
 
 There was a problem with the pnp code which caused freezes like this which
 I fixed. What date was the snap that you tried?
 
 --
 Doug Rabson   Mail:  [EMAIL PROTECTED]
 Nonlinear Systems Ltd.Phone: +44 181 442 9037
 
 
 



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: PnP problems on install floppy in 4.0-SNAPS from current.freebsd.org

1999-10-09 Thread Daniel C. Sobral

Jason DiCioccio wrote:
 
 I use visual_userconfig set ed0 to 0x240 and irq 7 and it detects it
  I dont need the PnP probe on ISA bus.

Well, I don't need C, I could program in assembly language, but I
still think using C is easier.

I'm asking why do you *object* to your card being recognized by the
PnP probe instead of configured manually.

--
Daniel C. Sobral(8-DCS)
[EMAIL PROTECTED]
[EMAIL PROTECTED]

"I always feel generous when I'm in the inner circle of a
conspiracy to subvert the world order and, with a small group of
allies, just defeated an alien invasion. Maybe I should value myself
a little more?"


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: PnP problems on install floppy in 4.0-SNAPS from current.freebsd.org

1999-10-09 Thread Jason DiCioccio

as i've said, because it freezes my machine when it detects it PnP..
And, as you can imagine, I do not want my installation freezing on me :)


On Sun, 10 Oct 1999, Daniel C. Sobral wrote:

 Jason DiCioccio wrote:
  
  I use visual_userconfig set ed0 to 0x240 and irq 7 and it detects it
   I dont need the PnP probe on ISA bus.
 
 Well, I don't need C, I could program in assembly language, but I
 still think using C is easier.
 
 I'm asking why do you *object* to your card being recognized by the
 PnP probe instead of configured manually.
 
 --
 Daniel C. Sobral  (8-DCS)
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 
   "I always feel generous when I'm in the inner circle of a
 conspiracy to subvert the world order and, with a small group of
 allies, just defeated an alien invasion. Maybe I should value myself
 a little more?"
 



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message