Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1625801rdd; Thu, 11 Jan 2024 05:02:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IGZOh0GXmZPs1HDUEILYwxcZclBGjee3qHu8ge3k2Gn318qAtQyNCLOqagFW9kuWnp8qMFM X-Received: by 2002:a05:6808:164b:b0:3bd:3a7d:4fdf with SMTP id az11-20020a056808164b00b003bd3a7d4fdfmr1168537oib.62.1704978122513; Thu, 11 Jan 2024 05:02:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704978122; cv=none; d=google.com; s=arc-20160816; b=e0ivZSE18aKQNPyyIfc72n4z7NifipPA2qUwHUan2iI1j6CqHawdQGVnEs2UXIc3FO 17W9D+I2B1bZu31qWj4nM0KD6vCcLXb1x/8nocCAAzTW7bQ6jeb2XQ8yd2gWz4rWUQkz cZlPvNGmf54Ms1cHTHOMTooJyYb4O1i5pTX6QGd1izZ75aukFNkHhaCXK1tC/OkHm+ww cmeyy5E1XfLJzWVwjjGH+Ene1GiqSRTx54eI1NZYxSq9/+cuODJQolh/aT7f4mzf6N94 Vc95NcsHoTWRFpF+unpik/cAK+6CodVqy6AzJhublhjQtZee9azuQOG533BFavFNnA9k z3xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=PPK6b4HMONAjOLQhJy+dcD8B/FlzQW7e7QMEXCQPqAY=; fh=TJM+t2b4q/Ru5jrWemqL4qvDsEM78FSxrObmDUUlOG0=; b=RLfYBhjalYueI3ykj6MHKHzY5x5qMCXUyTlKBJwlqqlP/zoAa4E4y8du+N15LEDAD2 OO/JgRADwVtQGn023p9Vw1kuPpwHjcfJnipZ0L6TPws0cKEkGJGWp676asFlT1DCwK9n FNzPrORO50CNdlB48FwjZ14eo0bKNMjqW0NedL3usr0xclntQkT1oRsufn3bgQ/u7f6S 8HkDEAO78QDmjoE+4Zk6o0ox+RflhxHz+Jbql6u+qVUWYrKzjjle5WqhKE+1E4Iqj06M bG22LnbWQp73TeYdqKvQOtqGfE8R3t8g6O2tpxH0NgiqQMXqiXOu+ul6QqThEhT3tt7d iIWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="p/hWEI5E"; spf=pass (google.com: domain of linux-kernel+bounces-23609-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23609-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id v15-20020a54448f000000b003bd39777136si329651oiv.264.2024.01.11.05.02.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 05:02:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23609-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="p/hWEI5E"; spf=pass (google.com: domain of linux-kernel+bounces-23609-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23609-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5DB8428950C for ; Thu, 11 Jan 2024 13:00:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BF76315EAB; Thu, 11 Jan 2024 13:00:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="p/hWEI5E" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CE52915AFD; Thu, 11 Jan 2024 13:00:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7A51C433C7; Thu, 11 Jan 2024 13:00:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704978049; bh=PPK6b4HMONAjOLQhJy+dcD8B/FlzQW7e7QMEXCQPqAY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=p/hWEI5EyL2at+hrBZ2ezeBb4JDwY5hc0eaiyuNYU1pX7lRUtqhzgLoMbCwvXZf4Y 1QAXhXrgYkbAlB/jTyNBGjJqM6DoblonT3pMN8NYVhXeAQASD7J/X4Yb0W5H77IXok 6uuOYDDDkO8eJxju/nvNeKFMp9R2teZVf6a4/AX/IDHjoqzZVQ4lMMrDWZjuzFR/ho uwuoFl644z2MCnUH5yjJRxNnIGs7VAYHLl33XuvMAYTNSMXnIxoNFXZcZGktjLFU8t jGaXmBPA3J6PU5GpWL+Y5HrfudXReXHNUQArlOXan4vnZNefvz1nchk7ujJjMP+Tn9 kKg4U/QjeLZvA== Date: Thu, 11 Jan 2024 13:00:42 +0000 From: Mark Brown To: David Lechner Cc: Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Hennerich , Nuno =?iso-8859-1?Q?S=E1?= , Frank Rowand , Thierry Reding , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Jonathan Corbet , linux-spi@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, Lars-Peter Clausen Subject: Re: [PATCH 05/13] spi: axi-spi-engine: add SPI offload support Message-ID: References: <20240109-axi-spi-engine-series-3-v1-0-e42c6a986580@baylibre.com> <20240109-axi-spi-engine-series-3-v1-5-e42c6a986580@baylibre.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="48Qe3jNucI2DGcEY" Content-Disposition: inline In-Reply-To: X-Cookie: Does the name Pavlov ring a bell? --48Qe3jNucI2DGcEY Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 10, 2024 at 04:31:25PM -0600, David Lechner wrote: > On Wed, Jan 10, 2024 at 3:39=E2=80=AFPM Mark Brown w= rote: > > Glancing through here I'm not seeing anything here that handles DMA > > mapping, given that the controller will clearly be doing DMA here that > > seems surprising. > In the use case implemented in this series, the RX data is going to > DMA, but in general, that doesn't have to be the case. In theory, it > could get piped directly to a DSP or something like that. So I left > the RX DMA part out of the SPI controller and implemented as a > separate device in "iio: offload: add new PWM triggered DMA buffer > driver". The SPI controller itself isn't aware that it is connected to > DMA (i.e. there are no registers that have to be poked to enable DMA > or anything like that). If there's a buffer being assigned to the device (or removed from the device) it needs mapping, this will ensure the device is allowed to access it if there's IOMMUs involved, and that there's no pending cache operations which could corrupt data. --48Qe3jNucI2DGcEY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmWf5noACgkQJNaLcl1U h9CuKAf/RDosGN2d/f46OnxM+Ws4AH7ATVJNv3+gKUg32xfJT7BjuqncA+1bQ/hS cPrZ9A2vf4/n4/+HpsHS1X6REC/rSB0o5u67E7NLYOnJANnmHlATYELNc825KSbc ZQTP2fS3CvilSRdIpZWUJv4eaJb++n5tCdiLDvdkPn9kb4If0iBdPCL4rqSOJ+1s 8QXhb479acdwTTC/CtW+ozWaMASBy9p+UGpyqJ5QWOur0HjJzcdWk2LJnwhupRb/ 4KM9S+a9xXm2zhvSt2OZw+4gE/BDqqdLbGEr+Oyxpkz/kPkXEUEyDemoIuG5qpbK snNWOyM2Gd+VVlwlvJCdeQGfxyL/OA== =ufYN -----END PGP SIGNATURE----- --48Qe3jNucI2DGcEY--