Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8dfd1f04 authored by Daniel Vetter's avatar Daniel Vetter
Browse files

drm/i915: Tune done rc6 enabling output



Power users spot this and then get adventurous and try to adjust
module driver options. Nothing good ever came out of that, so
hide it better.

Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent cba38bfc
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -3420,7 +3420,7 @@ static void intel_print_rc6_info(struct drm_device *dev, u32 mode)
		else
			mode = 0;
	}
	DRM_INFO("Enabling RC6 states: RC6 %s, RC6p %s, RC6pp %s\n",
	DRM_DEBUG_KMS("Enabling RC6 states: RC6 %s, RC6p %s, RC6pp %s\n",
		      (mode & GEN6_RC_CTL_RC6_ENABLE) ? "on" : "off",
		      (mode & GEN6_RC_CTL_RC6p_ENABLE) ? "on" : "off",
		      (mode & GEN6_RC_CTL_RC6pp_ENABLE) ? "on" : "off");
@@ -3447,7 +3447,7 @@ static int sanitize_rc6_option(const struct drm_device *dev, int enable_rc6)
			mask = INTEL_RC6_ENABLE;

		if ((enable_rc6 & mask) != enable_rc6)
			DRM_INFO("Adjusting RC6 mask to %d (requested %d, valid %d)\n",
			DRM_DEBUG_KMS("Adjusting RC6 mask to %d (requested %d, valid %d)\n",
				      enable_rc6 & mask, enable_rc6, mask);

		return enable_rc6 & mask;