From 0756a13aba7815ba86665f2a588a871e20d4c0ab Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Wed, 27 Sep 2023 16:16:34 -0500 Subject: [PATCH] drm-uapi: Sync nouveau_drm.h From https://cgit.freedesktop.org/drm-misc/ commit d59e75eef52d89201aaf5342a3ac23ddf3e9b112 Author: Danilo Krummrich Date: Mon Oct 2 15:46:48 2023 +0200 drm/nouveau: exec: report max pushs through getparam Reviewed-by: Danilo Krummrich Part-of: --- include/drm-uapi/nouveau_drm.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/drm-uapi/nouveau_drm.h b/include/drm-uapi/nouveau_drm.h index 8d7402c13e5..eaf9f248619 100644 --- a/include/drm-uapi/nouveau_drm.h +++ b/include/drm-uapi/nouveau_drm.h @@ -44,6 +44,16 @@ extern "C" { #define NOUVEAU_GETPARAM_PTIMER_TIME 14 #define NOUVEAU_GETPARAM_HAS_BO_USAGE 15 #define NOUVEAU_GETPARAM_HAS_PAGEFLIP 16 + +/** + * @NOUVEAU_GETPARAM_EXEC_PUSH_MAX + * + * Query the maximum amount of IBs that can be pushed through a single + * &drm_nouveau_exec structure and hence a single &DRM_IOCTL_NOUVEAU_EXEC + * ioctl(). + */ +#define NOUVEAU_GETPARAM_EXEC_PUSH_MAX 17 + struct drm_nouveau_getparam { __u64 param; __u64 value;