* [PATCH] drm/amdgpu/atomfirmware: silence UBSAN warning
@ 2024-07-01 16:55 Alex Deucher
2024-07-01 19:05 ` Jeff Layton
2024-07-03 12:59 ` SHANMUGAM, SRINIVASAN
0 siblings, 2 replies; 6+ messages in thread
From: Alex Deucher @ 2024-07-01 16:55 UTC (permalink / raw)
To: amd-gfx, jlayton; +Cc: Alex Deucher
This is a variably sized array.
Link: https://lists.freedesktop.org/archives/amd-gfx/2024-June/110420.html
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
drivers/gpu/drm/amd/include/atomfirmware.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/include/atomfirmware.h b/drivers/gpu/drm/amd/include/atomfirmware.h
index 571691837200..09cbc3afd6d8 100644
--- a/drivers/gpu/drm/amd/include/atomfirmware.h
+++ b/drivers/gpu/drm/amd/include/atomfirmware.h
@@ -734,7 +734,7 @@ struct atom_gpio_pin_lut_v2_1
{
struct atom_common_table_header table_header;
/*the real number of this included in the structure is calcualted by using the (whole structure size - the header size)/size of atom_gpio_pin_lut */
- struct atom_gpio_pin_assignment gpio_pin[8];
+ struct atom_gpio_pin_assignment gpio_pin[];
};
--
2.45.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] drm/amdgpu/atomfirmware: silence UBSAN warning
2024-07-01 16:55 [PATCH] drm/amdgpu/atomfirmware: silence UBSAN warning Alex Deucher
@ 2024-07-01 19:05 ` Jeff Layton
2024-07-03 12:59 ` SHANMUGAM, SRINIVASAN
1 sibling, 0 replies; 6+ messages in thread
From: Jeff Layton @ 2024-07-01 19:05 UTC (permalink / raw)
To: Alex Deucher, amd-gfx
On Mon, 2024-07-01 at 12:55 -0400, Alex Deucher wrote:
> This is a variably sized array.
>
> Link:
> https://lists.freedesktop.org/archives/amd-gfx/2024-June/110420.html
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
> ---
> drivers/gpu/drm/amd/include/atomfirmware.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/include/atomfirmware.h
> b/drivers/gpu/drm/amd/include/atomfirmware.h
> index 571691837200..09cbc3afd6d8 100644
> --- a/drivers/gpu/drm/amd/include/atomfirmware.h
> +++ b/drivers/gpu/drm/amd/include/atomfirmware.h
> @@ -734,7 +734,7 @@ struct atom_gpio_pin_lut_v2_1
> {
> struct atom_common_table_header table_header;
> /*the real number of this included in the structure is calcualted
> by using the (whole structure size - the header size)/size of
> atom_gpio_pin_lut */
> - struct atom_gpio_pin_assignment gpio_pin[8];
> + struct atom_gpio_pin_assignment gpio_pin[];
> };
>
>
Works for me:
Tested-by: Jeff Layton <jlayton@kernel.org>
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [PATCH] drm/amdgpu/atomfirmware: silence UBSAN warning
2024-07-01 16:55 [PATCH] drm/amdgpu/atomfirmware: silence UBSAN warning Alex Deucher
2024-07-01 19:05 ` Jeff Layton
@ 2024-07-03 12:59 ` SHANMUGAM, SRINIVASAN
1 sibling, 0 replies; 6+ messages in thread
From: SHANMUGAM, SRINIVASAN @ 2024-07-03 12:59 UTC (permalink / raw)
To: Deucher, Alexander, amd-gfx@lists.freedesktop.org,
jlayton@kernel.org
Cc: Deucher, Alexander
[Public]
Acked-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
-----Original Message-----
From: amd-gfx <amd-gfx-bounces@lists.freedesktop.org> On Behalf Of Alex Deucher
Sent: Monday, July 1, 2024 10:25 PM
To: amd-gfx@lists.freedesktop.org; jlayton@kernel.org
Cc: Deucher, Alexander <Alexander.Deucher@amd.com>
Subject: [PATCH] drm/amdgpu/atomfirmware: silence UBSAN warning
This is a variably sized array.
Link: https://lists.freedesktop.org/archives/amd-gfx/2024-June/110420.html
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
drivers/gpu/drm/amd/include/atomfirmware.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/include/atomfirmware.h b/drivers/gpu/drm/amd/include/atomfirmware.h
index 571691837200..09cbc3afd6d8 100644
--- a/drivers/gpu/drm/amd/include/atomfirmware.h
+++ b/drivers/gpu/drm/amd/include/atomfirmware.h
@@ -734,7 +734,7 @@ struct atom_gpio_pin_lut_v2_1 {
struct atom_common_table_header table_header;
/*the real number of this included in the structure is calcualted by using the (whole structure size - the header size)/size of atom_gpio_pin_lut */
- struct atom_gpio_pin_assignment gpio_pin[8];
+ struct atom_gpio_pin_assignment gpio_pin[];
};
--
2.45.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH] drm/amdgpu/atomfirmware: Silence UBSAN warning
@ 2024-09-06 14:46 Alex Deucher
2024-09-09 17:19 ` Alex Deucher
0 siblings, 1 reply; 6+ messages in thread
From: Alex Deucher @ 2024-09-06 14:46 UTC (permalink / raw)
To: amd-gfx; +Cc: Alex Deucher
Per the comments, these are variable sized arrays.
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3613
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
drivers/gpu/drm/amd/include/atomfirmware.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/include/atomfirmware.h b/drivers/gpu/drm/amd/include/atomfirmware.h
index 09cbc3afd6d8..b0fc22383e28 100644
--- a/drivers/gpu/drm/amd/include/atomfirmware.h
+++ b/drivers/gpu/drm/amd/include/atomfirmware.h
@@ -1038,7 +1038,7 @@ struct display_object_info_table_v1_4
uint16_t supporteddevices;
uint8_t number_of_path;
uint8_t reserved;
- struct atom_display_object_path_v2 display_path[8]; //the real number of this included in the structure is calculated by using the (whole structure size - the header size- number_of_path)/size of atom_display_object_path
+ struct atom_display_object_path_v2 display_path[]; //the real number of this included in the structure is calculated by using the (whole structure size - the header size- number_of_path)/size of atom_display_object_path
};
struct display_object_info_table_v1_5 {
@@ -1048,7 +1048,7 @@ struct display_object_info_table_v1_5 {
uint8_t reserved;
// the real number of this included in the structure is calculated by using the
// (whole structure size - the header size- number_of_path)/size of atom_display_object_path
- struct atom_display_object_path_v3 display_path[8];
+ struct atom_display_object_path_v3 display_path[];
};
/*
--
2.46.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] drm/amdgpu/atomfirmware: Silence UBSAN warning
2024-09-06 14:46 [PATCH] drm/amdgpu/atomfirmware: Silence " Alex Deucher
@ 2024-09-09 17:19 ` Alex Deucher
2024-09-09 17:41 ` Harry Wentland
0 siblings, 1 reply; 6+ messages in thread
From: Alex Deucher @ 2024-09-09 17:19 UTC (permalink / raw)
To: Alex Deucher; +Cc: amd-gfx
Ping?
Alex
On Fri, Sep 6, 2024 at 12:43 PM Alex Deucher <alexander.deucher@amd.com> wrote:
>
> Per the comments, these are variable sized arrays.
>
> Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3613
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
> ---
> drivers/gpu/drm/amd/include/atomfirmware.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/include/atomfirmware.h b/drivers/gpu/drm/amd/include/atomfirmware.h
> index 09cbc3afd6d8..b0fc22383e28 100644
> --- a/drivers/gpu/drm/amd/include/atomfirmware.h
> +++ b/drivers/gpu/drm/amd/include/atomfirmware.h
> @@ -1038,7 +1038,7 @@ struct display_object_info_table_v1_4
> uint16_t supporteddevices;
> uint8_t number_of_path;
> uint8_t reserved;
> - struct atom_display_object_path_v2 display_path[8]; //the real number of this included in the structure is calculated by using the (whole structure size - the header size- number_of_path)/size of atom_display_object_path
> + struct atom_display_object_path_v2 display_path[]; //the real number of this included in the structure is calculated by using the (whole structure size - the header size- number_of_path)/size of atom_display_object_path
> };
>
> struct display_object_info_table_v1_5 {
> @@ -1048,7 +1048,7 @@ struct display_object_info_table_v1_5 {
> uint8_t reserved;
> // the real number of this included in the structure is calculated by using the
> // (whole structure size - the header size- number_of_path)/size of atom_display_object_path
> - struct atom_display_object_path_v3 display_path[8];
> + struct atom_display_object_path_v3 display_path[];
> };
>
> /*
> --
> 2.46.0
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] drm/amdgpu/atomfirmware: Silence UBSAN warning
2024-09-09 17:19 ` Alex Deucher
@ 2024-09-09 17:41 ` Harry Wentland
0 siblings, 0 replies; 6+ messages in thread
From: Harry Wentland @ 2024-09-09 17:41 UTC (permalink / raw)
To: Alex Deucher, Alex Deucher; +Cc: amd-gfx
On 2024-09-09 13:19, Alex Deucher wrote:
> Ping?
>
> Alex
>
> On Fri, Sep 6, 2024 at 12:43 PM Alex Deucher <alexander.deucher@amd.com> wrote:
>>
>> Per the comments, these are variable sized arrays.
>>
>> Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3613
>> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Harry
>> ---
>> drivers/gpu/drm/amd/include/atomfirmware.h | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/amd/include/atomfirmware.h b/drivers/gpu/drm/amd/include/atomfirmware.h
>> index 09cbc3afd6d8..b0fc22383e28 100644
>> --- a/drivers/gpu/drm/amd/include/atomfirmware.h
>> +++ b/drivers/gpu/drm/amd/include/atomfirmware.h
>> @@ -1038,7 +1038,7 @@ struct display_object_info_table_v1_4
>> uint16_t supporteddevices;
>> uint8_t number_of_path;
>> uint8_t reserved;
>> - struct atom_display_object_path_v2 display_path[8]; //the real number of this included in the structure is calculated by using the (whole structure size - the header size- number_of_path)/size of atom_display_object_path
>> + struct atom_display_object_path_v2 display_path[]; //the real number of this included in the structure is calculated by using the (whole structure size - the header size- number_of_path)/size of atom_display_object_path
>> };
>>
>> struct display_object_info_table_v1_5 {
>> @@ -1048,7 +1048,7 @@ struct display_object_info_table_v1_5 {
>> uint8_t reserved;
>> // the real number of this included in the structure is calculated by using the
>> // (whole structure size - the header size- number_of_path)/size of atom_display_object_path
>> - struct atom_display_object_path_v3 display_path[8];
>> + struct atom_display_object_path_v3 display_path[];
>> };
>>
>> /*
>> --
>> 2.46.0
>>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-09-09 17:41 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-01 16:55 [PATCH] drm/amdgpu/atomfirmware: silence UBSAN warning Alex Deucher
2024-07-01 19:05 ` Jeff Layton
2024-07-03 12:59 ` SHANMUGAM, SRINIVASAN
-- strict thread matches above, loose matches on Subject: below --
2024-09-06 14:46 [PATCH] drm/amdgpu/atomfirmware: Silence " Alex Deucher
2024-09-09 17:19 ` Alex Deucher
2024-09-09 17:41 ` Harry Wentland
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.