drm/i915/fbdev: Implement fb_dirty for intel custom fb helper
authorJouni Högander <jouni.hogander@intel.com>
Mon, 23 Jan 2023 07:44:37 +0000 (09:44 +0200)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 6 Feb 2023 13:15:42 +0000 (08:15 -0500)
commit039a72ce7e570c56713fe7758a0658034dc48c9b
tree7fc7af604f3e98af80da69217117923bf5321127
parent90d5e8301ac24550be80d193aa5582cab56c29fc
drm/i915/fbdev: Implement fb_dirty for intel custom fb helper

After disconnecting damage worker from update logic it's left to fbdev
emulation implementation to have fb_dirty function. Currently intel
fbdev doesn't have it. This is causing problems to features (PSR, FBC,
DRRS) relying on dirty callback.

Implement simple fb_dirty callback to deliver notifications about updates
in fb console.

v4: Add proper Fixes tag and modify commit message
v3: Check damage clip
v2: Improved commit message and added Fixes tag

Fixes: f231af498c29 ("drm/fb-helper: Disconnect damage worker from update logic")
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230123074437.475103-1-jouni.hogander@intel.com
(cherry picked from commit 1af546c2cec6e28b6bbe01a4ad0c38e96e54fcb4)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/display/intel_fbdev.c