Mailing List archive

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

[linux-dvb] Re: AMD64 and DVB



Max Nickel wrote:
> 
> Ok to clearify some things:
> Drivers: Kernel 2.6.3_rc2 as modules
> Firmware compiled into the module
> 
> the crc checks are gone since i have a complete frimware ;)
> now just the av7110_fw_query errors and the results are showing up.
> It doesn't matter if i apply the patch you sent me, the errors are still
> there (the query, not the crc ;))

The patch was bogus, as others already pointed out. and it attempted
to fix a problem which wasn't there, because the crc stuff works.

> the dmesg output with av7110_debug=247 is:
>  waitdebi(): av7110: 000001000d9d8000
> dvb_ttpci: load_dram(): Writing DRAM block 8
...
> dvb_ttpci: av7110_bootarm(): av7110_bootarm: load dpram code
> dvb_ttpci: av7110_firmversion(): av7110: 000001000d9d8000
> dvb_ttpci: av7110_fw_request(): av7110: 000001000d9d8000
> av7110_fw_request: timeout waiting for COMMAND to complete
> av7110_fw_query error
> DVB: AV71138141952(0) - firm 2f40a00b, rtsl ffffffff, vid 02460000, app
> 00000000

OK, loading DPRAM works, booting the ARM works (the DRAM loader runs
from DPRAM), loading DRAM seems to work but the firmware in DRAM
is trashed. You said your card works in a i386 machine? If yes,
I would think that av7110_bootarm() or load_dram() have a bug.
But I don't see anything which could be wrong :-(

IIRC Gerd Knorr had problems with wrong timeout handling on a 64bit
machine, but I think what I do in __av7110_send_fw_cmd() is
correct:

        unsigned long start;
        start = jiffies;
        while (rdebi(av7110, DEBINOSWAP, COMMAND, 0, 2 )) {
                dvb_delay(1);
                if (time_after(jiffies, start + ARM_WAIT_FREE)) {
                        printk(KERN_ERR "%s: timeout waiting for COMMAND to complete\n",
                               __FUNCTION__);
                        return -1;
                }
        }

Question: If you have a TV connected, or if you start xawtv quickly after
loading the driver, do you see the "(c) convergence..." boot splash?

Anyway, I committed a change which aborts initialization if booting
the ARM fails.

Johannes


-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index