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
This commit is contained in:
Zbigniew Bodek 2016-05-11 13:23:56 +00:00
parent 8191a87959
commit 46542fb652

View File

@ -63,11 +63,7 @@ typedef uint64_t pt_entry_t; /* page table entry */
#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