public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@intel.com>
To: "Kulkarni\, Vandita" <vandita.kulkarni@intel.com>,
	"intel-gfx\@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>
Cc: "Deak\, Imre" <imre.deak@intel.com>, "Roper\,
	Matthew D" <matthew.d.roper@intel.com>
Subject: Re: [Intel-gfx] [PATCH 2/4] drm/i915/dsi/xelpd: Add DSI transcoder support
Date: Tue, 19 Oct 2021 14:45:03 +0300	[thread overview]
Message-ID: <87h7ddqlvk.fsf@intel.com> (raw)
In-Reply-To: <ecae5fbc44ac4fe0a58e69258143bb50@intel.com>

On Tue, 19 Oct 2021, "Kulkarni, Vandita" <vandita.kulkarni@intel.com> wrote:
>> -----Original Message-----
>> From: Nikula, Jani <jani.nikula@intel.com>
>> Sent: Tuesday, October 19, 2021 3:44 PM
>> To: Kulkarni, Vandita <vandita.kulkarni@intel.com>; intel-
>> gfx@lists.freedesktop.org
>> Cc: Deak, Imre <imre.deak@intel.com>; Roper, Matthew D
>> <matthew.d.roper@intel.com>; Kulkarni, Vandita
>> <vandita.kulkarni@intel.com>
>> Subject: Re: [PATCH 2/4] drm/i915/dsi/xelpd: Add DSI transcoder support
>> 
>> On Mon, 18 Oct 2021, Vandita Kulkarni <vandita.kulkarni@intel.com> wrote:
>> > Update ADL_P device info to support DSI0, DSI1
>> >
>> > Signed-off-by: Vandita Kulkarni <vandita.kulkarni@intel.com>
>> > ---
>> >  drivers/gpu/drm/i915/i915_pci.c | 31 ++++++++++++++++++++++++++++-
>> --
>> >  1 file changed, 28 insertions(+), 3 deletions(-)
>> >
>> > diff --git a/drivers/gpu/drm/i915/i915_pci.c
>> > b/drivers/gpu/drm/i915/i915_pci.c index 169837de395d..a2dd5a38fdf5
>> > 100644
>> > --- a/drivers/gpu/drm/i915/i915_pci.c
>> > +++ b/drivers/gpu/drm/i915/i915_pci.c
>> > @@ -932,8 +932,6 @@ static const struct intel_device_info adl_s_info =
>> > {  #define XE_LPD_FEATURES \
>> >  	.abox_mask = GENMASK(1, 0),
>> 	\
>> >  	.color = { .degamma_lut_size = 0, .gamma_lut_size = 0 },
>> 	\
>> > -	.cpu_transcoder_mask = BIT(TRANSCODER_A) |
>> BIT(TRANSCODER_B) |		\
>> > -		BIT(TRANSCODER_C) | BIT(TRANSCODER_D),
>> 		\
>> >  	.dbuf.size = 4096,
>> 	\
>> >  	.dbuf.slice_mask = BIT(DBUF_S1) | BIT(DBUF_S2) | BIT(DBUF_S3) |
>> 		\
>> >  		BIT(DBUF_S4),
>> 	\
>> > @@ -950,23 +948,49 @@ static const struct intel_device_info adl_s_info = {
>> >  	.display.has_psr = 1,
>> 	\
>> >  	.display.ver = 13,
>> 	\
>> >  	.pipe_mask = BIT(PIPE_A) | BIT(PIPE_B) | BIT(PIPE_C) | BIT(PIPE_D),
>> 	\
>> > +	XE_LPD_CURSOR_OFFSETS
>> > +
>> > +#define ADLP_TRANSCODERS \
>> > +	.cpu_transcoder_mask = BIT(TRANSCODER_A) |
>> BIT(TRANSCODER_B) |		\
>> > +		BIT(TRANSCODER_C) | BIT(TRANSCODER_D) |
>> 		\
>> > +		BIT(TRANSCODER_DSI_0) | BIT(TRANSCODER_DSI_1),
>> 		\
>> >  	.pipe_offsets = {
>> 	\
>> >  		[TRANSCODER_A] = PIPE_A_OFFSET,
>> 		\
>> >  		[TRANSCODER_B] = PIPE_B_OFFSET,
>> 		\
>> >  		[TRANSCODER_C] = PIPE_C_OFFSET,
>> 		\
>> >  		[TRANSCODER_D] = PIPE_D_OFFSET,
>> 		\
>> > +		[TRANSCODER_DSI_0] = PIPE_DSI0_OFFSET,
>> 		\
>> > +		[TRANSCODER_DSI_1] = PIPE_DSI1_OFFSET,
>> 		\
>> >  	},
>> 	\
>> >  	.trans_offsets = {
>> 	\
>> >  		[TRANSCODER_A] = TRANSCODER_A_OFFSET,
>> 		\
>> >  		[TRANSCODER_B] = TRANSCODER_B_OFFSET,
>> 		\
>> >  		[TRANSCODER_C] = TRANSCODER_C_OFFSET,
>> 		\
>> >  		[TRANSCODER_D] = TRANSCODER_D_OFFSET,
>> 		\
>> > +		[TRANSCODER_DSI_0] = TRANSCODER_DSI0_OFFSET,
>> 		\
>> > +		[TRANSCODER_DSI_1] = TRANSCODER_DSI1_OFFSET,
>> 		\
>> 
>> I think you could just add these changes to XE_LPD_FEATURES, and have
>> separate .cpu_transcoder_mask initialization for ADLP and DG2.
>
> Okay got it. So its ok to have the pipe_offsets  or transcoder offsets added unless we are not defining it in the .cpu_transcoder_mask
> Will make this change.

Yeah, the *_offsets are only used if referenced, and having them should
not make a difference. It's the .cpu_transcoder_mask and .pipe_mask that
matter.

BR,
Hani.

>
> Thanks,
> Vandita
>> 
>> Compare GEN12_FEATURES.
>> 
>> BR,
>> Jani.
>> 
>> > +	}
>> 	\
>> > +
>> > +#define DG2_TRANSCODERS \
>> > +	.cpu_transcoder_mask = BIT(TRANSCODER_A) |
>> BIT(TRANSCODER_B) |		\
>> > +		BIT(TRANSCODER_C) | BIT(TRANSCODER_D),
>> 		\
>> > +	.pipe_offsets = {
>> 	\
>> > +		[TRANSCODER_A] = PIPE_A_OFFSET,
>> 		\
>> > +		[TRANSCODER_B] = PIPE_B_OFFSET,
>> 		\
>> > +		[TRANSCODER_C] = PIPE_C_OFFSET,
>> 		\
>> > +		[TRANSCODER_D] = PIPE_D_OFFSET,
>> 		\
>> >  	},
>> 	\
>> > -	XE_LPD_CURSOR_OFFSETS
>> > +	.trans_offsets = {
>> 	\
>> > +		[TRANSCODER_A] = TRANSCODER_A_OFFSET,
>> 		\
>> > +		[TRANSCODER_B] = TRANSCODER_B_OFFSET,
>> 		\
>> > +		[TRANSCODER_C] = TRANSCODER_C_OFFSET,
>> 		\
>> > +		[TRANSCODER_D] = TRANSCODER_D_OFFSET,
>> 		\
>> > +	}
>> 	\
>> >
>> >  static const struct intel_device_info adl_p_info = {
>> >  	GEN12_FEATURES,
>> >  	XE_LPD_FEATURES,
>> > +	ADLP_TRANSCODERS,
>> >  	PLATFORM(INTEL_ALDERLAKE_P),
>> >  	.require_force_probe = 1,
>> >  	.display.has_cdclk_crawl = 1,
>> > @@ -1029,6 +1053,7 @@ static const struct intel_device_info dg2_info = {
>> >  	XE_HP_FEATURES,
>> >  	XE_HPM_FEATURES,
>> >  	XE_LPD_FEATURES,
>> > +	DG2_TRANSCODERS,
>> >  	DGFX_FEATURES,
>> >  	.graphics_rel = 55,
>> >  	.media_rel = 55,
>> 
>> --
>> Jani Nikula, Intel Open Source Graphics Center

-- 
Jani Nikula, Intel Open Source Graphics Center

  reply	other threads:[~2021-10-19 11:45 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-18  6:52 [Intel-gfx] [PATCH 0/4] Enable MIPI DSI video mode on ADLP Vandita Kulkarni
2021-10-18  6:52 ` [Intel-gfx] [PATCH 1/4] drm/i915/dsi/xelpd: Fix the bit mask for wakeup GB Vandita Kulkarni
2021-10-19 10:05   ` Jani Nikula
2021-10-19 10:15     ` Ville Syrjälä
2021-10-19 10:28       ` Jani Nikula
2021-10-19 10:41         ` Ville Syrjälä
2021-10-19 10:50           ` Ville Syrjälä
2021-10-19 11:27             ` Kulkarni, Vandita
2021-10-18  6:52 ` [Intel-gfx] [PATCH 2/4] drm/i915/dsi/xelpd: Add DSI transcoder support Vandita Kulkarni
2021-10-19 10:13   ` Jani Nikula
2021-10-19 11:40     ` Kulkarni, Vandita
2021-10-19 11:45       ` Jani Nikula [this message]
2021-10-18  6:52 ` [Intel-gfx] [PATCH 3/4] drm/i915/dsi/xelpd: Disable DC states in Video mode Vandita Kulkarni
2021-10-19 10:24   ` Jani Nikula
2021-10-19 12:08     ` Imre Deak
2021-10-18  6:52 ` [Intel-gfx] [PATCH 4/4] drm/i915/dsi: Ungate clock before enabling the phy Vandita Kulkarni
2021-10-19 10:18   ` Jani Nikula
2021-10-19 11:32     ` Kulkarni, Vandita
2021-10-19 11:43       ` Kulkarni, Vandita
2021-10-19 11:46       ` Jani Nikula
2021-10-19 11:48         ` Kulkarni, Vandita
2021-10-18  7:13 ` [Intel-gfx] ✗ Fi.CI.SPARSE: warning for Enable MIPI DSI video mode on ADLP Patchwork
2021-10-18  7:43 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2021-10-18  9:01 ` [Intel-gfx] ✗ Fi.CI.IGT: 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=87h7ddqlvk.fsf@intel.com \
    --to=jani.nikula@intel.com \
    --cc=imre.deak@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=matthew.d.roper@intel.com \
    --cc=vandita.kulkarni@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