drm/i915: Expose RPS thresholds in sysfs
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Mon, 17 Jul 2023 16:40:13 +0000 (17:40 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Wed, 19 Jul 2023 10:28:32 +0000 (11:28 +0100)
commitd84990a6d28785cb4e7259b5b7535c2ee823258b
tree5fa84630c4e45fdaa87a1996c3517f7003451c0e
parentc1be616260c7e45da7b970d9d60d7653633360a8
drm/i915: Expose RPS thresholds in sysfs

User feedback indicates significant performance gains are possible in
specific games with non default RPS up/down thresholds.

Expose these tunables via sysfs which will allow users to achieve best
performance when running games and best power efficiency elsewhere.

Note this patch supports non GuC based platforms only.

v2:
 * Make checkpatch happy.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
References: https://gitlab.freedesktop.org/drm/intel/-/issues/8389
Cc: Rodrigo Vivi <rodrigo.vivi@kernel.org>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230717164013.826614-4-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c