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=2title=writing_stanalone_programs_with_egl_and_ and wayland

Re: DRM KMS Modesetting

2011-11-15 Thread David Herrmann
On Mon, Nov 14, 2011 at 9:38 PM, Jesse Barnes jbar...@virtuousgeek.org wrote: On Mon, 14 Nov 2011 21:25:56 +0100 David Herrmann dh.herrm...@googlemail.com 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 simple kms

Re: DRM KMS Modesetting

2011-11-15 Thread David Herrmann
2011/11/15 Kristian Høgsberg k...@bitplanet.net: On Mon, Nov 14, 2011 at 5:54 PM, Jesse Barnes jbar...@virtuousgeek.org wrote: On Mon, 14 Nov 2011 21:47:09 +0100 David Herrmann dh.herrm...@googlemail.com wrote: I had to modify the resolution the test was searching for to 1920x1200 instead

Re: DRM KMS Modesetting

2011-11-18 Thread David Herrmann
2011/11/15 Kristian Høgsberg k...@bitplanet.net: 2011/11/15 David Herrmann dh.herrm...@googlemail.com: 2011/11/15 Kristian Høgsberg k...@bitplanet.net: On Mon, Nov 14, 2011 at 5:54 PM, Jesse Barnes jbar...@virtuousgeek.org wrote: On Mon, 14 Nov 2011 21:47:09 +0100 David Herrmann dh.herrm

Re: DRM KMS Modesetting

2011-11-18 Thread David Herrmann
On Fri, Nov 18, 2011 at 10:41 PM, Jesse Barnes jbar...@virtuousgeek.org wrote: On Fri, 18 Nov 2011 22:35:13 +0100 David Herrmann dh.herrm...@googlemail.com wrote: 2011/11/15 Kristian Høgsberg k...@bitplanet.net: 2011/11/15 David Herrmann dh.herrm...@googlemail.com: 2011/11/15 Kristian

[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 dh.herrm...@googlemail.com --- 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

[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

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ä ville.syrj...@linux.intel.com 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 dh.herrm...@googlemail.com wrote: Hi Motivated by Jesse's letter to the lazyweb [1] I

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 jbar...@virtuousgeek.org wrote: On Tue, 27 Mar 2012 16:57:29 +0200 David Herrmann dh.herrm...@googlemail.com wrote: Hi Motivated by Jesse's letter to the lazyweb [1] I worked on a kmscon program. It provides a terminal-emulator similar

[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 dh.herrm...@googlemail.com --- 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

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

2012-04-22 Thread David Herrmann
-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: David Herrmann

[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 dh.herrm...@googlemail.com Cc: Chia-I Wu o

[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

[PATCH] drm: fix drm_read() returning 0

2012-06-14 Thread David Herrmann
-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 dh.herrm...@googlemail.com --- 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
-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 dh.herrm...@googlemail.com --- 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

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 a...@lxorguk.ukuu.org.uk 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,

[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 dh.herrm...@googlemail.com --- drivers/gpu/drm/drm_drv.c | 12 ++-- 1 file changed, 6

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 jbar...@virtuousgeek.org 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

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

2012-09-23 Thread David Herrmann
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 page man: add drm-memory man-page man/Makefile.am

[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 dh.herrm...@googlemail.com --- man/Makefile.am | 16 +++- man/drmAvailable.3 | 26 + man/drmAvailable.man| 25 - man/drmHandleEvent.3| 48 man/drmHandleEvent.man

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

2012-09-23 Thread David Herrmann
. Signed-off-by: David Herrmann dh.herrm...@googlemail.com --- 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

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

2012-09-23 Thread David Herrmann
, framebuffers, planes and cursors. Signed-off-by: David Herrmann dh.herrm...@googlemail.com --- 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

[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 dh.herrm...@googlemail.com --- 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

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 mic...@daenzer.net 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 kernel. Only the radeon +driver

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 thierry.red...@avionic-design.de 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 autotools

[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 dh.herrm

[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 dh.herrm...@googlemail.com Reviewed-by: Jesse Barnes jbar...@virtuousgeek.org --- man/Makefile.am

[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 dh.herrm...@googlemail.com Reviewed-by: Jesse Barnes jbar...@virtuousgeek.org --- man/Makefile.am | 1 + man/drm-kms.xml | 342

[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 dh.herrm...@googlemail.com Reviewed-by: Jesse Barnes jbar...@virtuousgeek.org --- man/Makefile.am| 9

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

2012-10-07 Thread David Herrmann
-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 can be skipped. Signed-off-by: David Herrmann dh.herrm...@googlemail.com --- Note: Note that this only removes the if-clause

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 laurent.pinch...@ideasonboard.com 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

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

2012-11-15 Thread David Herrmann
-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 can be skipped. Signed-off-by: David Herrmann dh.herrm...@googlemail.com --- Note: Note that this only removes the if-clause

Re: FOSDEM2013: DevRoom or not?

2012-12-26 Thread David Herrmann
Hi Michael On Sat, Dec 1, 2012 at 3:54 AM, Michael Hasselmann micha...@openismus.com 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

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 jbar...@virtuousgeek.org wrote: On Fri, 28 Sep 2012 23:44:18 +0200 David Herrmann dh.herrm...@googlemail.com wrote: Hi This is revision 2 of the manpages for libdrm. I converted everything to docbook XML. This makes it easier

[PATCH] man: fix manpage build instructions

2013-01-16 Thread David Herrmann
expensive xsltproc procedure can be skipped. Signed-off-by: David Herrmann dh.herrm...@googlemail.com --- 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

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 thierry.red...@avionic-design.de 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

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 dh.herrm...@googlemail.com wrote: Hi Thierry On Fri, Jan 18, 2013 at 1:22 PM, Thierry Reding thierry.red...@avionic-design.de wrote: Due to the typo, none of the .xml files would end up in the release tarball and cause make distcheck as well

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 nvmarkzh...@gmail.com 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

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 jbar...@virtuousgeek.org wrote: On Fri, 18 Jan 2013 17:01:59 +0100 David Herrmann dh.herrm...@googlemail.com wrote: On Fri, Jan 18, 2013 at 5:00 PM, David Herrmann dh.herrm...@googlemail.com wrote: Hi Thierry On Fri, Jan 18, 2013

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

2013-01-27 Thread David Herrmann
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 dh.herrm...@googlemail.com --- Hi This driver is a very basic DRM driver with roughly the same functionality as vesafb but with a userspace API

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

2013-02-17 Thread David Herrmann
-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 system framebuffer bus video: sysfb: new vbefb device

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

2013-02-17 Thread David Herrmann
From: David Herrmann dh.herrm...@googlemail.com 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

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

2013-02-17 Thread David Herrmann
From: David Herrmann dh.herrm...@googlemail.com 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

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

2013-02-17 Thread David Herrmann
From: David Herrmann dh.herrm...@googlemail.com 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

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

2013-02-17 Thread David Herrmann
From: David Herrmann dh.herrm...@googlemail.com 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

[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 dh.herrm...@gmail.com --- drivers/video/Kconfig | 1 + drivers/video/vesafb.c | 49 +++-- 2 files changed, 16 insertions(+), 34 deletions(-) diff --git a/drivers/video/Kconfig b

[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 dh.herrm...@gmail.com --- drivers/gpu/drm/Kconfig | 5

[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 dh.herrm...@gmail.com --- drivers/gpu/drm/Kconfig | 2 + drivers/gpu/drm/Makefile | 1 + drivers/gpu/drm/dvbe/Kconfig | 28 +++ drivers/gpu/drm

[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 dh.herrm...@gmail.com --- drivers/gpu/drm/dvbe/Kconfig | 1 + drivers/gpu/drm/dvbe/Makefile

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

2013-02-17 Thread David Herrmann
. Signed-off-by: David Herrmann dh.herrm...@gmail.com --- 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

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 airl...@gmail.com wrote: [..snap..] As I said maybe I'm concentrating on the problem you aren't trying to fix, but then I'm not

Re: Standalone DRM application

2013-04-18 Thread David Herrmann
Hi On Wed, Apr 17, 2013 at 11:05 PM, Byron Stanoszek gand...@winds.org 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

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 char...@matrox.com 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

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 daniel.vet...@ffwll.ch 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

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

2013-06-18 Thread David Herrmann
Hi On Mon, Jun 17, 2013 at 10:47 PM, Andy Lutomirski l...@amacapital.net 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,

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

2013-06-24 Thread David Herrmann
. 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 firmware

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

2013-06-24 Thread David Herrmann
as 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 dh.herrm

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

2013-06-24 Thread David Herrmann
to be loaded simultaneously and pick up all remaining devices. Signed-off-by: David Herrmann dh.herrm...@gmail.com --- arch/x86/Kconfig | 18 ++ arch/x86/kernel/Makefile | 1 + arch/x86/kernel/sysfb.c | 157 +++ 3 files changed, 176 insertions

[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 dh.herrm...@gmail.com --- MAINTAINERS| 8 + drivers/gpu/drm/Kconfig

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

2013-06-24 Thread David Herrmann
to 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 dh.herrm...@gmail.com --- drivers/gpu/drm/simpledrm/Kconfig | 11 ++ drivers/gpu/drm/simpledrm/Makefile | 4 + drivers/gpu/drm/simpledrm

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

2013-06-24 Thread David Herrmann
to 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 dh.herrm...@gmail.com --- drivers/gpu/drm/drm_pci.c

[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 dh.herrm...@gmail.com --- drivers/gpu/drm/nouveau/nouveau_drm.c | 29 ++--- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/drivers/gpu

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 l...@amacapital.net 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 legacy mode and it may

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 swar...@wwwdotorg.org 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 plus one initial

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 swar...@wwwdotorg.org 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 so we introduce

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 swar...@wwwdotorg.org 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 screen_info does

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 swar...@wwwdotorg.org 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_framebuffer() call

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 swar...@wwwdotorg.org 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 driver

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

2013-07-01 Thread David Herrmann
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 unified vma manager drm: ttm: convert

[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 dh.herrm...@gmail.com --- drivers/gpu/drm/drm_gem.c| 8 ++-- drivers/gpu/drm/drm_mm.c | 4 +--- drivers/gpu/drm

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

2013-07-01 Thread David Herrmann
removing it. Furthermore, no-one is supposed to access node-mm from outside drm_mm.c, anyway. Signed-off-by: David Herrmann dh.herrm...@gmail.com --- 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

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

2013-07-01 Thread David Herrmann
-proposal by David Airlie airl...@linux.ie Signed-off-by: David Herrmann dh.herrm...@gmail.com --- drivers/gpu/drm/Makefile | 2 +- drivers/gpu/drm/drm_vma_manager.c | 224 ++ include/drm/drm_vma_manager.h | 107 ++ 3 files changed

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

2013-07-01 Thread David Herrmann
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 dh.herrm...@gmail.com --- drivers/gpu/drm/ast

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

2013-07-01 Thread David Herrmann
strictly wouldn't be needed for gem. Signed-off-by: David Herrmann dh.herrm...@gmail.com --- 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/gma500

[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 dh.herrm...@gmail.com --- drivers/gpu/drm/i915/i915_gem.c | 6 +- drivers/gpu/drm/ttm/ttm_bo.c| 8 +--- include

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 dan...@ffwll.ch 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 their own

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 daniel.vet...@ffwll.ch wrote: When converting to the preallocated drm_mm_node interfaces in commit dc9dd7a20fde95aa81a8307cde79c2dff9f83f3d Author: Chris Wilson ch...@chris-wilson.co.uk Date: Fri Dec 7 20:37:07 2012 + drm/i915:

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 b...@bwidawsk.net 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

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 b...@bwidawsk.net 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

[PATCH v2 00/14] Platform Framebuffers and SimpleDRM

2013-07-04 Thread David Herrmann
this (including DRM handover) with vesafb, efifb and simpledrm. It all worked well without problems. More testing is highly welcome! Also feel free to pickup individual fixes which don't directly depend on the series (eg. #1, #2, #7, #8). Comments welcome! Cheers David David Herrmann (14): fbdev

[PATCH v2 01/14] fbdev: simplefb: add init through platform_data

2013-07-04 Thread David Herrmann
as 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 dh.herrm

[PATCH v2 02/14] fbdev: simplefb: mark as fw and allocate apertures

2013-07-04 Thread David Herrmann
for VGA/vesa/EFI framebuffers, but is also of great use for all other systems. Especially with x86 support for simplefb, this information is needed to unload simplefb before a real hw-driver (like i915, radeon, nouveau) is loaded. Signed-off-by: David Herrmann dh.herrm...@gmail.com --- drivers

[PATCH v2 03/14] x86: provide platform-devices for boot-framebuffers

2013-07-04 Thread David Herrmann
formats are used), we still allow vesafb/efifb to be loaded simultaneously and pick up all remaining devices. Signed-off-by: David Herrmann dh.herrm...@gmail.com --- arch/x86/Kconfig | 26 +++ arch/x86/include/asm/sysfb.h | 41 + arch/x86/kernel/Makefile

[PATCH v2 04/14] x86: sysfb: move EFI quirks from efifb to sysfb

2013-07-04 Thread David Herrmann
The EFI FB quirks from efifb.c are useful for simple-framebuffer devices as well. Apply them by default so we can convert efifb.c to use efi-framebuffer platform devices. Signed-off-by: David Herrmann dh.herrm...@gmail.com --- arch/x86/include/asm/sysfb.h | 57 +++ arch/x86/kernel

[PATCH v2 05/14] fbdev: simplefb: add 32bit RGB formats

2013-07-04 Thread David Herrmann
32bit XRGB and ARGB are used by modern x86 systems for EFI and VESA framebuffers. Add both variants so simplefb can be used on such systems. Signed-off-by: David Herrmann dh.herrm...@gmail.com --- include/linux/platform_data/simplefb.h | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v2 06/14] fbdev: vesafb: bind to platform-framebuffer device

2013-07-04 Thread David Herrmann
x86 creates platform-framebuffer platform devices for every system framebuffer. Use these instead of creating a dummy device. This requires us to remove the __init annotations as hotplugging may occur during runtime. Signed-off-by: David Herrmann dh.herrm...@gmail.com --- drivers/video/vesafb.c

[PATCH v2 07/14] fbdev: efifb: bind to efi-framebuffer

2013-07-04 Thread David Herrmann
Instead of creating a dummy device, we now bind to the efi-fb device which is provided by x86 initialization code. Signed-off-by: David Herrmann dh.herrm...@gmail.com --- drivers/video/efifb.c | 68 +-- 1 file changed, 22 insertions(+), 46

[PATCH v2 08/14] fbdev: fbcon: select VT_HW_CONSOLE_BINDING

2013-07-04 Thread David Herrmann
and I couldn't figure out why. Hence, lets just require console-unbinding so fbdev hotplugging works with fbcon. Signed-off-by: David Herrmann dh.herrm...@gmail.com --- drivers/video/console/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/video/console/Kconfig b

[PATCH v2 09/14] drm: add SimpleDRM driver

2013-07-04 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 dh.herrm...@gmail.com --- MAINTAINERS| 8 + drivers/gpu/drm/Kconfig

[PATCH v2 10/14] drm: simpledrm: add fbdev fallback support

2013-07-04 Thread David Herrmann
Create a simple fbdev device during SimpleDRM setup so legacy user-space and fbcon can use it. Signed-off-by: David Herrmann dh.herrm...@gmail.com --- drivers/gpu/drm/simpledrm/Kconfig | 11 ++ drivers/gpu/drm/simpledrm/Makefile | 1 + drivers/gpu/drm/simpledrm/simpledrm.h

[PATCH v2 11/14] drm: add helpers to kick out firmware drivers

2013-07-04 Thread David Herrmann
invalidate the firmware framebuffer. Otherwise, simpledrm could be loaded again, after a real hw-driver was unloaded (which is very unlikely to work, except if hw-drivers reset fw FBs during unload). Note that fbdev doesn't provide such protection against late driver probing. Signed-off-by: David Herrmann

[PATCH v2 12/14] drm: nouveau: kick out firmware drivers during probe

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

[PATCH v2 13/14] drm/i915: use new drm_kick_out_firmware()

2013-07-04 Thread David Herrmann
Use the new DRM infrastructure to kick out firmware DRM drivers before loading i915. Signed-off-by: David Herrmann dh.herrm...@gmail.com --- drivers/gpu/drm/i915/i915_dma.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm

[PATCH v2 14/14] drm/radeon: use new drm_kick_out_firmware()

2013-07-04 Thread David Herrmann
Kick out firmware DRM and fbdev drivers via the new drm_kick_out_firmware() before loading radeon. Signed-off-by: David Herrmann dh.herrm...@gmail.com --- drivers/gpu/drm/radeon/radeon_drv.c | 28 drivers/gpu/drm/radeon/radeon_kms.c | 30

Re: [PATCH] [v3] drm: pre allocate node for create_block

2013-07-04 Thread David Herrmann
) Add back accidentally removed newline (David) CC: dri-devel@lists.freedesktop.org CC: David Herrmann dh.herrm...@gmail.com Signed-off-by: Ben Widawsky b...@bwidawsk.net I already suspected that you'd embed drm_mm_node in a follow-up patch but I am not subscribed to intel-gfx so I didn't get

Re: [PATCH v2 00/14] Platform Framebuffers and SimpleDRM

2013-07-05 Thread David Herrmann
Hi On Thu, Jul 4, 2013 at 7:48 PM, H. Peter Anvin h...@zytor.com wrote: On 07/04/2013 05:25 AM, David Herrmann wrote: - What FB formats are common on x86 that we should add to SIMPLEFB_FORMATS? (other than ARGB/XRGB32) The common pixel formats on x86 are: - Palettized 4-bit planar

[PATCH v2 01/20] drm: add unified vma offset manager

2013-07-07 Thread David Herrmann
addresses - use drm_vma_node_reset() for initialization, too Signed-off-by: David Herrmann dh.herrm...@gmail.com --- Documentation/DocBook/drm.tmpl| 6 + drivers/gpu/drm/Makefile | 2 +- drivers/gpu/drm/drm_vma_manager.c | 260 ++ include/drm

[PATCH v2 02/20] drm/gem: convert to new unified vma manager

2013-07-07 Thread David Herrmann
strictly wouldn't be needed for gem. v2: - rebase on drm-next - init nodes via drm_vma_node_reset() in drm_gem.c Signed-off-by: David Herrmann dh.herrm...@gmail.com --- drivers/gpu/drm/drm_gem.c | 90 ++ drivers/gpu/drm/drm_gem_cma_helper.c | 9

  1   2   3   4   5   6   7   8   9   10   >