Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4037147ybz; Tue, 28 Apr 2020 04:48:12 -0700 (PDT) X-Google-Smtp-Source: APiQypJg2Se3EMzHUWVcGJMCZMHHtQlIBRpmuPcGsos9huATn60gg1xfZDWks6SP+1GzyYdvpqj3 X-Received: by 2002:aa7:c886:: with SMTP id p6mr21269259eds.97.1588074492759; Tue, 28 Apr 2020 04:48:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588074492; cv=none; d=google.com; s=arc-20160816; b=WTQtwbnOgoeYadsmJwrGXmG4713wtk3EleuAYzvz8kTlR3fpivLPxYBUDTpqJeIvcw 6Dx/BDANHxNof3AlEVNI+9a0fty6xsUojyjIdHL/cxzB+r8UP/YgYY+PfT/jZ5B6bj96 jVqUuvM3agxDkw3WGbDRewlujIXf8g2x3hWItxnLxLLwLpCtJqxg1TMFbg+sLOmAdyt5 FD8cJOE4J7WOWonaVll8QThH4DBtUAZd6CVNss/60cexPWPoPmi2w/hsjz/3pgXj4SwE ZfxVtzQD94RlKZJElYWNDSdaYFxHcMvh0U4P3WsmpIjEFsafKqkcAWsgRdUb3AcwtzPy wl0Q== 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:message-id:subject:cc :to:from:date; bh=DA9nIT4hmQVFffOQyzDtJ2+CmE8UpX31E6r1HLBsWDU=; b=ZO1iod24VbkNiaQ2CVie6ROB/stSE8YJznyNL45CrP2J0ya22pw8oxpxwRHr/qG+lZ ofZ0ZTPYiR9dMTamVleir3y7RgamaDb+jGiz9xYA228AL+ciOqVs8ELccIaZ53S9nG11 IhyRXVX5Nd8GAyaFkv0j26wq9pHRN3fM0xcWG+UcJ4Wb7hLvjVtKoCLog6ejJq1SitwK 0n16wkXPyIf/7HGQihy4nQhoPq850+1PKQiE5lPEX6I9C3EfKoN0puqWTKLuxIzX+m4+ pKpVB2nGBDTwPNxxyKMwk3SS07NVjx8nfebpoPFnAtCagA/H4BXLNojo36cmO34bmuCn VyFA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mj2si1663837ejb.279.2020.04.28.04.47.48; Tue, 28 Apr 2020 04:48:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726645AbgD1LqJ (ORCPT + 99 others); Tue, 28 Apr 2020 07:46:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726285AbgD1LqI (ORCPT ); Tue, 28 Apr 2020 07:46:08 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF1BCC03C1A9 for ; Tue, 28 Apr 2020 04:46:08 -0700 (PDT) Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jTOgf-0003kY-1Q; Tue, 28 Apr 2020 13:46:05 +0200 Received: from ore by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1jTOgd-0006Bj-7O; Tue, 28 Apr 2020 13:46:03 +0200 Date: Tue, 28 Apr 2020 13:46:03 +0200 From: Oleksij Rempel To: Bin Liu Cc: Michael Grzeschik , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Pengutronix Kernel Team , Greg Kroah-Hartman , linux-usb@vger.kernel.org, russell@personaltelco.net, fercerpav@gmail.com Subject: Re: [PATCH v1] usb: musb: dsps: set MUSB_DA8XX quirk for AM335x Message-ID: <20200428114603.55a5xj2o3fupt57a@pengutronix.de> References: <20200327053849.5348-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="vi2ejj65ibafjw3l" Content-Disposition: inline In-Reply-To: <20200327053849.5348-1-o.rempel@pengutronix.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 13:45:35 up 165 days, 3:04, 179 users, load average: 0.00, 0.01, 0.00 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --vi2ejj65ibafjw3l Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi all, ping On Fri, Mar 27, 2020 at 06:38:49AM +0100, Oleksij Rempel wrote: > Beagle Bone Black has different memory corruptions if kernel is > configured with USB_TI_CPPI41_DMA=3Dy. This issue is reproducible with > ath9k-htc driver (ar9271 based wifi usb controller): >=20 > root@AccessBox:~ iw dev wlan0 set monitor fcsfail otherbss > root@AccessBox:~ ip l s dev wlan0 up > kmemleak: Cannot insert 0xda577e40 into the object search tree (overlaps = existing) > CPU: 0 PID: 176 Comm: ip Not tainted 5.5.0 #7 > Hardware name: Generic AM33XX (Flattened Device Tree) > [] (unwind_backtrace) from [] (show_stack+0x18/0x1c) > [] (show_stack) from [] (dump_stack+0x84/0x98) > [] (dump_stack) from [] (create_object+0x2f8/0x324) > [] (create_object) from [] (kmem_cache_alloc+0x1a8/0x= 39c) > [] (kmem_cache_alloc) from [] (__alloc_skb+0x60/0x174) > [] (__alloc_skb) from [] (ath9k_wmi_cmd+0x50/0x184 [a= th9k_htc]) > [] (ath9k_wmi_cmd [ath9k_htc]) from [] (ath9k_regwrit= e_multi+0x54/0x84 [ath9k_htc]) > [] (ath9k_regwrite_multi [ath9k_htc]) from [] (ath9k_= regwrite+0xf0/0xfc [ath9k_htc]) > [] (ath9k_regwrite [ath9k_htc]) from [] (ar5008_hw_pr= ocess_ini+0x280/0x6c0 [ath9k_hw]) > [] (ar5008_hw_process_ini [ath9k_hw]) from [] (ath9k_= hw_reset+0x270/0x1458 [ath9k_hw]) > [] (ath9k_hw_reset [ath9k_hw]) from [] (ath9k_htc_sta= rt+0xb0/0x22c [ath9k_htc]) > [] (ath9k_htc_start [ath9k_htc]) from [] (drv_start+0= x4c/0x1e8 [mac80211]) > [] (drv_start [mac80211]) from [] (ieee80211_do_open+= 0x480/0x954 [mac80211]) > [] (ieee80211_do_open [mac80211]) from [] (__dev_open= +0xdc/0x160) > [] (__dev_open) from [] (__dev_change_flags+0x1a4/0x2= 04) > [] (__dev_change_flags) from [] (dev_change_flags+0x2= 0/0x50) > [] (dev_change_flags) from [] (do_setlink+0x2ac/0x978) >=20 > After applying this patch, the system is running in monitor mode without > noticeable issues. >=20 > Suggested-by: Michael Grzeschik > Signed-off-by: Oleksij Rempel > --- > drivers/usb/musb/musb_dsps.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c > index 88923175f71e..c01f9e9e69f5 100644 > --- a/drivers/usb/musb/musb_dsps.c > +++ b/drivers/usb/musb/musb_dsps.c > @@ -690,7 +690,7 @@ static void dsps_dma_controller_resume(struct dsps_gl= ue *glue) {} > #endif /* CONFIG_USB_TI_CPPI41_DMA */ > =20 > static struct musb_platform_ops dsps_ops =3D { > - .quirks =3D MUSB_DMA_CPPI41 | MUSB_INDEXED_EP, > + .quirks =3D MUSB_DMA_CPPI41 | MUSB_INDEXED_EP | MUSB_DA8XX, > .init =3D dsps_musb_init, > .exit =3D dsps_musb_exit, > =20 > --=20 > 2.26.0.rc2 >=20 >=20 --=20 Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | --vi2ejj65ibafjw3l Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEERBNZvwSgvmcMY/T74omh9DUaUbMFAl6oF3YACgkQ4omh9DUa UbNxxw//X9YdZtPal7XffaLiNDXV1lnFi/NLXSUeEj0TCUjUivG7zjpXh2AdXzql +a6YO08MWiXAvUt+4iQUg3RD6gxXQVvp4s5aQ3s5Izw/fUMU+EUf5Ert5omGZsds ppVx25gB0MO2DBwtpE/eQlUT6g8r0buVeTnsSHEipHHA4cWnxGbroQsqSGhYAtMp Sr0ssZB1qIqi9RuJjBCTRP4A9cX4Pytz0f5vrvN8+aJqAH3D1U/rlqyPOv+uk4S/ JoVCfGB2SnqgtdkuksyIiDeXnpmh32HR5bD5AyhG5zmEU86t0ZFlFPQB2lEBGYK9 ojkE4FbsHRQBRGAVV5zaty69jPW2rrwCHjDG0TnVi7Qh6HeyMdDQtdhGr1GcMJku t21FH5KF0r8d0UESSXSl30zsJgvAARq7/QPcxC6OmLwW4i2JEWnu4BgL6bIfDJRa narw0yq8us19iV00rlp/xFwDA1tHnOZrrAt+t7xbWT/LAeUBhtQXJzlO4f9oWNap 8fLu8UDTyVwStSVPHNzmDoSR2z9Rj2RUfy0zdNYkELvfmMZ06T6cjVLTIYVahOIw R63PuvZu0yeZ6Ue9WbgLjme+6rWjLehigZrH8e6YbM5ZX0fBJZcZCjgYgWgpQRkn YVSHhmCYtn7CxacmRbRQ2kNNCOTZc6ClZ4oq3t1MsTRJtdYGMBo= =GvdV -----END PGP SIGNATURE----- --vi2ejj65ibafjw3l--