]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/wm: provide wrappers around watermark vfuncs calls (v3)
authorDave Airlie <airlied@redhat.com>
Tue, 28 Sep 2021 22:57:48 +0000 (01:57 +0300)
committerJani Nikula <jani.nikula@intel.com>
Wed, 29 Sep 2021 05:53:57 +0000 (08:53 +0300)
commitc06e4c4bca8698d6f03a94845a81fdd2ed6f0d04
treedebda28b5d5bb23422584030a6b40eeaede5fae1
parent2af2ea1939497d06801d8f70ade76b6cd08c0b99
drm/i915/wm: provide wrappers around watermark vfuncs calls (v3)

This moves one wrapper from the pm->display side, and creates
wrappers for all the others, this should simplify things later.

One thing to note is that the code checks the existence of some
of these ptrs, so the wrappers are a bit complicated by that.

Suggested by Jani.

v2: fixup warnings in wrong place error.

v3 by Jani: fix intel_compute_global_watermarks() return value check

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/ee2760c45896568c9dd9114a575509619bd44ef2.1632869550.git.jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/intel_pm.c
drivers/gpu/drm/i915/intel_pm.h