From: Jani Nikula <jani.nikula@linux.intel.com>
To: Ville Syrjala <ville.syrjala@linux.intel.com>,
dri-devel@lists.freedesktop.org
Cc: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH v2 5/5] drm/i915/bios: Use is_panel_type_valid_or_pnp() for the sanity check
Date: Tue, 01 Dec 2026 21:46:46 +0200 [thread overview]
Message-ID: <963c8b291f1d8e246de88d752b888c18cff17f7a@intel.com> (raw)
In-Reply-To: <20261201181426.15395-6-ville.syrjala@linux.intel.com>
On Tue, 01 Dec 2026, Ville Syrjala <ville.syrjala@linux.intel.com> wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> The sanity check WARN in get_panel_type() still hand rolls the
> panel_type validity checks. Switch to is_panel_type_valid_or_pnp().
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_bios.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_bios.c b/drivers/gpu/drm/i915/display/intel_bios.c
> index 9b8cc3821892..bcb379ec097a 100644
> --- a/drivers/gpu/drm/i915/display/intel_bios.c
> +++ b/drivers/gpu/drm/i915/display/intel_bios.c
> @@ -825,8 +825,8 @@ static int get_panel_type(struct intel_display *display,
> panel_types[i].panel_type = panel_types[i].get_panel_type(display, devdata,
> drm_edid, use_fallback);
>
> - drm_WARN_ON(display->drm, panel_types[i].panel_type > 0xf &&
> - panel_types[i].panel_type != 0xff);
> + drm_WARN_ON(display->drm, panel_types[i].panel_type >= 0 &&
> + !is_panel_type_valid_or_pnp(panel_types[i].panel_type));
>
> if (panel_types[i].panel_type >= 0)
> drm_dbg_kms(display->drm, "Panel type (%s): %d\n",
--
Jani Nikula, Intel
next prev parent reply other threads:[~2026-12-01 19:47 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 18:14 [PATCH v2 0/5] drm/i915: Implement DisplayID based VBT panel type detection Ville Syrjala
2026-12-01 18:14 ` [PATCH v2 1/5] drm/edid: Introduce drm_edid_get_displayid_product_id() Ville Syrjala
2026-12-02 9:48 ` Jani Nikula
2026-12-02 14:53 ` Ville Syrjälä
2026-12-01 18:14 ` [PATCH v2 2/5] drm/i915/bios: Attempt to match the VBT PnP ID against DisplayID first Ville Syrjala
2026-12-01 18:14 ` [PATCH v2 3/5] drm/edid: Have drm_edid_get_product_id() tell us if it found something Ville Syrjala
2026-12-01 19:43 ` Jani Nikula
2026-12-01 18:14 ` [PATCH v2 4/5] drm/i915/bios: Skip VBT PnP ID match if there is no EDID product ID Ville Syrjala
2026-12-01 19:44 ` Jani Nikula
2026-12-01 18:14 ` [PATCH v2 5/5] drm/i915/bios: Use is_panel_type_valid_or_pnp() for the sanity check Ville Syrjala
2026-12-01 19:46 ` Jani Nikula [this message]
2026-12-01 18:44 ` ✗ CI.checkpatch: warning for drm/i915: Implement DisplayID based VBT panel type detection (rev2) Patchwork
2026-12-01 18:46 ` ✓ CI.KUnit: success " Patchwork
2026-12-01 19:15 ` ✓ i915.CI.BAT: " Patchwork
2026-12-01 19:19 ` ✓ Xe.CI.BAT: " Patchwork
2026-12-02 14:24 ` ✗ Xe.CI.FULL: failure " 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=963c8b291f1d8e246de88d752b888c18cff17f7a@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@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 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.