disp: msm: sde: add support for display emulation on RUMI.
Add support display emulation targets on RUMI This change does the following: -parse dt node to enable display emulation mode. -use sde_reg_read for pool timeout ops and debug fs dump. -increases the kickoff timeout when emulation is enabled. -bypass AXI halt operation when emulation is enabled. Change-Id: Idc493964c0b8fc89f5d85fcc5755e0874a12d211 Signed-off-by: Amine Najahi <quic_anajahi@quicinc.com>
This commit is contained in:

committed by
Alex Danila

parent
249b73b0c7
commit
11672b46fc
@@ -4729,6 +4729,7 @@ u32 sde_encoder_helper_get_kickoff_timeout_ms(struct drm_encoder *drm_enc)
|
||||
{
|
||||
struct drm_encoder *src_enc = drm_enc;
|
||||
struct sde_encoder_virt *sde_enc;
|
||||
struct sde_kms *sde_kms;
|
||||
u32 fps;
|
||||
|
||||
if (!drm_enc) {
|
||||
@@ -4736,12 +4737,19 @@ u32 sde_encoder_helper_get_kickoff_timeout_ms(struct drm_encoder *drm_enc)
|
||||
return DEFAULT_KICKOFF_TIMEOUT_MS;
|
||||
}
|
||||
|
||||
sde_kms = sde_encoder_get_kms(drm_enc);
|
||||
if (!sde_kms)
|
||||
return DEFAULT_KICKOFF_TIMEOUT_MS;
|
||||
|
||||
if (sde_encoder_in_clone_mode(drm_enc))
|
||||
src_enc = sde_crtc_get_src_encoder_of_clone(drm_enc->crtc);
|
||||
|
||||
if (!src_enc)
|
||||
return DEFAULT_KICKOFF_TIMEOUT_MS;
|
||||
|
||||
if (test_bit(SDE_FEATURE_EMULATED_ENV, sde_kms->catalog->features))
|
||||
return MAX_KICKOFF_TIMEOUT_MS;
|
||||
|
||||
sde_enc = to_sde_encoder_virt(src_enc);
|
||||
fps = sde_enc->mode_info.frame_rate;
|
||||
|
||||
|
Reference in New Issue
Block a user