All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] drm/radeon: Convert to generic fbdev emulation
@ 2020-11-12 13:21 ` Thomas Zimmermann
  0 siblings, 0 replies; 74+ messages in thread
From: Thomas Zimmermann @ 2020-11-12 13:21 UTC (permalink / raw)
  To: alexander.deucher, christian.koenig, airlied, daniel,
	maarten.lankhorst, mripard
  Cc: Thomas Zimmermann, amd-gfx, dri-devel

This patchset replaces radeon's framebuffer emulation with the generic
code from fb helpers. This reduces the driver size and complexity. As
a nice side effect, it also reduces memory pressure on low-memory devices.

Patches #1 and #2 add features to fbdev emulation to bring it on par with
radeons code.

Patch #4 adds internal pinning to vmap operations. This guarantess that
the framebuffer BO is not relocated while being updated.

Patch #5 and #6 replace radeon's framebuffer code with the generic helper
with shadow buffering. All userspace mappings interact with the shadow
buffer and the BO can be relocated an necessary. This allows to enable
32-bit colors on low-memory devices.

Patches #3 and #7 are merely cleanups.

Smoke tested with an AMD R5 (Oland) card by running the console and
switching to/from Xorg and weston.

Thomas Zimmermann (7):
  drm/fb-helper: Set framebuffer for vga-switcheroo clients
  drm/fb-helper: Add hint to enable VT switching during suspend/resume
  drm/radeon: Whitespace fixes
  drm/radeon: Pin buffers while they are vmap'ed
  drm/radeon: Replace framebuffer console with generic implementation
  drm/radeon: Use fbdev shadow fb
  drm/radeon: Move radeon_align_pitch() next to its only caller

 drivers/gpu/drm/drm_fb_helper.c         |  16 +-
 drivers/gpu/drm/radeon/radeon_device.c  |  11 +-
 drivers/gpu/drm/radeon/radeon_display.c |   2 -
 drivers/gpu/drm/radeon/radeon_drv.c     |   5 +-
 drivers/gpu/drm/radeon/radeon_fb.c      | 366 +-----------------------
 drivers/gpu/drm/radeon/radeon_gem.c     |  77 ++++-
 drivers/gpu/drm/radeon/radeon_kms.c     |  14 +-
 drivers/gpu/drm/radeon/radeon_mode.h    |  10 +-
 include/drm/drm_mode_config.h           |   7 +
 9 files changed, 111 insertions(+), 397 deletions(-)

--
2.29.2

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

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

end of thread, other threads:[~2020-11-26 12:16 UTC | newest]

Thread overview: 74+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-12 13:21 [PATCH 0/7] drm/radeon: Convert to generic fbdev emulation Thomas Zimmermann
2020-11-12 13:21 ` Thomas Zimmermann
2020-11-12 13:21 ` [PATCH 1/7] drm/fb-helper: Set framebuffer for vga-switcheroo clients Thomas Zimmermann
2020-11-12 13:21   ` Thomas Zimmermann
2020-11-12 13:21 ` [PATCH 2/7] drm/fb-helper: Add hint to enable VT switching during suspend/resume Thomas Zimmermann
2020-11-12 13:21   ` Thomas Zimmermann
2020-11-12 13:21 ` [PATCH 3/7] drm/radeon: Whitespace fixes Thomas Zimmermann
2020-11-12 13:21   ` Thomas Zimmermann
2020-11-12 13:21 ` [PATCH 4/7] drm/radeon: Pin buffers while they are vmap'ed Thomas Zimmermann
2020-11-12 13:21   ` Thomas Zimmermann
2020-11-12 17:16   ` Christian König
2020-11-12 17:16     ` Christian König
2020-11-13  7:59     ` Thomas Zimmermann
2020-11-13  7:59       ` Thomas Zimmermann
2020-11-16 11:28       ` Christian König
2020-11-16 11:28         ` Christian König
2020-11-13 16:27         ` Thomas Zimmermann
2020-11-13 16:27           ` Thomas Zimmermann
2020-11-16 20:07         ` Thomas Zimmermann
2020-11-16 20:07           ` Thomas Zimmermann
2020-11-24  9:16         ` Thomas Zimmermann
2020-11-24  9:16           ` Thomas Zimmermann
2020-11-24 11:30           ` Christian König
2020-11-24 11:30             ` Christian König
2020-11-24 11:44             ` Thomas Zimmermann
2020-11-24 11:44               ` Thomas Zimmermann
2020-11-24 11:54               ` Christian König
2020-11-24 11:54                 ` Christian König
2020-11-24 12:15                 ` Thomas Zimmermann
2020-11-24 12:15                   ` Thomas Zimmermann
2020-11-24 13:36                   ` Christian König
2020-11-24 13:36                     ` Christian König
2020-11-24 13:56                     ` Thomas Zimmermann
2020-11-24 13:56                       ` Thomas Zimmermann
2020-11-24 14:06                       ` Christian König
2020-11-24 14:06                         ` Christian König
2020-11-25  8:28                         ` Thomas Zimmermann
2020-11-25  8:28                           ` Thomas Zimmermann
2020-11-24 14:09                       ` Daniel Vetter
2020-11-24 14:09                         ` Daniel Vetter
2020-11-25  8:37                         ` Thomas Zimmermann
2020-11-25  8:37                           ` Thomas Zimmermann
2020-11-25 10:13                           ` Christian König
2020-11-25 10:13                             ` Christian König
2020-11-25 10:36                             ` Daniel Vetter
2020-11-25 10:36                               ` Daniel Vetter
2020-11-25 10:57                               ` Christian König
2020-11-25 10:57                                 ` Christian König
2020-11-25 11:38                               ` Thomas Zimmermann
2020-11-25 11:38                                 ` Thomas Zimmermann
2020-11-25 16:32                                 ` Daniel Vetter
2020-11-25 16:32                                   ` Daniel Vetter
2020-11-26 10:15                                   ` Thomas Zimmermann
2020-11-26 10:15                                     ` Thomas Zimmermann
2020-11-26 11:04                                     ` Daniel Vetter
2020-11-26 11:04                                       ` Daniel Vetter
2020-11-26 11:28                                       ` Christian König
2020-11-26 11:28                                         ` Christian König
2020-11-26 11:42                                         ` Thomas Zimmermann
2020-11-26 11:42                                           ` Thomas Zimmermann
2020-11-26 11:59                                       ` Thomas Zimmermann
2020-11-26 11:59                                         ` Thomas Zimmermann
2020-11-26 12:08                                         ` Christian König
2020-11-26 12:08                                           ` Christian König
2020-11-26 12:14                                           ` Thomas Zimmermann
2020-11-26 12:14                                             ` Thomas Zimmermann
2020-11-26 12:16                                             ` Christian König
2020-11-26 12:16                                               ` Christian König
2020-11-12 13:21 ` [PATCH 5/7] drm/radeon: Replace framebuffer console with generic implementation Thomas Zimmermann
2020-11-12 13:21   ` Thomas Zimmermann
2020-11-12 13:21 ` [PATCH 6/7] drm/radeon: Use fbdev shadow fb Thomas Zimmermann
2020-11-12 13:21   ` Thomas Zimmermann
2020-11-12 13:21 ` [PATCH 7/7] drm/radeon: Move radeon_align_pitch() next to its only caller Thomas Zimmermann
2020-11-12 13:21   ` Thomas Zimmermann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.