[PATCH 2/2] drm/omap: add GEM support for tiled/dmm buffers

2011-12-06 Thread Rob Clark
On Tue, Dec 6, 2011 at 5:30 AM, Alan Cox wrote: > On Mon, ?5 Dec 2011 19:19:22 -0600 > Rob Clark wrote: > >> + ? ? usergart = kzalloc(3 * sizeof(*usergart), GFP_KERNEL); >> + >> + ? ? /* reserve 4k aligned/wide regions for userspace mappings: */ >> + ? ? for (i = 0; i < ARRAY_SIZE(fmts); i++) {

[PATCH 2/2] drm/omap: add GEM support for tiled/dmm buffers

2011-12-06 Thread Alan Cox
On Mon, 5 Dec 2011 19:19:22 -0600 Rob Clark wrote: > + usergart = kzalloc(3 * sizeof(*usergart), GFP_KERNEL); > + > + /* reserve 4k aligned/wide regions for userspace mappings: */ > + for (i = 0; i < ARRAY_SIZE(fmts); i++) { > + uint16_t h = 1, w = PAGE_SIZE >> i; > +

Re: [PATCH 2/2] drm/omap: add GEM support for tiled/dmm buffers

2011-12-06 Thread Alan Cox
On Mon, 5 Dec 2011 19:19:22 -0600 Rob Clark rob.cl...@linaro.org wrote: + usergart = kzalloc(3 * sizeof(*usergart), GFP_KERNEL); + + /* reserve 4k aligned/wide regions for userspace mappings: */ + for (i = 0; i ARRAY_SIZE(fmts); i++) { + uint16_t h = 1, w =

Re: [PATCH 2/2] drm/omap: add GEM support for tiled/dmm buffers

2011-12-06 Thread Rob Clark
On Tue, Dec 6, 2011 at 5:30 AM, Alan Cox a...@lxorguk.ukuu.org.uk wrote: On Mon,  5 Dec 2011 19:19:22 -0600 Rob Clark rob.cl...@linaro.org wrote: +     usergart = kzalloc(3 * sizeof(*usergart), GFP_KERNEL); + +     /* reserve 4k aligned/wide regions for userspace mappings: */ +     for (i =

[PATCH 2/2] drm/omap: add GEM support for tiled/dmm buffers

2011-12-05 Thread Rob Clark
From: Rob Clark TILER/DMM provides two features for omapdrm GEM objects: 1) providing a physically contiguous view to discontiguous memory for hw initiators that cannot otherwise support discontiguous buffers (DSS scanout, IVAHD video decode/encode, etc) 2) providing untiling

[PATCH 2/2] drm/omap: add GEM support for tiled/dmm buffers

2011-12-05 Thread Rob Clark
From: Rob Clark r...@ti.com TILER/DMM provides two features for omapdrm GEM objects: 1) providing a physically contiguous view to discontiguous memory for hw initiators that cannot otherwise support discontiguous buffers (DSS scanout, IVAHD video decode/encode, etc) 2) providing untiling