All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC 0/3] drm: Add DRM text mode
@ 2016-07-28 14:15 Noralf Trønnes
  2016-07-28 14:15 ` [RFC 1/3] drm: Add support for text framebuffer Noralf Trønnes
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Noralf Trønnes @ 2016-07-28 14:15 UTC (permalink / raw)
  To: dri-devel

This patchset explores the idea of adding a DRM text mode
(like VGA text mode) to get an alternative to fbcon/fbdev.

David Hermann has done alot of work on a fbcon replacement:
- drm: add kernel-log renderer (Mar 2014)[1]
- kmscon:
  development started Nov 2011
  added to systemd Oct 2014
  removed from systemd Jul 2015[2]

Since this work seems to have stalled, I propose an alternative solution
to this problem that will also give VT console support while we're waiting
for a userspace console.

The idea is that the driver provides a modeset like with the fbdev emulation
code, and from this a text buffer representation is made. The console code
can now write to this text buffer and ask for the text buffer to be
flushed/rendered to the pixel buffer.

In this hack/implementation of the idea, I have just hijacked a CMA backed
fbdev framebuffer to keep it simple.
I have reused the default buffer format that VT uses.
Getting panic handling to actually work, seems to be a challenge as Daniel
describes on the DRMJanitors page[3].

Is this idea of a DRM text mode worth developing further?


Noralf.

[1] https://lwn.net/Articles/589858/
[2] https://github.com/systemd/systemd/pull/747
[3] https://www.x.org/wiki/DRMJanitors/#makepanichandlingwork


Noralf Trønnes (3):
  drm: Add support for text framebuffer
  drm/text: Add panic and boot console support
  drm/text: Add VT console support

 drivers/gpu/drm/Makefile                    |   1 +
 drivers/gpu/drm/drm-text/Makefile           |   5 +
 drivers/gpu/drm/drm-text/drm-text-buffer.c  | 340 ++++++++++++++++++++++++++++
 drivers/gpu/drm/drm-text/drm-text-console.c | 205 +++++++++++++++++
 drivers/gpu/drm/drm-text/drm-text-debugfs.c | 295 ++++++++++++++++++++++++
 drivers/gpu/drm/drm-text/drm-text-vt.c      | 197 ++++++++++++++++
 drivers/gpu/drm/drm-text/drm-text.h         |  99 ++++++++
 7 files changed, 1142 insertions(+)
 create mode 100644 drivers/gpu/drm/drm-text/Makefile
 create mode 100644 drivers/gpu/drm/drm-text/drm-text-buffer.c
 create mode 100644 drivers/gpu/drm/drm-text/drm-text-console.c
 create mode 100644 drivers/gpu/drm/drm-text/drm-text-debugfs.c
 create mode 100644 drivers/gpu/drm/drm-text/drm-text-vt.c
 create mode 100644 drivers/gpu/drm/drm-text/drm-text.h

--
2.8.2

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

^ permalink raw reply	[flat|nested] 14+ messages in thread
* [RFC 0/3] drm: Add DRM text mode
@ 2016-08-04 19:37 Ken Phillis Jr
  0 siblings, 0 replies; 14+ messages in thread
From: Ken Phillis Jr @ 2016-08-04 19:37 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 463 bytes --]

I like the idea of the whole DRM Text mode driver set, and would you be
open to changing the license to  (or possibly adding a dual license option)
involving the MIT[1], BSD 2-clause[2], or BSD 3-clause[3]. This would
simplify the porting of this driver to other platforms ( for example
FreeBSD, DragonFlyBSD, and others ).

[1] https://opensource.org/licenses/MIT
[2] https://opensource.org/licenses/BSD-2-Clause
[3] https://opensource.org/licenses/BSD-3-Clause

[-- Attachment #1.2: Type: text/html, Size: 670 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

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

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

end of thread, other threads:[~2016-08-04 19:37 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-28 14:15 [RFC 0/3] drm: Add DRM text mode Noralf Trønnes
2016-07-28 14:15 ` [RFC 1/3] drm: Add support for text framebuffer Noralf Trønnes
2016-07-28 14:15 ` [RFC 2/3] drm/text: Add panic and boot console support Noralf Trønnes
2016-07-28 14:15 ` [RFC 3/3] drm/text: Add VT " Noralf Trønnes
2016-07-29  8:20 ` [RFC 0/3] drm: Add DRM text mode Daniel Vetter
2016-07-29  8:23   ` Daniel Vetter
2016-07-30 15:48     ` Noralf Trønnes
2016-08-01 10:50       ` Noralf Trønnes
2016-08-02 13:03         ` Daniel Vetter
2016-08-02 13:05       ` Daniel Vetter
2016-08-03 20:23         ` Noralf Trønnes
2016-08-02 13:41 ` David Herrmann
2016-08-02 14:43   ` Daniel Vetter
  -- strict thread matches above, loose matches on Subject: below --
2016-08-04 19:37 Ken Phillis Jr

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.