* [linux-dvb] [BUG] Firmware loading of FF cards is broken
@ 2008-06-03 16:45 e9hack
2008-06-03 18:56 ` Darren Salt
2008-06-03 22:12 ` Mauro Carvalho Chehab
0 siblings, 2 replies; 4+ messages in thread
From: e9hack @ 2008-06-03 16:45 UTC (permalink / raw)
To: linux-dvb
Hi,
changsets 7973/7958 break the firmware loading of the TT-C2300 card. I get the following
message:
Linux video capture interface: v2.00
saa7146: register extension 'dvb'.
ACPI: PCI Interrupt 0000:04:06.0[A] -> Link [LNKA] -> GSI 18 (level, low) -> IRQ 21
saa7146: found saa7146 @ mem f98f6c00 (revision 1, irq 21) (0x13c2,0x000a).
dvb-ttpci: crc32 of dpram file does not match.
ACPI: PCI interrupt for device 0000:04:06.0 disabled
It seems, that get_unaligned_be32() is broken. The definition in compat.h is:
#define get_unaligned_be32(a) \
be32_to_cpu(get_unaligned((unsigned short *)(a)))
'unsigned short *' is wrong. It should be 'unsigned long *'.
put_unaligned_be32(), get_unaligned_le32() and put_unaligned_le32() are also wrong.
-Hartmut
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-dvb] [BUG] Firmware loading of FF cards is broken
2008-06-03 16:45 [linux-dvb] [BUG] Firmware loading of FF cards is broken e9hack
@ 2008-06-03 18:56 ` Darren Salt
2008-06-03 22:12 ` Mauro Carvalho Chehab
1 sibling, 0 replies; 4+ messages in thread
From: Darren Salt @ 2008-06-03 18:56 UTC (permalink / raw)
To: linux-dvb
I demand that e9hack may or may not have written...
[snip]
> It seems, that get_unaligned_be32() is broken. The definition in compat.h
> is:
> #define get_unaligned_be32(a) \
> be32_to_cpu(get_unaligned((unsigned short *)(a)))
> 'unsigned short *' is wrong. It should be 'unsigned long *'.
That could be a 64-bit type. You want unsigned int or uint32_t.
[snip]
--
| Darren Salt | linux or ds at | nr. Ashington, | Toon
| RISC OS, Linux | youmustbejoking,demon,co,uk | Northumberland | Army
| + Buy local produce. Try to walk or cycle. TRANSPORT CAUSES GLOBAL WARMING.
Succumb to natural tendencies. Be hateful and boring.
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-dvb] [BUG] Firmware loading of FF cards is broken
2008-06-03 16:45 [linux-dvb] [BUG] Firmware loading of FF cards is broken e9hack
2008-06-03 18:56 ` Darren Salt
@ 2008-06-03 22:12 ` Mauro Carvalho Chehab
2008-06-05 14:25 ` e9hack
1 sibling, 1 reply; 4+ messages in thread
From: Mauro Carvalho Chehab @ 2008-06-03 22:12 UTC (permalink / raw)
To: e9hack; +Cc: linux-dvb
On Tue, 03 Jun 2008 18:45:57 +0200
e9hack <e9hack@googlemail.com> wrote:
> Hi,
>
> changsets 7973/7958 break the firmware loading of the TT-C2300 card. I get the following
> message:
>
> Linux video capture interface: v2.00
> saa7146: register extension 'dvb'.
> ACPI: PCI Interrupt 0000:04:06.0[A] -> Link [LNKA] -> GSI 18 (level, low) -> IRQ 21
> saa7146: found saa7146 @ mem f98f6c00 (revision 1, irq 21) (0x13c2,0x000a).
> dvb-ttpci: crc32 of dpram file does not match.
> ACPI: PCI interrupt for device 0000:04:06.0 disabled
>
> It seems, that get_unaligned_be32() is broken. The definition in compat.h is:
>
> #define get_unaligned_be32(a) \
> be32_to_cpu(get_unaligned((unsigned short *)(a)))
>
> 'unsigned short *' is wrong. It should be 'unsigned long *'.
>
> put_unaligned_be32(), get_unaligned_le32() and put_unaligned_le32() are also wrong.
Argh! cut-and-past error. Sorry.
I've just commit a fix about this. Please test.
Cheers,
Mauro
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-dvb] [BUG] Firmware loading of FF cards is broken
2008-06-03 22:12 ` Mauro Carvalho Chehab
@ 2008-06-05 14:25 ` e9hack
0 siblings, 0 replies; 4+ messages in thread
From: e9hack @ 2008-06-05 14:25 UTC (permalink / raw)
To: linux-dvb
Mauro Carvalho Chehab schrieb:
> Argh! cut-and-past error. Sorry.
>
> I've just commit a fix about this. Please test.
The fix works as expected. I've used kernel 2.6.24.7 in 32 and 64 bit mode.
-Hartmut
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-06-05 14:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-03 16:45 [linux-dvb] [BUG] Firmware loading of FF cards is broken e9hack
2008-06-03 18:56 ` Darren Salt
2008-06-03 22:12 ` Mauro Carvalho Chehab
2008-06-05 14:25 ` e9hack
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox