linux-integrity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] tpm_crb: ffa_tpm: fix cut/paste error in comment
@ 2025-04-29 22:15 Stuart Yoder
  2025-04-29 22:15 ` [PATCH] tpm_crb: ffa_tpm: update comment to include 64-bit calling convention Stuart Yoder
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Stuart Yoder @ 2025-04-29 22:15 UTC (permalink / raw)
  To: linux-integrity, jarkko, peterhuewe, jgg, sudeep.holla; +Cc: linux-kernel

Fix the comment for the 'start' function, which was a cut/paste
mistake for a different function.

Signed-off-by: Stuart Yoder <stuart.yoder@arm.com>
---
 drivers/char/tpm/tpm_crb_ffa.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/char/tpm/tpm_crb_ffa.c b/drivers/char/tpm/tpm_crb_ffa.c
index 3169a87a56b60..65b01a46d4b88 100644
--- a/drivers/char/tpm/tpm_crb_ffa.c
+++ b/drivers/char/tpm/tpm_crb_ffa.c
@@ -68,7 +68,8 @@
 #define CRB_FFA_GET_INTERFACE_VERSION 0x0f000001
 
 /*
- * Return information on a given feature of the TPM service
+ * Notifies the TPM service that a TPM command or TPM locality request is
+ * ready to be processed, and allows the TPM service to process it.
  * Call register usage:
  * w3:    Not used (MBZ)
  * w4:    TPM service function ID, CRB_FFA_START
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH] tpm_crb: ffa_tpm: update comment to include 64-bit calling convention
  2025-04-29 22:15 [PATCH 1/2] tpm_crb: ffa_tpm: fix cut/paste error in comment Stuart Yoder
@ 2025-04-29 22:15 ` Stuart Yoder
  2025-04-29 22:15 ` [PATCH 2/2] " Stuart Yoder
  2025-04-30 15:32 ` [PATCH 1/2] tpm_crb: ffa_tpm: fix cut/paste error in comment Jarkko Sakkinen
  2 siblings, 0 replies; 5+ messages in thread
From: Stuart Yoder @ 2025-04-29 22:15 UTC (permalink / raw)
  To: linux-integrity, jarkko, peterhuewe, jgg, sudeep.holla; +Cc: linux-kernel

The comment for DIRECT_REQ and DIRECT_RESP only mentioned AArch32
and listed 32-bit function IDs.  Update to include 64-bit.

Signed-off-by: Stuart Yoder <stuart.yoder@arm.com>
---
 drivers/char/tpm/tpm_crb_ffa.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/char/tpm/tpm_crb_ffa.c b/drivers/char/tpm/tpm_crb_ffa.c
index 65b01a46d4b88..134747911ba38 100644
--- a/drivers/char/tpm/tpm_crb_ffa.c
+++ b/drivers/char/tpm/tpm_crb_ffa.c
@@ -38,9 +38,11 @@
  * messages.
  *
  * All requests with FFA_MSG_SEND_DIRECT_REQ and FFA_MSG_SEND_DIRECT_RESP
- * are using the AArch32 SMC calling convention with register usage as
- * defined in FF-A specification:
- * w0:    Function ID (0x8400006F or 0x84000070)
+ * are using the AArch32 or AArch64 SMC calling convention with register usage
+ * as defined in FF-A specification:
+ * w0:    Function ID
+ *          -for 32-bit: 0x8400006F or 0x84000070
+ *          -for 64-bit: 0xC400006F or 0xC4000070
  * w1:    Source/Destination IDs
  * w2:    Reserved (MBZ)
  * w3-w7: Implementation defined, free to be used below
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] tpm_crb: ffa_tpm: update comment to include 64-bit calling convention
  2025-04-29 22:15 [PATCH 1/2] tpm_crb: ffa_tpm: fix cut/paste error in comment Stuart Yoder
  2025-04-29 22:15 ` [PATCH] tpm_crb: ffa_tpm: update comment to include 64-bit calling convention Stuart Yoder
@ 2025-04-29 22:15 ` Stuart Yoder
  2025-04-30 15:32 ` [PATCH 1/2] tpm_crb: ffa_tpm: fix cut/paste error in comment Jarkko Sakkinen
  2 siblings, 0 replies; 5+ messages in thread
From: Stuart Yoder @ 2025-04-29 22:15 UTC (permalink / raw)
  To: linux-integrity, jarkko, peterhuewe, jgg, sudeep.holla; +Cc: linux-kernel

The comment for DIRECT_REQ and DIRECT_RESP only mentioned AArch32
and listed 32-bit function IDs.  Update to include 64-bit.

Signed-off-by: Stuart Yoder <stuart.yoder@arm.com>
---
 drivers/char/tpm/tpm_crb_ffa.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/char/tpm/tpm_crb_ffa.c b/drivers/char/tpm/tpm_crb_ffa.c
index 65b01a46d4b88..134747911ba38 100644
--- a/drivers/char/tpm/tpm_crb_ffa.c
+++ b/drivers/char/tpm/tpm_crb_ffa.c
@@ -38,9 +38,11 @@
  * messages.
  *
  * All requests with FFA_MSG_SEND_DIRECT_REQ and FFA_MSG_SEND_DIRECT_RESP
- * are using the AArch32 SMC calling convention with register usage as
- * defined in FF-A specification:
- * w0:    Function ID (0x8400006F or 0x84000070)
+ * are using the AArch32 or AArch64 SMC calling convention with register usage
+ * as defined in FF-A specification:
+ * w0:    Function ID
+ *          -for 32-bit: 0x8400006F or 0x84000070
+ *          -for 64-bit: 0xC400006F or 0xC4000070
  * w1:    Source/Destination IDs
  * w2:    Reserved (MBZ)
  * w3-w7: Implementation defined, free to be used below
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] tpm_crb: ffa_tpm: fix cut/paste error in comment
  2025-04-29 22:15 [PATCH 1/2] tpm_crb: ffa_tpm: fix cut/paste error in comment Stuart Yoder
  2025-04-29 22:15 ` [PATCH] tpm_crb: ffa_tpm: update comment to include 64-bit calling convention Stuart Yoder
  2025-04-29 22:15 ` [PATCH 2/2] " Stuart Yoder
@ 2025-04-30 15:32 ` Jarkko Sakkinen
  2025-04-30 15:33   ` Stuart Yoder
  2 siblings, 1 reply; 5+ messages in thread
From: Jarkko Sakkinen @ 2025-04-30 15:32 UTC (permalink / raw)
  To: Stuart Yoder; +Cc: linux-integrity, peterhuewe, jgg, sudeep.holla, linux-kernel

On Tue, Apr 29, 2025 at 05:15:17PM -0500, Stuart Yoder wrote:
> Fix the comment for the 'start' function, which was a cut/paste
> mistake for a different function.
> 
> Signed-off-by: Stuart Yoder <stuart.yoder@arm.com>
> ---
>  drivers/char/tpm/tpm_crb_ffa.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/char/tpm/tpm_crb_ffa.c b/drivers/char/tpm/tpm_crb_ffa.c
> index 3169a87a56b60..65b01a46d4b88 100644
> --- a/drivers/char/tpm/tpm_crb_ffa.c
> +++ b/drivers/char/tpm/tpm_crb_ffa.c
> @@ -68,7 +68,8 @@
>  #define CRB_FFA_GET_INTERFACE_VERSION 0x0f000001
>  
>  /*
> - * Return information on a given feature of the TPM service
> + * Notifies the TPM service that a TPM command or TPM locality request is
> + * ready to be processed, and allows the TPM service to process it.
>   * Call register usage:
>   * w3:    Not used (MBZ)
>   * w4:    TPM service function ID, CRB_FFA_START
> -- 
> 2.34.1
> 

Can you squash the comment updates into single patch instead and
enumerate the changes? Does not really serve any purpose because
comments do not "run".

BR, Jarkko

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] tpm_crb: ffa_tpm: fix cut/paste error in comment
  2025-04-30 15:32 ` [PATCH 1/2] tpm_crb: ffa_tpm: fix cut/paste error in comment Jarkko Sakkinen
@ 2025-04-30 15:33   ` Stuart Yoder
  0 siblings, 0 replies; 5+ messages in thread
From: Stuart Yoder @ 2025-04-30 15:33 UTC (permalink / raw)
  To: Jarkko Sakkinen
  Cc: linux-integrity, peterhuewe, jgg, sudeep.holla, linux-kernel



On 4/30/25 10:32 AM, Jarkko Sakkinen wrote:
> On Tue, Apr 29, 2025 at 05:15:17PM -0500, Stuart Yoder wrote:
>> Fix the comment for the 'start' function, which was a cut/paste
>> mistake for a different function.
>>
>> Signed-off-by: Stuart Yoder <stuart.yoder@arm.com>
>> ---
>>   drivers/char/tpm/tpm_crb_ffa.c | 3 ++-
>>   1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/char/tpm/tpm_crb_ffa.c b/drivers/char/tpm/tpm_crb_ffa.c
>> index 3169a87a56b60..65b01a46d4b88 100644
>> --- a/drivers/char/tpm/tpm_crb_ffa.c
>> +++ b/drivers/char/tpm/tpm_crb_ffa.c
>> @@ -68,7 +68,8 @@
>>   #define CRB_FFA_GET_INTERFACE_VERSION 0x0f000001
>>   
>>   /*
>> - * Return information on a given feature of the TPM service
>> + * Notifies the TPM service that a TPM command or TPM locality request is
>> + * ready to be processed, and allows the TPM service to process it.
>>    * Call register usage:
>>    * w3:    Not used (MBZ)
>>    * w4:    TPM service function ID, CRB_FFA_START
>> -- 
>> 2.34.1
>>
> 
> Can you squash the comment updates into single patch instead and
> enumerate the changes? Does not really serve any purpose because
> comments do not "run".

Sure, will do.

Thanks,
Stuart


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-04-30 15:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-29 22:15 [PATCH 1/2] tpm_crb: ffa_tpm: fix cut/paste error in comment Stuart Yoder
2025-04-29 22:15 ` [PATCH] tpm_crb: ffa_tpm: update comment to include 64-bit calling convention Stuart Yoder
2025-04-29 22:15 ` [PATCH 2/2] " Stuart Yoder
2025-04-30 15:32 ` [PATCH 1/2] tpm_crb: ffa_tpm: fix cut/paste error in comment Jarkko Sakkinen
2025-04-30 15:33   ` Stuart Yoder

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).