]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu: fix handling of harvesting for ip_discovery firmware
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 26 Sep 2025 21:31:32 +0000 (17:31 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Oct 2025 18:14:15 +0000 (14:14 -0400)
commit357d90be2c7aaa526a840cddffd2b8d676fe75a6
treec027ae3de8e53d4312224a7066a1011fc60fdd0d
parent8f74c70be57527d7b79e2ecf6de1a154d148254d
drm/amdgpu: fix handling of harvesting for ip_discovery firmware

Chips which use the IP discovery firmware loaded by the driver
reported incorrect harvesting information in the ip discovery
table in sysfs because the driver only uses the ip discovery
firmware for populating sysfs and not for direct parsing for the
driver itself as such, the fields that are used to print the
harvesting info in sysfs report incorrect data for some IPs.  Populate
the relevant fields for this case as well.

Fixes: 514678da56da ("drm/amdgpu/discovery: fix fw based ip discovery")
Acked-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c