dummy_cb, lspci woes

2005-04-09
2013-04-08
  • Sune Mølgaard
    Sune Mølgaard
    2005-04-09

    HI all.

    Linux 2.4.26
    pcmcia-cs 3.2.8

    I am trying to get a USR5410 cardbus card to work with the above.

    dummy_cb seems to load ok, but attempts to load ndiswrapper driver or #lspci for the card fails with:

    pcilib: Cannot open /proc/bus/pci/05/00.0
    Unable to read 64 bytes of configuration space.

    Full lspci:

    #lspci
    pcilib: Cannot open /proc/bus/pci/05/00.0
    Unable to read 64 bytes of configuration space.00:00.0 Host bridge: PicoPower Technology PT86C521 [Vesuvius v1] Host Bridge (rev 04)
    00:06.0 ISA bridge: PicoPower Technology PT86C523 [Vesuvius v3] PCI-ISA Bridge Slave
    00:07.0 VGA compatible controller: Neomagic Corporation NM2090 [MagicGraph 128V] (rev 01)
    00:08.0 IDE interface: CMD Technology Inc PCI0643
    00:09.0 CardBus bridge: Texas Instruments PCI1130 (rev 04)
    00:09.1 CardBus bridge: Texas Instruments PCI1130 (rev 04)

     
    • David Hinds
      David Hinds
      2005-04-12

      The /proc/pci problem is a limitation of the pcmcia-cs drivers on 2.4 kernels.  No workaround is available.

      -- Dave

       
    • Sune Mølgaard
      Sune Mølgaard
      2005-04-13

      So I gather, but then how can I make the driver find the card? I have a cardbus usb card that works just fine with dummy_cb.

       
      • David Hinds
        David Hinds
        2005-04-19

        I think trying to make ndiswrapper work with dummy_cb would probably not be a constructive use of anyone's time.

        -- Dave

         
    • Sune Mølgaard
      Sune Mølgaard
      2005-04-13

      I found your postings wrt. https://sourceforge.net/forum/forum.php?thread_id=974353&forum_id=7049

      Are those applicable, or has it been emplemented in recent sources?

      Best regards,

      Sune

       
      • David Hinds
        David Hinds
        2005-04-19

        Actually this is probably the right thing to do: make 2.6 kernels work with your interrupt router, and forget dummy_cb.  It looks like PicoPower IRQ router support never made it into the kernel tree.

        -- Dave

         
        • Sune Mølgaard
          Sune Mølgaard
          2005-04-19

          I can make the changes recommended in your other post, but how do I go about the thing about yenta not working with TI PCI1130? Should that be covered by this?

          Best regards,

          Sune

           
        • Sune Mølgaard
          Sune Mølgaard
          2005-04-21

          Your instructions worked fine for 2.4.26 with some tweaks. Here is the added code:

          static int pirq_pico_get(struct pci_dev *router, struct pci_dev *dev, int pirq)
          {
            outb(0x10+((pirq-1)>>1), 0x24);
            return ((pirq-1)&1) ? (inb(0x26)>>4) : (inb(0x26)&0xf);
          }

          static int pirq_pico_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq)
          {
            outb(0x10+((pirq-1)>>1), 0x24);
            unsigned int x;
            x = inb(0x26);
            x = ((pirq-1)&1) ? ((x&0x0f)|(irq<<4)) : ((x&0xf0)|(irq));
            outb(x,0x26);
          }

          static __init int pico_router_probe(struct irq_router *r, struct pci_dev *router, u16 device)
          {
            switch(device)
            {
              case 0x8002:
                r->name = "PicoPower";
                r->get = pirq_pico_get;
                r->set = pirq_pico_set;
                return 1;
            }
          }

          In routers[]:
                  { 0x1066, pico_router_probe },

          However, when I try these in linux-2.6.11.7/arch/i386/pci/irq.c, I still get irq 0 with the recommendation of booting with pci=usepirqmask (which doesn't change anything).

          Any ideas?

          Best regards,

          Sune

           
          • David Hinds
            David Hinds
            2005-04-22

            I think you've reached the edge of my 2.6 kernel knowledge.  I'd post your patches and resulting 'dmesg' output under 2.4 and 2.6 to linux-kernel, and hopefully someone who knows more about the 2.6 PCI subsystem can comment.

            -- Dave

             
            • Sune Mølgaard
              Sune Mølgaard
              2005-06-03

              Sorry for opening this again, but I tried the kernel mailinglist, and noone answered. Do you have any contact with the 2.6 guys that you can pester on my behalf?

              Incidentally, a friend gave me a TP 760LD. Was that covered by the 2.4 patch?

              Best regards,

              Sune Mlgaard