Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4178482ybv; Sun, 16 Feb 2020 15:57:40 -0800 (PST) X-Google-Smtp-Source: APXvYqyPnEmmacfCSx+eMHyIqGzVWfaItsJ8w+asDW6t/epfsp3y71G+hZKpV0O0JgekIMMpFA5G X-Received: by 2002:a9d:7dc9:: with SMTP id k9mr10190862otn.117.1581897460393; Sun, 16 Feb 2020 15:57:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581897460; cv=none; d=google.com; s=arc-20160816; b=c2U3bY1EF1VOdKd0rNIm5F3j0wBeg7iu94DGwMoO2KZqq3MZWrGxC+2bd46YP/gfOv fQJXBP4r3psnHbGPtZF1FykYY86EYZ3/B31Z+ujKELTGG72gXrYr7JqcZa65W3Nm3Y5s PViGo/TeohmvExfUbASPSuCUDIoT+7apEyCeM8fINHtm9U6Hu8LB14v/byki9hDGLBvq WllxUQlLfp1YnaR9TIIB6B2VJQSbs+zk+3N2jMTZ9HaxCs4/4YgIJZWB+HmnqxHiqDu8 V3UWaxyXk2CzKewC75/1LGVpCeH9zp74r3mB8num+n2Rq4R7MsX0TMKagvCGmiV5nSk3 3QDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:cc:to:from:date:references :in-reply-to:message-id:mime-version:user-agent:dkim-signature :dkim-signature; bh=Iq3LVkD0V43Pc+mO0wAfFqV5qSaPvQ/MM4fB/BoXF80=; b=iiYThzfqrKrz1JU8Hjb+6GcXaITSsrAwVkX3Jg5Rxan2h2bDJTW144EHZWuLQm2wSS a6OZPXC2eIVj8uXNOJ++5dWTcs+RhSWDyC4ARSfLlzHfGkgjwsijZ0l3qw7l9FBq6sZ8 BRl+Jl/lwAKZDMUC3JPn28F6aSFn4hBxpiGqJVnTK1WlSWWdM0jJ5WPVyPe0gUCXYR80 xLKuTbP34GdJsgUcyHdSOzdpZC/cpoo1kEEDRhWUPKPGrNI1jSyZYYHGRAzrsmx+wi5w 8gZuIPbQ9g/9qUv+fQHQ+ZmIJ1/rE+JwqOWQ86qsjJEKPXW1obNnUiVNLgYeF444B0lc UoCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm2 header.b="rcplxmb/"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=lq1ibPzk; 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 m4si6422034otr.268.2020.02.16.15.57.26; Sun, 16 Feb 2020 15:57:40 -0800 (PST) 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; dkim=pass header.i=@aj.id.au header.s=fm2 header.b="rcplxmb/"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=lq1ibPzk; 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 S1726183AbgBPX5G (ORCPT + 99 others); Sun, 16 Feb 2020 18:57:06 -0500 Received: from new2-smtp.messagingengine.com ([66.111.4.224]:42941 "EHLO new2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726067AbgBPX5G (ORCPT ); Sun, 16 Feb 2020 18:57:06 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id BF5DB23D1; Sun, 16 Feb 2020 18:57:05 -0500 (EST) Received: from imap2 ([10.202.2.52]) by compute4.internal (MEProxy); Sun, 16 Feb 2020 18:57:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm2; bh=Iq3LVkD0V43Pc+mO0wAfFqV5qSaPvQ/ MM4fB/BoXF80=; b=rcplxmb/8uWm7hKf+9c9zjG9b88Q8NCjzvGSxUne58cHaK5 AGJhSJkKKdRdGy/8SFYXzKicYHBTdfm4Mv/j9go6EoTaIFAoFzkX7YFlMNjcEgyq 1As7W1TLCXXLGFD7f3i1uNFtEs7bMNyBGDTCZMQja640DU9muoOv/sRp/Ql04zBe G/CTYIWMRHXdTstH4u7DQRtdwFJP2mFIBhNVfAiKTKDTt3ziZr9cvBH+ORaSfDYl fVPXs1iHNwHc3GfRwT1UHXLX+F3hNv2uC+FtYdd45N33kcu93E2ccWrYHHpfzw1X 1TG3oohc3u2Tj/Ys8Xn2Rog9DB1fG33VvhltpfQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=Iq3LVk D0V43Pc+mO0wAfFqV5qSaPvQ/MM4fB/BoXF80=; b=lq1ibPzkpvgjiRKofRT7M1 CJUr2d1nf4CUXLJnak+rjb0fZRWL0VhhuU+rrO35vEmz7Jw1+QMVBIu/b/h7rLJi lHiZeyqbeBUNCJ7945aOHA9WnOIlcudgWi9R8MAv3CbMOzMdqyk0UzeDgy8TuKD4 csdlzFjeXRtbco+GhyUihPe62TfyXN8ww4hxA34/9mMYmvZBC0zCuD/sxtEsfXdr cA2mBC2oA6FQ34SzK5C9v2g9Cmqc3r3bqFaZ8QPPjmqfJy5WWAaTwAAquf4iHyDz izgPv1QSnIshP1wmDLuHQ2XPZxY21Ym/hHqx+XqYiZlbujMYyzj93NC/FbiCLu2g == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrjeehgdduhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedftehnughr vgifucflvghffhgvrhihfdcuoegrnhgurhgvfiesrghjrdhiugdrrghuqeenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvfiesrghj rdhiugdrrghu X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id EE60AE00A2; Sun, 16 Feb 2020 18:57:03 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-802-g7a41c81-fmstable-20200203v1 Mime-Version: 1.0 Message-Id: <3a053c3e-0fec-4ab9-b941-a335524b3303@www.fastmail.com> In-Reply-To: References: <1579123790-6894-1-git-send-email-eajames@linux.ibm.com> <1579123790-6894-7-git-send-email-eajames@linux.ibm.com> Date: Mon, 17 Feb 2020 10:26:57 +1030 From: "Andrew Jeffery" To: "Arnd Bergmann" , "Eddie James" Cc: linux-aspeed , "linux-kernel@vger.kernel.org" , DTML , "Mark Rutland" , "Jason Cooper" , "Marc Zyngier" , "Rob Herring" , "Thomas Gleixner" , "Joel Stanley" Subject: Re: [PATCH v6 06/12] soc: aspeed: Add XDMA Engine Driver Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 11 Feb 2020, at 03:05, Arnd Bergmann wrote: > On Wed, Jan 15, 2020 at 10:31 PM Eddie James wrote: > > > > The XDMA engine embedded in the AST2500 and AST2600 SOCs performs PCI > > DMA operations between the SOC (acting as a BMC) and a host processor > > in a server. > > > > This commit adds a driver to control the XDMA engine and adds functions > > to initialize the hardware and memory and start DMA operations. > > > > Signed-off-by: Eddie James > > Hi Eddie, > > I'm missing the bigger picture in the description here, how does this fit into > the PCIe endpoint framework and the dmaengine subsystem? > > Does the AST2500 show up as a PCIe device in the host, or do you just > inject DMAs into the host and hope that bypasses the IOMMU? The host needs to coordinate out-of-band with the BMC to communicate host addresses to be used. The host should configure the IOMMU as required before triggering transfers (either from it's own XDMA interface or requesting the BMC queue the transfer). Andrew