[Intel-gfx] [PATCH] drm/i915/dgfx: avoid opregion calls and messages
Lucas De Marchi
lucas.demarchi at intel.com
Sat Mar 7 01:26:00 UTC 2020
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
More information about the Intel-gfx
mailing list