]> Gentwo Git Trees - linux/.git/commit
drm/amdgpu: Move VCN reset mask setup to late_init for VCN 5.0.1
authorJesse.Zhang <Jesse.Zhang@amd.com>
Fri, 15 Aug 2025 15:44:11 +0000 (23:44 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Sep 2025 14:41:37 +0000 (10:41 -0400)
commit5886090032ec891ccd6bf3c7e9d1ae3fe43ecc34
tree80f08a0f4f3cf16fa8cd35c7d01e931c24f9f208
parentdc704458dd31ba45bf9cac3fe3e3ab546dabed20
drm/amdgpu: Move VCN reset mask setup to late_init for VCN 5.0.1

This patch moves the initialization of the VCN supported_reset mask from
sw_init to a new late_init function for VCN 5.0.1. The change ensures
that all necessary hardware and firmware initialization is complete
before determining the supported reset types.

Key changes:
- Added vcn_v5_0_1_late_init() function to handle late initialization
- Moved supported_reset mask setup from sw_init to late_init
- Added check for per-queue reset support via amdgpu_dpm_reset_vcn_is_supported()
- Updated ip_funcs to use the new late_init function

This change helps ensure proper reset behavior by waiting until all
dependencies are initialized before determining available reset types.

Reviewed-by: Sonny Jiang <sonny.jiang@amd.com>
Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Signed-off-by: Ruili Ji <ruiliji2@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_1.c