projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3ef1af
)
drm/i915: re-use computed offset bias for context pin
author
Daniele Ceraolo Spurio
<
[email protected]
>
Fri, 23 Dec 2016 23:56:22 +0000
(15:56 -0800)
committer
Chris Wilson
<
[email protected]
>
Sat, 24 Dec 2016 10:08:45 +0000
(10:08 +0000)
The context has to obey the same offset requirements as the ring,
so we can re-use the same bias value we computed for the ring instead of
unconditionally using GUC_WOPCM_TOP.
Suggested-by: Chris Wilson <
[email protected]
>
Signed-off-by: Daniele Ceraolo Spurio <
[email protected]
>
Cc: Chris Wilson <
[email protected]
>
Link:
http://patchwork.freedesktop.org/patch/msgid/1482537382-28584-2-git-send-email-daniele.ceraolospurio@intel.com
Reviewed-by: Chris Wilson <
[email protected]
>
Signed-off-by: Chris Wilson <
[email protected]
>
drivers/gpu/drm/i915/intel_lrc.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/intel_lrc.c
b/drivers/gpu/drm/i915/intel_lrc.c
index cec9037baf655259cbd4015dd528db279e763d31..fc64be1bdea76de49b10eea3b3e7204c3ccfd620 100644
(file)
--- a/
drivers/gpu/drm/i915/intel_lrc.c
+++ b/
drivers/gpu/drm/i915/intel_lrc.c
@@
-782,7
+782,9
@@
static int execlists_context_pin(struct intel_engine_cs *engine,
goto err;
}
- flags = PIN_OFFSET_BIAS | GUC_WOPCM_TOP | PIN_GLOBAL;
+ flags = PIN_GLOBAL;
+ if (ctx->ggtt_offset_bias)
+ flags |= PIN_OFFSET_BIAS | ctx->ggtt_offset_bias;
if (ctx == ctx->i915->kernel_context)
flags |= PIN_HIGH;