All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-gfx] [PATCH] drm/i915/dgfx: avoid opregion calls and messages
@ 2020-03-07  1:26 Lucas De Marchi
  2020-03-07  3:34 ` [Intel-gfx] ✗ Fi.CI.DOCS: warning for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Lucas De Marchi @ 2020-03-07  1:26 UTC (permalink / raw)
  To: intel-gfx; +Cc: Lucas De Marchi

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@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@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-05-07  6:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-07  1:26 [Intel-gfx] [PATCH] drm/i915/dgfx: avoid opregion calls and messages Lucas De Marchi
2020-03-07  3:34 ` [Intel-gfx] ✗ Fi.CI.DOCS: warning for " Patchwork
2020-03-07  4:05 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2020-03-07 21:46 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
2020-05-06 21:27 ` [Intel-gfx] [PATCH] " Lucas De Marchi
2020-05-07  6:34 ` Ville Syrjälä

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.