search for: cur_stat

Displaying 19 results from an estimated 19 matches for "cur_stat".

2015 Jan 06
2
[PATCH 3/11] memory: tegra: add flush operation for Tegra124 memory clients
...> + {TEGRA_SWGROUP_ISP2B, 0x970, 0x974, 1}, > + {TEGRA_SWGROUP_GPU, 0x970, 0x974, 2}, > +}; > + > #ifdef CONFIG_ARCH_TEGRA_124_SOC > + > +static bool tegra124_stable_hotreset_check(struct tegra_mc *mc, > + u32 reg, u32 *stat) > +{ > + int i; > + u32 cur_stat; > + u32 prv_stat; > + > + prv_stat = mc_readl(mc, reg); > + for (i = 0; i < 5; i++) { > + cur_stat = mc_readl(mc, reg); > + if (cur_stat != prv_stat) > + return false; > + } Why this loop? The function is already called in a polling loop below. Also why compare to t...
2015 Jan 06
1
[PATCH 3/11] memory: tegra: add flush operation for Tegra124 memory clients
...970, 0x974, 2}, > > > +}; > > > + > > > #ifdef CONFIG_ARCH_TEGRA_124_SOC > > > + > > > +static bool tegra124_stable_hotreset_check(struct tegra_mc *mc, > > > + u32 reg, u32 *stat) > > > +{ > > > + int i; > > > + u32 cur_stat; > > > + u32 prv_stat; > > > + > > > + prv_stat = mc_readl(mc, reg); > > > + for (i = 0; i < 5; i++) { > > > + cur_stat = mc_readl(mc, reg); > > > + if (cur_stat != prv_stat) > > > + return false; > > > + } > > &g...
2014 Dec 23
0
[PATCH 3/11] memory: tegra: add flush operation for Tegra124 memory clients
...0, 31}, + {TEGRA_SWGROUP_SDMMC4A, 0x970, 0x974, 0}, + {TEGRA_SWGROUP_ISP2B, 0x970, 0x974, 1}, + {TEGRA_SWGROUP_GPU, 0x970, 0x974, 2}, +}; + #ifdef CONFIG_ARCH_TEGRA_124_SOC + +static bool tegra124_stable_hotreset_check(struct tegra_mc *mc, + u32 reg, u32 *stat) +{ + int i; + u32 cur_stat; + u32 prv_stat; + + prv_stat = mc_readl(mc, reg); + for (i = 0; i < 5; i++) { + cur_stat = mc_readl(mc, reg); + if (cur_stat != prv_stat) + return false; + } + *stat = cur_stat; + return true; +} + +static int tegra124_mc_flush(struct tegra_mc *mc, + const struct tegra_mc_hr *hr_client, bo...
2015 Jan 06
0
[PATCH 3/11] memory: tegra: add flush operation for Tegra124 memory clients
...1}, > > + {TEGRA_SWGROUP_GPU, 0x970, 0x974, 2}, > > +}; > > + > > #ifdef CONFIG_ARCH_TEGRA_124_SOC > > + > > +static bool tegra124_stable_hotreset_check(struct tegra_mc *mc, > > + u32 reg, u32 *stat) > > +{ > > + int i; > > + u32 cur_stat; > > + u32 prv_stat; > > + > > + prv_stat = mc_readl(mc, reg); > > + for (i = 0; i < 5; i++) { > > + cur_stat = mc_readl(mc, reg); > > + if (cur_stat != prv_stat) > > + return false; > > + } > > Why this loop? The function is already cal...
2008 Nov 25
1
sio vs uart vs ucomm problems / differences
...fine and I can transfer data back and forth just fine. Is it possible some defaults are different from sio to uart that our app might not be setting properly when opening up the port ? The open routine is below static int open_dev(struct dev *dev) { struct termios t; int val; cur_state.carrier = 0; if (cur_state.num_trans == 0) { cur_state.startup = time(0); } TRY_OPEN_AGAIN: dev->fd = open(dev->name, O_RDWR); if (dev->fd >= 0) { if (debug) { syslog(LOG_LOCAL1 | LOG_DEBUG, "(%s) %s:%d: open_...
2014 Dec 23
18
[PATCH 0/11] Add suspend/resume support for GK20A
Hi, This series includes some pieces of fixes to complete the GK20A power on/off sequences and add the suspend/resume support. The patches 1/11 - 4/11 are based on the linux-next-20141219. The patches 5/11 - 11/11 are based on the branch "linux-3.19" of Ben Skeggs's tree (http://cgit.freedesktop.org/~darktama/nouveau). Thanks, Vince Vince Hsu (4): (linux-next-20141219) ARM:
2017 Jun 16
2
[EXTERNAL] Re: Submitting a patch that exposes VAD voiced/unvoiced signal type
Hi Peter, Can you say a little bit more about what you're doing exactly with the information you're exposing and how? unfortunately, I don't have a concrete proposal in mind right now. That's in part because I don't quite understand the use case, but also because it's really hard to expose this kind of information in a way that both avoids breaking application with new
2017 Jun 20
0
[EXTERNAL] Re: Submitting a patch that exposes VAD voiced/unvoiced signal type
...value assigned to prevSignalType. Here's a snippet of our code: error = opus_encoder_get_internal_flags(vad->opus, &internalflags); if (error != OPUS_OK) { return OPUSVAD_OPUS_ERROR; } cur_signal_type = internalflags.prevSignalType; if ((vad->cur_state == STATE_NO_STATE) && (cur_signal_type == TYPE_UNVOICED || cur_signal_type == TYPE_VOICED) && (vad->prev_signal_type == TYPE_NO_VOICE_ACTIVITY)) { ... Our library uses this information to apply end pointing on voice-based audio. For example, we work with many customers imp...
2014 Dec 18
2
[RFC PATCH 2/3] dvfs: add support for GK20A
...oad = (data->p_smooth * data->avg_load) + utilization; > + data->avg_load /= data->p_smooth + 1; > + nv_trace(dvfs, "utilization = %d %%, avg_load = %d %%\n", > + utilization, data->avg_load); > + > + ret = impl->get_cur_state(dvfs, &state); > + if (ret) { > + nv_warn(dvfs, "failed to get current state\n"); > + goto resched; > + } > + > + if (impl->get_target_state(dvfs, &state, data->avg_load)) { > + nv_trace(dvfs,...
2014 Dec 18
3
[RFC PATCH 2/3] dvfs: add support for GK20A
...load) + utilization; >>> + data->avg_load /= data->p_smooth + 1; >>> + nv_trace(dvfs, "utilization = %d %%, avg_load = %d %%\n", >>> + utilization, data->avg_load); >>> + >>> + ret = impl->get_cur_state(dvfs, &state); >>> + if (ret) { >>> + nv_warn(dvfs, "failed to get current state\n"); >>> + goto resched; >>> + } >>> + >>> + if (impl->get_target_state(dvfs, &state, data->a...
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
...v_u64((u64)status.busy * 100, status.total); + + data->avg_load = (data->p_smooth * data->avg_load) + utilization; + data->avg_load /= data->p_smooth + 1; + nv_trace(dvfs, "utilization = %d %%, avg_load = %d %%\n", + utilization, data->avg_load); + + ret = impl->get_cur_state(dvfs, &state); + if (ret) { + nv_warn(dvfs, "failed to get current state\n"); + goto resched; + } + + if (impl->get_target_state(dvfs, &state, data->avg_load)) { + nv_trace(dvfs, "set new state to %d\n", state); + impl->target(dvfs, &state); + } + +resc...
2014 Dec 18
0
[RFC PATCH 2/3] dvfs: add support for GK20A
...ooth * data->avg_load) + utilization; >> + data->avg_load /= data->p_smooth + 1; >> + nv_trace(dvfs, "utilization = %d %%, avg_load = %d %%\n", >> + utilization, data->avg_load); >> + >> + ret = impl->get_cur_state(dvfs, &state); >> + if (ret) { >> + nv_warn(dvfs, "failed to get current state\n"); >> + goto resched; >> + } >> + >> + if (impl->get_target_state(dvfs, &state, data->avg_load)) { >> +...
2014 Dec 18
0
[RFC PATCH 2/3] dvfs: add support for GK20A
...>>>> + data->avg_load /= data->p_smooth + 1; >>>> + nv_trace(dvfs, "utilization = %d %%, avg_load = %d %%\n", >>>> + utilization, data->avg_load); >>>> + >>>> + ret = impl->get_cur_state(dvfs, &state); >>>> + if (ret) { >>>> + nv_warn(dvfs, "failed to get current state\n"); >>>> + goto resched; >>>> + } >>>> + >>>> + if (impl->get_target_state(dvfs...
2014 Dec 22
7
[PATCH V2 1/4] clk: allow non-blocking for nouveau_clock_astate()
There might be some callers of nouveau_clock_astate(), and they are from inetrrupt context. So we must ensure that this function can be atomic in that condition. This patch adds one parameter which is subsequently passed to nouveau_pstate_calc(). Therefore we can choose whether we want to wait for the pstate work's completion or not. Signed-off-by: Vince Hsu <vinceh at nvidia.com> ---
2015 Mar 11
0
[PATCH] pmu/gk20a: PMU boot support.
...oad_max; > int p_smooth; > unsigned int avg_load; > }; > - > struct gk20a_pmu_priv { > struct nvkm_pmu base; > struct nvkm_alarm alarm; > @@ -46,7 +92,30 @@ struct gk20a_pmu_dvfs_dev_status { > unsigned long busy; > int cur_state; > }; > - > +int gk20a_pmu_debugfs_init(struct nvkm_pmu *ppmu) > +{ > + struct dentry *d; > + ppmu->debugfs = debugfs_create_dir("PMU", NULL); > + if (!ppmu->debugfs) > + goto err_out; > + nv_debug(ppmu, "PMU di...
2015 Mar 11
3
[PATCH] pmu/gk20a: PMU boot support.
..._pmu *ppmu, bool enable); struct gk20a_pmu_dvfs_data { int p_load_target; int p_load_max; int p_smooth; unsigned int avg_load; }; - struct gk20a_pmu_priv { struct nvkm_pmu base; struct nvkm_alarm alarm; @@ -46,7 +92,30 @@ struct gk20a_pmu_dvfs_dev_status { unsigned long busy; int cur_state; }; - +int gk20a_pmu_debugfs_init(struct nvkm_pmu *ppmu) +{ + struct dentry *d; + ppmu->debugfs = debugfs_create_dir("PMU", NULL); + if (!ppmu->debugfs) + goto err_out; + nv_debug(ppmu, "PMU directory created with success\n"); + d = debugfs_create_file( + "falc_tr...
2016 Dec 13
15
[PATCH v2 0/15] Falcon library
This was the first step of the secure boot refactoring - as Ben asked for some fixes, I now submit it as its own series to make it easier to review (and also because rebasing secure boot on top of this takes time and I don't want to do it until this is validated!). This series attempts to factorize the duplicate falcon-related code into a single library, using the existing nvkm_falcon
2015 Mar 12
2
[PATCH] pmu/gk20a: PMU boot support.
...oad_max; > int p_smooth; > unsigned int avg_load; > }; > - > struct gk20a_pmu_priv { > struct nvkm_pmu base; > struct nvkm_alarm alarm; > @@ -46,7 +92,30 @@ struct gk20a_pmu_dvfs_dev_status { > unsigned long busy; > int cur_state; > }; > - > +int gk20a_pmu_debugfs_init(struct nvkm_pmu *ppmu) > +{ > + struct dentry *d; > + ppmu->debugfs = debugfs_create_dir("PMU", NULL); > + if (!ppmu->debugfs) > + goto err_out; > + nv_debug(ppmu, "PMU di...