All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@intel.com>
To: Lucas De Marchi <lucas.de.marchi@gmail.com>,
	Mahesh Kumar <mahesh1.kumar@intel.com>
Cc: intel-gfx@lists.freedesktop.org, Rodrigo Vivi <rodrigo.vivi@intel.com>
Subject: Re: [PATCH v5] drm/i915: use for_each_pipe loop to assign crtc_mask
Date: Tue, 25 Sep 2018 12:21:09 +0300	[thread overview]
Message-ID: <87zhw6ue4a.fsf@intel.com> (raw)
In-Reply-To: <20180921191447.GB8244@ldmartin-desk.jf.intel.com>

On Fri, 21 Sep 2018, Lucas De Marchi <lucas.de.marchi@gmail.com> wrote:
> On Wed, Sep 19, 2018 at 02:01:26PM +0530, Mahesh Kumar wrote:
>> This cleanup patch makes changes to use for_each_pipe loop
>> during bit-mask assignment of allowed crtc with encoder.
>> 
>> changes:
>>  - use BIT(i) macro instead of (1 << i) (Chris)
>> changes from V2:
>>  - use int for consistency (Jani)
>> changes from V3:
>>  - instead use enum pipe (Ville)
>> changes from V4:
>>  - drop DP/HDMI changes, as already part of patch from ville
>> 
>> Cc: Jani Nikula <jani.nikula@intel.com>
>> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
>> Signed-off-by: Mahesh Kumar <mahesh1.kumar@intel.com>
>> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>

Pushed, thanks for the patch and review.

BR,
Jani.

>
>
> Lucas De Marchi
>
>> ---
>>  drivers/gpu/drm/i915/intel_ddi.c | 4 +++-
>>  1 file changed, 3 insertions(+), 1 deletion(-)
>> 
>> diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c
>> index cd01a09c5e0f..0ef2448fd350 100644
>> --- a/drivers/gpu/drm/i915/intel_ddi.c
>> +++ b/drivers/gpu/drm/i915/intel_ddi.c
>> @@ -3751,6 +3751,7 @@ void intel_ddi_init(struct drm_i915_private *dev_priv, enum port port)
>>  	struct intel_encoder *intel_encoder;
>>  	struct drm_encoder *encoder;
>>  	bool init_hdmi, init_dp, init_lspcon = false;
>> +	enum pipe pipe;
>>  
>>  
>>  	init_hdmi = (dev_priv->vbt.ddi_port_info[port].supports_dvi ||
>> @@ -3801,8 +3802,9 @@ void intel_ddi_init(struct drm_i915_private *dev_priv, enum port port)
>>  	intel_encoder->type = INTEL_OUTPUT_DDI;
>>  	intel_encoder->power_domain = intel_port_to_power_domain(port);
>>  	intel_encoder->port = port;
>> -	intel_encoder->crtc_mask = (1 << 0) | (1 << 1) | (1 << 2);
>>  	intel_encoder->cloneable = 0;
>> +	for_each_pipe(dev_priv, pipe)
>> +		intel_encoder->crtc_mask |= BIT(pipe);
>>  
>>  	if (INTEL_GEN(dev_priv) >= 11)
>>  		intel_dig_port->saved_port_bits = I915_READ(DDI_BUF_CTL(port)) &
>> -- 
>> 2.16.2
>> 
>> _______________________________________________
>> Intel-gfx mailing list
>> Intel-gfx@lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2018-09-25  9:21 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-07 12:40 [PATCH] drm/i915: use for_each_pipe loop to assign crtc_mask Mahesh Kumar
2018-09-07 12:45 ` Chris Wilson
2018-09-07 12:59   ` [PATCH v2] " Mahesh Kumar
2018-09-07 13:04     ` Jani Nikula
2018-09-07 13:11       ` Kumar, Mahesh
2018-09-07 13:34         ` [PATCH v3] " Mahesh Kumar
2018-09-07 14:49       ` [PATCH v2] " Ville Syrjälä
2018-09-08  6:10         ` [PATCH v4] " Mahesh Kumar
2018-09-14  6:28           ` Kumar, Mahesh
2018-09-14 12:38           ` Ville Syrjälä
2018-09-19  8:31             ` [PATCH v5] " Mahesh Kumar
2018-09-21 19:14               ` Lucas De Marchi
2018-09-25  9:21                 ` Jani Nikula [this message]
2018-09-10  9:04         ` [PATCH v2] " Jani Nikula
2018-09-07 13:25 ` ✓ Fi.CI.BAT: success for drm/i915: use for_each_pipe loop to assign crtc_mask (rev2) Patchwork
2018-09-07 14:03 ` ✓ Fi.CI.BAT: success for drm/i915: use for_each_pipe loop to assign crtc_mask (rev3) Patchwork
2018-09-07 15:50 ` ✓ Fi.CI.IGT: " Patchwork
2018-09-08  6:43 ` ✓ Fi.CI.BAT: success for drm/i915: use for_each_pipe loop to assign crtc_mask (rev4) Patchwork
2018-09-08  7:32 ` ✓ Fi.CI.IGT: " Patchwork
2018-09-19  9:36 ` ✓ Fi.CI.BAT: success for drm/i915: use for_each_pipe loop to assign crtc_mask (rev5) Patchwork
2018-09-19 11:55 ` ✓ Fi.CI.IGT: " 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=87zhw6ue4a.fsf@intel.com \
    --to=jani.nikula@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=lucas.de.marchi@gmail.com \
    --cc=mahesh1.kumar@intel.com \
    --cc=rodrigo.vivi@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.