[Intel-gfx] (subset) [PATCH 1/7] drm: Do not round to megabytes for greater than 1MiB sizes in fdinfo stats
Maxime Ripard
mripard at kernel.org
Mon Nov 6 10:45:45 UTC 2023
On Wed, 27 Sep 2023 14:38:37 +0100, Tvrtko Ursulin wrote:
> It is better not to lose precision and not revert to 1 MiB size
> granularity for every size greater than 1 MiB.
>
> Sizes in KiB should not be so troublesome to read (and in fact machine
> parsing is I expect the norm here), they align with other api like
> /proc/meminfo, and they allow writing tests for the interface without
> having to embed drm.ko implementation knowledge into them. (Like knowing
> that minimum buffer size one can use for successful verification has to be
> 1MiB aligned, and on top account for any pre-existing memory utilisation
> outside of driver's control.)
>
> [...]
Applied to drm/drm-misc (drm-misc-next).
Thanks!
Maxime
More information about the Intel-gfx
mailing list