[Solved] Tuning broken in Ubuntu 22.04

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

Post Reply
scottwhite
Newcomer
Posts: 3
Joined: Sun May 15, 2022 12:23 am
United States of America

[Solved] Tuning broken in Ubuntu 22.04

Post by scottwhite »

Hi,

My Hauppauge WinTV-QuadHD-ATSC stopped being able to get a channel lock after upgrading to Ubuntu 22.04 today :(

Code: Select all

May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]: mpeg risc op code error
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]: TS1 B - dma channel status dump
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   cmds: init risc lo   : 0xffed2000
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   cmds: init risc hi   : 0x00000000
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   cmds: cdt base       : 0x00010870
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   cmds: cdt size       : 0x0000000a
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   cmds: iq base        : 0x00010630
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   cmds: iq size        : 0x00000010
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   cmds: risc pc lo     : 0xffed2018
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   cmds: risc pc hi     : 0x00000000
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   cmds: iq wr ptr      : 0x00004192
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   cmds: iq rd ptr      : 0x0000418c
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   cmds: cdt current    : 0x00010878
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   cmds: pci target lo  : 0xffef2340
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   cmds: pci target hi  : 0x00000000
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   cmds: line / byte    : 0x000c0000
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   risc0: 
May 14 13:32:21 scott-Z370-HD3 kernel: 0x1c0002f0 [ write sol eol count=752 ]
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   risc1: 
May 14 13:32:21 scott-Z370-HD3 kernel: 0xffef2050 [ INVALID sol eol irq2 irq1 23 22 21 19 18 cnt1 cnt0 13 count=80 ]
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   risc2: 
May 14 13:32:21 scott-Z370-HD3 kernel: 0x00000000 [ INVALID count=0 ]
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   risc3: 
May 14 13:32:21 scott-Z370-HD3 kernel: 0x1c0002f0 [ write sol eol count=752 ]
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   (0x00010630) iq 0: 
May 14 13:32:21 scott-Z370-HD3 kernel: 0x1c0002f0 [ write sol eol count=752 ]
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   iq 1: 0xffef2630 [ arg #1 ]
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   iq 2: 0x00000000 [ arg #2 ]
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   (0x0001063c) iq 3: 
May 14 13:32:21 scott-Z370-HD3 kernel: 0x1c0002f0 [ write sol eol count=752 ]
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   iq 4: 0xffef2920 [ arg #1 ]
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   iq 5: 0x00000000 [ arg #2 ]
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   (0x00010648) iq 6: 
May 14 13:32:21 scott-Z370-HD3 kernel: 0xffef2050 [ INVALID sol eol irq2 irq1 23 22 21 19 18 cnt1 cnt0 13 count=80 ]
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   (0x0001064c) iq 7: 
May 14 13:32:21 scott-Z370-HD3 kernel: 0x00000000 [ INVALID count=0 ]
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   (0x00010650) iq 8: 
May 14 13:32:21 scott-Z370-HD3 kernel: 0x1c0002f0 [ write sol eol count=752 ]
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   iq 9: 0xffef2340 [ arg #1 ]
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   iq a: 0x00000000 [ arg #2 ]
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   (0x0001065c) iq b: 
May 14 13:32:21 scott-Z370-HD3 kernel: 0x00000000 [ INVALID count=0 ]
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   (0x00010660) iq c: 
May 14 13:32:21 scott-Z370-HD3 kernel: 0x1c0002f0 [ write sol eol count=752 ]
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   iq d: 0xffef1780 [ arg #1 ]
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   iq e: 0x00000000 [ arg #2 ]
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   (0x0001066c) iq f: 
May 14 13:32:21 scott-Z370-HD3 kernel: 0x1c0002f0 [ write sol eol count=752 ]
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   iq 10: 0x0a5c5cf9 [ arg #1 ]
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   iq 11: 0xc610aaba [ arg #2 ]
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]: fifo: 0x00005000 -> 0x6000
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]: ctrl: 0x00010630 -> 0x10690
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   ptr1_reg: 0x000053a0
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   ptr2_reg: 0x00010888
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   cnt1_reg: 0x0000000b
May 14 13:32:21 scott-Z370-HD3 kernel: cx23885: cx23885[0]:   cnt2_reg: 0x00000007
Given the log this likely isn't a mythtv issue since it seems to be broken at the kernel level, but I was hoping someone here might know of a fix or where else I might be able to get help.

-Scott
Last edited by scottwhite on Mon May 16, 2022 1:28 am, edited 1 time in total.
User avatar
kmdewaal
Developer
Posts: 640
Joined: Wed Dec 07, 2016 8:01 pm
Netherlands

Re: Tuning broken in Ubuntu 22.04

Post by kmdewaal »

This log shows that the embedded processor on the QuadHD card crashes. This processor executes the code found in the firmware file.
So it could be that there is an issue with the firmware for the card. See this post viewtopic.php?f=3&t=2278&p=11182&hilit=PCIe#p11182 which is about updating firmware.
If you search for QuadHD in this forum you will get a lot of hits that might be relevant.

Klaas.
scottwhite
Newcomer
Posts: 3
Joined: Sun May 15, 2022 12:23 am
United States of America

[Solved] Re: Tuning broken in Ubuntu 22.04

Post by scottwhite »

I found the fix here (sorry the forum won't let me put the actual URL in):
https://github.com/b-rad-NDi/Ubuntu-med ... issues/140

by creating the file /etc/modprobe.d/cx23885.conf
with
options cx23885 dma_reset_workaround=2

Not sure why this suddenly broke on the latest Ubuntu though since it seems like an long-standing issue.
Last edited by Steve Goodey on Sun May 15, 2022 4:27 pm, edited 1 time in total.
Reason: URL added.
User avatar
kmdewaal
Developer
Posts: 640
Joined: Wed Dec 07, 2016 8:01 pm
Netherlands

Re: Tuning broken in Ubuntu 22.04

Post by kmdewaal »

This solution has indeed been found before, see also viewtopic.php?f=36&t=4081&p=20358&hilit=Ryzen#p20361 but I thought it was specific for Ryzen CPU's. Without knowing too much about it I think that new kernels do setup the PCIe bus in a different way and that only now the kernel in Ubuntu is new enough to do it also this way.
Thanks for reporting the solution, this will certainly help others as well!
scottwhite
Newcomer
Posts: 3
Joined: Sun May 15, 2022 12:23 am
United States of America

Re: Tuning broken in Ubuntu 22.04

Post by scottwhite »

I saw this Ryzen thing when I first googled the issue and didn't try it at first because I have a Gigabyte Intel Sky Lake Motherboard. I guess this issue is more widespread.
Post Reply