Re: [Intel-gfx] [PATCH 2/2] drm/mm: Pack allocated/scanned boolean into a bitfield

2019-10-03 Thread Ruhl, Michael J
>-Original Message- >From: dri-devel [mailto:dri-devel-boun...@lists.freedesktop.org] On Behalf >Of Chris Wilson >Sent: Thursday, October 3, 2019 3:08 AM >To: Ruhl, Michael J ; dri- >de...@lists.freedesktop.org >Cc: intel-gfx@lists.freedesktop.org >Subject: RE: [PATCH 2/2] drm/mm: Pack

Re: [Intel-gfx] [PATCH 2/2] drm/mm: Pack allocated/scanned boolean into a bitfield

2019-10-03 Thread Tvrtko Ursulin
On 15/09/2019 19:45, Chris Wilson wrote: The ulterior motive to switching the booleans over to bitops is to allow use of the allocated flag as a bitlock. Locked bit usage applies only to DRM_MM_NODE_ALLOCATED_BIT? Any value in extracting the conversion to calling drm_mm_node_allocated ahead

Re: [Intel-gfx] [PATCH 2/2] drm/mm: Pack allocated/scanned boolean into a bitfield

2019-10-03 Thread Chris Wilson
Quoting Ruhl, Michael J (2019-09-16 20:45:14) > >-Original Message- > >From: dri-devel [mailto:dri-devel-boun...@lists.freedesktop.org] On Behalf > >Of Chris Wilson > >Sent: Sunday, September 15, 2019 2:46 PM > >@@ -424,9 +424,9 @@ int drm_mm_reserve_node(struct drm_mm *mm, > >struct

Re: [Intel-gfx] [PATCH 2/2] drm/mm: Pack allocated/scanned boolean into a bitfield

2019-09-16 Thread Ruhl, Michael J
>-Original Message- >From: dri-devel [mailto:dri-devel-boun...@lists.freedesktop.org] On Behalf >Of Chris Wilson >Sent: Sunday, September 15, 2019 2:46 PM >To: dri-de...@lists.freedesktop.org >Cc: intel-gfx@lists.freedesktop.org >Subject: [PATCH 2/2] drm/mm: Pack allocated/scanned boolean

[Intel-gfx] [PATCH 2/2] drm/mm: Pack allocated/scanned boolean into a bitfield

2019-09-15 Thread Chris Wilson
The ulterior motive to switching the booleans over to bitops is to allow use of the allocated flag as a bitlock. Signed-off-by: Chris Wilson --- drivers/gpu/drm/drm_mm.c | 36 +++ .../gpu/drm/i915/gem/i915_gem_execbuffer.c| 6 ++--