Re: [PATCH 11/11] video/aperture: Only remove sysfb on the default vga pci device

2023-01-12 Thread Aaron Plattner
here too ? References: https://bugzilla.kernel.org/show_bug.cgi?id=216303#c28 Signed-off-by: Daniel Vetter Cc: Aaron Plattner Cc: Javier Martinez Canillas Cc: Thomas Zimmermann Cc: Helge Deller Cc: Sam Ravnborg Cc: Alex Deucher Cc: # v5.19+ (if someone else does the backport) --- drivers/video/a

Re: [PATCH 7/8] video/aperture: Only remove sysfb on the default vga pci device

2023-04-05 Thread Aaron Plattner
ier) Fixes: ee7a69aa38d8 ("fbdev: Disable sysfb device registration when removing conflicting FBs") Tested-by: Aaron Plattner Reviewed-by: Javier Martinez Canillas References: https://bugzilla.kernel.org/show_bug.cgi?id=216303#c28 Signed-off-by: Daniel Vetter Cc: Aaron Plattner Cc:

role of crtcs in modesetting interfaces and possible abstraction away from userspace

2014-09-09 Thread Aaron Plattner
On 09/08/2014 11:37 PM, Keith Packard wrote: > With atomic mode setting in the kernel, I think you're probably right in > proposing to eliminate explicit CRTC allocation from that. I do think > you'll want to indicate the number of available CRTCs in the display > engine, and the number of CRTCs ea

Stupid NVIDIA 3D vgaarb.c patch

2014-09-26 Thread Aaron Plattner
On 09/23/2014 01:29 PM, Benjamin Herrenschmidt wrote: > On Mon, 2014-09-22 at 13:43 -0700, Linus Torvalds wrote: >> Adding proper people and mailing lists.. >> >> The PCI_CLASS_DISPLAY_VGA test goes back to the very beginning by >> BenH, and I have no idea if adding PCI_CLASS_DISPLAY_3D is >> appro

Abstracting buffer sharing mechanism from the drm drivers

2012-11-27 Thread Aaron Plattner
On 11/16/2012 01:14 PM, Jerome Glisse wrote: > On Fri, Nov 16, 2012 at 12:05:40PM -0800, Aaron Plattner wrote: >> At the suggestion of a few drm developers, I'm looking at abstracting the >> buffer >> sharing mechanism away from the individual drm drivers and tre

A few questions about the best way to implement RandR 1.4 / PRIME buffer sharing

2012-09-04 Thread Aaron Plattner
On 08/31/2012 08:00 PM, Dave Airlie wrote: >> object interface, so that Optimus-based laptops can use our driver to drive >> the discrete GPU and display on the integrated GPU. The good news is that >> I've got a proof of concept working. > > Don't suppose you'll be interested in adding the other

Abstracting buffer sharing mechanism from the drm drivers

2012-11-16 Thread Aaron Plattner
At the suggestion of a few drm developers, I'm looking at abstracting the buffer sharing mechanism away from the individual drm drivers and treating it as a low-level interface that kernel subsystems use to communicate, rather than as something drivers should be accessing directly. This would also

Re: Abstracting buffer sharing mechanism from the drm drivers

2012-11-27 Thread Aaron Plattner
On 11/16/2012 01:14 PM, Jerome Glisse wrote: On Fri, Nov 16, 2012 at 12:05:40PM -0800, Aaron Plattner wrote: At the suggestion of a few drm developers, I'm looking at abstracting the buffer sharing mechanism away from the individual drm drivers and treating it as a low-level interface

[PATCH 0/4] Prime helpers

2012-12-06 Thread Aaron Plattner
d. I haven't yet compile-tested the Exynos change since I don't have a toolchain set up for that, but I'll try to do that today. Aaron Plattner (4): drm: add prime helpers drm/nouveau: use prime helpers drm/radeon: use prime helpers drm/exynos: use prime helpers drivers

[PATCH 1/4] drm: add prime helpers

2012-12-06 Thread Aaron Plattner
.gem_prime_import and .gem_prime_export fields of struct drm_driver. Signed-off-by: Aaron Plattner --- drivers/gpu/drm/drm_prime.c | 190 +++- include/drm/drmP.h | 15 2 files changed, 204 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm

[PATCH 3/4] drm/radeon: use prime helpers

2012-12-06 Thread Aaron Plattner
Simplify the Radeon prime implementation by using the default behavior provided by drm_gem_prime_import and drm_gem_prime_export. Signed-off-by: Aaron Plattner --- drivers/gpu/drm/radeon/radeon_drv.c | 17 ++-- drivers/gpu/drm/radeon/radeon_prime.c | 169 +- 2

[PATCH 2/4] drm/nouveau: use prime helpers

2012-12-06 Thread Aaron Plattner
Simplify the Nouveau prime implementation by using the default behavior provided by drm_gem_prime_import and drm_gem_prime_export. Signed-off-by: Aaron Plattner --- drivers/gpu/drm/nouveau/nouveau_bo.h| 1 - drivers/gpu/drm/nouveau/nouveau_drm.c | 9 +- drivers/gpu/drm/nouveau

[PATCH 4/4] drm/exynos: use prime helpers

2012-12-06 Thread Aaron Plattner
Simplify the Exynos prime implementation by using the default behavior provided by drm_gem_prime_import and drm_gem_prime_export. Signed-off-by: Aaron Plattner --- I still need to find a system to test this. drivers/gpu/drm/exynos/exynos_drm_dmabuf.c | 151

[PATCH v2] drm/exynos: use prime helpers

2012-12-06 Thread Aaron Plattner
Simplify the Exynos prime implementation by using the default behavior provided by drm_gem_prime_import and drm_gem_prime_export. Signed-off-by: Aaron Plattner --- v2: fix dumb mistakes now that I have a toolchain that can compile-test this drivers/gpu/drm/exynos/exynos_drm_dmabuf.c | 156

Re: [PATCH v2] drm/exynos: use prime helpers

2012-12-07 Thread Aaron Plattner
On 12/06/2012 10:36 PM, Inki Dae wrote: Hi, CCing media guys. I agree with you but we should consider one issue released to v4l2. As you may know, V4L2-based driver uses vb2 as buffer manager and the vb2 includes dmabuf feature>(import and export) And v4l2 uses streaming concept>(qbuf and dqb

Re: [PATCH 1/4] drm: add prime helpers

2012-12-07 Thread Aaron Plattner
On 12/06/2012 01:46 PM, Daniel Vetter wrote: On Thu, Dec 06, 2012 at 10:07:48AM -0800, Aaron Plattner wrote: Instead of reimplementing all of the dma_buf functionality in every driver, create helpers drm_prime_import and drm_prime_export that implement them in terms of new, lower-level hook

Re: [PATCH 1/4] drm: add prime helpers

2012-12-07 Thread Aaron Plattner
On 12/07/2012 10:48 AM, Daniel Vetter wrote: On Fri, Dec 07, 2012 at 09:58:38AM -0800, Aaron Plattner wrote: On 12/06/2012 01:46 PM, Daniel Vetter wrote: - To make it a first-class helper and remove any and all midlayer stints from this (I truly loath midlayers ...) maybe shovel this into a

Re: [PATCH 1/4] drm: add prime helpers

2012-12-07 Thread Aaron Plattner
On 12/07/2012 01:38 PM, Daniel Vetter wrote: On Fri, Dec 7, 2012 at 9:33 PM, Aaron Plattner wrote: Ah, I see what you mean. This would also need either a pointer to the drv directly so the helpers can lock drv->struct_mutex, or a helper function to convert from a drm_prime_helper_obj* t

Re: [PATCH] [RFC] dma-buf: implement vmap refcounting in the interface logic

2012-12-19 Thread Aaron Plattner
. But this shouldn't be a problem for exporters with statically allocated backing storage, and more dynamic drivers have decent issues already anyway. Inspired by some refactoring patches from Aaron Plattner, who implemented the same idea, but only for drm/prime drivers. v2: Check in dma_buf_re

Re: [PATCH] [RFC] dma-buf: implement vmap refcounting in the interface logic

2012-12-20 Thread Aaron Plattner
. But this shouldn't be a problem for exporters with statically allocated backing storage, and more dynamic drivers have decent issues already anyway. Inspired by some refactoring patches from Aaron Plattner, who implemented the same idea, but only for drm/prime drivers. v2: Check in dma_buf_re

[PATCH v3 0/3] Prime helpers

2013-01-15 Thread Aaron Plattner
o the dma-buf core code. It also drops Exynos from the series since its driver diverged between when I first sent out this series and now. This series depends on commit 90b6e90cb03352a352015ca213ac9f4fab3308f3 of the for-next branch of git://git.linaro.org/people/sumitsemwal/linux-dma-buf Aaron Pla

[PATCH v3 1/3] drm: add prime helpers

2013-01-15 Thread Aaron Plattner
idual functions from drmP.h, but the docproc / kernel-doc scripts barf on that file, so hopefully this is good enough for now. - apply refcount fix from commit be8a42ae60addd8b6092535c11b42d099d6470ec ("drm/prime: drop reference on imported dma-buf come from gem") Signed-off-by: A

[PATCH 2/3] drm/nouveau: use prime helpers

2013-01-15 Thread Aaron Plattner
Simplify the Nouveau prime implementation by using the default behavior provided by drm_gem_prime_import and drm_gem_prime_export. v2: Rename functions to nouveau_gem_prime_get_sg_table and nouveau_gem_prime_import_sg_table. Signed-off-by: Aaron Plattner Cc: Daniel Vetter Cc: David Airlie

[PATCH 3/3] drm/radeon: use prime helpers

2013-01-15 Thread Aaron Plattner
Simplify the Radeon prime implementation by using the default behavior provided by drm_gem_prime_import and drm_gem_prime_export. v2: - Rename functions to radeon_gem_prime_get_sg_table and radeon_gem_prime_import_sg_table. - Delete the now-unused vmapping_count variable. Signed-off-by: Aaron

Re: [PATCH v3 1/3] drm: add prime helpers

2013-01-16 Thread Aaron Plattner
On 01/16/2013 01:50 AM, Daniel Vetter wrote: On Tue, Jan 15, 2013 at 12:47:42PM -0800, Aaron Plattner wrote: Instead of reimplementing all of the dma_buf functionality in every driver, create helpers drm_prime_import and drm_prime_export that implement them in terms of new, lower-level hook

Re: [PATCH] drm: modify pages_to_sg prime helper to create optimized SG table

2013-01-29 Thread Aaron Plattner
function. This set is base on "exynos-drm-fixes" branch at http://git.kernel.org/?p=linux/kernel/git/daeinki/drm-exynos.git Signed-off-by: Rahul Sharma Reviewed-by: Aaron Plattner I also verified that this reduces my 2025-entry sg_table to 6 entries, so Tested-by: Aaron Plattner

[PATCH libdrm] tests/dristat: add -C to pretty-print device capabilities

2013-01-29 Thread Aaron Plattner
Signed-off-by: Aaron Plattner --- Example output of dristat -C: /dev/dri/card0 Device capabilities: Dumb framebuffer: yes VBlank high crtc: yes Preferred depth: 24 Prefer shadow: yes Prime: import export tests/dristat.c | 69

A few questions about the best way to implement RandR 1.4 / PRIME buffer sharing

2012-08-30 Thread Aaron Plattner
So I've been experimenting with support for Dave Airlie's new RandR 1.4 provider object interface, so that Optimus-based laptops can use our driver to drive the discrete GPU and display on the integrated GPU. The good news is that I've got a proof of concept working. During a review of the curre

Re: [Linaro-mm-sig] A few questions about the best way to implement RandR 1.4 / PRIME buffer sharing

2012-08-30 Thread Aaron Plattner
On 08/30/2012 10:31 AM, Aaron Plattner wrote: So I've been experimenting with support for Dave Airlie's new RandR 1.4 provider object interface, so that Optimus-based laptops can use our driver to drive the discrete GPU and display on the integrated GPU. The good news is that I'

Re: A few questions about the best way to implement RandR 1.4 / PRIME buffer sharing

2012-09-05 Thread Aaron Plattner
On 08/31/2012 08:00 PM, Dave Airlie wrote: object interface, so that Optimus-based laptops can use our driver to drive the discrete GPU and display on the integrated GPU. The good news is that I've got a proof of concept working. Don't suppose you'll be interested in adding the other method at

Re: [PATCH v3 1/3] drm: add prime helpers

2013-04-12 Thread Aaron Plattner
On 04/12/13 07:58, Daniel Vetter wrote: On Tue, Jan 15, 2013 at 12:47:42PM -0800, Aaron Plattner wrote: Instead of reimplementing all of the dma_buf functionality in every driver, create helpers drm_prime_import and drm_prime_export that implement them in terms of new, lower-level hook

Re: [i915] Backlight brighter since 3.9.0

2013-06-03 Thread Aaron Plattner
On 05/20/2013 02:55 PM, Daniel Vetter wrote: On Sat, May 18, 2013 at 12:39:14AM +0200, Jan Hinnerk Stosch wrote: Hallo, I hope this is the right place to ask, because I actually don't know whether it is a bug or a feature that I'm experiencing since linux 3.9: When I boot my system the backligh

Re: [i915] Backlight brighter since 3.9.0

2013-06-03 Thread Aaron Plattner
On 06/03/2013 12:36 PM, Daniel Vetter wrote: On Mon, Jun 03, 2013 at 09:13:18AM -0700, Aaron Plattner wrote: On 05/20/2013 02:55 PM, Daniel Vetter wrote: On Sat, May 18, 2013 at 12:39:14AM +0200, Jan Hinnerk Stosch wrote: Hallo, I hope this is the right place to ask, because I actually don&#

Re: [PATCH 1/3] drm: add mmap function to prime helpers

2013-06-14 Thread Aaron Plattner
On 06/12/2013 06:16 AM, Joonyoung Shim wrote: This adds to call low-level mmap() from prime helpers. Signed-off-by: Joonyoung Shim --- drivers/gpu/drm/drm_prime.c | 5 - include/drm/drmP.h | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm

Re: [PATCH v3 1/3] drm: add prime helpers

2013-06-18 Thread Aaron Plattner
On 06/18/2013 04:08 PM, Laurent Pinchart wrote: Hi Aaron, A bit late, but here's a small question. On Tuesday 15 January 2013 12:47:42 Aaron Plattner wrote: Instead of reimplementing all of the dma_buf functionality in every driver, create helpers drm_prime_import and drm_prime_export

Re: [PATCH v3 1/3] drm: add prime helpers

2013-06-18 Thread Aaron Plattner
On 06/18/2013 04:37 PM, Laurent Pinchart wrote: Hi Aaron, On Tuesday 18 June 2013 16:28:15 Aaron Plattner wrote: On 06/18/2013 04:08 PM, Laurent Pinchart wrote: Hi Aaron, A bit late, but here's a small question. On Tuesday 15 January 2013 12:47:42 Aaron Plattner wrote: Inste

A few questions about the best way to implement RandR 1.4 / PRIME buffer sharing

2012-08-30 Thread Aaron Plattner
So I've been experimenting with support for Dave Airlie's new RandR 1.4 provider object interface, so that Optimus-based laptops can use our driver to drive the discrete GPU and display on the integrated GPU. The good news is that I've got a proof of concept working. During a review of the curren

[Linaro-mm-sig] A few questions about the best way to implement RandR 1.4 / PRIME buffer sharing

2012-08-30 Thread Aaron Plattner
On 08/30/2012 10:31 AM, Aaron Plattner wrote: > So I've been experimenting with support for Dave Airlie's new RandR 1.4 > provider > object interface, so that Optimus-based laptops can use our driver to drive > the > discrete GPU and display on the integrated GPU. T

[PATCH 0/4] Prime helpers

2012-12-06 Thread Aaron Plattner
d. I haven't yet compile-tested the Exynos change since I don't have a toolchain set up for that, but I'll try to do that today. Aaron Plattner (4): drm: add prime helpers drm/nouveau: use prime helpers drm/radeon: use prime helpers drm/exynos: use prime helpers drivers

[PATCH 1/4] drm: add prime helpers

2012-12-06 Thread Aaron Plattner
.gem_prime_import and .gem_prime_export fields of struct drm_driver. Signed-off-by: Aaron Plattner --- drivers/gpu/drm/drm_prime.c | 190 +++- include/drm/drmP.h | 15 2 files changed, 204 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm

[PATCH 3/4] drm/radeon: use prime helpers

2012-12-06 Thread Aaron Plattner
Simplify the Radeon prime implementation by using the default behavior provided by drm_gem_prime_import and drm_gem_prime_export. Signed-off-by: Aaron Plattner --- drivers/gpu/drm/radeon/radeon_drv.c | 17 ++-- drivers/gpu/drm/radeon/radeon_prime.c | 169 +- 2

[PATCH 2/4] drm/nouveau: use prime helpers

2012-12-06 Thread Aaron Plattner
Simplify the Nouveau prime implementation by using the default behavior provided by drm_gem_prime_import and drm_gem_prime_export. Signed-off-by: Aaron Plattner --- drivers/gpu/drm/nouveau/nouveau_bo.h| 1 - drivers/gpu/drm/nouveau/nouveau_drm.c | 9 +- drivers/gpu/drm/nouveau

[PATCH 4/4] drm/exynos: use prime helpers

2012-12-06 Thread Aaron Plattner
Simplify the Exynos prime implementation by using the default behavior provided by drm_gem_prime_import and drm_gem_prime_export. Signed-off-by: Aaron Plattner --- I still need to find a system to test this. drivers/gpu/drm/exynos/exynos_drm_dmabuf.c | 151

[PATCH v2] drm/exynos: use prime helpers

2012-12-06 Thread Aaron Plattner
Simplify the Exynos prime implementation by using the default behavior provided by drm_gem_prime_import and drm_gem_prime_export. Signed-off-by: Aaron Plattner --- v2: fix dumb mistakes now that I have a toolchain that can compile-test this drivers/gpu/drm/exynos/exynos_drm_dmabuf.c | 156

[PATCH v2] drm/exynos: use prime helpers

2012-12-07 Thread Aaron Plattner
On 12/06/2012 10:36 PM, Inki Dae wrote: > > Hi, > > CCing media guys. > > I agree with you but we should consider one issue released to v4l2. > > As you may know, V4L2-based driver uses vb2 as buffer manager and the > vb2 includes dmabuf feature>(import and export) And v4l2 uses streaming > concept

[PATCH 1/4] drm: add prime helpers

2012-12-07 Thread Aaron Plattner
On 12/06/2012 01:46 PM, Daniel Vetter wrote: > On Thu, Dec 06, 2012 at 10:07:48AM -0800, Aaron Plattner wrote: >> Instead of reimplementing all of the dma_buf functionality in every driver, >> create helpers drm_prime_import and drm_prime_export that implement them in >> term

[PATCH 1/4] drm: add prime helpers

2012-12-07 Thread Aaron Plattner
On 12/07/2012 10:48 AM, Daniel Vetter wrote: > On Fri, Dec 07, 2012 at 09:58:38AM -0800, Aaron Plattner wrote: >> On 12/06/2012 01:46 PM, Daniel Vetter wrote: >>> - To make it a first-class helper and remove any and all midlayer stints >>>from this (I truly loath

[PATCH 1/4] drm: add prime helpers

2012-12-07 Thread Aaron Plattner
On 12/07/2012 01:38 PM, Daniel Vetter wrote: > On Fri, Dec 7, 2012 at 9:33 PM, Aaron Plattner > wrote: >> Ah, I see what you mean. This would also need either a pointer to the drv >> directly so the helpers can lock drv->struct_mutex, or a helper function

[PATCH] [RFC] dma-buf: implement vmap refcounting in the interface logic

2012-12-19 Thread Aaron Plattner
w funny locking inversions. But this shouldn't be a problem > for exporters with statically allocated backing storage, and more > dynamic drivers have decent issues already anyway. > > Inspired by some refactoring patches from Aaron Plattner, who > implemented the same idea, but only f

[PATCH] [RFC] dma-buf: implement vmap refcounting in the interface logic

2012-12-20 Thread Aaron Plattner
w funny locking inversions. But this shouldn't be a problem > for exporters with statically allocated backing storage, and more > dynamic drivers have decent issues already anyway. > > Inspired by some refactoring patches from Aaron Plattner, who > implemented the same idea, but only f

[patch] drm: use after free in drm_pci_exit()

2014-03-14 Thread Aaron Plattner
em, and this change fixes it. Tested-by: Aaron Plattner Reviewed-by: Aaron Plattner and since he just sent me an independently-developed identical change, Reviewed-by: John Hubbard > diff --git a/drivers/gpu/drm/drm_pci.c b/drivers/gpu/drm/drm_pci.c > index 5736aaa7e86c..f7af69bcf3f4 10

[RFC] drm + i915 DP MST code preview

2014-05-07 Thread Aaron Plattner
On 05/03/2014 02:00 AM, Chris Wilson wrote: > On Sat, May 03, 2014 at 07:08:02AM +1000, Dave Airlie wrote: >> On 2 May 2014 18:52, Chris Wilson wrote: >>> On Fri, May 02, 2014 at 02:39:37PM +1000, Dave Airlie wrote: >> the GUID is only on DP 1.2 devices, so you don't get one for ever >> port, also

[RFC] drm + i915 DP MST code preview

2014-05-07 Thread Aaron Plattner
On 05/07/2014 02:00 AM, Dave Airlie wrote: > On 7 May 2014 17:16, Aaron Plattner wrote: >> On 05/03/2014 02:00 AM, Chris Wilson wrote: >>> >>> On Sat, May 03, 2014 at 07:08:02AM +1000, Dave Airlie wrote: >>>> >>>> On 2 May 2014 18:52, Chris Wilso

[RFC] drm + i915 DP MST code preview

2014-05-07 Thread Aaron Plattner
On 05/07/2014 01:07 AM, Daniel Vetter wrote: > On Wed, May 07, 2014 at 12:16:37AM -0700, Aaron Plattner wrote: >> On 05/03/2014 02:00 AM, Chris Wilson wrote: >>> On Sat, May 03, 2014 at 07:08:02AM +1000, Dave Airlie wrote: >>>> On 2 May 2014 18:52, Chris Wilson wro

[PATCH v3 1/3] drm: add prime helpers

2013-04-12 Thread Aaron Plattner
On 04/12/13 07:58, Daniel Vetter wrote: > On Tue, Jan 15, 2013 at 12:47:42PM -0800, Aaron Plattner wrote: >> Instead of reimplementing all of the dma_buf functionality in every driver, >> create helpers drm_prime_import and drm_prime_export that implement them in >> terms of

tile property contents

2014-12-02 Thread Aaron Plattner
On 10/13/2014 08:23 PM, Dave Airlie wrote: > Hi, > > So I've been hacking on mutter and the gnome pieces for tiling, and > I've at least fixed mutter locally so maximise windows works and the > heads are in the right order. > > Now I've strung all the pieces together using a single KMS property > t

tile property contents

2014-12-03 Thread Aaron Plattner
On 12/02/2014 07:04 PM, Dave Airlie wrote: > On 3 December 2014 at 10:01, Aaron Plattner wrote: >> On 10/13/2014 08:23 PM, Dave Airlie wrote: >>> >>> Hi, >>> >>> So I've been hacking on mutter and the gnome pieces for tiling, and >>> I

[PATCH libdrm resend] tests/dristat: add -C to pretty-print device capabilities

2014-04-18 Thread Aaron Plattner
Signed-off-by: Aaron Plattner --- Example output of dristat -C: /dev/dri/card0 Device capabilities: Dumb framebuffer: yes VBlank high crtc: yes Preferred depth: 24 Prefer shadow: yes Prime: import export tests/dristat.c | 69

[PATCH v3 0/3] Prime helpers

2013-01-15 Thread Aaron Plattner
o the dma-buf core code. It also drops Exynos from the series since its driver diverged between when I first sent out this series and now. This series depends on commit 90b6e90cb03352a352015ca213ac9f4fab3308f3 of the for-next branch of git://git.linaro.org/people/sumitsemwal/linux-dma-buf Aaron Pla

[PATCH v3 1/3] drm: add prime helpers

2013-01-15 Thread Aaron Plattner
idual functions from drmP.h, but the docproc / kernel-doc scripts barf on that file, so hopefully this is good enough for now. - apply refcount fix from commit be8a42ae60addd8b6092535c11b42d099d6470ec ("drm/prime: drop reference on imported dma-buf come from gem") Signed-off-by: A

[PATCH 2/3] drm/nouveau: use prime helpers

2013-01-15 Thread Aaron Plattner
Simplify the Nouveau prime implementation by using the default behavior provided by drm_gem_prime_import and drm_gem_prime_export. v2: Rename functions to nouveau_gem_prime_get_sg_table and nouveau_gem_prime_import_sg_table. Signed-off-by: Aaron Plattner Cc: Daniel Vetter Cc: David Airlie

[PATCH 3/3] drm/radeon: use prime helpers

2013-01-15 Thread Aaron Plattner
Simplify the Radeon prime implementation by using the default behavior provided by drm_gem_prime_import and drm_gem_prime_export. v2: - Rename functions to radeon_gem_prime_get_sg_table and radeon_gem_prime_import_sg_table. - Delete the now-unused vmapping_count variable. Signed-off-by: Aaron

[PATCH v3 1/3] drm: add prime helpers

2013-01-16 Thread Aaron Plattner
On 01/16/2013 01:50 AM, Daniel Vetter wrote: > On Tue, Jan 15, 2013 at 12:47:42PM -0800, Aaron Plattner wrote: >> Instead of reimplementing all of the dma_buf functionality in every driver, >> create helpers drm_prime_import and drm_prime_export that implement them in >> term

[PATCH] drm: modify pages_to_sg prime helper to create optimized SG table

2013-01-29 Thread Aaron Plattner
; supprot. NOUVEAU and RADEON platforms also depends on drm_prime_pages_to_sg > helper function. > > This set is base on "exynos-drm-fixes" branch at > http://git.kernel.org/?p=linux/kernel/git/daeinki/drm-exynos.git > > Signed-off-by: Rahul Sharma Reviewed-by: Aaron Plattn

[PATCH libdrm] tests/dristat: add -C to pretty-print device capabilities

2013-01-29 Thread Aaron Plattner
Signed-off-by: Aaron Plattner --- Example output of dristat -C: /dev/dri/card0 Device capabilities: Dumb framebuffer: yes VBlank high crtc: yes Preferred depth: 24 Prefer shadow: yes Prime: import export tests/dristat.c | 69

Abstracting buffer sharing mechanism from the drm drivers

2012-11-16 Thread Aaron Plattner
At the suggestion of a few drm developers, I'm looking at abstracting the buffer sharing mechanism away from the individual drm drivers and treating it as a low-level interface that kernel subsystems use to communicate, rather than as something drivers should be accessing directly. This would also

[PATCH] drm/udl: add enable/disable_vblank stubs

2015-02-15 Thread Aaron Plattner
p://lists.freedesktop.org/archives/dri-devel/2014-December/073652.html Signed-off-by: Aaron Plattner --- Daniel, it looks like your change "[5/5] drm/irq: Don't call ->get_vblank_counter directly from irq_uninstall/cleanup" masks the immediate problem, but it's not clear to

[i915] Backlight brighter since 3.9.0

2013-06-03 Thread Aaron Plattner
On 05/20/2013 02:55 PM, Daniel Vetter wrote: > On Sat, May 18, 2013 at 12:39:14AM +0200, Jan Hinnerk Stosch wrote: >> Hallo, >> >> I hope this is the right place to ask, because I actually don't know >> whether it is a bug or a feature that I'm experiencing since linux 3.9: >> When I boot my system

[i915] Backlight brighter since 3.9.0

2013-06-03 Thread Aaron Plattner
On 06/03/2013 12:36 PM, Daniel Vetter wrote: > On Mon, Jun 03, 2013 at 09:13:18AM -0700, Aaron Plattner wrote: >> On 05/20/2013 02:55 PM, Daniel Vetter wrote: >>> On Sat, May 18, 2013 at 12:39:14AM +0200, Jan Hinnerk Stosch wrote: >>>> Hallo, >>>>

[PATCH 1/3] drm: add mmap function to prime helpers

2013-06-14 Thread Aaron Plattner
On 06/12/2013 06:16 AM, Joonyoung Shim wrote: > This adds to call low-level mmap() from prime helpers. > > Signed-off-by: Joonyoung Shim > --- > drivers/gpu/drm/drm_prime.c | 5 - > include/drm/drmP.h | 2 ++ > 2 files changed, 6 insertions(+), 1 deletion(-) > > diff --git a/drive

[PATCH v3 1/3] drm: add prime helpers

2013-06-18 Thread Aaron Plattner
On 06/18/2013 04:08 PM, Laurent Pinchart wrote: > Hi Aaron, > > A bit late, but here's a small question. > > On Tuesday 15 January 2013 12:47:42 Aaron Plattner wrote: >> Instead of reimplementing all of the dma_buf functionality in every driver, >> cre

[PATCH v3 1/3] drm: add prime helpers

2013-06-18 Thread Aaron Plattner
On 06/18/2013 04:37 PM, Laurent Pinchart wrote: > Hi Aaron, > > On Tuesday 18 June 2013 16:28:15 Aaron Plattner wrote: >> On 06/18/2013 04:08 PM, Laurent Pinchart wrote: >>> Hi Aaron, >>> >>> A bit late, but here's a small question. >>> >