[PATCH] drm/ttm: avoid allocation memory while spinlock is held v2

2013-02-04 Thread Daniel Vetter
On Mon, Feb 4, 2013 at 8:36 PM, Jerome Glisse wrote: > On Mon, Feb 4, 2013 at 2:21 PM, Daniel Vetter wrote: >> On Mon, Feb 4, 2013 at 7:34 PM, wrote: >>> From: Jerome Glisse >>> >>> We need to take reference on the sync object while holding the >>> fence spinlock but at the same time we don't

[PATCH] drm/ttm: avoid allocation memory while spinlock is held v2

2013-02-04 Thread Daniel Vetter
On Mon, Feb 4, 2013 at 7:34 PM, wrote: > From: Jerome Glisse > > We need to take reference on the sync object while holding the > fence spinlock but at the same time we don't want to allocate > memory while holding the spinlock. This patch make sure we > enforce both of this constraint. > > v2:

[PATCH] drm/ttm: avoid allocation memory while spinlock is held v2

2013-02-04 Thread Jerome Glisse
On Mon, Feb 4, 2013 at 2:21 PM, Daniel Vetter wrote: > On Mon, Feb 4, 2013 at 7:34 PM, wrote: >> From: Jerome Glisse >> >> We need to take reference on the sync object while holding the >> fence spinlock but at the same time we don't want to allocate >> memory while holding the spinlock. This

[PATCH] drm/ttm: avoid allocation memory while spinlock is held v2

2013-02-04 Thread j.gli...@gmail.com
From: Jerome Glisse We need to take reference on the sync object while holding the fence spinlock but at the same time we don't want to allocate memory while holding the spinlock. This patch make sure we enforce both of this constraint. v2: actually test build it Fix

[PATCH] drm/ttm: avoid allocation memory while spinlock is held

2013-02-04 Thread j.gli...@gmail.com
From: Jerome Glisse We need to take reference on the sync object while holding the fence spinlock but at the same time we don't want to allocate memory while holding the spinlock. This patch make sure we enforce both of this constraint. Fix

[PATCH] drm/ttm: avoid allocation memory while spinlock is held

2013-02-04 Thread j . glisse
From: Jerome Glisse jgli...@redhat.com We need to take reference on the sync object while holding the fence spinlock but at the same time we don't want to allocate memory while holding the spinlock. This patch make sure we enforce both of this constraint. Fix

[PATCH] drm/ttm: avoid allocation memory while spinlock is held v2

2013-02-04 Thread j . glisse
From: Jerome Glisse jgli...@redhat.com We need to take reference on the sync object while holding the fence spinlock but at the same time we don't want to allocate memory while holding the spinlock. This patch make sure we enforce both of this constraint. v2: actually test build it Fix

Re: [PATCH] drm/ttm: avoid allocation memory while spinlock is held v2

2013-02-04 Thread Daniel Vetter
On Mon, Feb 4, 2013 at 7:34 PM, j.gli...@gmail.com wrote: From: Jerome Glisse jgli...@redhat.com We need to take reference on the sync object while holding the fence spinlock but at the same time we don't want to allocate memory while holding the spinlock. This patch make sure we enforce

Re: [PATCH] drm/ttm: avoid allocation memory while spinlock is held v2

2013-02-04 Thread Jerome Glisse
On Mon, Feb 4, 2013 at 2:21 PM, Daniel Vetter dan...@ffwll.ch wrote: On Mon, Feb 4, 2013 at 7:34 PM, j.gli...@gmail.com wrote: From: Jerome Glisse jgli...@redhat.com We need to take reference on the sync object while holding the fence spinlock but at the same time we don't want to allocate

Re: [PATCH] drm/ttm: avoid allocation memory while spinlock is held v2

2013-02-04 Thread Daniel Vetter
On Mon, Feb 4, 2013 at 8:36 PM, Jerome Glisse j.gli...@gmail.com wrote: On Mon, Feb 4, 2013 at 2:21 PM, Daniel Vetter dan...@ffwll.ch wrote: On Mon, Feb 4, 2013 at 7:34 PM, j.gli...@gmail.com wrote: From: Jerome Glisse jgli...@redhat.com We need to take reference on the sync object while