drm/i915: Track HAS_RPS alongside HAS_RC6 in the device info
For consistency (and elegance!), add intel_device_info.has_rps. The immediate boon is that RPS support is now emitted along the other capabilities in the debug log and after errors. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Sagar Arun Kamble <sagar.a.kamble@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190419134836.5626-1-chris@chris-wilson.co.uk
This commit is contained in:
@@ -7013,8 +7013,10 @@ static bool sanitize_rc6(struct drm_i915_private *i915)
|
||||
struct intel_device_info *info = mkwrite_device_info(i915);
|
||||
|
||||
/* Powersaving is controlled by the host when inside a VM */
|
||||
if (intel_vgpu_active(i915))
|
||||
if (intel_vgpu_active(i915)) {
|
||||
info->has_rc6 = 0;
|
||||
info->has_rps = false;
|
||||
}
|
||||
|
||||
if (info->has_rc6 &&
|
||||
IS_GEN9_LP(i915) && !bxt_check_bios_rc6_setup(i915)) {
|
||||
@@ -8716,7 +8718,8 @@ void intel_enable_gt_powersave(struct drm_i915_private *dev_priv)
|
||||
|
||||
if (HAS_RC6(dev_priv))
|
||||
intel_enable_rc6(dev_priv);
|
||||
intel_enable_rps(dev_priv);
|
||||
if (HAS_RPS(dev_priv))
|
||||
intel_enable_rps(dev_priv);
|
||||
if (HAS_LLC(dev_priv))
|
||||
intel_enable_llc_pstate(dev_priv);
|
||||
|
||||
|
Reference in New Issue
Block a user