Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp4296307rwe; Tue, 30 Aug 2022 07:48:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR6nc42bRAAz0UWCF+9xT1AC/aMtkUA8JQpqV8y+EjqXLCls5JMUlgq1no8DPezR6arB3q/q X-Received: by 2002:a05:6402:d47:b0:447:4297:94e6 with SMTP id ec7-20020a0564020d4700b00447429794e6mr10561572edb.146.1661870939191; Tue, 30 Aug 2022 07:48:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661870939; cv=none; d=google.com; s=arc-20160816; b=uGzsmryBI8RfzHVBsLiYhkqE7wiR+P8Itvsv+q/U53t8nKWoTyyFKGHTfDtfXGMEvN lLZJLDbL85BhI89/IM8aZus1PaF9rrAy24Xeu+UhqZAcNZX9p8V5ap2T2bP7CTqXnRte 0wWXbRTBUFc7ppmZ8b2VTN5K3+nLBDoL7TKtsOB394c0WYUDqK3zO984p0hEKx2s0yVM 0rmQpuoaJcL8U7wLOHyBIA4FGlFRwp721ZTEPZF+Si+AUOSiIJioxicuYDLSVnAygHFK NSc45zRJv2F62d6JlPmz7xNbcjDYtp/1oU9zblHkl+MyGOdaMKqGUFSN95e6nbRPVb0u xuOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WZz1rVcysECKjgFGlRjLXiJ1wVpK2llVosOpFRKZ87Y=; b=PXu2+ML002zgWdA2iWBsii823TDPTWqBNJI4rLOsGhMfhvVANN/1DNMbXjTnMt4eqW mhPuncBZ3vz3B3RcfZPwgKl4vwH2DCtR29G6JKWYRVF+NlNOyhc5O/G0U7ASLT8xTePP iZp0Wa9i4mz+h75vkGhSe/EqH+zOi1IIZwY39P1Pw0s8hJop4XJl8zD6kGRFWAoHCypw smLi4x7fMNd/5fo67t1WlKJZ209PucY9lnKEAouuJSR5jwSjvVkMuE5XzlpPGS7fW0T8 zNZ1eg41TXZBZfvzj9vbDxH1dbPaNt/Kx8XYorBhuheukYaJMlS0pHUaprm21Pw3uXta xg3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kSCQkPJG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j26-20020a170906475a00b0073d8f141e76si7938401ejs.130.2022.08.30.07.48.33; Tue, 30 Aug 2022 07:48:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kSCQkPJG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230184AbiH3OI3 (ORCPT + 99 others); Tue, 30 Aug 2022 10:08:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229647AbiH3OI2 (ORCPT ); Tue, 30 Aug 2022 10:08:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79558F8244; Tue, 30 Aug 2022 07:08:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1CE1861509; Tue, 30 Aug 2022 14:08:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7504C433C1; Tue, 30 Aug 2022 14:08:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661868506; bh=ux4h3Llu3Xn8hcq4G08hx6TYSq1WAZloO+EsuQis5QA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kSCQkPJGPWzIGcKEolE5zeH0J3N2NX+yq4V5Bfos9C3jmc9u4E+4vNZjs9Kz5ysCY CsRFA37iNEE9D3UC3h6jDf4yz7UKom9t1fNa/DfNxHQuz16Wcn8+H/cKH24eNg2Bsa g1SIRJeuG7368DsmalEt047R9xDQX2kzKHukhCMY= Date: Tue, 30 Aug 2022 16:08:23 +0200 From: Greg KH To: Wesley Cheng Cc: balbi@kernel.org, Thinh.Nguyen@synopsys.com, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, quic_jackp@quicinc.com Subject: Re: [PATCH v4 5/9] usb: dwc3: Avoid unmapping USB requests if endxfer is not complete Message-ID: References: <20220817182359.13550-1-quic_wcheng@quicinc.com> <20220817182359.13550-6-quic_wcheng@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220817182359.13550-6-quic_wcheng@quicinc.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 17, 2022 at 11:23:55AM -0700, Wesley Cheng wrote: > If DWC3_EP_DELAYED_STOP is set during stop active transfers, then do not > continue attempting to unmap request buffers during dwc3_remove_requests(). > This can lead to SMMU faults, as the controller has not stopped the > processing of the TRB. Defer this sequence to the EP0 out start, which > ensures that there are no pending SETUP transactions before issuing the > endxfer. > > Reviewed-by: Thinh Nguyen > Signed-off-by: Wesley Cheng > --- > drivers/usb/dwc3/core.h | 3 +++ > drivers/usb/dwc3/ep0.c | 5 ++++- > drivers/usb/dwc3/gadget.c | 6 +++++- > 3 files changed, 12 insertions(+), 2 deletions(-) > This commit does not apply to my usb-testing branch. I've taken the first 4, please rebase and resend the rest. thanks, greg k-h