drm/i915/wopcm: Check WOPCM layout separately from calculations
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 16 Aug 2019 10:54:58 +0000 (10:54 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 16 Aug 2019 15:49:58 +0000 (16:49 +0100)
commit851dfec946b6cb4265c207541d84c84334acfa9d
treed45b442c056a7a9ac06ee0f81ef30ce6b1948ab9
parent1249dc1717381b37266201086d2806559d5715c1
drm/i915/wopcm: Check WOPCM layout separately from calculations

We can do WOPCM partitioning using rough estimates and limits
and perform detailed check as separate step.

v2: oops! s/max/min
v3: consolidate overflow checks (Daniele)

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
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/20190816105501.31020-3-michal.wajdeczko@intel.com
drivers/gpu/drm/i915/intel_wopcm.c