dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [RFC v3 0/3] Hello,
@ 2016-11-30 19:34 Benjamin Gaignard
  2016-11-30 19:34 ` [RFC v3 1/3] fbmem: add default get_fb_unmapped_area function Benjamin Gaignard
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Benjamin Gaignard @ 2016-11-30 19:34 UTC (permalink / raw)
  To: dri-devel, airlied, daniel, robdclark, laurent.pinchart
  Cc: yannick.fertre, linaro-kernel, philippe.cornu

version 3:
- split the original patch in 3 parts, it should be more easy to review like
  this.
- duplicate drm_fb_cma_helper.c and drm_gem_cma_helper.c into nommu version
- add a configuration flag for drm_vm.c 

The purpose of this RFC is to understand what is needed to allow to
write drm/kms drivers for devices without MMU.

There are some MCU platforms, like stm32f4, which don't have MMU
but have hardware display IP where is it possible to implement a
drm/kms driver.

Obviously that start by removing MMU configuration flag from Kconfig.
But while coding the driver for stm32f4 (on discovery board to have enough memory)
we have already identify few other pieces of code that need to be change.
We have been inspired by what already exist in v4l2 where using mmuless devices
is possible.

Since we have only use cma helpers we only have partial view of what could be
needed for other part of drm/kms framework.

Benjamin Gaignard (3):
  fbmem: add default get_fb_unmapped_area function
  drm: compile drm_vm.c only when needed
  drm: allow to use mmuless SoC

 drivers/gpu/drm/Kconfig                    |  28 +-
 drivers/gpu/drm/Makefile                   |   5 +-
 drivers/gpu/drm/drm_fb_cma_helper_nommu.c  | 648 +++++++++++++++++++++++++++++
 drivers/gpu/drm/drm_gem_cma_helper_nommu.c | 574 +++++++++++++++++++++++++
 drivers/gpu/drm/drm_legacy.h               |   7 +
 drivers/gpu/drm/nouveau/Kconfig            |   1 +
 drivers/video/fbdev/core/fbmem.c           |  15 +
 include/drm/drm_gem_cma_helper.h           |   8 +
 8 files changed, 1281 insertions(+), 5 deletions(-)
 create mode 100644 drivers/gpu/drm/drm_fb_cma_helper_nommu.c
 create mode 100644 drivers/gpu/drm/drm_gem_cma_helper_nommu.c

-- 
1.9.1

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

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

end of thread, other threads:[~2016-12-01  8:42 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-30 19:34 [RFC v3 0/3] Hello, Benjamin Gaignard
2016-11-30 19:34 ` [RFC v3 1/3] fbmem: add default get_fb_unmapped_area function Benjamin Gaignard
2016-11-30 19:39   ` Laurent Pinchart
2016-11-30 19:46     ` Benjamin Gaignard
2016-12-01  1:13       ` Laurent Pinchart
2016-12-01  7:24         ` Benjamin Gaignard
2016-12-01  8:38           ` Laurent Pinchart
2016-12-01  2:31       ` Michel Dänzer
2016-12-01  7:27         ` Benjamin Gaignard
2016-12-01  8:42           ` Laurent Pinchart
2016-11-30 19:34 ` [RFC v3 2/3] drm: compile drm_vm.c only when needed Benjamin Gaignard
2016-11-30 19:40   ` Laurent Pinchart
2016-11-30 19:34 ` [RFC v3 3/3] drm: allow to use mmuless SoC Benjamin Gaignard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).