[PATCH v5 0/7] drm: add simpledrm driver

nerdopolis bluescreen_avenger at verizon.net
Wed Mar 10 02:50:09 UTC 2021


On Friday, September 2, 2016 4:22:38 AM EST David Herrmann wrote:
> Hey
> 
> On request of Noralf, I picked up the patches and prepared v5. Works fine with
> Xorg, if configured according to:
>     https://lists.freedesktop.org/archives/dri-devel/2014-January/052777.html
> If anyone knows how to make Xorg pick it up dynamically without such a static
> configuration, please let me know.
> 
> Thanks
> David
> 
> David Herrmann (7):
>   x86/sysfb: add support for 64bit EFI lfb_base
>   x86/sysfb: fix lfb_size calculation
>   of/platform: expose of_platform_device_destroy()
>   video: add generic framebuffer eviction
>   drm: switch to sysfb_evict_conflicts()
>   drm: add SimpleDRM driver
>   drm/simpledrm: add fbdev fallback support
> 
>  MAINTAINERS                                  |   6 +
>  arch/x86/kernel/sysfb_simplefb.c             |  39 ++-
>  drivers/gpu/drm/Kconfig                      |   3 +
>  drivers/gpu/drm/Makefile                     |   1 +
>  drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c      |  24 +-
>  drivers/gpu/drm/bochs/bochs_drv.c            |  19 +-
>  drivers/gpu/drm/i915/i915_drv.c              |  73 +---
>  drivers/gpu/drm/mgag200/mgag200_drv.c        |  27 +-
>  drivers/gpu/drm/mgag200/mgag200_main.c       |   9 -
>  drivers/gpu/drm/nouveau/nouveau_drm.c        |  33 +-
>  drivers/gpu/drm/radeon/radeon_drv.c          |  24 +-
>  drivers/gpu/drm/simpledrm/Kconfig            |  19 ++
>  drivers/gpu/drm/simpledrm/Makefile           |   9 +
>  drivers/gpu/drm/simpledrm/simpledrm.h        |  91 +++++
>  drivers/gpu/drm/simpledrm/simpledrm_damage.c | 194 +++++++++++
>  drivers/gpu/drm/simpledrm/simpledrm_drv.c    | 477 +++++++++++++++++++++++++++
>  drivers/gpu/drm/simpledrm/simpledrm_fbdev.c  | 143 ++++++++
>  drivers/gpu/drm/simpledrm/simpledrm_gem.c    | 109 ++++++
>  drivers/gpu/drm/simpledrm/simpledrm_kms.c    | 270 +++++++++++++++
>  drivers/gpu/drm/simpledrm/simpledrm_of.c     | 265 +++++++++++++++
>  drivers/gpu/drm/sun4i/sun4i_drv.c            |  24 +-
>  drivers/gpu/drm/vc4/vc4_drv.c                |  25 +-
>  drivers/gpu/drm/virtio/virtgpu_drm_bus.c     |  24 +-
>  drivers/of/platform.c                        |  35 +-
>  drivers/video/Kconfig                        |   4 +
>  drivers/video/Makefile                       |   1 +
>  drivers/video/sysfb.c                        | 327 ++++++++++++++++++
>  include/linux/of_platform.h                  |   1 +
>  include/linux/sysfb.h                        |  34 ++
>  29 files changed, 2054 insertions(+), 256 deletions(-)
>  create mode 100644 drivers/gpu/drm/simpledrm/Kconfig
>  create mode 100644 drivers/gpu/drm/simpledrm/Makefile
>  create mode 100644 drivers/gpu/drm/simpledrm/simpledrm.h
>  create mode 100644 drivers/gpu/drm/simpledrm/simpledrm_damage.c
>  create mode 100644 drivers/gpu/drm/simpledrm/simpledrm_drv.c
>  create mode 100644 drivers/gpu/drm/simpledrm/simpledrm_fbdev.c
>  create mode 100644 drivers/gpu/drm/simpledrm/simpledrm_gem.c
>  create mode 100644 drivers/gpu/drm/simpledrm/simpledrm_kms.c
>  create mode 100644 drivers/gpu/drm/simpledrm/simpledrm_of.c
>  create mode 100644 drivers/video/sysfb.c
>  create mode 100644 include/linux/sysfb.h
> 
> 
Hi

I am kind of curious as I do have interest in seeing this merged as well. 

There is an email in this thread from 2018, but when I tried to import an mbox
file from the whole month for August 2018, for some reason, kmail doesn't see 
the sender and mailing list recipient in that one, so I will reply to this one,
because I was able to import this into my mail client. 
https://www.spinics.net/lists/dri-devel/msg185519.html

I was able to get this to build against Linux 4.8, but not against a newer
version, some headers seem to have been split, and some things are off by 8
and other things. I could NOT find a git repo, but I was able to find the 
newest patches I could find, and import those with git am against 4.8 with
some tweaks. If that is needed, I can link it, but only if you want.

However in QEMU I wasn't able to figure out how to make it create a 
/dev/dri/card0 device, even after blacklisting the other modules for qxl, 
cirrus, etc, and then modprobe-ing simpledrm

In my view something like this is would be useful. There still could be 
hardware devices that don't have modesetting support (like vmvga in 
qemu/virt-manager as an example). And most wayland servers need a 
/dev/dri/card0 device as well as a potential user-mode TTY replacement would
also need /dev/dri/card0

I will admit I unfortunately failed to get it to build against master. I 
couldn't figure out some of the changes, where some new structs were off by
a factor of 8. 


Thanks





More information about the dri-devel mailing list