Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TBS 6985 on Ubuntu Server 17.10 - Output from Kernel very strange an only HD will work. SD not. #166

Closed
svalcken opened this issue Nov 4, 2017 · 2 comments

Comments

@svalcken
Copy link

svalcken commented Nov 4, 2017

Here are the Kernel Output. Any Warnings and Traces, i have been found:

[ 7.945230] media: loading out-of-tree module taints kernel.
[ 7.945251] media: module verification failed: signature and/or required key missing - tainting kernel
[ 7.945467] media: Linux media interface: v0.10
[ 8.015597] WARNING: You are using an experimental version of the media stack.
As the driver is backported to an older kernel, it doesn't offer
enough quality for its usage in production.
Use it with care.
Latest git patches (needed if you report a bug to linux-media@vger.kernel.org):
cf38293 fixed the problem that tbs6285 can not get TS stream
[ 8.200860] SAA716x Budget 0000:06:00.0: enabling device (0100 -> 0102)
[ 8.228093] dvbdev: DVB: registering new adapter (SAA716x dvb adapter)
[ 8.228271] i2c i2c-9: Added multiplexed i2c bus 10
[ 8.228297] i2c i2c-9: Added multiplexed i2c bus 11
[ 8.612664] i2c i2c-11: av201x: Airoha Technology AV201x successfully attached
[ 8.612960] SAA716x Budget 0000:06:00.0: TurboSight TBS 6985 MAC=00:22:ab:90:45:6c
[ 8.612962] SAA716x Budget 0000:06:00.0: DVB: registering adapter 0 frontend 0 (TurboSight TBS 6985 DVB-S/S2)...
[ 8.613041] dvbdev: DVB: registering new adapter (SAA716x dvb adapter)
[ 8.613196] sysfs: cannot create duplicate filename '/devices/pci0000:00/0000:00:1c.6/0000:06:00.0/i2c-9/channel-0'
[ 8.613202] ------------[ cut here ]------------
[ 8.613206] WARNING: CPU: 2 PID: 367 at /build/linux-XO_uEE/linux-4.13.0/fs/sysfs/dir.c:31 sysfs_warn_dup+0x56/0x70
[ 8.613206] Modules linked in: av201x(OE) saa716x_tbs_dvb(OE+) tas2101(OE) i2c_mux cx24117(OE) saa716x_core(OE) dvb_core(OE) media(OE) sunrpc parport_pc ppdev lp parport ip_tables x_tables autofs4 hid_generic usbhid hid i915 i2c_algo_bit drm_kms_helper ahci syscopyarea libahci sysfillrect sysimgblt fb_sys_fops r8169 drm mii wmi video
[ 8.613218] CPU: 2 PID: 367 Comm: systemd-modules Tainted: G OE 4.13.0-16-generic #19-Ubuntu
[ 8.613219] Hardware name: System manufacturer System Product Name/P8Z77-V LX, BIOS 2501 07/21/2014
[ 8.613220] task: ffff9dda0b39c5c0 task.stack: ffffbfe3011fc000
[ 8.613221] RIP: 0010:sysfs_warn_dup+0x56/0x70
[ 8.613221] RSP: 0018:ffffbfe3011ff918 EFLAGS: 00010286
[ 8.613222] RAX: 0000000000000067 RBX: ffff9dda103ec000 RCX: 0000000000000006
[ 8.613223] RDX: 0000000000000000 RSI: 0000000000000092 RDI: ffff9dda1fb0dc70
[ 8.613223] RBP: ffffbfe3011ff930 R08: 0000000000000001 R09: 000000000000035e
[ 8.613224] R10: 0000000000000001 R11: 0000000000000000 R12: ffffbfe3011ff99c
[ 8.613224] R13: ffff9dda0ad74708 R14: 0000000000000001 R15: ffffffffffffffef
[ 8.613225] FS: 00007f080d502940(0000) GS:ffff9dda1fb00000(0000) knlGS:0000000000000000
[ 8.613225] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 8.613226] CR2: 00007ff7b5b81bff CR3: 000000021097a000 CR4: 00000000001406e0
[ 8.613227] Call Trace:
[ 8.613230] sysfs_do_create_link_sd.isra.2+0x9f/0xb0
[ 8.613232] sysfs_create_link+0x25/0x40
[ 8.613233] i2c_mux_add_adapter+0x216/0x9f0 [i2c_mux]
[ 8.613235] tas2101_attach+0xa6/0x970 [tas2101]
[ 8.613238] saa716x_tbs6985_frontend_attach+0x7a/0x2b0 [saa716x_tbs_dvb]
[ 8.613241] saa716x_dvb_init+0x260/0x560 [saa716x_core]
[ 8.613243] saa716x_budget_pci_probe+0x1a5/0x250 [saa716x_tbs_dvb]
[ 8.613245] local_pci_probe+0x42/0xa0
[ 8.613247] pci_device_probe+0x18d/0x1a0
[ 8.613248] driver_probe_device+0x2ff/0x450
[ 8.613249] __driver_attach+0xa4/0xe0
[ 8.613250] ? driver_probe_device+0x450/0x450
[ 8.613252] bus_for_each_dev+0x6e/0xb0
[ 8.613253] driver_attach+0x1e/0x20
[ 8.613254] bus_add_driver+0x1c7/0x270
[ 8.613255] ? 0xffffffffc0514000
[ 8.613256] driver_register+0x60/0xe0
[ 8.613256] ? 0xffffffffc0514000
[ 8.613257] __pci_register_driver+0x4c/0x50
[ 8.613259] saa716x_budget_pci_driver_init+0x1e/0x1000 [saa716x_tbs_dvb]
[ 8.613261] do_one_initcall+0x50/0x1a0
[ 8.613263] ? __vunmap+0x81/0xb0
[ 8.613265] ? kfree+0x14a/0x160
[ 8.613266] ? kmem_cache_alloc_trace+0x150/0x1b0
[ 8.613267] ? do_init_module+0x27/0x1f9
[ 8.613269] do_init_module+0x5f/0x1f9
[ 8.613270] load_module+0x183b/0x1f20
[ 8.613272] ? ima_post_read_file+0x7e/0xa0
[ 8.613273] SYSC_finit_module+0xfc/0x120
[ 8.613274] ? SYSC_finit_module+0xfc/0x120
[ 8.613276] SyS_finit_module+0xe/0x10
[ 8.613277] entry_SYSCALL_64_fastpath+0x1e/0xa9
[ 8.613278] RIP: 0033:0x7f080d0339f9
[ 8.613278] RSP: 002b:00007fffab6f7fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 8.613279] RAX: ffffffffffffffda RBX: 00007fffab6f6fe0 RCX: 00007f080d0339f9
[ 8.613280] RDX: 0000000000000000 RSI: 000055eaba696f60 RDI: 0000000000000005
[ 8.613280] RBP: 0000000000000005 R08: 0000000000000000 R09: 000055eab8a99099
[ 8.613281] R10: 0000000000000005 R11: 0000000000000246 R12: 000055eaba69d900
[ 8.613281] R13: 0000000000000005 R14: 00007fffab6f6fc0 R15: 0000000000000005
[ 8.613282] Code: 85 c0 48 89 c3 74 12 b9 00 10 00 00 48 89 c2 31 f6 4c 89 ef e8 0c c8 ff ff 4c 89 e2 48 89 de 48 c7 c7 d0 9f cc a1 e8 cb 78 e0 ff <0f> ff 48 89 df e8 60 bd f4 ff 5b 41 5c 41 5d 5d c3 66 0f 1f 84
[ 8.613298] ---[ end trace 902f2e77ca28e8f5 ]---
[ 8.613298] can't create symlink for channel 0
[ 8.613305] ------------[ cut here ]------------
[ 8.613306] WARNING: CPU: 2 PID: 367 at /build/linux-XO_uEE/linux-4.13.0/drivers/i2c/i2c-mux.c:421 i2c_mux_add_adapter+0x38a/0x9f0 [i2c_mux]
[ 8.613307] Modules linked in: av201x(OE) saa716x_tbs_dvb(OE+) tas2101(OE) i2c_mux cx24117(OE) saa716x_core(OE) dvb_core(OE) media(OE) sunrpc parport_pc ppdev lp parport ip_tables x_tables autofs4 hid_generic usbhid hid i915 i2c_algo_bit drm_kms_helper ahci syscopyarea libahci sysfillrect sysimgblt fb_sys_fops r8169 drm mii wmi video
[ 8.613316] CPU: 2 PID: 367 Comm: systemd-modules Tainted: G W OE 4.13.0-16-generic #19-Ubuntu
[ 8.613316] Hardware name: System manufacturer System Product Name/P8Z77-V LX, BIOS 2501 07/21/2014
[ 8.613317] task: ffff9dda0b39c5c0 task.stack: ffffbfe3011fc000
[ 8.613318] RIP: 0010:i2c_mux_add_adapter+0x38a/0x9f0 [i2c_mux]
[ 8.613318] RSP: 0018:ffffbfe3011ff988 EFLAGS: 00010282
[ 8.613319] RAX: 0000000000000022 RBX: ffff9dda0beb6eb8 RCX: 0000000000000006
[ 8.613319] RDX: 0000000000000000 RSI: 0000000000000096 RDI: ffff9dda1fb0dc70
[ 8.613320] RBP: ffffbfe3011ff9e0 R08: 0000000000000001 R09: 0000000000000399
[ 8.613320] R10: fffffb814840fa00 R11: 0000000000000000 R12: ffff9dda0ae7f880
[ 8.613321] R13: 0000000000000000 R14: ffff9dda0a151008 R15: ffff9dda0ae7f800
[ 8.613321] FS: 00007f080d502940(0000) GS:ffff9dda1fb00000(0000) knlGS:0000000000000000
[ 8.613322] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 8.613322] CR2: 00007ff7b5b81bff CR3: 000000021097a000 CR4: 00000000001406e0
[ 8.613323] Call Trace:
[ 8.613324] tas2101_attach+0xa6/0x970 [tas2101]
[ 8.613326] saa716x_tbs6985_frontend_attach+0x7a/0x2b0 [saa716x_tbs_dvb]
[ 8.613328] saa716x_dvb_init+0x260/0x560 [saa716x_core]
[ 8.613330] saa716x_budget_pci_probe+0x1a5/0x250 [saa716x_tbs_dvb]
[ 8.613331] local_pci_probe+0x42/0xa0
[ 8.613332] pci_device_probe+0x18d/0x1a0
[ 8.613333] driver_probe_device+0x2ff/0x450
[ 8.613334] __driver_attach+0xa4/0xe0
[ 8.613335] ? driver_probe_device+0x450/0x450
[ 8.613336] bus_for_each_dev+0x6e/0xb0
[ 8.613337] driver_attach+0x1e/0x20
[ 8.613338] bus_add_driver+0x1c7/0x270
[ 8.613339] ? 0xffffffffc0514000
[ 8.613340] driver_register+0x60/0xe0
[ 8.613340] ? 0xffffffffc0514000
[ 8.613341] __pci_register_driver+0x4c/0x50
[ 8.613343] saa716x_budget_pci_driver_init+0x1e/0x1000 [saa716x_tbs_dvb]
[ 8.613344] do_one_initcall+0x50/0x1a0
[ 8.613345] ? __vunmap+0x81/0xb0
[ 8.613346] ? kfree+0x14a/0x160
[ 8.613347] ? kmem_cache_alloc_trace+0x150/0x1b0
[ 8.613348] ? do_init_module+0x27/0x1f9
[ 8.613349] do_init_module+0x5f/0x1f9
[ 8.613350] load_module+0x183b/0x1f20
[ 8.613352] ? ima_post_read_file+0x7e/0xa0
[ 8.613353] SYSC_finit_module+0xfc/0x120
[ 8.613354] ? SYSC_finit_module+0xfc/0x120
[ 8.613356] SyS_finit_module+0xe/0x10
[ 8.613357] entry_SYSCALL_64_fastpath+0x1e/0xa9
[ 8.613357] RIP: 0033:0x7f080d0339f9
[ 8.613358] RSP: 002b:00007fffab6f7fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 8.613359] RAX: ffffffffffffffda RBX: 00007fffab6f6fe0 RCX: 00007f080d0339f9
[ 8.613359] RDX: 0000000000000000 RSI: 000055eaba696f60 RDI: 0000000000000005
[ 8.613359] RBP: 0000000000000005 R08: 0000000000000000 R09: 000055eab8a99099
[ 8.613360] R10: 0000000000000005 R11: 0000000000000246 R12: 000055eaba69d900
[ 8.613360] R13: 0000000000000005 R14: 00007fffab6f6fc0 R15: 0000000000000005
[ 8.613361] Code: 0d 04 13 e1 8b 45 b0 eb 9c 48 c7 c7 90 c1 4a c0 e8 ad 90 c3 e0 0f ff e9 6f fe ff ff 44 89 ee 48 c7 c7 f0 c1 4a c0 e8 97 90 c3 e0 <0f> ff e9 8d fe ff ff 48 8b 7f 08 48 c7 c6 c0 c0 4a c0 e8 cf 03
[ 8.613376] ---[ end trace 902f2e77ca28e8f6 ]---
[ 8.613377] i2c i2c-9: Added multiplexed i2c bus 12
[ 8.613410] sysfs: cannot create duplicate filename '/devices/pci0000:00/0000:00:1c.6/0000:06:00.0/i2c-9/channel-1'
[ 8.613422] ------------[ cut here ]------------
[ 8.613423] WARNING: CPU: 2 PID: 367 at /build/linux-XO_uEE/linux-4.13.0/fs/sysfs/dir.c:31 sysfs_warn_dup+0x56/0x70
[ 8.613424] Modules linked in: av201x(OE) saa716x_tbs_dvb(OE+) tas2101(OE) i2c_mux cx24117(OE) saa716x_core(OE) dvb_core(OE) media(OE) sunrpc parport_pc ppdev lp parport ip_tables x_tables autofs4 hid_generic usbhid hid i915 i2c_algo_bit drm_kms_helper ahci syscopyarea libahci sysfillrect sysimgblt fb_sys_fops r8169 drm mii wmi video
[ 8.613432] CPU: 2 PID: 367 Comm: systemd-modules Tainted: G W OE 4.13.0-16-generic #19-Ubuntu
[ 8.613433] Hardware name: System manufacturer System Product Name/P8Z77-V LX, BIOS 2501 07/21/2014
[ 8.613433] task: ffff9dda0b39c5c0 task.stack: ffffbfe3011fc000
[ 8.613434] RIP: 0010:sysfs_warn_dup+0x56/0x70
[ 8.613435] RSP: 0018:ffffbfe3011ff918 EFLAGS: 00010286
[ 8.613435] RAX: 0000000000000067 RBX: ffff9dda103ec000 RCX: 0000000000000006
[ 8.613436] RDX: 0000000000000000 RSI: 0000000000000092 RDI: ffff9dda1fb0dc70
[ 8.613436] RBP: ffffbfe3011ff930 R08: 0000000000000001 R09: 00000000000003d2
[ 8.613437] R10: 0000000000000001 R11: 0000000000000000 R12: ffffbfe3011ff99c
[ 8.613437] R13: ffff9dda0ad74708 R14: 0000000000000001 R15: ffffffffffffffef
[ 8.613438] FS: 00007f080d502940(0000) GS:ffff9dda1fb00000(0000) knlGS:0000000000000000
[ 8.613438] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 8.613439] CR2: 00007ff7b5b81bff CR3: 000000021097a000 CR4: 00000000001406e0
[ 8.613439] Call Trace:
[ 8.613440] sysfs_do_create_link_sd.isra.2+0x9f/0xb0
[ 8.613442] sysfs_create_link+0x25/0x40
[ 8.613443] i2c_mux_add_adapter+0x216/0x9f0 [i2c_mux]
[ 8.613444] tas2101_attach+0xbf/0x970 [tas2101]
[ 8.613446] saa716x_tbs6985_frontend_attach+0x7a/0x2b0 [saa716x_tbs_dvb]
[ 8.613448] saa716x_dvb_init+0x260/0x560 [saa716x_core]
[ 8.613449] saa716x_budget_pci_probe+0x1a5/0x250 [saa716x_tbs_dvb]
[ 8.613451] local_pci_probe+0x42/0xa0
[ 8.613452] pci_device_probe+0x18d/0x1a0
[ 8.613453] driver_probe_device+0x2ff/0x450
[ 8.613453] __driver_attach+0xa4/0xe0
[ 8.613454] ? driver_probe_device+0x450/0x450
[ 8.613455] bus_for_each_dev+0x6e/0xb0
[ 8.613456] driver_attach+0x1e/0x20
[ 8.613457] bus_add_driver+0x1c7/0x270
[ 8.613458] ? 0xffffffffc0514000
[ 8.613459] driver_register+0x60/0xe0
[ 8.613459] ? 0xffffffffc0514000
[ 8.613460] __pci_register_driver+0x4c/0x50
[ 8.613462] saa716x_budget_pci_driver_init+0x1e/0x1000 [saa716x_tbs_dvb]
[ 8.613463] do_one_initcall+0x50/0x1a0
[ 8.613464] ? __vunmap+0x81/0xb0
[ 8.613465] ? kfree+0x14a/0x160
[ 8.613465] ? kmem_cache_alloc_trace+0x150/0x1b0
[ 8.613466] ? do_init_module+0x27/0x1f9
[ 8.613467] do_init_module+0x5f/0x1f9
[ 8.613468] load_module+0x183b/0x1f20
[ 8.613470] ? ima_post_read_file+0x7e/0xa0
[ 8.613471] SYSC_finit_module+0xfc/0x120
[ 8.613472] ? SYSC_finit_module+0xfc/0x120
[ 8.613474] SyS_finit_module+0xe/0x10
[ 8.613475] entry_SYSCALL_64_fastpath+0x1e/0xa9
[ 8.613475] RIP: 0033:0x7f080d0339f9
[ 8.613476] RSP: 002b:00007fffab6f7fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 8.613476] RAX: ffffffffffffffda RBX: 00007fffab6f6fe0 RCX: 00007f080d0339f9
[ 8.613477] RDX: 0000000000000000 RSI: 000055eaba696f60 RDI: 0000000000000005
[ 8.613477] RBP: 0000000000000005 R08: 0000000000000000 R09: 000055eab8a99099
[ 8.613478] R10: 0000000000000005 R11: 0000000000000246 R12: 000055eaba69d900
[ 8.613478] R13: 0000000000000005 R14: 00007fffab6f6fc0 R15: 0000000000000005
[ 8.613479] Code: 85 c0 48 89 c3 74 12 b9 00 10 00 00 48 89 c2 31 f6 4c 89 ef e8 0c c8 ff ff 4c 89 e2 48 89 de 48 c7 c7 d0 9f cc a1 e8 cb 78 e0 ff <0f> ff 48 89 df e8 60 bd f4 ff 5b 41 5c 41 5d 5d c3 66 0f 1f 84
[ 8.613494] ---[ end trace 902f2e77ca28e8f7 ]---
[ 8.613494] can't create symlink for channel 1
[ 8.613499] ------------[ cut here ]------------
[ 8.613500] WARNING: CPU: 2 PID: 367 at /build/linux-XO_uEE/linux-4.13.0/drivers/i2c/i2c-mux.c:421 i2c_mux_add_adapter+0x38a/0x9f0 [i2c_mux]
[ 8.613500] Modules linked in: av201x(OE) saa716x_tbs_dvb(OE+) tas2101(OE) i2c_mux cx24117(OE) saa716x_core(OE) dvb_core(OE) media(OE) sunrpc parport_pc ppdev lp parport ip_tables x_tables autofs4 hid_generic usbhid hid i915 i2c_algo_bit drm_kms_helper ahci syscopyarea libahci sysfillrect sysimgblt fb_sys_fops r8169 drm mii wmi video
[ 8.613508] CPU: 2 PID: 367 Comm: systemd-modules Tainted: G W OE 4.13.0-16-generic #19-Ubuntu
[ 8.613509] Hardware name: System manufacturer System Product Name/P8Z77-V LX, BIOS 2501 07/21/2014
[ 8.613509] task: ffff9dda0b39c5c0 task.stack: ffffbfe3011fc000
[ 8.613510] RIP: 0010:i2c_mux_add_adapter+0x38a/0x9f0 [i2c_mux]
[ 8.613510] RSP: 0018:ffffbfe3011ff988 EFLAGS: 00010282
[ 8.613511] RAX: 0000000000000022 RBX: ffff9dda0beb6eb8 RCX: 0000000000000006
[ 8.613512] RDX: 0000000000000000 RSI: 0000000000000096 RDI: ffff9dda1fb0dc70
[ 8.613512] RBP: ffffbfe3011ff9e0 R08: 0000000000000001 R09: 000000000000040d
[ 8.613512] R10: fffffb814840fa00 R11: 0000000000000000 R12: ffff9dda0ae7f080
[ 8.613513] R13: 0000000000000001 R14: ffff9dda0a151008 R15: ffff9dda0ae7f000
[ 8.613513] FS: 00007f080d502940(0000) GS:ffff9dda1fb00000(0000) knlGS:0000000000000000
[ 8.613514] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 8.613514] CR2: 00007ff7b5b81bff CR3: 000000021097a000 CR4: 00000000001406e0
[ 8.613515] Call Trace:
[ 8.613516] tas2101_attach+0xbf/0x970 [tas2101]
[ 8.613517] saa716x_tbs6985_frontend_attach+0x7a/0x2b0 [saa716x_tbs_dvb]
[ 8.613519] saa716x_dvb_init+0x260/0x560 [saa716x_core]
[ 8.613521] saa716x_budget_pci_probe+0x1a5/0x250 [saa716x_tbs_dvb]
[ 8.613522] local_pci_probe+0x42/0xa0
[ 8.613523] pci_device_probe+0x18d/0x1a0
[ 8.613524] driver_probe_device+0x2ff/0x450
[ 8.613525] __driver_attach+0xa4/0xe0
[ 8.613525] ? driver_probe_device+0x450/0x450
[ 8.613526] bus_for_each_dev+0x6e/0xb0
[ 8.613527] driver_attach+0x1e/0x20
[ 8.613528] bus_add_driver+0x1c7/0x270
[ 8.613529] ? 0xffffffffc0514000
[ 8.613530] driver_register+0x60/0xe0
[ 8.613530] ? 0xffffffffc0514000
[ 8.613531] __pci_register_driver+0x4c/0x50
[ 8.613532] saa716x_budget_pci_driver_init+0x1e/0x1000 [saa716x_tbs_dvb]
[ 8.613533] do_one_initcall+0x50/0x1a0
[ 8.613534] ? __vunmap+0x81/0xb0
[ 8.613535] ? kfree+0x14a/0x160
[ 8.613536] ? kmem_cache_alloc_trace+0x150/0x1b0
[ 8.613537] ? do_init_module+0x27/0x1f9
[ 8.613538] do_init_module+0x5f/0x1f9
[ 8.613539] load_module+0x183b/0x1f20
[ 8.613541] ? ima_post_read_file+0x7e/0xa0
[ 8.613542] SYSC_finit_module+0xfc/0x120
[ 8.613543] ? SYSC_finit_module+0xfc/0x120
[ 8.613544] SyS_finit_module+0xe/0x10
[ 8.613545] entry_SYSCALL_64_fastpath+0x1e/0xa9
[ 8.613546] RIP: 0033:0x7f080d0339f9
[ 8.613546] RSP: 002b:00007fffab6f7fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 8.613547] RAX: ffffffffffffffda RBX: 00007fffab6f6fe0 RCX: 00007f080d0339f9
[ 8.613547] RDX: 0000000000000000 RSI: 000055eaba696f60 RDI: 0000000000000005
[ 8.613548] RBP: 0000000000000005 R08: 0000000000000000 R09: 000055eab8a99099
[ 8.613548] R10: 0000000000000005 R11: 0000000000000246 R12: 000055eaba69d900
[ 8.613548] R13: 0000000000000005 R14: 00007fffab6f6fc0 R15: 0000000000000005
[ 8.613549] Code: 0d 04 13 e1 8b 45 b0 eb 9c 48 c7 c7 90 c1 4a c0 e8 ad 90 c3 e0 0f ff e9 6f fe ff ff 44 89 ee 48 c7 c7 f0 c1 4a c0 e8 97 90 c3 e0 <0f> ff e9 8d fe ff ff 48 8b 7f 08 48 c7 c6 c0 c0 4a c0 e8 cf 03
[ 8.613564] ---[ end trace 902f2e77ca28e8f8 ]---
[ 8.613565] i2c i2c-9: Added multiplexed i2c bus 13
[ 8.916129] i2c i2c-13: av201x: Airoha Technology AV201x successfully attached
[ 8.916424] SAA716x Budget 0000:06:00.0: TurboSight TBS 6985 MAC=00:22:ab:90:45:6d
[ 8.916426] SAA716x Budget 0000:06:00.0: DVB: registering adapter 1 frontend 0 (TurboSight TBS 6985 DVB-S/S2)...
[ 8.916545] dvbdev: DVB: registering new adapter (SAA716x dvb adapter)
[ 8.916919] i2c i2c-8: Added multiplexed i2c bus 14
[ 8.916954] i2c i2c-8: Added multiplexed i2c bus 15
[ 9.220128] i2c i2c-15: av201x: Airoha Technology AV201x successfully attached
[ 9.220423] SAA716x Budget 0000:06:00.0: TurboSight TBS 6985 MAC=00:22:ab:90:45:6e
[ 9.220424] SAA716x Budget 0000:06:00.0: DVB: registering adapter 2 frontend 0 (TurboSight TBS 6985 DVB-S/S2)...
[ 9.220521] dvbdev: DVB: registering new adapter (SAA716x dvb adapter)
[ 9.220996] sysfs: cannot create duplicate filename '/devices/pci0000:00/0000:00:1c.6/0000:06:00.0/i2c-8/channel-0'
[ 9.220999] ------------[ cut here ]------------
[ 9.221002] WARNING: CPU: 2 PID: 367 at /build/linux-XO_uEE/linux-4.13.0/fs/sysfs/dir.c:31 sysfs_warn_dup+0x56/0x70
[ 9.221002] Modules linked in: av201x(OE) saa716x_tbs_dvb(OE+) tas2101(OE) i2c_mux cx24117(OE) saa716x_core(OE) dvb_core(OE) media(OE) sunrpc parport_pc ppdev lp parport ip_tables x_tables autofs4 hid_generic usbhid hid i915 i2c_algo_bit drm_kms_helper ahci syscopyarea libahci sysfillrect sysimgblt fb_sys_fops r8169 drm mii wmi video
[ 9.221013] CPU: 2 PID: 367 Comm: systemd-modules Tainted: G W OE 4.13.0-16-generic #19-Ubuntu
[ 9.221013] Hardware name: System manufacturer System Product Name/P8Z77-V LX, BIOS 2501 07/21/2014
[ 9.221014] task: ffff9dda0b39c5c0 task.stack: ffffbfe3011fc000
[ 9.221015] RIP: 0010:sysfs_warn_dup+0x56/0x70
[ 9.221015] RSP: 0018:ffffbfe3011ff918 EFLAGS: 00010286
[ 9.221016] RAX: 0000000000000067 RBX: ffff9dda103ef000 RCX: 0000000000000006
[ 9.221017] RDX: 0000000000000000 RSI: 0000000000000092 RDI: ffff9dda1fb0dc70
[ 9.221017] RBP: ffffbfe3011ff930 R08: 0000000000000001 R09: 0000000000000450
[ 9.221018] R10: 0000000000000001 R11: 0000000000000000 R12: ffffbfe3011ff99c
[ 9.221018] R13: ffff9dda0ad4c2d0 R14: 0000000000000001 R15: ffffffffffffffef
[ 9.221019] FS: 00007f080d502940(0000) GS:ffff9dda1fb00000(0000) knlGS:0000000000000000
[ 9.221019] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 9.221020] CR2: 00007f0956e6b000 CR3: 000000021097a000 CR4: 00000000001406e0
[ 9.221020] Call Trace:
[ 9.221022] sysfs_do_create_link_sd.isra.2+0x9f/0xb0
[ 9.221024] sysfs_create_link+0x25/0x40
[ 9.221025] i2c_mux_add_adapter+0x216/0x9f0 [i2c_mux]
[ 9.221027] tas2101_attach+0xa6/0x970 [tas2101]
[ 9.221029] saa716x_tbs6985_frontend_attach+0x7a/0x2b0 [saa716x_tbs_dvb]
[ 9.221031] saa716x_dvb_init+0x260/0x560 [saa716x_core]
[ 9.221033] saa716x_budget_pci_probe+0x1a5/0x250 [saa716x_tbs_dvb]
[ 9.221035] local_pci_probe+0x42/0xa0
[ 9.221036] pci_device_probe+0x18d/0x1a0
[ 9.221037] driver_probe_device+0x2ff/0x450
[ 9.221038] __driver_attach+0xa4/0xe0
[ 9.221038] ? driver_probe_device+0x450/0x450
[ 9.221040] bus_for_each_dev+0x6e/0xb0
[ 9.221040] driver_attach+0x1e/0x20
[ 9.221042] bus_add_driver+0x1c7/0x270
[ 9.221042] ? 0xffffffffc0514000
[ 9.221043] driver_register+0x60/0xe0
[ 9.221044] ? 0xffffffffc0514000
[ 9.221045] __pci_register_driver+0x4c/0x50
[ 9.221046] saa716x_budget_pci_driver_init+0x1e/0x1000 [saa716x_tbs_dvb]
[ 9.221047] do_one_initcall+0x50/0x1a0
[ 9.221048] ? __vunmap+0x81/0xb0
[ 9.221049] ? kfree+0x14a/0x160
[ 9.221050] ? kmem_cache_alloc_trace+0x150/0x1b0
[ 9.221051] ? do_init_module+0x27/0x1f9
[ 9.221052] do_init_module+0x5f/0x1f9
[ 9.221054] load_module+0x183b/0x1f20
[ 9.221055] ? ima_post_read_file+0x7e/0xa0
[ 9.221057] SYSC_finit_module+0xfc/0x120
[ 9.221057] ? SYSC_finit_module+0xfc/0x120
[ 9.221059] SyS_finit_module+0xe/0x10
[ 9.221060] entry_SYSCALL_64_fastpath+0x1e/0xa9
[ 9.221061] RIP: 0033:0x7f080d0339f9
[ 9.221061] RSP: 002b:00007fffab6f7fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 9.221062] RAX: ffffffffffffffda RBX: 00007fffab6f6fe0 RCX: 00007f080d0339f9
[ 9.221062] RDX: 0000000000000000 RSI: 000055eaba696f60 RDI: 0000000000000005
[ 9.221063] RBP: 0000000000000005 R08: 0000000000000000 R09: 000055eab8a99099
[ 9.221063] R10: 0000000000000005 R11: 0000000000000246 R12: 000055eaba69d900
[ 9.221063] R13: 0000000000000005 R14: 00007fffab6f6fc0 R15: 0000000000000005
[ 9.221064] Code: 85 c0 48 89 c3 74 12 b9 00 10 00 00 48 89 c2 31 f6 4c 89 ef e8 0c c8 ff ff 4c 89 e2 48 89 de 48 c7 c7 d0 9f cc a1 e8 cb 78 e0 ff <0f> ff 48 89 df e8 60 bd f4 ff 5b 41 5c 41 5d 5d c3 66 0f 1f 84
[ 9.221079] ---[ end trace 902f2e77ca28e8f9 ]---
[ 9.221080] can't create symlink for channel 0
[ 9.221084] ------------[ cut here ]------------
[ 9.221086] WARNING: CPU: 2 PID: 367 at /build/linux-XO_uEE/linux-4.13.0/drivers/i2c/i2c-mux.c:421 i2c_mux_add_adapter+0x38a/0x9f0 [i2c_mux]
[ 9.221086] Modules linked in: av201x(OE) saa716x_tbs_dvb(OE+) tas2101(OE) i2c_mux cx24117(OE) saa716x_core(OE) dvb_core(OE) media(OE) sunrpc parport_pc ppdev lp parport ip_tables x_tables autofs4 hid_generic usbhid hid i915 i2c_algo_bit drm_kms_helper ahci syscopyarea libahci sysfillrect sysimgblt fb_sys_fops r8169 drm mii wmi video
[ 9.221094] CPU: 2 PID: 367 Comm: systemd-modules Tainted: G W OE 4.13.0-16-generic #19-Ubuntu
[ 9.221095] Hardware name: System manufacturer System Product Name/P8Z77-V LX, BIOS 2501 07/21/2014
[ 9.221095] task: ffff9dda0b39c5c0 task.stack: ffffbfe3011fc000
[ 9.221096] RIP: 0010:i2c_mux_add_adapter+0x38a/0x9f0 [i2c_mux]
[ 9.221097] RSP: 0018:ffffbfe3011ff988 EFLAGS: 00010282
[ 9.221097] RAX: 0000000000000022 RBX: ffff9dda10fafa98 RCX: 0000000000000006
[ 9.221098] RDX: 0000000000000000 RSI: 0000000000000096 RDI: ffff9dda1fb0dc70
[ 9.221098] RBP: ffffbfe3011ff9e0 R08: 0000000000000001 R09: 000000000000048b
[ 9.221098] R10: fffffb814840fa00 R11: 0000000000000000 R12: ffff9dda167b1880
[ 9.221099] R13: 0000000000000000 R14: ffff9dda0a150bb0 R15: ffff9dda167b1800
[ 9.221100] FS: 00007f080d502940(0000) GS:ffff9dda1fb00000(0000) knlGS:0000000000000000
[ 9.221100] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 9.221100] CR2: 00007f0956e6b000 CR3: 000000021097a000 CR4: 00000000001406e0
[ 9.221101] Call Trace:
[ 9.221102] tas2101_attach+0xa6/0x970 [tas2101]
[ 9.221104] saa716x_tbs6985_frontend_attach+0x7a/0x2b0 [saa716x_tbs_dvb]
[ 9.221106] saa716x_dvb_init+0x260/0x560 [saa716x_core]
[ 9.221108] saa716x_budget_pci_probe+0x1a5/0x250 [saa716x_tbs_dvb]
[ 9.221109] local_pci_probe+0x42/0xa0
[ 9.221110] pci_device_probe+0x18d/0x1a0
[ 9.221111] driver_probe_device+0x2ff/0x450
[ 9.221111] __driver_attach+0xa4/0xe0
[ 9.221112] ? driver_probe_device+0x450/0x450
[ 9.221113] bus_for_each_dev+0x6e/0xb0
[ 9.221114] driver_attach+0x1e/0x20
[ 9.221115] bus_add_driver+0x1c7/0x270
[ 9.221116] ? 0xffffffffc0514000
[ 9.221116] driver_register+0x60/0xe0
[ 9.221117] ? 0xffffffffc0514000
[ 9.221118] __pci_register_driver+0x4c/0x50
[ 9.221119] saa716x_budget_pci_driver_init+0x1e/0x1000 [saa716x_tbs_dvb]
[ 9.221120] do_one_initcall+0x50/0x1a0
[ 9.221121] ? __vunmap+0x81/0xb0
[ 9.221122] ? kfree+0x14a/0x160
[ 9.221123] ? kmem_cache_alloc_trace+0x150/0x1b0
[ 9.221124] ? do_init_module+0x27/0x1f9
[ 9.221125] do_init_module+0x5f/0x1f9
[ 9.221126] load_module+0x183b/0x1f20
[ 9.221127] ? ima_post_read_file+0x7e/0xa0
[ 9.221129] SYSC_finit_module+0xfc/0x120
[ 9.221130] ? SYSC_finit_module+0xfc/0x120
[ 9.221131] SyS_finit_module+0xe/0x10
[ 9.221132] entry_SYSCALL_64_fastpath+0x1e/0xa9
[ 9.221132] RIP: 0033:0x7f080d0339f9
[ 9.221133] RSP: 002b:00007fffab6f7fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 9.221133] RAX: ffffffffffffffda RBX: 00007fffab6f6fe0 RCX: 00007f080d0339f9
[ 9.221134] RDX: 0000000000000000 RSI: 000055eaba696f60 RDI: 0000000000000005
[ 9.221134] RBP: 0000000000000005 R08: 0000000000000000 R09: 000055eab8a99099
[ 9.221135] R10: 0000000000000005 R11: 0000000000000246 R12: 000055eaba69d900
[ 9.221135] R13: 0000000000000005 R14: 00007fffab6f6fc0 R15: 0000000000000005
[ 9.221136] Code: 0d 04 13 e1 8b 45 b0 eb 9c 48 c7 c7 90 c1 4a c0 e8 ad 90 c3 e0 0f ff e9 6f fe ff ff 44 89 ee 48 c7 c7 f0 c1 4a c0 e8 97 90 c3 e0 <0f> ff e9 8d fe ff ff 48 8b 7f 08 48 c7 c6 c0 c0 4a c0 e8 cf 03
[ 9.221150] ---[ end trace 902f2e77ca28e8fa ]---
[ 9.221151] i2c i2c-8: Added multiplexed i2c bus 16
[ 9.221260] sysfs: cannot create duplicate filename '/devices/pci0000:00/0000:00:1c.6/0000:06:00.0/i2c-8/channel-1'
[ 9.221263] ------------[ cut here ]------------
[ 9.221265] WARNING: CPU: 2 PID: 367 at /build/linux-XO_uEE/linux-4.13.0/fs/sysfs/dir.c:31 sysfs_warn_dup+0x56/0x70
[ 9.221266] Modules linked in: av201x(OE) saa716x_tbs_dvb(OE+) tas2101(OE) i2c_mux cx24117(OE) saa716x_core(OE) dvb_core(OE) media(OE) sunrpc parport_pc ppdev lp parport ip_tables x_tables autofs4 hid_generic usbhid hid i915 i2c_algo_bit drm_kms_helper ahci syscopyarea libahci sysfillrect sysimgblt fb_sys_fops r8169 drm mii wmi video
[ 9.221275] CPU: 2 PID: 367 Comm: systemd-modules Tainted: G W OE 4.13.0-16-generic #19-Ubuntu
[ 9.221275] Hardware name: System manufacturer System Product Name/P8Z77-V LX, BIOS 2501 07/21/2014
[ 9.221276] task: ffff9dda0b39c5c0 task.stack: ffffbfe3011fc000
[ 9.221277] RIP: 0010:sysfs_warn_dup+0x56/0x70
[ 9.221278] RSP: 0018:ffffbfe3011ff918 EFLAGS: 00010286
[ 9.221278] RAX: 0000000000000067 RBX: ffff9dda103ef000 RCX: 0000000000000006
[ 9.221279] RDX: 0000000000000000 RSI: 0000000000000092 RDI: ffff9dda1fb0dc70
[ 9.221279] RBP: ffffbfe3011ff930 R08: 0000000000000001 R09: 00000000000004c4
[ 9.221280] R10: 0000000000000001 R11: 0000000000000000 R12: ffffbfe3011ff99c
[ 9.221280] R13: ffff9dda0ad4c2d0 R14: 0000000000000001 R15: ffffffffffffffef
[ 9.221281] FS: 00007f080d502940(0000) GS:ffff9dda1fb00000(0000) knlGS:0000000000000000
[ 9.221281] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 9.221282] CR2: 00007f0956e6b000 CR3: 000000021097a000 CR4: 00000000001406e0
[ 9.221282] Call Trace:
[ 9.221284] sysfs_do_create_link_sd.isra.2+0x9f/0xb0
[ 9.221286] sysfs_create_link+0x25/0x40
[ 9.221287] i2c_mux_add_adapter+0x216/0x9f0 [i2c_mux]
[ 9.221289] tas2101_attach+0xbf/0x970 [tas2101]
[ 9.221291] saa716x_tbs6985_frontend_attach+0x7a/0x2b0 [saa716x_tbs_dvb]
[ 9.221293] saa716x_dvb_init+0x260/0x560 [saa716x_core]
[ 9.221295] saa716x_budget_pci_probe+0x1a5/0x250 [saa716x_tbs_dvb]
[ 9.221296] local_pci_probe+0x42/0xa0
[ 9.221297] pci_device_probe+0x18d/0x1a0
[ 9.221299] driver_probe_device+0x2ff/0x450
[ 9.221299] __driver_attach+0xa4/0xe0
[ 9.221300] ? driver_probe_device+0x450/0x450
[ 9.221301] bus_for_each_dev+0x6e/0xb0
[ 9.221302] driver_attach+0x1e/0x20
[ 9.221303] bus_add_driver+0x1c7/0x270
[ 9.221304] ? 0xffffffffc0514000
[ 9.221305] driver_register+0x60/0xe0
[ 9.221305] ? 0xffffffffc0514000
[ 9.221306] __pci_register_driver+0x4c/0x50
[ 9.221308] saa716x_budget_pci_driver_init+0x1e/0x1000 [saa716x_tbs_dvb]
[ 9.221309] do_one_initcall+0x50/0x1a0
[ 9.221310] ? __vunmap+0x81/0xb0
[ 9.221311] ? kfree+0x14a/0x160
[ 9.221312] ? kmem_cache_alloc_trace+0x150/0x1b0
[ 9.221313] ? do_init_module+0x27/0x1f9
[ 9.221314] do_init_module+0x5f/0x1f9
[ 9.221315] load_module+0x183b/0x1f20
[ 9.221316] ? ima_post_read_file+0x7e/0xa0
[ 9.221318] SYSC_finit_module+0xfc/0x120
[ 9.221319] ? SYSC_finit_module+0xfc/0x120
[ 9.221320] SyS_finit_module+0xe/0x10
[ 9.221321] entry_SYSCALL_64_fastpath+0x1e/0xa9
[ 9.221322] RIP: 0033:0x7f080d0339f9
[ 9.221322] RSP: 002b:00007fffab6f7fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 9.221323] RAX: ffffffffffffffda RBX: 00007fffab6f6fe0 RCX: 00007f080d0339f9
[ 9.221323] RDX: 0000000000000000 RSI: 000055eaba696f60 RDI: 0000000000000005
[ 9.221324] RBP: 0000000000000005 R08: 0000000000000000 R09: 000055eab8a99099
[ 9.221324] R10: 0000000000000005 R11: 0000000000000246 R12: 000055eaba69d900
[ 9.221325] R13: 0000000000000005 R14: 00007fffab6f6fc0 R15: 0000000000000005
[ 9.221325] Code: 85 c0 48 89 c3 74 12 b9 00 10 00 00 48 89 c2 31 f6 4c 89 ef e8 0c c8 ff ff 4c 89 e2 48 89 de 48 c7 c7 d0 9f cc a1 e8 cb 78 e0 ff <0f> ff 48 89 df e8 60 bd f4 ff 5b 41 5c 41 5d 5d c3 66 0f 1f 84
[ 9.221340] ---[ end trace 902f2e77ca28e8fb ]---
[ 9.221341] can't create symlink for channel 1
[ 9.221345] ------------[ cut here ]------------
[ 9.221346] WARNING: CPU: 2 PID: 367 at /build/linux-XO_uEE/linux-4.13.0/drivers/i2c/i2c-mux.c:421 i2c_mux_add_adapter+0x38a/0x9f0 [i2c_mux]
[ 9.221347] Modules linked in: av201x(OE) saa716x_tbs_dvb(OE+) tas2101(OE) i2c_mux cx24117(OE) saa716x_core(OE) dvb_core(OE) media(OE) sunrpc parport_pc ppdev lp parport ip_tables x_tables autofs4 hid_generic usbhid hid i915 i2c_algo_bit drm_kms_helper ahci syscopyarea libahci sysfillrect sysimgblt fb_sys_fops r8169 drm mii wmi video
[ 9.221355] CPU: 2 PID: 367 Comm: systemd-modules Tainted: G W OE 4.13.0-16-generic #19-Ubuntu
[ 9.221355] Hardware name: System manufacturer System Product Name/P8Z77-V LX, BIOS 2501 07/21/2014
[ 9.221356] task: ffff9dda0b39c5c0 task.stack: ffffbfe3011fc000
[ 9.221356] RIP: 0010:i2c_mux_add_adapter+0x38a/0x9f0 [i2c_mux]
[ 9.221357] RSP: 0018:ffffbfe3011ff988 EFLAGS: 00010282
[ 9.221358] RAX: 0000000000000022 RBX: ffff9dda10fafa98 RCX: 0000000000000006
[ 9.221358] RDX: 0000000000000000 RSI: 0000000000000096 RDI: ffff9dda1fb0dc70
[ 9.221358] RBP: ffffbfe3011ff9e0 R08: 0000000000000001 R09: 00000000000004ff
[ 9.221359] R10: fffffb814840fa00 R11: 0000000000000000 R12: ffff9dda13bc6880
[ 9.221359] R13: 0000000000000001 R14: ffff9dda0a150bb0 R15: ffff9dda13bc6800
[ 9.221360] FS: 00007f080d502940(0000) GS:ffff9dda1fb00000(0000) knlGS:0000000000000000
[ 9.221360] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 9.221361] CR2: 00007f0956e6b000 CR3: 000000021097a000 CR4: 00000000001406e0
[ 9.221361] Call Trace:
[ 9.221363] tas2101_attach+0xbf/0x970 [tas2101]
[ 9.221364] saa716x_tbs6985_frontend_attach+0x7a/0x2b0 [saa716x_tbs_dvb]
[ 9.221366] saa716x_dvb_init+0x260/0x560 [saa716x_core]
[ 9.221368] saa716x_budget_pci_probe+0x1a5/0x250 [saa716x_tbs_dvb]
[ 9.221369] local_pci_probe+0x42/0xa0
[ 9.221370] pci_device_probe+0x18d/0x1a0
[ 9.221371] driver_probe_device+0x2ff/0x450
[ 9.221372] __driver_attach+0xa4/0xe0
[ 9.221372] ? driver_probe_device+0x450/0x450
[ 9.221374] bus_for_each_dev+0x6e/0xb0
[ 9.221374] driver_attach+0x1e/0x20
[ 9.221375] bus_add_driver+0x1c7/0x270
[ 9.221376] ? 0xffffffffc0514000
[ 9.221377] driver_register+0x60/0xe0
[ 9.221377] ? 0xffffffffc0514000
[ 9.221378] __pci_register_driver+0x4c/0x50
[ 9.221380] saa716x_budget_pci_driver_init+0x1e/0x1000 [saa716x_tbs_dvb]
[ 9.221381] do_one_initcall+0x50/0x1a0
[ 9.221381] ? __vunmap+0x81/0xb0
[ 9.221382] ? kfree+0x14a/0x160
[ 9.221383] ? kmem_cache_alloc_trace+0x150/0x1b0
[ 9.221384] ? do_init_module+0x27/0x1f9
[ 9.221385] do_init_module+0x5f/0x1f9
[ 9.221386] load_module+0x183b/0x1f20
[ 9.221387] ? ima_post_read_file+0x7e/0xa0
[ 9.221389] SYSC_finit_module+0xfc/0x120
[ 9.221390] ? SYSC_finit_module+0xfc/0x120
[ 9.221391] SyS_finit_module+0xe/0x10
[ 9.221392] entry_SYSCALL_64_fastpath+0x1e/0xa9
[ 9.221393] RIP: 0033:0x7f080d0339f9
[ 9.221393] RSP: 002b:00007fffab6f7fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 9.221394] RAX: ffffffffffffffda RBX: 00007fffab6f6fe0 RCX: 00007f080d0339f9
[ 9.221394] RDX: 0000000000000000 RSI: 000055eaba696f60 RDI: 0000000000000005
[ 9.221394] RBP: 0000000000000005 R08: 0000000000000000 R09: 000055eab8a99099
[ 9.221395] R10: 0000000000000005 R11: 0000000000000246 R12: 000055eaba69d900
[ 9.221395] R13: 0000000000000005 R14: 00007fffab6f6fc0 R15: 0000000000000005
[ 9.221396] Code: 0d 04 13 e1 8b 45 b0 eb 9c 48 c7 c7 90 c1 4a c0 e8 ad 90 c3 e0 0f ff e9 6f fe ff ff 44 89 ee 48 c7 c7 f0 c1 4a c0 e8 97 90 c3 e0 <0f> ff e9 8d fe ff ff 48 8b 7f 08 48 c7 c6 c0 c0 4a c0 e8 cf 03
[ 9.221410] ---[ end trace 902f2e77ca28e8fc ]---
[ 9.221411] i2c i2c-8: Added multiplexed i2c bus 17
[ 9.524129] i2c i2c-17: av201x: Airoha Technology AV201x successfully attached
[ 9.524424] SAA716x Budget 0000:06:00.0: TurboSight TBS 6985 MAC=00:22:ab:90:45:6f
[ 9.524426] SAA716x Budget 0000:06:00.0: DVB: registering adapter 3 frontend 0 (TurboSight TBS 6985 DVB-S/S2)...
[ 10.184967] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[ 10.208732] ACPI Warning: SystemIO range 0x0000000000000428-0x000000000000042F conflicts with OpRegion 0x0000000000000400-0x000000000000047F (\PMIO) (20170531/utaddress-247)
[ 10.208736] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 10.208738] ACPI Warning: SystemIO range 0x0000000000000540-0x000000000000054F conflicts with OpRegion 0x0000000000000500-0x0000000000000563 (\GPIO) (20170531/utaddress-247)
[ 10.208740] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 10.208740] ACPI Warning: SystemIO range 0x0000000000000530-0x000000000000053F conflicts with OpRegion 0x0000000000000500-0x0000000000000563 (\GPIO) (20170531/utaddress-247)
[ 10.208742] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 10.208742] ACPI Warning: SystemIO range 0x0000000000000500-0x000000000000052F conflicts with OpRegion 0x0000000000000500-0x0000000000000563 (\GPIO) (20170531/utaddress-247)
[ 10.208744] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 10.208744] lpc_ich: Resource conflict(s) found affecting gpio_ich

"w_scan -fs -c DE -s S19E2 -L -R 1 -R 1 -O 0 -E 0 -a 3 -t 2" are runs more than 3 hours and i become "but not found by pids" from any lines.

With kaffein i can scan very fast and i have many entrys as dupes. The HD Channels like "Das Erste HD" works. The dupe "Das Erste HD-1" won't work. The SD channel "Das Erste" won't work also. This is only a example. Any HD Channels i have tests works, but no SD channels, i have tests has been work.

First:
How can i make the drivers without this Kernel message on Boot:
"[ 8.015597] WARNING: You are using an experimental version of the media stack.
As the driver is backported to an older kernel, it doesn't offer
enough quality for its usage in production.
Use it with care.
Latest git patches (needed if you report a bug to linux-media@vger.kernel.org):
cf38293 fixed the problem that tbs6285 can not get TS stream"

Second;
How can i makge the drivers without this Kernel traces:
"[ 8.613206] WARNING: CPU: 2 PID: 367 at /build/linux-XO_uEE/linux-4.13.0/fs/sysfs/dir.c:31 sysfs_warn_dup+0x56/0x70
[ 8.613206] Modules linked in: av201x(OE) saa716x_tbs_dvb(OE+) tas2101(OE) i2c_mux cx24117(OE) saa716x_core(OE) dvb_core(OE) media(OE) sunrpc parport_pc ppdev lp parport ip_tables x_tables autofs4 hid_generic usbhid hid i915 i2c_algo_bit drm_kms_helper ahci syscopyarea libahci sysfillrect sysimgblt fb_sys_fops r8169 drm mii wmi video
[ 8.613218] CPU: 2 PID: 367 Comm: systemd-modules Tainted: G OE 4.13.0-16-generic #19-Ubuntu
[ 8.613219] Hardware name: System manufacturer System Product Name/P8Z77-V LX, BIOS 2501 07/21/2014
[ 8.613220] task: ffff9dda0b39c5c0 task.stack: ffffbfe3011fc000
[ 8.613221] RIP: 0010:sysfs_warn_dup+0x56/0x70
[ 8.613221] RSP: 0018:ffffbfe3011ff918 EFLAGS: 00010286
[ 8.613222] RAX: 0000000000000067 RBX: ffff9dda103ec000 RCX: 0000000000000006
[ 8.613223] RDX: 0000000000000000 RSI: 0000000000000092 RDI: ffff9dda1fb0dc70
[ 8.613223] RBP: ffffbfe3011ff930 R08: 0000000000000001 R09: 000000000000035e
[ 8.613224] R10: 0000000000000001 R11: 0000000000000000 R12: ffffbfe3011ff99c
[ 8.613224] R13: ffff9dda0ad74708 R14: 0000000000000001 R15: ffffffffffffffef
[ 8.613225] FS: 00007f080d502940(0000) GS:ffff9dda1fb00000(0000) knlGS:0000000000000000
[ 8.613225] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 8.613226] CR2: 00007ff7b5b81bff CR3: 000000021097a000 CR4: 00000000001406e0
[ 8.613227] Call Trace:
[ 8.613230] sysfs_do_create_link_sd.isra.2+0x9f/0xb0
[ 8.613232] sysfs_create_link+0x25/0x40
[ 8.613233] i2c_mux_add_adapter+0x216/0x9f0 [i2c_mux]
[ 8.613235] tas2101_attach+0xa6/0x970 [tas2101]
[ 8.613238] saa716x_tbs6985_frontend_attach+0x7a/0x2b0 [saa716x_tbs_dvb]
[ 8.613241] saa716x_dvb_init+0x260/0x560 [saa716x_core]
[ 8.613243] saa716x_budget_pci_probe+0x1a5/0x250 [saa716x_tbs_dvb]
[ 8.613245] local_pci_probe+0x42/0xa0
[ 8.613247] pci_device_probe+0x18d/0x1a0
[ 8.613248] driver_probe_device+0x2ff/0x450
[ 8.613249] __driver_attach+0xa4/0xe0
[ 8.613250] ? driver_probe_device+0x450/0x450
[ 8.613252] bus_for_each_dev+0x6e/0xb0
[ 8.613253] driver_attach+0x1e/0x20
[ 8.613254] bus_add_driver+0x1c7/0x270
[ 8.613255] ? 0xffffffffc0514000
[ 8.613256] driver_register+0x60/0xe0
[ 8.613256] ? 0xffffffffc0514000
[ 8.613257] __pci_register_driver+0x4c/0x50
[ 8.613259] saa716x_budget_pci_driver_init+0x1e/0x1000 [saa716x_tbs_dvb]
[ 8.613261] do_one_initcall+0x50/0x1a0
[ 8.613263] ? __vunmap+0x81/0xb0
[ 8.613265] ? kfree+0x14a/0x160
[ 8.613266] ? kmem_cache_alloc_trace+0x150/0x1b0
[ 8.613267] ? do_init_module+0x27/0x1f9
[ 8.613269] do_init_module+0x5f/0x1f9
[ 8.613270] load_module+0x183b/0x1f20
[ 8.613272] ? ima_post_read_file+0x7e/0xa0
[ 8.613273] SYSC_finit_module+0xfc/0x120
[ 8.613274] ? SYSC_finit_module+0xfc/0x120
[ 8.613276] SyS_finit_module+0xe/0x10
[ 8.613277] entry_SYSCALL_64_fastpath+0x1e/0xa9
[ 8.613278] RIP: 0033:0x7f080d0339f9
[ 8.613278] RSP: 002b:00007fffab6f7fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 8.613279] RAX: ffffffffffffffda RBX: 00007fffab6f6fe0 RCX: 00007f080d0339f9
[ 8.613280] RDX: 0000000000000000 RSI: 000055eaba696f60 RDI: 0000000000000005
[ 8.613280] RBP: 0000000000000005 R08: 0000000000000000 R09: 000055eab8a99099
[ 8.613281] R10: 0000000000000005 R11: 0000000000000246 R12: 000055eaba69d900
[ 8.613281] R13: 0000000000000005 R14: 00007fffab6f6fc0 R15: 0000000000000005
[ 8.613282] Code: 85 c0 48 89 c3 74 12 b9 00 10 00 00 48 89 c2 31 f6 4c 89 ef e8 0c c8 ff ff 4c 89 e2 48 89 de 48 c7 c7 d0 9f cc a1 e8 cb 78 e0 ff <0f> ff 48 89 df e8 60 bd f4 ff 5b 41 5c 41 5d 5d c3 66 0f 1f 84
[ 8.613298] ---[ end trace 902f2e77ca28e8f5 ]---
[ 8.613298] can't create symlink for channel 0"

Thirth:
I am not sure, i this an failure but i think so:
"[ 10.208732] ACPI Warning: SystemIO range 0x0000000000000428-0x000000000000042F conflicts with OpRegion 0x0000000000000400-0x000000000000047F (\PMIO) (20170531/utaddress-247)
[ 10.208736] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver"

Fourth:
How can i fix the SD Channels?

Befor Ubuntu Server 17.10 i have used the Ubuntu Desktop 16.04 with the TBS-Drivers. This has been worked fine for me, but on Version 17.10 the drivers won't compile. Any errors and only 2 Errors i have found to fix. i won't reinstall with older Linux.

@THN1
Copy link

THN1 commented Nov 13, 2017

I'm not sure you can compile Luis's sources for a Kernel higher than 4.10.
It seems you first need some patches, please check.
T.

@Krobar
Copy link

Krobar commented Nov 21, 2017

Are the duplicate I2C errors part of the problem? Are the patches mentioned above available yet?

I seem to get similar errors running on 4.13.12-1-ARCH:
[ 3.107688] ixgbevf: Copyright (c) 2009 - 2015 Intel Corporation.
[ 3.111760] WARNING: You are using an experimental version of the media stack.
[ 3.158608] ixgbevf 0000:00:03.0: 00:1e:67:65:93:05
[ 3.158654] ixgbevf 0000:00:03.0: MAC: 2
[ 3.158658] ixgbevf 0000:00:03.0: Intel(R) X540 Virtual Function
[ 3.158709] saa716x_pci_init (0): found a TurboSight TBS 6985 PCIe card
[ 3.160895] ACPI: PCI Interrupt Link [GSIE] enabled at IRQ 20
[ 3.169308] SAA7160 Rev 2 [6985:0002],
[ 3.169312] irq: 35,
[ 3.169315] SAA7160 64Bit, MSI Enabled, MSI-X=32 msgs

[ 3.194508] saa716x_i2c_hwinit (0): Adapter (b000) SAA716x I2C Core 0 RESET
[ 3.203205] saa716x_i2c_hwinit (0): Adapter (c000) SAA716x I2C Core 1 RESET
[ 3.208161] dvbdev: DVB: registering new adapter (SAA716x dvb adapter)
[ 3.214789] i2c i2c-2: Added multiplexed i2c bus 3
[ 3.214847] i2c i2c-2: Added multiplexed i2c bus 4
[ 3.625633] input: PC Speaker as /devices/platform/pcspkr/input/input4
[ 3.626942] iTCO_vendor_support: vendor-support=0
[ 3.629195] iTCO_wdt: Intel TCO WatchDog Timer Driver v1.11
[ 3.629474] iTCO_wdt: Found a ICH9 TCO device (Version=2, TCOBASE=0x0660)
[ 3.630099] iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
[ 3.669570] i2c i2c-4: av201x: Airoha Technology AV201x successfully attached
[ 3.669882] SAA716x Budget 0000:00:04.0: TurboSight TBS 6985 MAC=00:22:ab:90:7e:88
[ 3.669893] SAA716x Budget 0000:00:04.0: DVB: registering adapter 0 frontend 0 (TurboSight TBS 6985 DVB-S/S2)...
[ 3.672458] dvbdev: DVB: registering new adapter (SAA716x dvb adapter)
[ 3.683968] ppdev: user-space parallel port driver
[ 3.684113] sysfs: cannot create duplicate filename '/devices/pci0000:00/0000:00:04.0/i2c-2/channel-0'
[ 3.684171] ------------[ cut here ]------------
[ 3.684185] WARNING: CPU: 0 PID: 215 at fs/sysfs/dir.c:31 sysfs_warn_dup+0x56/0x70
[ 3.684188] Modules linked in: evdev(+) ppdev av201x(O) mac_hid iTCO_wdt iTCO_vendor_support pcspkr saa716x_tbs_dvb(O+) cx24117(O) saa716x_core(O) tas2101(O) drm dvb_core(O) i2c_mux ixgbevf parport_pc intel_agp syscopyarea sysfillrect sysimgblt qemu_fw_cfg intel_gtt fb_sys_fops lpc_ich parport media(O) shpchp i2c_i801 i2c_algo_bit agpgart button sch_fq_codel ip_tables x_tables ext4 crc16 mbcache jbd2 fscrypto sr_mod cdrom sd_mod virtio_balloon serio_raw atkbd libps2 ahci libahci libata scsi_mod xhci_pci xhci_hcd virtio_pci virtio_ring virtio usbcore usb_common i8042 serio
[ 3.684551] CPU: 0 PID: 215 Comm: systemd-udevd Tainted: G O 4.13.12-1-ARCH #1
[ 3.684555] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.11.0-20171110_095948-anatol 04/01/2014
[ 3.684559] task: ffff93587b558dc0 task.stack: ffffa507004e8000
[ 3.684567] RIP: 0010:sysfs_warn_dup+0x56/0x70
[ 3.684571] RSP: 0018:ffffa507004eb8e8 EFLAGS: 00010282
[ 3.684577] RAX: 000000000000005a RBX: ffff93587cdcc000 RCX: 0000000000000000
[ 3.684581] RDX: 0000000000000000 RSI: ffff93587f00dc78 RDI: ffff93587f00dc78
[ 3.684584] RBP: ffffa507004eb900 R08: 0000000000000208 R09: 0000000000000004
[ 3.684587] R10: 0000000000000001 R11: 0000000000000001 R12: ffffa507004eb96c
[ 3.684591] R13: ffff93587cee9708 R14: ffff93587cee9708 R15: ffffffffffffffef
[ 3.684604] FS: 00007fab2f85c0c0(0000) GS:ffff93587f000000(0000) knlGS:0000000000000000
[ 3.684608] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 3.684612] CR2: 00007fab2aecb6f8 CR3: 000000003b562000 CR4: 00000000000006f0
[ 3.684624] Call Trace:
[ 3.684639] sysfs_do_create_link_sd.isra.2+0xbc/0xd0
[ 3.684649] sysfs_create_link+0x25/0x40
[ 3.684660] i2c_mux_add_adapter+0x216/0x9f0 [i2c_mux]
[ 3.684674] tas2101_attach+0xa6/0x970 [tas2101]
[ 3.684694] saa716x_tbs6985_frontend_attach+0x7a/0x2b0 [saa716x_tbs_dvb]
[ 3.684707] saa716x_dvb_init+0x260/0x560 [saa716x_core]
[ 3.684725] saa716x_budget_pci_probe+0x1a5/0x250 [saa716x_tbs_dvb]
[ 3.684735] local_pci_probe+0x42/0xa0
[ 3.684741] ? pci_match_device+0xe0/0x110
[ 3.684749] pci_device_probe+0x18d/0x1a0
[ 3.684760] driver_probe_device+0x2ff/0x450
[ 3.684769] __driver_attach+0xa4/0xe0
[ 3.684776] ? driver_probe_device+0x450/0x450
[ 3.684784] bus_for_each_dev+0x6e/0xb0
[ 3.684793] driver_attach+0x1e/0x20
[ 3.684799] bus_add_driver+0x1c7/0x270
[ 3.684805] ? 0xffffffffc055d000
[ 3.684812] driver_register+0x60/0xe0
[ 3.684818] ? 0xffffffffc055d000
[ 3.684824] __pci_register_driver+0x4c/0x50
[ 3.684838] saa716x_budget_pci_driver_init+0x1e/0x1000 [saa716x_tbs_dvb]
[ 3.684846] do_one_initcall+0x50/0x190
[ 3.684854] ? kfree+0x175/0x190
[ 3.684858] ? kfree+0x175/0x190
[ 3.684867] ? do_init_module+0x27/0x1f2
[ 3.684877] do_init_module+0x5f/0x1f2
[ 3.684886] load_module+0x23f3/0x2be0
[ 3.684901] ? vfs_read+0x115/0x130
[ 3.684919] SYSC_finit_module+0xfc/0x120
[ 3.684926] ? SYSC_finit_module+0xfc/0x120
[ 3.684943] SyS_finit_module+0xe/0x10
[ 3.684950] do_syscall_64+0x54/0xc0
[ 3.684959] entry_SYSCALL64_slow_path+0x25/0x25
[ 3.684964] RIP: 0033:0x7fab2f167e79
[ 3.684968] RSP: 002b:00007fffb04997b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 3.684974] RAX: ffffffffffffffda RBX: 000055ef6b318f00 RCX: 00007fab2f167e79
[ 3.684978] RDX: 0000000000000000 RSI: 000055ef6b322d00 RDI: 0000000000000015
[ 3.684981] RBP: 000055ef6b322d00 R08: 0000000000000000 R09: 0000000000000000
[ 3.684984] R10: 0000000000000015 R11: 0000000000000246 R12: 0000000000000000
[ 3.684987] R13: 000055ef6b30c7b0 R14: 0000000000020000 R15: 0000000000000000
[ 3.684999] Code: 85 c0 48 89 c3 74 12 b9 00 10 00 00 48 89 c2 31 f6 4c 89 ef e8 5c c8 ff ff 4c 89 e2 48 89 de 48 c7 c7 a8 82 95 ba e8 bb 27 e3 ff <0f> ff 48 89 df e8 00 3c f5 ff 5b 41 5c 41 5d 5d c3 66 0f 1f 84
[ 3.685120] ---[ end trace cd1ea7d1dccf46e5 ]---
[ 3.685125] can't create symlink for channel 0
[ 3.685181] ------------[ cut here ]------------
[ 3.685190] WARNING: CPU: 0 PID: 215 at drivers/i2c/i2c-mux.c:421 i2c_mux_add_adapter+0x38a/0x9f0 [i2c_mux]
[ 3.685193] Modules linked in: evdev(+) ppdev av201x(O) mac_hid iTCO_wdt iTCO_vendor_support pcspkr saa716x_tbs_dvb(O+) cx24117(O) saa716x_core(O) tas2101(O) drm dvb_core(O) i2c_mux ixgbevf parport_pc intel_agp syscopyarea sysfillrect sysimgblt qemu_fw_cfg intel_gtt fb_sys_fops lpc_ich parport media(O) shpchp i2c_i801 i2c_algo_bit agpgart button sch_fq_codel ip_tables x_tables ext4 crc16 mbcache jbd2 fscrypto sr_mod cdrom sd_mod virtio_balloon serio_raw atkbd libps2 ahci libahci libata scsi_mod xhci_pci xhci_hcd virtio_pci virtio_ring virtio usbcore usb_common i8042 serio
[ 3.685338] CPU: 0 PID: 215 Comm: systemd-udevd Tainted: G W O 4.13.12-1-ARCH #1
[ 3.685341] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.11.0-20171110_095948-anatol 04/01/2014
[ 3.685344] task: ffff93587b558dc0 task.stack: ffffa507004e8000
[ 3.685352] RIP: 0010:i2c_mux_add_adapter+0x38a/0x9f0 [i2c_mux]
[ 3.685356] RSP: 0018:ffffa507004eb958 EFLAGS: 00010282
[ 3.685361] RAX: 0000000000000022 RBX: ffff9358777850d8 RCX: 0000000000000006
[ 3.685365] RDX: 0000000000000000 RSI: 0000000000000092 RDI: ffff93587f00dc70
[ 3.685368] RBP: ffffa507004eb9b0 R08: 0000000000000244 R09: 0000000000000004
[ 3.685371] R10: fffff86a40f37200 R11: 0000000000000001 R12: ffff93587bc10880
[ 3.685374] R13: 0000000000000000 R14: ffff93587b4f9008 R15: ffff93587bc10800
[ 3.685386] FS: 00007fab2f85c0c0(0000) GS:ffff93587f000000(0000) knlGS:0000000000000000
[ 3.685390] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 3.685393] CR2: 00007fab2aecb6f8 CR3: 000000003b562000 CR4: 00000000000006f0
[ 3.685403] Call Trace:
[ 3.685418] tas2101_attach+0xa6/0x970 [tas2101]
[ 3.685435] saa716x_tbs6985_frontend_attach+0x7a/0x2b0 [saa716x_tbs_dvb]
[ 3.685447] saa716x_dvb_init+0x260/0x560 [saa716x_core]
[ 3.685465] saa716x_budget_pci_probe+0x1a5/0x250 [saa716x_tbs_dvb]
[ 3.685474] local_pci_probe+0x42/0xa0
[ 3.685480] ? pci_match_device+0xe0/0x110
[ 3.685487] pci_device_probe+0x18d/0x1a0
[ 3.685497] driver_probe_device+0x2ff/0x450
[ 3.685505] __driver_attach+0xa4/0xe0
[ 3.685512] ? driver_probe_device+0x450/0x450
[ 3.685519] bus_for_each_dev+0x6e/0xb0
[ 3.685527] driver_attach+0x1e/0x20
[ 3.685533] bus_add_driver+0x1c7/0x270
[ 3.685539] ? 0xffffffffc055d000
[ 3.685546] driver_register+0x60/0xe0
[ 3.685551] ? 0xffffffffc055d000
[ 3.685557] __pci_register_driver+0x4c/0x50
[ 3.685570] saa716x_budget_pci_driver_init+0x1e/0x1000 [saa716x_tbs_dvb]
[ 3.685577] do_one_initcall+0x50/0x190
[ 3.685584] ? kfree+0x175/0x190
[ 3.685588] ? kfree+0x175/0x190
[ 3.685597] ? do_init_module+0x27/0x1f2
[ 3.685607] do_init_module+0x5f/0x1f2
[ 3.685617] load_module+0x23f3/0x2be0
[ 3.685631] ? vfs_read+0x115/0x130
[ 3.685648] SYSC_finit_module+0xfc/0x120
[ 3.685655] ? SYSC_finit_module+0xfc/0x120
[ 3.685672] SyS_finit_module+0xe/0x10
[ 3.685678] do_syscall_64+0x54/0xc0
[ 3.685686] entry_SYSCALL64_slow_path+0x25/0x25
[ 3.685691] RIP: 0033:0x7fab2f167e79
[ 3.685695] RSP: 002b:00007fffb04997b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 3.685702] RAX: ffffffffffffffda RBX: 000055ef6b318f00 RCX: 00007fab2f167e79
[ 3.685705] RDX: 0000000000000000 RSI: 000055ef6b322d00 RDI: 0000000000000015
[ 3.685708] RBP: 000055ef6b322d00 R08: 0000000000000000 R09: 0000000000000000
[ 3.685711] R10: 0000000000000015 R11: 0000000000000246 R12: 0000000000000000
[ 3.685715] R13: 000055ef6b30c7b0 R14: 0000000000020000 R15: 0000000000000000
[ 3.685727] Code: cd 44 03 fa 8b 45 b0 eb 9c 48 c7 c7 b8 61 45 c0 e8 5d 9f c8 f9 0f ff e9 6f fe ff ff 44 89 ee 48 c7 c7 e0 61 45 c0 e8 47 9f c8 f9 <0f> ff e9 8d fe ff ff 48 8b 7f 08 48 c7 c6 e8 60 45 c0 e8 8f 44
[ 3.685846] ---[ end trace cd1ea7d1dccf46e6 ]---
[ 3.685854] i2c i2c-2: Added multiplexed i2c bus 5
[ 3.685979] sysfs: cannot create duplicate filename '/devices/pci0000:00/0000:00:04.0/i2c-2/channel-1'
[ 3.686013] ------------[ cut here ]------------

crazycat69 pushed a commit to crazycat69/linux_media that referenced this issue Mar 14, 2023
If a relocatable kernel is loaded at an address that is not 2MB aligned
and told not to relocate to zero, the kernel can crash due to
mark_rodata_ro() incorrectly changing some read-write data to read-only.

Scenarios where the misalignment can occur are when the kernel is
loaded by kdump or using the RELOCATABLE_TEST config option.

Example crash with the kernel loaded at 5MB:

  Run /sbin/init as init process
  BUG: Unable to handle kernel data access on write at 0xc000000000452000
  Faulting instruction address: 0xc0000000005b6730
  Oops: Kernel access of bad area, sig: 11 [ljalves#1]
  LE PAGE_SIZE=64K MMU=Radix SMP NR_CPUS=2048 NUMA pSeries
  CPU: 1 PID: 1 Comm: init Not tainted 6.2.0-rc1-00011-g349188be4841 ljalves#166
  Hardware name: IBM pSeries (emulated by qemu) POWER9 (raw) 0x4e1202 0xf000005 of:SLOF,git-5b4c5a hv:linux,kvm pSeries
  NIP:  c0000000005b6730 LR: c000000000ae9ab8 CTR: 0000000000000380
  REGS: c000000004503250 TRAP: 0300   Not tainted  (6.2.0-rc1-00011-g349188be4841)
  MSR:  8000000000009033 <SF,EE,ME,IR,DR,RI,LE>  CR: 44288480  XER: 00000000
  CFAR: c0000000005b66ec DAR: c000000000452000 DSISR: 0a000000 IRQMASK: 0
  ...
  NIP memset+0x68/0x104
  LR  zero_user_segments.constprop.0+0xa8/0xf0
  Call Trace:
    ext4_mpage_readpages+0x7f8/0x830
    ext4_readahead+0x48/0x60
    read_pages+0xb8/0x380
    page_cache_ra_unbounded+0x19c/0x250
    filemap_fault+0x58c/0xae0
    __do_fault+0x60/0x100
    __handle_mm_fault+0x1230/0x1a40
    handle_mm_fault+0x120/0x300
    ___do_page_fault+0x20c/0xa80
    do_page_fault+0x30/0xc0
    data_access_common_virt+0x210/0x220

This happens because mark_rodata_ro() tries to change permissions on the
range _stext..__end_rodata, but _stext sits in the middle of the 2MB
page from 4MB to 6MB:

  radix-mmu: Mapped 0x0000000000000000-0x0000000000200000 with 2.00 MiB pages (exec)
  radix-mmu: Mapped 0x0000000000200000-0x0000000000400000 with 2.00 MiB pages
  radix-mmu: Mapped 0x0000000000400000-0x0000000002400000 with 2.00 MiB pages (exec)

The logic that changes the permissions assumes the linear mapping was
split correctly at boot, so it marks the entire 2MB page read-only. That
leads to the write fault above.

To fix it, the boot time mapping logic needs to consider that if the
kernel is running at a non-zero address then _stext is a boundary where
it must split the mapping.

That leads to the mapping being split correctly, allowing the rodata
permission change to take happen correctly, with no spillover:

  radix-mmu: Mapped 0x0000000000000000-0x0000000000200000 with 2.00 MiB pages (exec)
  radix-mmu: Mapped 0x0000000000200000-0x0000000000400000 with 2.00 MiB pages
  radix-mmu: Mapped 0x0000000000400000-0x0000000000500000 with 64.0 KiB pages
  radix-mmu: Mapped 0x0000000000500000-0x0000000000600000 with 64.0 KiB pages (exec)
  radix-mmu: Mapped 0x0000000000600000-0x0000000002400000 with 2.00 MiB pages (exec)

If the kernel is loaded at a 2MB aligned address, the mapping continues
to use 2MB pages as before:

  radix-mmu: Mapped 0x0000000000000000-0x0000000000200000 with 2.00 MiB pages (exec)
  radix-mmu: Mapped 0x0000000000200000-0x0000000000400000 with 2.00 MiB pages
  radix-mmu: Mapped 0x0000000000400000-0x0000000002c00000 with 2.00 MiB pages (exec)
  radix-mmu: Mapped 0x0000000002c00000-0x0000000100000000 with 2.00 MiB pages

Fixes: c55d7b5 ("powerpc: Remove STRICT_KERNEL_RWX incompatibility with RELOCATABLE")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20230110124753.1325426-1-mpe@ellerman.id.au
@svalcken svalcken closed this as not planned Won't fix, can't repro, duplicate, stale Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants