mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-20 17:41:09 +00:00
b40d73784f
Switch to tracking activity via i915_active on individual nodes, only keeping a list of retired objects in the cache, and reaping the cache when the engine itself idles. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190804124826.30272-2-chris@chris-wilson.co.uk
29 lines
546 B
C
29 lines
546 B
C
/*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
* Copyright © 2014-2018 Intel Corporation
|
|
*/
|
|
|
|
#ifndef INTEL_ENGINE_POOL_TYPES_H
|
|
#define INTEL_ENGINE_POOL_TYPES_H
|
|
|
|
#include <linux/list.h>
|
|
#include <linux/spinlock.h>
|
|
|
|
#include "i915_active_types.h"
|
|
|
|
struct drm_i915_gem_object;
|
|
|
|
struct intel_engine_pool {
|
|
spinlock_t lock;
|
|
struct list_head cache_list[4];
|
|
};
|
|
|
|
struct intel_engine_pool_node {
|
|
struct i915_active active;
|
|
struct drm_i915_gem_object *obj;
|
|
struct list_head link;
|
|
struct intel_engine_pool *pool;
|
|
};
|
|
|
|
#endif /* INTEL_ENGINE_POOL_TYPES_H */
|