Recent kernel hangs during boot with pnp sio.

1999-10-01 Thread Daniel M. Eischen


I have a pnp modem "SupraExpress 56i Sp V.90" that works fine with a
kernel from Aug 22.  Here is an excerpt from a successful boot:

 atkbdc0:  at port 0x60-0x6f on isa0
 atkbd0:  irq 1 on atkbdc0
 vga0:  at port 0x3b0-0x3df iomem 0xa-0xb on isa0
 sc0:  on isa0
 sc0: VGA <16 virtual consoles, flags=0x200>
 sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
 sio0: type 16550A
 sio1 at port 0x2f8-0x2ff irq 3 on isa0
 sio1: type 16550A
---> sio2 at port 0x3e8-0x3ef irq 11 on isa0
---> sio2: type 16550A
 Waiting 5 seconds for SCSI devices to settle
 sa0 at ahc0 bus 0 target 3 lun 0
 sa0:  Removable Sequential Access SCSI-2 device 
 sa0: 10.000MB/s transfers (10.000MHz, offset 8)
 changing root device to da0s3a
 [...]

Todays GENERIC kernel hangs after correctly detecting sio2, with no keyboard
input, reboot necessary, yada yada yada.

Disabling sio2 from the config menu will let it boot.  Here's a
verbose log of todays GENERIC kernel with sio2 disabled:

  us:  fast PIO disabled
  intel_piix_status: secondary master/slave sample = 5, master/slave recovery = 4
  intel_piix_status: secondary slave fastDMAonly disabled, pre/post disabled,
  intel_piix_status:  IORDY sampling disabled,
  intel_piix_status:  fast PIO disabled
  ide_pci: busmaster 1 status: 04 from port: d80a
  chip1:  irq 9 at device 4.2 on pci0
  chip2:  at device 4.3 on pci0
  ahc0:  irq 9 at device 6.0 on pci0
  ahc0: Reading SEEPROM...done.
  ahc0: internal 50 cable is present, internal 68 cable is present
  ahc0: external cable is present
  ahc0: BIOS eeprom not present
  ahc0: aic7880 Wide Channel A, SCSI Id=7, 16/255 SCBs
  ahc0: Downloading Sequencer Program... 411 instructions downloaded
  fxp0:  irq 12 at device 10.0 on pci0
  fxp0: Ethernet address 00:a0:c9:b2:18:ef
  bpf: fxp0 attached
  vga-pci0:  at device 11.0 on pci0
  ahc1:  irq 10 at device 12.0 on pci0
  ahc1: Reading SEEPROM...done.
  ahc1: internal 50 cable not present, internal 68 cable not present
  ahc1: external cable is present
  ahc1: BIOS eeprom is present
  ahc1: High byte termination Enabled
  ahc1: Low byte termination Enabled
  ahc1: aic7880 Wide Channel A, SCSI Id=7, 16/255 SCBs
  ahc1: Downloading Sequencer Program... 411 instructions downloaded
  fe0: not probed (disabled)
  fdc0: not probed (disabled)
  wdc0: not probed (disabled)
  wdc1: not probed (disabled)
  adv0: not probed (disabled)
  bt0: not probed (disabled)
  aha0: not probed (disabled)
  wt0: not probed (disabled)
  mcd0: not probed (disabled)
  matcd0: not probed (disabled)
  scd0: not probed (disabled)
  atkbdc0:  at port 0x60-0x6f on isa0
  atkbd0:  irq 1 on atkbdc0
  atkbd: the current kbd controller command byte 0067
  atkbd: keyboard ID 0x41ab (2)
  kbdc: RESET_KBD return code:00fa
  kbdc: RESET_KBD status:00aa
  kbd0: atkbd0, AT 101/102 (2), config:0x0, flags:0x3d
  psm0: current command byte:0067
  kbdc: TEST_AUX_PORT status:
  kbdc: RESET_AUX return code:00fe
  kbdc: DIAGNOSE status:0055
  kbdc: TEST_KBD_PORT status:
  psm0: failed to reset the aux device.
  vga0:  at port 0x3b0-0x3df iomem 0xa-0xb on isa0
  fb0: vga0, vga, type:VGA (5), flags:0x7007f
  fb0: port:0x3b0-0x3df, crtc:0x3d4, mem:0xa 0x2
  fb0: init mode:24, bios mode:3, current mode:24
  fb0: window:0xc00b8000 size:32k gran:32k, buf:0 size:32k
  VGA parameters upon power-up
  50 18 10 00 00 00 03 00 02 67 5f 4f 50 82 55 81 
  bf 1f 00 4f 0e 0f 00 00 07 80 9c 8e 8f 28 1f 96 
  b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
  3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
  VGA parameters in BIOS for mode 24
  50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 
  bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 
  b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
  3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
  EGA/VGA parameters to be used for mode 24
  50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 
  bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 
  b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
  3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
  sc0:  on isa0
  sc0: VGA <16 virtual consoles, flags=0x200>
  sc0: fb0 kbd0
  sio0: irq maps: 0x1 0x11 0x1 0x1
  sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
  sio0: type 16550A
  sio1: irq maps: 0x1 0x9 0x1 0x1
  sio1 at port 0x2f8-0x2ff irq 3 on isa0
  sio1: type 16550A
  sio2: not probed (disabled)
  sio3: not probed (disabled)
  ppc0: not probed (disabled)
  ed0: not probed (disabled)
  ie0: not probed (disabled)
  ep0: not probed (disabled)
  ex0: not probed (disabled)
  le0: not probed (disabled)
  lnc0: not probed

Re: Recent kernel hangs during boot with pnp sio.

1999-10-01 Thread Daniel M. Eischen


More info on the kernel hang.

Removing pnp from the kernel configuration will allow me to boot
and successfully detects my pnp modem.  So the culprit seems to
be the new pnp code.  Suggestions welcome.

Here's a successful verbose boot with a kernel from Sept 30th
sources.

 intpm0:  at device 4.3 on pci0
 intpm0: I/O mapped e800
 intpm0: intr IRQ 9 enabled revision 0
 using shared irq9.
 smbus0:  on intsmb0
 smb0:  on smbus0
 intpm0: PM I/O mapped e400 
 ahc0:  irq 9 at device 6.0 on pci0
 ahc0: Reading SEEPROM...done.
 ahc0: internal 50 cable is present, internal 68 cable is present
 ahc0: external cable is present
 ahc0: BIOS eeprom not present
 ahc0: aic7880 Wide Channel A, SCSI Id=7, 16/255 SCBs
 ahc0: Downloading Sequencer Program... 411 instructions downloaded
 fxp0:  irq 12 at device 10.0 on pci0
 fxp0: Ethernet address 00:a0:c9:b2:18:ef
 bpf: fxp0 attached
 vga-pci0:  at device 11.0 on pci0
 ahc1:  irq 10 at device 12.0 on pci0
 ahc1: Reading SEEPROM...done.
 ahc1: internal 50 cable not present, internal 68 cable not present
 ahc1: external cable is present
 ahc1: BIOS eeprom is present
 ahc1: High byte termination Enabled
 ahc1: Low byte termination Enabled
 ahc1: aic7880 Wide Channel A, SCSI Id=7, 16/255 SCBs
 ahc1: Downloading Sequencer Program... 411 instructions downloaded
 wdc0 at port 0x1f0-0x1f7 irq 14 on isa0
 wdc0: unit 0 (atapi): , 
removable,
  iordy
 wfd0: medium type unknown (no disk)
 fdc0: direction bit not set
 fdc0: cmd 3 failed at out byte 1 of 3
 atkbdc0:  at port 0x60-0x6f on isa0
 atkbd0:  irq 1 on atkbdc0
 atkbd: the current kbd controller command byte 0067
 atkbd: keyboard ID 0x41ab (2)
 kbdc: RESET_KBD return code:00fa
 kbdc: RESET_KBD status:00aa
 kbd0: atkbd0, AT 101/102 (2), config:0x0, flags:0x3d
 psm0: current command byte:0067
 kbdc: TEST_AUX_PORT status:
 kbdc: RESET_AUX return code:00fe
 kbdc: RESET_AUX return code:00fe
 kbdc: RESET_AUX return code:00fe
 kbdc: DIAGNOSE status:0055
 kbdc: TEST_KBD_PORT status:
 psm0: failed to reset the aux device.
 vga0:  at port 0x3b0-0x3df iomem 0xa-0xb on isa0
 fb0: vga0, vga, type:VGA (5), flags:0x7007f
 fb0: port:0x3b0-0x3df, crtc:0x3d4, mem:0xa 0x2
 fb0: init mode:24, bios mode:3, current mode:24
 fb0: window:0xc00b8000 size:32k gran:32k, buf:0 size:32k
 VGA parameters upon power-up
 50 18 10 00 00 00 03 00 02 67 5f 4f 50 82 55 81 
 bf 1f 00 4f 0e 0f 00 00 07 80 9c 8e 8f 28 1f 96 
 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
 VGA parameters in BIOS for mode 24
 50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 
 bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 
 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
 EGA/VGA parameters to be used for mode 24
 50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 
 bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 
 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
 sc0:  on isa0
 sc0: VGA <16 virtual consoles, flags=0x200>
 sc0: fb0 kbd0
 sio0: irq maps: 0x1 0x11 0x1 0x1
 sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
 sio0: type 16550A
 sio1: irq maps: 0x1 0x9 0x1 0x1
 sio1 at port 0x2f8-0x2ff irq 3 on isa0
 sio1: type 16550A
-->  sio2: irq maps: 0x1 0x801 0x1 0x1
-->  sio2 at port 0x3e8-0x3ef irq 11 on isa0
-->  sio2: type 16550A
 ppc: parallel port found at 0x378
 ppc0: ECP SPP ECP+EPP SPP
 ppc0 at port 0x378-0x37f irq 7 on isa0
 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
 ppc0: FIFO with 16/16/9 bytes threshold
 plip: irq 7
 plip0:  on ppbus 0
 bpf: lp0 attached
 lpt0:  on ppbus 0
 lpt0: Interrupt-driven port
 ppi0:  on ppbus 0
 BIOS Geometries:
  0:0106fe3f 0..262=263 cylinders, 0..254=255 heads, 1..63=63 sectors
  1:03fefe3f 0..1022=1023 cylinders, 0..254=255 heads, 1..63=63 sectors
  0 accounted for
 Device configuration finished.
 Considering MFS root f/s.
 No MFS image available as root f/s.
 bpf: sl0 attached
 bpf: ppp0 attached
 new masks: bio 40084200, tty 4003089a, net 4007189a
 bpf: lo0 attached
 Linux-ELF exec handler installed
 Waiting 5 seconds for SCSI devices to settle
 [...]

Dan Eischen
[EMAIL PROTECTED]


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



Re: Recent kernel hangs during boot with pnp sio.

1999-10-01 Thread Soren Schmidt

It seems Daniel M. Eischen wrote:
> 
> More info on the kernel hang.
> 
> Removing pnp from the kernel configuration will allow me to boot
> and successfully detects my pnp modem.  So the culprit seems to
> be the new pnp code.  Suggestions welcome.

Hmm, I also have severe problems with the PnP stuff and my 3C509
cards, it just wont work as the pnp code finds and allocates
adresses for the card, but the card probe doesn't pick them up...

-Soren



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



Re: Recent kernel hangs during boot with pnp sio.

1999-10-01 Thread Daniel Eischen

Soren Schmidt wrote:
> It seems Daniel M. Eischen wrote:
> > 
> > More info on the kernel hang.
> > 
> > Removing pnp from the kernel configuration will allow me to boot
> > and successfully detects my pnp modem.  So the culprit seems to
> > be the new pnp code.  Suggestions welcome.
> 
> Hmm, I also have severe problems with the PnP stuff and my 3C509
> cards, it just wont work as the pnp code finds and allocates
> adresses for the card, but the card probe doesn't pick them up...

Here, it might be the opposite.  The normal sio probes pick up the
pnp modem just fine, and then perhaps pnp comes along and trounces
on what has already been setup/configured.

Dan Eischen
[EMAIL PROTECTED]


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



Re: Recent kernel hangs during boot with pnp sio.

1999-10-02 Thread Doug Rabson

On Fri, 1 Oct 1999, Daniel Eischen wrote:

> Soren Schmidt wrote:
> > It seems Daniel M. Eischen wrote:
> > > 
> > > More info on the kernel hang.
> > > 
> > > Removing pnp from the kernel configuration will allow me to boot
> > > and successfully detects my pnp modem.  So the culprit seems to
> > > be the new pnp code.  Suggestions welcome.
> > 
> > Hmm, I also have severe problems with the PnP stuff and my 3C509
> > cards, it just wont work as the pnp code finds and allocates
> > adresses for the card, but the card probe doesn't pick them up...
> 
> Here, it might be the opposite.  The normal sio probes pick up the
> pnp modem just fine, and then perhaps pnp comes along and trounces
> on what has already been setup/configured.

Could you try this patch for me. It attempts to disable pnp devices before
running the regular probes. This allows it to 'hide' those devices from
the heuristic probes so that they don't get seen twice when the pnp probe
happens.

Index: isa_common.c
===
RCS file: /home/ncvs/src/sys/isa/isa_common.c,v
retrieving revision 1.9
diff -u -r1.9 isa_common.c
--- isa_common.c1999/09/07 08:42:47 1.9
+++ isa_common.c1999/09/25 17:11:59
@@ -435,7 +435,21 @@
return;
 
/*
-* First probe all non-pnp devices so that they claim their
+* First disable all pnp devices so that they don't get
+* matched by legacy probes.
+*/
+   for (i = 0; i < nchildren; i++) {
+   device_t child = children[i];
+   struct isa_device *idev = DEVTOISA(child);
+   struct isa_config config;
+
+   bzero(&config, sizeof config);
+   if (idev->id_config_cb)
+   idev->id_config_cb(idev->id_config_arg, &config, 0);
+   }
+
+   /*
+* Next probe all non-pnp devices so that they claim their
 * resources first.
 */
for (i = 0; i < nchildren; i++) {
@@ -449,7 +463,7 @@
}
 
/*
-* Next assign resource to pnp devices and probe them.
+* Finally assign resource to pnp devices and probe them.
 */
for (i = 0; i < nchildren; i++) {
device_t child = children[i];

--
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: Recent kernel hangs during boot with pnp sio.

1999-10-02 Thread Daniel M. Eischen

Doug Rabson wrote:
> 
> > Here, it might be the opposite.  The normal sio probes pick up the
> > pnp modem just fine, and then perhaps pnp comes along and trounces
> > on what has already been setup/configured.
> 
> Could you try this patch for me. It attempts to disable pnp devices before
> running the regular probes. This allows it to 'hide' those devices from
> the heuristic probes so that they don't get seen twice when the pnp probe
> happens.

[ Patch elided ]

This stops the kernel from hanging.  The serial device (sio2) doesn't get
detected during the regular probes and the pnp probe detects it.  But the
pnp probe detects it at the wrong IRQ (5 instead of 11).

Here's an excerpt of a verbose boot:

  sio0: irq maps: 0x801 0x811 0x801 0x801
  sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
  sio0: type 16550A
  sio1: irq maps: 0x801 0x809 0x801 0x801
  sio1 at port 0x2f8-0x2ff irq 3 on isa0
  sio1: type 16550A
  sio2: configured irq 11 not in bitmap of probed irqs 0
  sio2: irq maps: 0x801 0x801 0x801 0x801
  sio2: probe failed test(s): 0 1 2 4 6 7 9
  ppc: parallel port found at 0x378
  ppc0: ECP SPP ECP+EPP SPP
  ppc0 at port 0x378-0x37f irq 7 on isa0
  ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
  ppc0: FIFO with 16/16/9 bytes threshold
  plip: irq 7
  plip0:  on ppbus 0
  bpf: lp0 attached
  lpt0:  on ppbus 0
  lpt0: Interrupt-driven port
  ppi0:  on ppbus 0
  unknown0:  at port 0x3e8-0x3ef irq 5 on isa0

What's the unknown0?  Shouldn't that be sio2?  Do we need the logical
device ID?

>From pnpinfo -v:

  Card assigned CSN #1
  Vendor ID SUP2480 (0x8024b04e), Serial Number 0x1334
  PnP Version 1.0, Vendor Version 0
  Device Description: SupraExpress 56i Sp V.90

  Logical Device ID: SUP2480 0x8024b04e #0
  Device supports I/O Range Check
  Compatible Device ID: SUP2080 (8020b04e)

  [ See my original Email for a full listing. ]

  CSN SUP2480 (0x8024b04e), Serial Number 0x1334

  Logical device #0
  IO:  0x03e8 0x 0x 0x 0x 0x 0x 0x
  IRQ 11 0
  DMA 4 0
  IO range check 0x00 activate 0x01

Dan Eischen
[EMAIL PROTECTED]


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



Re: Recent kernel hangs during boot with pnp sio.

1999-10-02 Thread Matthew N. Dodd

On Sat, 2 Oct 1999, Daniel M. Eischen wrote:
> What's the unknown0?  Shouldn't that be sio2?  Do we need the logical
> device ID?

Yes.  Try adding 0x8024b04e to sio.c

-- 
| 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: Recent kernel hangs during boot with pnp sio.

1999-10-02 Thread Daniel Eischen

Matthew N. Dodd wrote:
> On Sat, 2 Oct 1999, Daniel M. Eischen wrote:
> > What's the unknown0?  Shouldn't that be sio2?  Do we need the logical
> > device ID?
> 
> Yes.  Try adding 0x8024b04e to sio.c

OK, I originally did that to no avail, but I didn't make the change to
the correct file (sys/isa/sio.c, not sys/dev/sio/sio.c)!  So with the
following change:

Index: sio.c
===
RCS file: /opt/b/CVS/src/sys/isa/sio.c,v
retrieving revision 1.268
diff -u -r1.268 sio.c
--- sio.c   1999/09/25 18:24:21 1.268
+++ sio.c   1999/10/02 21:54:33
@@ -568,6 +568,7 @@
{0x1005d041, "Generic IRDA-compatible device"}, /* PNP0510 */
{0x1105d041, "Generic IRDA-compatible device"}, /* PNP0511 */
{0x31307256, "USR3031"},/* USR3031 */
+   {0x8024b04e, "SupraExpress 56i Sp V.90"},
{0}
 };

the modem is detected as:

  sio-1: irq maps: 0x801 0x821 0x801 0x801
  sio3:  at port 0x3e8-0x3ef irq 5 on isa0
  sio3: type 16550A

My BIOS places the modem at IRQ 11, but FreeBSD puts it at
IRQ 5.  It's working fine at IRQ 5 so I am once again a happy
camper :-)

Dan Eischen
[EMAIL PROTECTED]


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



Re: Recent kernel hangs during boot with pnp sio.

1999-10-03 Thread Daniel M. Eischen

Daniel Eischen wrote:
> OK, I originally did that to no avail, but I didn't make the change to
> the correct file (sys/isa/sio.c, not sys/dev/sio/sio.c)!  So with the
> following change:
> 
> Index: sio.c
> ===
> RCS file: /opt/b/CVS/src/sys/isa/sio.c,v
> retrieving revision 1.268
> diff -u -r1.268 sio.c
> --- sio.c   1999/09/25 18:24:21 1.268
> +++ sio.c   1999/10/02 21:54:33
> @@ -568,6 +568,7 @@
>   {0x1005d041, "Generic IRDA-compatible device"}, /* PNP0510 */
>   {0x1105d041, "Generic IRDA-compatible device"}, /* PNP0511 */
>   {0x31307256, "USR3031"},/* USR3031 */
> + {0x8024b04e, "SupraExpress 56i Sp V.90"},
>   {0}
>  };
> 
> the modem is detected as:
> 
>   sio-1: irq maps: 0x801 0x821 0x801 0x801
>   sio3:  at port 0x3e8-0x3ef irq 5 on isa0
>   sio3: type 16550A

Who's responsible for sio.c?  Can I commit this change?

Dan Eischen
[EMAIL PROTECTED]


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



Re: Recent kernel hangs during boot with pnp sio.

1999-10-03 Thread Doug Rabson

On Sun, 3 Oct 1999, Daniel M. Eischen wrote:

> Daniel Eischen wrote:
> > OK, I originally did that to no avail, but I didn't make the change to
> > the correct file (sys/isa/sio.c, not sys/dev/sio/sio.c)!  So with the
> > following change:
> > 
> > Index: sio.c
> > ===
> > RCS file: /opt/b/CVS/src/sys/isa/sio.c,v
> > retrieving revision 1.268
> > diff -u -r1.268 sio.c
> > --- sio.c   1999/09/25 18:24:21 1.268
> > +++ sio.c   1999/10/02 21:54:33
> > @@ -568,6 +568,7 @@
> > {0x1005d041, "Generic IRDA-compatible device"}, /* PNP0510 */
> > {0x1105d041, "Generic IRDA-compatible device"}, /* PNP0511 */
> > {0x31307256, "USR3031"},/* USR3031 */
> > +   {0x8024b04e, "SupraExpress 56i Sp V.90"},
> > {0}
> >  };
> > 
> > the modem is detected as:
> > 
> >   sio-1: irq maps: 0x801 0x821 0x801 0x801
> >   sio3:  at port 0x3e8-0x3ef irq 5 on isa0
> >   sio3: type 16550A
> 
> Who's responsible for sio.c?  Can I commit this change?

I think you should commit the change.

--
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: Recent kernel hangs during boot with pnp sio.

1999-10-03 Thread Doug Rabson

On Sun, 3 Oct 1999, Daniel M. Eischen wrote:

> Daniel Eischen wrote:
> > OK, I originally did that to no avail, but I didn't make the change to
> > the correct file (sys/isa/sio.c, not sys/dev/sio/sio.c)!  So with the
> > following change:
> > 
> > Index: sio.c
> > ===
> > RCS file: /opt/b/CVS/src/sys/isa/sio.c,v
> > retrieving revision 1.268
> > diff -u -r1.268 sio.c
> > --- sio.c   1999/09/25 18:24:21 1.268
> > +++ sio.c   1999/10/02 21:54:33
> > @@ -568,6 +568,7 @@
> > {0x1005d041, "Generic IRDA-compatible device"}, /* PNP0510 */
> > {0x1105d041, "Generic IRDA-compatible device"}, /* PNP0511 */
> > {0x31307256, "USR3031"},/* USR3031 */
> > +   {0x8024b04e, "SupraExpress 56i Sp V.90"},
> > {0}
> >  };
> > 
> > the modem is detected as:
> > 
> >   sio-1: irq maps: 0x801 0x821 0x801 0x801
> >   sio3:  at port 0x3e8-0x3ef irq 5 on isa0
> >   sio3: type 16550A
> 
> Who's responsible for sio.c?  Can I commit this change?

I looked at you pnpinfo again and I think this change might be better. It
accepts the cards description instead of overriding it and adds another ID
for SUP2080 which your card is compatible with. I also removed the bogus
descriptions for the USR3031 since the pnpinfo for that also supplies a
reasonable description.

Index: sio.c
===
RCS file: /home/ncvs/src/sys/isa/sio.c,v
retrieving revision 1.268
diff -u -r1.268 sio.c
--- sio.c   1999/09/25 18:24:21 1.268
+++ sio.c   1999/10/03 18:32:10
@@ -567,7 +567,9 @@
{0x0205d041, "Multiport serial device (non-intelligent 16550)"}, /* PNP0502 */
{0x1005d041, "Generic IRDA-compatible device"}, /* PNP0510 */
{0x1105d041, "Generic IRDA-compatible device"}, /* PNP0511 */
-   {0x31307256, "USR3031"},/* USR3031 */
+   {0x31307256, NULL}, /* USR3031 */
+   {0x8024b04e, NULL}, /* SUP2480 */
+   {0x8020b04e, NULL}, /* SUP2080 */
{0}
 };
 

--
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: Recent kernel hangs during boot with pnp sio.

1999-10-03 Thread Kurt D. Zeilenga

I provided a patch for the USR2030 that likely could be
committed at the same time.  See kern/13983.

Kurt

At 07:34 PM 10/3/99 +0100, Doug Rabson wrote:
>diff -u -r1.268 sio.c
>--- sio.c  1999/09/25 18:24:21 1.268
>+++ sio.c  1999/10/03 18:32:10
>@@ -567,7 +567,9 @@
>   {0x0205d041, "Multiport serial device (non-intelligent 16550)"}, /* PNP0502 */
>   {0x1005d041, "Generic IRDA-compatible device"}, /* PNP0510 */
>   {0x1105d041, "Generic IRDA-compatible device"}, /* PNP0511 */
>-  {0x31307256, "USR3031"},/* USR3031 */
>+  {0x31307256, NULL}, /* USR3031 */

+   {0x30207256, NULL}, /* USR2030 */

>+  {0x8024b04e, NULL}, /* SUP2480 */
>+  {0x8020b04e, NULL}, /* SUP2080 */
>   {0}
> };
> 

$ pnpinfo -v

Checking for Plug-n-Play devices...

Card assigned CSN #1
Vendor ID USR2030 (0x30207256), Serial Number 0xadacaa93
PnP Version 1.0, Vendor Version 0
Device Description: U.S.Robotics Inc. Sportster 56000 FAX Internal 

Logical Device ID: USR2030 0x30207256 #0
TAG Start DF
Good Configuration
I/O Range 0x2f8 .. 0x2f8, alignment 0x8, len 0x8
[16-bit addr]
IRQ: 3 5 7  - only one type (true/edge)
TAG Start DF
Acceptable Configuration
I/O Range 0x3f8 .. 0x3f8, alignment 0x8, len 0x8
[16-bit addr]
IRQ: 2 3 4 5 7  - only one type (true/edge)
TAG Start DF
Acceptable Configuration
I/O Range 0x3e8 .. 0x3e8, alignment 0x8, len 0x8
[16-bit addr]
IRQ: 2 3 4 5 7  - only one type (true/edge)
TAG Start DF
Acceptable Configuration
I/O Range 0x2e8 .. 0x2e8, alignment 0x8, len 0x8
[16-bit addr]
IRQ: 2 3 4 5 7  - only one type (true/edge)
TAG End DF
End Tag

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

CSN USR2030 (0x30207256), Serial Number 0xadacaa93

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



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



Re: Recent kernel hangs during boot with pnp sio.

1999-10-03 Thread Daniel Eischen

Doug Rabson wrote:
> I looked at you pnpinfo again and I think this change might be better. It
> accepts the cards description instead of overriding it and adds another ID
> for SUP2080 which your card is compatible with. I also removed the bogus
> descriptions for the USR3031 since the pnpinfo for that also supplies a
> reasonable description.

Kurt D. Zeilenga wrote:
> I provided a patch for the USR2030 that likely could be
> committed at the same time.  See kern/13983.

OK, I committed both of these changes.  Thanks to you both.
I'll look at closing PR kern/13983.

Dan Eischen
[EMAIL PROTECTED]


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



Re: Recent kernel hangs during boot with pnp sio.

1999-10-04 Thread Doug Rabson

On Sun, 3 Oct 1999, Daniel Eischen wrote:

> Doug Rabson wrote:
> > I looked at you pnpinfo again and I think this change might be better. It
> > accepts the cards description instead of overriding it and adds another ID
> > for SUP2080 which your card is compatible with. I also removed the bogus
> > descriptions for the USR3031 since the pnpinfo for that also supplies a
> > reasonable description.
> 
> Kurt D. Zeilenga wrote:
> > I provided a patch for the USR2030 that likely could be
> > committed at the same time.  See kern/13983.
> 
> OK, I committed both of these changes.  Thanks to you both.
> I'll look at closing PR kern/13983.

Thanks for picking this up Dan. I'm glad we got your system working.

--
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: Recent kernel hangs during boot with pnp sio.

1999-10-04 Thread Timo Geusch

On Fri, Oct 01, 1999 at 02:32:11PM +0200, Soren Schmidt wrote:
> Hmm, I also have severe problems with the PnP stuff and my 3C509
> cards, it just wont work as the pnp code finds and allocates
> adresses for the card, but the card probe doesn't pick them up...

Soren,
AFAIK the ep driver does not interact with PnP, does it? Those cards do have
two different methods for detecting the parameters, one of which is PnP.
If the driver hasn't changed much in the last two-three months is doesn't know
about PnP at all. PnP-like config entries used to work via the old 3Com-
specific configuration mechanism.
I do have an updated/changed driver that uses Pnp to configure the card but I
am not able to work on it until mid next week. Also it exposes problems 
which I believe are in my changes or side-effects from the apparent buggyness
of the original driver.
If you're interested I can send you the source code for the driver but it is
not clear if it works on -current at the moment as I haven't updated for
some time.

Timo


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



Re: Recent kernel hangs during boot with pnp sio.

1999-10-04 Thread Soren Schmidt

It seems Timo Geusch wrote:
> On Fri, Oct 01, 1999 at 02:32:11PM +0200, Soren Schmidt wrote:
> > Hmm, I also have severe problems with the PnP stuff and my 3C509
> > cards, it just wont work as the pnp code finds and allocates
> > adresses for the card, but the card probe doesn't pick them up...
> 
> Soren,
> AFAIK the ep driver does not interact with PnP, does it? Those cards do have
> two different methods for detecting the parameters, one of which is PnP.
> If the driver hasn't changed much in the last two-three months is doesn't know
> about PnP at all. PnP-like config entries used to work via the old 3Com-
> specific configuration mechanism.

Correct, but if one has pnp0 in the kernel it doesn work no matter how
you config it (or at least I cannot get it to work)..

> I do have an updated/changed driver that uses Pnp to configure the card but I
> am not able to work on it until mid next week. Also it exposes problems 
> which I believe are in my changes or side-effects from the apparent buggyness
> of the original driver.
> If you're interested I can send you the source code for the driver but it is
> not clear if it works on -current at the moment as I haven't updated for
> some time.

Sure, I can try it out here, and maybe help a little (time permitting)...

-Soren


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



Re: Recent kernel hangs during boot with pnp sio.

1999-10-04 Thread Matthew N. Dodd

On Mon, 4 Oct 1999, Timo Geusch wrote:
> If you're interested I can send you the source code for the driver but it is
> not clear if it works on -current at the moment as I haven't updated for
> some time.

Send it here as I'm working on if_ep in some fashion.

Someone find me a verified PnP 3c509 too.  I'll pay shipping and $10 for
one.  I've got a normal 3c509 and a 3c579 in transit and a 3c529 in use.
I'd be interested in a 3c589 for testing purposes but at this point it
would be of little use has I've not yet put my hands on a ISA to PCMCIA
reader.


-- 
| 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: Recent kernel hangs during boot with pnp sio.

1999-10-05 Thread Timo Geusch

On Mon, Oct 04, 1999 at 11:12:10PM -0400, Matthew N. Dodd wrote:
> On Mon, 4 Oct 1999, Timo Geusch wrote:
> > If you're interested I can send you the source code for the driver but it is
> > not clear if it works on -current at the moment as I haven't updated for
> > some time.
> 
> Send it here as I'm working on if_ep in some fashion.

I'll send it once I verified that it (still) works with -current. The work
dates from before newpnp, Also, some indication as to where you made changes
would benice - my PnP changes are pretty self-contained but I made some more
general changes that might cause problems.
Anyway I'll get back to you end of next week (earliest I can manage).

> Someone find me a verified PnP 3c509 too.  I'll pay shipping and $10 for
> one.  I've got a normal 3c509 and a 3c579 in transit and a 3c529 in use.
> I'd be interested in a 3c589 for testing purposes but at this point it
> would be of little use has I've not yet put my hands on a ISA to PCMCIA
> reader.

Afaik all 3C509B's are PnP. At least here in the UK there is not shortage of
those cards.

Timo


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



Re: Recent kernel hangs during boot with pnp sio.

1999-10-05 Thread Matthew N. Dodd

On Tue, 5 Oct 1999, Timo Geusch wrote:

> I'll send it once I verified that it (still) works with -current. The
> work dates from before newpnp, Also, some indication as to where you
> made changes would benice - my PnP changes are pretty self-contained
> but I made some more general changes that might cause problems. Anyway
> I'll get back to you end of next week (earliest I can manage).

Just send me the code and I'll sort it out.  This would be easiest for
you.  If I wanted easy it wouldn't be touching if_ep.

> Afaik all 3C509B's are PnP. At least here in the UK there is not
> shortage of those cards.

If I can get a difinitive statement to this effect then I'll grab a
3c509B.  There was some question as to them actually being PnP though.

-- 
| 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: Recent kernel hangs during boot with pnp sio.

1999-10-05 Thread Kevin Day

> 
> > Afaik all 3C509B's are PnP. At least here in the UK there is not
> > shortage of those cards.
> 
> If I can get a difinitive statement to this effect then I'll grab a
> 3c509B.  There was some question as to them actually being PnP though.
> 

Yes, the 3c509B can have PnP turned on or off through a DOS utility. Either
you set an IO/IRQ setting, or you set it to PnP and let the system do it. (I
believe they come with PnP enabled now, but before the default was off)

Kevin


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



Re: Recent kernel hangs during boot with pnp sio.

1999-10-06 Thread Doug Rabson

On Tue, 5 Oct 1999, Kevin Day wrote:

> > 
> > > Afaik all 3C509B's are PnP. At least here in the UK there is not
> > > shortage of those cards.
> > 
> > If I can get a difinitive statement to this effect then I'll grab a
> > 3c509B.  There was some question as to them actually being PnP though.
> > 
> 
> Yes, the 3c509B can have PnP turned on or off through a DOS utility. Either
> you set an IO/IRQ setting, or you set it to PnP and let the system do it. (I
> believe they come with PnP enabled now, but before the default was off)

If you find yourself with one of these and pnp is turned off, you can
download the DOS utility from 3com. I recently had to do this for a friend
(to turn pnp off). It was harder to find a DOS boot disk :-).

--
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: Recent kernel hangs during boot with pnp sio.

1999-10-12 Thread Warner Losh

In message <[EMAIL PROTECTED]> Doug Rabson 
writes:
: If you find yourself with one of these and pnp is turned off, you can
: download the DOS utility from 3com. I recently had to do this for a friend
: (to turn pnp off). It was harder to find a DOS boot disk :-).

Sometimes these programs work with doscmd with magic command line
options...

Warner


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