diff options
| author | Boyuan Zhang <[email protected]> | 2024-10-03 01:59:33 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-12-10 15:26:47 +0000 |
| commit | 15df736afe009856a40baf93df3fd10f4a32a88b (patch) | |
| tree | 8f8df224f2d53fbd182cc06332fae5333f2ebf55 /drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c | |
| parent | drm/amd/pm: power up or down vcn by instance (diff) | |
| download | kernel-15df736afe009856a40baf93df3fd10f4a32a88b.tar.gz kernel-15df736afe009856a40baf93df3fd10f4a32a88b.zip | |
drm/amd/pm: add inst to smu_dpm_set_vcn_enable
First, add an instance parameter to smu_dpm_set_vcn_enable() function,
and calling dpm_set_vcn_enable() with this given instance.
Second, modify vcn_gated to be an array, to track the gating status
for each vcn instance separately.
With these 2 changes, smu_dpm_set_vcn_enable() will check and set the
gating status for the given vcn instance ONLY.
v2: remove duplicated functions.
remove for-loop in dpm_set_vcn_enable(), and temporarily move it to
to smu_dpm_set_power_gate(), in order to keep the exact same logic as
before, until further separation in next patch.
v3: add instance number in error message.
v4: declaring i at the top of the function.
Signed-off-by: Boyuan Zhang <[email protected]>
Acked-by: Christian König <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c')
0 files changed, 0 insertions, 0 deletions
