OSDN Git Service

drm/i915: Dynamically allocate s0ix struct for VLV
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Tue, 20 Aug 2019 02:01:46 +0000 (19:01 -0700)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 20 Aug 2019 14:23:33 +0000 (15:23 +0100)
commit1bcd8688bd9e122fdc47af97c5bed0c44ad60c98
treec849ade8ff10e0b1629d6a9bf1633eda1e7bd93b
parent0aa5427a7fd3349d5d77ee8be8e47d15705d4f0e
drm/i915: Dynamically allocate s0ix struct for VLV

This is only required for a single platform so no need to reserve the
memory on all of them.

This removes the last direct dependency of i915_drv.h on i915_reg.h
(apart from the i915_reg_t definition).

v2: drop unneeded diff, keep the vlv prefix, call functions
    unconditionally (Jani), fwd declaration of the struct (Chris)

Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Imre Deak <imre.deak@intel.com>
Cc: Jani Nikula <jani.nikula@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/20190820020147.5667-1-daniele.ceraolospurio@intel.com
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h