mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 13:23:02 -04:00
drm/amd/display: Add get replay residency function
[Why&How] Add dc interface to export link service function for getting Replay residency Reviewed-by: Robin Chen <robin.chen@amd.com> Signed-off-by: Huang, Leon <Leon.Huang1@amd.com> Signed-off-by: Fangzhi Zuo <jerry.zuo@amd.com> Tested-by: Dan Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
7a4dd08c3f
commit
040f7925de
@@ -534,6 +534,13 @@ bool dc_link_set_pr_general_cmd(struct dc_link *link,
|
||||
return link->dc->link_srv->dp_pr_set_general_cmd(link, general_cmd_data);
|
||||
}
|
||||
|
||||
void dc_link_edp_replay_residency(const struct dc_link *link,
|
||||
unsigned int *residency, bool is_start, enum pr_residency_mode mode)
|
||||
{
|
||||
if (link && link->dc && link->dc->link_srv)
|
||||
link->dc->link_srv->edp_replay_residency(link, residency, is_start, mode);
|
||||
}
|
||||
|
||||
bool dc_link_get_pr_state(const struct dc_link *link, uint64_t *state)
|
||||
{
|
||||
return link->dc->link_srv->dp_pr_get_state(link, state);
|
||||
|
||||
@@ -2984,6 +2984,14 @@ bool dc_link_update_pr_state(struct dc_link *link,
|
||||
bool dc_link_set_pr_general_cmd(struct dc_link *link,
|
||||
struct dmub_cmd_pr_general_cmd_data *general_cmd_data);
|
||||
|
||||
/*
|
||||
* Measure Panel Replay residency for the given link.
|
||||
* mode: PR_RESIDENCY_MODE_PHY, PR_RESIDENCY_MODE_ALPM, or
|
||||
* PR_RESIDENCY_MODE_ENABLEMENT_PERIOD
|
||||
*/
|
||||
void dc_link_edp_replay_residency(const struct dc_link *link,
|
||||
unsigned int *residency, bool is_start, enum pr_residency_mode mode);
|
||||
|
||||
/*
|
||||
* Get Panel Replay state:
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user