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)
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -395,6 +395,8 @@ struct drm_xe_query_mem_regions { · 394 unmodified lines | |||
| 395 | * has usable VRAM | 395 | * has usable VRAM |
| 396 | * - %DRM_XE_QUERY_CONFIG_FLAG_HAS_LOW_LATENCY - Flag is set if the device | 396 | * - %DRM_XE_QUERY_CONFIG_FLAG_HAS_LOW_LATENCY - Flag is set if the device |
| 397 | * has low latency hint support | 397 | * 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 alignment | 400 | * - %DRM_XE_QUERY_CONFIG_MIN_ALIGNMENT - Minimal memory alignment |
| 399 | * required by this device, typically SZ_4K or SZ_64K | 401 | * required by this device, typically SZ_4K or SZ_64K |
| 400 | * - %DRM_XE_QUERY_CONFIG_VA_BITS - Maximum bits of a virtual address | 402 | * - %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 1 | 414 | #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 2 | 418 | #define DRM_XE_QUERY_CONFIG_MIN_ALIGNMENT 2 |
| 416 | #define DRM_XE_QUERY_CONFIG_VA_BITS 3 | 419 | #define DRM_XE_QUERY_CONFIG_VA_BITS 3 |
| 417 | #define DRM_XE_QUERY_CONFIG_MAX_EXEC_QUEUE_PRIORITY 4 | 420 | #define DRM_XE_QUERY_CONFIG_MAX_EXEC_QUEUE_PRIORITY 4 |