drm/i915: Record default rps threshold values
Record the default values as preparation for exposing the sysfs controls. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> 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-2-tvrtko.ursulin@linux.intel.com
This commit is contained in:
@@ -83,6 +83,9 @@ enum intel_submission_method {
|
||||
struct gt_defaults {
|
||||
u32 min_freq;
|
||||
u32 max_freq;
|
||||
|
||||
u8 rps_up_threshold;
|
||||
u8 rps_down_threshold;
|
||||
};
|
||||
|
||||
enum intel_gt_type {
|
||||
|
||||
@@ -2014,7 +2014,9 @@ void intel_rps_init(struct intel_rps *rps)
|
||||
|
||||
/* Set default thresholds in % */
|
||||
rps->power.up_threshold = 95;
|
||||
rps_to_gt(rps)->defaults.rps_up_threshold = rps->power.up_threshold;
|
||||
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 */
|
||||
rps->boost_freq = rps->max_freq;
|
||||
|
||||
Reference in New Issue
Block a user