[Letux-kernel] two accelerometers + iio_bridge considered harmful
Andreas Kemnade
andreas at kemnade.info
Tue Jul 31 19:16:53 CEST 2018
Hi,
On Sun, 29 Jul 2018 08:48:50 +0200
"H. Nikolaus Schaller" <hns at goldelico.com> wrote:
> Hi,
>
> > Am 28.07.2018 um 22:59 schrieb Andreas Kemnade <andreas at kemnade.info>:
> >
> > Hi,
> >
> > I found out something strange.
> > At least in my gta04a5, there are two accelerometers:
> > the bmc150 and the bno055.
>
> Yes.
>
> >
> > Disabling the bmc150-accel-i2c.ko module
> > makes the input bridge work reliably, enabling it again, lets it crash
> > again.
> >
> > Are both populated on every gta04a5?
>
> Yes. We got the BNO055 as a promotion by Bosch Sensortec - but did initially
> have no driver.
>
> We got a driver as a quick hack without warranty from its author.
>
> >
> > And then there is another bug:
> > rmmod bno055
> >
> > makes the bridge disappear
> > modprobe bno055
> >
> > does not bring it back
>
> That is probably easy to explain: iio_device_unregister_inputbridge()
> does not reduce the number of active channels and therefore a new
> modprobe thinks it already knows 3 channels.
>
> The input-bridge driver collects the first three accelerometer
> values as X, Y, Z - with a slighty weak assumption that they
> belong to the same source. This might race if two accelerometer
> drivers probe concurrently. Then, channels are mixed up but
> it should not fail.
>
> Maybe you can enable
>
> printk("iio_device_register_inputbridge(): found an accelerometer\n");
>
> printk("iio_device_register_inputbridge(): process channel %d\n", channel);
>
> and add a printk to iio_device_unregister_inputbridge
>
ok, some more printks. What I see now is that other iio actions are
starting *during* a hexdump. So I think this must be totally
thread-safe or funny things might happen. Race conditions at every
corner. Here is the boot without
lib/udev/accelerometer
and then an xxd run. 4.18-rc6 with attached diff
[ 4.423736] random: udevd: uninitialized urandom read (16 bytes read)
[ 5.044067] omapdss: unknown parameter 'def_disp' ignored
[ 5.050811] omapdss_dss 48050000.dss: 48050000.dss supply vdda_video not found, using dummy regulator
[ 5.145568] DSS: OMAP DSS rev 2.0
[ 5.177764] omapdss_dss 48050000.dss: bound 48050400.dispc (ops dispc_component_ops [omapdss])
[ 5.252716] omapdss_dss 48050000.dss: bound 48050c00.encoder (ops venc_component_ops [omapdss])
[ 5.316680] gnss: GNSS driver registered with major 244
[ 5.436279] twl4030_madc 48070000.i2c:twl at 48:madc: 48070000.i2c:twl at 48:madc supply vusb3v1 not found, using dummy regulator
[ 5.510070] input: twl4030_pwrbutton as /devices/platform/68000000.ocp/48070000.i2c/i2c-0/0-0048/48070000.i2c:twl at 48:pwrbutton/input/input3
[ 5.530090] input: twl4030:vibrator as /devices/platform/68000000.ocp/48070000.i2c/i2c-0/0-0048/48070000.i2c:twl at 48:audio/twl4030-vibra/input/input4
[ 5.716949] twl4030_gpio twl4030-gpio: can't dispatch IRQs from modules
[ 5.801330] media: Linux media interface: v0.10
[ 5.814392] input: TSC2007 Touchscreen as /devices/platform/68000000.ocp/48072000.i2c/i2c-1/1-0048/input/input5
[ 5.831542] bno055 1-0029: software revision id 0311
[ 5.862823] twl4030_usb 48070000.i2c:twl at 48:twl4030-usb: Initialized TWL4030 USB module
[ 5.879760] iio_device_register_inputbridge(): found an accelerometer
[ 5.912475] iio_device_register_inputbridge(): found an accelerometer
[ 5.919250] iio_device_register_inputbridge(): => (ptrval)
[ 5.946960] iio_device_register_inputbridge(): process channel 0
[ 5.973327] bmp280 1-0076: 1-0076 supply vddd not found, using dummy regulator
[ 5.980987] bmp280 1-0076: 1-0076 supply vdda not found, using dummy regulator
[ 5.993652] videodev: Linux video capture interface: v2.00
[ 6.036071] iio_device_register_inputbridge(): found an accelerometer
[ 6.049468] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
[ 6.057556] input: accelerometer-iio-input-bridge as /devices/virtual/input/input6
[ 6.075897] omap_hdq 480b2000.1w: OMAP HDQ Hardware Rev 0.5. Driver in Interrupt mode
[ 6.084869] iio_device_register_inputbridge(): process channel 1
[ 6.107910] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
[ 6.128845] iio delayed work at bf06b400
[ 6.150543] iio_device_register_inputbridge(): found an accelerometer
[ 6.169342] iio delayed_work:e0 ff ff ff 04 b4 06 bf 04 b4 06 bf 64 86 06 bf
[ 6.192474] w1_master_driver w1_bus_master1: Attaching one wire slave 01.000000000000 crc 3d
[ 6.226684] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.18
[ 6.241210] bq27xxx_battery_setup
[ 6.249359] bq27xxx_battery_setup: dm_regs= (null)
[ 6.260498] (NULL device *): hwmon: 'bq27000-battery' is not a valid name attribute, please fix
[ 6.276550] iio_device_register_inputbridge(): process channel 2
[ 6.283447] bq27xxx_battery_settings
[ 6.287322] bq27xxx_battery_settings: power_supply_get_battery_info failed ret=-1088540652
[ 6.316467] iio delayed_work:00 00 00 00 00 00 00 00 00 00 00 00 38 8e 14 c0
[ 6.362701] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 6.390228] iio delayed_work:00 00 20 00 00 00 00 00 00 00 00 00
[ 6.419860] usb usb1: Product: MUSB HDRC host driver
[ 6.430450] iio_device_register_inputbridge(): process channel 3
[ 6.451141] usb usb1: Manufacturer: Linux 4.18.0-rc6-letux+ musb-hcd
[ 6.476165] iio_device_register_inputbridge(): found an accelerometer
[ 6.495971] usb usb1: SerialNumber: musb-hdrc.0.auto
[ 6.507476] iio_device_register_inputbridge(): found an accelerometer
[ 6.526947] hub 1-0:1.0: USB hub found
[ 6.541412] hub 1-0:1.0: 1 port detected
[ 6.910675] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[ 7.059844] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[ 7.089385] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[ 7.130615] twl4030_bci 48070000.i2c:twl at 48:bci: battery temperature out of range
[ 7.143554] (NULL device *): hwmon: 'gta04-battery' is not a valid name attribute, please fix
[ 7.173950] twl4030_bci 48070000.i2c:twl at 48:bci: battery temperature out of range
[ 7.186218] wwan_on_off_init: wwan_on_off_init
[ 7.191375] wwan_on_off_probe: wwan_on_off_probe()
[ 7.250823] pps_core: LinuxPPS API ver. 1 registered
[ 7.284362] iio_charge:217
[ 7.313903] wwan_on_off_probe: onoff = (ptrval) indicator = (ptrval) -299212784 usb_phy = 1074200851
[ 7.325073] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti at linux.it>
[ 7.373901] twl4030_voice_set_tristate codec=(ptrval) 1
[ 7.388641] wwan_on_off_probe: wwan_on_off_probe() wwan=(ptrval)
[ 7.396057] TPS Voice IF is tristated
[ 7.410064] pps pps0: new PPS source pps.-1
[ 7.427093] omap-twl4030 sound: twl4030-hifi <-> 49022000.mcbsp mapping ok
[ 7.437408] wwan_on_off_is_powered_on: gpio value = 1
[ 7.445678] pps pps0: Registered IRQ 165 as PPS source
[ 7.481170] wwan_on_off_is_powered_on: return 'true'
[ 7.493041] asoc-simple-card sound_telephony: gtm601 <-> 49026000.mcbsp mapping ok
[ 7.503326] wwan_on_off_rfkill_set_block: blocked: 0
[ 7.508514] wwan_on_off_set_power:on = 1
[ 7.590606] wwan_on_off_is_powered_on: gpio value = 1
[ 7.622344] wwan_on_off_is_powered_on: return 'true'
[ 7.661895] wwan_on_off_set_power: state 1
[ 7.683929] wwan_on_off_set_power: done
[ 7.713317] wwan_on_off_probe: successfully probed
[ 8.267974] omapdrm omapdrm.0: DMM not available, disable DMM support
[ 8.324554] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 8.370239] [drm] No driver support for vblank timestamp query.
[ 8.377105] omapdrm omapdrm.0: Tiled buffers require DMM
[ 8.419952] Console: switching to colour frame buffer device 60x40
[ 8.525726] omapdrm omapdrm.0: fb0: omapdrm frame buffer device
[ 8.594787] [drm] Initialized omapdrm 1.0.0 20110917 for omapdrm.0 on minor 0
[ 8.620971] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 8.680450] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 8.744567] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 8.762420] cfg80211: failed to load regulatory.db
[ 9.246276] wlcore: ERROR ti-connectivity/wl18xx-conf.bin configuration binary size is wrong, expected 1229 got 1221
[ 9.268493] wlcore: WARNING falling back to default config
[ 9.674865] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
[ 9.684692] wlcore: WARNING Detected unconfigured mac address in nvs, derive from fuse instead.
[ 9.695556] wlcore: WARNING This default nvs file can be removed from the file system
[ 9.749664] wlcore: loaded
[ 10.069641] voice ctl route: 0
[ 11.905944] EXT4-fs (mmcblk0p6): re-mounted. Opts: (null)
[ 12.147460] EXT4-fs (mmcblk0p6): re-mounted. Opts: errors=remount-ro
[ 13.302307] device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) initialised: dm-devel at redhat.com
[ 13.912261] random: crng init done
[ 14.117950] using random self ethernet address
[ 14.124084] using random host ethernet address
[ 14.132873] usb0: HOST MAC 96:e4:f4:53:9e:03
[ 14.142364] usb0: MAC 3e:37:83:48:5b:90
[ 14.146453] using random self ethernet address
[ 14.151092] using random host ethernet address
[ 14.168975] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
[ 14.184906] g_ether gadget: g_ether ready
[ 14.550933] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
[ 14.561248] UBIFS error (pid: 1858): cannot open "ubi0:gta04-rootfs", error -19
[ 14.607238] EXT4-fs (mmcblk0p7): mounted filesystem with ordered data mode. Opts: (null)
[ 14.669708] g_ether gadget: high-speed config #1: CDC Ethernet (ECM)
[ 16.586517] NET: Registered protocol family 10
[ 16.610565] Segment Routing with IPv6
[ 17.190185] voice ctl route: 0
[ 19.964843] Bluetooth: Core ver 2.22
[ 19.976745] NET: Registered protocol family 31
[ 19.981445] Bluetooth: HCI device and connection manager initialized
[ 19.999603] Bluetooth: HCI socket layer initialized
[ 20.011932] Bluetooth: L2CAP socket layer initialized
[ 20.022521] Bluetooth: SCO socket layer initialized
[ 20.109497] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 20.121154] Bluetooth: BNEP socket layer initialized
[ 24.307434] systemd-logind[2709]: New seat seat0.
[ 24.360961] systemd-logind[2709]: Failed to start user service: Unknown unit: user at 0.service
[ 24.394012] systemd-logind[2709]: New session 1 of user root.
[ 189.788665] iio delayed work at bf06b400
[ 189.793243] iio delayed_work open:00 5c 7f ee 64 46 13 bf 00 38 7f ee 64 86 06 bf
[ 189.801208] iio delayed_work open:00 00 00 00 00 00 00 00 00 00 00 00 38 8e 14 c0
[ 189.811187] iio delayed_work open:00 00 20 00 00 00 00 00 00 00 00 00
[ 189.818603] ------------[ cut here ]------------
[ 189.823486] WARNING: CPU: 0 PID: 4680 at ../kernel/workqueue.c:1513 __queue_delayed_work+0xd8/0x140
[ 189.832977] Modules linked in: bnep bluetooth ecdh_generic ipv6 usb_f_ecm g_ether usb_f_rndis u_ether libcomposite configfs dm_crypt dm_mod dax arc4 wl18xx wlcore mac80211 cfg80211 omapdrm drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm drm_panel_orientation_quirks pps_gpio panel_tpo_td028ttec1 snd_soc_simple_card snd_soc_simple_card_utils snd_soc_omap_twl4030 pps_core encoder_opa362 wwan_on_off generic_adc_battery snd_soc_gtm601 pwm_omap_dmtimer connector_analog_tv pwm_bl wlcore_sdio bq27xxx_battery_hdq bq27xxx_battery bmp280_spi ov9655 omap_hdq v4l2_fwnode v4l2_common omap2430 snd_soc_omap_mcbsp bmp280_i2c bmp280 snd_soc_sdma videodev bmc150_accel_i2c at24 bmc150_magn_i2c bmc150_accel_core leds_tca6507 bmc150_magn tsc2007 industrialio_triggered_buffer media bno055 kfifo_buf phy_twl4030_usb
[ 189.908050] gpio_twl4030 musb_hdrc twl4030_vibra snd_soc_twl4030 twl4030_pwrbutton twl4030_madc twl4030_charger gnss_w2sg0004 industrialio w2cbw003_bluetooth gnss omapdss omapdss_base cec
[ 189.925628] CPU: 0 PID: 4680 Comm: xxd Not tainted 4.18.0-rc6-letux+ #10
[ 189.932647] Hardware name: Generic OMAP36xx (Flattened Device Tree)
[ 189.939208] [<c0111024>] (unwind_backtrace) from [<c010c610>] (show_stack+0x10/0x14)
[ 189.947326] [<c010c610>] (show_stack) from [<c077e38c>] (dump_stack+0x7c/0x98)
[ 189.954895] [<c077e38c>] (dump_stack) from [<c0132194>] (__warn+0xdc/0xfc)
[ 189.962097] [<c0132194>] (__warn) from [<c01322c4>] (warn_slowpath_null+0x38/0x44)
[ 189.970001] [<c01322c4>] (warn_slowpath_null) from [<c0148f90>] (__queue_delayed_work+0xd8/0x140)
[ 189.979278] [<c0148f90>] (__queue_delayed_work) from [<c0149040>] (queue_delayed_work_on+0x48/0x54)
[ 189.988800] [<c0149040>] (queue_delayed_work_on) from [<bf068644>] (accel_open+0x60/0x80 [industrialio])
[ 189.998779] [<bf068644>] (accel_open [industrialio]) from [<c05e5da0>] (input_open_device+0x78/0xa8)
[ 190.008331] [<c05e5da0>] (input_open_device) from [<c05ee604>] (evdev_open+0xf4/0x168)
[ 190.016601] [<c05ee604>] (evdev_open) from [<c0258710>] (chrdev_open+0x150/0x180)
[ 190.024444] [<c0258710>] (chrdev_open) from [<c02510c8>] (do_dentry_open+0x1fc/0x328)
[ 190.032623] [<c02510c8>] (do_dentry_open) from [<c02639bc>] (path_openat+0xdb8/0xf7c)
[ 190.040802] [<c02639bc>] (path_openat) from [<c0263bbc>] (do_filp_open+0x3c/0x9c)
[ 190.048645] [<c0263bbc>] (do_filp_open) from [<c02524ec>] (do_sys_open+0xf4/0x1d4)
[ 190.056549] [<c02524ec>] (do_sys_open) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[ 190.064636] Exception stack(0xed3dbfa8 to 0xed3dbff0)
[ 190.069915] bfa0: 0048b008 00000000 be921e8c 00000000 000001b6 00000000
[ 190.078491] bfc0: 0048b008 00000000 00000008 00000005 00478415 00478414 0047839c 00000000
[ 190.087036] bfe0: 00000000 be921b44 b6ec4269 b6efeb26
[ 190.092315] ---[ end trace 0f4cdc5c30504c3a ]---
[ 190.097137] ------------[ cut here ]------------
[ 190.101959] WARNING: CPU: 0 PID: 4680 at ../kernel/workqueue.c:1442 __queue_work+0x2dc/0x480
[ 190.110778] Modules linked in: bnep bluetooth ecdh_generic ipv6 usb_f_ecm g_ether usb_f_rndis u_ether libcomposite configfs dm_crypt dm_mod dax arc4 wl18xx wlcore mac80211 cfg80211 omapdrm drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm drm_panel_orientation_quirks pps_gpio panel_tpo_td028ttec1 snd_soc_simple_card snd_soc_simple_card_utils snd_soc_omap_twl4030 pps_core encoder_opa362 wwan_on_off generic_adc_battery snd_soc_gtm601 pwm_omap_dmtimer connector_analog_tv pwm_bl wlcore_sdio bq27xxx_battery_hdq bq27xxx_battery bmp280_spi ov9655 omap_hdq v4l2_fwnode v4l2_common omap2430 snd_soc_omap_mcbsp bmp280_i2c bmp280 snd_soc_sdma videodev bmc150_accel_i2c at24 bmc150_magn_i2c bmc150_accel_core leds_tca6507 bmc150_magn tsc2007 industrialio_triggered_buffer media bno055 kfifo_buf phy_twl4030_usb
[ 190.185760] gpio_twl4030 musb_hdrc twl4030_vibra snd_soc_twl4030 twl4030_pwrbutton twl4030_madc twl4030_charger gnss_w2sg0004 industrialio w2cbw003_bluetooth gnss omapdss omapdss_base cec
[ 190.203338] CPU: 0 PID: 4680 Comm: xxd Tainted: G W 4.18.0-rc6-letux+ #10
[ 190.211791] Hardware name: Generic OMAP36xx (Flattened Device Tree)
[ 190.218322] [<c0111024>] (unwind_backtrace) from [<c010c610>] (show_stack+0x10/0x14)
[ 190.226440] [<c010c610>] (show_stack) from [<c077e38c>] (dump_stack+0x7c/0x98)
[ 190.233978] [<c077e38c>] (dump_stack) from [<c0132194>] (__warn+0xdc/0xfc)
[ 190.241149] [<c0132194>] (__warn) from [<c01322c4>] (warn_slowpath_null+0x38/0x44)
[ 190.249084] [<c01322c4>] (warn_slowpath_null) from [<c0148c48>] (__queue_work+0x2dc/0x480)
[ 190.257720] [<c0148c48>] (__queue_work) from [<c0149040>] (queue_delayed_work_on+0x48/0x54)
[ 190.266479] [<c0149040>] (queue_delayed_work_on) from [<bf068644>] (accel_open+0x60/0x80 [industrialio])
[ 190.276428] [<bf068644>] (accel_open [industrialio]) from [<c05e5da0>] (input_open_device+0x78/0xa8)
[ 190.285980] [<c05e5da0>] (input_open_device) from [<c05ee604>] (evdev_open+0xf4/0x168)
[ 190.294250] [<c05ee604>] (evdev_open) from [<c0258710>] (chrdev_open+0x150/0x180)
[ 190.302062] [<c0258710>] (chrdev_open) from [<c02510c8>] (do_dentry_open+0x1fc/0x328)
[ 190.310241] [<c02510c8>] (do_dentry_open) from [<c02639bc>] (path_openat+0xdb8/0xf7c)
[ 190.318420] [<c02639bc>] (path_openat) from [<c0263bbc>] (do_filp_open+0x3c/0x9c)
[ 190.326232] [<c0263bbc>] (do_filp_open) from [<c02524ec>] (do_sys_open+0xf4/0x1d4)
[ 190.334167] [<c02524ec>] (do_sys_open) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[ 190.342224] Exception stack(0xed3dbfa8 to 0xed3dbff0)
[ 190.347503] bfa0: 0048b008 00000000 be921e8c 00000000 000001b6 00000000
[ 190.356048] bfc0: 0048b008 00000000 00000008 00000005 00478415 00478414 0047839c 00000000
[ 190.364593] bfe0: 00000000 be921b44 b6ec4269 b6efeb26
[ 190.369842] ---[ end trace 0f4cdc5c30504c3b ]---
Now another game:
bootup, then
rmmod bmc150_accel_i2c
-> input device disappears
modprobe bmc150_accel_i2c
-> input device does not appear again
rmmod bmc150_accel_i2c
-> BOOM (probably tries to remove the input device twice)
[ 5.447814] twl4030_madc 48070000.i2c:twl at 48:madc: 48070000.i2c:twl at 48:madc supply vusb3v1 not found, using dummy regulator
[ 5.472808] input: twl4030_pwrbutton as /devices/platform/68000000.ocp/48070000.i2c/i2c-0/0-0048/48070000.i2c:twl at 48:pwrbutton/input/input3
[ 5.533569] input: twl4030:vibrator as /devices/platform/68000000.ocp/48070000.i2c/i2c-0/0-0048/48070000.i2c:twl at 48:audio/twl4030-vibra/input/input4
[ 5.562255] iio_device_register_inputbridge(): found an accelerometer
[ 5.569030] iio_device_register_inputbridge(): => (ptrval)
[ 5.678741] input: accelerometer-iio-input-bridge as /devices/virtual/input/input5
[ 5.766204] bno055 1-0029: software revision id 0311
[ 5.775482] iio delayed work at bf06b400
[ 5.779602] iio delayed_work:e0 ff ff ff 04 b4 06 bf 04 b4 06 bf 64 86 06 bf
[ 5.793487] media: Linux media interface: v0.10
[ 5.819824] twl4030_gpio twl4030-gpio: can't dispatch IRQs from modules
[ 5.859008] iio_device_register_inputbridge(): found an accelerometer
[ 5.884002] input: TSC2007 Touchscreen as /devices/platform/68000000.ocp/48072000.i2c/i2c-1/1-0048/input/input6
[ 5.923187] iio delayed_work:00 00 00 00 00 00 00 00 00 00 00 00 38 8e 14 c0
[ 5.930572] iio delayed_work:00 00 20 00 00 00 00 00 00 00 00 00
[ 5.942199] iio_device_register_inputbridge(): process channel 0
[ 5.948486] iio_device_register_inputbridge(): found an accelerometer
[ 5.960693] bmp280 1-0076: 1-0076 supply vddd not found, using dummy regulator
[ 5.969879] twl4030_usb 48070000.i2c:twl at 48:twl4030-usb: Initialized TWL4030 USB module
[ 5.990600] videodev: Linux video capture interface: v2.00
[ 6.031555] bmp280 1-0076: 1-0076 supply vdda not found, using dummy regulator
[ 6.040161] iio_device_register_inputbridge(): process channel 1
[ 6.048614] iio_device_register_inputbridge(): process channel 1
[ 6.094268] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
[ 6.120178] iio_device_register_inputbridge(): found an accelerometer
[ 6.127197] omap_hdq 480b2000.1w: OMAP HDQ Hardware Rev 0.5. Driver in Interrupt mode
[ 6.135620] iio_device_register_inputbridge(): found an accelerometer
[ 6.174987] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
[ 6.189208] iio_device_register_inputbridge(): found an accelerometer
[ 6.209136] w1_master_driver w1_bus_master1: Attaching one wire slave 01.000000000000 crc 3d
[ 6.248107] bq27xxx_battery_setup
[ 6.251586] bq27xxx_battery_setup: dm_regs= (null)
[ 6.269317] (NULL device *): hwmon: 'bq27000-battery' is not a valid name attribute, please fix
[ 6.286529] bq27xxx_battery_settings
[ 6.290283] bq27xxx_battery_settings: power_supply_get_battery_info failed ret=-1088385004
[ 6.309265] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.18
[ 6.393585] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 6.435852] usb usb1: Product: MUSB HDRC host driver
[ 6.451385] usb usb1: Manufacturer: Linux 4.18.0-rc6-letux+ musb-hcd
[ 6.485443] usb usb1: SerialNumber: musb-hdrc.0.auto
[ 6.504089] hub 1-0:1.0: USB hub found
[ 6.519348] hub 1-0:1.0: 1 port detected
[ 6.894958] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[ 7.005584] (NULL device *): hwmon: 'gta04-battery' is not a valid name attribute, please fix
[ 7.026062] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[ 7.069488] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[ 7.120544] wwan_on_off_init: wwan_on_off_init
[ 7.133361] twl4030_bci 48070000.i2c:twl at 48:bci: battery temperature out of range
[ 7.157257] twl4030_bci 48070000.i2c:twl at 48:bci: battery temperature out of range
[ 7.171569] pps_core: LinuxPPS API ver. 1 registered
[ 7.184478] iio_charge:213
[ 7.215576] wwan_on_off_probe: wwan_on_off_probe()
[ 7.244964] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti at linux.it>
[ 7.279785] wwan_on_off_probe: onoff = (ptrval) indicator = (ptrval) -298237936 usb_phy = 1074725139
[ 7.340301] pps pps0: new PPS source pps.-1
[ 7.348205] wwan_on_off_probe: wwan_on_off_probe() wwan=(ptrval)
[ 7.359558] twl4030_voice_set_tristate codec=(ptrval) 1
[ 7.373260] pps pps0: Registered IRQ 165 as PPS source
[ 7.383911] TPS Voice IF is tristated
[ 7.398223] wwan_on_off_is_powered_on: gpio value = 1
[ 7.426757] omap-twl4030 sound: twl4030-hifi <-> 49022000.mcbsp mapping ok
[ 7.455657] wwan_on_off_is_powered_on: return 'true'
[ 7.497680] wwan_on_off_rfkill_set_block: blocked: 0
[ 7.514587] asoc-simple-card sound_telephony: gtm601 <-> 49026000.mcbsp mapping ok
[ 7.539794] wwan_on_off_set_power:on = 1
[ 7.548400] wwan_on_off_is_powered_on: gpio value = 1
[ 7.596649] wwan_on_off_is_powered_on: return 'true'
[ 7.627441] wwan_on_off_set_power: state 1
[ 7.631713] wwan_on_off_set_power: done
[ 7.686798] wwan_on_off_probe: successfully probed
[ 8.208251] omapdrm omapdrm.0: DMM not available, disable DMM support
[ 8.266998] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 8.314727] [drm] No driver support for vblank timestamp query.
[ 8.327453] omapdrm omapdrm.0: Tiled buffers require DMM
[ 8.401885] Console: switching to colour frame buffer device 60x40
[ 8.506896] omapdrm omapdrm.0: fb0: omapdrm frame buffer device
[ 8.564575] [drm] Initialized omapdrm 1.0.0 20110917 for omapdrm.0 on minor 0
[ 8.578155] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 8.687744] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 8.754608] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 8.772430] cfg80211: failed to load regulatory.db
[ 9.070861] voice ctl route: 0
[ 9.250579] wlcore: ERROR ti-connectivity/wl18xx-conf.bin configuration binary size is wrong, expected 1229 got 1221
[ 9.276428] wlcore: WARNING falling back to default config
[ 9.684722] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
[ 9.694427] wlcore: WARNING Detected unconfigured mac address in nvs, derive from fuse instead.
[ 9.705291] wlcore: WARNING This default nvs file can be removed from the file system
[ 9.759124] wlcore: loaded
[ 11.812652] EXT4-fs (mmcblk0p6): re-mounted. Opts: (null)
[ 12.059509] EXT4-fs (mmcblk0p6): re-mounted. Opts: errors=remount-ro
[ 13.232238] device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) initialised: dm-devel at redhat.com
[ 14.040863] using random self ethernet address
[ 14.046874] using random host ethernet address
[ 14.056060] usb0: HOST MAC 72:22:d7:80:eb:eb
[ 14.067657] usb0: MAC 6e:4c:47:b1:76:00
[ 14.071746] using random self ethernet address
[ 14.090423] using random host ethernet address
[ 14.102478] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
[ 14.109466] g_ether gadget: g_ether ready
[ 14.455139] random: crng init done
[ 14.487060] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
[ 14.496520] UBIFS error (pid: 1859): cannot open "ubi0:gta04-rootfs", error -19
[ 14.542999] EXT4-fs (mmcblk0p7): mounted filesystem with ordered data mode. Opts: (null)
[ 14.601196] g_ether gadget: high-speed config #1: CDC Ethernet (ECM)
[ 16.542572] NET: Registered protocol family 10
[ 16.566131] Segment Routing with IPv6
[ 17.145935] voice ctl route: 0
[ 19.933959] Bluetooth: Core ver 2.22
[ 19.945251] NET: Registered protocol family 31
[ 19.949951] Bluetooth: HCI device and connection manager initialized
[ 19.968902] Bluetooth: HCI socket layer initialized
[ 19.981048] Bluetooth: L2CAP socket layer initialized
[ 19.992462] Bluetooth: SCO socket layer initialized
[ 20.065704] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 20.071319] Bluetooth: BNEP socket layer initialized
[ 24.811187] systemd-logind[2710]: New seat seat0.
[ 28.449737] systemd-logind[2710]: Failed to start user service: Unknown unit: user at 0.service
[ 28.482879] systemd-logind[2710]: New session 1 of user root.
[ 178.253234] unregister inputbridge
[ 178.256835] unregister input device ed017c00
[ 218.032348] iio_device_register_inputbridge(): found an accelerometer
[ 218.039337] iio_device_register_inputbridge(): found an accelerometer
[ 218.047241] iio_device_register_inputbridge(): found an accelerometer
[ 264.052459] unregister inputbridge
[ 264.056030] unregister input device ed017c00
[ 264.060607] Unable to handle kernel paging request at virtual address 65676188
[ 264.068298] pgd = 6d48b0d8
[ 264.071136] [65676188] *pgd=00000000
[ 264.074951] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[ 264.080505] Modules linked in: bmc150_accel_i2c(-) bnep bluetooth ecdh_generic ipv6 usb_f_ecm g_ether usb_f_rndis u_ether libcomposite configfs dm_crypt dm_mod dax arc4 wl18xx wlcore mac80211 cfg80211 omapdrm drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm drm_panel_orientation_quirks pps_gpio panel_tpo_td028ttec1 snd_soc_simple_card snd_soc_simple_card_utils snd_soc_omap_twl4030 pps_core encoder_opa362 wwan_on_off pwm_omap_dmtimer snd_soc_gtm601 connector_analog_tv generic_adc_battery pwm_bl wlcore_sdio bq27xxx_battery_hdq bq27xxx_battery bmp280_spi omap_hdq omap2430 ov9655 v4l2_fwnode v4l2_common snd_soc_omap_mcbsp snd_soc_sdma bmp280_i2c bmp280 tsc2007 at24 videodev leds_tca6507 gpio_twl4030 phy_twl4030_usb bmc150_magn_i2c media bmc150_magn bno055 musb_hdrc snd_soc_twl4030 twl4030_vibra
[ 264.155548] bmc150_accel_core industrialio_triggered_buffer twl4030_pwrbutton twl4030_charger kfifo_buf twl4030_madc gnss_w2sg0004 industrialio gnss w2cbw003_bluetooth omapdss omapdss_base cec [last unloaded: bmc150_accel_i2c]
[ 264.176666] CPU: 0 PID: 5761 Comm: rmmod Not tainted 4.18.0-rc6-letux+ #10
[ 264.183868] Hardware name: Generic OMAP36xx (Flattened Device Tree)
[ 264.190429] PC is at __mutex_lock.constprop.4+0xcc/0x5c8
[ 264.195983] LR is at __mutex_lock.constprop.4+0xbc/0x5c8
[ 264.201507] pc : [<c079397c>] lr : [<c079396c>] psr: 20070013
[ 264.208068] sp : ee7b3e90 ip : 00000007 fp : 00000000
[ 264.213500] r10: 00000081 r9 : ee7b2000 r8 : 00000002
[ 264.218963] r7 : ee208a54 r6 : ed0166c0 r5 : ed017d70 r4 : ed017d70
[ 264.225799] r3 : 65676170 r2 : ed481940 r1 : c0b03d48 r0 : ed481940
[ 264.232604] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
[ 264.240051] Control: 10c5387d Table: ad470019 DAC: 00000051
[ 264.246063] Process rmmod (pid: 5761, stack limit = 0x9d2badfe)
[ 264.252227] Stack: (0xee7b3e90 to 0xee7b4000)
[ 264.256805] 3e80: 40070093 c0b03d48 ed01662c ed0166c0
[ 264.265319] 3ea0: ee208a54 ee2e64cc ee7b2000 4a31c572 00000000 ed017c00 ed017d70 ed0166c0
[ 264.273864] 3ec0: ee208a54 ee2e64cc ee7b2000 00000081 00000000 c05e7d18 ed017c00 ed01662c
[ 264.282409] 3ee0: ed0166c0 c05e7e88 ed016400 bf063394 ee208a20 ed016400 ed0166c0 bf0d516c
[ 264.290954] 3f00: bf678000 ee208a00 bf67a020 c05fc2c0 ee208a20 ee2e6498 bf67a020 c04f55c4
[ 264.299499] 3f20: ee208a20 bf67a020 00000800 00000000 0047c1f4 c04f5748 bf67a020 c0b03d48
[ 264.308044] 3f40: 00000800 c04f486c bf67a080 c01aad3c 31636d62 615f3035 6c656363 6332695f
[ 264.316589] 3f60: 00000000 ed481940 ed42e780 00000000 ed481940 ed481db8 ed42e780 c014dee8
[ 264.325134] 3f80: c0101204 ee7b2000 007b3fb0 4a31c572 0047c1c0 0047c1c0 beb22e8f 00000081
[ 264.333709] 3fa0: c0101204 c0101000 0047c1c0 0047c1c0 0047c1f4 00000800 48198700 48198700
[ 264.342285] 3fc0: 0047c1c0 0047c1c0 beb22e8f 00000081 beb22d8c 00000000 beb22b98 00000000
[ 264.350830] 3fe0: b6ec1521 beb22b2c 0045f613 b6ec1526 80000030 0047c1f4 00000000 00000000
[ 264.359405] [<c079397c>] (__mutex_lock.constprop.4) from [<c05e7d18>] (__input_unregister_device+0x14/0x130)
[ 264.369689] [<c05e7d18>] (__input_unregister_device) from [<c05e7e88>] (input_unregister_device+0x4c/0x6c)
[ 264.379882] [<c05e7e88>] (input_unregister_device) from [<bf063394>] (iio_device_unregister+0x1c/0x64 [industrialio])
[ 264.391021] [<bf063394>] (iio_device_unregister [industrialio]) from [<bf0d516c>] (bmc150_accel_core_remove+0x18/0xa8 [bmc150_accel_core])
[ 264.404083] [<bf0d516c>] (bmc150_accel_core_remove [bmc150_accel_core]) from [<c05fc2c0>] (i2c_device_remove+0x34/0x64)
[ 264.415374] [<c05fc2c0>] (i2c_device_remove) from [<c04f55c4>] (device_release_driver_internal+0xe4/0x1fc)
[ 264.425476] [<c04f55c4>] (device_release_driver_internal) from [<c04f5748>] (driver_detach+0x60/0x6c)
[ 264.435150] [<c04f5748>] (driver_detach) from [<c04f486c>] (bus_remove_driver+0x64/0x8c)
[ 264.443664] [<c04f486c>] (bus_remove_driver) from [<c01aad3c>] (sys_delete_module+0x1a8/0x230)
[ 264.452697] [<c01aad3c>] (sys_delete_module) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[ 264.461364] Exception stack(0xee7b3fa8 to 0xee7b3ff0)
[ 264.466674] 3fa0: 0047c1c0 0047c1c0 0047c1f4 00000800 48198700 48198700
[ 264.475219] 3fc0: 0047c1c0 0047c1c0 beb22e8f 00000081 beb22d8c 00000000 beb22b98 00000000
[ 264.483795] 3fe0: b6ec1521 beb22b2c 0045f613 b6ec1526
[ 264.489074] Code: e5943000 e3d33007 03a05001 0a000002 (e5935018)
[ 264.495635] ---[ end trace 8b2e5c84b044b4b4 ]---
[ 264.500488] note: rmmod[5761] exited with preempt_count 1
Regards,
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iio.diff
Type: text/x-patch
Size: 2422 bytes
Desc: not available
URL: <http://lists.goldelico.com/pipermail/letux-kernel/attachments/20180731/96ba8df7/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.goldelico.com/pipermail/letux-kernel/attachments/20180731/96ba8df7/attachment-0001.asc>
More information about the Letux-kernel
mailing list