Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

Commit 62511d1

Browse files
committed
TESTONLY:drm/i915/gvt: potential fix for refactor against current tip
1 parent b35e683 commit 62511d1

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

drivers/gpu/drm/i915/Makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,9 @@ i915-$(CONFIG_DRM_I915_SELFTEST) += \
296296

297297
# virtual gpu code
298298
i915-y += i915_vgpu.o
299-
i915-$(CONFIG_DRM_I915_GVT_KVMGT) += intel_gvt.o
299+
ifneq ($(CONFIG_DRM_I915_GVT_KVMGT),)
300+
i915-y += intel_gvt.o
301+
endif
300302

301303
kvmgt-y += gvt/kvmgt.o \
302304
gvt/gvt.o \

drivers/gpu/drm/i915/gt/intel_context.c

+5
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,11 @@ void __intel_context_do_unpin(struct intel_context *ce, int sub)
328328
intel_context_put(ce);
329329
}
330330

331+
void intel_context_unpin(struct intel_context *ce)
332+
{
333+
_intel_context_unpin(ce);
334+
}
335+
331336
static void __intel_context_retire(struct i915_active *active)
332337
{
333338
struct intel_context *ce = container_of(active, typeof(*ce), active);

drivers/gpu/drm/i915/gt/intel_context.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ static inline void intel_context_sched_disable_unpin(struct intel_context *ce)
131131
__intel_context_do_unpin(ce, 2);
132132
}
133133

134-
static inline void intel_context_unpin(struct intel_context *ce)
134+
static inline void _intel_context_unpin(struct intel_context *ce)
135135
{
136136
if (!ce->ops->sched_disable) {
137137
__intel_context_do_unpin(ce, 1);
@@ -150,6 +150,7 @@ static inline void intel_context_unpin(struct intel_context *ce)
150150
}
151151
}
152152
}
153+
void intel_context_unpin(struct intel_context *ce);
153154

154155
void intel_context_enter_engine(struct intel_context *ce);
155156
void intel_context_exit_engine(struct intel_context *ce);

drivers/gpu/drm/i915/i915_trace.h

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
#undef TRACE_SYSTEM
1919
#define TRACE_SYSTEM i915
20+
#undef TRACE_INCLUDE_FILE
2021
#define TRACE_INCLUDE_FILE i915_trace
2122

2223
/* watermark/fifo updates */

0 commit comments

Comments
 (0)