Re: [PATCH v6 4/4] tpm/tpm_svsm: support TPM_CHIP_FLAG_SYNC

2025-06-25 Thread Stefano Garzarella
On Wed, 25 Jun 2025 at 17:08, Jarkko Sakkinen wrote: > > On Wed, Jun 25, 2025 at 03:02:54PM +0300, Jarkko Sakkinen wrote: > > On Fri, Jun 20, 2025 at 03:08:10PM +0200, Stefano Garzarella wrote: > > > From: Stefano Garzarella > > > > > > This driver does no

[PATCH v6 2/4] tpm: support devices with synchronous send()

2025-06-20 Thread Stefano Garzarella
From: Stefano Garzarella Some devices do not support interrupts and provide a single synchronous operation to send the command and receive the response on the same buffer. Currently, these types of drivers must use an internal buffer where they temporarily store the response between .send() and

[PATCH v6 0/4] tpm: add support for sync send() and use it in ftpm and svsm drivers

2025-06-20 Thread Stefano Garzarella
d and will require a new version - RFC: https://lore.kernel.org/linux-integrity/20250311100130.42169-1-sgarz...@redhat.com/ [1] https://lore.kernel.org/linux-integrity/z8sfidehsg6ra...@kernel.org/ [2] https://lore.kernel.org/linux-integrity/20250410135118.133240-1-sgarz...@redhat.com/ Stefano

[PATCH v6 4/4] tpm/tpm_svsm: support TPM_CHIP_FLAG_SYNC

2025-06-20 Thread Stefano Garzarella
From: Stefano Garzarella This driver does not support interrupts, and receiving the response is synchronous with sending the command. Enable synchronous send() with TPM_CHIP_FLAG_SYNC, which implies that ->send() already fills the provided buffer with a response, and ->recv() is not imple

[PATCH v6 3/4] tpm/tpm_ftpm_tee: support TPM_CHIP_FLAG_SYNC

2025-06-20 Thread Stefano Garzarella
From: Stefano Garzarella This driver does not support interrupts, and receiving the response is synchronous with sending the command. Enable synchronous send() with TPM_CHIP_FLAG_SYNC, which implies that ->send() already fills the provided buffer with a response, and ->recv() is not imple

[PATCH v6 1/4] tpm: add bufsiz parameter in the .send callback

2025-06-20 Thread Stefano Garzarella
From: Stefano Garzarella Add a new `bufsiz` 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 `bufsiz` is not used, but it will be used to implement devices with

Re: [PATCH v5 4/4] tpm/tpm_svsm: support TPM_CHIP_FLAG_SYNC

2025-05-26 Thread Stefano Garzarella
On Fri, 23 May 2025 at 18:02, Jarkko Sakkinen wrote: > > On Thu, May 22, 2025 at 10:26:34AM +0200, Stefano Garzarella wrote: > > On Wed, 21 May 2025 at 18:42, Jarkko Sakkinen wrote: > > > > > > On Wed, May 21, 2025 at 01:12:20PM +0300, Jarkko Sakkinen wrote: > &g

Re: [PATCH v5 4/4] tpm/tpm_svsm: support TPM_CHIP_FLAG_SYNC

2025-05-22 Thread Stefano Garzarella
On Wed, 21 May 2025 at 18:42, Jarkko Sakkinen wrote: > > On Wed, May 21, 2025 at 01:12:20PM +0300, Jarkko Sakkinen wrote: > > > I tried, but the last patch (this one) is based on the series merged > > > on the tip tree, where I introduced tpm_svsm. > > > I can see that series in linux-next merged

Re: [PATCH v5 4/4] tpm/tpm_svsm: support TPM_CHIP_FLAG_SYNC

2025-05-21 Thread Stefano Garzarella
On Tue, 20 May 2025 at 22:02, Jarkko Sakkinen wrote: > On Tue, May 20, 2025 at 06:06:50PM +0200, Stefano Garzarella wrote: > > On Thu, 15 May 2025 at 03:45, Jarkko Sakkinen wrote: > > > On Wed, May 14, 2025 at 03:46:30PM +0200, Stefano Garzarella wrote: > > >

Re: [PATCH v5 4/4] tpm/tpm_svsm: support TPM_CHIP_FLAG_SYNC

2025-05-20 Thread Stefano Garzarella
On Thu, 15 May 2025 at 03:45, Jarkko Sakkinen wrote: > > On Wed, May 14, 2025 at 03:46:30PM +0200, Stefano Garzarella wrote: > > From: Stefano Garzarella > > > > This driver does not support interrupts, and receiving the response is > > synchronous with sendi

[PATCH v5 2/4] tpm: support devices with synchronous send()

2025-05-14 Thread Stefano Garzarella
From: Stefano Garzarella Some devices do not support interrupts and provide a single synchronous operation to send the command and receive the response on the same buffer. Currently, these types of drivers must use an internal buffer where they temporarily store the response between .send() and

[PATCH v5 3/4] tpm/tpm_ftpm_tee: support TPM_CHIP_FLAG_SYNC

2025-05-14 Thread Stefano Garzarella
From: Stefano Garzarella This driver does not support interrupts, and receiving the response is synchronous with sending the command. Enable synchronous send() with TPM_CHIP_FLAG_SYNC, which implies that ->send() already fills the provided buffer with a response, and ->recv() is not imple

[PATCH v5 1/4] tpm: add bufsiz parameter in the .send callback

2025-05-14 Thread Stefano Garzarella
From: Stefano Garzarella Add a new `bufsiz` 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 `bufsiz` is not used, but it will be used to implement devices with

[PATCH v5 0/4] tpm: add support for sync send() and use it in ftpm and svsm drivers

2025-05-14 Thread Stefano Garzarella
.@redhat.com/ [1] https://lore.kernel.org/linux-integrity/z8sfidehsg6ra...@kernel.org/ [2] https://lore.kernel.org/linux-integrity/20250410135118.133240-1-sgarz...@redhat.com/ Stefano Garzarella (4): tpm: add bufsiz parameter in the .send callback tpm: support devices with synchronous send() t

[PATCH v5 4/4] tpm/tpm_svsm: support TPM_CHIP_FLAG_SYNC

2025-05-14 Thread Stefano Garzarella
From: Stefano Garzarella This driver does not support interrupts, and receiving the response is synchronous with sending the command. Enable synchronous send() with TPM_CHIP_FLAG_SYNC, which implies that ->send() already fills the provided buffer with a response, and ->recv() is not imple

Re: [PATCH v4 1/4] tpm: add buf_size parameter in the .send callback

2025-05-13 Thread Stefano Garzarella
On Sat, May 10, 2025 at 10:44:38AM +0300, Jarkko Sakkinen wrote: On Fri, May 09, 2025 at 10:57:10AM +0200, Stefano Garzarella wrote: From: Stefano Garzarella Add a new `buf_size` parameter to the `.send` callback in `tpm_class_ops`. This parameter will allow drivers to differentiate between

[PATCH v4 2/4] tpm: support devices with synchronous send()

2025-05-09 Thread Stefano Garzarella
From: Stefano Garzarella Some devices do not support interrupts and provide a single synchronous operation to send the command and receive the response on the same buffer. Currently, these types of drivers must use an internal buffer where they temporarily store the response between .send() and

[PATCH v4 4/4] tpm/tpm_svsm: support TPM_CHIP_FLAG_SYNC

2025-05-09 Thread Stefano Garzarella
From: Stefano Garzarella This driver does not support interrupts, and receiving the response is synchronous with sending the command. Enable synchronous send() with TPM_CHIP_FLAG_SYNC, which implies that ->send() already fills the provided buffer with a response, and ->recv() is not imple

[PATCH v4 1/4] tpm: add buf_size parameter in the .send callback

2025-05-09 Thread Stefano Garzarella
From: Stefano Garzarella 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 implement devices

[PATCH v4 3/4] tpm/tpm_ftpm_tee: support TPM_CHIP_FLAG_SYNC

2025-05-09 Thread Stefano Garzarella
From: Stefano Garzarella This driver does not support interrupts, and receiving the response is synchronous with sending the command. Enable synchronous send() with TPM_CHIP_FLAG_SYNC, which implies that ->send() already fills the provided buffer with a response, and ->recv() is not imple

[PATCH v4 0/4] tpm: add support for sync send() and use it in ftpm and svsm drivers

2025-05-09 Thread Stefano Garzarella
re a new version - RFC: https://lore.kernel.org/linux-integrity/20250311100130.42169-1-sgarz...@redhat.com/ [1] https://lore.kernel.org/linux-integrity/z8sfidehsg6ra...@kernel.org/ [2] https://lore.kernel.org/linux-integrity/20250410135118.133240-1-sgarz...@redhat.com/ Stefano Garzarella (4):

Re: [PATCH v3 4/4] tpm/tpm_svsm: support TPM_CHIP_FLAG_SYNC

2025-05-06 Thread Stefano Garzarella
On Wed, Apr 30, 2025 at 06:49:37PM +0300, Jarkko Sakkinen wrote: On Mon, Apr 14, 2025 at 04:56:53PM +0200, Stefano Garzarella wrote: From: Stefano Garzarella This driver does not support interrupts, and receiving the response is synchronous with sending the command. So we can set

Re: [PATCH v3 3/4] tpm/tpm_ftpm_tee: support TPM_CHIP_FLAG_SYNC

2025-05-06 Thread Stefano Garzarella
On Wed, Apr 30, 2025 at 06:47:51PM +0300, Jarkko Sakkinen wrote: On Mon, Apr 14, 2025 at 04:56:52PM +0200, Stefano Garzarella wrote: From: Stefano Garzarella This driver does not support interrupts, and receiving the response is synchronous with sending the command. So we can set

Re: [PATCH v3 1/4] tpm: add buf_size parameter in the .send callback

2025-05-06 Thread Stefano Garzarella
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 In preparation for the next commit, add a new `buf_size` parameter to the `.send` callback in `tpm_class_ops` which contains the entire

[PATCH v3 2/4] tpm: support devices with synchronous send()

2025-04-14 Thread Stefano Garzarella
From: Stefano Garzarella Some devices do not support interrupts and provide a single synchronous operation to send the command and receive the response on the same buffer. Currently, these types of drivers must use an internal buffer where they temporarily store the response between .send() and

[PATCH v3 1/4] tpm: add buf_size parameter in the .send callback

2025-04-14 Thread Stefano Garzarella
From: Stefano Garzarella 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. Also rename the previous

Re: [PATCH v3 3/4] tpm/tpm_ftpm_tee: support TPM_CHIP_FLAG_SYNC

2025-04-14 Thread Stefano Garzarella
On Mon, 14 Apr 2025 at 16:57, Stefano Garzarella wrote: > > From: Stefano Garzarella > > This driver does not support interrupts, and receiving the response is > synchronous with sending the command. > > So we can set TPM_CHIP_FLAG_SYNC to support synchronous send() and >

[PATCH v3 4/4] tpm/tpm_svsm: support TPM_CHIP_FLAG_SYNC

2025-04-14 Thread Stefano Garzarella
From: Stefano Garzarella This driver does not support interrupts, and receiving the response is synchronous with sending the command. So we can set TPM_CHIP_FLAG_SYNC to support synchronous send() and return responses in the same buffer used for commands. This way we don't need to impl

[PATCH v3 3/4] tpm/tpm_ftpm_tee: support TPM_CHIP_FLAG_SYNC

2025-04-14 Thread Stefano Garzarella
From: Stefano Garzarella This driver does not support interrupts, and receiving the response is synchronous with sending the command. So we can set TPM_CHIP_FLAG_SYNC to support synchronous send() and return responses in the same buffer used for commands. This way we don't need the 4KB int

[PATCH v3 0/4] tpm: add support for sync send() and use it in ftpm and svsm drivers

2025-04-14 Thread Stefano Garzarella
//lore.kernel.org/linux-integrity/z8sfidehsg6ra...@kernel.org/ [2] https://lore.kernel.org/linux-integrity/20250410135118.133240-1-sgarz...@redhat.com/ Stefano Garzarella (4): tpm: add buf_size parameter in the .send callback tpm: support devices with synchronous send() tpm/tpm_ftpm_tee: sup

[PATCH v2 3/4] tpm/tpm_ftpm_tee: support TPM_CHIP_FLAG_SYNC

2025-04-10 Thread Stefano Garzarella
From: Stefano Garzarella This driver does not support interrupts, and receiving the response is synchronous with sending the command. So we can set TPM_CHIP_FLAG_SYNC to support synchronous send() and return responses in the same buffer used for commands. This way we don't need the 4KB int

Re: [PATCH v2 2/4] tpm: support devices with synchronous send()

2025-04-09 Thread Stefano Garzarella
On Tue, Apr 08, 2025 at 06:31:30PM +0300, Jarkko Sakkinen wrote: On Tue, Apr 08, 2025 at 10:32:06AM +0200, Stefano Garzarella wrote: From: Stefano Garzarella Some devices do not support interrupts and provide a single synchronous operation to send the command and receive the response on the

[PATCH v2 4/4] tpm/tpm_svsm: support TPM_CHIP_FLAG_SYNC

2025-04-08 Thread Stefano Garzarella
From: Stefano Garzarella This driver does not support interrupts, and receiving the response is synchronous with sending the command. So we can set TPM_CHIP_FLAG_SYNC to support synchronous send() and return responses in the same buffer used for commands. This way we don't need to impl

[PATCH v2 2/4] tpm: support devices with synchronous send()

2025-04-08 Thread Stefano Garzarella
From: Stefano Garzarella Some devices do not support interrupts and provide a single synchronous operation to send the command and receive the response on the same buffer. Currently, these types of drivers must use an internal buffer where they temporarily store the response between .send() and

[PATCH v2 0/4] tpm: add support for sync send() and use it in ftpm and svsm drivers

2025-04-08 Thread Stefano Garzarella
/20250403100943.120738-1-sgarz...@redhat.com/ Stefano Garzarella (4): tpm: add buf_size parameter in the .send callback tpm: support devices with synchronous send() tpm/tpm_ftpm_tee: support TPM_CHIP_FLAG_SYNC tpm/tpm_svsm: support TPM_CHIP_FLAG_SYNC drivers/char/tpm/tpm_ftpm_tee.h | 4 -

[PATCH v2 1/4] tpm: add buf_size parameter in the .send callback

2025-04-08 Thread Stefano Garzarella
From: Stefano Garzarella 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. Also rename the previous

Re: [5.19.0-next-20220811] Build failure drivers/vdpa

2022-08-11 Thread Stefano Garzarella
On Thu, Aug 11, 2022 at 12:06 PM Sachin Sant wrote: > > 5.19.0-next-20220811 linux-next fails to build on IBM Power with > following error: > > drivers/vdpa/vdpa_sim/vdpa_sim_blk.c: In function 'vdpasim_blk_handle_req': > drivers/vdpa/vdpa_sim/vdpa_sim_blk.c:201:3: error: a label can only be part