drm-uapi: Update v3d_drm.h
From https://cgit.freedesktop.org/drm/drm-misc/ commit 673087d8b023faf34b84e8faf63bbeea3da87bab Author: Maíra Canal <mcanal@igalia.com> Date: Sun May 12 19:23:29 2024 -0300 drm/v3d: Deprecate the use of the Performance Counters enum Signed-off-by: Maíra Canal <mcanal@igalia.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29154>
This commit is contained in:
@@ -42,6 +42,7 @@ extern "C" {
|
|||||||
#define DRM_V3D_PERFMON_DESTROY 0x09
|
#define DRM_V3D_PERFMON_DESTROY 0x09
|
||||||
#define DRM_V3D_PERFMON_GET_VALUES 0x0a
|
#define DRM_V3D_PERFMON_GET_VALUES 0x0a
|
||||||
#define DRM_V3D_SUBMIT_CPU 0x0b
|
#define DRM_V3D_SUBMIT_CPU 0x0b
|
||||||
|
#define DRM_V3D_PERFMON_GET_COUNTER 0x0c
|
||||||
|
|
||||||
#define DRM_IOCTL_V3D_SUBMIT_CL DRM_IOWR(DRM_COMMAND_BASE + DRM_V3D_SUBMIT_CL, struct drm_v3d_submit_cl)
|
#define DRM_IOCTL_V3D_SUBMIT_CL DRM_IOWR(DRM_COMMAND_BASE + DRM_V3D_SUBMIT_CL, struct drm_v3d_submit_cl)
|
||||||
#define DRM_IOCTL_V3D_WAIT_BO DRM_IOWR(DRM_COMMAND_BASE + DRM_V3D_WAIT_BO, struct drm_v3d_wait_bo)
|
#define DRM_IOCTL_V3D_WAIT_BO DRM_IOWR(DRM_COMMAND_BASE + DRM_V3D_WAIT_BO, struct drm_v3d_wait_bo)
|
||||||
@@ -58,6 +59,8 @@ extern "C" {
|
|||||||
#define DRM_IOCTL_V3D_PERFMON_GET_VALUES DRM_IOWR(DRM_COMMAND_BASE + DRM_V3D_PERFMON_GET_VALUES, \
|
#define DRM_IOCTL_V3D_PERFMON_GET_VALUES DRM_IOWR(DRM_COMMAND_BASE + DRM_V3D_PERFMON_GET_VALUES, \
|
||||||
struct drm_v3d_perfmon_get_values)
|
struct drm_v3d_perfmon_get_values)
|
||||||
#define DRM_IOCTL_V3D_SUBMIT_CPU DRM_IOW(DRM_COMMAND_BASE + DRM_V3D_SUBMIT_CPU, struct drm_v3d_submit_cpu)
|
#define DRM_IOCTL_V3D_SUBMIT_CPU DRM_IOW(DRM_COMMAND_BASE + DRM_V3D_SUBMIT_CPU, struct drm_v3d_submit_cpu)
|
||||||
|
#define DRM_IOCTL_V3D_PERFMON_GET_COUNTER DRM_IOWR(DRM_COMMAND_BASE + DRM_V3D_PERFMON_GET_COUNTER, \
|
||||||
|
struct drm_v3d_perfmon_get_counter)
|
||||||
|
|
||||||
#define DRM_V3D_SUBMIT_CL_FLUSH_CACHE 0x01
|
#define DRM_V3D_SUBMIT_CL_FLUSH_CACHE 0x01
|
||||||
#define DRM_V3D_SUBMIT_EXTENSION 0x02
|
#define DRM_V3D_SUBMIT_EXTENSION 0x02
|
||||||
@@ -286,6 +289,7 @@ enum drm_v3d_param {
|
|||||||
DRM_V3D_PARAM_SUPPORTS_PERFMON,
|
DRM_V3D_PARAM_SUPPORTS_PERFMON,
|
||||||
DRM_V3D_PARAM_SUPPORTS_MULTISYNC_EXT,
|
DRM_V3D_PARAM_SUPPORTS_MULTISYNC_EXT,
|
||||||
DRM_V3D_PARAM_SUPPORTS_CPU_QUEUE,
|
DRM_V3D_PARAM_SUPPORTS_CPU_QUEUE,
|
||||||
|
DRM_V3D_PARAM_MAX_PERF_COUNTERS,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct drm_v3d_get_param {
|
struct drm_v3d_get_param {
|
||||||
@@ -599,6 +603,16 @@ struct drm_v3d_submit_cpu {
|
|||||||
__u64 extensions;
|
__u64 extensions;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* The performance counters index represented by this enum are deprecated and
|
||||||
|
* must no longer be used. These counters are only valid for V3D 4.2.
|
||||||
|
*
|
||||||
|
* In order to check for performance counter information,
|
||||||
|
* use DRM_IOCTL_V3D_PERFMON_GET_COUNTER.
|
||||||
|
*
|
||||||
|
* Don't use V3D_PERFCNT_NUM to retrieve the maximum number of performance
|
||||||
|
* counters. You should use DRM_IOCTL_V3D_GET_PARAM with the following
|
||||||
|
* parameter: DRM_V3D_PARAM_MAX_PERF_COUNTERS.
|
||||||
|
*/
|
||||||
enum {
|
enum {
|
||||||
V3D_PERFCNT_FEP_VALID_PRIMTS_NO_PIXELS,
|
V3D_PERFCNT_FEP_VALID_PRIMTS_NO_PIXELS,
|
||||||
V3D_PERFCNT_FEP_VALID_PRIMS,
|
V3D_PERFCNT_FEP_VALID_PRIMS,
|
||||||
@@ -717,6 +731,40 @@ struct drm_v3d_perfmon_get_values {
|
|||||||
__u64 values_ptr;
|
__u64 values_ptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#define DRM_V3D_PERFCNT_MAX_NAME 64
|
||||||
|
#define DRM_V3D_PERFCNT_MAX_CATEGORY 32
|
||||||
|
#define DRM_V3D_PERFCNT_MAX_DESCRIPTION 256
|
||||||
|
|
||||||
|
/**
|
||||||
|
* struct drm_v3d_perfmon_get_counter - ioctl to get the description of a
|
||||||
|
* performance counter
|
||||||
|
*
|
||||||
|
* As userspace needs to retrieve information about the performance counters
|
||||||
|
* available, this IOCTL allows users to get information about a performance
|
||||||
|
* counter (name, category and description).
|
||||||
|
*/
|
||||||
|
struct drm_v3d_perfmon_get_counter {
|
||||||
|
/*
|
||||||
|
* Counter ID
|
||||||
|
*
|
||||||
|
* Must be smaller than the maximum number of performance counters, which
|
||||||
|
* can be retrieve through DRM_V3D_PARAM_MAX_PERF_COUNTERS.
|
||||||
|
*/
|
||||||
|
__u8 counter;
|
||||||
|
|
||||||
|
/* Name of the counter */
|
||||||
|
__u8 name[DRM_V3D_PERFCNT_MAX_NAME];
|
||||||
|
|
||||||
|
/* Category of the counter */
|
||||||
|
__u8 category[DRM_V3D_PERFCNT_MAX_CATEGORY];
|
||||||
|
|
||||||
|
/* Description of the counter */
|
||||||
|
__u8 description[DRM_V3D_PERFCNT_MAX_DESCRIPTION];
|
||||||
|
|
||||||
|
/* mbz */
|
||||||
|
__u8 reserved[7];
|
||||||
|
};
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user