disp: msm: sde: add SID setup function for pipes and lutdma
Add SID setup function to help programming the SIDs for all the pipes and lutdma xin clients based on the VM. Change-Id: Iea598303b480b33de8750e0988129dd5cdfe7572 Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
Этот коммит содержится в:

коммит произвёл
Gerrit - the friendly Code Review server

родитель
7245366343
Коммит
bfec52ae7b
@@ -233,6 +233,29 @@ void sde_plane_setup_src_split_order(struct drm_plane *plane,
|
||||
rect_mode, enable);
|
||||
}
|
||||
|
||||
void sde_plane_set_sid(struct drm_plane *plane, u32 vm)
|
||||
{
|
||||
struct sde_plane *psde;
|
||||
struct sde_kms *sde_kms;
|
||||
struct msm_drm_private *priv;
|
||||
|
||||
if (!plane || !plane->dev) {
|
||||
SDE_ERROR("invalid plane %d\n");
|
||||
return;
|
||||
}
|
||||
|
||||
priv = plane->dev->dev_private;
|
||||
if (!priv || !priv->kms) {
|
||||
SDE_ERROR("invalid KMS reference\n");
|
||||
return;
|
||||
}
|
||||
|
||||
sde_kms = to_sde_kms(priv->kms);
|
||||
|
||||
psde = to_sde_plane(plane);
|
||||
sde_hw_set_sspp_sid(sde_kms->hw_sid, psde->pipe, vm);
|
||||
}
|
||||
|
||||
/**
|
||||
* _sde_plane_set_qos_lut - set danger, safe and creq LUT of the given plane
|
||||
* @plane: Pointer to drm plane
|
||||
|
Ссылка в новой задаче
Block a user