mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 08:39:31 +07:00
drm/i915/gt: Rename i915_gt_timelines
Since the anonymous i915_gt became struct intel_gt and encloses struct i915_gt_timelines, rename i915_gt_timelines to intel_gt_timelines to match its parentage. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190621131640.28864-1-chris@chris-wilson.co.uk
This commit is contained in:
parent
5f6730a468
commit
c6fe28b0c2
@ -25,7 +25,7 @@ struct intel_gt {
|
||||
struct intel_uncore *uncore;
|
||||
struct i915_ggtt *ggtt;
|
||||
|
||||
struct i915_gt_timelines {
|
||||
struct intel_gt_timelines {
|
||||
struct mutex mutex; /* protects list, tainted by GPU */
|
||||
struct list_head active_list;
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
struct intel_timeline_hwsp {
|
||||
struct intel_gt *gt;
|
||||
struct i915_gt_timelines *gt_timelines;
|
||||
struct intel_gt_timelines *gt_timelines;
|
||||
struct list_head free_link;
|
||||
struct i915_vma *vma;
|
||||
u64 free_bitmap;
|
||||
@ -53,7 +53,7 @@ static struct i915_vma *__hwsp_alloc(struct intel_gt *gt)
|
||||
static struct i915_vma *
|
||||
hwsp_alloc(struct intel_timeline *timeline, unsigned int *cacheline)
|
||||
{
|
||||
struct i915_gt_timelines *gt = &timeline->gt->timelines;
|
||||
struct intel_gt_timelines *gt = &timeline->gt->timelines;
|
||||
struct intel_timeline_hwsp *hwsp;
|
||||
|
||||
BUILD_BUG_ON(BITS_PER_TYPE(u64) * CACHELINE_BYTES > PAGE_SIZE);
|
||||
@ -102,7 +102,7 @@ hwsp_alloc(struct intel_timeline *timeline, unsigned int *cacheline)
|
||||
|
||||
static void __idle_hwsp_free(struct intel_timeline_hwsp *hwsp, int cacheline)
|
||||
{
|
||||
struct i915_gt_timelines *gt = hwsp->gt_timelines;
|
||||
struct intel_gt_timelines *gt = hwsp->gt_timelines;
|
||||
unsigned long flags;
|
||||
|
||||
spin_lock_irqsave(>->hwsp_lock, flags);
|
||||
@ -261,7 +261,7 @@ int intel_timeline_init(struct intel_timeline *timeline,
|
||||
|
||||
static void timelines_init(struct intel_gt *gt)
|
||||
{
|
||||
struct i915_gt_timelines *timelines = >->timelines;
|
||||
struct intel_gt_timelines *timelines = >->timelines;
|
||||
|
||||
mutex_init(&timelines->mutex);
|
||||
INIT_LIST_HEAD(&timelines->active_list);
|
||||
@ -280,7 +280,7 @@ void intel_timelines_init(struct drm_i915_private *i915)
|
||||
|
||||
static void timeline_add_to_active(struct intel_timeline *tl)
|
||||
{
|
||||
struct i915_gt_timelines *gt = &tl->gt->timelines;
|
||||
struct intel_gt_timelines *gt = &tl->gt->timelines;
|
||||
|
||||
mutex_lock(>->mutex);
|
||||
list_add(&tl->link, >->active_list);
|
||||
@ -289,7 +289,7 @@ static void timeline_add_to_active(struct intel_timeline *tl)
|
||||
|
||||
static void timeline_remove_from_active(struct intel_timeline *tl)
|
||||
{
|
||||
struct i915_gt_timelines *gt = &tl->gt->timelines;
|
||||
struct intel_gt_timelines *gt = &tl->gt->timelines;
|
||||
|
||||
mutex_lock(>->mutex);
|
||||
list_del(&tl->link);
|
||||
@ -298,7 +298,7 @@ static void timeline_remove_from_active(struct intel_timeline *tl)
|
||||
|
||||
static void timelines_park(struct intel_gt *gt)
|
||||
{
|
||||
struct i915_gt_timelines *timelines = >->timelines;
|
||||
struct intel_gt_timelines *timelines = >->timelines;
|
||||
struct intel_timeline *timeline;
|
||||
|
||||
mutex_lock(&timelines->mutex);
|
||||
@ -572,7 +572,7 @@ void __intel_timeline_free(struct kref *kref)
|
||||
|
||||
static void timelines_fini(struct intel_gt *gt)
|
||||
{
|
||||
struct i915_gt_timelines *timelines = >->timelines;
|
||||
struct intel_gt_timelines *timelines = >->timelines;
|
||||
|
||||
GEM_BUG_ON(!list_empty(&timelines->active_list));
|
||||
GEM_BUG_ON(!list_empty(&timelines->hwsp_free_list));
|
||||
|
@ -908,7 +908,7 @@ static long
|
||||
wait_for_timelines(struct drm_i915_private *i915,
|
||||
unsigned int flags, long timeout)
|
||||
{
|
||||
struct i915_gt_timelines *gt = &i915->gt.timelines;
|
||||
struct intel_gt_timelines *gt = &i915->gt.timelines;
|
||||
struct intel_timeline *tl;
|
||||
|
||||
mutex_lock(>->mutex);
|
||||
|
Loading…
Reference in New Issue
Block a user