diff options
| author | Sung Joon Kim <[email protected]> | 2023-09-24 16:34:11 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-10-04 22:42:17 +0000 |
| commit | 434cf7af492fcacf7ca93c05e0bafd266b2e7cbb (patch) | |
| tree | 2bbe9c780832258e1ba48df03e8287bd0f8669ca /drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c | |
| parent | drm/amd/display: use full update for clip size increase of large plane source (diff) | |
| download | kernel-434cf7af492fcacf7ca93c05e0bafd266b2e7cbb.tar.gz kernel-434cf7af492fcacf7ca93c05e0bafd266b2e7cbb.zip | |
drm/amd/display: Add a check for idle power optimization
[why]
Need a helper function to check idle power is allowed
so that dc doesn't access any registers that are power-gated.
[how]
Implement helper function to check idle power optimization.
Enable a hook to check if detection is allowed.
Signed-off-by: Sung Joon Kim <[email protected]>
Acked-by: Aurabindo Pillai <[email protected]>
Reviewed-by: Rodrigo Siqueira <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c')
| -rw-r--r-- | drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c b/drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c index b99db771e071..e43e8d4bfe37 100644 --- a/drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c +++ b/drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c @@ -352,6 +352,7 @@ static bool dmub_srv_hw_setup(struct dmub_srv *dmub, enum dmub_asic asic) funcs->init_reg_offsets = dmub_srv_dcn35_regs_init; funcs->is_hw_powered_up = dmub_dcn35_is_hw_powered_up; + funcs->should_detect = dmub_dcn35_should_detect; break; default: |
