dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] drm/vram-helper: Fix performance regression in fbdev
@ 2019-08-01 11:56 Thomas Zimmermann
  2019-08-01 11:56 ` [PATCH 1/3] drm/vram-helpers: Add kmap ref-counting to GEM VRAM objects Thomas Zimmermann
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Thomas Zimmermann @ 2019-08-01 11:56 UTC (permalink / raw)
  To: daniel, noralf, airlied, rong.a.chen, feng.tang, ying.huang, sean,
	maxime.ripard, maarten.lankhorst
  Cc: Thomas Zimmermann, dri-devel

Generic fbdev emulation maps and unmaps the console BO for updating it's
content from the shadow buffer. Drivers using VRAM helpers may see reduced
performance as the mapping operations can create significant overhead.
A report of this problem is at [1].

This patch set fixes the problem by adding a ref counter to the GEM
VRAM buffers' kmap operation, and keeping the fbdev's console buffer
mapped while the console is being displayed. These changes avoids the
frequent mappings in the fbdev code. The drivers, ast and mgag200,
maps the console's buffer when it becomes visible and the fbdev code
reuses this mapping. The original fbdev code in ast and mgag200 used
the same optimization.

[1] https://lists.freedesktop.org/archives/dri-devel/2019-July/228663.html

Thomas Zimmermann (3):
  drm/vram-helpers: Add kmap ref-counting to GEM VRAM objects
  drm/ast: Map fbdev framebuffer while it's being displayed
  drm/mgag200: Map fbdev framebuffer while it's being displayed

 drivers/gpu/drm/ast/ast_mode.c         | 20 +++++++
 drivers/gpu/drm/drm_gem_vram_helper.c  | 74 +++++++++++++++++++-------
 drivers/gpu/drm/mgag200/mgag200_mode.c | 21 ++++++++
 include/drm/drm_gem_vram_helper.h      | 13 +++++
 4 files changed, 110 insertions(+), 18 deletions(-)

--
2.22.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-08-01 11:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-01 11:56 [PATCH 0/3] drm/vram-helper: Fix performance regression in fbdev Thomas Zimmermann
2019-08-01 11:56 ` [PATCH 1/3] drm/vram-helpers: Add kmap ref-counting to GEM VRAM objects Thomas Zimmermann
2019-08-01 11:56 ` [PATCH 2/3] drm/ast: Map fbdev framebuffer while it's being displayed Thomas Zimmermann
2019-08-01 11:56 ` [PATCH 3/3] drm/mgag200: " Thomas Zimmermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox