Re: [PATCH 4/6] drm/i915: make reserved struct resource centric

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Matthew Auld (2017-11-22 21:19:18)
> Signed-off-by: Matthew Auld <matthew.auld@xxxxxxxxx>
> Cc: Joonas Lahtinen <joonas.lahtinen@xxxxxxxxxxxxxxx>
> Cc: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
> Cc: Paulo Zanoni <paulo.r.zanoni@xxxxxxxxx>
> ---
> @@ -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
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux