[PATCH] drm/radeon: add user pointer support v2

2014-07-02 Thread Christian König
> Yes this could be argued that way, that anyway user than can use the gpu > can already pin large amount of ram. But pining anonymous memory or file > backed memory (ie non regular bo memory) is different as pages are still > on the lru list and thus the vmscan code will still go over them which >

[PATCH] drm/radeon: add user pointer support v2

2014-07-01 Thread Christian König
Am 01.07.2014 17:35, schrieb Jerome Glisse: > On Tue, Jul 01, 2014 at 11:49:18AM +0200, Christian K?nig wrote: >> Am 30.06.2014 19:35, schrieb Jerome Glisse: >>> On Mon, Jun 30, 2014 at 03:04:16PM +0200, Christian K?nig wrote: >>> >>> [SNIP] >>> @@ -176,8 +181,15 @@ static int radeon_cs_parser_relo

[PATCH] drm/radeon: add user pointer support v2

2014-07-01 Thread Jerome Glisse
On Tue, Jul 01, 2014 at 08:14:47PM +0200, Christian K?nig wrote: > Am 01.07.2014 17:35, schrieb Jerome Glisse: > >On Tue, Jul 01, 2014 at 11:49:18AM +0200, Christian K?nig wrote: > >>Am 30.06.2014 19:35, schrieb Jerome Glisse: > >>>On Mon, Jun 30, 2014 at 03:04:16PM +0200, Christian K?nig wrote: >

[PATCH] drm/radeon: add user pointer support v2

2014-07-01 Thread Christian König
Am 30.06.2014 19:35, schrieb Jerome Glisse: > On Mon, Jun 30, 2014 at 03:04:16PM +0200, Christian K?nig wrote: >> From: Christian K?nig >> >> This patch adds an IOCTL for turning a pointer supplied by >> userspace into a buffer object. >> >> It works similar to the recently added userptr support f

[PATCH] drm/radeon: add user pointer support v2

2014-07-01 Thread Jerome Glisse
On Tue, Jul 01, 2014 at 11:49:18AM +0200, Christian K?nig wrote: > Am 30.06.2014 19:35, schrieb Jerome Glisse: > >On Mon, Jun 30, 2014 at 03:04:16PM +0200, Christian K?nig wrote: > >>From: Christian K?nig > >> > >>This patch adds an IOCTL for turning a pointer supplied by > >>userspace into a buff

[PATCH] drm/radeon: add user pointer support v2

2014-06-30 Thread Christian König
From: Christian K?nig This patch adds an IOCTL for turning a pointer supplied by userspace into a buffer object. It works similar to the recently added userptr support for i915, so it also imposes several restrictions upon the memory being mapped: 1. It must be page aligned (both start/end addr

[PATCH] drm/radeon: add user pointer support v2

2014-06-30 Thread Jerome Glisse
On Mon, Jun 30, 2014 at 03:04:16PM +0200, Christian K?nig wrote: > From: Christian K?nig > > This patch adds an IOCTL for turning a pointer supplied by > userspace into a buffer object. > > It works similar to the recently added userptr support for i915, > so it also imposes several restrictions