History

drm/xe/uapi: Add DRM_XE_QUERY_CONFIG_FLAG_HAS_CPU_ADDR_MIRROR

Add the DRM_XE_QUERY_CONFIG_FLAG_HAS_CPU_ADDR_MIRROR device query flag, which indicates whether the device supports CPU address mirroring. The intent is for UMDs to use this query to determine if a VM can be set up with CPU address mirroring. This flag is implemented by checking if the device supports GPU faults. v7: - Only report enabled if CONFIG_DRM_GPUSVM is selected (CI)

Matthew Brost committed 1 year ago

Commit 77613a21 parent c73b2cb2 files · +7 −1Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/drm/xe_drm.h+3−0
@@ -395,6 +395,8 @@ struct drm_xe_query_mem_regions { · 394 unmodified lines
395 * has usable VRAM395 * has usable VRAM
396 * - %DRM_XE_QUERY_CONFIG_FLAG_HAS_LOW_LATENCY - Flag is set if the device396 * - %DRM_XE_QUERY_CONFIG_FLAG_HAS_LOW_LATENCY - Flag is set if the device
397 * has low latency hint support397 * has low latency hint support
398 * - %DRM_XE_QUERY_CONFIG_FLAG_HAS_CPU_ADDR_MIRROR - Flag is set if the
399 * device has CPU address mirroring support
398 * - %DRM_XE_QUERY_CONFIG_MIN_ALIGNMENT - Minimal memory alignment400 * - %DRM_XE_QUERY_CONFIG_MIN_ALIGNMENT - Minimal memory alignment
399 * required by this device, typically SZ_4K or SZ_64K401 * required by this device, typically SZ_4K or SZ_64K
400 * - %DRM_XE_QUERY_CONFIG_VA_BITS - Maximum bits of a virtual address402 * - %DRM_XE_QUERY_CONFIG_VA_BITS - Maximum bits of a virtual address
@@ -412,6 +414,7 @@ struct drm_xe_query_config { · 11 unmodified lines
412#define DRM_XE_QUERY_CONFIG_FLAGS 1414#define DRM_XE_QUERY_CONFIG_FLAGS 1
413 #define DRM_XE_QUERY_CONFIG_FLAG_HAS_VRAM (1 << 0)415 #define DRM_XE_QUERY_CONFIG_FLAG_HAS_VRAM (1 << 0)
414 #define DRM_XE_QUERY_CONFIG_FLAG_HAS_LOW_LATENCY (1 << 1)416 #define DRM_XE_QUERY_CONFIG_FLAG_HAS_LOW_LATENCY (1 << 1)
417 #define DRM_XE_QUERY_CONFIG_FLAG_HAS_CPU_ADDR_MIRROR (1 << 2)
415#define DRM_XE_QUERY_CONFIG_MIN_ALIGNMENT 2418#define DRM_XE_QUERY_CONFIG_MIN_ALIGNMENT 2
416#define DRM_XE_QUERY_CONFIG_VA_BITS 3419#define DRM_XE_QUERY_CONFIG_VA_BITS 3
417#define DRM_XE_QUERY_CONFIG_MAX_EXEC_QUEUE_PRIORITY 4420#define DRM_XE_QUERY_CONFIG_MAX_EXEC_QUEUE_PRIORITY 4

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t