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
395395 * has usable VRAM
396396 * - %DRM_XE_QUERY_CONFIG_FLAG_HAS_LOW_LATENCY - Flag is set if the device
397397 * 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
398400 * - %DRM_XE_QUERY_CONFIG_MIN_ALIGNMENT - Minimal memory alignment
399401 * required by this device, typically SZ_4K or SZ_64K
400402 * - %DRM_XE_QUERY_CONFIG_VA_BITS - Maximum bits of a virtual address
@@ -412,6 +414,7 @@ struct drm_xe_query_config { · 11 unmodified lines
412414 #define DRM_XE_QUERY_CONFIG_FLAGS 1
413415 #define DRM_XE_QUERY_CONFIG_FLAG_HAS_VRAM (1 << 0)
414416 #define DRM_XE_QUERY_CONFIG_FLAG_HAS_LOW_LATENCY (1 << 1)
417+ #define DRM_XE_QUERY_CONFIG_FLAG_HAS_CPU_ADDR_MIRROR (1 << 2)
415418 #define DRM_XE_QUERY_CONFIG_MIN_ALIGNMENT 2
416419 #define DRM_XE_QUERY_CONFIG_VA_BITS 3
417420 #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