Re: [PATCH v1 3/5] gpu: host1x: Support device monitoring with actmon

2024-12-19 Thread Johnny Liu
> On 10/12/2024 18:45, Johnny Liu wrote: > > > + > > +static int host1x_actmon_sample_period_set(void *data, u64 val) > > +{ > > + struct host1x_actmon *actmon = (struct host1x_actmon *)data; > > + > > + actmon->usecs_per_sample = (u32)val; > > + host1x_actmon_update_sample_period(actmon); >

Re: [PATCH v1 3/5] gpu: host1x: Support device monitoring with actmon

2024-12-16 Thread Krzysztof Kozlowski
On 10/12/2024 18:45, Johnny Liu wrote: > + > +static int host1x_actmon_sample_period_set(void *data, u64 val) > +{ > + struct host1x_actmon *actmon = (struct host1x_actmon *)data; > + > + actmon->usecs_per_sample = (u32)val; > + host1x_actmon_update_sample_period(actmon); > + > + r

[PATCH v1 3/5] gpu: host1x: Support device monitoring with actmon

2024-12-10 Thread Johnny Liu
An activity monitor (actmon) is used to measure the device runtime utilization to help drive software power management policies, such as device dynamic frequency scaling. For every host1x client, an actmon is employed to monitor its runtime utilization. Upon detecting an actmon watermark breach ag