]> Gentwo Git Trees - linux/.git/commit
drm/amd/vcn: Add late_init callback for VCN v4.0.3 reset handling
authorJesse.Zhang <Jesse.Zhang@amd.com>
Wed, 13 Aug 2025 02:55:44 +0000 (10:55 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 15 Aug 2025 17:05:06 +0000 (13:05 -0400)
commit655d6403ad143feffb2d747b9eb9a0ce4e12b713
tree2757abc11e2bf6a6e51eb9609806aabc1d27ff76
parent0ed704d058cec7643a716a21888d58c7d03f2c3e
drm/amd/vcn: Add late_init callback for VCN v4.0.3 reset handling

This change reorganizes VCN reset capability detection by:

1. Moving reset mask configuration from sw_init to new late_init phase
2. Adding vcn_v4_0_3_late_init() to properly check for per-queue reset support
3. Only setting soft full reset mask as fallback when per-queue reset isn't supported
4. Removing TODO comment now that queue reset support is implemented

V2: Removed unrelated changes. Keep amdgpu_get_soft_full_reset_mask in place
    and remove TODO comment. (Alex)
v3: set the flags at one place (all in late_init) (Lijo)

Suggested-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Ruili Ji <ruiliji2@amd.com>
Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c