All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@intel.com>
To: Jesse Barnes <jsbarnes@google.com>,
	Matt Roper <matthew.d.roper@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH v4 1/2] drm/i915/vbt: Parse panel options separately from timing data
Date: Fri, 15 Nov 2019 09:24:53 +0200	[thread overview]
Message-ID: <87pnht1u0q.fsf@intel.com> (raw)
In-Reply-To: <CAJmaN=k_Swc4KSf_cCV5_yqvdjz5SxTUKGX1V-7SnfJRVnMFtw@mail.gmail.com>

On Thu, 14 Nov 2019, Jesse Barnes <jsbarnes@google.com> wrote:
> LGTM.
>
> Reviewed-by: Jesse Barnes <jsbarnes@google.com>

Yay!

LGTM too.

>
> On Thu, Nov 14, 2019 at 9:07 AM Matt Roper <matthew.d.roper@intel.com> wrote:
>>
>> Newer VBT versions will add an alternate way to read panel DTD
>> information, so let's split parsing of the general panel information
>> from the timing data in preparation.
>>
>> Cc: Jani Nikula <jani.nikula@intel.com>
>> Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
>> ---
>>  drivers/gpu/drm/i915/display/intel_bios.c | 27 +++++++++++++++--------
>>  1 file changed, 18 insertions(+), 9 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/i915/display/intel_bios.c b/drivers/gpu/drm/i915/display/intel_bios.c
>> index 6d7b1a83cb07..d13ce0b7db8b 100644
>> --- a/drivers/gpu/drm/i915/display/intel_bios.c
>> +++ b/drivers/gpu/drm/i915/display/intel_bios.c
>> @@ -208,17 +208,12 @@ get_lvds_fp_timing(const struct bdb_header *bdb,
>>         return (const struct lvds_fp_timing *)((const u8 *)bdb + ofs);
>>  }
>>
>> -/* Try to find integrated panel data */
>> +/* Parse general panel options */
>>  static void
>> -parse_lfp_panel_data(struct drm_i915_private *dev_priv,
>> -                    const struct bdb_header *bdb)
>> +parse_panel_options(struct drm_i915_private *dev_priv,
>> +                   const struct bdb_header *bdb)
>>  {
>>         const struct bdb_lvds_options *lvds_options;
>> -       const struct bdb_lvds_lfp_data *lvds_lfp_data;
>> -       const struct bdb_lvds_lfp_data_ptrs *lvds_lfp_data_ptrs;
>> -       const struct lvds_dvo_timing *panel_dvo_timing;
>> -       const struct lvds_fp_timing *fp_timing;
>> -       struct drm_display_mode *panel_fixed_mode;
>>         int panel_type;
>>         int drrs_mode;
>>         int ret;
>> @@ -267,6 +262,19 @@ parse_lfp_panel_data(struct drm_i915_private *dev_priv,
>>                 DRM_DEBUG_KMS("DRRS not supported (VBT input)\n");
>>                 break;
>>         }
>> +}
>> +
>> +/* Try to find integrated panel timing data */
>> +static void
>> +parse_lfp_panel_dtd(struct drm_i915_private *dev_priv,
>> +                   const struct bdb_header *bdb)
>> +{
>> +       const struct bdb_lvds_lfp_data *lvds_lfp_data;
>> +       const struct bdb_lvds_lfp_data_ptrs *lvds_lfp_data_ptrs;
>> +       const struct lvds_dvo_timing *panel_dvo_timing;
>> +       const struct lvds_fp_timing *fp_timing;
>> +       struct drm_display_mode *panel_fixed_mode;
>> +       int panel_type = dev_priv->vbt.panel_type;
>>
>>         lvds_lfp_data = find_section(bdb, BDB_LVDS_LFP_DATA);
>>         if (!lvds_lfp_data)
>> @@ -1868,7 +1876,8 @@ void intel_bios_init(struct drm_i915_private *dev_priv)
>>         /* Grab useful general definitions */
>>         parse_general_features(dev_priv, bdb);
>>         parse_general_definitions(dev_priv, bdb);
>> -       parse_lfp_panel_data(dev_priv, bdb);
>> +       parse_panel_options(dev_priv, bdb);
>> +       parse_lfp_panel_dtd(dev_priv, bdb);
>>         parse_lfp_backlight(dev_priv, bdb);
>>         parse_sdvo_panel_data(dev_priv, bdb);
>>         parse_driver_features(dev_priv, bdb);
>> --
>> 2.21.0
>>
>> _______________________________________________
>> 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

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

WARNING: multiple messages have this Message-ID (diff)
From: Jani Nikula <jani.nikula@intel.com>
To: Jesse Barnes <jsbarnes@google.com>,
	Matt Roper <matthew.d.roper@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH v4 1/2] drm/i915/vbt: Parse panel options separately from timing data
Date: Fri, 15 Nov 2019 09:24:53 +0200	[thread overview]
Message-ID: <87pnht1u0q.fsf@intel.com> (raw)
Message-ID: <20191115072453.dmOKEvAmSwIZiYxzXMbSLwl2x4gFT7VhqEGkrXzgNzw@z> (raw)
In-Reply-To: <CAJmaN=k_Swc4KSf_cCV5_yqvdjz5SxTUKGX1V-7SnfJRVnMFtw@mail.gmail.com>

On Thu, 14 Nov 2019, Jesse Barnes <jsbarnes@google.com> wrote:
> LGTM.
>
> Reviewed-by: Jesse Barnes <jsbarnes@google.com>

Yay!

LGTM too.

>
> On Thu, Nov 14, 2019 at 9:07 AM Matt Roper <matthew.d.roper@intel.com> wrote:
>>
>> Newer VBT versions will add an alternate way to read panel DTD
>> information, so let's split parsing of the general panel information
>> from the timing data in preparation.
>>
>> Cc: Jani Nikula <jani.nikula@intel.com>
>> Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
>> ---
>>  drivers/gpu/drm/i915/display/intel_bios.c | 27 +++++++++++++++--------
>>  1 file changed, 18 insertions(+), 9 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/i915/display/intel_bios.c b/drivers/gpu/drm/i915/display/intel_bios.c
>> index 6d7b1a83cb07..d13ce0b7db8b 100644
>> --- a/drivers/gpu/drm/i915/display/intel_bios.c
>> +++ b/drivers/gpu/drm/i915/display/intel_bios.c
>> @@ -208,17 +208,12 @@ get_lvds_fp_timing(const struct bdb_header *bdb,
>>         return (const struct lvds_fp_timing *)((const u8 *)bdb + ofs);
>>  }
>>
>> -/* Try to find integrated panel data */
>> +/* Parse general panel options */
>>  static void
>> -parse_lfp_panel_data(struct drm_i915_private *dev_priv,
>> -                    const struct bdb_header *bdb)
>> +parse_panel_options(struct drm_i915_private *dev_priv,
>> +                   const struct bdb_header *bdb)
>>  {
>>         const struct bdb_lvds_options *lvds_options;
>> -       const struct bdb_lvds_lfp_data *lvds_lfp_data;
>> -       const struct bdb_lvds_lfp_data_ptrs *lvds_lfp_data_ptrs;
>> -       const struct lvds_dvo_timing *panel_dvo_timing;
>> -       const struct lvds_fp_timing *fp_timing;
>> -       struct drm_display_mode *panel_fixed_mode;
>>         int panel_type;
>>         int drrs_mode;
>>         int ret;
>> @@ -267,6 +262,19 @@ parse_lfp_panel_data(struct drm_i915_private *dev_priv,
>>                 DRM_DEBUG_KMS("DRRS not supported (VBT input)\n");
>>                 break;
>>         }
>> +}
>> +
>> +/* Try to find integrated panel timing data */
>> +static void
>> +parse_lfp_panel_dtd(struct drm_i915_private *dev_priv,
>> +                   const struct bdb_header *bdb)
>> +{
>> +       const struct bdb_lvds_lfp_data *lvds_lfp_data;
>> +       const struct bdb_lvds_lfp_data_ptrs *lvds_lfp_data_ptrs;
>> +       const struct lvds_dvo_timing *panel_dvo_timing;
>> +       const struct lvds_fp_timing *fp_timing;
>> +       struct drm_display_mode *panel_fixed_mode;
>> +       int panel_type = dev_priv->vbt.panel_type;
>>
>>         lvds_lfp_data = find_section(bdb, BDB_LVDS_LFP_DATA);
>>         if (!lvds_lfp_data)
>> @@ -1868,7 +1876,8 @@ void intel_bios_init(struct drm_i915_private *dev_priv)
>>         /* Grab useful general definitions */
>>         parse_general_features(dev_priv, bdb);
>>         parse_general_definitions(dev_priv, bdb);
>> -       parse_lfp_panel_data(dev_priv, bdb);
>> +       parse_panel_options(dev_priv, bdb);
>> +       parse_lfp_panel_dtd(dev_priv, bdb);
>>         parse_lfp_backlight(dev_priv, bdb);
>>         parse_sdvo_panel_data(dev_priv, bdb);
>>         parse_driver_features(dev_priv, bdb);
>> --
>> 2.21.0
>>
>> _______________________________________________
>> 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

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

  parent reply	other threads:[~2019-11-15  7:24 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-14 17:08 [PATCH v4 0/2] VBT "generic DTD" block Matt Roper
2019-11-14 17:08 ` [Intel-gfx] " Matt Roper
2019-11-14 17:08 ` [PATCH v4 1/2] drm/i915/vbt: Parse panel options separately from timing data Matt Roper
2019-11-14 17:08   ` [Intel-gfx] " Matt Roper
2019-11-15  0:05   ` Jesse Barnes
2019-11-15  0:05     ` [Intel-gfx] " Jesse Barnes
2019-11-15  6:57     ` Saarinen, Jani
2019-11-15  6:57       ` [Intel-gfx] " Saarinen, Jani
2019-11-15  7:24     ` Jani Nikula [this message]
2019-11-15  7:24       ` Jani Nikula
2019-11-14 17:08 ` [PATCH v4 2/2] drm/i915/vbt: Handle generic DTD block Matt Roper
2019-11-14 17:08   ` [Intel-gfx] " Matt Roper
2019-11-15  7:45   ` Jani Nikula
2019-11-15  7:45     ` [Intel-gfx] " Jani Nikula
2019-11-14 18:58 ` ✗ Fi.CI.CHECKPATCH: warning for VBT "generic DTD" block Patchwork
2019-11-14 18:58   ` [Intel-gfx] " Patchwork
2019-11-14 19:24 ` ✓ Fi.CI.BAT: success " Patchwork
2019-11-14 19:24   ` [Intel-gfx] " Patchwork
2019-11-15 22:31 ` ✗ Fi.CI.IGT: failure " Patchwork
2019-11-15 22:31   ` [Intel-gfx] " Patchwork
2019-11-15 23:57   ` Matt Roper
2019-11-15 23:57     ` [Intel-gfx] " Matt Roper

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=87pnht1u0q.fsf@intel.com \
    --to=jani.nikula@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jsbarnes@google.com \
    --cc=matthew.d.roper@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.