Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp331060lqb; Tue, 4 Jun 2024 12:43:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVoFDtXlKtTcVGNXAyaY7jf7kg4Tc7AzFl8UMd8Q/r7cbJMZ7i1HM8sfwCSk2esyAfhaMaTmWw/OkGXdpB1JLBETdvRdzoV1ExvEb7QqQ== X-Google-Smtp-Source: AGHT+IHXYgqX+TD+sTSE80lwBbTCWwq9FmdwnKU3NlSfI13RTvs+IHMoLDnA0wmbCjI/nyqMOF/z X-Received: by 2002:a05:6214:3292:b0:6af:8067:e423 with SMTP id 6a1803df08f44-6b02266d0bemr4384106d6.5.1717530232611; Tue, 04 Jun 2024 12:43:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717530232; cv=pass; d=google.com; s=arc-20160816; b=o5xVfqWiSWgKCz1HbvzlyZ5k3e9crmlpA8dKS0P+Dq3rW2/DqrBWdVyCGkiJONWjmX 29xgGAPFZ//zMoeIYr3VT68PXwpopGtMjuJQEyoUT3iIJGzUiwUcBfxCsxs4iL7rnm2n QRgdtbVspTsPSm2w0i5u+JFcPpy0u+ZvqopzLgSzdLWgMtUSFQ6qd5epLR/rhQSi2Mro Y8WCMyu0Q+H8ii+zdubRkGZVrt3tEFsBBop+gRj0J/otJ1it9iGbd6q3RBcSAShXoUwS 0n86EMGTQ2N7oupgbobLNOfoXetScPsBi3lj/KQftfYwaPAXzOo5h83ugda8SV+dI6VV 6dsA== ARC-Message-Signature: i=2; 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=ldmOMzI6JKAvFAm66/33xSFPao4cv5kL7TgZC2bsqb8=; fh=IXMGd4GklKQ0dbVVyRpx7NfitH0uYlLShyw3TLE2zWQ=; b=kAxyPKQFr1lvzMmFOQU8gVURfp0C0sg4YEDz4D2nPOBkN/4XAT3KpT4v53uDaGJaqq EdkPqHRcm9Ykg/72l8/kWWbglltZw8SrBA06r8eeUZt6IK28fEWwTa//dHKgAK4obGcd yLN6asPrRI5kE3ZMspWe3IWEg9TL/vruwetL8+hOniwBjV1BREIK2RbxShGRB/wlNmzC UsrByhWjhx19kKVs/zKTf4HuC4O5xlw3Cpq38tdv0z+qK03MOl3VCyv7881dTj4E/q2F jYaEPQMKI670MaMaqOK6teuTQ1YSTtFyJ+YEYiu6yVErxZaIcrHQY+Z9AjKAeOatYv76 OCMg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S4+7ieW2; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-201301-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201301-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4b403c00si121603556d6.295.2024.06.04.12.43.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 12:43:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201301-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S4+7ieW2; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-201301-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201301-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1D6111C22E5E for ; Tue, 4 Jun 2024 19:43:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 972B914B942; Tue, 4 Jun 2024 19:43:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="S4+7ieW2" 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 A9E8AB644; Tue, 4 Jun 2024 19:43:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717530181; cv=none; b=g8AZF5uHFtkgRMaVtcVHh8KrVJ2H66JniaUxhkHwntFQMCa7befMX8R0z1qUFvVAUTB/vJ+dM2X1JmAFxsQWPj90eC97yIPWOSRcgcnxvJfJYl3rZMbwhlE2+yTqMFC8Pv24FuOaQ9zfZXz10vBC8Ku3plxrIhwLpcoiTBsmC7o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717530181; c=relaxed/simple; bh=ldmOMzI6JKAvFAm66/33xSFPao4cv5kL7TgZC2bsqb8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Nj/BoE+oDiRF8IxFHX2qxaNXRpQZWD390WnFRmkD+wBRJixl0LJeBKLLdSfTvaMw+DRQymLgBSIMM2ts/5ar9/fRunG6O/xJQ5W6I7ahv+VtJ4jWtKSHPhUVjA6Rsh4MMM+O5GORf/7E9wD8WibfThP1215DwdP4CDlJ14cUZTI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=S4+7ieW2; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2104CC2BBFC; Tue, 4 Jun 2024 19:42:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717530181; bh=ldmOMzI6JKAvFAm66/33xSFPao4cv5kL7TgZC2bsqb8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=S4+7ieW2lrkBPI/ORGDstBDLJ0waUKV/32518A4MoIvMgYZ1saGUFqsnuNVYM+GKd RT+nVsbnCMGYM5UsUxzels6jUFEXQ1UadoCsarf1vPNGan3+4lO/D0TkHOppUl0Y/W nNkvlf1wYGrp4WG42l0x4QG/IPr0HgXyGtk/9nfeZYPjGBbRLqd/aOUYG1oIGPBfl3 GO7aYTFhY6z6btrIMDeqWn93aWjURud6vd/SlTcosNuPVSOFvEJR42HelD/eYzg1P9 lJJ7EUXgGdNiNf/dxPjzCnuBGOD4Bm+erVO3pcArVzpG6+9R3xNXNiF55MLj+8VHkD Bsdtd+IfQRM0w== Date: Tue, 4 Jun 2024 20:42:55 +0100 From: Conor Dooley To: David Lechner Cc: Nuno =?iso-8859-1?Q?S=E1?= , Mark Brown , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nuno =?iso-8859-1?Q?S=E1?= , Michael Hennerich , Lars-Peter Clausen , David Jander , Martin Sperl , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: Re: [PATCH RFC v2 1/8] spi: dt-bindings: spi-peripheral-props: add spi-offloads property Message-ID: <20240604-awry-container-a8c12f421a81@spud> References: <20240519-abreast-haziness-096a57ef57d3@spud> <20240522-gullible-ibuprofen-cf9111c25f6f@spud> <5ad0b5782434eaf4cf565cffb0e4c14b7414ae38.camel@gmail.com> <20240526-peculiar-panama-badda4f02336@spud> <10991373cb9603803df63d8236c475807f6dde68.camel@gmail.com> <6db8ba66-841b-4425-9dd4-9d6e7b0463bf@baylibre.com> <20240604-oink-recognize-682c553a18e5@spud> <97246fdc-bb33-45bc-a24a-c2595920421f@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-sha256; protocol="application/pgp-signature"; boundary="N7XUnDPkHiYJyKjd" Content-Disposition: inline In-Reply-To: <97246fdc-bb33-45bc-a24a-c2595920421f@baylibre.com> --N7XUnDPkHiYJyKjd Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 04, 2024 at 02:39:18PM -0500, David Lechner wrote: > On 6/4/24 2:33 PM, Conor Dooley wrote: > > On Thu, May 30, 2024 at 02:24:17PM -0500, David Lechner wrote: > >> On 5/29/24 3:07 AM, Nuno S=E1 wrote: > >>> On Sun, 2024-05-26 at 18:35 +0100, Conor Dooley wrote: > >> > >> > >>>> It might be easy to do it this way right now, but be problematic for= a > >>>> future device or if someone wants to chuck away the ADI provided RTL= and > >>>> do their own thing for this device. Really it just makes me wonder if > >>>> what's needed to describe more complex data pipelines uses an of_gra= ph, > >>>> just like how video pipelines are handled, rather than the implement= ation > >>>> of io-backends that don't really seem to model the flow of data. > >>>> > >>> > >>> Yeah, backends is more for devices/soft-cores that extend the functio= nality of the > >>> device they are connected too. Like having DACs/ADCs hdl cores for co= nnecting to high > >>> speed controllers. Note that in some cases they also manipulate or ev= en create data > >>> but since they fit in IIO, having things like the DMA property in the= hdl binding was > >>> fairly straight. > >>> > >>> Maybe having an offload dedicated API (through spi) to get/share a DM= A handle would > >>> be acceptable. Then we could add support to "import" it in the IIO co= re. Then it > >>> would be up to the controller to accept or not to share the handle (i= n some cases the > >>> controller could really want to have the control of the DMA transfers= ). > >> > >> I could see this working for some SPI controllers, but for the AXI SPI= Engine > >> + DMA currently, the DMA has a fixed word size, so can't be used as a = generic > >> DMA with arbitrary SPI xfers. For example, if the HDL is compiled with= a 32-bit > >> word size, then even if we are reading 16-bit sample data, the DMA is = going to > >> put it in a 32-bit slot. So one could argue that this is still doing s= ome data > >> manipulation similar to the CRC checker example. > >> > >>> > >>> Not familiar enough with of_graph so can't argue about it but likely = is something > >>> worth looking at. > >> > >> I did try implementing something using graph bindings when I first sta= rted > >> working on this, but it didn't seem to really give us any extra useful > >> information. It was just describing connections (endpoints) that I tho= ught > >> we could just implicitly assume. After this discussion though, maybe w= orth > >> a second look. I'll have to think about it more. > >=20 > > Could you elaborate on why you think you can assume the connections? Wh= at > > happens when you have multiple stages of data processing and/or multiple > > ADCs in your system? As I've previously said, I work on FPGA stuff, and > > everyone here seems to fawn over having in > > their data pipelines. I can't imagine it being any different for ADC da= ta, > > and an io-backend property that doesn't describe how the data flows is > > gonna become lacklustre I think. >=20 > I was more ignorant back then. :-) >=20 > That is is why I said "thought" instead of "think". I am more enlightened= now. Heh, I didn't mean it in a bad way. I just wanted to flesh out why you thought that way. --N7XUnDPkHiYJyKjd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZl9uPwAKCRB4tDGHoIJi 0gwfAP0Q76wab6QDgYXt0Men77yN9JCHnEby3Na84zUrczGQrwD/Xx9CS+IrehyC 9K6TFblM4VF6C/kX3HPENblvp8eKvw4= =LGFO -----END PGP SIGNATURE----- --N7XUnDPkHiYJyKjd--