search for: idle_stat

Displaying 3 results from an estimated 3 matches for "idle_stat".

Did you mean: idle_state
2015 Mar 11
0
[PATCH] pmu/gk20a: PMU boot support.
...mutex_unlock(&pmu->pmu_copy_lock); > +out: > + nv_debug(ppmu, "exit %s", __func__); > +} > + > +static int pmu_idle(struct nvkm_pmu *ppmu) > +{ > + unsigned long end_jiffies = jiffies + > + msecs_to_jiffies(2000); > + u32 idle_stat; > + > + /* wait for pmu idle */ > + do { > + idle_stat = nv_rd32(ppmu, 0x0010a04c); > + > + if (((idle_stat & 0x01) == 0) && > + ((idle_stat >> 1) & 0x7fff) == 0) { > +...
2015 Mar 11
3
[PATCH] pmu/gk20a: PMU boot support.
...opy failed. bytes written %d, expected %d", + data - dst, size); + } + mutex_unlock(&pmu->pmu_copy_lock); +out: + nv_debug(ppmu, "exit %s", __func__); +} + +static int pmu_idle(struct nvkm_pmu *ppmu) +{ + unsigned long end_jiffies = jiffies + + msecs_to_jiffies(2000); + u32 idle_stat; + + /* wait for pmu idle */ + do { + idle_stat = nv_rd32(ppmu, 0x0010a04c); + + if (((idle_stat & 0x01) == 0) && + ((idle_stat >> 1) & 0x7fff) == 0) { + break; + } + + if (time_after_eq(jiffies, end_jiffies)) { + nv_error(ppmu, "timeout waiting pmu idle : 0x%08...
2015 Mar 12
2
[PATCH] pmu/gk20a: PMU boot support.
...mutex_unlock(&pmu->pmu_copy_lock); > +out: > + nv_debug(ppmu, "exit %s", __func__); > +} > + > +static int pmu_idle(struct nvkm_pmu *ppmu) > +{ > + unsigned long end_jiffies = jiffies + > + msecs_to_jiffies(2000); > + u32 idle_stat; > + > + /* wait for pmu idle */ > + do { > + idle_stat = nv_rd32(ppmu, 0x0010a04c); > + > + if (((idle_stat & 0x01) == 0) && > + ((idle_stat >> 1) & 0x7fff) == 0) { > +...