All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Setting pch_id for HSW/BDW in virtual environment
@ 2017-06-15  3:11 Xiong Zhang
  2017-06-14 11:27 ` ✓ Fi.CI.BAT: success for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Xiong Zhang @ 2017-06-15  3:11 UTC (permalink / raw)
  To: joonas.lahtinen, jani.saarinen, zhiyuan.lv; +Cc: intel-gfx

In a IGD passthrough environment, the real ISA bridge may doesn't exist.
then pch_id couldn't be correctly gotten from ISA bridge, but pch_id is
used to identify LPT_H and LPT_LP. Currently i915 treat all LPT pch as
LPT_H,then errors occur when i915 runs on LPT_LP machines with igd
passthrough.

This patch set pch_id for HSW/BDW according to IGD type and isn't fully
correct. But it solves such issue on HSW/BDW ult/ulx machines.
QA CI system is blocked by this issue for a long time, it's better that
we could merge it to unblock QA CI system.

We know the root cause is in device model of virtual passthrough, and
will resolve it in the future with several parts cooperation in kernel,
qemu and xen.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99938

Signed-off-by: Xiong Zhang <xiong.y.zhang@intel.com>
---
 drivers/gpu/drm/i915/i915_drv.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 1f802de..2e664c5 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -135,6 +135,10 @@ static enum intel_pch intel_virt_detect_pch(struct drm_i915_private *dev_priv)
 		DRM_DEBUG_KMS("Assuming CouarPoint PCH\n");
 	} else if (IS_HASWELL(dev_priv) || IS_BROADWELL(dev_priv)) {
 		ret = PCH_LPT;
+		if (IS_HSW_ULT(dev_priv) || IS_BDW_ULT(dev_priv))
+			dev_priv->pch_id = INTEL_PCH_LPT_LP_DEVICE_ID_TYPE;
+		else
+			dev_priv->pch_id = INTEL_PCH_LPT_DEVICE_ID_TYPE;
 		DRM_DEBUG_KMS("Assuming LynxPoint PCH\n");
 	} else if (IS_SKYLAKE(dev_priv) || IS_KABYLAKE(dev_priv)) {
 		ret = PCH_SPT;
-- 
2.7.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

end of thread, other threads:[~2017-07-06  9:33 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-15  3:11 [PATCH] drm/i915: Setting pch_id for HSW/BDW in virtual environment Xiong Zhang
2017-06-14 11:27 ` ✓ Fi.CI.BAT: success for " Patchwork
2017-06-14 11:58   ` Saarinen, Jani
2017-06-14 13:18   ` Joonas Lahtinen
2017-06-19 13:39     ` Martin Peres
2017-06-14 14:10 ` [PATCH] " Imre Deak
2017-06-15  2:21   ` Zhang, Xiong Y
2017-06-15  9:48     ` Imre Deak
2017-06-15 20:47 ` Jani Nikula
2017-06-29 10:01 ` Daniel Vetter
2017-06-29 15:22   ` Jani Nikula
2017-06-29 15:38     ` Ville Syrjälä
2017-06-30  1:53     ` Zhang, Xiong Y
2017-07-06  9:33 ` Daniel Vetter

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.