mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH V1] accel/amdxdna: Fix fatal_error_info layout in firmware interface
@ 2026-04-14 16:56 Lizhi Hou
  2026-04-14 16:59 ` Mario Limonciello
  0 siblings, 1 reply; 3+ messages in thread
From: Lizhi Hou @ 2026-04-14 16:56 UTC (permalink / raw)
  To: ogabbay, quic_jhugo, dri-devel, mario.limonciello, maciej.falkowski
  Cc: Max Zhen, linux-kernel, sonal.santan, Lizhi Hou

From: Max Zhen <max.zhen@amd.com>

Adjust struct fatal_error_info to match the expected driver/firmware
interface layout.

The structure is used to retrieve debug information from firmware when
a command becomes stuck on the device. The reserved field currently
uses 128 u32 entries, which makes the structure larger than intended
and causes the layout to no longer match the firmware definition.

Reduce the reserved array size from 128 to 127 entries so the
structure matches the expected interface format.

Fixes: 25854131c04a ("accel/amdxdna: Support retrieving hardware context debug information")
Signed-off-by: Max Zhen <max.zhen@amd.com>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
---
 drivers/accel/amdxdna/aie2_msg_priv.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/accel/amdxdna/aie2_msg_priv.h b/drivers/accel/amdxdna/aie2_msg_priv.h
index fc2e99510980..b10552c627ee 100644
--- a/drivers/accel/amdxdna/aie2_msg_priv.h
+++ b/drivers/accel/amdxdna/aie2_msg_priv.h
@@ -461,7 +461,7 @@ struct fatal_error_info {
 	__u32 exception_pc;       /* Program Counter at the time of the exception */
 	__u32 app_module;         /* Error module name */
 	__u32 task_index;         /* Index of the task in which the error occurred */
-	__u32 reserved[128];
+	__u32 reserved[127];
 };
 
 struct app_health_report {
-- 
2.34.1


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

* Re: [PATCH V1] accel/amdxdna: Fix fatal_error_info layout in firmware interface
  2026-04-14 16:56 [PATCH V1] accel/amdxdna: Fix fatal_error_info layout in firmware interface Lizhi Hou
@ 2026-04-14 16:59 ` Mario Limonciello
  2026-04-15 18:06   ` Lizhi Hou
  0 siblings, 1 reply; 3+ messages in thread
From: Mario Limonciello @ 2026-04-14 16:59 UTC (permalink / raw)
  To: Lizhi Hou, ogabbay, quic_jhugo, dri-devel, maciej.falkowski
  Cc: Max Zhen, linux-kernel, sonal.santan



On 4/14/26 11:56, Lizhi Hou wrote:
> From: Max Zhen <max.zhen@amd.com>
> 
> Adjust struct fatal_error_info to match the expected driver/firmware
> interface layout.
> 
> The structure is used to retrieve debug information from firmware when
> a command becomes stuck on the device. The reserved field currently
> uses 128 u32 entries, which makes the structure larger than intended
> and causes the layout to no longer match the firmware definition.
> 
> Reduce the reserved array size from 128 to 127 entries so the
> structure matches the expected interface format.
> 
> Fixes: 25854131c04a ("accel/amdxdna: Support retrieving hardware context debug information")
> Signed-off-by: Max Zhen <max.zhen@amd.com>
> Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>

> ---
>   drivers/accel/amdxdna/aie2_msg_priv.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/accel/amdxdna/aie2_msg_priv.h b/drivers/accel/amdxdna/aie2_msg_priv.h
> index fc2e99510980..b10552c627ee 100644
> --- a/drivers/accel/amdxdna/aie2_msg_priv.h
> +++ b/drivers/accel/amdxdna/aie2_msg_priv.h
> @@ -461,7 +461,7 @@ struct fatal_error_info {
>   	__u32 exception_pc;       /* Program Counter at the time of the exception */
>   	__u32 app_module;         /* Error module name */
>   	__u32 task_index;         /* Index of the task in which the error occurred */
> -	__u32 reserved[128];
> +	__u32 reserved[127];
>   };
>   
>   struct app_health_report {


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

* Re: [PATCH V1] accel/amdxdna: Fix fatal_error_info layout in firmware interface
  2026-04-14 16:59 ` Mario Limonciello
@ 2026-04-15 18:06   ` Lizhi Hou
  0 siblings, 0 replies; 3+ messages in thread
From: Lizhi Hou @ 2026-04-15 18:06 UTC (permalink / raw)
  To: Mario Limonciello, ogabbay, quic_jhugo, dri-devel, maciej.falkowski
  Cc: Max Zhen, linux-kernel, sonal.santan

Applied to drm-misc-next

On 4/14/26 09:59, Mario Limonciello wrote:
>
>
> On 4/14/26 11:56, Lizhi Hou wrote:
>> From: Max Zhen <max.zhen@amd.com>
>>
>> Adjust struct fatal_error_info to match the expected driver/firmware
>> interface layout.
>>
>> The structure is used to retrieve debug information from firmware when
>> a command becomes stuck on the device. The reserved field currently
>> uses 128 u32 entries, which makes the structure larger than intended
>> and causes the layout to no longer match the firmware definition.
>>
>> Reduce the reserved array size from 128 to 127 entries so the
>> structure matches the expected interface format.
>>
>> Fixes: 25854131c04a ("accel/amdxdna: Support retrieving hardware 
>> context debug information")
>> Signed-off-by: Max Zhen <max.zhen@amd.com>
>> Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
> Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
>
>> ---
>>   drivers/accel/amdxdna/aie2_msg_priv.h | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/accel/amdxdna/aie2_msg_priv.h 
>> b/drivers/accel/amdxdna/aie2_msg_priv.h
>> index fc2e99510980..b10552c627ee 100644
>> --- a/drivers/accel/amdxdna/aie2_msg_priv.h
>> +++ b/drivers/accel/amdxdna/aie2_msg_priv.h
>> @@ -461,7 +461,7 @@ struct fatal_error_info {
>>       __u32 exception_pc;       /* Program Counter at the time of the 
>> exception */
>>       __u32 app_module;         /* Error module name */
>>       __u32 task_index;         /* Index of the task in which the 
>> error occurred */
>> -    __u32 reserved[128];
>> +    __u32 reserved[127];
>>   };
>>     struct app_health_report {
>

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

end of thread, other threads:[~2026-04-15 18:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-14 16:56 [PATCH V1] accel/amdxdna: Fix fatal_error_info layout in firmware interface Lizhi Hou
2026-04-14 16:59 ` Mario Limonciello
2026-04-15 18:06   ` Lizhi Hou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®