Moderator Control Panel ]

Kernel oops when unloading "saa716x_tbs_dvb"

Kernel oops when unloading "saa716x_tbs_dvb"

Postby pstumbler » Tue Nov 17, 2015 1:36 am

Hi,

I'm getting a kernel oops when removing the saa716x_tbs_dvb module with "rmmod saa716x_tbs_dvb".
I'm using the latest TBS drivers (tbs-linux-drivers_v151105.zip), everything is compiled correctly and also all TBS drivers loads correct and are working.

Code: Select All Code
[ 5354.127624] ------------[ cut here ]------------
[ 5354.127629] WARNING: CPU: 0 PID: 11900 at /build/linux-lts-vivid-6tG2ln/linux-lts-vivid-3.19.0/kernel/module.c:963 module_put+0x8f/0xa0()
[ 5354.127630] Modules linked in: nls_iso8859_1 rc_tbs_nec(OE) ir_lirc_codec(OE) lirc_dev(OE) tbs6982fe(POE) tbs6680fe(POE) tbs6923fe(POE) tbs6985se(POE) tbs6928se(POE) tbs6982se(POE) tbs6991fe(POE) ir_mce_kbd_decoder(OE) tbs6618fe(POE) ir_sony_decoder(OE) tbs6983fe(POE) saa716x_core(OE) ir_jvc_decoder(OE) tbs6922fe(POE) ir_rc6_decoder(OE) tbs6928fe(POE) ir_rc5_decoder(OE) tbs6991se(POE) ir_nec_decoder(OE) tbs6290fe(POE) stv090x(OE) dvb_core(OE) rc_core(OE) ppdev intel_rapl snd_hda_codec_hdmi iosf_mbi x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm crct10dif_pclmul crc32_pclmul ghash_clmulni_intel cryptd serio_raw snd_hda_intel i915 lpc_ich shpchp mei_me snd_hda_controller mei snd_hda_codec snd_hwdep snd_pcm drm_kms_helper snd_timer drm snd soundcore i2c_algo_bit 8250_fintek parport_pc video tpm_infineon mac_hid lp parport raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor ahci libahci r8169 raid6_pq mii raid1 raid0 multipath linear [last unloaded: saa716x_tbs_dvb]
[ 5354.127671] CPU: 0 PID: 11900 Comm: rmmod Tainted: P           OE  3.19.0-33-generic #38~14.04.1-Ubuntu
[ 5354.127672] Hardware name: Gigabyte Technology Co., Ltd. B85M-HD3/B85M-HD3, BIOS F12 08/13/2015
[ 5354.127673]  ffffffff81a962e8 ffff8800b847fe18 ffffffff817af41b 0000000000000000
[ 5354.127675]  0000000000000000 ffff8800b847fe58 ffffffff81074daa ffffffff81c4eba0
[ 5354.127677]  ffff8800d922ea00 ffffffffc045ab20 ffffffffc06736c0 ffffffffc0673498
[ 5354.127680] Call Trace:
[ 5354.127685]  [<ffffffff817af41b>] dump_stack+0x45/0x57
[ 5354.127687]  [<ffffffff81074daa>] warn_slowpath_common+0x8a/0xc0
[ 5354.127692]  [<ffffffff81074e9a>] warn_slowpath_null+0x1a/0x20
[ 5354.127694]  [<ffffffff810f349f>] module_put+0x8f/0xa0
[ 5354.127698]  [<ffffffff810f353f>] module_unload_free+0x6f/0x120
[ 5354.127703]  [<ffffffff810f563c>] free_module+0x1bc/0x2b0
[ 5354.127706]  [<ffffffff810f5915>] SyS_delete_module+0x1e5/0x230
[ 5354.127709]  [<ffffffff817b706f>] ? int_signal+0x12/0x17
[ 5354.127711]  [<ffffffff817b6dcd>] system_call_fastpath+0x16/0x1b
[ 5354.127713] ---[ end trace 5cdc1ac3279a54f5 ]---


My system is:
Code: Select All Code
pstumbler@SERVER:~$ uname -a
Linux SERVER 3.19.0-33-generic #38~14.04.1-Ubuntu SMP Fri Nov 6 18:17:28 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux


Code: Select All Code
pstumbler@SERVER:~$ sudo rmmod saa716x_tbs_dvb
pstumbler@SERVER:~$ lsmod | grep tbs
rc_tbs_nec             16384  0
tbs6982fe              24576  0
tbs6680fe              20480  0
tbs6923fe              24576  0
tbs6985se              20480  0
tbs6928se              20480  0
tbs6982se              24576  0
tbs6991fe              20480  0
tbs6618fe              20480  0
tbs6983fe              28672  0
tbs6922fe              24576  0
tbs6928fe              20480  0
tbs6991se              20480  0
tbs6290fe              53248  -1
rc_core                28672  8 ir_lirc_codec,ir_rc5_decoder,ir_nec_decoder,ir_sony_decoder,rc_tbs_nec,ir_mce_kbd_decoder,ir_jvc_decoder,ir_rc6_decoder


The tbs6290fe-modules shows a usage of -1...

# lspci -vvnn >> lspci_log
Code: Select All Code
05:00.0 Multimedia controller [0480]: Philips Semiconductors SAA7160 [1131:7160] (rev 03)
        Subsystem: Device [6290:0001]
        Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Interrupt: pin A routed to IRQ 16
        Region 0: Memory at f7c00000 (64-bit, non-prefetchable) [size=1M]
        Capabilities: [40] MSI: Enable- Count=1/32 Maskable- 64bit+
                Address: 0000000000000000  Data: 0000
        Capabilities: [50] Express (v1) Endpoint, MSI 00
                DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <256ns, L1 <1us
                        ExtTag- AttnBtn- AttnInd- PwrInd- RBE- FLReset-
                DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
                        RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop+
                        MaxPayload 128 bytes, MaxReadReq 128 bytes
                DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend-
                LnkCap: Port #1, Speed 2.5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <4us, L1 <64us
                        ClockPM- Surprise- LLActRep- BwNot-
                LnkCtl: ASPM Disabled; RCB 128 bytes Disabled- CommClk-
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk- DLActive- BWMgmt- ABWMgmt-
        Capabilities: [74] Power Management version 2
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot-,D3cold-)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [80] Vendor Specific Information: Len=50 <?>
        Capabilities: [100 v1] Vendor Specific Information: ID=0000 Rev=0 Len=088 <?>



What can I do to prevent that?

Thanks!
pstumbler
pstumbler
 
Posts: 6
Joined: Fri Nov 13, 2015 3:27 am

Re: Kernel oops when unloading "saa716x_tbs_dvb"

Postby updatelee » Tue Nov 17, 2015 3:28 am

line 4531 of saa716x_tbs.c is calling tbs6290fe_attch directly, it should be calling dvb_attach(tbs6920fe_attach, ....

TBS does this in quite a few places actually, I dont have one of these cards so Id rather not submit a patch. You are more then welcome to try it out though. I also dont have access to the source code to tbs6920fe so I further cant really tell if there is a reason why they do it that way, there may well be.

UDL
TBS6925/5980, Prof 7301/7500/8000, Genpix Skywalker-1, Skystar 2 Express HD
Hauppauge 950Q, Kworld 330U/435v3/445v3
Dreambox 800

I use Linux and support open source projects.
User avatar
updatelee
 
Posts: 374
Joined: Wed Jul 25, 2012 11:48 am
Location: CFB Edmonton

Re: Kernel oops when unloading "saa716x_tbs_dvb"

Postby pstumbler » Wed Nov 18, 2015 2:59 am

Hi updatelee!

I changed the direct call to "dvb-attach(tbs6920fe_attach, ....)" ==> works like a charm...!

Thanks a lot!
pstumbler
pstumbler
 
Posts: 6
Joined: Fri Nov 13, 2015 3:27 am


Return to DVB-T2/T/C Dual Tuner Dual CI PCIe Card TBS6290

Who is online

Users browsing this forum: No registered users and 1 guest