Re: ThinkPad X22 PC-Card slot problem
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: 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: 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
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
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
ThinkPad X22 PC-Card slot problem
Next_Part(Wed_Feb__6_23:02:07_2002_731)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: 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 ? // Noriaki Mitsunaga // Next_Part(Wed_Feb__6_23:02:07_2002_731)-- Content-Type: Application/Octet-Stream Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="dmesg.X22-current.gz" H4sICCZVXzwCA2RtZXNnLlgyMi1jdXJyZW50AOw8/W/buJI/13/FoHfvkOzZDkl92rcpnuOk ra9Nk4vTfQssHgJZomK92JJWktu4f/3NkJKsOLbjZFssHrBFqlDiDOeDM8MZisowSZdZdDst 4MA/BN7riY5gTMD1VMLbTMqT8SlcZsm/pF90W8M1YKfXxqvL1NVQV1tdXXVVvT2urkJdFUzP bL2i4a/krYyLHJIQCrz9HEdfZJZHxZKeDL1ZFCZZHHldGMxmoMjmkMlcZl9k0G1VzFld1hl+ vro6+3QN/8F5H64XyLmcAFiAt4bd5z343/E1kFgtwH9ZkhR/L1LGuzLrevO8K+PbbpJ7d15n 0fX87r/S/tEiz47yzD/Kl/lRZLj2kZ/M02gmj96dfTq7Gg1bl5mcJV4gA5CzEO5kFssZvD6a 4NhH+q789Rq8Ati9zyxLMsa6a5jzJFjM5Bqm56dR9y55gDoxUf+olEnmFVF8C/4s8e8O8kPo drtwPR7qB31weo5hMm704P23NkSusMyqi/OewR0HO1rDjx9uPo/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ZYuJtZ7CqSlxlFNzlIQkEnDdoil7D 5hf55AVkEFsxWKITEM1FToUVbUsspgt6rkf9/B61QvukgE/boDfGekdMzR+BsyO6tPWOAK+Q BWiVY8EzxZsMHeaLrshz2utU84NmQnzwZ0pw0lCU0IoyNiuKNxX1AjKloniJvlFR/I8oij9L UQIlUFQObmUss8hf57uhGFMrxtqsGLFSjB734JP8qiU4VUCjoEyj9b4Kyr8H8VJdogTfqC6i 1Rj5RVoTe2uNvFjsXEEMtraEiM1LiGh0PlpC3FXnpiXE1EHerVYEsX0JEfUSEq5WBI2wcQlx 6yUkZKxGEGtLiFhfQh6HcuvhEsLFrlDOKaPUoZyZzULcc3UoF1WOsKn6cNZDudhZ3z4vlO8h KP+BgvLnCjr5YYKSMfGGoHxfQS1LPF6c1wV9UDuzDn9yx8LfR9CdIj7Oe8LnGK2waxEN19lQ 3lQiWo+MVnTcH5p/7DWXWwTdK8FzGwmevWcNyBll+Ou7GJWS3A1K+
Re: ThinkPad X22 PC-Card slot problem
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
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
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
Re: ThinkPad X22 PC-Card slot problem
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
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: 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: at device 30.0 on pci0 pci2: on pcib2 pcic0: mem 0x5000-0x5fff irq 11 at device 3.0 on pci2 Takanori Watanabe http://www.planet.sci.kobe-u.ac.jp/~takawata/key.html";> Public Key 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
ThinkPad X22 PC-Card slot problem
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: 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 ? // Noriaki Mitsunaga // dmesg.X22-current.gz Description: Binary data