svn commit: r299445 - head/sys/arm64/include

Zbigniew Bodek zbb at FreeBSD.org
Wed May 11 13:23:58 UTC 2016


Author: zbb
Date: Wed May 11 13:23:56 2016
New Revision: 299445
URL: https://svnweb.freebsd.org/changeset/base/299445

Log:
  Fix I/O coherence issues on ThunderX when SMP is disabled
  
  To maintain coherence between cache and DMA memory appropriate
  shareability flags need to be set in the PTE regardless of SMP
  option.
  
  Reviewed by:	wma
  Obtained from:	Semihalf
  Sponsored by:	Cavium
  Differential Revision: https://reviews.freebsd.org/D6231

Modified:
  head/sys/arm64/include/pte.h

Modified: head/sys/arm64/include/pte.h
==============================================================================
--- head/sys/arm64/include/pte.h	Wed May 11 13:22:13 2016	(r299444)
+++ head/sys/arm64/include/pte.h	Wed May 11 13:23:56 2016	(r299445)
@@ -63,11 +63,7 @@ typedef	uint64_t	pt_entry_t;		/* page ta
 #define	ATTR_IDX(x)	((x) << 2)
 #define	ATTR_IDX_MASK	(7 << 2)
 
-#ifdef SMP
 #define	ATTR_DEFAULT	(ATTR_AF | ATTR_SH(ATTR_SH_IS))
-#else
-#define	ATTR_DEFAULT	(ATTR_AF)
-#endif
 
 #define	ATTR_DESCR_MASK	3
 


More information about the svn-src-head mailing list