Commit c1886222 authored by Tvrtko Ursulin's avatar Tvrtko Ursulin

drm/i915: Record default rps threshold values

Record the default values as preparation for exposing the sysfs controls.
Signed-off-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@kernel.org>
Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: default avatarAndi Shyti <andi.shyti@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230717164013.826614-2-tvrtko.ursulin@linux.intel.com
parent c2307b7f
...@@ -83,6 +83,9 @@ enum intel_submission_method { ...@@ -83,6 +83,9 @@ enum intel_submission_method {
struct gt_defaults { struct gt_defaults {
u32 min_freq; u32 min_freq;
u32 max_freq; u32 max_freq;
u8 rps_up_threshold;
u8 rps_down_threshold;
}; };
enum intel_gt_type { enum intel_gt_type {
......
...@@ -2014,7 +2014,9 @@ void intel_rps_init(struct intel_rps *rps) ...@@ -2014,7 +2014,9 @@ void intel_rps_init(struct intel_rps *rps)
/* Set default thresholds in % */ /* Set default thresholds in % */
rps->power.up_threshold = 95; rps->power.up_threshold = 95;
rps_to_gt(rps)->defaults.rps_up_threshold = rps->power.up_threshold;
rps->power.down_threshold = 85; rps->power.down_threshold = 85;
rps_to_gt(rps)->defaults.rps_down_threshold = rps->power.down_threshold;
/* Finally allow us to boost to max by default */ /* Finally allow us to boost to max by default */
rps->boost_freq = rps->max_freq; rps->boost_freq = rps->max_freq;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment