linux/include/uapi
Alex Deucher 8cda7a4f96 drm/amdgpu/UAPI: add new CTX OP to get/set stable pstates
Add a new CTX ioctl operation to set stable pstates for profiling.
When creating traces for tools like RGP or using SPM or doing
performance profiling, it's required to enable a special
stable profiling power state on the GPU.  These profiling
states set fixed clocks and disable certain other power
features like powergating which may impact the results.

Historically, these profiling pstates were enabled via sysfs,
but this adds an interface to enable it via the CTX ioctl
from the application.  Since the power state is global
only one application can set it at a time, so if multiple
applications try and use it only the first will get it,
the ioctl will return -EBUSY for others.  The sysfs interface
will override whatever has been set by this interface.

Mesa MR: https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/207

v2: don't default r = 0;
v3: rebase on Evan's PM cleanup

Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-01-27 15:50:08 -05:00
..
asm-generic aio: fix use-after-free due to missing POLLFREE handling 2021-12-09 10:49:56 -08:00
drm drm/amdgpu/UAPI: add new CTX OP to get/set stable pstates 2022-01-27 15:50:08 -05:00
linux drm/amdkfd: make SPDX License expression more sound 2022-01-11 15:44:27 -05:00
misc habanalabs: define uAPI to export FD for DMA-BUF 2021-10-18 12:05:47 +03:00
mtd mtd: add OTP (one-time-programmable) erase ioctl 2021-03-28 19:24:54 +02:00
rdma RDMA v5.16 merge window pull request 2021-11-03 08:05:59 -07:00
scsi scsi: fc: Add EDC ELS definition 2021-08-24 22:56:33 -04:00
sound sound updates for 5.16-rc1 2021-11-03 07:49:25 -07:00
video
xen
Kbuild