drm/i915/guc: Allocate separate shared data object for GuC communication
authorMichał Winiarski <[email protected]>
Wed, 25 Oct 2017 20:00:11 +0000 (22:00 +0200)
committerChris Wilson <[email protected]>
Thu, 26 Oct 2017 20:35:21 +0000 (21:35 +0100)
commitb8e5eb960b28bc120b03f174dfa3ac1e32e1d10f
treeaa380db66b8a3be23f6ac315dde025619d60e2aa
parent89922d0145755b0d22906925e9bac9dc78524fc3
drm/i915/guc: Allocate separate shared data object for GuC communication

We were using first page of kernel context render state for sharing data
with GuC. While it's justified by the fact that those pages are not used
(note, GuC still enforces this layout and refuses to work if we remove
the extra page in front), it's also confusing (why are we using this
particular page?). Let's allocate a separate object instead.

v2: Drop kernel_context from GuC suspend/resume action handlers (Michel)

Suggested-by: Daniele Ceraolo Spurio <[email protected]>
Signed-off-by: Michał Winiarski <[email protected]>
Cc: Chris Wilson <[email protected]>
Cc: Daniele Ceraolo Spurio <[email protected]>
Cc: Jeff McGee <[email protected]>
Cc: Michal Wajdeczko <[email protected]>
Cc: Oscar Mateo <[email protected]>
Reviewed-by: Daniele Ceraolo Spurio <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/i915_guc_submission.c
drivers/gpu/drm/i915/intel_guc.c
drivers/gpu/drm/i915/intel_guc.h