Bug 217566

Summary: in linux 6.3.7-200.fc38.x86_64 goes vlc in time to switch tv channels to zombie-process
Product: v4l-dvb Reporter: rouckat
Component: dvb-usbAssignee: dvb-usb (v4l-dvb_dvb-usb)
Status: NEEDINFO ---    
Severity: normal CC: bagasdotme, johnpilk222, regressions, rouckat, toracat
Priority: P3    
Hardware: All   
OS: Linux   
Kernel Version: 6.3.8 Subsystem:
Regression: No Bisected commit-id:
Attachments: dmesg and lsusb
dmesg ans lsusb

Description rouckat 2023-06-17 08:26:40 UTC
vmlinuz-6.3.7-200.fc38.x86_64  and vmlinuz-6.3.8-200.fc38.x86_64

in the switch tv channel to another vlc stay blocked and and the loading of firmware newer ending. power must be switch to off.
from dmesg:

dvb-tuner-si2141-a10-01.fw
dvb-demod-si2168-d60-01.fw 
firmware version: D 6.0.13

restart of dvb modules is impossible, They stay working. 

kernel 6.3.5-200.fc38.x86_64 works  OK. I don't how works kernel 6.3.6-200.fc38.x86_64

this same error is in vmlinuz-6.3.5-200.fc38.x86_64 and earliers but there is the occurence accesptable.

listing from 6.3.5 kernel:

[ 3378.026035] si2168 7-0064: firmware version: D 6.0.13
[ 3431.891579] si2168 7-0064: downloading firmware from file 'dvb-demod-si2168-d60-01.fw'
[ 3434.037278] usb 1-4: dvb_usb_v2: 2nd usb_bulk_msg() failed=-110
[ 3434.037289] si2168 7-0064: firmware download failed -110
[ 3436.085265] usb 1-4: dvb_usb_v2: usb_bulk_msg() failed=-110

lsmod |grep dvb
dvb_usb_dvbsky         32768  2
dvb_usb_v2             57344  1 dvb_usb_dvbsky
m88ds3103              49152  1 dvb_usb_dvbsky
dvb_core              192512  3 dvb_usb_v2,m88ds3103,dvb_usb_dvbsky
m

modprobe -r dvb_usb_dvbsky
modprobe: FATAL: Module dvb_usb_dvbsky is in use.

?????? The problem in dvb_usb_dvbsky or firmware ?????   

The answer from https://bugzilla.rpmfusion.org was:

If it was working with previous kernel this is likely a kernel regression. 
please forward to the dvb sub-system maintainers.

this problen insist a long time (years), but not too horible
Comment 1 Artem S. Tashkinov 2023-06-17 16:22:49 UTC
Please provide 
1. Complete dmesg: sudo dmesg > dmesg.log
2. lsusb output: sudo lsusb -v > /tmp/lsusb.log
Comment 2 Artem S. Tashkinov 2023-06-17 16:25:19 UTC
And send this info to http://vger.kernel.org/vger-lists.html#linux-media

Looks like no one is subscribed to Bugzilla.
Comment 3 rouckat 2023-06-17 17:37:19 UTC
Created attachment 304442 [details]
dmesg and lsusb
Comment 4 rouckat 2023-06-17 17:42:32 UTC
Created attachment 304443 [details]
dmesg ans lsusb

the kernel is:
6.3.8-200.fc38.x86_64
after the first channel change, next changes are impossible.
Comment 5 Bagas Sanjaya 2023-06-17 23:22:02 UTC
Can you try latest mainline and bisect this regression please?
Comment 6 rouckat 2023-06-18 04:12:33 UTC
sorry, I don't know what you mean. which mainline? now I use 6.3.5-200.fc38.x86_64, but I may switch to 6.3.8-200.fc38.x86_64.
Comment 7 Bagas Sanjaya 2023-06-18 08:14:11 UTC
On 6/18/23 11:12, bugzilla-daemon@kernel.org wrote:
> https://bugzilla.kernel.org/show_bug.cgi?id=217566
> 
> --- Comment #6 from rouckat@quick.cz ---
> sorry, I don't know what you mean. which mainline? now I use
> 6.3.5-200.fc38.x86_64, but I may switch to 6.3.8-200.fc38.x86_64.
> 

Please try compiling vanilla v6.4-rc6 (see
Documentation/admin-guide/quickly-build-trimmed-linux.rst for
instructions).

Bye!
Comment 8 rouckat 2023-06-18 10:10:20 UTC
I try this compilation, but there is a error. I don't know why.

 git clone --depth 1 -b master \
  https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git ~/linux/
Cloning into '/home/tomas/linux'...
remote: Enumerating objects: 85097, done.
remote: Counting objects: 100% (85097/85097), done.
remote: Compressing objects: 100% (82779/82779), done.
remote: Total 85097 (delta 6421), reused 17959 (delta 1424), pack-reused 0
Receiving objects: 100% (85097/85097), 237.54 MiB | 4.26 MiB/s, done.
Resolving deltas: 100% (6421/6421), done.
Updating files: 100% (80340/80340), done.

tomas@tomas linux]$ git remote set-branches --add origin vanilla v6.4-rc6
[tomas@tomas linux]$ git checkout --detach origin/master
HEAD is now at b6dad5178 Merge tag 'nios2_fix_v6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux
[tomas@tomas linux]$ make

tomas@tomas linux]$ yes "" | make localmodconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX     scripts/kconfig/lexer.lex.c
/bin/sh: řádek 1: flex: příkaz nenalezen
make[1]: *** [scripts/Makefile.host:9: scripts/kconfig/lexer.lex.c] Chyba 127
make: *** [Makefile:692: localmodconfig] Chyba 2
Comment 9 Ronald 2023-06-19 01:13:40 UTC
@rouckat, as a fedora user I know one need to install the following packages to able to compile kernels:

bison
bison-devel
dwarves
elfutils-libelf-devel
flex
flex-devel
gcc
gcc-c++
openssl
openssl-devel

qt5-qtbase-devel

the last only to run "make xconfig"
Comment 10 The Linux kernel's regression tracker (Thorsten Leemhuis) 2023-06-19 07:27:50 UTC
(In reply to rouckat from comment #8)
> I try this compilation, but there is a error. I don't know why.

This sounds like flex is missing. Please follow the following guide that Bagas already mentioned, it even tells you what you need to install on Fedora and how to do it:

https://docs.kernel.org/admin-guide/quickly-build-trimmed-linux.html
Comment 11 The Linux kernel's regression tracker (Thorsten Leemhuis) 2023-06-19 07:38:40 UTC
FWIW, there is a known problem starting with 6.3.7 that will soon be fixed with this revert:

https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/tree/queue-6.3/revert-media-dvb-core-fix-use-after-free-on-race-con.patch

Maybe give it a try; one the stable rc is out (likely within the next 72 hours) you'll find ready packages for Fedora here: https://copr.fedorainfracloud.org/coprs/g/kernel-vanilla/stable-rc/
Comment 12 rouckat 2023-06-19 10:22:56 UTC
I compiling vanilla kernel. The compilation and instalation look OK, but this kernel don't start. (grub). I will try this  again.
Comment 13 The Linux kernel's regression tracker (Thorsten Leemhuis) 2023-06-19 11:15:27 UTC
(In reply to The Linux kernel's regression tracker (Thorsten Leemhuis) from comment #11)

> Maybe give it a try; one the stable rc is out (likely within the next 72
> hours) you'll find ready packages for Fedora here:
> https://copr.fedorainfracloud.org/coprs/g/kernel-vanilla/stable-rc/

A rpm with 6.3.9-rc1 is building now and should be available there in ~2 hours.
Comment 14 rouckat 2023-06-19 11:59:22 UTC
it look like kernel vanilla 6.4-rc7 works OK
Comment 15 johnpilk222 2023-06-19 16:48:06 UTC
There was a similar problem with mythtv.  6.3.9-rc1 gives a working F37 system.

https://github.com/MythTV/mythtv/issues/761
Comment 16 rouckat 2023-06-20 09:21:52 UTC
this problem is from time to time in 6.3.5-200.fc38.x86_64 too.

from dmesg:
[ 4694.238269] usb 5-1: reset high-speed USB device number 2 using xhci_hcd
[ 4909.893293] si2168 7-0064: downloading firmware from file 'dvb-demod-si2168-d60-01.fw'
[ 4910.994954] si2168 7-0064: firmware version: D 6.0.13
[ 4919.108958] si2168 7-0064: downloading firmware from file 'dvb-demod-si2168-d60-01.fw'
[ 4920.210722] si2168 7-0064: firmware version: D 6.0.13
[ 5995.739055] si2168 7-0064: downloading firmware from file 'dvb-demod-si2168-d60-01.fw'
[ 5997.931536] usb 1-4: dvb_usb_v2: 2nd usb_bulk_msg() failed=-110
[ 5997.931550] si2168 7-0064: firmware download failed -110
[ 5999.978529] usb 1-4: dvb_usb_v2: usb_bulk_msg() failed=-110
[ 6002.026492] usb 1-4: dvb_usb_v2: usb_bulk_msg() failed=-110
[ 6004.074505] usb 1-4: dvb_usb_v2: usb_bulk_msg() failed=-110
[ 6006.122447] usb 1-4: dvb_usb_v2: usb_bulk_msg() failed=-110
Comment 17 The Linux kernel's regression tracker (Thorsten Leemhuis) 2023-06-20 09:32:02 UTC
(In reply to rouckat from comment #16)
> this problem is from time to time in 6.3.5-200.fc38.x86_64 too.

It's possible that the fix that went into 6.3.7 that caused the issue made an existing race worse; with 6.3.9-rc1 things should works as good as before (unless your problem is a different one – you hence might want to test it).
Comment 18 rouckat 2023-06-20 10:13:07 UTC
OK. Thanks.  I have sent it only for inormations. we will see about in news kerrnels.
Comment 19 johnpilk222 2023-06-26 23:39:38 UTC
In comment 15 I reported that mythtv worked with the F37 6.3.9 rc1 kernel, having failed with 6.3.7 and 6.3.8.  6.3.9 seems to have not yet reached 'updates'.

I've just installed 6.3.10-0.rc1.20230626gt3d494887.250.vanilla.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jun 26 20:08:09 UTC 2023 x86_64 

Again, MythTV appears to be working well with it.
Comment 20 johnpilk222 2023-06-29 11:51:39 UTC
(In reply to johnpilk222 from comment #19)
> In comment 15 I reported that mythtv worked with the F37 6.3.9 rc1 kernel,
> having failed with 6.3.7 and 6.3.8.  6.3.9 seems to have not yet reached
> 'updates'.
> 
> I've just installed 6.3.10-0.rc1.20230626gt3d494887.250.vanilla.fc37.x86_64
> #1 SMP PREEMPT_DYNAMIC Mon Jun 26 20:08:09 UTC 2023 x86_64 
> 
> Again, MythTV appears to be working well with it.

Similarly for 6.3.10-250.vanilla.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 28 10:12:45 UTC 2023 x86_64 x86_64
Comment 21 johnpilk222 2023-06-30 17:09:50 UTC
A dnf upgrade today has installed

 kernel-6.4.1-0.rc3.20230630gt94976aa9.758.vanilla.fc37.x86_64

My attempts to boot this have failed to complete.  More info at

 https://github.com/MythTV/mythtv/issues/761#issuecomment-1614892388
Comment 22 johnpilk222 2023-07-03 13:29:00 UTC
https://bodhi.fedoraproject.org/updates/?packages=kernel

[john@HPFed ~]$ uname -rsvp
Linux 6.3.11-100.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Jul 2 13:18:29 UTC 2023 x86_64

I now have MythTV running under this kernel from fedora updates-testing.  It seemed that I needed to (re) install the rpmfusion nvidia driver packages and run 'akmods --force' to build the driver modules.  More in the link above.
Comment 23 johnpilk222 2023-07-03 13:43:00 UTC
Also a note re elrepo.  MythTV also runs well (in my last build from 2023 January) under 

Linux 6.4.1-1.el7.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Jul  1 14:54:14 EDT 2023 x86_64

This box has no nvidia hardware. Command line is "MYTHTV_NO_EGL=1 mythfrontend"
Comment 24 The Linux kernel's regression tracker (Thorsten Leemhuis) 2023-07-04 12:36:24 UTC
>(In reply to johnpilk222 from comment #23)
> Also a note re elrepo. [...]

FWIW, I don't want to stop you, but I wonder if anyone cares about your updates, as the bug should be fixed in all affected kernels afaik (if not, please mention).
Comment 25 johnpilk222 2023-07-04 14:20:03 UTC
TTBOMK Fedora 6.3.6 was ok, 6.3.11 is in testing with (probably amd-related) bad karma.  And 6.4.x f37 vanilla failed to boot for me; may be  nvidia-related...
Comment 26 The Linux kernel's regression tracker (Thorsten Leemhuis) 2023-07-04 14:24:08 UTC
(In reply to johnpilk222 from comment #25)
> TTBOMK Fedora 6.3.6 was ok, 6.3.11 is in testing with (probably amd-related)
> bad karma.  And 6.4.x f37 vanilla failed to boot for me; may be 
> nvidia-related...

might all be the case, but those are all different bugs that needs to be reported separately, otherwise things just get confusing
Comment 27 rouckat 2023-07-08 07:10:17 UTC
in the new 6.3.11-200.fc38.x86_64 looks situation greatly better, but still goes program sometimes to blocked state.

from dmesg :

   27.605776] rfkill: input handler enabled
[   30.262605] rfkill: input handler disabled
[  274.317752] si2168 7-0064: downloading firmware from file 'dvb-demod-si2168-d60-01.fw'
[  275.435999] si2168 7-0064: firmware version: D 6.0.13
[  275.453706] si2157 8-0060: found a 'Silicon Labs Si2141-A10 ROM 0x61'
[  275.485765] si2157 8-0060: downloading firmware from file 'dvb-tuner-si2141-a10-01.fw'
[  276.052011] si2157 8-0060: firmware version: 1.1.11
[  315.528052] si2168 7-0064: downloading firmware from file 'dvb-demod-si2168-d60-01.fw'
[  316.646342] si2168 7-0064: firmware version: D 6.0.13
[ 2837.293833] si2168 7-0064: downloading firmware from file 'dvb-demod-si2168-d60-01.fw'
[ 2838.412018] si2168 7-0064: firmware version: D 6.0.13
[ 2869.375056] si2168 7-0064: downloading firmware from file 'dvb-demod-si2168-d60-01.fw'
[ 2870.493196] si2168 7-0064: firmware version: D 6.0.13
[ 2936.966731] si2168 7-0064: downloading firmware from file 'dvb-demod-si2168-d60-01.fw'
[ 2938.086361] si2168 7-0064: firmware version: D 6.0.13
[ 2995.720684] si2168 7-0064: downloading firmware from file 'dvb-demod-si2168-d60-01.fw'
[ 2997.908411] usb 3-3: dvb_usb_v2: 2nd usb_bulk_msg() failed=-110
[ 2997.908432] si2168 7-0064: firmware download failed -110
[ 2999.955379] usb 3-3: dvb_usb_v2: usb_bulk_msg() failed=-110
[ 3002.004363] usb 3-3: dvb_usb_v2: usb_bulk_msg() failed=-110
[ 3004.051344] usb 3-3: dvb_usb_v2: usb_bulk_msg() failed=-110
[ 3006.100317] usb 3-3: dvb_usb_v2: usb_bulk_msg() failed=-110
[ 3008.147301] usb 3-3: dvb_usb_v2:

journalctl:


dvb_usb_v2: usb_bulk_msg() failed=-110
čec 08 08:43:24 tomas.domaci kernel: usb 3-3: dvb_usb_v2: usb_bulk_msg() failed=-110
čec 08 08:43:22 tomas.domaci kernel: si2168 7-0064: firmware download failed -110
čec 08 08:43:22 tomas.domaci kernel: usb 3-3: dvb_usb_v2: 2nd usb_bulk_msg() failed=-110
čec 08 08:43:20 tomas.domaci kernel: si2168 7-0064: downloading firmware from file 'dvb-demod-si2168-d60-01.fw'
čec 08 08:42:27 tomas.domaci gnome-shell[2012]: Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x562abaa0ee00] is on beca>
čec 08 08:42:27 tomas.domaci gnome-shell[2012]: Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x562abc3c8d80] is on becau>
čec 08 08:42:26 tomas.domaci gnome-shell[2012]: Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x562abaa0ee00] is on beca>
čec 08 08:42:26 tomas.domaci gnome-shell[2012]: Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x562abc3c8d80] is on becau>
čec 08 08:42:22 tomas.domaci kernel: si2168 7-0064: firmware version: D 6.0.13
čec 08 08:42:21 tomas.domaci kernel: si2168 7-0064: downloading firmware from file 'dvb-demod-si2168-d60-01.fw'
čec 08 08:41:20 tomas.domaci gnome-shell[2012]: Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x562abaa0ee00] is on beca>
čec 08 08:41:20 tomas.domaci gnome-shell[2012]: Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x562abc3c8d80] is on becau>
čec 08 08:41:20 tomas.domaci gnome-shell[2012]: Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x562abaa0ee00] is on beca>
čec 08 08:41:20 tomas.domaci gnome-shell[2012]: Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x562abc3c8d80] is on becau>
čec 08 08:41:19 tomas.domaci gnome-shell[2012]: Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x562abaa0ee00] is on beca>
čec 08 08:41:19 tomas.domaci gnome-shell[2012]: Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x562abc3c8d80] is on becau>
čec 08 08:41:15 tomas.domaci kernel: si2168 7-0064: firmware version: D 6.0.13
čec 08 08:41:14 tomas.domaci kernel: si2168 7-0064: downloading firmware from file 'dvb-demod-si2168-d60-01.fw'
čec 08 08:40:43 tomas.domaci kernel: si2168 7-0064: firmware version: D 6.0.13
čec 08 08:40:42 tomas.domaci kernel: si2168 7-0064: downloading firmware from file 'dvb-demod-si2168-d60-01.fw'
čec 08 08:39:40 tomas.domaci systemd[1681]: Started vte-spawn-8f1f6f3e-9959-4889-96d3-d3c621fba350.scope - VTE child process 6790 launche>
č