Re: Improving AIO cancellation

2013-02-11 Thread Anatol Pomozov
Hi On Fri, Feb 8, 2013 at 1:11 PM, Kent Overstreet wrote: > On Fri, Feb 08, 2013 at 09:38:11AM -0800, Zach Brown wrote: >> > The draft implementation will look like this. struct bio should have >> > some way to get current status of kiocb that generated bio. So we add >> > a pointer to bool flag.

Re: [PATCH] fs: Preserve error code in get_empty_filp()

2012-09-04 Thread Anatol Pomozov
Hi, Al Do you have some time to review this change? Does it look good? On Thu, Aug 2, 2012 at 5:47 PM, Anatol Pomozov wrote: > Allocating a file structure in function get_empty_filp() might fail because > of several reasons: > - not enough memory for file structures > - oper

[PATCH] fs: Preserve error code in get_empty_filp()

2012-09-12 Thread Anatol Pomozov
of get_empty_filp() assume that the function can fail with ENFILE only. Return error through pointer. Change all callers to preserve this error code. Signed-off-by: Anatol Pomozov Reviewed-by: "Theodore Ts'o" --- arch/ia64/kernel/perfmon.c | 4 ++-- fs/anon_inodes.c

Re: [PATCH] fs: Preserve error code in get_empty_filp()

2012-10-05 Thread Anatol Pomozov
error, but in fact the correct error would be ENOMEM. get_empty_filp() should preserve the original error and not to replace all errors with ENFILE. On Wed, Sep 12, 2012 at 8:11 PM, Anatol Pomozov wrote: > Allocating a file structure in function get_empty_filp() might fail because > of several r

Re: do_div() silently truncates "base" to 32bit

2013-09-04 Thread Anatol Pomozov
Hi On Fri, Aug 30, 2013 at 5:50 PM, Anatol Pomozov wrote: > Hi, Joe > > On Fri, Aug 30, 2013 at 4:28 PM, Joe Perches wrote: >> On Fri, 2013-08-30 at 15:48 -0700, Randy Dunlap wrote: >>> On 08/30/13 15:14, Anatol Pomozov wrote: >>> > But another question still

Re: [PATCH 1/2] Revert "Revert "math64: New div64_u64_rem helper""

2013-09-04 Thread Anatol Pomozov
Hi, On Fri, Aug 9, 2013 at 12:56 PM, Mike Snitzer wrote: > This reverts commit f3002134158092178be81339ec5a22ff80e6c308. > > div64_u64_rem was removed because there were no other users. In the light of this discussion https://lkml.org/lkml/2013/8/30/417 we will have more users of div64_u64_rem

mm: Export 'pageflag_names' array

2013-10-07 Thread Anatol Pomozov
Hi Wu I have a request wrt your old commit 718a38211. I think it makes sense to export array pageflag_names so kernel dump debug tools (like 'crash') can use it as well. Currently the tool hard-codes flag names but it is suboptimal as flags are different for different configs. What do you think?

[PATCH] core: Catch overflows in do_div() function

2013-10-08 Thread Anatol Pomozov
If second parameter passed to this function was 64 then it silently truncates to 32 bits. Catch such situation. Signed-off-by: Anatol Pomozov --- include/asm-generic/div64.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/asm-generic/div64.h b/include/asm-generic/div64.h index

Re: [PATCH] core: Catch overflows in do_div() function

2013-10-08 Thread Anatol Pomozov
Hi On Tue, Oct 8, 2013 at 9:45 AM, Richard Weinberger wrote: > On Tue, Oct 8, 2013 at 6:18 PM, Joe Perches wrote: >> On Tue, 2013-10-08 at 09:10 -0700, Anatol Pomozov wrote: >>> If second parameter passed to this function was 64 then it silently >>> truncates to 32

Re: [PATCH] core: Catch overflows in do_div() function

2013-10-08 Thread Anatol Pomozov
Hi On Tue, Oct 8, 2013 at 10:28 AM, Anatol Pomozov wrote: > Hi > > On Tue, Oct 8, 2013 at 9:45 AM, Richard Weinberger > wrote: >> On Tue, Oct 8, 2013 at 6:18 PM, Joe Perches wrote: >>> On Tue, 2013-10-08 at 09:10 -0700, Anatol Pomozov wrote: >>>> If secon

Re: mm: Export 'pageflag_names' array

2013-10-08 Thread Anatol Pomozov
Hi On Tue, Oct 8, 2013 at 5:40 AM, Dave Anderson wrote: > > > - Original Message - >> Hi Anatol, >> >> On Mon, Oct 07, 2013 at 10:53:32AM -0700, Anatol Pomozov wrote: >> > Hi Wu >> > >> > I have a request wrt your old commit 718a3

do_div() silently truncates "base" to 32bit

2013-08-30 Thread Anatol Pomozov
Hi, I was debugging weird "zero divide" problem in CFQ code below static u64 cfqg_prfill_avg_queue_size(struct seq_file *sf, struct blkg_policy_data *pd, int off) { struct cfq_group *cfqg = pd_to_cfqg(pd); u64 samples = blkg_stat_read(&cfqg->stats.avg_queue_size_samples); u64

Re: do_div() silently truncates "base" to 32bit

2013-08-30 Thread Anatol Pomozov
Hi On Fri, Aug 30, 2013 at 2:23 PM, Randy Dunlap wrote: > On 08/30/13 10:21, Anatol Pomozov wrote: >> Hi, >> >> >> I was debugging weird "zero divide" problem in CFQ code below >> >> >> static u64 cfqg_prfill_avg_queue_size(struct seq_

Re: do_div() silently truncates "base" to 32bit

2013-08-30 Thread Anatol Pomozov
Hi, Joe On Fri, Aug 30, 2013 at 4:28 PM, Joe Perches wrote: > On Fri, 2013-08-30 at 15:48 -0700, Randy Dunlap wrote: >> On 08/30/13 15:14, Anatol Pomozov wrote: >> > But another question still remains: why compiler does not warn that >> > size truncation happens? How t

[PATCH] kref: minor cleanup

2013-04-19 Thread Anatol Pomozov
Follow-up for https://lkml.org/lkml/2013/4/12/391 * make warning smp-safe * result of atomic _unless_zero functions should be checked by caller to avoid use-after-free error Signed-off-by: Anatol Pomozov --- include/linux/kref.h | 9 ++--- lib/kobject.c| 3 ++- 2 files changed

Re: [PATCH] kref: minor cleanup

2013-04-19 Thread Anatol Pomozov
Hi On Fri, Apr 19, 2013 at 7:24 PM, Greg KH wrote: > On Fri, Apr 19, 2013 at 06:33:54PM -0700, Anatol Pomozov wrote: >> Follow-up for https://lkml.org/lkml/2013/4/12/391 >> >> * make warning smp-safe >> * result of atomic _unless_zero functions should be checked by

[PATCH] kref: minor cleanup

2013-04-20 Thread Anatol Pomozov
Follow-up for https://lkml.org/lkml/2013/4/12/391 * make warning smp-safe * result of atomic _unless_zero functions should be checked by caller to avoid use-after-free error Signed-off-by: Anatol Pomozov --- include/linux/kobject.h | 1 + include/linux/kref.h| 9 ++--- lib

[PATCH] kref: minor cleanup

2013-05-07 Thread Anatol Pomozov
* make warning smp-safe * result of atomic _unless_zero functions should be checked by caller to avoid use-after-free error * minor stylistic fixes Link: https://lkml.org/lkml/2013/4/12/391 Tested: compile x86, boot machine and run xfstests Signed-off-by: Anatol Pomozov --- include/linux

Re: [PATCH] kref: minor cleanup

2013-04-24 Thread Anatol Pomozov
Hi On Sat, Apr 20, 2013 at 3:34 PM, Greg KH wrote: > On Sat, Apr 20, 2013 at 09:15:10AM -0700, Anatol Pomozov wrote: >> Follow-up for https://lkml.org/lkml/2013/4/12/391 > > That's not needed in a changelog comment. > >> * make warning smp-safe >> * result of a

[PATCH] module: Fix race condition between load and unload module

2013-04-12 Thread Anatol Pomozov
find_obj() is not thread-safe with kobject_put() if no external refcounts are held. Other kset_find_obj() callers should be checked and made sure they do not race with kobject_put(). Signed-off-by: Anatol Pomozov --- include/linux/kobject.h | 1 + include/linux/kref.h| 8 +--- kernel/modu

Re: [PATCH] module: Fix race condition between load and unload module

2013-04-12 Thread Anatol Pomozov
Hi On Fri, Apr 12, 2013 at 4:53 PM, Greg Kroah-Hartman wrote: > On Fri, Apr 12, 2013 at 04:47:50PM -0700, Linus Torvalds wrote: >> On Fri, Apr 12, 2013 at 3:32 PM, Anatol Pomozov >> wrote: >> > >> > Here is timeline for the crash in case if kset_find_obj() searc

Re: [PATCH] module: Fix race condition between load and unload module

2013-04-12 Thread Anatol Pomozov
I ran the test case for ~30 minutes and no crash. Before the patch it took ~10 seconds for me to repro the crash. The only harmless warning I see is [ 1553.658421] [ cut here ] [ 1553.663211] WARNING: at fs/sysfs/dir.c:536 sysfs_add_one+0xbb/0xe0() [ 1553.669571] Hardware

Re: [PATCH] module: Fix race condition between load and unload module

2013-04-13 Thread Anatol Pomozov
Hi On Fri, Apr 12, 2013 at 4:47 PM, Linus Torvalds wrote: > On Fri, Apr 12, 2013 at 3:32 PM, Anatol Pomozov > wrote: >> >> Here is timeline for the crash in case if kset_find_obj() searches for >> an object tht nobody holds and other thread is doing kobject_put(

Re: [PATCH] module: Fix race condition between load and unload module

2013-04-13 Thread Anatol Pomozov
Hi On Sat, Apr 13, 2013 at 10:53 AM, Linus Torvalds wrote: > On Sat, Apr 13, 2013 at 8:41 AM, Anatol Pomozov > wrote: >> >> Does it make sense to move it to a separate function in kref.h? >> >> /** Useful when kref_get is racing with kref_put and r

Re: [PATCH] module: Fix race condition between load and unload module

2013-04-13 Thread Anatol Pomozov
Hi On Sat, Apr 13, 2013 at 8:35 PM, Al Viro wrote: > On Fri, Apr 12, 2013 at 04:47:50PM -0700, Linus Torvalds wrote: >> This is a much more generic bug in kobjects, and I would hate to add >> some random workaround for just one case of this bug like you do. The >> more fundamental bug needs to be

[PATCH] loop: prevent bdev freeing while device in use

2013-04-01 Thread Anatol Pomozov
bs=1M count=1 while [ true ]; do losetup /dev/loop0 loop.file echo 2 > /proc/sys/vm/drop_caches losetup -d /dev/loop0 done Signed-off-by: Anatol Pomozov --- drivers/block/loop.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers

Re: [3.9-rc5] INFO: task umount:29671 blocked for more than 120 seconds

2013-04-01 Thread Anatol Pomozov
+Guo Chao who fixed similar bug recently On Mon, Apr 1, 2013 at 2:17 AM, Jongman Heo wrote: > > Hi guys, > > I hit following warning with 3.9-rc5, during unmount (the device was mounted > via loop device, in case it matters). > > Jongman. > > [ 3600.583547] INFO: task umount:29671 blocked for m

Re: losetup kernel crash in drivers/block/loop.c kernel 3.4.11

2013-04-01 Thread Anatol Pomozov
Hi On Wed, Oct 3, 2012 at 1:51 AM, Stefani Seibold wrote: > Hi, > > i am faced with a strange kernel crash while removing a loopback device > with losetup, during a software update of my embedded device, which was > introduced between 3.0 and 3.4. All other used kernels 2.6.39, 2.6.35, > 2.6.33,

Re: Oops in loop_clr_fd => bd_set_size

2013-04-01 Thread Anatol Pomozov
Hi On Sun, Aug 5, 2012 at 7:02 PM, Alan Curry wrote: > I got an Oops from running "losetup -d /dev/loop2". The trace shows > loop_clr_fd calling bd_set_size, and the parameter bdev appears to have a > NULL in its bd_disk field. > > The losetup command was run as part of a script that did this: >

Re: [PATCH] loop: prevent bdev freeing while device in use

2013-04-01 Thread Anatol Pomozov
Hi On Mon, Apr 1, 2013 at 9:28 AM, Al Viro wrote: > On Mon, Apr 01, 2013 at 04:58:05AM -0700, Anatol Pomozov wrote: >> lo->lo_flags |= LO_FLAGS_PARTSCAN; >> if (lo->lo_flags & LO_FLAGS_PARTSCAN) >> ioctl_by_bdev(bdev, BLKRR

[PATCH] loop: prevent bdev freeing while device in use

2013-04-01 Thread Anatol Pomozov
bs=1M count=1 while [ true ]; do losetup /dev/loop0 loop.file echo 2 > /proc/sys/vm/drop_caches losetup -d /dev/loop0 done Signed-off-by: Anatol Pomozov --- drivers/block/loop.c | 9 - fs/block_dev.c | 1 + 2 files changed, 9 insertions(+), 1 deletion(-

Re: [PATCH] loop: prevent bdev freeing while device in use

2013-04-01 Thread Anatol Pomozov
Hi On Mon, Apr 1, 2013 at 8:16 AM, Linus Torvalds wrote: > On Mon, Apr 1, 2013 at 4:58 AM, Anatol Pomozov > wrote: >> >> To prevent use-after-free we need to hold device inode in loop_set_fd() >> and put it later in loop_clr_fd(). > > Is there something that gu

Re: [PATCH] loop: prevent bdev freeing while device in use

2013-04-01 Thread Anatol Pomozov
Hi On Mon, Apr 1, 2013 at 3:53 PM, Linus Torvalds wrote: > On Mon, Apr 1, 2013 at 10:00 AM, Anatol Pomozov > wrote: >> Hi >> >> On Mon, Apr 1, 2013 at 8:16 AM, Linus Torvalds >> wrote: >>> On Mon, Apr 1, 2013 at 4:58 AM, Anatol Pomozov >>> wr

[PATCH] fs: Preserve error code in get_empty_filp()

2012-08-01 Thread anatol . pomozov
the error. All callers of get_empty_filp() assume that the function can fail with ENFILE only. Return error through pointer. Change all callers to preserve this error code. Signed-off-by: Anatol Pomozov Reviewed-by: "Theodore Ts'o" --- arch/ia64/kernel/perfmon.c | 4 ++-- f

[PATCH] fs: Preserve error code in get_empty_filp()

2012-08-01 Thread anatol . pomozov
the error. All callers of get_empty_filp() assume that the function can fail with ENFILE only. Return error through pointer. Change all callers to preserve this error code. Signed-off-by: Anatol Pomozov Reviewed-by: "Theodore Ts'o" --- arch/ia64/kernel/perfmon.c | 4 ++-- f

Re: [PATCH] fs: Preserve error code in get_empty_filp()

2012-08-02 Thread Anatol Pomozov
> > Return error through pointer. Change all callers to preserve this error code. > > Signed-off-by: Anatol Pomozov > Reviewed-by: "Theodore Ts'o" > --- > arch/ia64/kernel/perfmon.c | 4 ++-- > fs/anon_inodes.c | 5 +++-- > fs/file_table.

[PATCH] fs: Preserve error code in get_empty_filp()

2012-08-02 Thread Anatol Pomozov
of get_empty_filp() assume that the function can fail with ENFILE only. Return error through pointer. Change all callers to preserve this error code. Signed-off-by: Anatol Pomozov Reviewed-by: "Theodore Ts'o" --- arch/ia64/kernel/perfmon.c | 4 ++-- fs/anon_inodes.c

Re: [PATCH] fs: Preserve error code in get_empty_filp()

2012-08-21 Thread Anatol Pomozov
Hi On Tue, Aug 21, 2012 at 3:06 AM, Jan Engelhardt wrote: > > > On Wednesday 2012-08-01 20:19, anatol.pomo...@gmail.com wrote: > >Allocating a file structure in function get_empty_filp() might fail > > because > >of several reasons: > > - not enough memory for file structures > > - operation is n

Re: [PATCH v3] lpc_ich: fix gpio base and control offsets

2013-02-14 Thread Anatol Pomozov
Hi, Aaron On Sun, Feb 3, 2013 at 9:02 AM, Samuel Ortiz wrote: > Hi Arron, > > On Thu, Jan 24, 2013 at 02:52:39PM -0600, Aaron Sierra wrote: >> In ICH5 and earlier the GPIOBASE and GPIOCTRL registers are found at >> offsets 0x58 and 0x5C, respectively. This patch allows GPIO access to >> properly

Re: [PATCH v3] lpc_ich: fix gpio base and control offsets

2013-02-15 Thread Anatol Pomozov
Hi, Samuel. -- replying my message to all On Fri, Feb 15, 2013 at 2:16 AM, Samuel Ortiz wrote: > Hi Anatol, > > On Thu, Feb 14, 2013 at 02:48:05PM -0800, Anatol Pomozov wrote: >> Hi, Aaron >> >> On Sun, Feb 3, 2013 at 9:02 AM, Samuel Ortiz wrote: >> > Hi A

[PATCH] regmap: Add a config option for making regmap debugfs writable

2015-10-13 Thread Anatol Pomozov
Instead of modifiying source code directly one should use config files. It is the standard way to set compile-time options. Signed-off-by: Anatol Pomozov --- drivers/base/regmap/Kconfig | 6 ++ drivers/base/regmap/regmap-debugfs.c | 5 ++--- 2 files changed, 8 insertions(+), 3

Re: [PATCH] regmap: Add a config option for making regmap debugfs writable

2015-10-13 Thread Anatol Pomozov
Hi On Tue, Oct 13, 2015 at 10:55 AM, Mark Brown wrote: > This is deliberately not a Kconfig option because it is a terrible idea > to do this in production and making it either selectable or the default > is an invitation to abuse. What kind of abuse are you talking about? Having an easy way of

Solving M produces N consumers scalability problem

2013-11-01 Thread Anatol Pomozov
Hi, I am looking at fuse scalabily issue that I hit recently on my multi-socket server machines http://permalink.gmane.org/gmane.comp.file-systems.fuse.devel/13490 The short description is that we have several thousands threads that make filesystem access to a fuse fs. Fuse spawns several threads

Re: Solving M produces N consumers scalability problem

2013-11-04 Thread Anatol Pomozov
Hi Thanks for your reply On Mon, Nov 4, 2013 at 10:53 AM, Andi Kleen wrote: > Anatol Pomozov writes: >> >> One idea is not to use the spin_lock. It is the 'fair spin_lock' that >> has scalability problems >> http://pdos.csail.mit.edu/papers/linux:lock.pdf

Re: [PATCH net 1/3] kref: add kref_sub_return

2014-02-12 Thread Anatol Pomozov
Hi On Wed, Feb 12, 2014 at 9:35 AM, Michael S. Tsirkin wrote: > On Wed, Feb 12, 2014 at 08:56:30AM -0800, Greg Kroah-Hartman wrote: >> On Wed, Feb 12, 2014 at 06:38:21PM +0200, Michael S. Tsirkin wrote: >> > It is sometimes useful to get the value of the reference count after >> > decrement. >> >

Re: hanging aio process

2014-05-19 Thread Anatol Pomozov
Hi On Mon, May 19, 2014 at 10:38 AM, Sebastian Ott wrote: > Hello, > > on the latest kernel a fio job with 4 workers using libaio hangs. > > git bisect points to: > commit e02ba72aabfade4c9cd6e3263e9b57bf890ad25c > Author: Anatol Pomozov > Dat

Re: hanging aio process

2014-05-20 Thread Anatol Pomozov
Hi On Tue, May 20, 2014 at 6:16 AM, Sebastian Ott wrote: > On Tue, 20 May 2014, Sebastian Ott wrote: >> On Mon, 19 May 2014, Benjamin LaHaise wrote: >> > It is entirely possible the bug isn't >> > caused by the referenced commit, as the commit you're pointing to merely >> > makes io_destroy() sys

Re: hanging aio process

2014-05-20 Thread Anatol Pomozov
Hi On Tue, May 20, 2014 at 11:09 AM, Sebastian Ott wrote: > Hi, > > On Tue, 20 May 2014, Anatol Pomozov wrote: >> On Tue, May 20, 2014 at 6:16 AM, Sebastian Ott >> wrote: >> > On Tue, 20 May 2014, Sebastian Ott wrote: >> >> On Mon, 19 May 2014, Benj

Re: hanging aio process

2014-05-21 Thread Anatol Pomozov
Hi On Wed, May 21, 2014 at 1:48 AM, Sebastian Ott wrote: > On Wed, 21 May 2014, Sebastian Ott wrote: >> On Tue, 20 May 2014, Anatol Pomozov wrote: >> > On Tue, May 20, 2014 at 11:09 AM, Sebastian Ott >> > wrote: >> > > On Tue, 20 May 2014, Anatol Pomozov w

[PATCH] clocksource: arch_timer: Mark ARMv8 system timer as 'always-on'

2014-11-06 Thread Anatol Pomozov
ile working on ARMv8 board with only one timer (arm arch timer). If 'always-on' is false then it disables high-resolution timer functionality. Signed-off-by: Anatol Pomozov --- .../devicetree/bindings/arm/arch_timer.txt | 8 ++-- drivers/clocksource/arm_ar

Re: [PATCH] clocksource: arch_timer: Mark ARMv8 system timer as 'always-on'

2014-11-06 Thread Anatol Pomozov
Hi On Thu, Nov 6, 2014 at 10:09 AM, Marc Zyngier wrote: > Hi Anatol, > > On 2014-11-06 17:57, Anatol Pomozov wrote: >> >> Quoting ARMv8 Reference Manual section D6.1: >> "The system counter must be implemented in an always-on power domain." > > > Y

Re: [PATCH] clocksource: arch_timer: Mark ARMv8 system timer as 'always-on'

2014-11-06 Thread Anatol Pomozov
Hi On Thu, Nov 6, 2014 at 10:23 AM, Lorenzo Pieralisi wrote: > On Thu, Nov 06, 2014 at 05:57:19PM +0000, Anatol Pomozov wrote: >> Quoting ARMv8 Reference Manual section D6.1: >> "The system counter must be implemented in an always-on power domain." > > Do not mix

Re: [systemd-devel] [RFC v2 3/6] kthread: warn on kill signal if not OOM

2014-10-15 Thread Anatol Pomozov
Hi On Fri, Oct 10, 2014 at 3:45 PM, Tom Gundersen wrote: > On Fri, Oct 10, 2014 at 11:54 PM, Anatol Pomozov > wrote: >> 1) Why not to make the timeout configurable through config file? There >> is already udev.conf you can put config option there. Thus people with >> mo

[PATCH] arm64: kernel: Copy register_persistent_clock() to arm64 source subtree

2014-11-06 Thread Anatol Pomozov
This allows to port code that needs register_persistent_clock() to arm64 Signed-off-by: Anatol Pomozov --- arch/arm64/include/asm/time.h | 17 + arch/arm64/kernel/time.c | 37 + 2 files changed, 54 insertions(+) create mode 100644 arch

Re: [PATCH] arm64: kernel: Copy register_persistent_clock() to arm64 source subtree

2014-11-06 Thread Anatol Pomozov
, 2014 at 4:21 PM, Anatol Pomozov wrote: > This allows to port code that needs register_persistent_clock() to arm64 > > Signed-off-by: Anatol Pomozov > --- > arch/arm64/include/asm/time.h | 17 + > arch/arm64/kernel/time.c | 37 ++

[PATCH] clocksource: tegra: Port tegra20 clocksource to arm64

2014-11-06 Thread Anatol Pomozov
register_persistent_clock() are in different headers in arm/arm64 Tested: Compiled the driver on 64bit platform and make sure that it works Signed-off-by: Anatol Pomozov --- drivers/clocksource/tegra20_timer.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/clocksource

Re: [PATCH] clocksource: tegra: Port tegra20 clocksource to arm64

2014-11-06 Thread Anatol Pomozov
Hi On Thu, Nov 6, 2014 at 8:17 PM, Stephen Warren wrote: > On 11/06/2014 05:21 PM, Anatol Pomozov wrote: >> register_persistent_clock() are in different headers in arm/arm64 >> >> Tested: Compiled the driver on 64bit platform and make sure that >> it works > >

Re: [PATCH] arm64: kernel: Copy register_persistent_clock() to arm64 source subtree

2014-11-07 Thread Anatol Pomozov
Hi On Fri, Nov 7, 2014 at 2:40 AM, Mark Rutland wrote: > On Fri, Nov 07, 2014 at 04:16:03AM +, Stephen Warren wrote: >> On 11/06/2014 05:25 PM, Anatol Pomozov wrote: >> > +Stephen >> > >> > This patch is for tegra20_timer that uses register_persistent_clo

[PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-07 Thread Anatol Pomozov
tegra 64bit board, made sure high-resolution clock works. Signed-off-by: Anatol Pomozov --- arch/arm/include/asm/mach/time.h| 5 - arch/arm/kernel/time.c | 36 --- arch/arm/plat-omap/counter_32k.c| 9 +--- drivers/clocksource/tegra20_timer.c

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-07 Thread Anatol Pomozov
code nicer if architecture called register_persistent_clock(&my_persistent_clock); and then users check if persistent_clock variable is non-NULL. On Fri, Nov 7, 2014 at 11:34 AM, Anatol Pomozov wrote: > ARM timekeeping functionality allows to register persistent/boot clock > dynamical

Re: [alsa-devel] [PATCH v3] ASoC: Add support for NAU8825 codec to ASoC

2015-07-22 Thread Anatol Pomozov
Hi Chih-Chiang On Mon, Jul 13, 2015 at 12:33 AM, Chih-Chiang Chang wrote: > The NAU88L25 is an ultra-low power high performance audio codec designed > for smartphone, tablet PC, and other portable devices by Nuvoton, now > add linux driver support for it. At ChromeOS we work with Nuvoton hw engi

Re: [alsa-devel] [PATCH v3] ASoC: Add support for NAU8825 codec to ASoC

2015-07-27 Thread Anatol Pomozov
ur driver > to our test platform, and then give the feedback to you. > > On 2015/7/23 上午 01:57, Anatol Pomozov wrote: >> Hi Chih-Chiang >> >> On Mon, Jul 13, 2015 at 12:33 AM, Chih-Chiang Chang >> wrote: >>> The NAU88L25 is an ultra-low power high performance a

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-14 Thread Anatol Pomozov
Hi On Thu, Nov 13, 2014 at 2:46 PM, Thomas Gleixner wrote: > On Mon, 10 Nov 2014, Anatol Pomozov wrote: >> On Mon, Nov 10, 2014 at 1:53 AM, Thierry Reding >> wrote: >> > On Fri, Nov 07, 2014 at 11:34:15AM -0800, Anatol Pomozov wrote: >> >> ARM timekeep

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-14 Thread Anatol Pomozov
Hi On Fri, Nov 14, 2014 at 4:18 PM, Thomas Gleixner wrote: > On Fri, 14 Nov 2014, Anatol Pomozov wrote: >> On Thu, Nov 13, 2014 at 2:46 PM, Thomas Gleixner wrote: >> > On Mon, 10 Nov 2014, Anatol Pomozov wrote: >> >> On Mon, Nov 10, 2014 at 1:53 AM, Thierry Redin

Re: [PATCH] timekeeping: Move persistent clock registration code from ARM to kernel

2014-11-10 Thread Anatol Pomozov
Hi On Mon, Nov 10, 2014 at 1:53 AM, Thierry Reding wrote: > On Fri, Nov 07, 2014 at 11:34:15AM -0800, Anatol Pomozov wrote: >> ARM timekeeping functionality allows to register persistent/boot clock >> dynamically. >> This code is arch-independent and can be useful on o

Re: [systemd-devel] [RFC v2 3/6] kthread: warn on kill signal if not OOM

2014-10-10 Thread Anatol Pomozov
Hi On Fri, Sep 12, 2014 at 1:09 PM, Luis R. Rodriguez wrote: > On Thu, Sep 11, 2014 at 10:48 PM, Tom Gundersen wrote: >> On Fri, Sep 12, 2014 at 12:26 AM, Luis R. Rodriguez >> wrote: >>> On Thu, Sep 11, 2014 at 2:43 PM, Tom Gundersen wrote: How about simply introducing a new flag to finit

seqcount usage in xt_replace_table()

2019-01-08 Thread Anatol Pomozov
Hello folks, A bit of context what I am doing. I am trying to port KTSAN (Kernel Thread Sanitizer) tool to v4.20. That tool tracks shared data usage and makes sure it is accessed in a thread-safe manner. seqlock is a synchronization primitive used by Linux kernel. KTSAN annotates read_seqbegin()/

Re: seqcount usage in xt_replace_table()

2019-01-08 Thread Anatol Pomozov
Hello On Tue, Jan 8, 2019 at 4:02 PM Andrea Parri wrote: > > Hi Anatol, > > On Tue, Jan 08, 2019 at 11:33:39AM -0800, Anatol Pomozov wrote: > > Hello folks, > > > > A bit of context what I am doing. I am trying to port KTSAN (Kernel > > Thread Sanitizer) to

[PATCH] hwmon: ina2xx: Add per-sensor label

2016-03-03 Thread Anatol Pomozov
From: Anatol Pomazau Some systems have a lot of power sensors and having an way to label sensor makes easier to use sensor information. Add dts property 'label' that is readable via device sysfs file 'label'. Signed-off-by: Anatol Pomozov --- Documentation/devic