]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915: Convert icl_get_stolen_reserved to uncore mmio accessors
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Mon, 10 Jun 2019 12:06:05 +0000 (13:06 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Mon, 10 Jun 2019 15:55:25 +0000 (16:55 +0100)
More removal of implicit dev_priv.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190610120608.15477-3-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/gem/i915_gem_stolen.c

index 84d4f549eb21cb7abe49e4026726223fec1cde0c..432037e5d0a5184065bbe1049a3b30f0d3a7fa35 100644 (file)
@@ -325,11 +325,11 @@ static void bdw_get_stolen_reserved(struct drm_i915_private *dev_priv,
        *size = stolen_top - *base;
 }
 
-static void icl_get_stolen_reserved(struct drm_i915_private *dev_priv,
+static void icl_get_stolen_reserved(struct drm_i915_private *i915,
                                    resource_size_t *base,
                                    resource_size_t *size)
 {
-       u64 reg_val = I915_READ64(GEN6_STOLEN_RESERVED);
+       u64 reg_val = intel_uncore_read64(&i915->uncore, GEN6_STOLEN_RESERVED);
 
        DRM_DEBUG_DRIVER("GEN6_STOLEN_RESERVED = 0x%016llx\n", reg_val);