drm/i915: Populate wm.max_level for everyone
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 9 Feb 2023 00:32:50 +0000 (02:32 +0200)
committerJani Nikula <jani.nikula@intel.com>
Fri, 10 Feb 2023 10:26:25 +0000 (12:26 +0200)
commit064b3eee8e0260d8053b588c71a3f71b762cc0f3
tree6e9f6240ce9e3dfa743c94c7600a34db5f87cba1
parent2b9ed318ad1c579df943c1eb07ae1f1c0e5e9d83
drm/i915: Populate wm.max_level for everyone

Switch ilk+ and skl+ platforms to also setting up
wm.max_level and remove a bunch of if ladders as a result.

There will be a tiny change in the debugfs on CHV machines
that have DVFS disabled in the BIOS. Presviously debugfs
would show the latency for the DVFS level as well, but
that will no longer be the case. Which is arguably better
as that number is absolutely meaningless when DVFS can't
be enabled anyway.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230209003251.32021-1-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_display_debugfs.c
drivers/gpu/drm/i915/display/skl_watermark.c
drivers/gpu/drm/i915/intel_pm.c