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
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
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
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
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
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
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
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
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
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
-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
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
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
-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
-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
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
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,
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
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
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
-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
.
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
,
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
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
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
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
.
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
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
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
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
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
-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
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
-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
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
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
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
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
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
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
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
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
-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
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
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
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
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
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
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
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
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
.
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
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
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
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
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
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,
.
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
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
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
. 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
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
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
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
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
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
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
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
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
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
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
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
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
-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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
. 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
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
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
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
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
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
)
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
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
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
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 - 100 of 1094 matches
Mail list logo