All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: intel-gfx@lists.freedesktop.org, Paulo Zanoni <paulo.r.zanoni@intel.com>
Subject: Re: [PATCH 01/10] drm/i915/bios: amend child device config parameters
Date: Fri, 25 Aug 2017 15:38:19 +0300	[thread overview]
Message-ID: <20170825123818.GP4914@intel.com> (raw)
In-Reply-To: <bbf66c934eb5c655fd7dda6c1bb8f218c8edc209.1503600621.git.jani.nikula@intel.com>

On Thu, Aug 24, 2017 at 09:53:59PM +0300, Jani Nikula wrote:
> Add both some new and some old fields to child device config
> parameters. Prepare for switching to just one child device config. Use
> naming from struct old_child_dev_config for common fields.
> 
> No functional changes.
> 
> Cc: Animesh Manna <animesh.manna@intel.com>
> Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
> ---
>  drivers/gpu/drm/i915/intel_vbt_defs.h | 31 +++++++++++++++++++++++++++----
>  1 file changed, 27 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_vbt_defs.h b/drivers/gpu/drm/i915/intel_vbt_defs.h
> index a92e7762f596..9ad05b2c44e0 100644
> --- a/drivers/gpu/drm/i915/intel_vbt_defs.h
> +++ b/drivers/gpu/drm/i915/intel_vbt_defs.h
> @@ -260,13 +260,28 @@ struct old_child_dev_config {
>  /* This one contains field offsets that are known to be common for all BDB
>   * versions. Notice that the meaning of the contents contents may still change,
>   * but at least the offsets are consistent. */
> -
>  struct common_child_dev_config {
>  	u16 handle;
>  	u16 device_type;
> -	u8 not_common1[12];
> +	u8 i2c_speed;
> +	u8 dp_onboard_redriver;					/* 158 */
> +	u8 dp_ondock_redriver;					/* 158 */
> +	u8 hdmi_level_shifter_value:4;				/* 169 */
> +	u8 hdmi_max_data_rate:4;				/* 204 */
> +	u16 dtd_buf_ptr;					/* 161 */
> +	u8 edidless_efp:1;					/* 161 */
> +	u8 compression_enable:1;				/* 198 */
> +	u8 compression_method:1;				/* 198 */
> +	u8 ganged_edp:1;					/* 202 */
> +	u8 reserved0:4;
> +	u8 compression_structure_index:4;			/* 198 */
> +	u8 reserved1:4;
> +	u8 slave_port;						/* 202 */
> +	u8 reserved2;
> +	u16 addin_offset;
>  	u8 dvo_port;
> -	u8 not_common2[2];
> +	u8 i2c_pin;
> +	u8 slave_addr;
>  	u8 ddc_pin;
>  	u16 edid_ptr;
>  	u8 dvo_cfg; /* See DEVICE_CFG_* above */
> @@ -281,7 +296,15 @@ struct common_child_dev_config {
>  	u8 tmds_support:1;
>  	u8 support_reserved:5;
>  	u8 aux_channel;
> -	u8 not_common3[11];
> +	u8 dongle_detect;
> +	u8 capabilities;
> +	u8 dvo_wiring; /* See DEVICE_WIRE_* above */
> +	u8 mipi_bridge_type;					/* 171 */
> +	u16 extended_type;
> +	u8 dvo_function;
> +	u8 flags2;						/* 195 */
> +	u8 dp_gpio_index;					/* 195 */
> +	u16 dp_gpio_pin_num;					/* 195 */
>  	u8 iboost_level;

The iboost stuff could also use the version comments, and it could be
made to use a bitfield since that seems to be what we do for VBT stuff.

Series lgtm, or at least I wasn't able to spot any mistakes. So for the
series
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

>  } __packed;
>  
> -- 
> 2.11.0

-- 
Ville Syrjälä
Intel OTC
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2017-08-25 12:38 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-24 18:53 [PATCH 00/10] drm/i915/bios: child device config refactoring Jani Nikula
2017-08-24 18:53 ` [PATCH 01/10] drm/i915/bios: amend child device config parameters Jani Nikula
2017-08-25 12:38   ` Ville Syrjälä [this message]
2017-08-25 13:56     ` Jani Nikula
2017-08-24 18:54 ` [PATCH 02/10] drm/i915/bios: document BDB versions of child device config fields Jani Nikula
2017-08-24 18:54 ` [PATCH 03/10] drm/i915/bios: remove the raw version of child device config Jani Nikula
2017-08-24 18:54 ` [PATCH 04/10] drm/i915/bios: add legacy contents to common " Jani Nikula
2017-08-24 18:54 ` [PATCH 05/10] drm/i915/bios: throw away high level child device union Jani Nikula
2017-08-24 18:54 ` [PATCH 06/10] drm/i915/bios: throw away struct old_child_dev_config Jani Nikula
2017-08-24 18:54 ` [PATCH 07/10] drm/i915/bios: document child device config dvo_port values a bit better Jani Nikula
2017-08-24 18:54 ` [PATCH 08/10] drm/i915/bios: group device type definitions together Jani Nikula
2017-08-24 18:54 ` [PATCH 09/10] drm/i915/bios: throw away unused DVO_* macros Jani Nikula
2017-08-24 18:54 ` [PATCH 10/10] drm/i915/bios: drop the rest of the p_ prefixes from pointers Jani Nikula
2017-08-24 19:18 ` ✓ Fi.CI.BAT: success for drm/i915/bios: child device config refactoring Patchwork
2017-08-24 20:14 ` ✗ Fi.CI.IGT: warning " 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=20170825123818.GP4914@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@intel.com \
    --cc=paulo.r.zanoni@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.