Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mpeg2] Re: Trying to get Kfir board to run, read 0 byte data



Hi Andrew,

It works! Thank you very much!

However, we get the latest code from CVS, it does not have your fix, can 
anybody put it into the CVS?

We have put your code in kfir_init_device() rather than kfir_irq().

Thanks,

Niu Ding



>From: Andrew Thomas <dat@hpl.hp.com>
>To: "Niu Ding" <niuding@hotmail.com>
>CC: dat@hpldat.hpl.hp.com
>Subject: [mpeg2] Re: Trying to get Kfir board to run, read 0 byte data
>Date: Mon, 29 Apr 2002 19:04:41 -0700
>
>Niu Ding writes:
>  > Hi Torsten,
>  >
>  > Thanks for your quick response. I did exactly the same as you:
>  > But got 0 byte data. I wrote a simple C program, after open the video
>  > device, it stuck in read().
>  >
>  > What kind of system are you using? I am using an Compag PC with AMD 
>800Mhz.
>
>You might want to check that your system is enabling the card
>as master. The problem stems from the way different bios'es
>initialize the card at boot. The system I was working with
>did not enable bus mastering and I was getting 0 byte reads.
>
>I posted a fix to the mpeg2 list and I believe that it made it
>into the cvs tree through Ralph Metzler.
>
>Eyeball the kfir.c file and look for
>pci_read_config_dword(kfir->pdev, PCI_COMMAND, &val)
>
>you should be able to paste the code below around that point.
>
>Andrew
>-------------
>Andrew Thomas                  | DISCLAIMER: opinions expressed in this
>Hewlett-Packard Laboratories   | message are personal and do not represent
>1501 Page Mill Road  MS 1138   | the opinions of Hewlett Packard Co.
>Palo Alto CA 94304-1126        |
>--------
>
>1745,1746d1744
>< int intcount = 0;
><
>1758,1768c1756
><               intcount++;
><               pci_read_config_dword(kfir->pdev, PCI_COMMAND, &val);
><               dprintk(KERN_CRIT "kfir: irq %d plx %x PCIsr %x\n",
><                       intcount, plxstat, val);
><               if (val & 0x40000000 || val & 0x100) {
><                       val &= ~0x100; //disable serr
><                       val |= 4; // master enable
><                       pci_write_config_dword(kfir->pdev, PCI_COMMAND,
><                                              val);
><               }
><
>
>
>


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx




Home | Main Index | Thread Index