Re: [PATCH v2 1/2] drm: Add fdinfo memory stats

2023-04-11 Thread Daniel Vetter
On Tue, Apr 11, 2023 at 08:02:09AM -0700, Rob Clark wrote: > On Tue, Apr 11, 2023 at 3:43 AM Daniel Vetter wrote: > > > > On Mon, Apr 10, 2023 at 02:06:06PM -0700, Rob Clark wrote: > > > From: Rob Clark > > > > > > Add a helper to dump memory stats to fdinfo. For the things the drm > > > core is

Re: [PATCH v2 1/2] drm: Add fdinfo memory stats

2023-04-11 Thread Rob Clark
On Tue, Apr 11, 2023 at 3:43 AM Daniel Vetter wrote: > > On Mon, Apr 10, 2023 at 02:06:06PM -0700, Rob Clark wrote: > > From: Rob Clark > > > > Add a helper to dump memory stats to fdinfo. For the things the drm > > core isn't aware of, use a callback. > > > > v2: Fix typos, change size units to

Re: [PATCH v2 1/2] drm: Add fdinfo memory stats

2023-04-11 Thread Daniel Vetter
On Mon, Apr 10, 2023 at 02:06:06PM -0700, Rob Clark wrote: > From: Rob Clark > > Add a helper to dump memory stats to fdinfo. For the things the drm > core isn't aware of, use a callback. > > v2: Fix typos, change size units to match docs, use div_u64 > > Signed-off-by: Rob Clark > Reviewed-b

[PATCH v2 1/2] drm: Add fdinfo memory stats

2023-04-10 Thread Rob Clark
From: Rob Clark Add a helper to dump memory stats to fdinfo. For the things the drm core isn't aware of, use a callback. v2: Fix typos, change size units to match docs, use div_u64 Signed-off-by: Rob Clark Reviewed-by: Emil Velikov --- Documentation/gpu/drm-usage-stats.rst | 21 +++ dri