diff options
| author | riastradh <riastradh@NetBSD.org> | 2021-12-19 01:40:41 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2021-12-19 01:40:41 +0000 |
| commit | caec1d1ca0ae4c79fa2fcc7368bcd392221eac9d (patch) | |
| tree | 09e2aa68a1ced6ad3dffecdcba49c2dd5945a23d /sys | |
| parent | cdb778b62413b4ad4cc8547ac9268e3ced20478b (diff) | |
No need to port this until we deal with movntdqa (and kernel FPU use).
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/external/bsd/drm2/dist/drm/i915/i915_memcpy.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/external/bsd/drm2/dist/drm/i915/i915_memcpy.c b/sys/external/bsd/drm2/dist/drm/i915/i915_memcpy.c index a89435ec5f6..c7445b35c0f 100644 --- a/sys/external/bsd/drm2/dist/drm/i915/i915_memcpy.c +++ b/sys/external/bsd/drm2/dist/drm/i915/i915_memcpy.c @@ -1,4 +1,4 @@ -/* $NetBSD: i915_memcpy.c,v 1.2 2021/12/18 23:45:28 riastradh Exp $ */ +/* $NetBSD: i915_memcpy.c,v 1.3 2021/12/19 01:40:41 riastradh Exp $ */ /* * Copyright © 2016 Intel Corporation @@ -25,7 +25,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: i915_memcpy.c,v 1.2 2021/12/18 23:45:28 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: i915_memcpy.c,v 1.3 2021/12/19 01:40:41 riastradh Exp $"); #include <linux/kernel.h> #include <asm/fpu/api.h> @@ -168,6 +168,7 @@ void i915_unaligned_memcpy_from_wc(void *dst, void *src, unsigned long len) void i915_memcpy_init_early(struct drm_i915_private *dev_priv) { +#ifdef CONFIG_AS_MOVNTDQA /* * Some hypervisors (e.g. KVM) don't support VEX-prefix instructions * emulation. So don't enable movntdqa in hypervisor guest. @@ -175,4 +176,5 @@ void i915_memcpy_init_early(struct drm_i915_private *dev_priv) if (static_cpu_has(X86_FEATURE_XMM4_1) && !boot_cpu_has(X86_FEATURE_HYPERVISOR)) static_branch_enable(&has_movntdqa); +#endif } |
