Received: by 10.223.185.116 with SMTP id b49csp5596060wrg; Wed, 7 Mar 2018 14:43:25 -0800 (PST) X-Google-Smtp-Source: AG47ELtZ3uHHH2VdM8VSD7uQb5ErDQsaOw6X8y/grsUdiFBrNcou+maI4Fd9BhrGKPHdn/z46uky X-Received: by 2002:a17:902:8302:: with SMTP id bd2-v6mr1887667plb.322.1520462605467; Wed, 07 Mar 2018 14:43:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520462605; cv=none; d=google.com; s=arc-20160816; b=R9fLSNpompdv6/3ezTSie7KyK5d8Lc8FV5TIroqphq/qshsCiKcNEDc3Q5ovg6wGu/ IIRu143RkE/a1SrWj8VFkVvcEKovPu2C9XpyPCq458UytUjM4qFw0ehNpIMhnrR1VX5d YBYFVxXP5lDNPfWcrHQWsQyvg8NWsiV8eq0sPXnFC860KQgQoRadRxqxX2tfu+pw05PY k4/EZKmLjm9s0GPm6eRt2uL1HHRLA9h1OMHhPq7bMNf06ZCGtBAb+2uitGe9T6gGHDA3 RdTjFkh/ux8JMdTba473yomVFPHz0qxv+qQjkg1s2cZeEhXkWqRUl7uoyma0K2XQtvhd R0UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:date:message-id :subject:from:cc:to:arc-authentication-results; bh=pmc4E8HtJPcUjPmyA1Dg/VTEly26YKyEfb4Y26fFS+M=; b=Z8oaztaR0WDZ0zi9GK27F5fjKM/JYICSyja8GcnyIzShnsqfQUYhGXZKtYZZOEDI4G SnyL23M1I5fNaTdDqRo5r+vdsfXzcGItui7f0lD0qEGBiCsMY64/aaylnfNVRF1NTWJ0 2gZpi3sOTbKx9AAkmX+YUUAbNUuYIRMFpWnf5L8jm5DY/cDqxQaSU/fWKaYFn+k21+a/ MCeTB2Bnant0yW1VwRlOeprhCGaZlz+8V8raOtYRlqmtvplUeCJIJRsN0UObOL+m2AAd 2ZR+usb3dqcCB4CuKbhgT2NY3szwy3Pk8cPdpw3lATPfLzyzX/2I5enlWI6XrBTngh8A Dguw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y1si14651497pfg.297.2018.03.07.14.43.11; Wed, 07 Mar 2018 14:43:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934385AbeCGWlo (ORCPT + 99 others); Wed, 7 Mar 2018 17:41:44 -0500 Received: from nala.villavu.com ([188.165.243.101]:51365 "EHLO nala.villavu.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933537AbeCGWll (ORCPT ); Wed, 7 Mar 2018 17:41:41 -0500 Received: from a82-161-36-93.adsl.xs4all.nl ([82.161.36.93] helo=[0.0.0.0]) by nala.villavu.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ethkh-0000Uc-AZ; Wed, 07 Mar 2018 23:41:39 +0100 To: Bin Liu Cc: Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, Tony Lindgren From: Merlijn Wajer Subject: usb: musb: error when trying to unbind musb-hdrc.0.auto Message-ID: <3cf2bed3-817b-537e-4842-63476b091125@wizzup.org> Date: Wed, 7 Mar 2018 23:41:26 +0100 User-Agent: Mozilla/5.0 (X11; Linux armv7l; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="rpsk9HdntixVt6W00Jjvq2y271GQjfqDA" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --rpsk9HdntixVt6W00Jjvq2y271GQjfqDA Content-Type: multipart/mixed; boundary="IPk3WXcKbNQcdy5Yk4jHHtk3USPnUiXOY"; protected-headers="v1" From: Merlijn Wajer To: Bin Liu Cc: Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, Tony Lindgren Message-ID: <3cf2bed3-817b-537e-4842-63476b091125@wizzup.org> Subject: usb: musb: error when trying to unbind musb-hdrc.0.auto --IPk3WXcKbNQcdy5Yk4jHHtk3USPnUiXOY Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable Hi, I am trying to unbind the musb driver on my Nokia N900, but I get the following kernel oops [1]. This is the command that I issued: root@n900devuan:/sys/bus/platform/drivers/musb-hdrc# echo musb-hdrc.0.auto > unbind This might be omap specific. I thought that as with the vbus issue, calls to pm_runtime_{get,put}_sync were required, but it seems that pm_runtime_disable gets called before musb_platform_exit is called. I've tried simply moving the call so that it is called before pm_runtime_disable (actually just before spin_unlock_irqrestore in musb_remove) but this doesn't seem to help. Any thoughts? Cheers, Merlijn [1] [ 7232.484985] Unhandled fault: external abort on non-linefetch (0x1028) at 0xfa0ab414 [ 7232.485015] pgd =3D 9b0f7685 [ 7232.485046] [fa0ab414] *pgd=3D48011452(bad) [ 7232.485076] Internal error: : 1028 [#1] PREEMPT ARM [ 7232.485076] Modules linked in: u_ether u_serial bluetooth ecdh_generic ipv6 omaplfb ctr aes_arm_bs crypto_simd cryptd ccm pvrsrvkm cmt_speech nokia_modem ssi_protocol radio_plat form_si4713 mousedev arc4 joydev hsi_char wl1251_spi crc7 wl1251 ir_lirc_codec mac80211 li rc_dev ir_rx51 rc_core smc91x gpio_keys rx51_battery pwm_omap_dmtimer isp1704_charger mii sha256_generic omap3_isp videobuf2_dma_contig v4l2_fwnode cfg80211 videobuf2_memops si4713 videobuf2_v4l2 adp1653 videobuf2_core v4l2_common tsc2005 tsc200x_core videodev bq27xxx_b attery_i2c bq27xxx_battery bq2415x_charger leds_lp5523 leds_lp55xx_common media tsl2563 rt c_twl twl4030_vibra ff_memless omap_ssi lis3lv02d_i2c lis3lv02d hsi input_polldev ti_soc_t hermal vfat fat [last unloaded: libcomposite] [ 7232.485412] CPU: 0 PID: 2803 Comm: bash Not tainted 4.15.6+ #1 [ 7232.485412] Hardware name: Nokia RX-51 board [ 7232.485473] PC is at musb_default_readl+0x4/0xc [ 7232.485473] LR is at omap2430_musb_exit+0x2c/0x70 [ 7232.485504] pc : [] lr : [] psr: a0020013 [ 7232.485504] sp : cb2afe70 ip : 00000000 fp : 00000000 [ 7232.485534] r10: 00000000 r9 : 00000051 r8 : 200f0013 [ 7232.485534] r7 : c2a65920 r6 : ce354d10 r5 : 00000000 r4 : ce52e010= [ 7232.485565] r3 : c05220f4 r2 : 00000000 r1 : fa0ab414 r0 : fa0ab000= [ 7232.485595] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none [ 7232.485595] Control: 10c5387d Table: 8bfa4019 DAC: 00000051 [ 7232.485626] Process bash (pid: 2803, stack limit =3D 0x5105ec71) [ 7232.485626] Stack: (0xcb2afe70 to 0xcb2b0000) [ 7232.485656] fe60: ce52e010 ffffe000 ce388a10 c0521c dc [ 7232.485687] fe80: ce388a10 ce388a10 c0a325e8 ce388a44 00000034 c04c34d8 ce388a10 000000 00 [ 7232.485717] fea0: c0a325e8 c04c2170 00000011 ce388a10 c0a325e8 c0a2fef8 c9cde410 c04c0a 8c [ 7232.485717] fec0: 00000011 cd8f7e00 c9cde400 cb2aff88 c9cde410 c0259554 00000000 000000 00 [ 7232.485748] fee0: 00000011 cb6b1600 c0259424 00000000 cb2aff88 000e4408 cb2ae000 c01eda 74 [ 7232.485778] ff00: 00000100 00000000 cb3b0180 c020a948 cb3b0cc0 0000000a cb3b0cc0 000000 01 [ 7232.485809] ff20: cb3b0cc0 0000000a 00000001 c020aefc 00000001 00000000 cb3b0cc0 c01fd4 f4 [ 7232.485839] ff40: cb6b1600 00000002 cb6b1600 00000011 00000000 cb2aff88 000e4408 c01edd30 [ 7232.485870] ff60: cb6b1600 000e4408 00000011 cb6b1600 cb6b1600 000e4408 00000011 c0106fc4 [ 7232.485900] ff80: cb2ae000 c01edee8 00000000 00000000 00000011 00000011 000e4408 b6eb3d60 [ 7232.485900] ffa0: 00000004 c0106de0 00000011 000e4408 00000001 000e4408 00000011 00000000 [ 7232.485931] ffc0: 00000011 000e4408 b6eb3d60 00000004 000e4408 00000011 00000000 00000000 [ 7232.485961] ffe0: 00000000 bedd1eec b6e161bb b6e52b46 00000030 00000001 00000000 00000000 [ 7232.485992] [] (musb_default_readl) from [] (omap2430_musb_exit+0x2c/0x70) [ 7232.486022] [] (omap2430_musb_exit) from [] (musb_remove+0x110/0x158) [ 7232.486053] [] (musb_remove) from [] (platform_drv_remove+0x24/0x3c) [ 7232.486114] [] (platform_drv_remove) from [] (device_release_driver_internal+0xd4/0x1dc) [ 7232.486145] [] (device_release_driver_internal) from [] (unbind_store+0x58/0x8c) [ 7232.486175] [] (unbind_store) from [] (kernfs_fop_write+0x130/0x1a0) [ 7232.486206] [] (kernfs_fop_write) from [] (__vfs_write+0x1c/0x11c) [ 7232.486236] [] (__vfs_write) from [] (vfs_write+0xb8/0x18c) [ 7232.486267] [] (vfs_write) from [] (SyS_write+0x3c/0x74) [ 7232.486297] [] (SyS_write) from [] (ret_fast_syscall+0x0/0x54) [ 7232.486328] Code: e0801001 e5812000 e12fff1e e0801001 (e5910000) [ 7232.486328] ---[ end trace 1dd18c3e3b5270ba ]--- [ 7232.497070] In-band Error seen by MPU at address 0 [ 7232.497100] ------------[ cut here ]------------ [ 7232.497161] WARNING: CPU: 0 PID: 2803 at drivers/bus/omap_l3_smx.c:166 omap3_l3_app_irq+0xcc/0x114 [ 7232.497161] Modules linked in: u_ether u_serial bluetooth ecdh_generic ipv6 omaplfb ctr aes_arm_bs crypto_simd cryptd ccm pvrsrvkm cmt_speech nokia_modem ssi_protocol radio_platform_si4713 mousedev arc4 joydev hsi_char wl1251_spi crc7 wl1251 ir_lirc_codec mac80211 lirc_dev ir_rx51 rc_core smc91x gpio_keys rx51_battery pwm_omap_dmtimer isp1704_charger mii sha256_generic omap3_isp videobuf2_dma_contig v4l2_fwnode cfg80211 videobuf2_memops si4713 videobuf2_v4l2 adp1653 videobuf2_core v4l2_common tsc2005 tsc200x_core videodev bq27xxx_battery_i2c bq27xxx_battery bq2415x_charger leds_lp5523 leds_lp55xx_common media tsl2563 rtc_twl twl4030_vibra ff_memless omap_ssi lis3lv02d_i2c lis3lv02d hsi input_polldev ti_soc_thermal vfat fat [last unloaded: libcomposite] [ 7232.497467] CPU: 0 PID: 2803 Comm: bash Tainted: G D 4.15.6+ #1 [ 7232.497497] Hardware name: Nokia RX-51 board [ 7232.497528] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [ 7232.497589] [] (show_stack) from [] (__warn+0xe4/0x100) [ 7232.497619] [] (__warn) from [] (warn_slowpath_null+0x38/0x44) [ 7232.497650] [] (warn_slowpath_null) from [] (omap3_l3_app_irq+0xcc/0x114) [ 7232.497680] [] (omap3_l3_app_irq) from [] (__handle_irq_event_percpu+0x44/0x110) [ 7232.497711] [] (__handle_irq_event_percpu) from [] (handle_irq_event_percpu+0x18/0x54) [ 7232.497741] [] (handle_irq_event_percpu) from [] (handle_irq_event+0x60/0x8c) [ 7232.497772] [] (handle_irq_event) from [] (handle_level_irq+0x108/0x13c) [ 7232.497802] [] (handle_level_irq) from [] (generic_handle_irq+0x18/0x28) [ 7232.497833] [] (generic_handle_irq) from [] (__handle_domain_irq+0x8c/0xa0) [ 7232.497894] [] (__handle_domain_irq) from [] (__irq_svc+0x6c/0xa8) [ 7232.497924] [] (__irq_svc) from [] (do_exit+0x120/0x990) [ 7232.497955] [] (do_exit) from [] (die+0x234/0x26c)= [ 7232.497985] [] (die) from [] (do_DataAbort+0xa4/0x= b8) [ 7232.497985] [] (do_DataAbort) from [] (__dabt_svc+0x58/0x80) [ 7232.498016] Exception stack(0xcb2afe20 to 0xcb2afe68) [ 7232.498046] fe20: fa0ab000 fa0ab414 00000000 c05220f4 ce52e010 00000000 ce354d10 c2a65920 [ 7232.498077] fe40: 200f0013 00000051 00000000 00000000 00000000 cb2afe70 c052b218 c05220f8 [ 7232.498077] fe60: a0020013 ffffffff [ 7232.498107] [] (__dabt_svc) from [] (musb_default_readl+0x4/0xc) [ 7232.498138] [] (musb_default_readl) from [] (omap2430_musb_exit+0x2c/0x70) [ 7232.498168] [] (omap2430_musb_exit) from [] (musb_remove+0x110/0x158) [ 7232.498199] [] (musb_remove) from [] (platform_drv_remove+0x24/0x3c) [ 7232.498229] [] (platform_drv_remove) from [] (device_release_driver_internal+0xd4/0x1dc) [ 7232.498260] [] (device_release_driver_internal) from [] (unbind_store+0x58/0x8c) [ 7232.498321] [] (unbind_store) from [] (kernfs_fop_write+0x130/0x1a0) [ 7232.498321] [] (kernfs_fop_write) from [] (__vfs_write+0x1c/0x11c) [ 7232.498352] [] (__vfs_write) from [] (vfs_write+0xb8/0x18c) [ 7232.498382] [] (vfs_write) from [] (SyS_write+0x3c/0x74) [ 7232.498413] [] (SyS_write) from [] (ret_fast_syscall+0x0/0x54) [ 7232.498443] ---[ end trace 1dd18c3e3b5270bb ]--- --IPk3WXcKbNQcdy5Yk4jHHtk3USPnUiXOY-- --rpsk9HdntixVt6W00Jjvq2y271GQjfqDA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQRM5LT7NbLF9yb6a/UGN09rynK8WgUCWqBqlwAKCRAGN09rynK8 Wj8fAQDXtp3/tvz+xSy1nxEdVp/LwLOVdgbHfrgQlwEWCnivygD9HWOT4rZGgK0x WSrSd4ngePVcmygrYbSbsXEOa6r0tgw= =VVu+ -----END PGP SIGNATURE----- --rpsk9HdntixVt6W00Jjvq2y271GQjfqDA--