From: Jarkko Sakkinen <jarkko@kernel.org>
To: Stefano Garzarella <sgarzare@redhat.com>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>,
Peter Huewe <peterhuewe@gmx.de>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
Jens Wiklander <jens.wiklander@linaro.org>,
Claudiu Beznea <claudiu.beznea@tuxon.dev>,
Naveen N Rao <naveen@kernel.org>,
Nicholas Piggin <npiggin@gmail.com>,
linuxppc-dev@lists.ozlabs.org,
Nicolas Ferre <nicolas.ferre@microchip.com>,
Michael Ellerman <mpe@ellerman.id.au>,
Madhavan Srinivasan <maddy@linux.ibm.com>,
James Bottomley <James.Bottomley@hansenpartnership.com>,
linux-integrity@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Sumit Garg <sumit.garg@kernel.org>,
linux-kernel@vger.kernel.org, Jason Gunthorpe <jgg@ziepe.ca>
Subject: Re: [PATCH v3 1/4] tpm: add buf_size parameter in the .send callback
Date: Thu, 8 May 2025 23:00:49 +0300 [thread overview]
Message-ID: <aB0NcS-LPZ8q-h5B@kernel.org> (raw)
In-Reply-To: <o72kb2x2jjxyzgyixeva42sk3lr2wwphnyhkcdbxxgfevoqp3n@ir6rwldztmt7>
On Tue, May 06, 2025 at 02:56:54PM +0200, Stefano Garzarella wrote:
> On Wed, Apr 30, 2025 at 06:39:58PM +0300, Jarkko Sakkinen wrote:
> > On Mon, Apr 14, 2025 at 04:56:50PM +0200, Stefano Garzarella wrote:
> > > From: Stefano Garzarella <sgarzare@redhat.com>
> > >
> > > In preparation for the next commit, add a new `buf_size` parameter to
> > > the `.send` callback in `tpm_class_ops` which contains the entire buffer
> > > size. In this patch it is pretty much ignored by all drivers, but it will
> > > be used in the next patch.
> >
> > So instead "in preparation for the next commit" just plain say why it
> > will be needed. "next commit" is a fuzzy reference :-)
> >
> > Same goes for "next patch". Neither can be used to query any possible
> > information. That sort of makes the whole paragraph useless, once it
> > is in the commit log.
>
> Got it! What about somethig like this:
>
> Add a new `buf_size` parameter to the `.send` callback in
> `tpm_class_ops`. This parameter will allow drivers to differentiate
> between the actual command length to send and the total buffer
> size. Currently `buf_now` is not used, but it will be used to
> support devices with synchronous `.send` callback to send the
> command and receive the response on the same buffer.
definitely to right direction
>
> Thanks,
> Stefano
BR, Jarkko
next prev parent reply other threads:[~2025-05-08 20:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-14 14:56 [PATCH v3 0/4] tpm: add support for sync send() and use it in ftpm and svsm drivers Stefano Garzarella
2025-04-14 14:56 ` [PATCH v3 1/4] tpm: add buf_size parameter in the .send callback Stefano Garzarella
2025-04-30 15:39 ` Jarkko Sakkinen
2025-05-06 12:56 ` Stefano Garzarella
2025-05-08 20:00 ` Jarkko Sakkinen [this message]
2025-04-14 14:56 ` [PATCH v3 2/4] tpm: support devices with synchronous send() Stefano Garzarella
2025-04-30 15:41 ` Jarkko Sakkinen
2025-04-14 14:56 ` [PATCH v3 3/4] tpm/tpm_ftpm_tee: support TPM_CHIP_FLAG_SYNC Stefano Garzarella
2025-04-14 14:59 ` Stefano Garzarella
2025-04-28 7:49 ` Sumit Garg
2025-04-30 15:47 ` Jarkko Sakkinen
2025-05-06 13:03 ` Stefano Garzarella
2025-04-14 14:56 ` [PATCH v3 4/4] tpm/tpm_svsm: " Stefano Garzarella
2025-04-30 15:49 ` Jarkko Sakkinen
2025-05-06 13:06 ` Stefano Garzarella
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aB0NcS-LPZ8q-h5B@kernel.org \
--to=jarkko@kernel.org \
--cc=James.Bottomley@hansenpartnership.com \
--cc=alexandre.belloni@bootlin.com \
--cc=christophe.leroy@csgroup.eu \
--cc=claudiu.beznea@tuxon.dev \
--cc=jens.wiklander@linaro.org \
--cc=jgg@ziepe.ca \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-integrity@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=maddy@linux.ibm.com \
--cc=mpe@ellerman.id.au \
--cc=naveen@kernel.org \
--cc=nicolas.ferre@microchip.com \
--cc=npiggin@gmail.com \
--cc=peterhuewe@gmx.de \
--cc=sgarzare@redhat.com \
--cc=sumit.garg@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).