drm/amdgpu: Fix infinite loop in gfxhub_v1_2_xcc_gart_enable (v2)
authorVictor Lu <victorchengchi.lu@amd.com>
Tue, 18 Jul 2023 18:31:58 +0000 (14:31 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Jul 2023 20:52:25 +0000 (16:52 -0400)
commit9196b63beeaf3e443417107fdbdff85cf4ab4a96
tree351c7589f1344935172cafdde365e5f747ec1ff4
parent0bdebfef3fb2b6291000765eaa9c6c8030293fce
drm/amdgpu: Fix infinite loop in gfxhub_v1_2_xcc_gart_enable (v2)

An instance of for_each_inst() was not changed to match its new
behaviour and is causing a loop.

v2: remove tmp_mask variable

Fixes: b579ea632fca ("drm/amdgpu: Modify for_each_inst macro")
Signed-off-by: Victor Lu <victorchengchi.lu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfxhub_v1_2.c