Re: [PATCH] drm/amd: Refactor find_system_memory()

2025-02-05 Thread Felix Kuehling
On 2025-02-05 15:36, Mario Limonciello wrote: > On 2/5/2025 14:33, Felix Kuehling wrote: >> >> >> On 2025-02-05 14:31, Mario Limonciello wrote: >>> On 2/4/2025 17:19, Felix Kuehling wrote: On 2025-02-04 17:21, Mario Limonciello wrote: > From: Mario Limonciello > > find_sys

Re: [PATCH] drm/amd: Refactor find_system_memory()

2025-02-05 Thread Mario Limonciello
On 2/5/2025 14:43, Felix Kuehling wrote: On 2025-02-05 15:36, Mario Limonciello wrote: On 2/5/2025 14:33, Felix Kuehling wrote: On 2025-02-05 14:31, Mario Limonciello wrote: On 2/4/2025 17:19, Felix Kuehling wrote: On 2025-02-04 17:21, Mario Limonciello wrote: From: Mario Limonciello

Re: [PATCH] drm/amd: Refactor find_system_memory()

2025-02-05 Thread Mario Limonciello
On 2/5/2025 14:33, Felix Kuehling wrote: On 2025-02-05 14:31, Mario Limonciello wrote: On 2/4/2025 17:19, Felix Kuehling wrote: On 2025-02-04 17:21, Mario Limonciello wrote: From: Mario Limonciello find_system_memory() pulls out two fields from an SMBIOS type 17 device and sets them on KF

Re: [PATCH] drm/amd: Refactor find_system_memory()

2025-02-05 Thread Felix Kuehling
On 2025-02-05 14:31, Mario Limonciello wrote: > On 2/4/2025 17:19, Felix Kuehling wrote: >> >> On 2025-02-04 17:21, Mario Limonciello wrote: >>> From: Mario Limonciello >>> >>> find_system_memory() pulls out two fields from an SMBIOS type 17 >>> device and sets them on KFD devices. This however

Re: [PATCH] drm/amd: Refactor find_system_memory()

2025-02-05 Thread Mario Limonciello
On 2/4/2025 17:19, Felix Kuehling wrote: On 2025-02-04 17:21, Mario Limonciello wrote: From: Mario Limonciello find_system_memory() pulls out two fields from an SMBIOS type 17 device and sets them on KFD devices. This however is pulling from the middle of the field in the SMBIOS device and le

Re: [PATCH] drm/amd: Refactor find_system_memory()

2025-02-04 Thread Felix Kuehling
On 2025-02-04 17:21, Mario Limonciello wrote: > From: Mario Limonciello > > find_system_memory() pulls out two fields from an SMBIOS type 17 > device and sets them on KFD devices. This however is pulling from > the middle of the field in the SMBIOS device and leads to an unaligned > access. >

[PATCH] drm/amd: Refactor find_system_memory()

2025-02-04 Thread Mario Limonciello
From: Mario Limonciello find_system_memory() pulls out two fields from an SMBIOS type 17 device and sets them on KFD devices. This however is pulling from the middle of the field in the SMBIOS device and leads to an unaligned access. Instead use a struct representation to access the members and