From: Jani Nikula <jani.nikula@intel.com>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 01/13] drm/i915/bios: make child device order the priority order
Date: Wed, 05 Jun 2019 15:22:41 +0300 [thread overview]
Message-ID: <87muiw2pda.fsf@intel.com> (raw)
In-Reply-To: <20190531140454.GV5942@intel.com>
On Fri, 31 May 2019, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote:
> On Fri, May 31, 2019 at 04:14:51PM +0300, Jani Nikula wrote:
>> Make the child device order the priority order in sanitizing DDC pin and
>> AUX CH. First come, first served.
>>
>> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
>> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>> ---
>> drivers/gpu/drm/i915/intel_bios.c | 32 +++++++++++++++----------------
>> 1 file changed, 15 insertions(+), 17 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/i915/intel_bios.c b/drivers/gpu/drm/i915/intel_bios.c
>> index a0b708f7f384..0a1b9a4a1b71 100644
>> --- a/drivers/gpu/drm/i915/intel_bios.c
>> +++ b/drivers/gpu/drm/i915/intel_bios.c
>> @@ -1242,8 +1242,7 @@ static u8 translate_iboost(u8 val)
>> static void sanitize_ddc_pin(struct drm_i915_private *dev_priv,
>> enum port port)
>> {
>> - const struct ddi_vbt_port_info *info =
>> - &dev_priv->vbt.ddi_port_info[port];
>> + struct ddi_vbt_port_info *info = &dev_priv->vbt.ddi_port_info[port];
>> enum port p;
>>
>> if (!info->alternate_ddc_pin)
>> @@ -1258,8 +1257,8 @@ static void sanitize_ddc_pin(struct drm_i915_private *dev_priv,
>>
>> DRM_DEBUG_KMS("port %c trying to use the same DDC pin (0x%x) as port %c, "
>> "disabling port %c DVI/HDMI support\n",
>> - port_name(p), i->alternate_ddc_pin,
>> - port_name(port), port_name(p));
>> + port_name(port), info->alternate_ddc_pin,
>> + port_name(p), port_name(port));
>>
>> /*
>> * If we have multiple ports supposedly sharing the
>> @@ -1267,20 +1266,19 @@ static void sanitize_ddc_pin(struct drm_i915_private *dev_priv,
>> * port. Otherwise they share the same ddc bin and
>> * system couldn't communicate with them separately.
>> *
>> - * Due to parsing the ports in child device order,
>> - * a later device will always clobber an earlier one.
>> + * Give child device order the priority, first come first
>> + * served.
>> */
>> - i->supports_dvi = false;
>> - i->supports_hdmi = false;
>> - i->alternate_ddc_pin = 0;
>> + info->supports_dvi = false;
>> + info->supports_hdmi = false;
>> + info->alternate_ddc_pin = 0;
>
> 'i' can now be const I think.
I ignored that because 'i' gets removed a couple of patches later
anyway.
>
> Series is
> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Though I only glanced at the header reorganization things instead
> of reading through it all in detail.
Thanks, pushed the lot.
BR,
Jani.
>
>> }
>> }
>>
>> static void sanitize_aux_ch(struct drm_i915_private *dev_priv,
>> enum port port)
>> {
>> - const struct ddi_vbt_port_info *info =
>> - &dev_priv->vbt.ddi_port_info[port];
>> + struct ddi_vbt_port_info *info = &dev_priv->vbt.ddi_port_info[port];
>> enum port p;
>>
>> if (!info->alternate_aux_channel)
>> @@ -1295,8 +1293,8 @@ static void sanitize_aux_ch(struct drm_i915_private *dev_priv,
>>
>> DRM_DEBUG_KMS("port %c trying to use the same AUX CH (0x%x) as port %c, "
>> "disabling port %c DP support\n",
>> - port_name(p), i->alternate_aux_channel,
>> - port_name(port), port_name(p));
>> + port_name(port), info->alternate_aux_channel,
>> + port_name(p), port_name(port));
>>
>> /*
>> * If we have multiple ports supposedlt sharing the
>> @@ -1304,11 +1302,11 @@ static void sanitize_aux_ch(struct drm_i915_private *dev_priv,
>> * port. Otherwise they share the same aux channel
>> * and system couldn't communicate with them separately.
>> *
>> - * Due to parsing the ports in child device order,
>> - * a later device will always clobber an earlier one.
>> + * Give child device order the priority, first come first
>> + * served.
>> */
>> - i->supports_dp = false;
>> - i->alternate_aux_channel = 0;
>> + info->supports_dp = false;
>> + info->alternate_aux_channel = 0;
>> }
>> }
>>
>> --
>> 2.20.1
--
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2019-06-05 12:19 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-31 13:14 [PATCH 00/13] drm/i915/bios: vbt cleanup Jani Nikula
2019-05-31 13:14 ` [PATCH 01/13] drm/i915/bios: make child device order the priority order Jani Nikula
2019-05-31 14:04 ` Ville Syrjälä
2019-06-05 12:22 ` Jani Nikula [this message]
2019-05-31 13:14 ` [PATCH 02/13] drm/i915/bios: store child device pointer in DDI port info Jani Nikula
2019-05-31 13:14 ` [PATCH 03/13] drm/i915/bios: refactor DDC pin and AUX CH sanitize functions Jani Nikula
2019-05-31 13:14 ` [PATCH 04/13] drm/i915/bios: use port info child pointer to determine HPD invert Jani Nikula
2019-05-31 13:14 ` [PATCH 05/13] drm/i915/bios: use port info child pointer to determine LSPCON presence Jani Nikula
2019-05-31 13:14 ` [PATCH 06/13] drm/i915/bios: clean up VBT port info debug logging Jani Nikula
2019-05-31 13:14 ` [PATCH 07/13] drm/i915/bios: remove unused, obsolete VBT definitions Jani Nikula
2019-05-31 13:14 ` [PATCH 08/13] drm/i915/bios: reserve struct bdb_ prefix for BDB blocks Jani Nikula
2019-05-31 13:14 ` [PATCH 09/13] drm/i915/bios: add BDB block comments before definitions Jani Nikula
2019-05-31 13:15 ` [PATCH 10/13] drm/i915/bios: sort BDB block definitions using block ID Jani Nikula
2019-05-31 13:15 ` [PATCH 11/13] drm/i915/bios: add VBT swing bit to child device definition Jani Nikula
2019-05-31 13:15 ` [PATCH 12/13] drm/i915/bios: add more LFP options Jani Nikula
2019-05-31 13:15 ` [PATCH 13/13] drm/i915/bios: add an enum for BDB block IDs Jani Nikula
2019-05-31 16:34 ` ✓ Fi.CI.BAT: success for drm/i915/bios: vbt cleanup Patchwork
2019-06-01 22:03 ` ✓ 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=87muiw2pda.fsf@intel.com \
--to=jani.nikula@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=ville.syrjala@linux.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).