AVM FRITZ!Box 7530 + ADSL

Hello,

I'm trying to replace my old TP-LINK TD-W8970 with FRITZ!Box 7530. Latest OpenWrt release 23.05.0 is running without any problems however I cannot start ADSL connection. I know that this device works much better with VDSL but there is no chance to update the cable.

Looks like ADSL link is established properly but I see some br2684ctl errors.

Is there a chance to properly configure such connection or it's some kernel driver issue that needs a patch ?

Thank you

Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.931785] vrx518_tc:atm_tc_load : ATM TC Loaded
Sat Nov  4 23:20:35 2023 local2.notice br2684ctl[2066]: Interface "dsl0" created sucessfully
Sat Nov  4 23:20:35 2023 local2.notice br2684ctl[2066]: Communicating over ATM 0.0.35, encapsulation: VC mux
Sat Nov  4 23:20:35 2023 local2.err br2684ctl[2066]: setsockopt SO_ATMQOS 22
Sat Nov  4 23:20:35 2023 local2.err br2684ctl[2066]: Fatal: failed to connect on socket; File descriptor in bad state
...
Sat Nov  4 23:21:13 2023 kern.info kernel: [   77.771708] vrx518_tc:atm_showtime_enter : ATM line[0]:enter showtime, cell rate: 0 - 2688, 1 - 2688
/etc/init.d/dsl_control dslstat
{
        "api_version": "4.23.1",
        "firmware_version": "8.13.0.9.0.1",
        "chipset": "Lantiq-VRX500",
        "driver_version": "1.11.1",
        "state": "Showtime with TC-Layer sync",
        "state_num": 7,
        "up": true,
        "uptime": 760,
        "atu_c": {
                "vendor_id": [181,0,73,70,84,78,130,182],
                "vendor": "Infineon 130.182",
                "system_vendor_id": [0,0,48,48,48,48,0,0],
                "version": [0...],
                "serial": [48...]
        },
        "power_state": "L0 - Synchronized",
        "power_state_num": 0,
        "xtse": [0,0,0,0,0,1,0,0],
        "annex": "A",
        "standard": "G.992.5",
        "mode": "G.992.5 (ADSL2+)",
        "upstream": {
                "trellis": true,
                "bitswap": false,
                "retx": false,
                "virtual_noise": false,
                "interleave_delay": 13500,
                "inp": 1.000000,
                "data_rate": 1136000,
                "latn": 20.900000,
                "satn": 20.900000,
                "snr": 5.900000,
                "actps": -38.000000,
                "actatp": 12.400000,
                "attndr": 1132000
        },
        "downstream": {
                "trellis": true,
                "bitswap": true,
                "retx": false,
                "virtual_noise": false,
                "interleave_delay": 15500,
                "inp": 11.600000,
                "data_rate": 9215000,
                "latn": 37.700000,
                "satn": 35.900000,
                "snr": 7.200000,
                "actps": -41.300000,
                "actatp": 19.500000,
                "attndr": 12368000
        },

config interface 'loopback'
        option device 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix 'fd2a:fe08:af10::/48'

config atm-bridge 'atm'
        option vpi '0'
        option vci '35'
        option encaps 'vc'
        option payload 'bridged'
        option nameprefix 'dsl'

config dsl 'dsl'
        option annex 'a2p'
        option ds_snr_offset '0'
        option tone 'av'
        option line_mode 'adsl'
        option xfer_mode 'atm'

config device
        option name 'br-lan'
        option type 'bridge'
        list ports 'lan1'
        list ports 'lan2'
        list ports 'lan3'
        list ports 'lan4'

config interface 'lan'
        option device 'br-lan'
        option proto 'static'
        option ipaddr '192.168.1.2'
        option netmask '255.255.255.0'
        option ip6assign '60'

config device
        option name 'dsl0'
        option macaddr 'XX:XX:...'

config interface 'wan'
        option device 'dsl0'
        option proto 'dhcp'
        option proto 'pppoe'
        option username 'xxxxxx'
        option password 'xxxxxx'
        option ipv6 '1'

config interface 'wan6'
        option device '@wan'
        option proto 'dhcpv6'

Sat Nov  4 23:20:15 2023 kern.info kernel: [    0.000000] Booting Linux on physical CPU 0x0
Sat Nov  4 23:20:15 2023 kern.notice kernel: [    0.000000] Linux version 5.15.134 (builder@buildhost) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 12.3.0 r23497-6637af95aa) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 SMP Mon Oct 9 21:45:35 2023
Sat Nov  4 23:20:15 2023 kern.info kernel: [    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
Sat Nov  4 23:20:15 2023 kern.info kernel: [    0.000000] CPU: div instructions available: patching division code
Sat Nov  4 23:20:15 2023 kern.info kernel: [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Sat Nov  4 23:20:15 2023 kern.info kernel: [    0.000000] OF: fdt: Machine model: AVM FRITZ!Box 7530
....
Sat Nov  4 23:20:15 2023 kern.info kernel: [   12.712223] vrx518: Intel(R) SmartPHY DSL(VRX518) PCIe EP/ACA Driver - version 2.1.0-k
Sat Nov  4 23:20:15 2023 kern.info kernel: [   12.716564] vrx518: Copyright (c) 2016 Intel Corporation.
Sat Nov  4 23:20:15 2023 kern.info kernel: [   12.724286] vrx518 0000:01:00.0: enabling device (0140 -> 0142)
Sat Nov  4 23:20:15 2023 kern.info kernel: [   12.733414] NET: Registered PF_ATMPVC protocol family
Sat Nov  4 23:20:15 2023 kern.info kernel: [   12.735323] NET: Registered PF_ATMSVC protocol family
Sat Nov  4 23:20:15 2023 kern.info kernel: [   12.748316] vrx518_tc:pcie_ep_probe: Total 1 VRX518 EP detected
Sat Nov  4 23:20:15 2023 kern.info kernel: [   12.761128] MD5 checksum pass!!!
Sat Nov  4 23:20:15 2023 kern.info kernel: [   12.761175] Firmware pointer id(0):size(10636), fw addr(db0bab43), off(100)
Sat Nov  4 23:20:15 2023 kern.info kernel: [   12.763439] Firmware pointer id(1):size(19548), fw addr(08cb544e), off(10736)
Sat Nov  4 23:20:15 2023 kern.info kernel: [   12.770209] Firmware pointer id(2):size(11504), fw addr(3acf8d95), off(30284)
Sat Nov  4 23:20:15 2023 kern.info kernel: [   12.777447] Firmware pointer id(3):size(23076), fw addr(d56b853c), off(41788)
Sat Nov  4 23:20:15 2023 kern.info kernel: [   12.784533] VRX518 PPE Firmware header info
Sat Nov  4 23:20:15 2023 kern.info kernel: [   12.791664] 	PTM Version: 3.5.75
Sat Nov  4 23:20:15 2023 kern.info kernel: [   12.795637] 	PTM Feature: A0000000
Sat Nov  4 23:20:15 2023 kern.info kernel: [   12.799122] 	ATM Version: 3.6.5
Sat Nov  4 23:20:15 2023 kern.info kernel: [   12.802320] 	ATM Feature: B0000000
Sat Nov  4 23:20:15 2023 kern.info kernel: [   12.805359] 	Compability ID: 00000004
Sat Nov  4 23:20:15 2023 kern.info kernel: [   12.808848] 	Size: 00000010
Sat Nov  4 23:20:15 2023 kern.info kernel: [   12.812563] 	FW built Date: 3-25-2021
Sat Nov  4 23:20:15 2023 kern.info kernel: [   12.815168] 	Number of firmware: 4
Sat Nov  4 23:20:15 2023 kern.info kernel: [   12.819004] 		Firmware[0]: ID[0] size[2659] at[0xdb0bab43]
Sat Nov  4 23:20:15 2023 kern.info kernel: [   12.822290] 		Firmware[1]: ID[1] size[4887] at[0x08cb544e]
Sat Nov  4 23:20:15 2023 kern.info kernel: [   12.827774] 		Firmware[2]: ID[2] size[2876] at[0x3acf8d95]
Sat Nov  4 23:20:15 2023 kern.info kernel: [   12.833227] 		Firmware[3]: ID[3] size[5769] at[0xd56b853c]
Sat Nov  4 23:20:15 2023 kern.info kernel: [   12.838811] vrx518_tc:tc_drv_init: Intel(R) SmartPHY DSL(VRX518) PCIe TC Driver - version 1.5.12.4
Sat Nov  4 23:20:15 2023 kern.info kernel: [   12.844171] vrx518_tc:tc_drv_init: Copyright (c) 2018 Intel Corporation.
Sat Nov  4 23:20:15 2023 kern.info kernel: [   12.866677] Lantiq (VRX) DSL CPE MEI driver, version 1.11.1, (c) 2007-2016 Lantiq Deutschland GmbH
Sat Nov  4 23:20:15 2023 kern.info kernel: [   12.866930] Found 1 PCI VRX devices,
Sat Nov  4 23:20:15 2023 kern.warn kernel: [   12.883407]
Sat Nov  4 23:20:15 2023 kern.warn kernel: [   12.883407]
Sat Nov  4 23:20:15 2023 kern.warn kernel: [   12.883407] Lantiq CPE API Driver version: DSL CPE API V4.23.1
Sat Nov  4 23:20:15 2023 kern.warn kernel: [   12.883468]
Sat Nov  4 23:20:15 2023 kern.warn kernel: [   12.883468]
Sat Nov  4 23:20:15 2023 kern.warn kernel: [   12.883468] Lantiq CPE API Driver - autoloading layout...
Sat Nov  4 23:20:15 2023 kern.warn kernel: [   12.891328]
Sat Nov  4 23:20:15 2023 kern.warn kernel: [   12.891328]
Sat Nov  4 23:20:15 2023 kern.warn kernel: [   12.891328] Lantiq CPE API Device layout: 1 devices, 1 lines, 1 channels
Sat Nov  4 23:20:15 2023 kern.warn kernel: [   12.899387]
Sat Nov  4 23:20:15 2023 kern.warn kernel: [   12.899387] Predefined debug level: 3
Sat Nov  4 23:20:15 2023 kern.warn kernel: [   12.909084]
Sat Nov  4 23:20:15 2023 kern.warn kernel: [   12.909084] ++++++++++++++++++ MEI_InternalDevOpen ++++++++++++++++++
Sat Nov  4 23:20:15 2023 kern.warn kernel: [   12.909084]
Sat Nov  4 23:20:15 2023 kern.warn kernel: [   12.914562]
Sat Nov  4 23:20:15 2023 kern.warn kernel: [   12.914562] ++++++++++++++++++ MEI_InternalDevOpen ++++++++++++++++++
Sat Nov  4 23:20:15 2023 kern.warn kernel: [   12.914562]
Sat Nov  4 23:20:15 2023 kern.info kernel: [   12.928970] Loading modules backported from Linux version v6.1.24-0-g0102425ac76b
Sat Nov  4 23:20:15 2023 kern.info kernel: [   12.932864] Backport generated by backports.git v5.15.92-1-44-gd6ea70fafd36
...
Sat Nov  4 23:20:15 2023 kern.info kernel: [   13.068206] PPP generic driver version 2.4.2
Sat Nov  4 23:20:32 2023 kern.info kernel: [   37.168866] plat_tc_request: dsl id: 0, mode: 0, tc_mode: 3, tc_idx: -1
Sat Nov  4 23:20:32 2023 kern.info kernel: [   37.169613] vrx518_tc:atm_tc_load : TC switch to ATM
Sat Nov  4 23:20:32 2023 kern.info kernel: [   37.178343] vrx518_tc:atm_tc_hw_fw_init : port	  = 0
Sat Nov  4 23:20:32 2023 kern.info kernel: [   37.179847] vrx518_tc:atm_tc_hw_fw_init : irq	  = 107
Sat Nov  4 23:20:32 2023 kern.info kernel: [   37.184859] vrx518_tc:atm_tc_hw_fw_init : membase	  = 0xd1600000
Sat Nov  4 23:20:32 2023 kern.info kernel: [   37.190214] vrx518_tc:atm_tc_hw_fw_init : phy_membase = 0x40800000
Sat Nov  4 23:20:32 2023 kern.info kernel: [   37.195890] vrx518_tc:ppe_atm_fw_hw_init : ep_id[0]qsb_en[1]
Sat Nov  4 23:20:32 2023 kern.info kernel: [   37.262490] vrx518_tc:ppe_atm_fw_hw_init : atm_wtx_queue_cfg_init
Sat Nov  4 23:20:32 2023 kern.info kernel: [   37.262884] vrx518_tc:ppe_atm_fw_hw_init : atm_wtx_port_cfg_init
Sat Nov  4 23:20:32 2023 kern.info kernel: [   37.268148] vrx518_tc:ppe_atm_fw_hw_init : atm_wrx_queue_cfg_init
Sat Nov  4 23:20:32 2023 kern.info kernel: [   37.274007] vrx518_tc:ppe_atm_fw_hw_init : atm_ds_aal5_desq_cfg_ctxt_init
Sat Nov  4 23:20:32 2023 kern.info kernel: [   37.281228] vrx518_tc:ppe_atm_fw_hw_init : atm_ds_oam_desq_cfg_ctxt_init
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.287030] vrx518_tc:ppe_atm_fw_hw_init : atm_us_qos_cfg_init
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.293599] vrx518_tc:ppe_atm_fw_hw_init : atm_us_qos_des_cfg_ctxt_init
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.312811] vrx518_tc:ppe_atm_fw_hw_init : atm_local_des_cfg_ctxt_init
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.313112] vrx518_tc:atm_local_des_cfg_ctxt_init : Configure US local descriptor
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.318973] vrx518_tc:atm_pdbram_mem_layout : PDBRAM US: 218000
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.326279] vrx518_tc:atm_local_des_cfg_ctxt_init : Configure sharing CDMA
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.331793] vrx518_tc:atm_local_des_cfg_ctxt_init : Configure sharing CDMA context
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.339214] vrx518_tc:atm_local_des_cfg_ctxt_init : Configure DS local descriptor
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.346292] vrx518_tc:atm_pdbram_mem_layout : PDBRAM DS: 228000
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.353880] vrx518_tc:atm_local_des_cfg_ctxt_init : Configure DS OAM local descriptor
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.359977] vrx518_tc:atm_pdbram_mem_layout : PDBRAM DS OAM: 234000
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.367839] vrx518_tc:atm_pdbram_mem_layout : PDBRAM DS OAM: 234000
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.373648] vrx518_tc:atm_pdbram_mem_layout : PDBRAM DS OAM: 234000
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.380255] vrx518_tc:atm_pdbram_mem_layout : PDBRAM DS OAM: 234000
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.386202] vrx518_tc:atm_pdbram_mem_layout : PDBRAM DS OAM: 234000
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.392464] vrx518_tc:atm_pdbram_mem_layout : PDBRAM DS OAM: 234000
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.398986] vrx518_tc:atm_pdbram_mem_layout : PDBRAM DS OAM: 234000
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.404902] vrx518_tc:atm_pdbram_mem_layout : PDBRAM DS OAM: 234000
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.411487] vrx518_tc:atm_pdbram_mem_layout : PDBRAM DS OAM: 234000
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.417799] vrx518_tc:atm_pdbram_mem_layout : PDBRAM DS OAM: 234000
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.423682] vrx518_tc:atm_cdma_init : Configure CDMA in sharing mode
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.430350] vrx518_tc:atm_fw_load : atm_fw_load: Firmware size[5769] ptr[d56b853c]
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.436825] Loading ATM FW ver: 3.6.5
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.443904] pp32_load: ATM load data [d56b853c][5769]
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.471267] pp32_load: invalid data
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.471623] pp32_load: invalid data
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.473903] vrx518_tc:atm_datapath_init : atm_datapath_init : ep_id[0] irq_id[107]
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.478670] vrx518_tc:atm_fw_cfg_init : ATM FW PVC init
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.485027] vrx518_tc:atm_fw_cfg_init : atm_fw_cfg_init : No PVC table
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.490494] vrx518_tc:atm_tc_hw_fw_init : ATM TC init successfully
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.497449] vrx518_tc:atm_umt_init : 	UMT period: 400, dst: 0x408500c8
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.502907] id: 0, txin(0x82834000: 128, 0x0), txout(0x82833000: 128, 0x0), rxin(0x0: 0, 0x0), rxout(0x828a0000: 1024, 0x0)
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.509694] vrx518_tc:atm_aca_init : txin: bswp: 0, hdsz:4, pd: dbase(0x2801c0), dnum(64), sz_indw(2), soc_dbase:0x82834000, soc_dnum:0x80, soc cnt addr: 0x40b21480
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.520719] vrx518_tc:atm_aca_init : txout: bswp: 0, hdsz:1, pd: dbase(0x282580), dnum(64), sz_indw(2), soc_dbase:0x82833000, soc_dnum:0x80, soc cnt addr: 0x40b21484
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.535794] vrx518_tc:atm_aca_init : rxout: bswp: 0, hdsz:4, pd: dbase(0x284400), dnum(32), sz_indw(2), soc_dbase:0x828a0000, soc_dnum:0x400, soc cnt addr: 0x40b21488
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.550441] vrx518_tc:atm_aca_init : rxin: bswp: 0, hdsz:4, pd: dbase(0x2855c0), dnum(32), sz_indw(2), soc_dbase:0x0, soc_dnum:0x0, soc cnt addr: 0x40b2148c
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.565204] vrx518_tc:atm_aca_init : txout: (stat:0x40a837d0, pd: 0x40a837d4, cnt: 0x40a837cc)
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.579190] vrx518_tc:atm_aca_init : rxout: (stat:0x40a837e8, pd: 0x40a837ec, cnt: 0x40a837e4)
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.587586] vrx518_tc:atm_aca_init : rxin: (stat:0x40a837dc, pd: 0x40a837e0, cnt: 0x40a837d8)
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.607913] vrx518 0000:01:00.0: ACA fw build 0 branch 4 major 0x20 minor 0x0016
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.608013] vrx518 0000:01:00.0: ACA fw for vrx518 supported SoC type xrx500
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.614809] vrx518 0000:01:00.0: Header size 0x0000019c fw size 0x00000904
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.621670] vrx518 0000:01:00.0: section number 14
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.628310] vrx518 0000:01:00.0: Section HIF ie_len 1
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.633016] vrx518 0000:01:00.0: Section GenRisc ie_len 2
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.638169] vrx518 0000:01:00.0: Section MAC_HT ie_len 3
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.643523] vrx518 0000:01:00.0: Section TXIN ie_len 1
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.648933] vrx518 0000:01:00.0: Sec TXIN desc base 0x00100128, des_num: 32
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.653842] vrx518 0000:01:00.0: Section TXIN_PDRING ie_len 1
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.660762] vrx518 0000:01:00.0: Sec TXIN_PDRING desc base 0x00100528, des_num: 64
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.666645] vrx518 0000:01:00.0: Section TXOUT ie_len 1
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.674076] vrx518 0000:01:00.0: Sec TXOUT desc base 0x00100728, des_num: 32
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.679247] vrx518 0000:01:00.0: Section TXOUT_PDRING ie_len 1
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.686515] vrx518 0000:01:00.0: Sec TXOUT_PDRING desc base 0x00100b28, des_num: 32
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.692123] vrx518 0000:01:00.0: Section RXIN ie_len 1
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.699694] vrx518 0000:01:00.0: Sec RXIN desc base 0x00100c28, des_num: 32
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.704896] vrx518 0000:01:00.0: Section RXIN_PDRING ie_len 1
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.711932] vrx518 0000:01:00.0: Sec RXIN_PDRING desc base 0x00101028, des_num: 32
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.717859] vrx518 0000:01:00.0: Section RXOUT ie_len 1
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.725105] vrx518 0000:01:00.0: Sec RXOUT desc base 0x00101128, des_num: 32
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.730268] vrx518 0000:01:00.0: Section RXOUT_PDRING ie_len 1
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.737546] vrx518 0000:01:00.0: Sec RXOUT_PDRING desc base 0x00101528, des_num: 256
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.743176] vrx518 0000:01:00.0: Section DMA ie_len 10
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.751132] vrx518 0000:01:00.0: dma channel 0 desc base 0x00100000
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.756020] vrx518 0000:01:00.0: dma channel 1 desc base 0x00100008
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.762208] vrx518 0000:01:00.0: dma channel 2 desc base 0x00100010
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.768454] vrx518 0000:01:00.0: dma channel 3 desc base 0x00100018
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.774671] vrx518 0000:01:00.0: dma channel 4 desc base 0x00100030
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.780947] vrx518 0000:01:00.0: dma channel 5 desc base 0x00100038
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.787196] vrx518 0000:01:00.0: dma channel 6 desc base 0x00100020
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.793432] vrx518 0000:01:00.0: dma channel 7 desc base 0x00100028
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.799803] vrx518 0000:01:00.0: dma channel 8 desc base 0x00100040
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.805934] vrx518 0000:01:00.0: dma channel 9 desc base 0x00100048
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.812211] vrx518 0000:01:00.0: Section FW_INIT ie_len 1
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.818506] vrx518 0000:01:00.0: init st size: 32, addr: 0x100060
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.823989] vrx518 0000:01:00.0: Section ACA FW ie_len 5
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.830095] vrx518 0000:01:00.0: aca txin fw offset 0x0 size 20 loc 0x50800 fw base 4205e3f5
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.835456] vrx518 0000:01:00.0: aca txout fw offset 0x14 size 4 loc 0x50900 fw base 1bb0965d
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.843936] vrx518 0000:01:00.0: aca rxin fw offset 0x18 size 4 loc 0x50a00 fw base 73a74e3f
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.852349] vrx518 0000:01:00.0: aca rxout fw offset 0x1c size 24 loc 0x50b00 fw base a7fe206d
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.860861] vrx518 0000:01:00.0: aca Genrisc fw offset 0x34 size 2256 loc 0x58000 fw base 98a9f4e6
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.869365] vrx518 0000:01:00.0: aca dma init done
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.878169] vrx518 0000:01:00.0: aca basic config done
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.883813] vrx518 0000:01:00.0: aca_hif_param_init
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.888066] vrx518 0000:01:00.0: aca txin init done
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.892813] vrx518 0000:01:00.0: aca txout init done
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.897700] vrx518 0000:01:00.0: aca rxout init done
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.902898] vrx518 0000:01:00.0: aca rxin init done
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.907892] vrx518 0000:01:00.0: init_addr: 100060
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.912443] vrx518 0000:01:00.0: aca_hif_param_init_done
Sat Nov  4 23:20:33 2023 kern.debug kernel: [   37.917355] vrx518 0000:01:00.0: aca mdm init done
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.922774] vrx518 0000:01:00.0: aca init done
Sat Nov  4 23:20:33 2023 kern.err kernel: [   37.927451] Sent TC multicast message Fail!
Sat Nov  4 23:20:33 2023 kern.info kernel: [   37.931785] vrx518_tc:atm_tc_load : ATM TC Loaded
Sat Nov  4 23:20:35 2023 local2.notice br2684ctl[2066]: Interface "dsl0" created sucessfully
Sat Nov  4 23:20:35 2023 local2.notice br2684ctl[2066]: Communicating over ATM 0.0.35, encapsulation: VC mux
Sat Nov  4 23:20:35 2023 local2.err br2684ctl[2066]: setsockopt SO_ATMQOS 22
Sat Nov  4 23:20:35 2023 local2.err br2684ctl[2066]: Fatal: failed to connect on socket; File descriptor in bad state
Sat Nov  4 23:20:46 2023 kern.info kernel: [   50.415165] vrx518_tc:atm_irq_handler : Disable TTHA
Sat Nov  4 23:20:59 2023 kern.info kernel: [   64.182858] plat_tc_request: dsl id: 0, mode: 0, tc_mode: 0, tc_idx: 0
Sat Nov  4 23:20:59 2023 kern.info kernel: [   64.183251] vrx518_tc:atm_framer_requst_en : Enable TTHA!
Sat Nov  4 23:21:13 2023 kern.info kernel: [   77.758562] vrx518_tc:atm_showtime_enter : ATM Showtime: Enter[0]
Sat Nov  4 23:21:13 2023 kern.info kernel: [   77.758684] vrx518_tc:atm_showtime_enter : ATM Showtime: max rate[2688] args[0 2688]
Sat Nov  4 23:21:13 2023 kern.info kernel: [   77.763730] vrx518_tc:atm_showtime_enter : ATM Showtime: max rate[2688] args[2688 2688]
Sat Nov  4 23:21:13 2023 kern.info kernel: [   77.771708] vrx518_tc:atm_showtime_enter : ATM line[0]:enter showtime, cell rate: 0 - 2688, 1 - 2688

AFAIK ADSL is pretty much untested on the VRX518 as nobody seems to still have such a line. I'm tagging some of the more knowledgable people: @janh @moeller0 @sch-m

Just to be sure here:

  • what ISP are you subscribed to?
    • do they need VLAN tagging (many/ most do these days)?
  • ADSL or VDSL?
    (just asking, to make this explicit)

As already mentioned, the ATM support in the DSL driver is untested (at least no one reported trying it so far), and might be broken.

What stands out is obviously the File descriptor in bad state error. I wonder if it is an issue that br2684ctl starts before the line has reached showtime state. Do you have a log of the working connection on the TD-W8970 for comparison?

Maybe you could also try if restarting br2684ctl manually helps. I assume this would be possible using /etc/init.d/br2684ctl restart.

From the output of /etc/init.d/dsl_control dslstat, it is ADSL2+.

1 Like

I tried to run br2684ctl manually but unfortunatelly the same error occurred even if the vrx518_tc was in showtime state.

br2684ctl: Interface "dsl0" created sucessfully
br2684ctl: Communicating over ATM 0.0.35, encapsulation: VC mux
br2684ctl: setsockopt SO_ATMQOS 22
br2684ctl: Fatal: failed to connect on socket; File descriptor in bad state

Pulled openwrt 23.05.0 release and br2684ctl.c source code

    if ((fd = socket(PF_ATMPVC, SOCK_DGRAM, ATM_AAL5)) < 0)
      syslog(LOG_ERR,"failed to create socket %d, reason: %s", 
	     errno,strerror(errno));

    if (setsockopt(fd, SOL_ATM, SO_ATMQOS, &qos, sizeof(qos)) < 0)
      syslog(LOG_ERR,"setsockopt SO_ATMQOS %d", errno);

    err = connect(fd, (struct sockaddr*)&addr, sizeof(struct sockaddr_atmpvc));
    
    if (err < 0)
      fatal("failed to connect on socket", errno);

This looks like PF_ATMPVC socket connection error.

Tools (atmdump, aread) from linux-atm-2.5.2 build folder always shows identical issue @ setsockopt(fd, SOL_ATM, SO_ATMQOS, &qos, sizeof(qos))

setsockopt SO_ATMQOS: Invalid argument
root@FritzBox:~# ./aread 0.0.35
setsockopt SO_ATMQOS: Invalid argument
root@FritzBox:~# ./atmdump 0.0.35
setsockopt SO_ATMQOS: Invalid argument
root@FritzBox:~# ifconfig dsl0
dsl0      Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

I'm going to build new atm.ko driver with debug information and maybe this will give some hints.

Newly compiled atm.ko driver crashes just after starting command
br2684ctl -c0 -e1 -p1 -a 0.0.35

IMO that issue could be in mentioned driver.
I look forward for any ideas .
Thank you

[   37.741867] vrx518_tc:atm_tc_load : ATM TC Loaded
[   39.515255] vcc_sock_destruct: wmem leakage (16384 bytes) detected.
[   39.516660] 8<--- cut here ---
[   39.520387] Unable to handle kernel NULL pointer dereference at virtual address 00000808
[   39.523533] pgd = 76d9a7f9
[   39.531832] [00000808] *pgd=00000000
[   39.534282] Internal error: Oops: 17 [#1] SMP ARM
[   39.538017] Modules linked in: pppoe ppp_async nft_fib_inet nf_flow_table_ipv6 nf_flow_table_ipv4 nf_flow_table_inet ath10k_pci ath10k_core ath pppox ppp_generic nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_redir nft_quota nft_objref nft_numgen nft_nat nft_masq nft_log nft_limit nft_hash nft_flow_offload nft_fib_ipv6 nft_fib_ipv4 nft_fib nft_ct nft_counter nft_chain_nat nf_tables nf_nat nf_flow_table nf_conntrack mac80211 cfg80211 slhc nfnetlink nf_reject_ipv6 nf_reject_ipv4 nf_log_syslog nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c hwmon crc_ccitt compat clip drv_dsl_cpe_api drv_mei_cpe br2684 vrx518_tc atm vrx518 drv_ifxos sha512_arm md5 ghash_arm_ce cmac leds_gpio xhci_plat_hcd xhci_pci xhci_hcd dwc3 dwc3_qcom gpio_button_hotplug crc32c_generic
[   39.587567] CPU: 0 PID: 2057 Comm: br2684ctl Not tainted 5.15.134 #0
[   39.609795] Hardware name: Generic DT based system
[   39.616303] PC is at 0xc080c558
[   39.620900] LR is at 0xc080c9e0
[   39.623938] pc : [<c080c558>]    lr : [<c080c9e0>]    psr: 00000013
[   39.627068] sp : c3515ec4  ip : c3515ec0  fp : 00000000
[   39.633316] r10: 000000f8  r9 : 00000000  r8 : c101c310
[   39.638524] r7 : c36af8a0  r6 : c36af800  r5 : 00000800  r4 : c36af800
[   39.643735] r3 : 00000000  r2 : c3514000  r1 : 00000800  r0 : c36af800
[   39.650333] Flags: nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[   39.656846] Control: 10c5387d  Table: 8305006a  DAC: 00000051
[   39.664047] Register r0 information: slab kmalloc-1k start c36af800 pointer offset 0 size 1024
[   39.669781] Register r1 information: non-paged memory
[   39.678281] Register r2 information: non-slab/vmalloc memory
[   39.683404] Register r3 information: NULL pointer
[   39.689132] Register r4 information: slab kmalloc-1k start c36af800 pointer offset 0 size 1024
[   39.693738] Register r5 information: non-paged memory
[   39.702240] Register r6 information: slab kmalloc-1k start c36af800 pointer offset 0 size 1024
[   39.707367] Register r7 information: slab kmalloc-1k start c36af800 pointer offset 160 size 1024
[   39.715874] Register r8 information: slab filp start c101c300 pointer offset 16
[   39.724812] Register r9 information: NULL pointer
[   39.731840] Register r10 information: non-paged memory
[   39.736701] Register r11 information: NULL pointer
[   39.741735] Register r12 information: non-slab/vmalloc memory
[   39.746512] Process br2684ctl (pid: 2057, stack limit = 0xa0abe7ff)

Have you tried decoding the message using the decode_stacktrace.sh script (it is in the scripts folder in the kernel build directory)? The script should be able to find out on which line in the code the null pointer dereference occured.

If there is an issue in the atm.ko kernel module, then it is likely related to either this or this patch. Otherwise the issue is probably in the vrx518_tc driver.

1 Like

Have you done the step of installing and linking the non-open source drivers that is detailed in the Wiki?

I use the 7530, admittedly on vDSL, with little trouble.

Apologies if this is obvious but thought worth asking.

Yes, vrx518_tc driver reports atm_showtime_enter and /etc/init.d/dsl_control dslstat shows stable connection (log in post #1)

vrx518_tc:atm_showtime_enter : ATM line[0]:enter showtime, cell rate: 0 - 2688, 1 - 2688

Sorry for confusion with the crash - after sysupgrade based on fresh compilation I was able to run atm.ko with small mods and I see potential problem.

pvc_bind doesn't start vcc_connect because there is no ATM_VF_HASQOS bit set .

vcc_setsockopt should set optname = SO_ATMQOS but it doesn't

[   78.334013] vrx518_tc:atm_showtime_enter : ATM line[0]:enter showtime, cell rate: 0 - 2688, 1 - 2688
[   78.341668] atm:atm_dev_signal_change: atm_dev_signal_change signal=2 dev=9aae226b number=0 dev->signal=1
[   78.351036] br2684:atm_dev_event: event=2 dev=9aae226b
[  122.067633] br2684:br2684_create:
[  122.067695] br2684:br2684_create: registered netdev nas0
[  122.071307] atm:vcc_setsockopt: vcc_setsockopt unknown optname !
[  122.075700] pvc_bind ! ATM_VF_HASQOS
br2684ctl[2158]: Interface "nas0" created sucessfully
br2684ctl[2158]: Communicating over ATM 0.0.35, encapsulation: VC mux
br2684ctl[2158]: setsockopt SO_ATMQOS 22
br2684ctl[2158]: Fatal: failed to connect on socket; File descriptor in bad state
[   88.521920] atm:vcc_setsockopt: vcc_setsockopt unknown optname 42020054 != 4202006c
[   88.526932] pvc_bind ! ATM_VF_HASQOS

SO_ATMQOS @ arm.ko = 4202006c
SO_ATMQOS @ br2684ctl = 42020054

This looks like struct atm_qos has different size in driver and different in br2684ctl tool.

1 Like

Thank you for the link .
This patch must be responsible for the issue as it changes struct atm_trafprm that is part of atm_qos

1 Like

I just found that basically the same issue existed for the older modems as well.

Back then, the driver was changed so it doesn't need the change to the atm_trafprm struct: 45b52d4581 ("kernel: remove lantiq specific ATM API hacks and their kernel space users (fixes #20523)")

It would probably make sense to try the same with the vrx518_tc driver.

1 Like

I see a lot of code in vrx518_tc/atm_tc.c related to new members of struct atm_trafprm so the 998-lantiq-atm-hacks.patch cannot be removed.
Problem exists in include path of linux-atm-2.5.2 project that do not see patched version of header.
#include <linux/atm.h>

EDIT:
compiler reads header from
staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/include/linux/atm.h
instead of
build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-ipq40xx_generic/linux-5.15.134/include/linux

Unfortunately after fixing issue with atm.h header new br2684ctl tool crashes driver vrx518_tc @ atm_showtime_enter

root@OpenWrt:~# ./br2684ctl -c0 -e1 -p1 -a 0.0.35
[  112.000223] br2684:br2684_create:
[  112.000286] br2684:br2684_create: registered netdev nas0
[  112.004028] atm:vcc_connect: (vpi 0, vci 35)
[  112.008087] atm:vcc_connect: (TX: cl 1,bw 0-0,sdu 1524; RX: cl 1,bw 0-0,sdu 1524,AAL 5)
[  112.012270] atm:__vcc_connect: VCC 0.35, AAL 5
[  112.020071] atm:__vcc_connect:   TX: 1, PCR 0..0, SDU 1524
[  112.024503] atm:__vcc_connect:   RX: 1, PCR 0..0, SDU 1524
[  112.030050] vrx518_tc:ppe_open : ppe_open
[  112.035440] vrx518_tc:ppe_open : PVC (0.35)
[  112.039570] vrx518_tc:ppe_open : ppe_open(0.35): conn = 0, ep_id: 0
br2684ctl[2163]: Interface "nas0" created sucessfully
br2684ctl[2163]: Communicating over ATM 0.0.35, encapsulation: VC mux[  112.060750] br2684:br2684_regvcc: vcc=e116a9eb, encaps=0, brvcc=503a8262

[  112.068756] vrx518_tc:mpoa_setup_sync : sync: conn: 0, vpi: 0, vci: 35, mpoa_type: 0, mpoa_mode: 0
[  112.068839] 8<--- cut here ---
[  112.076746] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[  112.079747] pgd = a1f8904f
[  112.088005] [00000000] *pgd=826b6835, *pte=00000000, *ppte=00000000
[  112.090514] Internal error: Oops: 80000007 [#1] SMP ARM
[  112.096669] Modules linked in: pppoe ppp_async nft_fib_inet nf_flow_table_ipv6 nf_flow_table_ipv4 nf_flow_table_inet ath10k_pci ath10k_core ath pppox ppp_generic nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_redir nft_quota nft_objref nft_numgen nft_nat nft_masq nft_log nft_limit nft_hash nft_flow_offload nft_fib_ipv6 nft_fib_ipv4 nft_fib nft_ct nft_counter nft_chain_nat nf_tables nf_nat nf_flow_table nf_conntrack mac80211 cfg80211 slhc nfnetlink nf_reject_ipv6 nf_reject_ipv4 nf_log_syslog nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c hwmon crc_ccitt compat clip drv_dsl_cpe_api drv_mei_cpe br2684 vrx518_tc atm vrx518 drv_ifxos sha512_arm md5 ghash_arm_ce cmac leds_gpio xhci_plat_hcd xhci_pci xhci_hcd dwc3 dwc3_qcom gpio_button_hotplug crc32c_generic
[  112.147007] CPU: 2 PID: 2163 Comm: br2684ctl Not tainted 5.15.134 #0
[  112.169240] Hardware name: Generic DT based system
[  112.175749] PC is at 0x0
[  112.180344] LR is at atm_showtime_enter+0x3d8/0x9d8 vrx518_tc]
[  112.183041] pc : lr : psr: a0000013
 
[  112.188684] sp : c25b9dd0  ip : 00000000  fp : 00000000
[  112.194932] r10: fffffdfd  r9 : bf0901bc  r8 : 00000000
[  112.200139] r7 : c274e800  r6 : c24fc000  r5 : 00000000  r4 : 00000000
[  112.205351] r3 : 00000000  r2 : c24fc180  r1 : c274e800  r0 : c274e800
[  112.211949] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[  112.218463] Control: 10c5387d  Table: 8321006a  DAC: 00000051
[  112.225662] Register r0 information: slab kmalloc-cg-2k start c274e800 pointer offset 0 size 2048
[  112.231397] Register r1 information: slab kmalloc-cg-2k start c274e800 pointer offset 0 size 2048
[  112.240251] Register r2 information: slab kmalloc-8k start c24fc000 pointer offset 384 size 8192
[  112.249105] Register r3 information: NULL pointer
[  112.257952] Register r4 information: NULL pointer
[  112.262552] Register r5 information: NULL pointer
[  112.267239] Register r6 information: slab kmalloc-8k start c24fc000 pointer offset 0 size 8192
[  112.271934] Register r7 information: slab kmalloc-cg-2k start c274e800 pointer offset 0 size 2048
[  112.280441] Register r8 information: NULL pointer
[  112.289375] Register r9 information: 12-page vmalloc region starting at 0xbf087000 allocated at load_module (kernel/module.c:3445 kernel/module.c:3625 kernel/module.c:4028) 
[  112.294073] Register r10 information: non-paged memory
[  112.305002] Register r11 information: NULL pointer
[  112.309948] Register r12 information: NULL pointer
[  112.314723] Process br2684ctl (pid: 2163, stack limit = 0x1f7dd8d8)
[  112.319499] Stack: (0xc25b9dd0 to 0xc25ba000)
[  112.325666] 9dc0:                                     00000023 00000000 00000000 c24fc000
[  112.330188] 9de0: 00000000 00000000 c274e800 fffffdfd 00000000 c036e500 c25b9e1c 00000000
[  112.338348] 9e00: c3cfd580 c036b2fc c332a000 c25b9e1c c24fc000 bf0a3548 00000000 c24fd1cc
[  112.346507] 9e20: c24fc000 83aed8b8 c274e800 00000000 c3cfd580 c332a000 c274e800 bf0a347c
[  112.354667] 9e40: bf0901bc fffffdfd 00000000 bf0cf7f8 c3cfd580 60000013 00000002 00000002
[  112.362826] 9e60: 3073616e 00011600 be8cfce8 00000000 00000000 00000000 00000000 00000000
[  112.370987] 9e80: 00000000 00000006 00013034 00000000 00000000 83aed8b8 bf0d2010 400261f2
[  112.379146] 9ea0: bf0901a8 c1700c80 be8cfcc0 bf089648 c1217108 cfd98430 400261f2 be8cfcc0
[  112.387305] 9ec0: c0dcea80 be8cfcc0 c30453c0 00000005 c1700d00 c07a7c40 00000000 c1217080
[  112.395465] 9ee0: cfd983c0 ffffe000 c1099900 c0c453c0 00000000 c1099cd4 c25b9f34 c0958384
[  112.403626] 9f00: 400261f2 83aed8b8 00000002 400261f2 c30453c0 00000002 be8cfcc0 c0495bf8
[  112.411785] 9f20: c25b8000 c0300284 c25b8000 0000011b c25b9f44 c095872c c25b8000 c25b9fb0
[  112.419945] 9f40: 00000000 c0308f58 00000000 0000006c c0300284 bf0876ac c1700c80 00000000
[  112.428104] 9f60: 00000126 c07a896c 00000000 be8cfd10 00000000 0000006c 4202006c 83aed8b8
[  112.436264] 9f80: c25b9f8c 00000005 00000001 00000002 00000036 c0300284 c25b8000 00000036
[  112.444424] 9fa0: 00000000 c0300040 00000005 00000001 00000005 400261f2 be8cfcc0 be8cfc98
[  112.452583] 9fc0: 00000005 00000001 00000002 00000036 be8cfcc0 00000005 00000000 00000000
[  112.460743] 9fe0: 00012f70 be8cfb68 00011410 b6f3173c 80000010 00000005 00000000 00000000
[  112.468921] (atm_showtime_enter [vrx518_tc]) from (br2684_ioctl+0x4a0/0x690 br2684])
[  112.477068] (br2684_ioctl [br2684]) from (vcc_ioctl+0x1e8/0x4cc atm])
[  112.486961] (vcc_ioctl [atm]) from sock_ioctl (net/socket.c:1127 net/socket.c:1238) 
[  112.495982] (sock_ioctl) from sys_ioctl (fs/ioctl.c:52 fs/ioctl.c:834 fs/ioctl.c:872 fs/ioctl.c:860) 
[  112.503704] (sys_ioctl) from ret_fast_syscall (arch/arm/kernel/entry-common.S:51) 
[  112.510820] Exception stack(0xc25b9fa8 to 0xc25b9ff0)
[  112.518464] 9fa0:                   00000005 00000001 00000005 400261f2 be8cfcc0 be8cfc98
[  112.523590] 9fc0: 00000005 00000001 00000002 00000036 be8cfcc0 00000005 00000000 00000000
[  112.531747] 9fe0: 00012f70 be8cfb68 00011410 b6f3173c
[ 112.539906] Code: bad PC value

You might want to try this patch

It won't help in this case, ATM not working is a separate issue.

1 Like