[linux-dvb] Re: Twinhan Vision Plus & WinFast DTV1000-T

Matt Pratt mattpratt.au at gmail.com
Mon Feb 27 02:40:09 CET 2006


On 2/26/06, Manu Abraham <abraham.manu at gmail.com> wrote:
> Why would these be affected when the cx22702 card is installed?

>
> strange.. Which bridge does that use ? Another 878 ?



Nope, a cx88 card.

Reading the bttv code a little more I see:

    /* read PCI subsystem ID */
    pci_read_config_word(btv->c.pci, PCI_SUBSYSTEM_ID, &tmp);
    btv->cardid = tmp << 16;
    pci_read_config_word(btv->c.pci, PCI_SUBSYSTEM_VENDOR_ID, &tmp);
    btv->cardid |= tmp;

    if (0 != btv->cardid && 0xffffffff != btv->cardid) {
        /* look for the card */
        for (type = -1, i = 0; cards[i].id != 0; i++)
            if (cards[i].id  == btv->cardid)
                type = i;

        if (type != -1) {
            /* found it */
            printk(KERN_INFO "bttv%d: detected: %s [card=%d], "
                   "PCI subsystem ID is %04x:%04x\n",
                   btv->c.nr,cards[type].name,cards[type].cardnr,
                   btv->cardid & 0xffff,
                   (btv->cardid >> 16) & 0xffff);
            btv->c.type = cards[type].cardnr;
        } else {
            /* 404 */
            printk(KERN_INFO "bttv%d: subsystem: %04x:%04x (UNKNOWN)\n",
                   btv->c.nr, btv->cardid & 0xffff,
                   (btv->cardid >> 16) & 0xffff);
            printk(KERN_DEBUG "please mail id, board name and "
                   "the correct card= insmod option to
video4linux-list at redhat.com\n");
        }
    }

In the working case:

bttv0: Bt878 (rev 17) at 0000:02:0c.0, irq: 169, latency: 132, mmio:
0xf9000000
bttv0: detected: Twinhan VisionPlus DVB [card=113], PCI subsystem ID is
1822:0001
bttv0: using: Twinhan DST + clones [card=113,autodetected]
bttv0: gpio: en=00000000, out=00000000 in=00f500ff [init]

Non-working case:

bttv0: Bt878 (rev 17) at 0000:02:0c.0, irq: 169, latency: 132, mmio:
0xf9000000
bttv0: using:  *** UNKNOWN/GENERIC ***  [card=0,autodetected]
bttv0: gpio: en=00000000, out=00000000 in=00fffffe [init]

Which seems to indicate that the pci_read_config_word() of PCI_SUBSYSTEM_ID
and PCI_SUBSYSTEM_VENDOR_ID is failing.

Does this indicate larger PCI problems, like a conflict between the boards?

Can some ACPI fiddling help here?

Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.linuxtv.org/pipermail/linux-dvb/attachments/20060227/dfa152a6/attachment.htm


More information about the linux-dvb mailing list