drm/i915/bxt: reserve space for RC6 in the the GuC WOPCM
authorPeter Antoine <peter.antoine@intel.com>
Tue, 17 May 2016 14:12:45 +0000 (15:12 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Wed, 18 May 2016 11:49:19 +0000 (12:49 +0100)
commit74aa156ba9e2ba79c24b100c0e2e97423acda817
treea906a76aa50e8ea2d934baf7ad40371e757b7adb
parentaf4a879e0cb29b2cf35ff7559d32304783012534
drm/i915/bxt: reserve space for RC6 in the the GuC WOPCM

This patch resizes the GuC WOPCM (specifically on BXT)
so that the GuC and RC6 memory spaces do not overlap.

v2:
    Made calculation of WOPCM size into a separate function,
    so that it's consistent between the firmware size-check
    and the register-programming operations [Dave Gordon].

Issue: https://jira01.devtools.intel.com/browse/VIZ-6638
Signed-off-by: Peter Antoine <peter.antoine@intel.com>
Signed-off-by: Dave Gordon <david.s.gordon@intel.com>
Reviewed-by: Nick Hoath <nicholas.hoath@intel.com>
Tested-by: Nick Hoath <nicholas.hoath@intel.com>
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1463494365-26330-1-git-send-email-david.s.gordon@intel.com
drivers/gpu/drm/i915/i915_guc_reg.h
drivers/gpu/drm/i915/intel_guc_loader.c