Re: [PATCH v9 4/5] tpm: Add a driver for Loongson TPM device

2025-05-13 Thread Qunqin Zhao
Hi, Jarkko and Stefano 在 2025/5/6 上午11:19, Qunqin Zhao 写道: Loongson Security Engine supports random number generation, hash, symmetric encryption and asymmetric encryption. Based on these encryption functions, TPM2 have been implemented in the Loongson Security Engine firmware. This driver is

Re: [PATCH v9 4/5] tpm: Add a driver for Loongson TPM device

2025-05-08 Thread Jarkko Sakkinen
On Wed, May 07, 2025 at 09:33:32AM +0800, Qunqin Zhao wrote: > > 在 2025/5/6 下午10:13, Stefano Garzarella 写道: > > On Tue, May 06, 2025 at 11:19:46AM +0800, Qunqin Zhao wrote: > > > Loongson Security Engine supports random number generation, hash, > > > symmetric encryption and asymmetric encryption.

Re: [PATCH v9 4/5] tpm: Add a driver for Loongson TPM device

2025-05-08 Thread Jarkko Sakkinen
On Tue, May 06, 2025 at 04:13:04PM +0200, Stefano Garzarella wrote: > > +static int tpm_loongson_recv(struct tpm_chip *chip, u8 *buf, size_t count) > > +{ > > + struct loongson_se_engine *tpm_engine = dev_get_drvdata(&chip->dev); > > + struct tpm_loongson_cmd *cmd_ret = tpm_engine->command_ret;

Re: [PATCH v9 4/5] tpm: Add a driver for Loongson TPM device

2025-05-07 Thread Stefano Garzarella
On Wed, 7 May 2025 at 03:35, Qunqin Zhao wrote: > > > 在 2025/5/6 下午10:13, Stefano Garzarella 写道: > > On Tue, May 06, 2025 at 11:19:46AM +0800, Qunqin Zhao wrote: > >> Loongson Security Engine supports random number generation, hash, > >> symmetric encryption and asymmetric encryption. Based on the

Re: [PATCH v9 4/5] tpm: Add a driver for Loongson TPM device

2025-05-06 Thread Qunqin Zhao
在 2025/5/6 下午10:13, Stefano Garzarella 写道: On Tue, May 06, 2025 at 11:19:46AM +0800, Qunqin Zhao wrote: Loongson Security Engine supports random number generation, hash, symmetric encryption and asymmetric encryption. Based on these encryption functions, TPM2 have been implemented in the Loong

Re: [PATCH v9 4/5] tpm: Add a driver for Loongson TPM device

2025-05-06 Thread Stefano Garzarella
On Tue, May 06, 2025 at 11:19:46AM +0800, Qunqin Zhao wrote: Loongson Security Engine supports random number generation, hash, symmetric encryption and asymmetric encryption. Based on these encryption functions, TPM2 have been implemented in the Loongson Security Engine firmware. This driver is r