forked from Minki/linux
0b29c75a01
Not only the context image consist of two parts (the PPHWSP, and the logical context state), but we also allocate a header at the start of for sharing data with GuC. Thus every lrc looks like this: | [guc] | [hwsp] [logical state] | |<- our header ->|<- context image ->| So far, we have oversimplified whenever we use each of these parts of the context, just because the GuC header happens to be in page 0, and the (PP)HWSP is in page 1. But this had led to using the same define for more than one meaning (as a page index in the lrc and as 1 page). This patch adds defines for the GuC shared page, the PPHWSP page and the start of the logical state. It also updated the places where the old define was being used. Since we are not changing the size (or format) of the context, there are no functional changes. v2: Use PPHWSP index for hws again. Suggested-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Michel Thierry <michel.thierry@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Cc: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Oscar Mateo <oscar.mateo@intel.com> Cc: intel-gvt-dev@lists.freedesktop.org Link: http://patchwork.freedesktop.org/patch/msgid/20170712193032.27080-1-michel.thierry@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/20170913085605.18299-1-chris@chris-wilson.co.uk |
||
---|---|---|
.. | ||
aperture_gm.c | ||
cfg_space.c | ||
cmd_parser.c | ||
cmd_parser.h | ||
debug.h | ||
display.c | ||
display.h | ||
edid.c | ||
edid.h | ||
execlist.c | ||
execlist.h | ||
firmware.c | ||
gtt.c | ||
gtt.h | ||
gvt.c | ||
gvt.h | ||
handlers.c | ||
hypercall.h | ||
interrupt.c | ||
interrupt.h | ||
kvmgt.c | ||
Makefile | ||
mmio.c | ||
mmio.h | ||
mpt.h | ||
opregion.c | ||
reg.h | ||
render.c | ||
render.h | ||
sched_policy.c | ||
sched_policy.h | ||
scheduler.c | ||
scheduler.h | ||
trace_points.c | ||
trace.h | ||
vgpu.c |