[RFC patch v2] x86: Improve boot_vga/vga_default_device() for EFI

2013-12-18 Thread David Herrmann
Hi On Sat, Nov 30, 2013 at 2:52 PM, Bruno Pr?mont wrote: > With commit b4aa0163056b6c70029b6e8619ce07c274351f42 Matthew Garret > introduced a efifb vga_default_device() so that EFI systems that do not > load shadow VBIOS or setup VGA get proper value for boot_vga PCI sysfs > attribute on the corr

[RFC patch v2] x86: Improve boot_vga/vga_default_device() for EFI

2013-12-18 Thread David Herrmann
Hi On Wed, Dec 18, 2013 at 4:38 PM, David Herrmann wrote: > Hi > > On Sat, Nov 30, 2013 at 2:52 PM, Bruno Pr?mont > wrote: >> With commit b4aa0163056b6c70029b6e8619ce07c274351f42 Matthew Garret >> introduced a efifb vga_default_device() so that EFI systems that do not

Re: [RFC v2 3/8] drm: Export some ioctl functions

2018-01-09 Thread David Herrmann
Hi On Tue, Jan 9, 2018 at 11:16 AM, Daniel Vetter wrote: > On Wed, Jan 03, 2018 at 11:21:05PM +0100, Noralf Trønnes wrote: >> Export the following functions so in-kernel users can allocate >> dumb buffers: >> - drm_file_alloc >> - drm_file_free >> - drm_prime_handle_to_fd_ioctl >> - drm_mode_addf

Re: [RFC v2 1/8] drm: provide management functions for drm_file

2018-01-09 Thread David Herrmann
Hi On Tue, Jan 9, 2018 at 11:20 AM, Daniel Vetter wrote: > On Wed, Jan 03, 2018 at 11:21:03PM +0100, Noralf Trønnes wrote: >> From: David Herrmann >> >> Rather than doing drm_file allocation/destruction right in the fops, lets >> provide separate helpers. This decoupl

drm: fix blob pointer check

2016-03-11 Thread David Herrmann
Hey On Fri, Mar 11, 2016 at 12:52 PM, Lionel Landwerlin wrote: > Thanks a lot for pointing this out. I saw you previous comment but didn't > realize the issue. > I'll set the pointer to NULL. > > I don't if there is an agreement on this, but do you think the unref/free > functions should check fo

[PATCH] dma-buf: Update docs for SYNC ioctl

2016-03-21 Thread David Herrmann
Hi On Mon, Mar 21, 2016 at 8:51 AM, Daniel Vetter wrote: > Just a bit of wording polish plus mentioning that it can fail and must > be restarted. > > Requested by Sumit. > > v2: Fix them typos (Hans). > > Cc: Chris Wilson > Cc: Tiago Vignatti > Cc: Stéphane M

[PATCH 2/4 v3] drm: Introduce drm_connector_register_all() helper

2016-03-23 Thread David Herrmann
Hi On Wed, Mar 23, 2016 at 9:42 AM, Alexey Brodkin wrote: > As a pair to already existing drm_connector_unregister_all() we're adding > generic implementation of what is already done in some drivers. > > Once this helper is implemented we'll be ready to switch existing > driver-specific implement

[PATCH] dma-buf: Update docs for SYNC ioctl

2016-03-23 Thread David Herrmann
Hey On Mon, Mar 21, 2016 at 6:14 PM, Daniel Vetter wrote: > On Mon, Mar 21, 2016 at 01:26:58PM +0100, David Herrmann wrote: >> Hi >> >> On Mon, Mar 21, 2016 at 8:51 AM, Daniel Vetter >> wrote: >> > Just a bit of wording polish plus mentioning that it

[PATCH] dma-buf: Update docs for SYNC ioctl

2016-03-23 Thread David Herrmann
Hi On Wed, Mar 23, 2016 at 12:56 PM, Chris Wilson wrote: > On Wed, Mar 23, 2016 at 12:30:42PM +0100, David Herrmann wrote: >> My question was rather about why we do this? Semantics for EINTR are >> well defined, and with SA_RESTART (default on linux) user-space can >&g

[RFC 1/5] drm: Add DRM support for tiny LCD displays

2016-03-23 Thread David Herrmann
Hey On Wed, Mar 16, 2016 at 2:34 PM, Noralf Trønnes wrote: > tinydrm provides a very simplified view of DRM for displays that has > onboard video memory and is connected through a slow bus like SPI/I2C. > > Signed-off-by: Noralf Trønnes > --- > drivers/gpu/drm/Kconfig

[PATCH] dma-buf: Update docs for SYNC ioctl

2016-03-29 Thread David Herrmann
Hi On Mon, Mar 28, 2016 at 9:42 PM, Tiago Vignatti wrote: > Do we have an agreement here after all? David? I need to know whether this > fixup is okay to go cause I'll need to submit to Chrome OS then. Sure it is fine. The code is already there, we cannot change it. Thanks David

[PATCH 1/3 v4] drm: Introduce drm_connector_register_all() helper

2016-03-29 Thread David Herrmann
ting > driver-specific implementations with the generic one. > > Signed-off-by: Alexey Brodkin > Cc: Daniel Vetter > Cc: David Airlie > Cc: David Herrmann > --- > > Changes v3 -> v4: > * In drm_connector_register_all() fail path which calls unregister_all() >

[PATCH] drm: fix returning -EINVAL on setmaster if another master is active

2012-10-07 Thread David Herrmann
gic fails if no DRM-Master is currently active at all. Because then the client itself would become DRM-Master (if it is root) and this makes this whole thing useles. Also note that the second "if-condition": file_priv->minor->master != file_priv->master is always true and ca

[PATCH] drm: fix returning -EINVAL on setmaster if another master is active

2012-10-11 Thread David Herrmann
Hi Laurent On Thu, Oct 11, 2012 at 12:35 PM, Laurent Pinchart wrote: > Hi David, > > Would you have time to document the master_set operation in > Documentation/DocBook/drm.tmpl ? :-) I have actually some drafts for "drmSetMaster/drmDropMaster" man-pages for libdrm on my machine. However, I am s

[PATCH] drm: make buffer management work without DRM_MASTER

2012-09-11 Thread David Herrmann
console), then the background display-server is unable to destroy its buffers. Under special curcumstances (like monitor reconfiguration) this might even happen during runtime. Signed-off-by: David Herrmann --- drivers/gpu/drm/drm_drv.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions

[PATCH RESEND] drm: fix returning -EINVAL on setmaster if another master is active

2012-11-15 Thread David Herrmann
gic fails if no DRM-Master is currently active at all. Because then the client itself would become DRM-Master (if it is root) and this makes this whole thing useles. Also note that the second "if-condition": file_priv->minor->master != file_priv->master is always true and ca

Re: FOSDEM2013: DevRoom or not?

2012-12-26 Thread David Herrmann
Hi Michael On Sat, Dec 1, 2012 at 3:54 AM, Michael Hasselmann wrote: > On Fri, 2012-09-28 at 23:51 +0200, Luc Verhaegen wrote: >> We still have, i hope (depends on what the FOSDEM organizers have left >> for us), 6 slots fully open: first come first serve, and the earlier >> bird gets the nicer s

Re: [PATCH libdrm 0/4] Manpages for libdrm

2013-01-10 Thread David Herrmann
Hi Jesse On Thu, Jan 10, 2013 at 1:22 AM, Jesse Barnes wrote: > On Fri, 28 Sep 2012 23:44:18 +0200 > David Herrmann wrote: > >> Hi >> >> This is revision 2 of the manpages for libdrm. I converted everything to >> docbook >> XML. This makes it easier to w

Re: [ANNOUNCE] libdrm 2.4.41

2013-01-16 Thread David Herrmann
Hi Maarten On Wed, Jan 16, 2013 at 3:16 PM, Maarten Lankhorst wrote: > Op 16-01-13 13:19, Maarten Lankhorst schreef: >> ... >> Jesse Barnes (1): >> man: disable man page building until David saves us all >> > Looks like this commit might break building if you don't build against git > dire

[PATCH] man: fix manpage build instructions

2013-01-16 Thread David Herrmann
expensive xsltproc procedure can be skipped. Signed-off-by: David Herrmann --- Hi This is how I build manpages for kmscon and it worked until now so it should also work for libdrm. I tried every kind of failure and out-of-tree builds and everything worked. distcheck also passed fine. I hope that

Re: [PATCH] build: Add --disable-manpages configure option

2013-01-16 Thread David Herrmann
Hi Colin On Thu, Jan 10, 2013 at 1:46 AM, Colin Walters wrote: > It's not enough to check for xsltproc - the system may not have the > docbook stylesheets installed. This patch also allows builders to > override the generation/installation of manpages entirely; for > example, manpages are of no

Re: [PATCH] man: Fix typo and use $() for make expressions

2013-01-18 Thread David Herrmann
Hi Thierry On Fri, Jan 18, 2013 at 1:22 PM, Thierry Reding wrote: > Due to the typo, none of the .xml files would end up in the release > tarball and cause make distcheck as well as builds from the tarball to > fail. > > Using $() isn't strictly necessary but other variables and expressions > use

Re: [PATCH] man: Fix typo and use $() for make expressions

2013-01-18 Thread David Herrmann
On Fri, Jan 18, 2013 at 5:00 PM, David Herrmann wrote: > Hi Thierry > > On Fri, Jan 18, 2013 at 1:22 PM, Thierry Reding > wrote: >> Due to the typo, none of the .xml files would end up in the release >> tarball and cause make distcheck as well as builds from the tarball

Re: [PATCH] man: Fix typo and use $() for make expressions

2013-01-20 Thread David Herrmann
Hi Mark On Sun, Jan 20, 2013 at 7:39 AM, Mark Zhang wrote: > Hi David: > > Sorry for jumping in. I pulled the ToT libdrm and it seems the manpages > will not be built("make html" does nothing), any suggestions? The manpages should be built automatically if you do "make". Or you can try "make -C

Re: [PATCH] man: Fix typo and use $() for make expressions

2013-01-25 Thread David Herrmann
Hi Jesse On Fri, Jan 18, 2013 at 5:54 PM, Jesse Barnes wrote: > On Fri, 18 Jan 2013 17:01:59 +0100 > David Herrmann wrote: > >> On Fri, Jan 18, 2013 at 5:00 PM, David Herrmann >> wrote: >> > Hi Thierry >> > >> > On Fri, Jan 18, 2013 at 1:22 PM, T

[RFC v1] drm: new VESA BIOS Extension DRM driver

2013-01-27 Thread David Herrmann
o the target format while blitting. Fast-paths for xrgb32/etc. could be implemented if we want to improve blitting performance. Signed-off-by: David Herrmann --- Hi This driver is a very basic DRM driver with roughly the same functionality as vesafb but with a userspace API that doesn't s

[PATCH] drm: make buffer management work without DRM_MASTER

2012-09-11 Thread David Herrmann
console), then the background display-server is unable to destroy its buffers. Under special curcumstances (like monitor reconfiguration) this might even happen during runtime. Signed-off-by: David Herrmann --- drivers/gpu/drm/drm_drv.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions

Re: Adopt a libdrm man page

2012-09-17 Thread David Herrmann
Hi Jesse On Mon, Sep 17, 2012 at 5:12 PM, Jesse Barnes wrote: > I just pushed some basic man page stuff to the libdrm repo, but won't > have time to do any more pages for the next week or two. > > But regardless, it would be cool if people could adopt some pages and > push them out. The goal is

[PATCH libdrm 0/4] Overview man-pages for libdrm

2012-09-23 Thread David Herrmann
really ugly to read. Regards David Some parts are copied from (I hope nobody minds?): http://lwn.net/Articles/283798/ http://lwn.net/Articles/499261/ David Herrmann (4): man: use automake man_MANS to allow multiple suffixes man: add man/drm.7 overview page man: add KMS overview pa

[PATCH libdrm 1/4] man: use automake man_MANS to allow multiple suffixes

2012-09-23 Thread David Herrmann
-page headers. Signed-off-by: David Herrmann --- man/Makefile.am | 16 +++- man/drmAvailable.3 | 26 + man/drmAvailable.man| 25 - man/drmHandleEvent.3| 48 man/drmHandleEvent.man | 45

[PATCH libdrm 2/4] man: add man/drm.7 overview page

2012-09-23 Thread David Herrmann
. Signed-off-by: David Herrmann --- man/Makefile.am | 1 + man/drm.7 | 99 + 2 files changed, 100 insertions(+) create mode 100644 man/drm.7 diff --git a/man/Makefile.am b/man/Makefile.am index f003101..6193a95 100644 --- a/man

[PATCH libdrm 3/4] man: add KMS overview page

2012-09-23 Thread David Herrmann
, framebuffers, planes and cursors. Signed-off-by: David Herrmann --- man/Makefile.am | 1 + man/drm-kms.7 | 269 2 files changed, 270 insertions(+) create mode 100644 man/drm-kms.7 diff --git a/man/Makefile.am b/man/Makefile.am index 6193a95

[PATCH libdrm 4/4] man: add drm-memory man-page

2012-09-23 Thread David Herrmann
driver-dependent information is needed. Signed-off-by: David Herrmann --- man/Makefile.am | 4 + man/drm-gem.7| 1 + man/drm-memory.7 | 412 +++ man/drm-mm.7 | 1 + man/drm-ttm.7| 1 + 5 files changed, 419 insertions(+) create

Re: [PATCH libdrm 4/4] man: add drm-memory man-page

2012-09-24 Thread David Herrmann
Hi Michel On Mon, Sep 24, 2012 at 9:45 AM, Michel Dänzer wrote: > On Son, 2012-09-23 at 16:40 +0200, David Herrmann wrote: >> + >> +.SS TTM >> +.B TTM >> +stands for >> +.B Translation Table Manager >> +and is another generic memory-manager provided by the

Re: [PATCH libdrm 0/4] Overview man-pages for libdrm

2012-09-24 Thread David Herrmann
Hi Thierry On Mon, Sep 24, 2012 at 9:51 PM, Thierry Reding wrote: > On Sun, Sep 23, 2012 at 04:40:03PM +0200, David Herrmann wrote: >> Hi >> >> This tries to continue the effort to document libdrm. I actually removed the >> X11-like man-page generation code as autotool

[PATCH libdrm 0/4] Manpages for libdrm

2012-09-28 Thread David Herrmann
. Thanks for reviewing! Regards David David Herrmann (4): man: convert manpages to XML instead of plain troff man: add drm.7 overview page man: add drm-kms overview page man: add drm-memory overview page .gitignore | 4 + configure.ac| 24 +-- man

[PATCH libdrm 1/4] man: convert manpages to XML instead of plain troff

2012-09-28 Thread David Herrmann
If we want to use the manpages in external documentation other than normal manpages, we should rather use XML. Furthermore, almost no-one knows troff today, anyway, and XML allows others to easily add more pages without having to learn troff. Signed-off-by: David Herrmann --- .gitignore

[PATCH libdrm 2/4] man: add drm.7 overview page

2012-09-28 Thread David Herrmann
The drm.xml file compiles to drm.7 and is meant as a global overview page for libdrm. It is targeted to new users of libdrm and redirects to all other main man-pages. Signed-off-by: David Herrmann Reviewed-by: Jesse Barnes --- man/Makefile.am | 1 + man/drm.xml | 137

[PATCH libdrm 3/4] man: add drm-kms overview page

2012-09-28 Thread David Herrmann
This is an overview page for KMS. It is again targeted at novice users that need redirection to the correct function man-pages. Signed-off-by: David Herrmann Reviewed-by: Jesse Barnes --- man/Makefile.am | 1 + man/drm-kms.xml | 342 2

[PATCH libdrm 4/4] man: add drm-memory overview page

2012-09-28 Thread David Herrmann
This adds an overview page that describes Dumb-Buffers, TTM and GEM. It does not describe chipset-specific features. You should do that in the driver-manpages. Signed-off-by: David Herrmann Reviewed-by: Jesse Barnes --- man/Makefile.am| 9 +- man/drm-memory.xml | 430

[PATCH] drm: fix returning -EINVAL on setmaster if another master is active

2012-10-07 Thread David Herrmann
gic fails if no DRM-Master is currently active at all. Because then the client itself would become DRM-Master (if it is root) and this makes this whole thing useles. Also note that the second "if-condition": file_priv->minor->master != file_priv->master is always true and ca

Re: [PATCH] drm: fix returning -EINVAL on setmaster if another master is active

2012-10-11 Thread David Herrmann
Hi Laurent On Thu, Oct 11, 2012 at 12:35 PM, Laurent Pinchart wrote: > Hi David, > > Would you have time to document the master_set operation in > Documentation/DocBook/drm.tmpl ? :-) I have actually some drafts for "drmSetMaster/drmDropMaster" man-pages for libdrm on my machine. However, I am s

DRM KMS Modesetting

2011-11-15 Thread David Herrmann
Hi I thought it's better to ask this question here again as it is easier to comment via mail. I tried writing a simple kms modesetting program. I have written it similar to: http://virtuousgeek.org/blog/index.php/jbarnes?blog=2&title=writing_stanalone_programs_with_egl_and_ and wayland compositor

Re: DRM KMS Modesetting

2011-11-15 Thread David Herrmann
On Mon, Nov 14, 2011 at 9:38 PM, Jesse Barnes wrote: > On Mon, 14 Nov 2011 21:25:56 +0100 > David Herrmann wrote: > >> Hi >> >> I thought it's better to ask this question here again as it is easier >> to comment via mail. >> >> I tried writing a

Re: DRM KMS Modesetting

2011-11-15 Thread David Herrmann
2011/11/15 Kristian Høgsberg : > On Mon, Nov 14, 2011 at 5:54 PM, Jesse Barnes > wrote: >> On Mon, 14 Nov 2011 21:47:09 +0100 >> David Herrmann wrote: >>> > I had to modify the resolution the test was searching for >>> > to 1920x1200 instead o

Re: DRM KMS Modesetting

2011-11-18 Thread David Herrmann
2011/11/15 Kristian Høgsberg : > 2011/11/15 David Herrmann : >> 2011/11/15 Kristian Høgsberg : >>> On Mon, Nov 14, 2011 at 5:54 PM, Jesse Barnes >>> wrote: >>>> On Mon, 14 Nov 2011 21:47:09 +0100 >>>> David Herrmann wrote: >>>&g

Re: DRM KMS Modesetting

2011-11-18 Thread David Herrmann
On Fri, Nov 18, 2011 at 10:41 PM, Jesse Barnes wrote: > On Fri, 18 Nov 2011 22:35:13 +0100 > David Herrmann wrote: > >> 2011/11/15 Kristian Høgsberg : >> > 2011/11/15 David Herrmann : >> >> 2011/11/15 Kristian Høgsberg : >> >>> On Mon, N

[PATCH] xf86drmMode.h: Add header protection

2012-03-08 Thread David Herrmann
xf86drmMode.h is missing a header protection. xf86drm.h has one so just copy it and adjust the name. Signed-off-by: David Herrmann --- I am not sure if this is the correct mailing-list for libdrm nor who the actual maintainer is. Please correct me if I should CC someone else or post it to

[BUG] inconsistent DPMS settings

2012-03-11 Thread David Herrmann
Hi I was tracing down a bug that made drmModePageFlip() fail and I noticed that the DPMS settings are not correctly restored when switching between xorg-server and vtcon. In fact, when enabling a monitor with xrandr in X while DPMS=off for that monitor, then it will stay blank. Switching back to V

[ANNOUNCE] kmscon: Lazy-web's DRM based terminal emulator

2012-03-27 Thread David Herrmann
Hi Motivated by Jesse's letter to the lazyweb [1] I worked on a kmscon program. It provides a terminal-emulator similar to the in-kernel terminal-emulator based on DRM. It is written from scratch and needs as external dependencies only mesa (libdrm, libgbm, libEGL, libGLESv2), udev, xproto (build-

Re: [ANNOUNCE] kmscon: Lazy-web's DRM based terminal emulator

2012-03-28 Thread David Herrmann
Hi On Tue, Mar 27, 2012 at 5:59 PM, Ville Syrjälä wrote: > On Tue, Mar 27, 2012 at 04:57:29PM +0200, David Herrmann wrote: >> It needs some more work in the VTE layer and on the UI but it's >> I had several issues while writing it but most of them are fixed. One >

Re: [ANNOUNCE] kmscon: Lazy-web's DRM based terminal emulator

2012-04-01 Thread David Herrmann
Hi On Wed, Mar 28, 2012 at 8:14 PM, Ville Syrjälä wrote: > On Wed, Mar 28, 2012 at 10:30:20AM -0700, Jesse Barnes wrote: >> On Tue, 27 Mar 2012 16:57:29 +0200 >> David Herrmann wrote: >> >> > Hi >> > >> > Motivated by Jesse's letter to

Re: [ANNOUNCE] kmscon: Lazy-web's DRM based terminal emulator

2012-04-01 Thread David Herrmann
Hi On Wed, Mar 28, 2012 at 7:30 PM, Jesse Barnes wrote: > On Tue, 27 Mar 2012 16:57:29 +0200 > David Herrmann wrote: > >> Hi >> >> Motivated by Jesse's letter to the lazyweb [1] I worked on a kmscon >> program. It provides a >> terminal-emulator simi

[PATCH] egl-fbdev: Fix compile-error by including errno.h

2012-04-14 Thread David Herrmann
We use errno and EINVAL so include errno.h. Signed-off-by: David Herrmann --- src/gallium/state_trackers/egl/fbdev/native_fbdev.c |1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/state_trackers/egl/fbdev/native_fbdev.c b/src/gallium/state_trackers/egl/fbdev/native_fbdev.c

[PATCH RESEND] egl-fbdev: Fix compile-error by including errno.h

2012-04-22 Thread David Herrmann
27;ed mesa-dev and the people who reviewed the original patch this time as I have no idea who I need to send this to. Thanks David ** egl-fbdev: Fix compile-error by including errno.h We use errno and EINVAL so include errno.h. Signed-off-by: Davi

[PATCH RESEND] egl-fbdev: Fix compile-error by including errno.h

2012-04-29 Thread David Herrmann
We use errno and EINVAL so include errno.h. This patch introduced this bug: http://cgit.freedesktop.org/mesa/mesa/commit/src/gallium/state_trackers/egl/fbdev/native_fbdev.c?id=b60120608f6ddf4098bc324363197c979ee04cb7 Signed-off-by: David Herrmann Cc: Chia-I Wu Cc: Dave Airlie Cc: Adam Jackson

[BUG] gallium-gbm-target requires drm-pipe-loader

2012-06-10 Thread David Herrmann
Hi The recently added gbm gallium target (./src/gallium/targets/gbm/gbm.c) requires HAVE_DRM_PIPE_LOADER for pipe_loader_drm_probe(). Otherwise, the compiler fails with an unresolved function-name. However, HAVE_DRM_PIPE_LOADER is not defined when compiling i915 only, so I need to compile gallium

[PATCH] drm: fix drm_read() returning 0

2012-06-14 Thread David Herrmann
user-space. We can avoid this by waiting for events until we got at least one event or an error occurred. Signed-off-by: David Herrmann --- The patch might look a bit scary but it adds only a single do { } while(!total); around the whole block. drivers/gpu/drm/drm_fops.c |

[PATCH RESEND] drm: fix drm_read() returning 0

2012-06-24 Thread David Herrmann
user-space. We can avoid this by waiting for events until we got at least one event or an error occurred. Signed-off-by: David Herrmann --- The patch might look a bit scary but it adds only a single do { } while(!total); around the whole block. drivers/gpu/drm/drm_fops.c |

dma-buf/fbdev: one-to-many support

2012-07-14 Thread David Herrmann
Hi I am currently working on fblog [1] (a replacement for fbcon without VT dependencies) but this questions does also apply to other fbdev users. Is there a way to share framebuffers between fbdev devices? I was thinking especially of USB devices like DisplayLink. If they share the same screen dim

Re: dma-buf/fbdev: one-to-many support

2012-07-17 Thread David Herrmann
Hi Laurent and Alan On Tue, Jul 17, 2012 at 1:24 PM, Alan Cox wrote: >> The main issue is that fbdev has been designed with the implicit assumption >> that an fbdev driver will always own the graphics memory it uses. All >> components in the stack, from drivers to applications, have been designed

[PATCH 0/9] System Framebuffer Bus (sysfb)

2013-02-17 Thread David Herrmann
to see the system-framebuffer platform-devices being registered during architecture initialization. I haven't worked much there so any comments are welcome. Otherwise, I will keep the HACK to add the devices during sysfb module-init. Regards David David Herrmann (9): video: introduce syste

[PATCH 1/9] video: introduce system framebuffer bus

2013-02-17 Thread David Herrmann
From: David Herrmann For a long time now we have the problem that there are multiple drivers available that try to use system framebuffers (like EFI, VESA/VBE, ...). There is no way to control which driver gets access to the devices, but instead works on a first-come-first-serve basis

[PATCH 2/9] video: sysfb: new vbefb device type

2013-02-17 Thread David Herrmann
From: David Herrmann This adds the VESA BIOS Extension (VBE) device type. Platform code needs to provide the "vbefb" platform-device with a screen_info structure as platform code. All drivers that depend on VBE can now register as bus drivers and bind to SYSFB_VBE devices. T

[PATCH 3/9] video: sysfb: always provide vbefb device

2013-02-17 Thread David Herrmann
From: David Herrmann HACK: This should be provided by architecture setup code. But to show how it is supposed to work, we now simply add a "vbefb" device during initialization. The better way to do this is by moving this into arch-code. So for instance the x86 boot initialization sho

[PATCH 4/9] video: vesafb: allow building as module

2013-02-17 Thread David Herrmann
From: David Herrmann Fix the vesafb module to no longer use any static __init data. Also add a module_exit() function that destroys the platform device. Note that fbdev hotplugging is broken and the self-reference actually prevents sane module-unloading. Anyway, this at least allows delayed

[PATCH 5/9] video: vesafb: use sysfb bus

2013-02-17 Thread David Herrmann
because the sysfb bus provides all devices now. Signed-off-by: David Herrmann --- drivers/video/Kconfig | 1 + drivers/video/vesafb.c | 49 +++-- 2 files changed, 16 insertions(+), 34 deletions(-) diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig

[PATCH 6/9] drm: new sysfb DRM bus module

2013-02-17 Thread David Herrmann
This provides a new DRM bus helper for the system framebuffer bus. It is very similar in its functionality to the DRM_USB helper. It allows to write DRM drivers that register as SYSFB drivers to the system. Signed-off-by: David Herrmann --- drivers/gpu/drm/Kconfig | 5 ++ drivers/gpu/drm

[PATCH 7/9] drm: new VESA BIOS Extension DRM driver stub

2013-02-17 Thread David Herrmann
into the framebuffer. All buffer objects are backed by shmem so we can later add PRIME support. Signed-off-by: David Herrmann --- drivers/gpu/drm/Kconfig | 2 + drivers/gpu/drm/Makefile | 1 + drivers/gpu/drm/dvbe/Kconfig | 28 +++ drivers/gpu/drm/dvbe/Makefile| 4

[PATCH 8/9] drm: dvbe: implement VBE/VESA blitting backend

2013-02-17 Thread David Herrmann
pixel from the user's buffer format into the target format while blitting. Fast-paths for xrgb32/etc. could be implemented if we want to improve blitting performance. Signed-off-by: David Herrmann --- drivers/gpu/drm/dvbe/Kconfig | 1 + drivers/gpu/drm/dvbe/Makefile| 2 +- dr

[PATCH 9/9] drm: dvbe: add optional fbdev frontend

2013-02-17 Thread David Herrmann
. Signed-off-by: David Herrmann --- drivers/gpu/drm/dvbe/Kconfig | 18 +++ drivers/gpu/drm/dvbe/Makefile | 1 + drivers/gpu/drm/dvbe/dvbe.h | 23 drivers/gpu/drm/dvbe/dvbe_fbdev.c | 235 ++ drivers/gpu/drm/dvbe/dvbe_main.c | 2 + 5 files

Re: [PATCH 0/9] System Framebuffer Bus (sysfb)

2013-02-17 Thread David Herrmann
Hi Dave On Sun, Feb 17, 2013 at 11:02 PM, Dave Airlie wrote: >> >> This series tries to fix the mess with global system framebuffer access in >> device drivers. Currently, architecture initialization sets the "screen_info" >> object according to the system framebuffer that was detected during boo

Re: [PATCH 0/9] System Framebuffer Bus (sysfb)

2013-02-28 Thread David Herrmann
Hi Dave Sorry, I was busy reworking the HIDP layer. I finally got time to continue my work on this again. See below: On Mon, Feb 18, 2013 at 12:47 AM, Dave Airlie wrote: [..snap..] > As I said maybe I'm concentrating on the problem you aren't trying to fix, > but then I'm not sure I've enough in

Re: Standalone DRM application

2013-04-18 Thread David Herrmann
Hi On Wed, Apr 17, 2013 at 11:05 PM, Byron Stanoszek wrote: > David, > > I'm developing a small application that uses libdrm (DRM ioctls) to change > the > resolution of a single graphics display and show a framebuffer. I've run > into > two problems with this implementation that I'm hoping you c

Re: picking efifb driver over dri driver

2013-05-27 Thread David Herrmann
Hi On Mon, May 27, 2013 at 5:42 PM, Christopher Harvey wrote: > I'm looking for the mechanism in the kernel that makes the decision to > load the efifb driver over a dri one. Any tips? I've got a machine here > that loads efifb and prevents dri drivers from loading. If you want to use efifb over

Re: [PATCH 0/3] fbdev no more!

2013-06-16 Thread David Herrmann
Hi On Sun, Jun 16, 2013 at 4:57 PM, Daniel Vetter wrote: > Hi all, > > So I've taken a look again at the locking mess in our fbdev support and cried. > Fixing up the console_lock mess around the fbdev notifier will be real work, > semanatically the fbdev layer does lots of stupid things (like the

Re: [PATCH 0/3] fbdev no more!

2013-06-17 Thread David Herrmann
Hi On Mon, Jun 17, 2013 at 10:47 PM, Andy Lutomirski wrote: > On 06/16/2013 07:57 AM, Daniel Vetter wrote: >> Hi all, >> >> So I've taken a look again at the locking mess in our fbdev support and >> cried. >> Fixing up the console_lock mess around the fbdev notifier will be real work, >> semanat

[RFC 0/6] SimpleDRM Driver (was: dvbe driver)

2013-06-24 Thread David Herrmann
uffer. Cheers David David Herrmann (6): fbdev: simplefb: add init through platform_data x86: provide platform-devices for boot-framebuffers drm: add SimpleDRM driver drm: simpledrm: add fbdev fallback support drm: add helpers to kick out firmware drivers drm: nouveau: kick out fir

[RFC 1/6] fbdev: simplefb: add init through platform_data

2013-06-24 Thread David Herrmann
it is not needed. The headers provide proper dummies for the case OF is disabled. Furthermore, we move the FORMAT-definitions to the common platform header so initialization code can use it to transform "struct screen_info" to the right format-name. Signed-off-by: David Herrmann --

[RFC 2/6] x86: provide platform-devices for boot-framebuffers

2013-06-24 Thread David Herrmann
ibility (if strange formats are used), we still allow vesafb/efifb to be loaded simultaneously and pick up all remaining devices. Signed-off-by: David Herrmann --- arch/x86/Kconfig | 18 ++ arch/x86/kernel/Makefile | 1 + arch/x86/kernel/sysfb.c | 157

[RFC 3/6] drm: add SimpleDRM driver

2013-06-24 Thread David Herrmann
. The buffer is directly mapped into user-space, so we have only resources for a single buffer. Otherwise, shadow buffers plus damage-request would be needed. Signed-off-by: David Herrmann --- MAINTAINERS| 8 + drivers/gpu/drm/Kconfig| 2

[RFC 4/6] drm: simpledrm: add fbdev fallback support

2013-06-24 Thread David Herrmann
make the VT layer happy. This needs to be fixed soon! Otherwise, we need a "depends !VT" line for SimpleDRM. Signed-off-by: David Herrmann --- drivers/gpu/drm/simpledrm/Kconfig | 11 ++ drivers/gpu/drm/simpledrm/Makefile | 4 + drivers/gpu/drm/simpledrm/s

[RFC 5/6] drm: add helpers to kick out firmware drivers

2013-06-24 Thread David Herrmann
kick out firmware DRM drivers. Additionally, unlike the fbdev equivalent, DRM firmware drivers can now query the system whether a real hardware driver is already loaded and prevent loading themselves. Signed-off-by: David Herrmann --- drivers/gpu/drm/drm_pci.c | 1 + drivers

[RFC 6/6] drm: nouveau: kick out firmware drivers during probe

2013-06-24 Thread David Herrmann
Use the new DRM infrastructure to kick out firmware drivers before probing the real driver. Signed-off-by: David Herrmann --- drivers/gpu/drm/nouveau/nouveau_drm.c | 29 ++--- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/nouveau

Re: [RFC 3/6] drm: add SimpleDRM driver

2013-06-28 Thread David Herrmann
Hi On Tue, Jun 25, 2013 at 3:05 AM, Andy Lutomirski wrote: > On 06/24/2013 03:27 PM, David Herrmann wrote: >> + sdrm->fb_map = ioremap(sdrm->fb_base, sdrm->fb_size); > > This should probably be ioremap_wc. Otherwise it will be *really* slow > if used in l

Re: [RFC 3/6] drm: add SimpleDRM driver

2013-06-28 Thread David Herrmann
Hi On Wed, Jun 26, 2013 at 10:58 PM, Stephen Warren wrote: > On 06/24/2013 04:27 PM, David Herrmann wrote: >> The SimpleDRM driver binds to simple-framebuffer devices and provides a >> DRM/KMS API. It provides only a single CRTC+encoder+connector combination >>

Re: [RFC 1/6] fbdev: simplefb: add init through platform_data

2013-06-28 Thread David Herrmann
Hi On Wed, Jun 26, 2013 at 10:39 PM, Stephen Warren wrote: > On 06/24/2013 04:27 PM, David Herrmann wrote: >> If we create proper platform-devices in x86 boot-code, we can use simplefb >> for VBE or EFI framebuffers, too. However, there is normally no OF support >&

Re: [RFC 2/6] x86: provide platform-devices for boot-framebuffers

2013-06-28 Thread David Herrmann
Hi On Wed, Jun 26, 2013 at 10:49 PM, Stephen Warren wrote: > On 06/24/2013 04:27 PM, David Herrmann wrote: >> The current situation regarding boot-framebuffers (VGA, VESA/VBE, EFI) on >> x86 causes troubles when loading multiple fbdev drivers. The global >> "struct scr

Re: [RFC 4/6] drm: simpledrm: add fbdev fallback support

2013-06-28 Thread David Herrmann
Hi On Wed, Jun 26, 2013 at 10:59 PM, Stephen Warren wrote: > On 06/24/2013 04:27 PM, David Herrmann wrote: >> Create a simple fbdev device during SimpleDRM setup so legacy user-space >> and fbcon can use it. >> >> fbdev deletion is quite buggy. A unregister_framebuf

Re: [RFC 0/6] SimpleDRM Driver (was: dvbe driver)

2013-06-28 Thread David Herrmann
Hi On Wed, Jun 26, 2013 at 11:30 PM, Stephen Warren wrote: > On 06/24/2013 04:27 PM, David Herrmann wrote: >> Hi >> >> This is my second revision of the dvbe driver. I renamed it to SimpleDRM to >> show the resemblence with the recently introduced simplefb.c fbdev d

[PATCH 0/6] DRM: Unified VMA Offset Manager

2013-07-01 Thread David Herrmann
ts see how that works out. Comments welcome! Cheers David [1]: http://cgit.freedesktop.org/~airlied/linux/log/?h=drm-vma-manager David Herrmann (6): drm: make drm_mm_init() return void drm: mm: add drm_mm_node_linked() helper drm: add unified vma offset manager drm: gem: convert to new uni

[PATCH 1/6] drm: make drm_mm_init() return void

2013-07-01 Thread David Herrmann
There is no reason to return "int" as this function never fails. Furthermore, several drivers (ast, sis) already depend on this. Signed-off-by: David Herrmann --- drivers/gpu/drm/drm_gem.c| 8 ++-- drivers/gpu/drm/drm_mm.c | 4 +--- drivers/gpu/drm/tt

[PATCH 2/6] drm: mm: add drm_mm_node_linked() helper

2013-07-01 Thread David Herrmann
after removing it. Furthermore, no-one is supposed to access node->mm from outside drm_mm.c, anyway. Signed-off-by: David Herrmann --- drivers/gpu/drm/drm_mm.c | 1 + include/drm/drm_mm.h | 5 + 2 files changed, 6 insertions(+) diff --git a/drivers/gpu/drm/drm_mm.c b/drivers/gpu/drm

[PATCH 3/6] drm: add unified vma offset manager

2013-07-01 Thread David Herrmann
2012-proposal by David Airlie Signed-off-by: David Herrmann --- drivers/gpu/drm/Makefile | 2 +- drivers/gpu/drm/drm_vma_manager.c | 224 ++ include/drm/drm_vma_manager.h | 107 ++ 3 files changed, 332 insertions(+), 1 del

[PATCH 5/6] drm: ttm: convert to unified vma offset manager

2013-07-01 Thread David Herrmann
e during lookup. However, this lock is not needed during vm-setup as we still hold a reference there. This also drops the addr_space_offset member as it is a copy of vm_start in vma_node objects. Use the accessor functions instead. Signed-off-by: David Herrmann --- drivers/gpu/drm/ast/as

[PATCH 4/6] drm: gem: convert to new unified vma manager

2013-07-01 Thread David Herrmann
which strictly wouldn't be needed for gem. Signed-off-by: David Herrmann --- drivers/gpu/drm/drm_gem.c | 89 +- drivers/gpu/drm/drm_gem_cma_helper.c | 9 +-- drivers/gpu/drm/exynos/exynos_drm_gem.c| 7 ++- drivers/gpu/drm/g

[PATCH 6/6] drm: provide generic drm_vma_node_unmap() helper

2013-07-01 Thread David Herrmann
Instead of unmapping the nodes in TTM and GEM users manually, we provide a generic wrapper which does the correct thing for all vma-nodes. Signed-off-by: David Herrmann --- drivers/gpu/drm/i915/i915_gem.c | 6 +- drivers/gpu/drm/ttm/ttm_bo.c| 8 +--- include/drm/drm_vma_manager.h

Re: [PATCH 3/6] drm: add unified vma offset manager

2013-07-01 Thread David Herrmann
Hi On Mon, Jul 1, 2013 at 9:42 PM, Daniel Vetter wrote: > On Mon, Jul 01, 2013 at 08:33:00PM +0200, David Herrmann wrote: >> If we want to map GPU memory into user-space, we need to linearize the >> addresses to not confuse mm-core. Currently, GEM and TTM both implement >

Re: [PATCH 2/2] drm/i915: use drm_mm_remove_node instead of put_block

2013-07-01 Thread David Herrmann
Hi On Mon, Jul 1, 2013 at 10:05 PM, Daniel Vetter wrote: > When converting to the preallocated drm_mm_node interfaces in > > commit dc9dd7a20fde95aa81a8307cde79c2dff9f83f3d > Author: Chris Wilson > Date: Fri Dec 7 20:37:07 2012 + > > drm/i915: Preallocate the drm_mm_node prior to manip

Re: [PATCH 1/6] drm: pre allocate node for create_block

2013-07-04 Thread David Herrmann
Hi On Wed, Jul 3, 2013 at 11:45 PM, Ben Widawsky wrote: > For an upcoming patch where we introduce the i915 VMA, it's ideal to > have the drm_mm_node as part of the VMA struct (ie. it's pre-allocated). > Part of the conversion to VMAs is to kill off obj->gtt_space. Doing this > will break a bunch

<    1   2   3   4   5   6   7   8   9   10   >