Chris Wilson 8195400f7e drm/i915: Force VT'd workarounds when running as a guest OS
If i915.ko is being used as a passthrough device, it does not know if
the host is using intel_iommu. Mixing the iommu and gfx causes a few
issues (such as scanout overfetch) which we need to workaround inside
the driver, so if we detect we are running under a hypervisor, also
assume the device access is being virtualised.

Reported-by: Stefan Fritsch <sf@sfritsch.de>
Suggested-by: Stefan Fritsch <sf@sfritsch.de>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Stefan Fritsch <sf@sfritsch.de>
Cc: stable@vger.kernel.org
Tested-by: Stefan Fritsch <sf@sfritsch.de>
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201019101523.4145-1-chris@chris-wilson.co.uk
(cherry picked from commit f566fdcd6cc49a9d5b5d782f56e3e7cb243f01b8)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2020-10-21 08:32:30 -04:00
..
2020-09-23 09:52:24 +10:00
2020-09-08 14:41:40 +10:00
2020-09-23 09:52:24 +10:00
2020-09-16 13:08:10 +02:00
2020-08-11 11:58:31 +10:00
2020-09-23 09:52:24 +10:00
2020-09-23 09:52:24 +10:00
2020-09-08 14:41:40 +10:00
2020-08-06 14:27:31 -07:00
2020-09-14 18:11:40 +02:00
2020-09-23 09:52:24 +10:00
2020-09-16 11:13:27 +02:00
2020-09-23 09:52:24 +10:00
2020-09-23 09:52:24 +10:00
2020-07-23 10:06:22 +02:00
2020-09-18 06:14:41 +10:00
2020-04-03 17:11:41 +02:00
2020-09-23 09:52:24 +10:00
2020-09-23 09:52:24 +10:00
2020-09-08 14:41:40 +10:00
2020-09-14 17:19:11 +02:00
2020-09-23 09:52:24 +10:00
2020-06-24 09:17:34 +02:00
2020-09-11 10:47:19 +02:00
2020-09-23 09:52:24 +10:00
2020-09-11 10:47:19 +02:00
2020-09-23 09:52:24 +10:00
2020-09-23 09:52:24 +10:00
2020-08-06 14:27:31 -07:00
2020-05-27 14:31:42 +03:00
2020-08-25 11:00:02 +02:00
2020-04-03 17:11:41 +02:00
2020-09-23 09:52:24 +10:00
2020-09-21 10:45:08 +02:00
2020-08-11 11:58:31 +10:00
2020-09-23 09:52:24 +10:00
2020-09-21 10:45:08 +02:00
2020-06-24 15:45:51 +10:00
2020-05-29 12:58:11 +02:00
2020-09-21 10:45:08 +02:00
2020-08-11 11:58:31 +10:00
2020-08-11 11:58:31 +10:00
2020-08-25 11:00:02 +02:00
2020-09-23 09:52:24 +10:00
2020-06-24 15:45:51 +10:00