mirror-linux/drivers/gpu/drm/amd
Mario Limonciello 3646ff2878 drm/amd: Set num IP blocks to 0 if discovery fails
If discovery has failed for any reason (such as no support for a block)
then there is no need to unwind all the IP blocks in fini. In this
condition there can actually be failures during the unwind too.

Reset num_ip_blocks to zero during failure path and skip the unnecessary
cleanup path.

Suggested-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit fae5984296)
Cc: stable@vger.kernel.org
2026-03-11 14:04:08 -04:00
..
acp
amdgpu drm/amd: Set num IP blocks to 0 if discovery fails 2026-03-11 14:04:08 -04:00
amdkfd drm/amdkfd: Unreserve bo if queue update failed 2026-03-11 14:02:45 -04:00
amdxcp
display drm/amd/display: Check for S0i3 to be done before DCCG init on DCN21 2026-03-11 14:01:39 -04:00
include drm/amdgpu/psp: Use Indirect access address for GFX to PSP mailbox 2026-03-04 13:15:00 -05:00
pm drm/amd/pm: add missing od setting PP_OD_FEATURE_ZERO_FAN_BIT for smu v14 2026-03-06 17:10:26 -05:00
ras Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00