Re: [Intel-gfx] [PATCH v2 4/7] drm/i915/wm: add .get_hw_state to watermark funcs

2023-02-15 Thread Jani Nikula
On Mon, 13 Feb 2023, Ville Syrjälä wrote: > On Mon, Feb 13, 2023 at 09:59:59PM +0200, Jani Nikula wrote: >> Get rid of the if ladder in intel_modeset_setup_hw_state() and hide a >> number of functions by adding a .get_hw_state() hook to watermark >> functions. At least for now, combine the platfor

Re: [Intel-gfx] [PATCH v2 4/7] drm/i915/wm: add .get_hw_state to watermark funcs

2023-02-13 Thread Ville Syrjälä
On Mon, Feb 13, 2023 at 09:59:59PM +0200, Jani Nikula wrote: > Get rid of the if ladder in intel_modeset_setup_hw_state() and hide a > number of functions by adding a .get_hw_state() hook to watermark > functions. At least for now, combine the platform specific sanitization > to the hw state readou

[Intel-gfx] [PATCH v2 4/7] drm/i915/wm: add .get_hw_state to watermark funcs

2023-02-13 Thread Jani Nikula
Get rid of the if ladder in intel_modeset_setup_hw_state() and hide a number of functions by adding a .get_hw_state() hook to watermark functions. At least for now, combine the platform specific sanitization to the hw state readouts on the relevant platforms instead of adding a separate hook for th