[Intel-gfx] [PATCH] drm/i915/dgfx: avoid opregion calls and messages

Lucas De Marchi lucas.de.marchi at gmail.com
Wed May 6 21:27:04 UTC 2020


Some Cc to try to get it reviewed.

Lucas De Marchi

On Fri, Mar 6, 2020 at 5:26 PM Lucas De Marchi <lucas.demarchi at intel.com> wrote:
>
> This avoids the annoying message
> "Failed to get panel details from OpRegion (-19)" while initializing.
> On DGFX there is no access to OpRegion, so just avoid any calls related
> to it.
>
> Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>
> ---
>  drivers/gpu/drm/i915/display/intel_opregion.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_opregion.c b/drivers/gpu/drm/i915/display/intel_opregion.c
> index cc6b00959586..daadad046810 100644
> --- a/drivers/gpu/drm/i915/display/intel_opregion.c
> +++ b/drivers/gpu/drm/i915/display/intel_opregion.c
> @@ -1006,6 +1006,10 @@ intel_opregion_get_panel_type(struct drm_i915_private *dev_priv)
>         u32 panel_details;
>         int ret;
>
> +       /* No access to OpRegion */
> +       if (IS_DGFX(dev_priv))
> +               return -ENODEV;
> +
>         ret = swsci(dev_priv, SWSCI_GBDA_PANEL_DETAILS, 0x0, &panel_details);
>         if (ret) {
>                 drm_dbg_kms(&dev_priv->drm,
> --
> 2.25.1
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx



-- 
Lucas De Marchi


More information about the Intel-gfx mailing list