]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: Use active umc info from discovery
authorLijo Lazar <lijo.lazar@amd.com>
Wed, 1 Jan 2025 08:53:31 +0000 (14:23 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Feb 2025 02:02:56 +0000 (21:02 -0500)
commitf7a594e40517fa2ab25d5ca10e7b6a158f529fb5
treeba85774011827acd290388896534105279af5b62
parentf5580a9c54e0af9bd0d0e217a23f5f9450b41019
drm/amdgpu: Use active umc info from discovery

There could be configs where some UMC instances are harvested. This
information is obtained through discovery data and populated in
umc.active_mask. Avoid reassigning this as AID mask, instead use the
mask directly while iterating through umc instances. This is to avoid
accesses to harvested UMC instances.

v2: fix warning (Alex)

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c