return -EIO;
        }
 
-       intel_gtt_get(&ggtt->base.total, &ggtt->stolen_size,
-                     &ggtt->mappable_base, &ggtt->mappable_end);
+       intel_gtt_get(&ggtt->base.total,
+                     &ggtt->stolen_size,
+                     &ggtt->mappable_base,
+                     &ggtt->mappable_end);
 
        ggtt->do_idle_maps = needs_idle_maps(dev_priv);
        ggtt->base.insert_page = i915_ggtt_insert_page;
        DRM_INFO("Memory usable by graphics device = %lluM\n",
                 ggtt->base.total >> 20);
        DRM_DEBUG_DRIVER("GMADR size = %lldM\n", ggtt->mappable_end >> 20);
-       DRM_DEBUG_DRIVER("GTT stolen size = %zdM\n", ggtt->stolen_size >> 20);
+       DRM_DEBUG_DRIVER("GTT stolen size = %uM\n", ggtt->stolen_size >> 20);
 #ifdef CONFIG_INTEL_IOMMU
        if (intel_iommu_gfx_mapped)
                DRM_INFO("VT-d active for gfx access\n");
 
        struct i915_address_space base;
        struct io_mapping mappable;     /* Mapping to our CPU mappable region */
 
+       phys_addr_t mappable_base;      /* PA of our GMADR */
+       u64 mappable_end;               /* End offset that we can CPU map */
+
        /* Stolen memory is segmented in hardware with different portions
         * offlimits to certain functions.
         *
         * avoid the first page! The upper end of stolen memory is reserved for
         * hardware functions and similarly removed from the accessible range.
         */
-       size_t stolen_size;             /* Total size of stolen memory */
-       size_t stolen_usable_size;      /* Total size minus reserved ranges */
-       size_t stolen_reserved_base;
-       size_t stolen_reserved_size;
-       u64 mappable_end;               /* End offset that we can CPU map */
-       phys_addr_t mappable_base;      /* PA of our GMADR */
+       u32 stolen_size;                /* Total size of stolen memory */
+       u32 stolen_usable_size; /* Total size minus reserved ranges */
+       u32 stolen_reserved_base;
+       u32 stolen_reserved_size;
 
        /** "Graphics Stolen Memory" holds the global PTEs */
        void __iomem *gsm;
 
 }
 
 static void g4x_get_stolen_reserved(struct drm_i915_private *dev_priv,
-                                   phys_addr_t *base, unsigned long *size)
+                                   phys_addr_t *base, u32 *size)
 {
        struct i915_ggtt *ggtt = &dev_priv->ggtt;
        uint32_t reg_val = I915_READ(IS_GM45(dev_priv) ?
 }
 
 static void gen6_get_stolen_reserved(struct drm_i915_private *dev_priv,
-                                    phys_addr_t *base, unsigned long *size)
+                                    phys_addr_t *base, u32 *size)
 {
        uint32_t reg_val = I915_READ(GEN6_STOLEN_RESERVED);
 
 }
 
 static void gen7_get_stolen_reserved(struct drm_i915_private *dev_priv,
-                                    phys_addr_t *base, unsigned long *size)
+                                    phys_addr_t *base, u32 *size)
 {
        uint32_t reg_val = I915_READ(GEN6_STOLEN_RESERVED);
 
 }
 
 static void chv_get_stolen_reserved(struct drm_i915_private *dev_priv,
-                                   phys_addr_t *base, unsigned long *size)
+                                   phys_addr_t *base, u32 *size)
 {
        uint32_t reg_val = I915_READ(GEN6_STOLEN_RESERVED);
 
 }
 
 static void bdw_get_stolen_reserved(struct drm_i915_private *dev_priv,
-                                   phys_addr_t *base, unsigned long *size)
+                                   phys_addr_t *base, u32 *size)
 {
        struct i915_ggtt *ggtt = &dev_priv->ggtt;
        uint32_t reg_val = I915_READ(GEN6_STOLEN_RESERVED);
 {
        struct i915_ggtt *ggtt = &dev_priv->ggtt;
        phys_addr_t reserved_base, stolen_top;
-       unsigned long reserved_total, reserved_size;
-       unsigned long stolen_usable_start;
+       u32 reserved_total, reserved_size;
+       u32 stolen_usable_start;
 
        mutex_init(&dev_priv->mm.stolen_lock);
 
         * memory, so just consider the start. */
        reserved_total = stolen_top - reserved_base;
 
-       DRM_DEBUG_KMS("Memory reserved for graphics device: %zuK, usable: %luK\n",
+       DRM_DEBUG_KMS("Memory reserved for graphics device: %uK, usable: %uK\n",
                      ggtt->stolen_size >> 10,
                      (ggtt->stolen_size - reserved_total) >> 10);
 
        if (INTEL_GEN(dev_priv) >= 8)
                stolen_usable_start = 4096;
 
-       ggtt->stolen_usable_size = ggtt->stolen_size - reserved_total -
-                                  stolen_usable_start;
+       ggtt->stolen_usable_size =
+               ggtt->stolen_size - reserved_total - stolen_usable_start;
 
        /* Basic memrange allocator for stolen space. */
        drm_mm_init(&dev_priv->mm.stolen, stolen_usable_start,