]> 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)
commit60476c8cc7ca78819582f257a28be93ebf48d2b2
treedebda28b5d5bb23422584030a6b40eeaede5fae1
parent982a56302b1f7ab5f56befa44f75c4e5a9a6b4a1
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