svn commit: r354729 - head/sys/x86/x86

Scott Long scottl at FreeBSD.org
Fri Nov 15 11:53:07 UTC 2019


Author: scottl
Date: Fri Nov 15 11:53:06 2019
New Revision: 354729
URL: https://svnweb.freebsd.org/changeset/base/354729

Log:
  Fix a typo in how the AVX512DQ feature bit is checked.
  
  Reviewed by:	kib
  Sponsored by:	Intel

Modified:
  head/sys/x86/x86/busdma_machdep.c
  head/sys/x86/x86/cpu_machdep.c

Modified: head/sys/x86/x86/busdma_machdep.c
==============================================================================
--- head/sys/x86/x86/busdma_machdep.c	Fri Nov 15 11:46:53 2019	(r354728)
+++ head/sys/x86/x86/busdma_machdep.c	Fri Nov 15 11:53:06 2019	(r354729)
@@ -236,6 +236,12 @@ bus_dma_tag_create(bus_dma_tag_t parent, bus_size_t al
 	return (error);
 }
 
+bus_dma_tag_t
+bus_dma_tag_alloc(bus_dma_tag_t parent, bus_dma_props_t props)
+{
+	return (NULL);
+}
+
 int
 bus_dma_tag_destroy(bus_dma_tag_t dmat)
 {

Modified: head/sys/x86/x86/cpu_machdep.c
==============================================================================
--- head/sys/x86/x86/cpu_machdep.c	Fri Nov 15 11:46:53 2019	(r354728)
+++ head/sys/x86/x86/cpu_machdep.c	Fri Nov 15 11:53:06 2019	(r354729)
@@ -1069,7 +1069,7 @@ hw_mds_recalculate(void)
 		}
 		xcr0 = rxcr(0);
 		if ((xcr0 & XFEATURE_ENABLED_ZMM_HI256) != 0 &&
-		    (cpu_stdext_feature2 & CPUID_STDEXT_AVX512DQ) != 0)
+		    (cpu_stdext_feature & CPUID_STDEXT_AVX512DQ) != 0)
 			mds_handler = mds_handler_skl_avx512;
 		else if ((xcr0 & XFEATURE_ENABLED_AVX) != 0 &&
 		    (cpu_feature2 & CPUID2_AVX) != 0)


More information about the svn-src-head mailing list