Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-gfx] drm/i915: Detecting Vt-d when running as guest os
@ 2020-10-16 15:19 Stefan Fritsch
  2020-10-19  9:19 ` Zhenyu Wang
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Fritsch @ 2020-10-16 15:19 UTC (permalink / raw)
  To: intel-gfx

Hi,

if Linux is running as a guest and the host is doing igd-pass-thorugh with 
VT-d enabled, the i915 driver does not work all that great. The most 
obvious problem is that there are dozens of 'Fault errors on pipe A' 
errrors logged per second, but depending on the hardware there can be 
other issues, too. I will send a patch to rate-limit that message in a 
separate mail.

The i915 has various quirks for VT-d and these should be enabled even if 
Linux is running as a guest and does itself have iommu enabled. I have 
checked that making intel_vtd_active() form i915_drv.h return true makes 
the error messages go away.  How could Linux detect this situation? Maybe 
simply check the Hypervisor cpuid bit? Or would you prefer a module 
parameter, or a combination of both? Or is there another way to detect 
that VT-d is enabled for the igd device?

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

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

end of thread, other threads:[~2020-10-19 10:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-16 15:19 [Intel-gfx] drm/i915: Detecting Vt-d when running as guest os Stefan Fritsch
2020-10-19  9:19 ` Zhenyu Wang
2020-10-19  9:57   ` Chris Wilson
2020-10-19  9:51     ` Zhenyu Wang
2020-10-19 10:20       ` Chris Wilson
2020-10-19 10:07         ` Zhenyu Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox