Skip to content

Commit

Permalink
drm/i915/guc: Update uncore access path in flush_ggtt_writes
Browse files Browse the repository at this point in the history
The preferred way to access the uncore is through the GT structure.
Update the GuC function, flush_ggtt_writes, to use this path.

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: John Harrison <john.c.harrison@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20191207010033.24667-1-John.C.Harrison@Intel.com
  • Loading branch information
Matthew Brost authored and Chris Wilson committed Dec 7, 2019
1 parent aef8207 commit a22198a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,10 +488,9 @@ static void guc_add_request(struct intel_guc *guc, struct i915_request *rq)
*/
static void flush_ggtt_writes(struct i915_vma *vma)
{
struct drm_i915_private *i915 = vma->vm->i915;

if (i915_vma_is_map_and_fenceable(vma))
intel_uncore_posting_read_fw(&i915->uncore, GUC_STATUS);
intel_uncore_posting_read_fw(vma->vm->gt->uncore,
GUC_STATUS);
}

static void guc_submit(struct intel_engine_cs *engine,
Expand Down

0 comments on commit a22198a

Please sign in to comment.