[Intel-gfx] [PATCH 4/4] drm/i915/perf: add a parameter to control the size of OA buffer

Chris Wilson chris at chris-wilson.co.uk
Wed Oct 10 17:01:03 UTC 2018


Quoting Lionel Landwerlin (2018-10-10 17:55:33)
> @@ -1518,12 +1520,14 @@ static int alloc_oa_buffer(struct drm_i915_private *dev_priv)
>                 goto err_unref;
>  
>         /* PreHSW required 512K alignment, HSW requires 16M */
> -       vma = i915_gem_object_ggtt_pin(bo, NULL, 0, SZ_16M, 0);
> +       vma = i915_gem_object_ggtt_pin(bo, NULL, 0, size, 0);

That's not size, that's align. Presumably this doesn't change as HSW is
still going to require 16MiB?
-Chris


More information about the Intel-gfx mailing list