Skip to content

Commit

Permalink
TESTONLY:drm/i915/gvt: potential fix for refactor against current tip
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenyw committed Aug 26, 2021
1 parent b35e683 commit 62511d1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
4 changes: 3 additions & 1 deletion drivers/gpu/drm/i915/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,9 @@ i915-$(CONFIG_DRM_I915_SELFTEST) += \

# virtual gpu code
i915-y += i915_vgpu.o
i915-$(CONFIG_DRM_I915_GVT_KVMGT) += intel_gvt.o
ifneq ($(CONFIG_DRM_I915_GVT_KVMGT),)
i915-y += intel_gvt.o
endif

kvmgt-y += gvt/kvmgt.o \
gvt/gvt.o \
Expand Down
5 changes: 5 additions & 0 deletions drivers/gpu/drm/i915/gt/intel_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,11 @@ void __intel_context_do_unpin(struct intel_context *ce, int sub)
intel_context_put(ce);
}

void intel_context_unpin(struct intel_context *ce)
{
_intel_context_unpin(ce);
}

static void __intel_context_retire(struct i915_active *active)
{
struct intel_context *ce = container_of(active, typeof(*ce), active);
Expand Down
3 changes: 2 additions & 1 deletion drivers/gpu/drm/i915/gt/intel_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ static inline void intel_context_sched_disable_unpin(struct intel_context *ce)
__intel_context_do_unpin(ce, 2);
}

static inline void intel_context_unpin(struct intel_context *ce)
static inline void _intel_context_unpin(struct intel_context *ce)
{
if (!ce->ops->sched_disable) {
__intel_context_do_unpin(ce, 1);
Expand All @@ -150,6 +150,7 @@ static inline void intel_context_unpin(struct intel_context *ce)
}
}
}
void intel_context_unpin(struct intel_context *ce);

void intel_context_enter_engine(struct intel_context *ce);
void intel_context_exit_engine(struct intel_context *ce);
Expand Down
1 change: 1 addition & 0 deletions drivers/gpu/drm/i915/i915_trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#undef TRACE_SYSTEM
#define TRACE_SYSTEM i915
#undef TRACE_INCLUDE_FILE
#define TRACE_INCLUDE_FILE i915_trace

/* watermark/fifo updates */
Expand Down

0 comments on commit 62511d1

Please sign in to comment.