mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	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:f231af498c("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 commit1af546c2ce) Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
		
							parent
							
								
									90d5e8301a
								
							
						
					
					
						commit
						039a72ce7e
					
				
					 1 changed files with 12 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -328,8 +328,20 @@ static int intelfb_create(struct drm_fb_helper *helper,
 | 
			
		|||
	return ret;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static int intelfb_dirty(struct drm_fb_helper *helper, struct drm_clip_rect *clip)
 | 
			
		||||
{
 | 
			
		||||
	if (!(clip->x1 < clip->x2 && clip->y1 < clip->y2))
 | 
			
		||||
		return 0;
 | 
			
		||||
 | 
			
		||||
	if (helper->fb->funcs->dirty)
 | 
			
		||||
		return helper->fb->funcs->dirty(helper->fb, NULL, 0, 0, clip, 1);
 | 
			
		||||
 | 
			
		||||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static const struct drm_fb_helper_funcs intel_fb_helper_funcs = {
 | 
			
		||||
	.fb_probe = intelfb_create,
 | 
			
		||||
	.fb_dirty = intelfb_dirty,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
static void intel_fbdev_destroy(struct intel_fbdev *ifbdev)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue