Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright © 2015 Intel Corporation.
0004  *
0005  * Authors: David Woodhouse <David.Woodhouse@intel.com>
0006  */
0007 
0008 #ifndef __INTEL_SVM_H__
0009 #define __INTEL_SVM_H__
0010 
0011 /* Page Request Queue depth */
0012 #define PRQ_ORDER   4
0013 #define PRQ_RING_MASK   ((0x1000 << PRQ_ORDER) - 0x20)
0014 #define PRQ_DEPTH   ((0x1000 << PRQ_ORDER) >> 5)
0015 
0016 /*
0017  * The SVM_FLAG_SUPERVISOR_MODE flag requests a PASID which can be used only
0018  * for access to kernel addresses. No IOTLB flushes are automatically done
0019  * for kernel mappings; it is valid only for access to the kernel's static
0020  * 1:1 mapping of physical memory — not to vmalloc or even module mappings.
0021  * A future API addition may permit the use of such ranges, by means of an
0022  * explicit IOTLB flush call (akin to the DMA API's unmap method).
0023  *
0024  * It is unlikely that we will ever hook into flush_tlb_kernel_range() to
0025  * do such IOTLB flushes automatically.
0026  */
0027 #define SVM_FLAG_SUPERVISOR_MODE    BIT(0)
0028 
0029 #endif /* __INTEL_SVM_H__ */