* cx23885: risc op code error - strange solution...
@ 2021-06-17 20:30 Raimonds Cicans
0 siblings, 0 replies; only message in thread
From: Raimonds Cicans @ 2021-06-17 20:30 UTC (permalink / raw)
To: linux-media
[-- Attachment #1: Type: text/plain, Size: 645 bytes --]
Hi!
Yet again I try to fight cx23885 driver's "risc op code error" bug.
I found very weird "fix":
If I apply attached patch _AND_ enable KASAN, then problem disappear.
If I disable KASAN or delete _ANY_ new line from patch, then problem
reappear.
I tried to replace "printk" with delays and with memory barriers, but
nothing works.
I would like to hear from community any ideas:
1. why this "fix" helps
2. what weird things "printk" can do when KASAN enabled
3. why we need two consecutive "cx23885_irq_get_mask(dev);" commands,
first of which need strange "companions"
4. what else I can try to use instead of "printk"
Raimonds Cicans
[-- Attachment #2: cx23885-core_risc_KASAN.patch --]
[-- Type: text/x-patch, Size: 438 bytes --]
--- /usr/src/linux-5.10.27-gentoo__orig/drivers/media/pci/cx23885/cx23885-core.c 2021-04-03 09:20:56.609971911 +0300
+++ /usr/src/linux-5.10.27-gentoo/drivers/media/pci/cx23885/cx23885-core.c 2021-06-17 22:34:49.503333355 +0300
@@ -1517,6 +1517,10 @@
if (debug > 4)
cx23885_tsport_reg_dump(port);
+ printk(KERN_INFO);
+ cx23885_irq_get_mask(dev);
+ printk(KERN_INFO);
+
cx23885_irq_get_mask(dev);
/* clear dma in progress */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-17 20:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-17 20:30 cx23885: risc op code error - strange solution Raimonds Cicans
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).