[Intel-gfx] [PATCH v2] drm/i915/selftests/perf: measure memcpy bw between regions

Chris Wilson chris at chris-wilson.co.uk
Tue Jan 28 19:11:39 UTC 2020


Quoting Chris Wilson (2020-01-28 18:54:18)
> Quoting Matthew Auld (2020-01-28 18:38:06)
> > +               sort(t, ARRAY_SIZE(t), sizeof(*t), wrap_ktime_compare, NULL);
> > +               pr_info("%s src(%s, %s) -> dst(%s, %s) %s %llu KiB copy: %lld MiB/s\n",
> > +                       __func__,
> > +                       src_mr->name,
> > +                       repr_type(src_type),
> > +                       dst_mr->name,
> > +                       repr_type(dst_type),
> > +                       tests[i].name,
> > +                       size >> 10,
> > +                       div64_u64(mul_u32_u32(4 * size,
> > +                                             1000 * 1000 * 1000),
> > +                                 t[1] + 2 * t[2] + t[3]) >> 20);
> 
> Should this be >> 22 ? (20 /* to MiB */ + 2 /* for avergage */)

Ah, 4*size.
-Chris


More information about the Intel-gfx mailing list