[Intel-gfx] [PATCH 4/6] drm/i915: make reserved struct resource centric

Chris Wilson chris at chris-wilson.co.uk
Thu Nov 23 13:05:04 UTC 2017


Quoting Matthew Auld (2017-11-22 21:19:18)
> Signed-off-by: Matthew Auld <matthew.auld at intel.com>
> Cc: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
> Cc: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Paulo Zanoni <paulo.r.zanoni at intel.com>
> ---
> @@ -6464,9 +6463,8 @@ static bool bxt_check_bios_rc6_setup(struct drm_i915_private *dev_priv)
>          * for this check.
>          */
>         rc6_ctx_base = I915_READ(RC6_CTX_BASE) & RC6_CTX_BASE_MASK;
> -       if (!((rc6_ctx_base >= ggtt->stolen_reserved_base) &&
> -             (rc6_ctx_base + PAGE_SIZE <= ggtt->stolen_reserved_base +
> -                                       ggtt->stolen_reserved_size))) {
> +       if (!((rc6_ctx_base >= dev_priv->dsm_reserved.start) &&
> +             (rc6_ctx_base + PAGE_SIZE <= dev_priv->dsm_reserved.end + 1))) {

s/<= end + 1/< end/
-Chris


More information about the Intel-gfx mailing list