Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2124997ybb; Thu, 26 Mar 2020 22:41:11 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvlsz5uaUAHinKM4BKcrkJfrTRZVQM5RJQPHJirUkjbEcazhHAY6Qe4IoA7MRHZ+rIi2vbK X-Received: by 2002:a9d:5787:: with SMTP id q7mr1057887oth.137.1585287670983; Thu, 26 Mar 2020 22:41:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585287670; cv=none; d=google.com; s=arc-20160816; b=xAdSDIAJLbNvMWAPZraTitiLo5k9NPzgo+kdrE4p3/u8LNu8dFFnHCM0DBwHbZz1Jx x1cwo/MuI7ZqiSEuRu+GeJmxh+iQo9MJWWwmh6RQseojxmJUCKil0VfcZrq1zuZvvxU7 WnH87F6dyAk8WwyPKOM9M53aq2icgUKnSVqKql+hW8EBlPOnLCPjLyDAzYbWL9+2svTt lqio1fbClJTuRitrviBvb7K2BKLkb+t5nGSpQWBiElq5vwIlmgIYZkTuQwXeFgOypMtH cahAu0e4VRiLQswJ/fWd8BaS3jwwyoAfmah4cTgPzsMjwCqxPo8BoQKXdTKerxnbCVtk ko/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ocAJaFWWwICL4AMO+dAe9wnKoUgxq9cam+F7BoHN9qE=; b=nrACZjy4mAihGxHQ3+rQzu0r96rgS0n9k7b6vZii++EIYBGDBKAOYrCYdpStdW40EE g5akHRHgz0XbmT71K98isteiJnVHzydPXCMRa7EVbopyYNB1cFOG66YK7gkKfKdVpyIy xAaAVXKN3qyD5tW5IAkVDNRT/vBKRwUPgC1ohWfHZhy4TjdtsqaQeavA2B1t0p8fKSPL ed6kPvf6aA607jLpQvSw2PDGTPfpg2gHHaSWHUljB0SxyezZ5QNypzUU9kUtLVfRO4Mc GGFwUG5to2Sggf4x44Ha3VaSUxYXQ+oEoyOzO+O6g/ARm2h9w4PjZALP6is/HU05EET4 hlzg== 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 f136si2157226oig.9.2020.03.26.22.40.55; Thu, 26 Mar 2020 22:41:10 -0700 (PDT) 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 S1726096AbgC0Fi7 (ORCPT + 99 others); Fri, 27 Mar 2020 01:38:59 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:47679 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725857AbgC0Fi6 (ORCPT ); Fri, 27 Mar 2020 01:38:58 -0400 Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jHhhk-00085G-Qu; Fri, 27 Mar 2020 06:38:52 +0100 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1jHhhj-0001QA-LF; Fri, 27 Mar 2020 06:38:51 +0100 From: Oleksij Rempel To: Bin Liu Cc: Oleksij Rempel , 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: [PATCH v1] usb: musb: dsps: set MUSB_DA8XX quirk for AM335x Date: Fri, 27 Mar 2020 06:38:49 +0100 Message-Id: <20200327053849.5348-1-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.26.0.rc2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 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 Beagle Bone Black has different memory corruptions if kernel is configured with USB_TI_CPPI41_DMA=y. This issue is reproducible with ath9k-htc driver (ar9271 based wifi usb controller): 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/0x39c) [] (kmem_cache_alloc) from [] (__alloc_skb+0x60/0x174) [] (__alloc_skb) from [] (ath9k_wmi_cmd+0x50/0x184 [ath9k_htc]) [] (ath9k_wmi_cmd [ath9k_htc]) from [] (ath9k_regwrite_multi+0x54/0x84 [ath9k_htc]) [] (ath9k_regwrite_multi [ath9k_htc]) from [] (ath9k_regwrite+0xf0/0xfc [ath9k_htc]) [] (ath9k_regwrite [ath9k_htc]) from [] (ar5008_hw_process_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_start+0xb0/0x22c [ath9k_htc]) [] (ath9k_htc_start [ath9k_htc]) from [] (drv_start+0x4c/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/0x204) [] (__dev_change_flags) from [] (dev_change_flags+0x20/0x50) [] (dev_change_flags) from [] (do_setlink+0x2ac/0x978) After applying this patch, the system is running in monitor mode without noticeable issues. Suggested-by: Michael Grzeschik Signed-off-by: Oleksij Rempel --- drivers/usb/musb/musb_dsps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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_glue *glue) {} #endif /* CONFIG_USB_TI_CPPI41_DMA */ static struct musb_platform_ops dsps_ops = { - .quirks = MUSB_DMA_CPPI41 | MUSB_INDEXED_EP, + .quirks = MUSB_DMA_CPPI41 | MUSB_INDEXED_EP | MUSB_DA8XX, .init = dsps_musb_init, .exit = dsps_musb_exit, -- 2.26.0.rc2