Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1023809ybl; Wed, 11 Dec 2019 11:12:18 -0800 (PST) X-Google-Smtp-Source: APXvYqwKcy7xkLfnA5pCyHl3mNKnciHW5UJ+bWGscj4PhuUpFGxXAgVHXEHX/D8/W9wlQwb/RcAL X-Received: by 2002:a9d:6c8b:: with SMTP id c11mr3745569otr.280.1576091538073; Wed, 11 Dec 2019 11:12:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576091538; cv=none; d=google.com; s=arc-20160816; b=pBSHbUXzMdZ2lwbEgl8DqWkHb0sI9Q/mbwWS/isJoJi/sRVvqmdzWr6QxHXd9GrJlT HvYpEPs5fCpHdxkrZlJ2xn/M0diGt+D6YMc4Mtjfq7PLZxd//NcRxQ0c5VelTh4A5Pac S275ce6q2aP2Ir3TSBZfZ56RbU01W/sxO13RLPtI5SXeLv/qf/7DHVawJrLsmTdIMUI4 g1+AFOa9WCyH1LLDAkShOW35tCAWOGg522z2jH7MGDLdUKLDTvRwlh3klKoEO9eOSIVE /D8jpycB9v1nQPGTYWrRN9spq/qedNNYLOuqFQLQ+9sGTNmvepigz8QIBZkVvjS9sg5v 7JKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=nKnU1b9WLE/FNteiZVJsLC+IhQTpwehDnuT9USqSHa0=; b=xsqRjbjE4kLSoXsSL8nvu7OPv6tXCcQYbowZmmvyD8W1cJJHN87YHulfw0CuSBnVhg U/9nRlmRf8y45TZd9hgUkLXL5NxMuOULOpltyT62n7zqg7QwRrI6za9sRvHm6YW8kfrv +jYIep5sg7MiVgurJkwyyqJbq2yPzvuh+hI+WGDdZls74An58moLBaEy0sQiJDOd8TOY w58dogkc6C/BRCmFbuaBSw6HPI/cB2RnGldGA1K42cnBCJ53njGxLKWNMaax7H24uwUo isoePtyU1ON/PIQP7XqHppcVKhlqcj1oWgR++Nas8wPqVihF/F1po7do9zmN8MFKJ8PB UhzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=efyKKdhC; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e15si1679470otp.161.2019.12.11.11.12.04; Wed, 11 Dec 2019 11:12:18 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=efyKKdhC; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727931AbfLKTKd (ORCPT + 99 others); Wed, 11 Dec 2019 14:10:33 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:42554 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726487AbfLKTKc (ORCPT ); Wed, 11 Dec 2019 14:10:32 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id xBBJASte023513; Wed, 11 Dec 2019 13:10:28 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1576091428; bh=nKnU1b9WLE/FNteiZVJsLC+IhQTpwehDnuT9USqSHa0=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=efyKKdhCs7JAHXQmAKQgm7IzkaIJnFW0cNIZz3iguwEt/VFp3FZtzOsTLrKtySlKu r9N5HZ750w23srehZjT38xfcEGpAGaarLC2F17yDJN7WPBYhDVGle8ejiLX3A+7JGF TOhpOFwAQokcIRhu6W4Ily1JDl7JscvNNnb9zf3E= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xBBJAS6S037443 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 11 Dec 2019 13:10:28 -0600 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Wed, 11 Dec 2019 13:10:28 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Wed, 11 Dec 2019 13:10:28 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id xBBJASrD028535; Wed, 11 Dec 2019 13:10:28 -0600 Date: Wed, 11 Dec 2019 13:09:53 -0600 From: Bin Liu To: Saurav Girepunje CC: , , , Subject: Re: [PATCH] usb: musb: Fix external abort on non-linefetch Message-ID: <20191211190953.GH16429@iaqt7> Mail-Followup-To: Bin Liu , Saurav Girepunje ;, gregkh@linuxfoundation.org;, linux-usb@vger.kernel.org;, linux-kernel@vger.kernel.org;, saurav.girepunje@hotmail.com References: <20191027083616.GA13761@saurav> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20191027083616.GA13761@saurav> User-Agent: Mutt/1.9.4 (2018-02-28) X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Sun, Oct 27, 2019 at 02:06:21PM +0530, Saurav Girepunje wrote: > While setting the usb mode from sysfs. Below error came on kernel > version 4.19. > > On latest kernel vserion api name changed. Therefore API > name and backtrace API name are different. > > [ 821.908066] Backtrace: > [ 821.910695] [] (musb_default_readl [musb_hdrc]) from [] (dsps_musb_set_mode+0x38/0x12c [musb_dsps]) > [ 821.922059] [] (dsps_musb_set_mode [musb_dsps]) from [] (musb_mode_store+0xc8/0x12c [musb_hdrc]) > [ 821.933105] r7:a0010013 r6:0000000b r5:cd79d200 r4:cb634010 > [ 821.939096] [] (musb_mode_store [musb_hdrc]) from [] (dev_attr_store+0x20/0x2c) > [ 821.948593] r7:cd79d200 r6:c5abbf78 r5:00000000 r4:bf0788d4 > [ 821.954549] [] (dev_attr_store) from [] (sysfs_kf_write+0x48/0x4c) > [ 821.962859] r5:00000000 r4:c0425164 > [ 821.966620] [] (sysfs_kf_write) from [] (kernfs_fop_write+0xfc/0x1fc) > [ 821.975200] r5:00000000 r4:cd79d080 > [ 821.978966] [] (kernfs_fop_write) from [] (__vfs_write+0x34/0x120) > [ 821.987280] r10:00000000 r9:0000000b r8:00000000 r7:0000000b r6:c5abbf78 r5:c0285178 > [ 821.995493] r4:cb67a3c0 > [ 821.998160] [] (__vfs_write) from [] (vfs_write+0xa8/0x170) > [ 822.005835] r9:0000000b r8:00000000 r7:c5abbf78 r6:000def80 r5:cb67a3c0 r4:0000000b > [ 822.013969] [] (vfs_write) from [] (SyS_write+0x44/0x98) > [ 822.021371] r9:0000000b r8:000def80 r7:00000000 r6:00000000 r5:cb67a3c0 r4:cb67a3c0 > [ 822.029517] [] (SyS_write) from [] (ret_fast_syscall+0x0/0x3c) > [ 822.037467] r9:c5aba000 r8:c010daa8 r7:00000004 r6:b6f0ad58 r5:000def80 r4:0000000b > [ 822.045599] Code: e1a0c00d e92dd800 e24cb004 e0801001 (e5910000) > > Without pm_runtime_{get,put}_sync calls in place, > Similar issue come on "mode_show" and "vbus_store" also. Do you really get the kernel dump on mode_show() and vbus_store()? It shouldn't because the two functions don't access musb registers. What platform have you tested on? > > fix- call pm_runtime_{get,put}_sync before reading/writing > usb mode/vbus from sysfs. > > As sugguested on commit '2d15f69ed5c1c33f283e77ec161578badde33eaf' This seems to be your private commit id. You don't have to refer to it, including the quote below. > Merged all the fix which reslove same bug in the same file. > " > commit '2d15f69ed5c1c33f283e77ec161578badde33eaf' > Author: Saurav Girepunje > Date: Thu Aug 8 00:05:03 2019 +0530 > > usb: musb: Fix external abort on non-linefetch for vbus_store > > Without pm_runtime_{get,put}_sync calls in place, writing > vbus value via /sys causes the error > > "Unhandled fault external abort on non-linefetch" > > On Thu, Aug 08, 2019 at 12:11:46AM +0530, Saurav Girepunje wrote: > > Without pm_runtime_{get,put}_sync calls in place, writing > > vbus value via /sys causes the error > > > > "Unhandled fault external abort on non-linefetch" > > > > Signed-off-by: Saurav Girepunje > > Thanks for the patch. Can you please merge another two similar patches > you just sent with this one? They all fix the same bug in the same file > so could be just in one patch. > > -Bin. > " > > Signed-off-by: Saurav Girepunje -Bin.