drm/amdgpu: partially revert powerplay `__counted_by` changes
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Oct 2024 21:27:25 +0000 (17:27 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Oct 2024 18:40:05 +0000 (14:40 -0400)
commit8a5ae927b653b43623e55610d2215ee94c027e8c
tree6ae7d760a3d00c2f77ef07be9ee4150312e3a80e
parent2c04742b04ee35ab75ffdbf4fe1a6ef1792775af
drm/amdgpu: partially revert powerplay `__counted_by` changes

Partially revert
commit 0ca9f757a0e2 ("drm/amd/pm: powerplay: Add `__counted_by` attribute for flexible arrays")

The count attribute for these arrays does not get set until
after the arrays are allocated and populated leading to false
UBSAN warnings.

Fixes: 0ca9f757a0e2 ("drm/amd/pm: powerplay: Add `__counted_by` attribute for flexible arrays")
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3662
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/powerplay/inc/hwmgr.h