Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 11a43274 authored by Samantha Tran's avatar Samantha Tran
Browse files

drm: msm: sde: ensure all clients on primary vsyncs are unblocked



This change adds the required functions in the include directory
that will check if any secondary clients are waiting on vsync
wait_queue and unblock them during primary vsync disable.

Change-Id: I1cc146dbf6dc31ac3037b8ddaa5492655a2ac14c
Signed-off-by: default avatarSamantha Tran <samtran@codeaurora.org>
parent f18dbda7
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
 */

#ifndef _SDE_RSC_H_
@@ -273,6 +273,14 @@ bool is_sde_rsc_available(int rsc_index);
 */
enum sde_rsc_state get_sde_rsc_current_state(int rsc_index);

/**
 * get_sde_rsc_primary_crtc - gets the primary crtc for the sde rsc.
 * @rsc_index:   A client will be created on this RSC. As of now only
 *		 SDE_RSC_INDEX is valid rsc index.
 * Returns: crtc id of primary crtc ; 0 for all other cases.
 */
int get_sde_rsc_primary_crtc(int rsc_index);

/**
 * sde_rsc_client_trigger_vote() - triggers ab/ib vote for rsc client
 *
@@ -349,6 +357,11 @@ static inline enum sde_rsc_state get_sde_rsc_current_state(int rsc_index)
	return SDE_RSC_IDLE_STATE;
}

static inline int get_sde_rsc_primary_crtc(int rsc_index)
{
	return 0;
}

static inline int sde_rsc_client_trigger_vote(
	struct sde_rsc_client *caller_client, bool delta_vote)
{