]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe/oa/uapi: Make OA buffer size configurable
authorSai Teja Pottumuttu <sai.teja.pottumuttu@intel.com>
Thu, 5 Dec 2024 04:19:13 +0000 (09:49 +0530)
committerAshutosh Dixit <ashutosh.dixit@intel.com>
Tue, 10 Dec 2024 18:26:55 +0000 (10:26 -0800)
commit720f63a838731d25ab34c306db59c12834ce09b4
tree5acad13cc09959c11fe602fd31fdf254a9ef86ec
parentcb57c75098c1c449a007ba301f9073f96febaaa9
drm/xe/oa/uapi: Make OA buffer size configurable

Add a new property called DRM_XE_OA_PROPERTY_OA_BUFFER_SIZE to
allow OA buffer size to be configurable from userspace.

With this OA buffer size can be configured to any power of 2
size between 128KB and 128MB and it would default to 16MB in case
the size is not supplied.

v2:
  - Rebase
v3:
  - Add oa buffer size to capabilities [Ashutosh]
  - Address several nitpicks [Ashutosh]
  - Fix commit message/subject [Ashutosh]

BSpec: 61100, 61228
Signed-off-by: Sai Teja Pottumuttu <sai.teja.pottumuttu@intel.com>
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241205041913.883767-2-sai.teja.pottumuttu@intel.com
drivers/gpu/drm/xe/regs/xe_oa_regs.h
drivers/gpu/drm/xe/xe_oa.c
drivers/gpu/drm/xe/xe_oa_types.h
drivers/gpu/drm/xe/xe_query.c
include/uapi/drm/xe_drm.h