Re: [PATCH v2] drm/fb-helper/generic: Only restore when in use

2018-11-27 Thread Noralf Trønnes
Den 26.11.2018 21.07, skrev Daniel Vetter: On Mon, Nov 26, 2018 at 04:38:48PM +0100, Noralf Trønnes wrote: On drm_driver->last_close the generic fbdev emulation will restore fbdev regardless of it being used or not. This is a problem for e-ink displays which don't want to be overwritten with ze

Re: [PATCH v2] drm/fb-helper/generic: Only restore when in use

2018-11-26 Thread Daniel Vetter
On Mon, Nov 26, 2018 at 04:38:48PM +0100, Noralf Trønnes wrote: > On drm_driver->last_close the generic fbdev emulation will restore fbdev > regardless of it being used or not. This is a problem for e-ink displays > which don't want to be overwritten with zeroes when DRM userspace closes. > > Amen

[PATCH v2] drm/fb-helper/generic: Only restore when in use

2018-11-26 Thread Noralf Trønnes
On drm_driver->last_close the generic fbdev emulation will restore fbdev regardless of it being used or not. This is a problem for e-ink displays which don't want to be overwritten with zeroes when DRM userspace closes. Amend this by adding an open counter to track use in order to know when to res