Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1929413rdd; Thu, 11 Jan 2024 13:50:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IFOUVtbRxzQA5avNFKWGgAxl2SUHeuHJz+Bi++dyZG1MyRGlZnlxIOcIK6rytOYtivy6vR8 X-Received: by 2002:a05:620a:24c5:b0:783:25f9:ca96 with SMTP id m5-20020a05620a24c500b0078325f9ca96mr527938qkn.118.1705009811744; Thu, 11 Jan 2024 13:50:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705009811; cv=none; d=google.com; s=arc-20160816; b=Eg4z2e0N75qtlXyH0KQPrHd6n++8SDi9d0rBg6Geo6Pe2+7NZFsNwUiHWevJOUV7mS 0DCbcTbM1qrRDmTH+oWxiFb1fSRfiqwDwkScPIEBRkDcurHriymiSnp16jSknMKH5VP4 daJLIulJ0SewLXy6P4IZ2gUiLoyfir9k5oKBiMoa6CkkCp8MLljNAedo07btNNRhbDPE SPo8kPbe1pVby+4BUEvhrgN5mL5c3ZAFHlAd/lo1jF+ds4Ks9Elep1C3Zg3vWE1EnwwI uH+uD+u/Be8e9/35TqFrX8DFb8GpK0Y+OpbW1PT86ZeomM7Z5eFoN3frtvvpa8NMSniV pzZw== 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=xWgLhanHFBACJpMcyiD7c+dYsL6sTslGQHSRbitfUjw=; fh=9ogUt9BKfFrd8NoWl7z+SletNtUgWrRKNQFcbXp5DIw=; b=F8/Vil8dwas3ei+pN+tqPM9iw0eDOlHmBUqsIWeP06eiGGlbygZ09HWoB55cTHLAhR GzSavgEQROLNAC4Jq/XvM7nhcqwslqDHNGnvn8CzKuHu2yLf/g1hS/Yq+NuW0bHLD2ai LEWWjnP6vCZAl6XY16bHTwct56s9MYBg4h7ixovEdalmzg5aF+SwlWA3V7vTqyNxv9Bd J1g6oDS9CXiRwFkxruvggChr4uZQiYmznMDGIWtcoker9AYXz2iltDWu9zwjUlT+xhmC EdnHW5d03X38qX3euzRbZWYAMnonNdfxFEca24XDvwq7BEyAKAhR0zbx+Y/nRMBnqCIb k7RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ihOjdbvF; spf=pass (google.com: domain of linux-kernel+bounces-24099-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24099-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 cz7-20020a05620a36c700b0078335f7a17esi1630367qkb.581.2024.01.11.13.50.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 13:50:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24099-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=ihOjdbvF; spf=pass (google.com: domain of linux-kernel+bounces-24099-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24099-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 8DB361C24443 for ; Thu, 11 Jan 2024 21:50:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ACE7858218; Thu, 11 Jan 2024 21:50:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ihOjdbvF" 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 CD79F5813B; Thu, 11 Jan 2024 21:49:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF441C433C7; Thu, 11 Jan 2024 21:49:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705009799; bh=DGFrS6bvFnjiDlcfB5QO9jKNbVvkxS/dorFw9+1KB5o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ihOjdbvFxaYompiHO6evbYh30jytfJWcaNzi7sK4kSZxwV1HSdDyB18lbgqDbQj2N sz1gCSF00KR05wHJPUE1runPQxd0u7sj2o57omzcrXFho2owGAGDiFUycnJQfCaxZU sSZKtDREB1BuVeTpoCeBxCMI5xFZn7+OMjJEpUdeDcf/+Dyr5RG+9Q2CdY15gGG+aN thY4rV40vt10/KVz9+4OPblLqiCett3hNvBiWKz1QNAqgAS6HjfFsYxHhbJt6TdRx0 glVGCjhGmTMmBs61gUgTCz8rbIrqxLpeF3BooA/uS1ohxdSJgkJ3k0tD4qnnojhqPF VNyVvFeVOiR4w== Date: Thu, 11 Jan 2024 21:49:53 +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, David Jander Subject: Re: [PATCH 01/13] spi: add core support for controllers with offload capabilities Message-ID: <829ac770-1955-45b7-9033-6ed60ffdf77e@sirena.org.uk> References: <20240109-axi-spi-engine-series-3-v1-0-e42c6a986580@baylibre.com> <20240109-axi-spi-engine-series-3-v1-1-e42c6a986580@baylibre.com> <2c74aad9-3cb9-4222-8072-e72120c2658e@sirena.org.uk> 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="+/dLar/cOWA4B3DO" Content-Disposition: inline In-Reply-To: X-Cookie: Does the name Pavlov ring a bell? --+/dLar/cOWA4B3DO Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 11, 2024 at 03:32:54PM -0600, David Lechner wrote: > On Thu, Jan 11, 2024 at 2:54=E2=80=AFPM David Lechner wrote: > > > (CCed) a while back when he was doing all the work he did on optimisi= ng > > > the core for uncontended uses, the thinking there was to have a > > > spi_prepare_message() (or similar) API that drivers could call and th= en > > > reuse the same transfer repeatedly, and even without any interface for > > > client drivers it's likely that we'd be able to take advantage of it = in > > > the core for multi-transfer messages. I'd be surprised if there were= n't > > > wins when the message goes over the DMA copybreak size. A much wider > > > range of hardware would be able to do this bit, for example David's c= ase > > > was a Raspberry Pi using the DMA controller to write into the SPI > For those, following along, it looks like the RPi business was > actually a 2013 discussion with Martin Sperl [2]. Both this and [1] > discuss proposed spi_prepare_message() APIs. > [2]: https://lore.kernel.org/linux-spi/CACRpkdb4mn_Hxg=3D3tuBu89n6eyJ082E= ETkwtNbzZDFZYTHbVVg@mail.gmail.com/T/#u Oh, yes - sorry, I'd misremembered which optimisation effort it was associated with. Apologies. --+/dLar/cOWA4B3DO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmWgYoAACgkQJNaLcl1U h9AOzQf+OIe3/AsdFW0w+YunNfeaALpu3hLgC50E5E3+ODzf5gv04B9mvnMxAr0r gcMDasKHhWRiRf0fFfqQZ3SWJPIW+Ur9zT3b76mdkYTTnkeuqrGUcNPTLQJTEQl2 BFc54rtF8m91uaKHpWVTvfM7IdRk0whb0HXFLpOWuIL/AotaL8ntT8RrrAdHZOKS 8UeS9ugf5ZILPur698NHbu1BDlkTmX9bbcO4s443LYdtQm0l60TZKKvWleoLUAhc cXY1gqFPWjHxywiZqIAMPy/jF/a5rSXgeoCb2ZRCFo8h4v9TY2Xx0BQEnkMH7ql3 VP9BMzxCBP3fGyqXE2wt8+26MIgASA== =gaa8 -----END PGP SIGNATURE----- --+/dLar/cOWA4B3DO--