Re: [Intel-gfx] [PATCH 1/5] drm/i915: Update object placement flags to be mutable

2021-06-03 Thread Thomas Hellström
On 6/3/21 1:17 PM, Matthew Auld wrote: On Wed, 2 Jun 2021 at 18:08, Thomas Hellström wrote: The object ops i915_GEM_OBJECT_HAS_IOMEM and the object I915_BO_ALLOC_STRUCT_PAGE flags are considered immutable by much of our code. Introduce a new mem_flags member to hold these and make sure checks

Re: [Intel-gfx] [PATCH 1/5] drm/i915: Update object placement flags to be mutable

2021-06-03 Thread Matthew Auld
On Wed, 2 Jun 2021 at 18:08, Thomas Hellström wrote: > > The object ops i915_GEM_OBJECT_HAS_IOMEM and the object > I915_BO_ALLOC_STRUCT_PAGE flags are considered immutable by > much of our code. Introduce a new mem_flags member to hold these > and make sure checks for these flags being set are eit

[Intel-gfx] [PATCH 1/5] drm/i915: Update object placement flags to be mutable

2021-06-02 Thread Thomas Hellström
The object ops i915_GEM_OBJECT_HAS_IOMEM and the object I915_BO_ALLOC_STRUCT_PAGE flags are considered immutable by much of our code. Introduce a new mem_flags member to hold these and make sure checks for these flags being set are either done under the object lock or with pages properly pinned. Th