]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: Refactor VCN v5.0.1 HW init into separate instance function
authorJesse.Zhang <Jesse.Zhang@amd.com>
Wed, 6 Aug 2025 08:03:13 +0000 (16:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Sep 2025 14:41:11 +0000 (10:41 -0400)
commiteb6910cdaa8a1b5af11df6fd2e9a0b2b9f72a028
treecf5a615c71f75c0464a1ca959aff7be6b7cd1b81
parent0c1f3fe9a5f899ac95114e68959a35454af1523d
drm/amdgpu: Refactor VCN v5.0.1 HW init into separate instance function

Split the per-instance initialization code from vcn_v5_0_1_hw_init()
into a new vcn_v5_0_1_hw_init_inst() function. This improves code
organization by:

1. Separating the instance-specific initialization logic
2. Making the main init function more readable
3. Following the pattern used in queue reset

The SR-IOV specific initialization remains in the main function since
it has different requirements.

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