disp: msm: sde: fix the QOS setting mismatch
Currently the display driver does not consider the write back client while deriving client type for QOS settings. Add new API to consider the write back and other non real time clients also for picking up the proper QOS settings. This patch also fixes the QOS setting mismatch with QSEEDLITE hardware. Change-Id: I5db3d21921b8930bb6399ea355d3ce2b60e51430 Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
This commit is contained in:
@@ -619,6 +619,24 @@ static inline enum sde_crtc_client_type sde_crtc_get_client_type(
|
||||
return cstate->rsc_client ? RT_RSC_CLIENT : RT_CLIENT;
|
||||
}
|
||||
|
||||
/**
|
||||
* sde_crtc_get_client_type_for_qos - check the crtc type- rt, nrt, rsc_rt, etc.
|
||||
* @crtc: Pointer to crtc
|
||||
*/
|
||||
static inline enum sde_crtc_client_type sde_crtc_get_client_type_for_qos(
|
||||
struct drm_crtc *crtc)
|
||||
{
|
||||
struct sde_crtc_state *cstate =
|
||||
crtc ? to_sde_crtc_state(crtc->state) : NULL;
|
||||
|
||||
if (!cstate)
|
||||
return NRT_CLIENT;
|
||||
|
||||
return sde_crtc_get_intf_mode(crtc) ==
|
||||
INTF_MODE_WB_LINE ? NRT_CLIENT :
|
||||
(cstate->rsc_client ? RT_RSC_CLIENT : RT_CLIENT);
|
||||
}
|
||||
|
||||
/**
|
||||
* sde_crtc_is_enabled - check if sde crtc is enabled or not
|
||||
* @crtc: Pointer to crtc
|
||||
|
Viittaa uudesa ongelmassa
Block a user