Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/i915 No need to port this unt...



details:   https://anonhg.NetBSD.org/src/rev/2ca97d2996f0
branches:  trunk
changeset: 1028025:2ca97d2996f0
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:40:41 2021 +0000

description:
No need to port this until we deal with movntdqa (and kernel FPU use).

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/i915_memcpy.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r e5d6bfbf687f -r 2ca97d2996f0 sys/external/bsd/drm2/dist/drm/i915/i915_memcpy.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_memcpy.c Sun Dec 19 01:40:34 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_memcpy.c Sun Dec 19 01:40:41 2021 +0000
@@ -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_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 @@
        if (static_cpu_has(X86_FEATURE_XMM4_1) &&
            !boot_cpu_has(X86_FEATURE_HYPERVISOR))
                static_branch_enable(&has_movntdqa);
+#endif
 }



Home | Main Index | Thread Index | Old Index