From 6cbb7aa1474fc26b61014f9a2ef252157d290a70 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Fri, 12 Jul 2024 09:39:13 -0400 Subject: [PATCH] freedreno: Bump kernel uapi Update to this commit in msm-next: commit a20a91fb1bfac5d05ec5bcf9afe0c9363f6c8c93 Author: Antonino Maniscalco Documentation: document adreno preemption Part-of: --- include/drm-uapi/msm_drm.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/drm-uapi/msm_drm.h b/include/drm-uapi/msm_drm.h index d8a6b347276..b916aab80dd 100644 --- a/include/drm-uapi/msm_drm.h +++ b/include/drm-uapi/msm_drm.h @@ -87,6 +87,9 @@ struct drm_msm_timespec { #define MSM_PARAM_VA_START 0x0e /* RO: start of valid GPU iova range */ #define MSM_PARAM_VA_SIZE 0x0f /* RO: size of valid GPU iova range (bytes) */ #define MSM_PARAM_HIGHEST_BANK_BIT 0x10 /* RO */ +#define MSM_PARAM_RAYTRACING 0x11 /* RO */ +#define MSM_PARAM_UBWC_SWIZZLE 0x12 /* RO */ +#define MSM_PARAM_MACROTILE_MODE 0x13 /* RO */ /* For backwards compat. The original support for preemption was based on * a single ring per priority level so # of priority levels equals the # @@ -344,7 +347,10 @@ struct drm_msm_gem_madvise { * backwards compatibility as a "default" submitqueue */ -#define MSM_SUBMITQUEUE_FLAGS (0) +#define MSM_SUBMITQUEUE_ALLOW_PREEMPT 0x00000001 +#define MSM_SUBMITQUEUE_FLAGS ( \ + MSM_SUBMITQUEUE_ALLOW_PREEMPT | \ + 0) /* * The submitqueue priority should be between 0 and MSM_PARAM_PRIORITIES-1,