Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5773373rdb; Wed, 13 Dec 2023 21:19:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IGybp4wu0O5KZn9SjdqxoWk/56WzigP+zBGxBpM7mA2nZFj4ocqa9vjNuHynT9xrS5t6EWv X-Received: by 2002:a05:6e02:180c:b0:35f:7585:e322 with SMTP id a12-20020a056e02180c00b0035f7585e322mr2758003ilv.56.1702531181273; Wed, 13 Dec 2023 21:19:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702531181; cv=none; d=google.com; s=arc-20160816; b=X1cTgQiBT544Mg254D3zsvZQlBhKoETHaXXiGJGdrOEd7Htg2HbYxrgzIDxVlRo3Z0 3ysPQr8WdHokekhnH96sbUQ6ePVlGln7uVXIXDV7wlFZsxKPvrp+PgMPLZ+1eeS8EB+T DNRW+XTErMesuF/nbWsTDmexWoPLPAfVeXqaBWDdXSisCcDwZrttpJOJkVZMM+RqSIm+ WAtHRDB+uWTCVZ5QQ/i/i5rzoX8aTZaZ/vWCAtlos02Hj0t5i8j/z/n4kPHSmUmnMZag bX64SV0i/RBRKiqBkoyGtaPbbmkbDUwfvwr+b38vIW6+s4wpWgmLaexgm434yoBv7AEh Gxsg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ebgC6Es1TWLTrA7P861m7mbGtvNZNIYlwsAipKfKxek=; fh=f7tMtLaMxEjKLYJiZfPF2XccGzuhxwdZsa3Lhz9q9ko=; b=pwg/KHQsAOFKtbKig1vQdwLVzGcdZIbGGRmte92o5vQF86rSU+M2/sXiKOtb1xSLw7 /uc5KNfMLlEatphFZV6O/Ix7PKZxGjE6wLOKg7zt2no8MqO0Ju20aOlaqEjWdb/WOUGL hvoAU63LGp2oT5G/GSBfAAAg15mlc7VX/wpYKTJ9aURdXk9w6+7nEQIJ7pYG9Mdsl245 lKfyyTUAe1pQ2nbi6e6SHfrD9PbnMHAhYTvmJ7r97rDDZT9esI9L61JQJOygKHhN0kBi OL6bwk94fnLX07lCOoPdgvQzXcAkH+NGiaXgi6aS3rso9O5Vr80bEx2+ywj0icpE1Ccp LgcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=isAl+ThA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id v1-20020a1709028d8100b001d34798ca50si2863194plo.615.2023.12.13.21.19.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 21:19:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=isAl+ThA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id A7B4382CEFFB; Wed, 13 Dec 2023 21:19:38 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443160AbjLNFTX (ORCPT + 99 others); Thu, 14 Dec 2023 00:19:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443171AbjLNFTW (ORCPT ); Thu, 14 Dec 2023 00:19:22 -0500 Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15711113 for ; Wed, 13 Dec 2023 21:19:28 -0800 (PST) Received: by mail-oi1-x22d.google.com with SMTP id 5614622812f47-3b9e2d50e61so5384669b6e.2 for ; Wed, 13 Dec 2023 21:19:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702531167; x=1703135967; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=ebgC6Es1TWLTrA7P861m7mbGtvNZNIYlwsAipKfKxek=; b=isAl+ThAtprMNGNTOz2hovcbI39ECXCm7OFgUmiSqR43kkR0Q7NY8JmymvKK+zDpRQ kFMGP0FwhszabqZJtZ9VRl/Izjnl3yuWJqvrs40P6VXPoFPtAy7V22sW/wB13eqIE6/B 6+KkGHkZdsvsNjDWuFEmkc72rXOiq3uW7K4O0mc60wZlpo8AJqQ2ewmPtoGDJBIJK4B4 rD+1PJzq5zGsB8xpiT6rx0JjHqnuiBKY7gF6gGdsFZpq5p3tQ2XDhT+9Ex4hg7Q4LWcs 4S5wqa4+MpZSkU+sx91h3LL7VsHtIcA388q735okyZEnuXljsZYvPn0HPHFwE1liPY2k 9a/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702531167; x=1703135967; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ebgC6Es1TWLTrA7P861m7mbGtvNZNIYlwsAipKfKxek=; b=kWP4ul31yAT5hXg1n/otyy86obXJSkmm+XXAWiMibkonSymHJKUuKtCwIDdT2ewV4N sRLQ2meK4gVKQUbVae/K86QTv84rTfpofk0E9pdRYV3+4QhKfD3Deg3Kfy6l9iSLhnjE AflgLp0yTQ8ukKniRuUT9FPw2BR8v5R+QYg8mCnYyI2Aobu088BqX1fs7HrehCPChDCS ukBMbQ+eMgH5JkYtynh0Tn8wX2r3EzDpL59KzG2uvf3qSOWZ+tkrC0SWcfhEkF5cL99J qhgFWHAsZEEnhD5SvS5JsrY7JUEyk/BCatBzqUW+k1ukf0qJbLbgUCQE40imclfcQfra 9SVg== X-Gm-Message-State: AOJu0Yzy4KdXJGJMDEsgC3L2Sb6/xh+Syhj+GPQgJaSO/2NQhTFBsLrl 7jOViitljdD/ozeO6SKhdRIdApRzNnm8zvo4mw== X-Received: by 2002:a05:6808:1686:b0:3b2:c242:aaee with SMTP id bb6-20020a056808168600b003b2c242aaeemr11190614oib.42.1702531167246; Wed, 13 Dec 2023 21:19:27 -0800 (PST) Received: from thinkpad ([117.213.102.12]) by smtp.gmail.com with ESMTPSA id sm5-20020a17090b2e4500b002867f87d103sm12049902pjb.50.2023.12.13.21.19.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 21:19:26 -0800 (PST) Date: Thu, 14 Dec 2023 10:49:19 +0530 From: Manivannan Sadhasivam To: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= Cc: lpieralisi@kernel.org, kishon@kernel.org, bhelgaas@google.com, mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 6/9] PCI: epf-mhi: Enable MHI async read/write support Message-ID: <20231214051919.GE2938@thinkpad> References: <20231127124529.78203-1-manivannan.sadhasivam@linaro.org> <20231127124529.78203-7-manivannan.sadhasivam@linaro.org> <20231213184829.GA924726@rocinante> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231213184829.GA924726@rocinante> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 13 Dec 2023 21:19:39 -0800 (PST) On Thu, Dec 14, 2023 at 03:48:29AM +0900, Krzysztof Wilczyński wrote: > Hello, > > Manivannan, you will be taking this through the MHI tree, correct? > Yes, to avoid conflict with other MHI patches, I'm taking this series through MHI tree. > > Now that both eDMA and iATU are prepared to support async transfer, let's > > enable MHI async read/write by supplying the relevant callbacks. > > > > In the absence of eDMA, iATU will be used for both sync and async > > operations. > > > > Signed-off-by: Manivannan Sadhasivam > > --- > > drivers/pci/endpoint/functions/pci-epf-mhi.c | 7 ++++--- > > 1 file changed, 4 insertions(+), 3 deletions(-) > > > > diff --git a/drivers/pci/endpoint/functions/pci-epf-mhi.c b/drivers/pci/endpoint/functions/pci-epf-mhi.c > > index 3d09a37e5f7c..d3d6a1054036 100644 > > --- a/drivers/pci/endpoint/functions/pci-epf-mhi.c > > +++ b/drivers/pci/endpoint/functions/pci-epf-mhi.c > > @@ -766,12 +766,13 @@ static int pci_epf_mhi_link_up(struct pci_epf *epf) > > mhi_cntrl->raise_irq = pci_epf_mhi_raise_irq; > > mhi_cntrl->alloc_map = pci_epf_mhi_alloc_map; > > mhi_cntrl->unmap_free = pci_epf_mhi_unmap_free; > > + mhi_cntrl->read_sync = mhi_cntrl->read_async = pci_epf_mhi_iatu_read; > > + mhi_cntrl->write_sync = mhi_cntrl->write_async = pci_epf_mhi_iatu_write; > > if (info->flags & MHI_EPF_USE_DMA) { > > mhi_cntrl->read_sync = pci_epf_mhi_edma_read; > > mhi_cntrl->write_sync = pci_epf_mhi_edma_write; > > - } else { > > - mhi_cntrl->read_sync = pci_epf_mhi_iatu_read; > > - mhi_cntrl->write_sync = pci_epf_mhi_iatu_write; > > + mhi_cntrl->read_async = pci_epf_mhi_edma_read_async; > > + mhi_cntrl->write_async = pci_epf_mhi_edma_write_async; > > } > > Looks good! > > Reviewed-by: Krzysztof Wilczyński > Thanks! - Mani > Krzysztof -- மணிவண்ணன் சதாசிவம்