Re: [RFC 20/23] cgroup/drm: Introduce weight based scheduling control

2025-06-03 Thread Michal Koutný
e weight > calculations. > > The notifications are also consolidated by using a delayed worker. > > On the userspace API level we use the same range and defaults as the CPU > controller - CGROUP_WEIGHT_MIN, CGROUP_WEIGHT_DFL and CGROUP_WEIGHT_MAX. > > Signed-off

Re: [PATCH RFC v4 11/16] drm, cgroup: Add per cgroup bw measure and control

2019-10-01 Thread Michal Koutný
Hi. On Thu, Aug 29, 2019 at 02:05:28AM -0400, Kenny Ho wrote: > diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c > @@ -1256,6 +1257,12 @@ int ttm_bo_validate(struct ttm_buffer_object *bo, > [...] > + move_delay /= 2000; /* check every half period in ms*/ > [...

Re: [PATCH RFC v4 02/16] cgroup: Introduce cgroup for drm subsystem

2019-10-01 Thread Michal Koutný
Hi. On Thu, Aug 29, 2019 at 02:05:19AM -0400, Kenny Ho wrote: > +struct cgroup_subsys drm_cgrp_subsys = { > + .css_alloc = drmcg_css_alloc, > + .css_free = drmcg_css_free, > + .early_init = false, > + .legacy_cftypes = files, Do you really want to expose the DRM con

Re: [PATCH RFC v4 07/16] drm, cgroup: Add total GEM buffer allocation limit

2019-10-01 Thread Michal Koutný
Hello. On Thu, Aug 29, 2019 at 02:05:24AM -0400, Kenny Ho wrote: > drm.buffer.default > A read-only flat-keyed file which exists on the root cgroup. > Each entry is keyed by the drm device's major:minor. > > Default limits on the total GEM buffer allocation in bytes. What