Re: PCMCIA modem is detected/attached only on second insertion

2001-11-15 Thread Maxim Sobolev

Maxim Sobolev wrote:
 
 Konstantin Chuguev wrote:
 
  Hi All,
 
  FYI:
 
  Maxim Sobolev wrote:
 
   I had started observing this problem about a 1.5 months ago - my
   PCMCIA modem (EigerCom 33.6) is detected/attached only on second
   insertion, i.e. if I'm booting with the card inserted I have to
   manually eject it and put back, while if the machine boots with
   an empty slot I have to do insert-eject-insert procedure. At the
   same time, another PCMCIA card (ed0-compatible ethernet adapter)
   doesn't have this problem. Following is related kernel output
 
  The funny thing is, I've got the opposite situation: I have to insert my
  network card twice (Netgear - old version), but my modem card (Xircom) works
  fine straight away. CURRENT, OLDCARD.
 
 Warner, do you have any ideas?

Ok, I've investigated and found that the source of the problem was a
trivial misconfiguration. In my pccard.conf I've assigned IRQ 9 to
modem, while forgot to add this IRQ into the list of available IRQs (I
had 3 5 10 11 13 15). For some reason, this setup was working during
at least past 1 year, which is obviously the reason why
misconfiguration wasn't detected earlier.

However, the quiestion remains, whether it is a good that behaviour is
different on second insertion. Digging into pccardd revealed that this
happens because after the first failure the daemon resets IRQ field in
the configuration structure to be 0, so that at the next insertion the
daemon allocates a first free IRQ available. Attached patch is
expected to make behaviour more consistent. Please let me know what do
you think.

-Maxim

Index: cardd.c
===
RCS file: /home/ncvs/src/usr.sbin/pccard/pccardd/cardd.c,v
retrieving revision 1.74
diff -d -u -r1.74 cardd.c
--- cardd.c 2001/10/05 20:38:32 1.74
+++ cardd.c 2001/11/15 19:19:26
@@ -532,6 +532,11 @@
irqmin = 1;
irqmax = 15;
} else {
+   if (pool_irq[conf-irq] == 0) {
+   logmsg(IRQ %d required for %s is not in the list of 
+  available IRQs, conf-irq, cp-manuf);
+   return (NULL);
+   }
irqmin = irqmax = conf-irq;
conf-irq = 0;  /* Make sure we get it. */
}



Re: PCMCIA modem is detected/attached only on second insertion

2001-10-30 Thread Maxim Sobolev

Konstantin Chuguev wrote:
 
 Hi All,
 
 FYI:
 
 Maxim Sobolev wrote:
 
  I had started observing this problem about a 1.5 months ago - my
  PCMCIA modem (EigerCom 33.6) is detected/attached only on second
  insertion, i.e. if I'm booting with the card inserted I have to
  manually eject it and put back, while if the machine boots with
  an empty slot I have to do insert-eject-insert procedure. At the
  same time, another PCMCIA card (ed0-compatible ethernet adapter)
  doesn't have this problem. Following is related kernel output
 
 The funny thing is, I've got the opposite situation: I have to insert my
 network card twice (Netgear - old version), but my modem card (Xircom) works
 fine straight away. CURRENT, OLDCARD.

Warner, do you have any ideas?

-Maxim

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



PCMCIA modem is detected/attached only on second insertion

2001-10-23 Thread Maxim Sobolev

Hi,

I had started observing this problem about a 1.5 months ago - my
PCMCIA modem (EigerCom 33.6) is detected/attached only on second
insertion, i.e. if I'm booting with the card inserted I have to
manually eject it and put back, while if the machine boots with
an empty slot I have to do insert-eject-insert procedure. At the
same time, another PCMCIA card (ed0-compatible ethernet adapter)
doesn't have this problem. Following is related kernel output
when booted in the verbose mode (see my comments in []):

pcic0: Intel i82365SL-A/B at port 0x3e0-0x3e1 on isa0
pcic0: Polling mode
pccard0: PC Card bus (classic) on pcic0
pccard1: PC Card bus (classic) on pcic0
pcic1: Cannot get I/O range
pcic1 failed to probe at port 0x3e0-0x3e1 on isa0
pccard: card inserted, slot 0
pcic0: reset 1 int is 0 stat is ff
pccard: card inserted, slot 1
pcic0: reset 1 int is 0 stat is ff
pcic0: reset 2 int is 60 stat is cf
start_init: trying /sbin/init
pcic0: reset 2 int is 60 stat is ef
pcic0: reset 3 int is 60 stat is ef
pcic0: reset 3 int is 60 stat is ef
pccard0: Assigning ed0: io 0x240-0x25f irq 10 mem 0x0-0x
pcic: I/O win 0 flags 15 240-25f
pcic: I/O win 0 flags 5 240-25f
ed0 at port 0x240-0x25f irq 10 slot 0 on pccard0
pcic: I/O win 0 flags 15 240-25f
ed0: address 00:80:c8:88:86:b1, type NE2000 (16 bit)
[WAITING 5 min, no avail :( ]
[REMOVING modem]
pccard: card removed, slot 1
[INSERTING back]
pccard: card inserted, slot 1
pcic0: reset 1 int is 0 stat is ff
pcic0: reset 2 int is 60 stat is ef
pcic0: reset 3 int is 60 stat is ef
pccard1: Assigning sio1: io 0x2e8-0x2ef irq 3 mem 0x0-0x
pcic: I/O win 0 flags 11 2e8-2ef
pcic: I/O win 0 flags 1 2e8-2ef
sio1 at port 0x2e8-0x2ef irq 3 flags 0x4 slot 1 on pccard1
pcic: I/O win 0 flags 11 2e8-2ef
sio1: type 16550A
[IT WORKS]

Please fix.

-Maxim

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



Re: PCMCIA modem is detected/attached only on second insertion

2001-10-23 Thread Konstantin Chuguev

Hi All,

FYI:

Maxim Sobolev wrote:

 I had started observing this problem about a 1.5 months ago - my
 PCMCIA modem (EigerCom 33.6) is detected/attached only on second
 insertion, i.e. if I'm booting with the card inserted I have to
 manually eject it and put back, while if the machine boots with
 an empty slot I have to do insert-eject-insert procedure. At the
 same time, another PCMCIA card (ed0-compatible ethernet adapter)
 doesn't have this problem. Following is related kernel output

The funny thing is, I've got the opposite situation: I have to insert my
network card twice (Netgear - old version), but my modem card (Xircom) works
fine straight away. CURRENT, OLDCARD.

Regards,
Konstantin.

--
 * *   Konstantin Chuguev   Francis House
  *  * Application Engineer 112 Hills Road
*  Tel: +44 1223 302992 Cambridge CB2 1PQ
D  A  N  T  E  WWW: http://www.dante.netUnited Kingdom




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