search for: time_befor

Displaying 20 results from an estimated 49 matches for "time_befor".

Did you mean: time_before
2014 Mar 24
2
[PATCH 06/12] drm/nouveau/ibus: add GK20A support
...; +} Perhaps I'm being paranoid, but this loop now depends on the frequency of the various clocks involved and therefore might break at some point if the frequencies get sufficiently high. So a slightly safer implementation would use a proper timeout using a combination of msecs_to_jiffies(), time_before() and usleep_range(), like so: timeout = jiffies + msecs_to_jiffies(...); while (time_before(jiffies, timeout)) { command = nv_rd32(...) & 0x3f; if (command == 0) break; usleep_range(...); } if (time_after(jiffies, timeout)) nv_warn(...); This assumes that there's some...
2014 Apr 02
1
[PATCH 06/12] drm/nouveau/ibus: add GK20A support
...is loop now depends on the frequency >> of the various clocks involved and therefore might break at some point >> if the frequencies get sufficiently high. >> >> So a slightly safer implementation would use a proper timeout using a >> combination of msecs_to_jiffies(), time_before() and usleep_range(), >> like so: >> >> timeout = jiffies + msecs_to_jiffies(...); >> >> while (time_before(jiffies, timeout)) { >> command = nv_rd32(...) & 0x3f; >> if (command == 0) >>...
2014 Apr 02
0
[PATCH 06/12] drm/nouveau/ibus: add GK20A support
...ing paranoid, but this loop now depends on the frequency > of the various clocks involved and therefore might break at some point > if the frequencies get sufficiently high. > > So a slightly safer implementation would use a proper timeout using a > combination of msecs_to_jiffies(), time_before() and usleep_range(), > like so: > > timeout = jiffies + msecs_to_jiffies(...); > > while (time_before(jiffies, timeout)) { > command = nv_rd32(...) & 0x3f; > if (command == 0) > break; > >...
2018 Mar 28
2
[PATCH] vhost-net: add time limitation for tx polling(Internet mail)
...using netperf before this patch as follow, > > Udp payload 1byte 100bytes 1000bytes 1400bytes > Ping avg latency 25ms 10ms 2ms 1.5ms > > What is other testcases? Something like https://patchwork.kernel.org/patch/10151645/. Btw, you need use time_before() to properly handle jiffies overflow and I would also suggest you to try something like #packets limit (e.g 64). For long term, we definitely need more worker threads. Thanks > >> Another thought is introduce another limit of #packets, but this need >> benchmark too. >> &...
2018 Mar 28
2
[PATCH] vhost-net: add time limitation for tx polling(Internet mail)
...using netperf before this patch as follow, > > Udp payload 1byte 100bytes 1000bytes 1400bytes > Ping avg latency 25ms 10ms 2ms 1.5ms > > What is other testcases? Something like https://patchwork.kernel.org/patch/10151645/. Btw, you need use time_before() to properly handle jiffies overflow and I would also suggest you to try something like #packets limit (e.g 64). For long term, we definitely need more worker threads. Thanks > >> Another thought is introduce another limit of #packets, but this need >> benchmark too. >> &...
2002 Jun 06
2
More ext3 fileserver woes ...
Well.... you might remember that I have had problems will my NFS fileserver that run ext3 with data=journal. The filesystem corruption now seems too be solved with the patch (plus amendment) that I posted, so I am happy about that... but there is more. I have known for a while that ext3 doesn't behave very well when the journal fills up. If it finds that the journal is full, and the
2018 Mar 28
0
[PATCH] vhost-net: add time limitation for tx polling(Internet mail)
...; > > > Udp payload 1byte 100bytes 1000bytes 1400bytes > > Ping avg latency 25ms 10ms 2ms 1.5ms > > > > What is other testcases? > > Something like https://patchwork.kernel.org/patch/10151645/. > > Btw, you need use time_before() to properly handle jiffies overflow and I > would also suggest you to try something like #packets limit (e.g 64). Maybe a ring size? > For long term, we definitely need more worker threads. > > Thanks Only helps when you have spare CPUs. > > > > > Another thought...
2020 Nov 03
0
[patch V3 23/37] sched: Make migrate_disable/enable() independent of RT
...+ +#ifdef CONFIG_SMP +void __cant_migrate(const char *file, int line) +{ + static unsigned long prev_jiffy; + + if (irqs_disabled()) + return; + + if (is_migration_disabled(current)) + return; + + if (!IS_ENABLED(CONFIG_PREEMPT_COUNT)) + return; + + if (preempt_count() > 0) + return; + + if (time_before(jiffies, prev_jiffy + HZ) && prev_jiffy) + return; + prev_jiffy = jiffies; + + pr_err("BUG: assuming non migratable context at %s:%d\n", file, line); + pr_err("in_atomic(): %d, irqs_disabled(): %d, migration_disabled() %u pid: %d, name: %s\n", + in_atomic(), irq...
2015 Jun 08
7
[PATCH 0/5][GIT PULL] Miscellaneous fixes for GF100+
Here are a few small fixes for issues we found while implementing support for GM20B. The first two are specific to Tegra/GK20A, but the last 3 patches may have a broader (hopefully beneficial) effect. Note that the newly introduced gf100_gr_wait_idle() function on patch 5/5 is exported on purpose. GK20A and GM20B drivers will soon make use of it. Ben, since you seemed to like these changes, a
2014 May 14
0
[RFC PATCH v1 07/16] drm/nouveau: rework to new fence interface
...mp; time_after_eq(t, timeout)) { + __set_current_state(TASK_RUNNING); + return 0; + } - nouveau_event_get(handler); + __set_current_state(intr ? TASK_INTERRUPTIBLE : + TASK_UNINTERRUPTIBLE); - if (fence->timeout) { - unsigned long timeout = fence->timeout - jiffies; - - if (time_before(jiffies, fence->timeout)) { - if (intr) { - ret = wait_event_interruptible_timeout( - priv->waiting, - nouveau_fence_done(fence), - timeout); - } else { - ret = wait_event_timeout(priv->waiting, - nouveau_fence_done(fence), - timeout); - } - } + kt =...
2007 Apr 18
5
[patch 0/4] Revised softlockup watchdog improvement patches
Hi Ingo, This series of patches implements a number of improvements to the softlockup watchdog and its users. They are: 1. Make the watchdog ignore stolen time When running under a hypervisor, the kernel may lose an arbitrary amount of time as "stolen time". This may cause the softlockup watchdog to trigger spruiously. Xen and VMI implement sched_clock() as measuring unstolen time,
2007 Apr 18
5
[patch 0/4] Revised softlockup watchdog improvement patches
Hi Ingo, This series of patches implements a number of improvements to the softlockup watchdog and its users. They are: 1. Make the watchdog ignore stolen time When running under a hypervisor, the kernel may lose an arbitrary amount of time as "stolen time". This may cause the softlockup watchdog to trigger spruiously. Xen and VMI implement sched_clock() as measuring unstolen time,
2019 Apr 25
6
[PATCH v4 0/4] vmw_balloon: Compaction and shrinker support
VMware balloon enhancements: adding support for memory compaction, memory shrinker (to prevent OOM) and splitting of refused pages to prevent recurring inflations. Patches 1-2: Support for compaction Patch 3: Support for memory shrinker - disabled by default Patch 4: Split refused pages to improve performance v3->v4: * "get around to" comment [Michael] * Put list_add under page lock
2019 Apr 25
6
[PATCH v4 0/4] vmw_balloon: Compaction and shrinker support
VMware balloon enhancements: adding support for memory compaction, memory shrinker (to prevent OOM) and splitting of refused pages to prevent recurring inflations. Patches 1-2: Support for compaction Patch 3: Support for memory shrinker - disabled by default Patch 4: Split refused pages to improve performance v3->v4: * "get around to" comment [Michael] * Put list_add under page lock
2003 May 22
0
[PATCH 2.5.69 1/3] remove ipconfig support from the kernel
...- if (do_bootp && (d->able & IC_BOOTP)) - ic_bootp_send_if(d, jiffies - start_jiffies); -#endif -#ifdef IPCONFIG_RARP - if (do_rarp && (d->able & IC_RARP)) - ic_rarp_send_if(d); -#endif - - jiff = jiffies + (d->next ? CONF_INTER_TIMEOUT : timeout); - while (time_before(jiffies, jiff) && !ic_got_reply) { - barrier(); - cpu_relax(); - } -#ifdef IPCONFIG_DHCP - /* DHCP isn't done until we get a DHCPACK. */ - if ((ic_got_reply & IC_BOOTP) - && (ic_proto_enabled & IC_USE_DHCP) - && ic_dhcp_msgtype != DHCPACK) - {...
2015 Mar 11
0
[PATCH] pmu/gk20a: PMU boot support.
...return 0; > + > + if (nv_rd32(ppmu, 0x0010a008)) > + gk20a_pmu_isr(ppmu); > + > + usleep_range(delay, delay * 2); > + delay = min_t(u32, delay << 1, GK20A_IDLE_CHECK_MAX); > + } while (time_before(jiffies, end_jiffies)); > + > + return -ETIMEDOUT; > +} > + > +void pmu_dump_falcon_stats(struct pmu_desc *pmu) > +{ > + struct nvkm_pmu *ppmu = (void *)nvkm_pmu((void *) > + impl_from_pmu(pmu)); > + int i; > + > + nv_debug(ppm...
2015 Mar 11
3
[PATCH] pmu/gk20a: PMU boot support.
...ffies + msecs_to_jiffies(timeout); + unsigned long delay = GK20A_IDLE_CHECK_DEFAULT; + + do { + if (*var == val) + return 0; + + if (nv_rd32(ppmu, 0x0010a008)) + gk20a_pmu_isr(ppmu); + + usleep_range(delay, delay * 2); + delay = min_t(u32, delay << 1, GK20A_IDLE_CHECK_MAX); + } while (time_before(jiffies, end_jiffies)); + + return -ETIMEDOUT; +} + +void pmu_dump_falcon_stats(struct pmu_desc *pmu) +{ + struct nvkm_pmu *ppmu = (void *)nvkm_pmu((void *) + impl_from_pmu(pmu)); + int i; + + nv_debug(ppmu, "pmu_falcon_os_r : %d\n", + nv_rd32(ppmu, 0x0010a080)); + nv_debug(ppmu, &quot...
2019 Apr 23
5
[PATCH v3 0/4] vmw_balloon: compaction and shrinker support
VMware balloon enhancements: adding support for memory compaction, memory shrinker (to prevent OOM) and splitting of refused pages to prevent recurring inflations. Patches 1-2: Support for compaction Patch 3: Support for memory shrinker - disabled by default Patch 4: Split refused pages to improve performance v2->v3: * Fixing wrong argument type (int->size_t) [Michael] * Fixing a comment
2015 May 29
0
[PATCH v3] RFC: New virt-dib tool
...0s %10.3f\n" x (Hashtbl.find timings x); + ) entries; + Buffer.add_char buf '\n'; + Buffer.add_string buf "--------------------- END PROFILING ---------------------\n"; + Buffer.contents buf + +type sysroot_type = + | In + | Out + | Subroot + +let timed_run fn = + let time_before = Unix.gettimeofday () in + fn (); + let time_after = Unix.gettimeofday () in + time_after -. time_before + +let run_parts ~debug ~sysroot ~blockdev ~log_file ?(new_wd = "") + (g : Guestfs.guestfs) hook_name scripts = + let hook_dir = "/tmp/aux/hooks/" ^ hook_name in + le...
2014 Mar 24
27
[PATCH 00/12] drm/nouveau: support for GK20A, cont'd
Hi everyone, Here is the second batch of patches to add GK20A support to Nouveau. This time we are adding the actual chip support, and this series brings the driver to a point where a slightly-tweaked Mesa successfully runs shaders and renders triangles on GBM! Many thanks to Thierry Reding and the people on the #nouveau IRC channel for their help without which we would not have reached this