@@ -80,7 +80,7 @@ enum {
*
* See i915_request_is_active()
*/
- I915_FENCE_FLAG_ACTIVE = DMA_FENCE_FLAG_USER_BITS,
+ I915_FENCE_FLAG_ACTIVE = DMA_FENCE_FLAG_DRIVER,
/*
* I915_FENCE_FLAG_PQUEUE - this request is ready for execution
@@ -33,7 +33,7 @@ struct dma_fence_work {
};
enum {
- DMA_FENCE_WORK_IMM = DMA_FENCE_FLAG_USER_BITS,
+ DMA_FENCE_WORK_IMM = DMA_FENCE_FLAG_DRIVER,
};
void dma_fence_work_init(struct dma_fence_work *f,
@@ -61,7 +61,7 @@ nouveau_fence_signal(struct nouveau_fence *fence)
list_del(&fence->head);
rcu_assign_pointer(fence->channel, NULL);
- if (test_bit(DMA_FENCE_FLAG_USER_BITS, &fence->base.flags)) {
+ if (test_bit(DMA_FENCE_FLAG_DRIVER, &fence->base.flags)) {
struct nouveau_fence_chan *fctx = nouveau_fctx(fence);
if (!--fctx->notify_ref)
@@ -510,7 +510,7 @@ static bool nouveau_fence_enable_signaling(struct dma_fence *f)
ret = nouveau_fence_no_signaling(f);
if (ret)
- set_bit(DMA_FENCE_FLAG_USER_BITS, &fence->base.flags);
+ set_bit(DMA_FENCE_FLAG_DRIVER, &fence->base.flags);
else if (!--fctx->notify_ref)
nvif_notify_put(&fctx->notify);
@@ -49,7 +49,7 @@ struct dma_fence_cb;
* DMA_FENCE_FLAG_SIGNALED_BIT - fence is already signaled
* DMA_FENCE_FLAG_TIMESTAMP_BIT - timestamp recorded for fence signaling
* DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT - enable_signaling might have been called
- * DMA_FENCE_FLAG_USER_BITS - start of the unused bits, can be used by the
+ * DMA_FENCE_FLAG_DRIVER - start of the unused bits, can be used by the
* implementer of the fence for its own purposes. Can be used in different
* ways by different fence implementers, so do not rely on this.
*
@@ -99,7 +99,7 @@ enum dma_fence_flag_bits {
DMA_FENCE_FLAG_SIGNALED_BIT,
DMA_FENCE_FLAG_TIMESTAMP_BIT,
DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT,
- DMA_FENCE_FLAG_USER_BITS, /* must always be last member */
+ DMA_FENCE_FLAG_DRIVER, /* must always be last member */
};
typedef void (*dma_fence_func_t)(struct dma_fence *fence,
This is supposed to be used by device drivers. Signed-off-by: Christian König <christian.koenig@amd.com> --- drivers/gpu/drm/i915/i915_request.h | 2 +- drivers/gpu/drm/i915/i915_sw_fence_work.h | 2 +- drivers/gpu/drm/nouveau/nouveau_fence.c | 4 ++-- include/linux/dma-fence.h | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-)