From: Manasi Navare <manasi.d.navare@intel.com>
To: "Srivatsa, Anusha" <anusha.srivatsa@intel.com>
Cc: "Nikula, Jani" <jani.nikula@intel.com>,
"Vetter, Daniel" <daniel.vetter@intel.com>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH v2 2/4] drm/i915/icl: Enable TRANSCODER PORT SYNC for tiled displays across separate ports
Date: Wed, 22 May 2019 14:42:23 -0700 [thread overview]
Message-ID: <20190522214223.GD2502@intel.com> (raw)
In-Reply-To: <83F5C7385F545743AD4FB2A62F75B073480620A3@ORSMSX108.amr.corp.intel.com>
On Fri, May 03, 2019 at 05:13:47PM -0700, Srivatsa, Anusha wrote:
>
>
> >-----Original Message-----
> >From: Intel-gfx [mailto:intel-gfx-bounces@lists.freedesktop.org] On Behalf Of
> >Manasi Navare
> >Sent: Tuesday, April 23, 2019 8:49 AM
> >To: intel-gfx@lists.freedesktop.org
> >Cc: Nikula, Jani <jani.nikula@intel.com>; Vetter, Daniel
> ><daniel.vetter@intel.com>
> >Subject: [Intel-gfx] [PATCH v2 2/4] drm/i915/icl: Enable TRANSCODER PORT SYNC
> >for tiled displays across separate ports
> >
> >In case of tiled displays where different tiles are displayed across different ports,
> >we need to synchronize the transcoders involved.
> >This patch implements the transcoder port sync feature for synchronizing one
> >master transcoder with one or more slave transcoders. This is only enbaled in
> ^^^typo
>
Thanks for the catch, will fix this in the next revision.
Does the actual port sync bit and master select setting part in the register look good?
Manasi
> Anusha
> >slave transcoder and the master transcoder is unaware that it is operating in this
> >mode.
> >This has been tested with tiled display connected to ICL.
> >
> >v2:
> >* Do not use RMW, just write to the register in commit (Jani N)
> >
> >Cc: Daniel Vetter <daniel.vetter@intel.com>
> >Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
> >Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> >Cc: Matt Roper <matthew.d.roper@intel.com>
> >Cc: Jani Nikula <jani.nikula@intel.com>
> >Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
> >---
> > drivers/gpu/drm/i915/intel_display.c | 58 ++++++++++++++++++++++++++++
> > 1 file changed, 58 insertions(+)
> >
> >diff --git a/drivers/gpu/drm/i915/intel_display.c
> >b/drivers/gpu/drm/i915/intel_display.c
> >index 92dea2231499..81e8cb9fe221 100644
> >--- a/drivers/gpu/drm/i915/intel_display.c
> >+++ b/drivers/gpu/drm/i915/intel_display.c
> >@@ -4020,6 +4020,61 @@ static void icl_set_pipe_chicken(struct intel_crtc
> >*crtc)
> > I915_WRITE(PIPE_CHICKEN(pipe), tmp);
> > }
> >
> >+static void icl_set_transcoder_port_sync(struct intel_atomic_state
> >*old_intel_state,
> >+ const struct intel_crtc_state
> >*crtc_state) {
> >+ struct intel_crtc *crtc = to_intel_crtc(crtc_state->base.crtc);
> >+ struct drm_i915_private *dev_priv = to_i915(crtc->base.dev);
> >+ struct intel_crtc_state *master_crtc_state = NULL;
> >+ enum transcoder master_transcoder;
> >+ u32 trans_ddi_func_ctl2_val;
> >+ u8 master_select;
> >+
> >+ /*
> >+ * Port Sync Mode cannot be enabled for DP MST
> >+ */
> >+ if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DP_MST))
> >+ return;
> >+
> >+ /*
> >+ * Configure the master select and enable Transcoder Port Sync for
> >+ * Slave CRTCs transcoder.
> >+ */
> >+ if (!crtc_state->master_crtc)
> >+ return;
> >+
> >+ master_crtc_state = intel_atomic_get_new_crtc_state(old_intel_state,
> >+ crtc_state-
> >>master_crtc);
> >+ if (WARN_ON(!master_crtc_state))
> >+ return;
> >+
> >+ master_transcoder = master_crtc_state->cpu_transcoder;
> >+ switch (master_transcoder) {
> >+ case TRANSCODER_A:
> >+ master_select = 1;
> >+ break;
> >+ case TRANSCODER_B:
> >+ master_select = 2;
> >+ break;
> >+ case TRANSCODER_C:
> >+ master_select = 3;
> >+ break;
> >+ case TRANSCODER_EDP:
> >+ default:
> >+ master_select = 0;
> >+ break;
> >+ }
> >+ /* Set the master select bits for Tranascoder Port Sync */
> >+ trans_ddi_func_ctl2_val =
> >(PORT_SYNC_MODE_MASTER_SELECT(master_select) &
> >+ PORT_SYNC_MODE_MASTER_SELECT_MASK)
> ><<
> >+ PORT_SYNC_MODE_MASTER_SELECT_SHIFT;
> >+ /* Enable Transcoder Port Sync */
> >+ trans_ddi_func_ctl2_val |= PORT_SYNC_MODE_ENABLE;
> >+
> >+ I915_WRITE(TRANS_DDI_FUNC_CTL2(crtc_state->cpu_transcoder),
> >+ trans_ddi_func_ctl2_val);
> >+}
> >+
> > static void intel_update_pipe_config(const struct intel_crtc_state
> >*old_crtc_state,
> > const struct intel_crtc_state
> >*new_crtc_state) { @@ -5971,6 +6026,9 @@ static void
> >haswell_crtc_enable(struct intel_crtc_state *pipe_config,
> > if (!transcoder_is_dsi(cpu_transcoder))
> > intel_set_pipe_timings(pipe_config);
> >
> >+ if (INTEL_GEN(dev_priv) >= 11)
> >+ icl_set_transcoder_port_sync(old_intel_state, pipe_config);
> >+
> > intel_set_pipe_src_size(pipe_config);
> >
> > if (cpu_transcoder != TRANSCODER_EDP &&
> >--
> >2.19.1
> >
> >_______________________________________________
> >Intel-gfx mailing list
> >Intel-gfx@lists.freedesktop.org
> >https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2019-05-22 21:40 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-23 15:48 [PATCH v2 0/4] Enable Transcoder Port Sync feature for Tiled displays Manasi Navare
2019-04-23 15:48 ` [PATCH v2 1/4] drm/i915/icl: Assign Master slave crtc links for Transcoder Port Sync Manasi Navare
2019-05-04 0:09 ` Srivatsa, Anusha
2019-05-22 21:40 ` Manasi Navare
2019-06-11 23:28 ` Manasi Navare
2019-06-12 9:39 ` Maarten Lankhorst
2019-06-12 19:04 ` Ville Syrjälä
2019-06-12 19:11 ` Manasi Navare
2019-06-12 19:30 ` Ville Syrjälä
2019-06-12 20:59 ` Manasi Navare
2019-06-13 9:10 ` Ville Syrjälä
2019-06-13 16:41 ` Manasi Navare
2019-06-13 17:12 ` Ville Syrjälä
2019-06-13 20:13 ` Manasi Navare
2019-06-21 18:40 ` Manasi Navare
2019-04-23 15:48 ` [PATCH v2 2/4] drm/i915/icl: Enable TRANSCODER PORT SYNC for tiled displays across separate ports Manasi Navare
2019-05-04 0:13 ` Srivatsa, Anusha
2019-05-22 21:42 ` Manasi Navare [this message]
2019-06-12 8:30 ` Maarten Lankhorst
2019-04-23 15:49 ` [PATCH v2 3/4] drm/i915/dp: Trigger modeset if master_crtc or slaves bitmask changes Manasi Navare
2019-05-04 0:14 ` Srivatsa, Anusha
2019-06-12 8:32 ` Maarten Lankhorst
2019-06-12 18:36 ` Manasi Navare
2019-04-23 15:49 ` [PATCH v2 4/4] drm/i915/dp: Enable master-slaves in trans port sync mode in correct order Manasi Navare
2019-06-12 8:41 ` Maarten Lankhorst
2019-06-13 21:36 ` Manasi Navare
2019-04-23 16:04 ` ✗ Fi.CI.CHECKPATCH: warning for Enable Transcoder Port Sync feature for Tiled displays Patchwork
2019-04-23 16:58 ` ✗ Fi.CI.BAT: failure " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190522214223.GD2502@intel.com \
--to=manasi.d.navare@intel.com \
--cc=anusha.srivatsa@intel.com \
--cc=daniel.vetter@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).