Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-17 Thread Stephen Warren
On 04/15/2012 02:39 AM, Thierry Reding wrote: * Stephen Warren wrote: On 04/13/2012 03:14 AM, Thierry Reding wrote: display-controllers = disp1 disp2; outputs = lvds hdmi tvo dsi; I don't think you need both the child nodes and those two properties. In other words,

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-17 Thread Stephen Warren
On 04/16/2012 12:48 PM, Thierry Reding wrote: * Stephen Warren wrote: ... Has there been any discussion as to how EDID data would best be represented in DT? Should it just be a binary blob or rather some textual representation? I think a binary blob makes sense - that's the exact same

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-17 Thread Stephen Warren
On 04/16/2012 01:03 PM, Thierry Reding wrote: ... I've been looking about for tools to generate EDID data but didn't find anything useful. Does anyone know of any tool that's more convenient than manually filling a struct edid and writing that to a file? Sorry, no.

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-16 Thread Thierry Reding
* Stephen Warren wrote: > On 04/16/2012 12:48 PM, Thierry Reding wrote: > > * Stephen Warren wrote: > ... > >>> Has there been any discussion as to how EDID data would best be > >>> represented > >>> in DT? Should it just be a binary blob or rather some textual > >>> representation? > >> > >> I

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-16 Thread Thierry Reding
* Stephen Warren wrote: > On 04/15/2012 02:39 AM, Thierry Reding wrote: > > I think I like the former better. The way I understand it the children of > > the > > graphics node will have to be registered explicitly by the DRM driver > > because > > of_platform_populate() doesn't work recursively.

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-16 Thread Stephen Warren
On 04/16/2012 01:03 PM, Thierry Reding wrote: ... > I've been looking about for tools to generate EDID data but didn't find > anything useful. Does anyone know of any tool that's more convenient than > manually filling a struct edid and writing that to a file? Sorry, no.

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-16 Thread Stephen Warren
On 04/16/2012 12:48 PM, Thierry Reding wrote: > * Stephen Warren wrote: ... >>> Has there been any discussion as to how EDID data would best be represented >>> in DT? Should it just be a binary blob or rather some textual >>> representation? >> >> I think a binary blob makes sense - that's the

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-16 Thread Stephen Warren
On 04/15/2012 02:39 AM, Thierry Reding wrote: > * Stephen Warren wrote: >> On 04/13/2012 03:14 AM, Thierry Reding wrote: >>> display-controllers = < >; >>> outputs = < >; >> >> I don't think you need both the child nodes and those two properties. >> >> In other words, I

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-16 Thread Thierry Reding
* Stephen Warren wrote: On 04/16/2012 12:48 PM, Thierry Reding wrote: * Stephen Warren wrote: ... Has there been any discussion as to how EDID data would best be represented in DT? Should it just be a binary blob or rather some textual representation? I think a binary blob makes

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-15 Thread Thierry Reding
* Stephen Warren wrote: > On 04/13/2012 03:14 AM, Thierry Reding wrote: > > display-controllers = < >; > > outputs = < >; > > I don't think you need both the child nodes and those two properties. > > In other words, I think you either want: > > graphics at

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-15 Thread Thierry Reding
* Stephen Warren wrote: On 04/13/2012 03:14 AM, Thierry Reding wrote: display-controllers = disp1 disp2; outputs = lvds hdmi tvo dsi; I don't think you need both the child nodes and those two properties. In other words, I think you either want:

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-14 Thread Lucas Stach
Oops, meant to put dri-devel on cc here. Am Freitag, den 13.04.2012, 22:12 +0200 schrieb Lucas Stach: > Am Freitag, den 13.04.2012, 08:33 +0100 schrieb Dave Airlie: > > On Fri, Apr 13, 2012 at 12:10 AM, Lucas Stach wrote: > > > Am Mittwoch, den 11.04.2012, 15:18 + schrieb Arnd Bergmann: > >

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-14 Thread Stephen Warren
On 04/13/2012 03:14 AM, Thierry Reding wrote: * Stephen Warren wrote: On 04/12/2012 11:44 AM, Thierry Reding wrote: [...] And given that, I don't think we should name the node after some OS-specific software concept. Device tree is intended to model hardware. [...] Maybe one solution would

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-13 Thread Stephen Warren
On 04/13/2012 03:14 AM, Thierry Reding wrote: > * Stephen Warren wrote: >> On 04/12/2012 11:44 AM, Thierry Reding wrote: > [...] >> And given that, I don't think we should name the node after some >> OS-specific software concept. Device tree is intended to model hardware. > [...] >>> Maybe one

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-13 Thread Thierry Reding
* Stephen Warren wrote: > On 04/12/2012 11:44 AM, Thierry Reding wrote: [...] > And given that, I don't think we should name the node after some > OS-specific software concept. Device tree is intended to model hardware. [...] > > Maybe one solution would be to have a top-level DRM device with a

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-13 Thread Lucas Stach
Am Mittwoch, den 11.04.2012, 15:18 + schrieb Arnd Bergmann: > On Wednesday 11 April 2012, Thierry Reding wrote: > > * Daniel Vetter wrote: > > > On Wed, Apr 11, 2012 at 03:23:26PM +0200, Thierry Reding wrote: > > > > * Daniel Vetter wrote: > > > > > On Wed, Apr 11, 2012 at 02:10:30PM +0200,

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-13 Thread Thierry Reding
* Stephen Warren wrote: On 04/12/2012 11:44 AM, Thierry Reding wrote: [...] And given that, I don't think we should name the node after some OS-specific software concept. Device tree is intended to model hardware. [...] Maybe one solution would be to have a top-level DRM device with a

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Thierry Reding
* Stephen Warren wrote: > On 04/12/2012 12:50 AM, Thierry Reding wrote: > > drm { > > compatible = "nvidia,tegra20-drm"; > > I'm don't think having an explicit "drm" node is the right approach; drm > is after all a SW term and the DT should be describing HW. Having some > kind of

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Thierry Reding
* Alex Deucher wrote: > On Thu, Apr 12, 2012 at 10:09 AM, Alex Deucher > wrote: > > On Thu, Apr 12, 2012 at 9:25 AM, Thierry Reding > >> Then again, having user-space control this may be more flexible. > >> Performance- > >> wise both should be about the same, right? What I don't quite

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Daniel Vetter
On Thu, Apr 12, 2012 at 11:18:19AM +, Arnd Bergmann wrote: > On Thursday 12 April 2012, Marek Szyprowski wrote: > > Scatter lists were initially designed for the disk based block io > > operations, > > hence the presence of the in-page offsets and lengths for each chunk. For > > multimedia

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Marek Szyprowski
Hi Thierry, On Thursday, April 12, 2012 3:42 PM Thierry Reding wrote: > > > Also this doesn't yet solve the vmap() problem that is needed for the > > > kernel > > > virtual mapping. I did try using dma_alloc_writecombine(), but that only > > > works for chunks of 2 MB or smaller, unless I use

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Stephen Warren
On 04/12/2012 11:44 AM, Thierry Reding wrote: > * Stephen Warren wrote: >> On 04/12/2012 12:50 AM, Thierry Reding wrote: >>> drm { >>> compatible = "nvidia,tegra20-drm"; >> >> I'm don't think having an explicit "drm" node is the right approach; drm >> is after all a SW term and the

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Thierry Reding
* Marek Szyprowski wrote: > Hi Thierry, > > On Thursday, April 12, 2012 9:18 AM Thierry Reding wrote: > > Also this doesn't yet solve the vmap() problem that is needed for the kernel > > virtual mapping. I did try using dma_alloc_writecombine(), but that only > > works for chunks of 2 MB or

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Thierry Reding
* Marek Szyprowski wrote: [...] > We already have dma_map_page() and dma_map_single() which are very similar. > Maybe adding dma_map_pages() won't be such a bad idea? > > If not maybe we should provide some kind of helper functions which converts > page array to scatterlist and then maps them.

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Marek Szyprowski
Hi Arnd, On Thursday, April 12, 2012 1:18 PM Arnd Bergmann wrote: > On Thursday 12 April 2012, Marek Szyprowski wrote: > > Scatter lists were initially designed for the disk based block io > > operations, > > hence the presence of the in-page offsets and lengths for each chunk. For > >

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Thierry Reding
* Alex Deucher wrote: > On Thu, Apr 12, 2012 at 5:33 AM, Thierry Reding > wrote: > > In other words I would like to use the Tegra hardware to render content into > > a framebuffer (using potentially the 3D engine or HW accelerated video > > decoding blocks) but display that framebuffer with a

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Jon Mayo
On 04/11/2012 05:48 AM, Daniel Vetter wrote: > On Wed, Apr 11, 2012 at 02:10:30PM +0200, Thierry Reding wrote: >> This commit adds a very basic DRM driver for NVIDIA Tegra SoCs. It >> currently has rudimentary GEM support and can run a console on the >> framebuffer as well as X using the

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Thierry Reding
* Sascha Hauer wrote: > You might want to have a look at the sdrm patches I recently posted to > dri-devel and arm Linux Kernel. Among other things they allow to > register crtcs/connectors/encoders seperately so that each of them can > have its own representation in the devicetree. I haven't

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Sascha Hauer
On Wed, Apr 11, 2012 at 12:12:14PM -0600, Stephen Warren wrote: > On 04/11/2012 06:10 AM, Thierry Reding wrote: > > This commit adds a very basic DRM driver for NVIDIA Tegra SoCs. It > > currently has rudimentary GEM support and can run a console on the > > framebuffer as well as X using the

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Arnd Bergmann
On Thursday 12 April 2012, Marek Szyprowski wrote: > Scatter lists were initially designed for the disk based block io operations, > hence the presence of the in-page offsets and lengths for each chunk. For > multimedia use cases providing an array of struct pages and asking > dma-mapping > to

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Marek Szyprowski
Hi Thierry, On Thursday, April 12, 2012 9:18 AM Thierry Reding wrote: > * Arnd Bergmann wrote: > > On Wednesday 11 April 2012, Thierry Reding wrote: > > > Daniel Vetter wrote: > > > > Well, you use the iommu api to map/unmap memory into the iommu for > > > > tegra, > > > > whereas usually

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Alex Deucher
On Thu, Apr 12, 2012 at 10:09 AM, Alex Deucher wrote: > On Thu, Apr 12, 2012 at 9:25 AM, Thierry Reding > wrote: >> * Alex Deucher wrote: >>> On Thu, Apr 12, 2012 at 5:33 AM, Thierry Reding >>> wrote: >>> > In other words I would like to use the Tegra hardware to render content >>> > into >>>

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Alex Deucher
On Thu, Apr 12, 2012 at 9:25 AM, Thierry Reding wrote: > * Alex Deucher wrote: >> On Thu, Apr 12, 2012 at 5:33 AM, Thierry Reding >> wrote: >> > In other words I would like to use the Tegra hardware to render content >> > into >> > a framebuffer (using potentially the 3D engine or HW

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Stephen Warren
On 04/12/2012 12:50 AM, Thierry Reding wrote: > * Stephen Warren wrote: >> On 04/11/2012 06:10 AM, Thierry Reding wrote: >>> This commit adds a very basic DRM driver for NVIDIA Tegra SoCs. It >>> currently has rudimentary GEM support and can run a console on the >>> framebuffer as well as X using

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Thierry Reding
* Arnd Bergmann wrote: > On Wednesday 11 April 2012, Thierry Reding wrote: > > Daniel Vetter wrote: > > > Well, you use the iommu api to map/unmap memory into the iommu for tegra, > > > whereas usually device drivers just use the dma api to do that. The usual > > > interface is

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Alex Deucher
On Thu, Apr 12, 2012 at 5:33 AM, Thierry Reding wrote: > * Sascha Hauer wrote: >> You might want to have a look at the sdrm patches I recently posted to >> dri-devel and arm Linux Kernel. Among other things they allow to >> register crtcs/connectors/encoders seperately so that each of them can >>

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Thierry Reding
* Stephen Warren wrote: > On 04/11/2012 06:10 AM, Thierry Reding wrote: > > This commit adds a very basic DRM driver for NVIDIA Tegra SoCs. It > > currently has rudimentary GEM support and can run a console on the > > framebuffer as well as X using the xf86-video-modesetting driver. > > Only the

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Thierry Reding
* Arnd Bergmann wrote: On Wednesday 11 April 2012, Thierry Reding wrote: Daniel Vetter wrote: Well, you use the iommu api to map/unmap memory into the iommu for tegra, whereas usually device drivers just use the dma api to do that. The usual interface is dma_map_sg/dma_unmap_sg, but

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Thierry Reding
* Stephen Warren wrote: On 04/11/2012 06:10 AM, Thierry Reding wrote: This commit adds a very basic DRM driver for NVIDIA Tegra SoCs. It currently has rudimentary GEM support and can run a console on the framebuffer as well as X using the xf86-video-modesetting driver. Only the RGB output

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Sascha Hauer
On Wed, Apr 11, 2012 at 12:12:14PM -0600, Stephen Warren wrote: On 04/11/2012 06:10 AM, Thierry Reding wrote: This commit adds a very basic DRM driver for NVIDIA Tegra SoCs. It currently has rudimentary GEM support and can run a console on the framebuffer as well as X using the

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Thierry Reding
* Sascha Hauer wrote: You might want to have a look at the sdrm patches I recently posted to dri-devel and arm Linux Kernel. Among other things they allow to register crtcs/connectors/encoders seperately so that each of them can have its own representation in the devicetree. I haven't looked

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Arnd Bergmann
On Thursday 12 April 2012, Marek Szyprowski wrote: Scatter lists were initially designed for the disk based block io operations, hence the presence of the in-page offsets and lengths for each chunk. For multimedia use cases providing an array of struct pages and asking dma-mapping to map

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Alex Deucher
On Thu, Apr 12, 2012 at 5:33 AM, Thierry Reding thierry.red...@avionic-design.de wrote: * Sascha Hauer wrote: You might want to have a look at the sdrm patches I recently posted to dri-devel and arm Linux Kernel. Among other things they allow to register crtcs/connectors/encoders seperately so

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Thierry Reding
* Alex Deucher wrote: On Thu, Apr 12, 2012 at 5:33 AM, Thierry Reding thierry.red...@avionic-design.de wrote: In other words I would like to use the Tegra hardware to render content into a framebuffer (using potentially the 3D engine or HW accelerated video decoding blocks) but display

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Thierry Reding
* Marek Szyprowski wrote: [...] We already have dma_map_page() and dma_map_single() which are very similar. Maybe adding dma_map_pages() won't be such a bad idea? If not maybe we should provide some kind of helper functions which converts page array to scatterlist and then maps them.

RE: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Marek Szyprowski
Hi Thierry, On Thursday, April 12, 2012 9:18 AM Thierry Reding wrote: * Arnd Bergmann wrote: On Wednesday 11 April 2012, Thierry Reding wrote: Daniel Vetter wrote: Well, you use the iommu api to map/unmap memory into the iommu for tegra, whereas usually device drivers just use

RE: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Marek Szyprowski
Hi Arnd, On Thursday, April 12, 2012 1:18 PM Arnd Bergmann wrote: On Thursday 12 April 2012, Marek Szyprowski wrote: Scatter lists were initially designed for the disk based block io operations, hence the presence of the in-page offsets and lengths for each chunk. For multimedia use

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Alex Deucher
On Thu, Apr 12, 2012 at 9:25 AM, Thierry Reding thierry.red...@avionic-design.de wrote: * Alex Deucher wrote: On Thu, Apr 12, 2012 at 5:33 AM, Thierry Reding thierry.red...@avionic-design.de wrote: In other words I would like to use the Tegra hardware to render content into a framebuffer

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Alex Deucher
On Thu, Apr 12, 2012 at 10:09 AM, Alex Deucher alexdeuc...@gmail.com wrote: On Thu, Apr 12, 2012 at 9:25 AM, Thierry Reding thierry.red...@avionic-design.de wrote: * Alex Deucher wrote: On Thu, Apr 12, 2012 at 5:33 AM, Thierry Reding thierry.red...@avionic-design.de wrote: In other words I

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Daniel Vetter
On Thu, Apr 12, 2012 at 11:18:19AM +, Arnd Bergmann wrote: On Thursday 12 April 2012, Marek Szyprowski wrote: Scatter lists were initially designed for the disk based block io operations, hence the presence of the in-page offsets and lengths for each chunk. For multimedia use cases

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Thierry Reding
* Alex Deucher wrote: On Thu, Apr 12, 2012 at 10:09 AM, Alex Deucher alexdeuc...@gmail.com wrote: On Thu, Apr 12, 2012 at 9:25 AM, Thierry Reding Then again, having user-space control this may be more flexible. Performance- wise both should be about the same, right? What I don't quite

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Thierry Reding
* Stephen Warren wrote: On 04/12/2012 12:50 AM, Thierry Reding wrote: drm { compatible = nvidia,tegra20-drm; I'm don't think having an explicit drm node is the right approach; drm is after all a SW term and the DT should be describing HW. Having some kind of top-level

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Lucas Stach
Am Mittwoch, den 11.04.2012, 15:18 + schrieb Arnd Bergmann: On Wednesday 11 April 2012, Thierry Reding wrote: * Daniel Vetter wrote: On Wed, Apr 11, 2012 at 03:23:26PM +0200, Thierry Reding wrote: * Daniel Vetter wrote: On Wed, Apr 11, 2012 at 02:10:30PM +0200, Thierry Reding

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-11 Thread Thierry Reding
* Alan Cox wrote: > > Maybe your question is answered by my reply to Alan's comment. The mapping > > is actually done to get a linear view for the display controller which > > doesn't support SG transfers. The kernel and user-space already have virtual > > linear buffers. > > The framebuffer

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-11 Thread Thierry Reding
* Daniel Vetter wrote: > On Wed, Apr 11, 2012 at 04:11:08PM +0200, Thierry Reding wrote: > > * Daniel Vetter wrote: > > > On Wed, Apr 11, 2012 at 03:23:26PM +0200, Thierry Reding wrote: > > > > * Daniel Vetter wrote: > > > > > On Wed, Apr 11, 2012 at 02:10:30PM +0200, Thierry Reding wrote: > > > >

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-11 Thread Daniel Vetter
On Wed, Apr 11, 2012 at 03:43:09PM +0100, Alan Cox wrote: > > Hm, in that case it looks like your iommu works more like the gtt on intel > > chips > > Don't overgeneralize there - on the GMA500/600 the GTT doesn't allow CPU > side access of the GTT map (ie you can't use it to linearise pages for

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-11 Thread Daniel Vetter
On Wed, Apr 11, 2012 at 04:11:08PM +0200, Thierry Reding wrote: > * Daniel Vetter wrote: > > On Wed, Apr 11, 2012 at 03:23:26PM +0200, Thierry Reding wrote: > > > * Daniel Vetter wrote: > > > > On Wed, Apr 11, 2012 at 02:10:30PM +0200, Thierry Reding wrote: > > > > > This commit adds a very basic

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-11 Thread Alan Cox
> Heh, vmap() is exactly what I do. =) Would you mind explaining why exactly it > is hideous? On x86 we don't have a vast amount of address space available for virtual remappings and the framebuffer then eats over 8MB of it. The ideal case is that the fb layer can be taught to do page/offset

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-11 Thread Thierry Reding
* Daniel Vetter wrote: > On Wed, Apr 11, 2012 at 03:23:26PM +0200, Thierry Reding wrote: > > * Daniel Vetter wrote: > > > On Wed, Apr 11, 2012 at 02:10:30PM +0200, Thierry Reding wrote: > > > > This commit adds a very basic DRM driver for NVIDIA Tegra SoCs. It > > > > currently has rudimentary GEM

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-11 Thread Alan Cox
> Maybe your question is answered by my reply to Alan's comment. The mapping > is actually done to get a linear view for the display controller which > doesn't support SG transfers. The kernel and user-space already have virtual > linear buffers. The framebuffer currently needs a physically

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-11 Thread Alan Cox
> Hm, in that case it looks like your iommu works more like the gtt on intel > chips Don't overgeneralize there - on the GMA500/600 the GTT doesn't allow CPU side access of the GTT map (ie you can't use it to linearise pages for CPU view) and the 3600 is even stranger Alan

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-11 Thread Daniel Vetter
On Wed, Apr 11, 2012 at 03:23:26PM +0200, Thierry Reding wrote: > * Daniel Vetter wrote: > > On Wed, Apr 11, 2012 at 02:10:30PM +0200, Thierry Reding wrote: > > > This commit adds a very basic DRM driver for NVIDIA Tegra SoCs. It > > > currently has rudimentary GEM support and can run a console on

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-11 Thread Thierry Reding
* Daniel Vetter wrote: > On Wed, Apr 11, 2012 at 02:10:30PM +0200, Thierry Reding wrote: > > This commit adds a very basic DRM driver for NVIDIA Tegra SoCs. It > > currently has rudimentary GEM support and can run a console on the > > framebuffer as well as X using the xf86-video-modesetting

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-11 Thread Arnd Bergmann
On Wednesday 11 April 2012, Thierry Reding wrote: > * Daniel Vetter wrote: > > On Wed, Apr 11, 2012 at 03:23:26PM +0200, Thierry Reding wrote: > > > * Daniel Vetter wrote: > > > > On Wed, Apr 11, 2012 at 02:10:30PM +0200, Thierry Reding wrote: > > > > > This commit adds a very basic DRM driver

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-11 Thread Daniel Vetter
On Wed, Apr 11, 2012 at 02:10:30PM +0200, Thierry Reding wrote: > This commit adds a very basic DRM driver for NVIDIA Tegra SoCs. It > currently has rudimentary GEM support and can run a console on the > framebuffer as well as X using the xf86-video-modesetting driver. > Only the RGB output is

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-11 Thread Thierry Reding
This commit adds a very basic DRM driver for NVIDIA Tegra SoCs. It currently has rudimentary GEM support and can run a console on the framebuffer as well as X using the xf86-video-modesetting driver. Only the RGB output is supported. Quite a lot of things still need to be worked out and there is a

[RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-11 Thread Stephen Warren
On 04/11/2012 06:10 AM, Thierry Reding wrote: > This commit adds a very basic DRM driver for NVIDIA Tegra SoCs. It > currently has rudimentary GEM support and can run a console on the > framebuffer as well as X using the xf86-video-modesetting driver. > Only the RGB output is supported. Quite a

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-11 Thread Daniel Vetter
On Wed, Apr 11, 2012 at 02:10:30PM +0200, Thierry Reding wrote: This commit adds a very basic DRM driver for NVIDIA Tegra SoCs. It currently has rudimentary GEM support and can run a console on the framebuffer as well as X using the xf86-video-modesetting driver. Only the RGB output is

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-11 Thread Thierry Reding
* Daniel Vetter wrote: On Wed, Apr 11, 2012 at 02:10:30PM +0200, Thierry Reding wrote: This commit adds a very basic DRM driver for NVIDIA Tegra SoCs. It currently has rudimentary GEM support and can run a console on the framebuffer as well as X using the xf86-video-modesetting driver.

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-11 Thread Daniel Vetter
On Wed, Apr 11, 2012 at 03:23:26PM +0200, Thierry Reding wrote: * Daniel Vetter wrote: On Wed, Apr 11, 2012 at 02:10:30PM +0200, Thierry Reding wrote: This commit adds a very basic DRM driver for NVIDIA Tegra SoCs. It currently has rudimentary GEM support and can run a console on the

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-11 Thread Thierry Reding
* Daniel Vetter wrote: On Wed, Apr 11, 2012 at 03:23:26PM +0200, Thierry Reding wrote: * Daniel Vetter wrote: On Wed, Apr 11, 2012 at 02:10:30PM +0200, Thierry Reding wrote: This commit adds a very basic DRM driver for NVIDIA Tegra SoCs. It currently has rudimentary GEM support and

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-11 Thread Daniel Vetter
On Wed, Apr 11, 2012 at 04:11:08PM +0200, Thierry Reding wrote: * Daniel Vetter wrote: On Wed, Apr 11, 2012 at 03:23:26PM +0200, Thierry Reding wrote: * Daniel Vetter wrote: On Wed, Apr 11, 2012 at 02:10:30PM +0200, Thierry Reding wrote: This commit adds a very basic DRM driver for

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-11 Thread Alan Cox
Hm, in that case it looks like your iommu works more like the gtt on intel chips Don't overgeneralize there - on the GMA500/600 the GTT doesn't allow CPU side access of the GTT map (ie you can't use it to linearise pages for CPU view) and the 3600 is even stranger Alan

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-11 Thread Daniel Vetter
On Wed, Apr 11, 2012 at 03:43:09PM +0100, Alan Cox wrote: Hm, in that case it looks like your iommu works more like the gtt on intel chips Don't overgeneralize there - on the GMA500/600 the GTT doesn't allow CPU side access of the GTT map (ie you can't use it to linearise pages for CPU

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-11 Thread Alan Cox
Maybe your question is answered by my reply to Alan's comment. The mapping is actually done to get a linear view for the display controller which doesn't support SG transfers. The kernel and user-space already have virtual linear buffers. The framebuffer currently needs a physically

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-11 Thread Thierry Reding
* Daniel Vetter wrote: On Wed, Apr 11, 2012 at 04:11:08PM +0200, Thierry Reding wrote: * Daniel Vetter wrote: On Wed, Apr 11, 2012 at 03:23:26PM +0200, Thierry Reding wrote: * Daniel Vetter wrote: On Wed, Apr 11, 2012 at 02:10:30PM +0200, Thierry Reding wrote: This commit adds

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-11 Thread Stephen Warren
On 04/11/2012 06:10 AM, Thierry Reding wrote: This commit adds a very basic DRM driver for NVIDIA Tegra SoCs. It currently has rudimentary GEM support and can run a console on the framebuffer as well as X using the xf86-video-modesetting driver. Only the RGB output is supported. Quite a lot of