[Intel-gfx] [PATCH i-g-t 03/11] tests/perf: update max buffer size for reading reports

Chris Wilson chris at chris-wilson.co.uk
Fri Aug 4 11:41:11 UTC 2017


Quoting Lionel Landwerlin (2017-08-04 12:20:32)
> Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
> ---
>  tests/perf.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/tests/perf.c b/tests/perf.c
> index 279ff0c6..65a1606d 100644
> --- a/tests/perf.c
> +++ b/tests/perf.c
> @@ -1271,9 +1271,7 @@ read_2_oa_reports(int format_id,
>         /* Note: we allocate a large buffer so that each read() iteration
>          * should scrape *all* pending records.
>          *
> -        * The largest buffer the OA unit supports is 16MB and the smallest
> -        * OA report format is 64bytes allowing up to 262144 reports to
> -        * be buffered.
> +        * The largest buffer the OA unit supports is 16MB.

Out of curiosity, how is userspace meant to know? Or is it part of the
platform specific details that we spread around kernel/userspace?
-Chris


More information about the Intel-gfx mailing list