Re: ThinkPad X22 PC-Card slot problem

2002-02-15 Thread non

Sorry for late reply. I didn't have time to test it.

From: M. Warner Losh [EMAIL PROTECTED]
Date: Thu, 07 Feb 2002 10:04:35 -0700 (MST)
 Yes.  This is the ISA problem.  The checks are there to make sure we
 don't assign addresses that aren't decoded by the bridge.  However,
 the bridge does decode ISA addresses.  I need to check into which ISA
 stuff a little better before making a fix.

  Revision  ChangesPath
  1.7   +30 -14src/sys/dev/pci/pci_pci.c

This fixed half of the problem, thank you. 

However, X22's PCICs (yes two PCICs) request to use
0x5000-0x5fff and 0x5000-0x5fff where the bridge does
not know. So I still need PCI_ALLOW_UNSUPPORTED_IO_RANGE.

pcib1: PCI-PCI bridge at device 1.0 on pci0
pcib1:   secondary bus 1
pcib1:   subordinate bus   1
pcib1:   I/O decode0x3000-0x3fff
pcib1:   memory decode 0xc010-0xc01f
pcib1:   prefetched decode 0xe000-0xe7ff
pci1: physical bus=1
map[10]: type 3, range 32, base e000, size 27, enabled
map[14]: type 4, range 32, base 3000, size  8, enabled
map[18]: type 1, range 32, base c010, size 16, enabled
found- vendor=0x1002, dev=0x4c59, revid=0x00
bus=1, slot=0, func=0
class=03-00-00, hdrtype=0x00, mfdev=0
intpin=a, irq=11
powerspec 2  supports D0 D1 D2 D3  current D0
:
pcic0: Ricoh RL5C476 PCI-CardBus Bridge mem 0x5000-0x5fff irq 11 at 
device 3.0 on pci2
pcib2: device pcic0 requested unsupported memory range 0x5000-0x5fff (
decoding 0xc020-0xcfff, 0xe800-0xf00f)
pcib2: device pcic0 requested decoded memory range 0x5000-0x5fff

// Noriaki Mitsunaga //

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



Re: ThinkPad X22 PC-Card slot problem

2002-02-11 Thread M. Warner Losh

In message: [EMAIL PROTECTED]
[EMAIL PROTECTED] writes:
: From: M. Warner Losh [EMAIL PROTECTED]
: Date: Wed, 06 Feb 2002 19:33:32 -0700 (MST)
:  Hmmm.  This looks ugly. :-(  I can't boot with acpi enabled on my Dell
:  Inspiron 8000.  I can boot with apm enabled.  There are issues with
:  routing interrupts accross PCI PCI bridges at the moment when the
:  slots on the other side of the bridge are in the PIR table.
: 
: It turned out that this was not a intterupt routing problem. By
: disabling the memory/port range checks in sys/dev/pci/pci_pci.c solved 
: the problem (below is the patch). pci_pci.c claims that both the
: memory adderss for pcic and the PC-Cards are not supported but I could
: use the addresses. 

Yes.  This is the ISA problem.  The checks are there to make sure we
don't assign addresses that aren't decoded by the bridge.  However,
the bridge does decode ISA addresses.  I need to check into which ISA
stuff a little better before making a fix.

Warner

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

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



Re: ThinkPad X22 PC-Card slot problem

2002-02-11 Thread M. Warner Losh

In message: [EMAIL PROTECTED]
[EMAIL PROTECTED] writes:
: From: Takanori Watanabe [EMAIL PROTECTED]
: Date: Wed, 06 Feb 2002 23:16:21 +0900
:  I recently installed -current to ThinkPad X22. Though it seems that
:  X22's PC-Card slots work fine with -stable, in -current when probing
:  PCICs I got following message,
:   :
:  How about disabling ACPI? If this works, it is because ACPI PCI interrupt 
:  routing problem.
: 
: No, disabling ACPI does not change the situation.

Hmmm.  This looks ugly. :-(  I can't boot with acpi enabled on my Dell
Inspiron 8000.  I can boot with apm enabled.  There are issues with
routing interrupts accross PCI PCI bridges at the moment when the
slots on the other side of the bridge are in the PIR table.

Warner


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

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



Re: ThinkPad X22 PC-Card slot problem

2002-02-07 Thread non

From: M. Warner Losh [EMAIL PROTECTED]
Date: Wed, 06 Feb 2002 19:33:32 -0700 (MST)
 Hmmm.  This looks ugly. :-(  I can't boot with acpi enabled on my Dell
 Inspiron 8000.  I can boot with apm enabled.  There are issues with
 routing interrupts accross PCI PCI bridges at the moment when the
 slots on the other side of the bridge are in the PIR table.

It turned out that this was not a intterupt routing problem. By
disabling the memory/port range checks in sys/dev/pci/pci_pci.c solved 
the problem (below is the patch). pci_pci.c claims that both the
memory adderss for pcic and the PC-Cards are not supported but I could
use the addresses. 

// Noriaki Mitsunga // 

Index: pci_pci.c
===
RCS file: /home/ncvs/src/sys/dev/pci/pci_pci.c,v
retrieving revision 1.6
diff -u -r1.6 pci_pci.c
--- pci_pci.c   15 Jan 2002 06:46:59 -  1.6
+++ pci_pci.c   7 Feb 2002 09:55:44 -
@@ -282,15 +282,18 @@
 */
switch (type) {
case SYS_RES_IOPORT:
+#if 0
if (start  sc-iobase)
start = sc-iobase;
if (end  sc-iolimit  start  end)
end = sc-iolimit;
+#endif
if ((start  sc-iobase) || (end  sc-iolimit)) {
device_printf(dev, device %s%d requested unsupported I/O range 
0x%lx-0x%lx
   (decoding 0x%x-0x%x)\n,
  device_get_name(child), device_get_unit(child), start, 
end,
  sc-iobase, sc-iolimit);
+#define PCI_ALLOW_UNSUPPORTED_IO_RANGE
 #ifndef PCI_ALLOW_UNSUPPORTED_IO_RANGE
return(NULL);
 #endif

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



Re: ThinkPad X22 PC-Card slot problem

2002-02-07 Thread M. Warner Losh

In message: [EMAIL PROTECTED]
[EMAIL PROTECTED] writes:
: From: M. Warner Losh [EMAIL PROTECTED]
: Date: Wed, 06 Feb 2002 19:33:32 -0700 (MST)
:  Hmmm.  This looks ugly. :-(  I can't boot with acpi enabled on my Dell
:  Inspiron 8000.  I can boot with apm enabled.  There are issues with
:  routing interrupts accross PCI PCI bridges at the moment when the
:  slots on the other side of the bridge are in the PIR table.
: 
: It turned out that this was not a intterupt routing problem. By
: disabling the memory/port range checks in sys/dev/pci/pci_pci.c solved 
: the problem (below is the patch). pci_pci.c claims that both the
: memory adderss for pcic and the PC-Cards are not supported but I could
: use the addresses. 

Yes.  This is the ISA problem.  The checks are there to make sure we
don't assign addresses that aren't decoded by the bridge.  However,
the bridge does decode ISA addresses.  I need to check into which ISA
stuff a little better before making a fix.

Warner

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



Re: ThinkPad X22 PC-Card slot problem

2002-02-06 Thread Takanori Watanabe

In message [EMAIL PROTECTED], [EMAIL PROTECTED] wrote

I recently installed -current to ThinkPad X22. Though it seems that
X22's PC-Card slots work fine with -stable, in -current when probing
PCICs I got following message,

pcic0: Ricoh RL5C476 PCI-CardBus Bridge mem 0x5000-0x5fff irq 11 at 
device 3.0 on pci2
pcib2: device pcic0 requested unsupported memory range 0x5000-0x5fff (
decoding 0xc020-0xcfff, 0xe800-0xf00f)
pcib2: device pcic0 requested decoded memory range 0x5000-0x5fff

after this, pcic returns error but some how it is attached and when I
install a PC-Card, the machine freezes. The address range above
(0x5000-0x5fff) is same one that I see with -stable.

When PCI_ALLOW_UNSUPPORTED_IO_RANGE is defined in
sys/dev/pci/pci_pci.c, pcic does not return error, the machine does
not freeze, but when a PC-Card is inserted I get the message,

pccard: card inserted, slot 0
pcic0: reset 1 int is 10 stat is 5f
pcic0: reset 2 int is 70 stat is 5f
pcic0: reset 3 int is 70 stat is 7f
pcic0: Event mask 0x9
pcib2: device pccard0 requested decoded I/O range 0x4000-0x25f
pcib2: device pccard0 requested decoded I/O range 0x4000-0x25f
pcib2: device pccard0 requested decoded I/O range 0x4000-0x25f
pcib2: device pccard0 requested decoded I/O range 0x4000-0x25f
pcib2: device pccard0 requested decoded I/O range 0x4000-0x25f
   :

and the card does not attached. The complete dmesg with boot -v is
attached. Any ideas ?

How about disabling ACPI? If this works, it is because ACPI PCI interrupt 
routing problem.

pcib2: PCI-PCI bridge at device 30.0 on pci0
pci2: PCI bus on pcib2
pcic0: Ricoh RL5C476 PCI-CardBus Bridge mem 0x5000-0x5fff irq 11 at device 
3.0 on pci2

Takanori Watanabe
a href=http://www.planet.sci.kobe-u.ac.jp/~takawata/key.html;
Public Key/a
Key fingerprint =  2C 51 E2 78 2C E1 C5 2D  0F F1 20 A3 11 3A 62 2A 


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



Re: ThinkPad X22 PC-Card slot problem

2002-02-06 Thread non

From: Takanori Watanabe [EMAIL PROTECTED]
Date: Wed, 06 Feb 2002 23:16:21 +0900
 I recently installed -current to ThinkPad X22. Though it seems that
 X22's PC-Card slots work fine with -stable, in -current when probing
 PCICs I got following message,
:
 How about disabling ACPI? If this works, it is because ACPI PCI interrupt 
 routing problem.

No, disabling ACPI does not change the situation.

// Noriaki Mitsunaga //

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



Re: ThinkPad X22 PC-Card slot problem

2002-02-06 Thread M. Warner Losh

In message: [EMAIL PROTECTED]
[EMAIL PROTECTED] writes:
: From: Takanori Watanabe [EMAIL PROTECTED]
: Date: Wed, 06 Feb 2002 23:16:21 +0900
:  I recently installed -current to ThinkPad X22. Though it seems that
:  X22's PC-Card slots work fine with -stable, in -current when probing
:  PCICs I got following message,
:   :
:  How about disabling ACPI? If this works, it is because ACPI PCI interrupt 
:  routing problem.
: 
: No, disabling ACPI does not change the situation.

Hmmm.  This looks ugly. :-(  I can't boot with acpi enabled on my Dell
Inspiron 8000.  I can boot with apm enabled.  There are issues with
routing interrupts accross PCI PCI bridges at the moment when the
slots on the other side of the bridge are in the PIR table.

Warner


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