On Fri, Nov 20, 2020 at 11:25:45AM +0100, Thomas Zimmermann wrote: > Flushing the fbdev's shadow buffer requires vmap'ing the BO memory, which > in turn requires pinning the BO. While being pinned, the BO cannot be moved > into VRAM for scanout. Consequently, a concurrent modeset operation that > involves the fbdev framebuffer would likely fail. > > Resolve this problem be acquiring the modeset lock of the planes that use > the fbdev framebuffer. On non-atomic drivers, also acquire the mode-config > lock. This serializes the flushing of the framebuffer with concurrent > modeset operations. > > v2: > * only acquire struct drm_fb_helper.lock in damage blitter (Daniel, > Christian) > > Signed-off-by: Thomas Zimmermann <tzimmerm...@suse.de> Acked-by: Sam Ravnborg <s...@ravnborg.org> _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
- [PATCH v2 00/10] drm/fb-helper: Various fixes and cleanu... Thomas Zimmermann
- [PATCH v2 01/10] drm/fb-helper: Call dirty helper a... Thomas Zimmermann
- Re: [PATCH v2 01/10] drm/fb-helper: Call dirty ... Sam Ravnborg
- [PATCH v2 03/10] drm/client: Depend on GEM object k... Thomas Zimmermann
- [PATCH v2 05/10] drm/fb-helper: Return early in dir... Thomas Zimmermann
- Re: [PATCH v2 05/10] drm/fb-helper: Return earl... Sam Ravnborg
- [PATCH v2 08/10] drm/fb-helper: Restore damage area... Thomas Zimmermann
- Re: [PATCH v2 08/10] drm/fb-helper: Restore dam... Sam Ravnborg
- [PATCH v2 10/10] drm/fb-helper: Acquire modeset loc... Thomas Zimmermann
- Re: [PATCH v2 10/10] drm/fb-helper: Acquire mod... Sam Ravnborg
- [PATCH v2 04/10] drm/fb-helper: Rename dirty worker... Thomas Zimmermann
- Re: [PATCH v2 04/10] drm/fb-helper: Rename dirt... Sam Ravnborg
- [PATCH v2 09/10] drm/fb-helper: Copy dma-buf map be... Thomas Zimmermann
- Re: [PATCH v2 09/10] drm/fb-helper: Copy dma-bu... Sam Ravnborg
- [PATCH v2 07/10] drm/fb-helper: Move damage blit co... Thomas Zimmermann
- Re: [PATCH v2 07/10] drm/fb-helper: Move damage... Sam Ravnborg
- [PATCH v2 02/10] drm/fb-helper: Unmap client buffer... Thomas Zimmermann
- Re: [PATCH v2 02/10] drm/fb-helper: Unmap clien... Sam Ravnborg
- [PATCH v2 06/10] drm/fb-helper: Separate shadow-buf... Thomas Zimmermann
- Re: [PATCH v2 06/10] drm/fb-helper: Separate sh... Sam Ravnborg