search for: nouveau_dvfs_dev_status

Displaying 6 results from an estimated 6 matches for "nouveau_dvfs_dev_status".

2014 Dec 18
2
[RFC PATCH 2/3] dvfs: add support for GK20A
...vfs = container_of(alarm, struct nouveau_dvfs, > + alarm); > + struct nouveau_dvfs_data *data = dvfs->data; > + struct nouveau_object *object = nv_object(dvfs); > + struct nouveau_dvfs_impl *impl = (void *)object->oclass; > + struct nouveau_dvfs_dev_status status; > + u32 utilization = 0; > + int state, ret; > + > + ret = impl->get_dev_status(dvfs, &status); > + if (ret) { > + nv_warn(dvfs, "failed to get device status\n"); > + goto resched; > + } >...
2014 Dec 18
3
[RFC PATCH 2/3] dvfs: add support for GK20A
..._dvfs, >>> + alarm); >>> + struct nouveau_dvfs_data *data = dvfs->data; >>> + struct nouveau_object *object = nv_object(dvfs); >>> + struct nouveau_dvfs_impl *impl = (void *)object->oclass; >>> + struct nouveau_dvfs_dev_status status; >>> + u32 utilization = 0; >>> + int state, ret; >>> + >>> + ret = impl->get_dev_status(dvfs, &status); >>> + if (ret) { >>> + nv_warn(dvfs, "failed to get device status\n"); >&gt...
2014 Dec 18
4
[RFC PATCH 0/3] introduce DVFS for GK20A
Hi, This is a try to have some simple DVFS (Dynamic Voltage and Frequency Scaling) support for GK20A. Instead of relying on other existing frequency scaling framework, we create a simple subdev in Nouveau for the same purpose. That's because we don't want to make the DVFS implementation for GK20A far more than enough in the beginning and hinder the implementation for dGPU in the future.
2014 Dec 18
0
[RFC PATCH 2/3] dvfs: add support for GK20A
...au_dvfs_work(struct nouveau_alarm *alarm) +{ + struct nouveau_dvfs *dvfs = container_of(alarm, struct nouveau_dvfs, + alarm); + struct nouveau_dvfs_data *data = dvfs->data; + struct nouveau_object *object = nv_object(dvfs); + struct nouveau_dvfs_impl *impl = (void *)object->oclass; + struct nouveau_dvfs_dev_status status; + u32 utilization = 0; + int state, ret; + + ret = impl->get_dev_status(dvfs, &status); + if (ret) { + nv_warn(dvfs, "failed to get device status\n"); + goto resched; + } + + if (status.total) + utilization = div_u64((u64)status.busy * 100, status.total); + + data->av...
2014 Dec 18
0
[RFC PATCH 2/3] dvfs: add support for GK20A
...larm, struct nouveau_dvfs, >> + alarm); >> + struct nouveau_dvfs_data *data = dvfs->data; >> + struct nouveau_object *object = nv_object(dvfs); >> + struct nouveau_dvfs_impl *impl = (void *)object->oclass; >> + struct nouveau_dvfs_dev_status status; >> + u32 utilization = 0; >> + int state, ret; >> + >> + ret = impl->get_dev_status(dvfs, &status); >> + if (ret) { >> + nv_warn(dvfs, "failed to get device status\n"); >> + goto r...
2014 Dec 18
0
[RFC PATCH 2/3] dvfs: add support for GK20A
...gt; + alarm); >>>> + struct nouveau_dvfs_data *data = dvfs->data; >>>> + struct nouveau_object *object = nv_object(dvfs); >>>> + struct nouveau_dvfs_impl *impl = (void *)object->oclass; >>>> + struct nouveau_dvfs_dev_status status; >>>> + u32 utilization = 0; >>>> + int state, ret; >>>> + >>>> + ret = impl->get_dev_status(dvfs, &status); >>>> + if (ret) { >>>> + nv_warn(dvfs, "failed to get device...