From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="eV2lu8zH" Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 703CD123 for ; Thu, 14 Dec 2023 02:55:14 -0800 (PST) Received: by mail-oi1-x233.google.com with SMTP id 5614622812f47-3b9d8bfe845so6219155b6e.0 for ; Thu, 14 Dec 2023 02:55:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702551314; x=1703156114; 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=IfG/ysGevH7N1+fittwEeggjkDoQ9clr+IHO2E1aJ/Y=; b=eV2lu8zHrNORcFeXmgxQb2QFeyr/GSPmcwMPHWAMh2GUyiaTAYXpdF/5b2Faq2n2v0 4GIpUAh5Iq7AZOugR75bFsvikFYpgn0SVQYLA+lOtU62Do8tNKQXyHbdf/elMLa/dQld ZfIuMFltbSIf5xoaWZxUTL8U5a3lpW/YNS1BSuEs09fJ+0dFXojQVOVNnbMASCzhCGuD GxTe3+4KECYO1NAGSJ40S4qMVNsR5mPB3IA6P3uSyHvDC694ebQZMfjdKYf6EJksqE+N 28ZCWJLGKvdbbtoBGB34DLq0UU0wRF9S2FvKXVWjvikLFkEUYOGV5uCh8iMNm0zZCVE7 fwYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702551314; x=1703156114; 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=IfG/ysGevH7N1+fittwEeggjkDoQ9clr+IHO2E1aJ/Y=; b=abBTEb3UDMhKs5DdWzX5tuBsTc/AixHFsCh2ri0jmygMGZi1C9sDMtIa9m+az+izj8 DP5cq34nX7W7VXri5t+Eu6ve2fAtECYhJCNlNN8m5Yf9DUgDpHGYaNZd9/KoKcnP+6Mi E2W9QWEpsJPhuqNrWq9szam6DGmQeteY1z6V+64TV1b3gTaQ+Ayau7qBboQqJUH8TaT9 9Rn2CUumf4Nj9FaUOcKouWYplPJ2GRix+PnfEAzMHjgVW5h5Qc7FBRQigCORLPT4oSxz evKZmqQZ8cH894ieGq4Nzw+RPoKFQw+CcfYfYEZfNMggfwfOYYCLlZ6ndfTITXaElVi/ Enng== X-Gm-Message-State: AOJu0Yz2D5DPRnlHRfiJyqUhrZyAHn6cGHs+iS/+zTeJCOK18DLjZ9rc plNndy86En9tFO4+vLHil6FSLAxAMRPVYtAI0g== X-Google-Smtp-Source: AGHT+IH9dKZ7weDdopz65PuRKkbO/Mp6K8kuMEeI2h6VFnM6F5xt5c41hlBPLlHFALw9Ax8DidTESA== X-Received: by 2002:a05:6808:1690:b0:3ba:3234:a068 with SMTP id bb16-20020a056808169000b003ba3234a068mr970504oib.110.1702551313755; Thu, 14 Dec 2023 02:55:13 -0800 (PST) Received: from thinkpad ([117.216.120.87]) by smtp.gmail.com with ESMTPSA id g25-20020aa78759000000b006d0951e74cbsm6780784pfo.178.2023.12.14.02.55.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 02:55:13 -0800 (PST) Date: Thu, 14 Dec 2023 16:25:06 +0530 From: Manivannan Sadhasivam To: lpieralisi@kernel.org, kw@linux.com Cc: 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 0/9] bus: mhi: ep: Add async read/write support Message-ID: <20231214105506.GA48078@thinkpad> References: <20231127124529.78203-1-manivannan.sadhasivam@linaro.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231127124529.78203-1-manivannan.sadhasivam@linaro.org> On Mon, Nov 27, 2023 at 06:15:20PM +0530, Manivannan Sadhasivam wrote: > Hi, > > This series add async read/write support for the MHI endpoint stack by > modifying the MHI ep stack and the MHI EPF (controller) driver. > > Currently, only sync read/write operations are supported by the stack, > this resulting in poor data throughput as the transfer is halted until > receiving the DMA completion. So this series adds async support such > that the MHI transfers can continue without waiting for the transfer > completion. And once the completion happens, host is notified by sending > the transfer completion event. > > This series brings iperf throughput of ~4Gbps on SM8450 based dev platform, > where previously 1.6Gbps was achieved with sync operation. > Applied to mhi-next with reviews from Bjorn and Krzysztof for PCI EPF patches. - Mani > - Mani > > Manivannan Sadhasivam (9): > bus: mhi: ep: Pass mhi_ep_buf_info struct to read/write APIs > bus: mhi: ep: Rename read_from_host() and write_to_host() APIs > bus: mhi: ep: Introduce async read/write callbacks > PCI: epf-mhi: Simulate async read/write using iATU > PCI: epf-mhi: Add support for DMA async read/write operation > PCI: epf-mhi: Enable MHI async read/write support > bus: mhi: ep: Add support for async DMA write operation > bus: mhi: ep: Add support for async DMA read operation > bus: mhi: ep: Add checks for read/write callbacks while registering > controllers > > drivers/bus/mhi/ep/internal.h | 1 + > drivers/bus/mhi/ep/main.c | 256 +++++++++------ > drivers/bus/mhi/ep/ring.c | 41 +-- > drivers/pci/endpoint/functions/pci-epf-mhi.c | 314 ++++++++++++++++--- > include/linux/mhi_ep.h | 33 +- > 5 files changed, 485 insertions(+), 160 deletions(-) > > -- > 2.25.1 > -- மணிவண்ணன் சதாசிவம்