File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -58,22 +58,18 @@ static void set_context_pdp_root_pointer(
58
58
59
59
static void update_shadow_pdps (struct intel_vgpu_workload * workload )
60
60
{
61
- struct drm_i915_gem_object * ctx_obj =
62
- workload -> req -> context -> state -> obj ;
63
61
struct execlist_ring_context * shadow_ring_context ;
64
- struct page * page ;
62
+ struct intel_context * ctx = workload -> req -> context ;
65
63
66
64
if (WARN_ON (!workload -> shadow_mm ))
67
65
return ;
68
66
69
67
if (WARN_ON (!atomic_read (& workload -> shadow_mm -> pincount )))
70
68
return ;
71
69
72
- page = i915_gem_object_get_page (ctx_obj , LRC_STATE_PN );
73
- shadow_ring_context = kmap (page );
70
+ shadow_ring_context = (struct execlist_ring_context * )ctx -> lrc_reg_state ;
74
71
set_context_pdp_root_pointer (shadow_ring_context ,
75
72
(void * )workload -> shadow_mm -> ppgtt_mm .shadow_pdps );
76
- kunmap (page );
77
73
}
78
74
79
75
/*
You can’t perform that action at this time.
0 commit comments