From: Jani Nikula <jani.nikula@intel.com>
To: "Michał Grzelak" <michal.grzelak@intel.com>,
intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Cc: "Suraj Kandpal" <suraj.kandpal@intel.com>,
"Michał Grzelak" <michal.grzelak@intel.com>
Subject: Re: [PATCH v6 1/8] drm/i915/bios: search for VBT #57 by default
Date: Thu, 04 Jun 2026 09:17:44 +0300 [thread overview]
Message-ID: <364052e487b8627fefa31f49a9f1d594f4aa9987@intel.com> (raw)
In-Reply-To: <20260603230544.1993439-2-michal.grzelak@intel.com>
On Thu, 04 Jun 2026, Michał Grzelak <michal.grzelak@intel.com> wrote:
> Start searching for Vswing / Preemphasis Override Block during VBT
> parsing at init_bdb_blocks().
>
> Check for failure since pre-ICL GOPs do not contain the block. Check
> also if VBT version is appropriately up-to-date.
>
> Issue a debug message when port requests to override VS/PE and parsing
> VBT #57 for the platform has not yet been implemented.
>
> v3->v4
> - add Bspec (Suraj)
>
> Bspec: 32063
> Signed-off-by: Michał Grzelak <michal.grzelak@intel.com>
> Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_bios.c | 20 ++++++++++++++++++++
> 1 file changed, 20 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_bios.c b/drivers/gpu/drm/i915/display/intel_bios.c
> index b6fe87c29aa7c..420b09b4d01ef 100644
> --- a/drivers/gpu/drm/i915/display/intel_bios.c
> +++ b/drivers/gpu/drm/i915/display/intel_bios.c
> @@ -200,6 +200,8 @@ static const struct {
> .min_size = sizeof(struct bdb_mipi_sequence) },
> { .section_id = BDB_COMPRESSION_PARAMETERS,
> .min_size = sizeof(struct bdb_compression_parameters), },
> + { .section_id = BDB_VSWING_PREEMPH,
> + .min_size = sizeof(struct bdb_vswing_preemph), },
> { .section_id = BDB_GENERIC_DTD,
> .min_size = sizeof(struct bdb_generic_dtd), },
> };
> @@ -2183,6 +2185,23 @@ parse_compression_parameters(struct intel_display *display)
> }
> }
>
> +static void
> +parse_vswing_preemph_override(struct intel_display *display)
> +{
> + const struct bdb_vswing_preemph *block;
> +
> + if (display->vbt.version < 218)
> + return;
> +
> + block = bdb_find_section(display, BDB_VSWING_PREEMPH);
> +
> + /* pre-ICL GOPs don't have VBT #57 */
> + if (!block)
> + return;
> +
> + drm_dbg_kms(display->drm, "valid VS/PE-O request but not yet supported\n");
> +}
> +
> static u8 translate_iboost(struct intel_display *display, u8 val)
> {
> static const u8 mapping[] = { 1, 3, 7 }; /* See VBT spec */
> @@ -3274,6 +3293,7 @@ void intel_bios_init(struct intel_display *display)
>
> /* Depends on child device list */
> parse_compression_parameters(display);
> + parse_vswing_preemph_override(display);
This does not depend on the child device list
(display->vbt.display_devices) which is filled by
parse_general_definitions(). The call should be placed at the end of the
group above this.
BR,
Jani.
>
> out:
> if (!vbt) {
--
Jani Nikula, Intel
next prev parent reply other threads:[~2026-06-04 6:17 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-03 23:05 [PATCH v6 0/8] Vswing / Preemphasis Override Michał Grzelak
2026-06-03 23:05 ` [PATCH v6 1/8] drm/i915/bios: search for VBT #57 by default Michał Grzelak
2026-06-04 6:17 ` Jani Nikula [this message]
2026-06-03 23:05 ` [PATCH v6 2/8] drm/i915/bios: store VBT #57's metadata in intel_vbt_data Michał Grzelak
2026-06-03 23:05 ` [PATCH v6 3/8] drm/i915/bios: print VS/PE-O port info Michał Grzelak
2026-06-04 6:21 ` Jani Nikula
2026-06-03 23:05 ` [PATCH v6 4/8] drm/i915/bios: de/allocate VS/PE-O buffer for each port Michał Grzelak
2026-06-03 23:05 ` [PATCH v6 5/8] drm/i915: override LT's VS/PE when requested Michał Grzelak
2026-06-04 6:51 ` Jani Nikula
2026-06-05 10:41 ` Michał Grzelak
2026-06-04 8:03 ` Jani Nikula
2026-06-05 10:30 ` Michał Grzelak
2026-06-03 23:05 ` [PATCH v6 6/8] drm/i915: override Snps's " Michał Grzelak
2026-06-03 23:05 ` [PATCH v6 7/8] drm/i915: override Combo's " Michał Grzelak
2026-06-03 23:05 ` [PATCH v6 8/8] drm/i915/bios: remove VS/PE-O warning Michał Grzelak
2026-06-03 23:12 ` ✗ CI.checkpatch: warning for Vswing / Preemphasis Override (rev2) Patchwork
2026-06-03 23:13 ` ✓ CI.KUnit: success " Patchwork
2026-06-03 23:53 ` ✓ Xe.CI.BAT: " Patchwork
2026-06-04 15:03 ` ✓ Xe.CI.FULL: " 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=364052e487b8627fefa31f49a9f1d594f4aa9987@intel.com \
--to=jani.nikula@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=michal.grzelak@intel.com \
--cc=suraj.kandpal@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