Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp4034854pxb; Tue, 19 Apr 2022 15:29:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtjF/DuWR7z8733+SlV8EJ8gMjF43Yzkt/svc31yKCEKpT9DEERWk706UB6LHzLO96LOh5 X-Received: by 2002:a05:6402:4487:b0:41d:9622:3292 with SMTP id er7-20020a056402448700b0041d96223292mr19989988edb.330.1650407375799; Tue, 19 Apr 2022 15:29:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650407375; cv=none; d=google.com; s=arc-20160816; b=AswuPpLEQi004sjBkZsg8tyy8gMYiVknUVp1wuNHfEIaWs/aFeDh/afBumAmZmT9si 4Boba5YT8qeMwN2ssWgnkjpm2iOvU6bsjNf3+oiGYWKAuVesU6mmNI+lWxYKs6MPRs1w Ul126kKmH5BHH1nhFQZTmnP75ZNv5fB4NwcYELjWrwYa8Riy2XnVdLggxy+f42N8M+QR mtQjuOwh/FNoz4CzwdSNMVJ9VMOnnW/zzNH4w8ih3lzlGhQsQq/ob4rQJ1M+GQJyYv5N pe2PpOTkry1hOcoIZJBU+ojaZ65C8hI+S9eKVDUqq72Qx8tngeA2zLW0RCQ8PaJN+K7t oiag== 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=EfcNYKLCwnKZXmnKVXUVKQt2aEZHvjgzaIyJ081GNsc=; b=GBbBr4SZP+hfa2HXNThKsyeo1XVJkRoRt9CaKkkFyVV9ENXAOyZ31hCZViLS/NJv1V Qc1U2cZ8uPLir1wEFpdo8xaHW5SM9coIK6tueX/SOOXlfNlHsuoKTemiUCVTuV2Xiui1 ducA9OuMjz00OqcuRZUmr5xlASITnKcoh8s2OyEIWrEMIyAw6r9XamhU/T/TI61dJeKZ 1ghBM4fZcRk7pP6mStAM54IW3MU9qOsoScGfGDnmzlfZOL1jsOYvsiGyziTM0Z04wsus b/PdkD+qiGk0Pcx0KXGhQxU5xiLeIhIkNy8sMgE8i87OPY7sSDsiPBrYzTxCYa6WoEXH Y3ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lKdS9WmO; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w15-20020a170906b18f00b006e85eee5025si405039ejy.504.2022.04.19.15.29.10; Tue, 19 Apr 2022 15:29:35 -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=@kernel.org header.s=k20201202 header.b=lKdS9WmO; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245321AbiDRPQE (ORCPT + 99 others); Mon, 18 Apr 2022 11:16:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345307AbiDRPPx (ORCPT ); Mon, 18 Apr 2022 11:15:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD099BB08B; Mon, 18 Apr 2022 07:12:55 -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 6964960BC5; Mon, 18 Apr 2022 14:12:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 716DBC385A8; Mon, 18 Apr 2022 14:12:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650291174; bh=IVDZmECCaRmoAtMDnJhVFNl6perUjNM7sTyxh9m4brg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lKdS9WmOwcflzN1Th5Ni8eFpXF1nMyP4ivl5hdxkwJn7O3SoazMmyTYgc/mLhe1tX QPMCy5Ds1XUKjXCFD8iAIQK6lFbPeJv7dYEj7ZCoB5U99ZmARohYUcz+irAbyvU+DM pmPcjervlnxx2s3reHgBZrqCyNYRZqRasSguWaT2DqIZggRJA+e/KdCDV5nQUh7v0T gqc6hI6R/Jyvnif51h5bhtIZF1WxVHpuDc2OER4x44ZfHXG7MCzY2vGF86ZGJt+Q2p zTfwuyOsPYrXbkEuItOmAvutmCiwPkRsCgRAITS8GYVQok2vZmSzPRK86CPnAk1+1v 8rXvY/gvs5yBA== Date: Mon, 18 Apr 2022 19:42:48 +0530 From: Manivannan Sadhasivam To: Jeffrey Hugo Cc: quic_hemantk@quicinc.com, quic_bbhatt@quicinc.com, mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] bus: mhi: host: Wait for ready state after reset Message-ID: <20220418141248.GC161722@thinkpad> References: <1649875946-32516-1-git-send-email-quic_jhugo@quicinc.com> <20220418062645.GI7431@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.7 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 Mon, Apr 18, 2022 at 07:53:24AM -0600, Jeffrey Hugo wrote: > On 4/18/2022 12:26 AM, Manivannan Sadhasivam wrote: > > On Wed, Apr 13, 2022 at 12:52:26PM -0600, Jeffrey Hugo wrote: > > > From: Jeffrey Hugo > > > > > > After the device has signaled the end of reset by clearing the reset bit, > > > it will automatically reinit MHI and the internal device structures. Once > > > That is done, the device will signal it has entered the ready state. > > > > > > Signaling the ready state involves sending an interrupt (MSI) to the host > > > which might cause IOMMU faults if it occurs at the wrong time. > > > > > > If the controller is being powered down, and possibly removed, then the > > > reset flow would only wait for the end of reset. At which point, the host > > > and device would start a race. The host may complete its reset work, and > > > remove the interrupt handler, which would cause the interrupt to be > > > disabled in the IOMMU. If that occurs before the device signals the ready > > > state, then the IOMMU will fault since it blocked an interrupt. While > > > harmless, the fault would appear like a serious issue has occurred so let's > > > silence it by making sure the device hits the ready state before the host > > > completes its reset processing. > > > > > > Signed-off-by: Jeffrey Hugo > > > Reviewed-by: Hemant Kumar > > > Signed-off-by: Jeffrey Hugo > > > > I was about to apply this patch but wanted to check with you on using the > > double signed-off by tags. If the patch get's handed over between multiple > > developers then multiple signed-off by's make sense. But since it is you that > > handled the earlier patch also, I think one tag is enough with your new domain. > > > > One more thing is, using codeaurora domain will bounce now. So, please use the > > quicinc domain for Hemant also. > > I'm aware of the bouncing. Git send-email however is not, and its default > behavior can be a bit annoying in this edge case. > > I've seen the dual SoB by the same developer elsewhere in the community, but > if you want things "cleaned up" to the new quic ids, I'll do that. Double s-o-b's are common but in this case you handled the patch all the way and you are still employed by the same employer. Only thing that changed is your domain, so this makes me feel that single s-o-b is enough. Thanks, Mani