Re: [PATCH 10/10] ARM: FIQ: Get rid of init_FIQ()

2012-11-27 Thread Anton Vorontsov
On Thu, Nov 22, 2012 at 11:51:38PM -0800, Anton Vorontsov wrote: > On Fri, Nov 23, 2012 at 11:36:01AM +0400, Alexander Shiyan wrote: > [...] > > got_no_fiq_insn also not initialized. > > It is static, so by definition it is initialized to 0. > > > I think as a w

[RFC] Add mempressure cgroup

2012-11-28 Thread Anton Vorontsov
rranging the tasks it should be possible to watch a specific pressure. Note that while this adds the cgroups support, the code is well separated and eventually we might add a lightweight, non-cgroups API, i.e. vmevent. But this is another story. Signed-off-by: Anton Vorontsov --- include/linux/cgroup_su

Re: [RFC] Add mempressure cgroup

2012-11-28 Thread Anton Vorontsov
On Wed, Nov 28, 2012 at 03:14:32PM -0800, Andrew Morton wrote: [...] > Compare this with the shrink_slab() shrinkers. With these, the VM can > query and then control the clients. If something goes wrong or is out > of balance, it's the VM's problem to solve. > > So I'm thinking that a better des

Re: [RFC] Add mempressure cgroup

2012-11-28 Thread Anton Vorontsov
On Wed, Nov 28, 2012 at 05:27:51PM -0800, Anton Vorontsov wrote: > On Wed, Nov 28, 2012 at 03:14:32PM -0800, Andrew Morton wrote: > [...] > > Compare this with the shrink_slab() shrinkers. With these, the VM can > > query and then control the clients. If something goes wron

Re: [RFC] Add mempressure cgroup

2012-11-28 Thread Anton Vorontsov
Hello Michal, Thanks a lot for taking a look into this! On Wed, Nov 28, 2012 at 05:29:24PM +0100, Michal Hocko wrote: > On Wed 28-11-12 02:29:08, Anton Vorontsov wrote: > > This is an attempt to implement David Rientjes' idea of mempressure > > cgroup. > > > >

Re: [RFC] Add mempressure cgroup

2012-11-28 Thread Anton Vorontsov
On Thu, Nov 29, 2012 at 08:14:13AM +0200, Kirill A. Shutemov wrote: > On Wed, Nov 28, 2012 at 02:29:08AM -0800, Anton Vorontsov wrote: > > +static int mpc_pre_destroy(struct cgroup *cg) > > +{ > > + struct mpc_state *mpc = cg2mpc(cg); > > + int ret = 0; > >

Re: [PATCH v5 1/3] gpio: gpio-generic: Add 16 and 32 bit big endian byte order support

2013-03-18 Thread Anton Vorontsov
On Fri, Mar 15, 2013 at 02:45:38PM +0100, Andreas Larsson wrote: > There is no general support for 64-bit big endian accesses, so that is > left unsupported. > > Signed-off-by: Andreas Larsson This looks perfect, thanks a lot! Acked-by: Anton Vorontsov -- To unsubscribe from thi

Re: [GIT PULL] AB8500 Power and MFD related updates

2013-03-18 Thread Anton Vorontsov
On Thu, Mar 07, 2013 at 12:38:59PM +0800, Lee Jones wrote: > The following changes since commit 6dbe51c251a327e012439c4772097a13df43c5b8: > > Linux 3.9-rc1 (2013-03-03 15:11:05 -0800) > > are available in the git repository at: > > git://git.linaro.org/people/ljones/linux-3.0-ux500.git for-m

Re: [Patch v3 0/4] Add support for tps65090-charger

2013-03-18 Thread Anton Vorontsov
On Tue, Mar 12, 2013 at 06:08:05PM -0400, Rhyland Klein wrote: > This patchset adds support for the TPS65090-charger. This charger is > registered as a subdevice of the TPS65090 PMIC. > > This series includes a fix for the tps65090 header file where all > the interrupts were shifted by 1. Thanks

Re: A patch to test_power module

2013-03-18 Thread Anton Vorontsov
On Sun, Feb 03, 2013 at 01:17:16PM +0200, Andrey Gelman wrote: [...] > >The patch looks good, but it is missing Signed-off-by tag. Plus, you > >should also Cc: linux-kernel@vger.kernel.org on submissions (I've added it > >now). > > > >Plus, please don't use html in emails. :) [...] > Fixed ... I th

Re: [PATCH] fs: pstore: Replaced calls to kmalloc and memcpy with kmemdup

2013-03-18 Thread Anton Vorontsov
On Sun, Mar 10, 2013 at 04:23:01PM -0700, Kees Cook wrote: > On Sat, Mar 9, 2013 at 3:57 AM, Alexandru Gheorghiu > wrote: > > Replaced calls to kmalloc and memcpy with a single call to kmemdup. > > This patch was found using coccicheck. > > > > Signed-off-by: Alexandru Gheorghiu [...] > Looks fin

Re: [PATCH] s3c-adc-battery: Fix possible NULL pointer dereference

2013-03-18 Thread Anton Vorontsov
On Mon, Feb 25, 2013 at 04:33:25AM +0530, Syam Sidhardhan wrote: > Check for (bat == NULL) has to be done before accessing bat > > Signed-off-by: Syam Sidhardhan > --- Applied, thanks! > drivers/power/s3c_adc_battery.c |7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff

Re: [Patch v3 0/4] Add support for tps65090-charger

2013-03-19 Thread Anton Vorontsov
On Tue, Mar 19, 2013 at 11:55:33AM -0400, Rhyland Klein wrote: > On 3/18/2013 10:24 PM, Anton Vorontsov wrote: > > On Tue, Mar 12, 2013 at 06:08:05PM -0400, Rhyland Klein wrote: > >> This patchset adds support for the TPS65090-charger. This charger is > >> registered as

Re: [PATCH RESEND] goldfish: power device

2013-02-02 Thread Anton Vorontsov
On Fri, Jan 25, 2013 at 03:30:00PM +, Alan Cox wrote: > From: Mike Lockwood > > Add the emulated power driver for the Goldfish platform. > > This folds together the code from the Google tree, Jun Nakajima's cleanups > and x86 porting work, and then a tidy up to pass checkpatch. > > Signed-o

[PATCH] ds2782_battery: Add power_supply_changed() calls for proper uevent support

2013-02-02 Thread Anton Vorontsov
Romanov Signed-off-by: Anton Vorontsov --- Sending it to the community on Evgeny's behalf. drivers/power/ds2782_battery.c | 69 ++ 1 file changed, 69 insertions(+) diff --git a/drivers/power/ds2782_battery.c b/drivers/power/ds2782_battery.c index 2f

Re: [PATCH] ab8500: btemp: demote initcall sequence

2013-02-02 Thread Anton Vorontsov
On Wed, Jan 23, 2013 at 09:56:45AM +0530, Rajanikanth H.V wrote: > From: "Rajanikanth H.V" > > Power supply subsystem creates thermal zone device for > the property 'POWER_SUPPLY_PROP_TEMP' which requires > thermal subsystem to be ready before 'ab8500 battery temperature monitor' > driver is init

Re: [GIT PULL] power: ab8500-bm: Latest Mainline<->STE delta reduction patch-set

2013-02-02 Thread Anton Vorontsov
On Thu, Jan 31, 2013 at 12:08:33PM +, Lee Jones wrote: > > Okay, after Linus Walleij's diligent observaions, I have removed all > > new functionallity related to Deep Debug and will continue to > > investigate what I need to do in that regard. > > > > In the mean-time, here's the fresh deep-de

Re: A patch to test_power module

2013-02-02 Thread Anton Vorontsov
On Sun, Jan 27, 2013 at 10:45:43PM +0200, Andrey Gelman wrote: > Hello ! > This patch fixes 2 issues in test_power module: > 1. the mapping of ac_online parameter to its string value "on / off" > was swapped. > 2. more important ... > You could not insmod test_power with mod

Re: [PATCH] power/reset: Remove newly introduced __dev* annotations

2013-02-02 Thread Anton Vorontsov
On Wed, Jan 30, 2013 at 12:39:16PM +0100, Andrew Lunn wrote: > On Wed, Jan 30, 2013 at 12:28:13PM +0100, Thierry Reding wrote: > > __devinit, __devexit and __devexit_p have recently been removed and > > should no longer be used. > > > > Signed-off-by: Thierry Reding > > --- [...] > Acked-by: Andr

Re: [PATCH] bq27x00_battery: Fix reporting battery temperature

2013-02-02 Thread Anton Vorontsov
On Sat, Feb 02, 2013 at 11:06:09AM +0100, Pali Rohár wrote: > Reported temperature can be also negative, so cache value in non negative > Kelvin degree. > > Signed-off-by: Pali Rohár > --- Applied, thanks! -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of

Re: [PATCH 40/62] power: convert to idr_alloc()

2013-02-02 Thread Anton Vorontsov
On Sat, Feb 02, 2013 at 05:20:41PM -0800, Tejun Heo wrote: > Convert to the much saner new idr interface. > > Only compile tested. > > Signed-off-by: Tejun Heo > Cc: Anton Vorontsov > Cc: David Woodhouse > --- > This patch depends on an earlier idr changes and I

Re: [PATCH] bq27x00_battery: Fix reporting battery temperature

2013-02-03 Thread Anton Vorontsov
On Sun, Feb 03, 2013 at 09:01:54PM +0100, Pali Rohár wrote: > On Sunday 03 February 2013 04:44:51 Anton Vorontsov wrote: > > On Sat, Feb 02, 2013 at 11:06:09AM +0100, Pali Rohár wrote: > > > Reported temperature can be also negative, so cache value in > > >

Re: [PATCH v2 7/7] spi: spi-fsl-spi: Add support for gpio chipselects for GRLIB type cores

2013-02-07 Thread Anton Vorontsov
On Thu, Feb 07, 2013 at 02:12:11PM +0100, Andreas Larsson wrote: > This relies upon of_spi_register_master to find out which gpios to use. > > Signed-off-by: Andreas Larsson > --- > drivers/spi/spi-fsl-lib.h |1 + > drivers/spi/spi-fsl-spi.c | 53 +++

Re: [PATCH v2 0/7] spi: spi-fsl-spi: Make spi-fsl-spi usable in cpu mode outside of FSL SOC environments and add a grlib variant normally running on sparc

2013-02-07 Thread Anton Vorontsov
ary normally running on SPARC. The patches look clean and neat, I don't see anything obviously wrong with them... so, Acked-by: Anton Vorontsov Thanks! Anton -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel

Re: [PATCH] da9030_battery: include notifier.h

2013-02-08 Thread Anton Vorontsov
On Wed, Feb 06, 2013 at 03:09:59PM +0100, Michal Hocko wrote: > Ohh, I have just noticed that this could be introduced by "mm: break > circular include from linux/mmzone.h" in mm tree. > Adding Andrew to CC. The patch is legit, actually. So, I've applied it, thank you! Anton > On Wed 06-02-13 10

Re: [PATCH] bq27x00_battery: Fix reporting battery temperature

2013-02-08 Thread Anton Vorontsov
On Wed, Feb 06, 2013 at 06:56:34PM +0100, Pali Rohár wrote: [...] > > * All voltages, currents, charges, energies, time and > > temperatures in uV, * µA, µAh, µWh, seconds and tenths of > > degree Celsius unless otherwise * stated. It's driver's job [...] > bq27x00_battery reporting "POWER_SUPPLY_

Re: [PATCH] gpio: Add device driver for GRGPIO cores

2013-02-09 Thread Anton Vorontsov
On Mon, Feb 04, 2013 at 11:27:33AM +0100, Andreas Larsson wrote: [...] > >>2) The grgpio_to_irq function is very hardware specific, and there is of > >>course no gpio_to_irq support in gpio-generic. > > > >Well, the idea about gpio-generic is to use the pieces you need > >IIRC. You may override. >

[PATCH] memcg: Add memory.pressure_level events

2013-02-10 Thread Anton Vorontsov
e events manually (or, ask us to implement the pass-through events, explaining why would you need them.) The file mempressure.level is used to show the current memory pressure level, and cgroups event control file can be used to setup an eventfd notification with a specific memory pressure level thresh

[PATCH v4] memcg: Add memory.pressure_level events

2013-04-02 Thread Anton Vorontsov
le option, so it will not require any changes on the userland side. [1] http://permalink.gmane.org/gmane.linux.kernel.cgroups/6291 [2] http://lkml.org/lkml/2013/2/21/454 Signed-off-by: Anton Vorontsov Acked-by: Kirill A. Shutemov Acked-by: KAMEZAWA Hiroyuki --- Hi all, Thanks for the previous

Re: [PATCH v3] memcg: Add memory.pressure_level events

2013-04-02 Thread Anton Vorontsov
On Wed, Mar 27, 2013 at 10:53:30AM +0900, Kamezawa Hiroyuki wrote: [...] > >+++ b/mm/memcontrol.c > >@@ -49,6 +49,7 @@ > > #include > > #include > > #include > >+#include > > #include > > #include > > #include > >@@ -376,6 +377,9 @@ struct mem_cgroup { > > atomic_tnumainfo_

Re: [PATCH v3] memcg: Add memory.pressure_level events

2013-04-02 Thread Anton Vorontsov
On Tue, Mar 26, 2013 at 01:46:56PM -0700, Andrew Morton wrote: [...] > > +The file memory.pressure_level is only used to setup an eventfd, > > +read/write operations are no implemented. [...] > Did we tell people how to use the eventfd interface anywhere? Good point. In v4 I added a detailed instr

Re: [PATCH 0/3] Sync Android pstore updates

2013-04-03 Thread Anton Vorontsov
On Mon, Apr 01, 2013 at 12:16:57PM -0700, Kees Cook wrote: > On Sun, Mar 31, 2013 at 8:22 PM, Anton Vorontsov wrote: > > Hi all, > > > > Here are a few updates from the Android dev tree. Thanks to Arve Hjønnevåg > > for the code, and John Stultz for actually preparing

Re: [PATCH] power: make goldfish option have a dependency on goldfish

2013-02-27 Thread Anton Vorontsov
Hello Paul, On Wed, Feb 27, 2013 at 01:27:46PM -0500, Paul Gortmaker wrote: > Nearly all the other goldfish peripherals (mtd, keyboard, etc) > have a dependency on the main platform's GOLDFISH Kconfig item, > but this one got skipped, so add it. > > Cc: Anton Vorontsov &

Re: [PATCH] power: make goldfish option have a dependency on goldfish

2013-02-27 Thread Anton Vorontsov
On Wed, Feb 27, 2013 at 07:48:38PM -0500, Paul Gortmaker wrote: [...] > If you don't want to take the commit, I won't argue it any further, but > I genuinely do hope the above logical arguments perhaps might cause > you to change your mind. As a maintainer of drivers/power/, I have to keep things

Re: [PATCH] power: make goldfish option have a dependency on goldfish

2013-02-27 Thread Anton Vorontsov
On Wed, Feb 27, 2013 at 09:17:06PM -0500, Paul Gortmaker wrote: [...] > > Testing patches takes time, and if I have to do it for all bunch of > > different machines and architectures, it becomes mess and unmanageable. In > > So, you actually want my change then -- you do not want to test for > gol

[PATCH v2] memcg: Add memory.pressure_level events

2013-02-18 Thread Anton Vorontsov
ly, or propagate the events manually (or, ask us to implement the pass-through events, explaining why would you need them.) Signed-off-by: Anton Vorontsov Acked-by: Kirill A. Shutemov --- Hi all, Many thanks for the previous reviews! In this revision: - Addressed Glauber Costa's comments

[GIT PULL] battery-2.6.git

2013-02-18 Thread Anton Vorontsov
r off by restarting' qnap-poweroff: Fix license string Anton Vorontsov (4): Merge branch 'for-anton' of git://git.linaro.org/people/ljones/linux-3.0-ux500 Merge branch 'ab8500-from-Rajanikanth' Merge branch 'tb-power-2' of git://git.linaro.org/p

Re: [PATCH v2] memcg: Add memory.pressure_level events

2013-02-21 Thread Anton Vorontsov
On Tue, Feb 19, 2013 at 04:21:28PM -0800, Tejun Heo wrote: > On Tue, Feb 19, 2013 at 4:17 PM, Minchan Kim wrote: > > Should we really enable memcg for just pressure notificaion in embedded > > side? > > I didn't check the size(cgroup + memcg) and performance penalty but I don't > > want > > to a

Re: [PATCH v2] memcg: Add memory.pressure_level events

2013-02-21 Thread Anton Vorontsov
On Fri, Feb 22, 2013 at 08:56:08AM +0900, Minchan Kim wrote: > [...] The my point is that you have a plan to support? Why I have a > question is that you said your goal is to replace lowmemory killer In short: yes, of course, if the non-memcg interface will be in demand. > but android don't have

Re: [PATCH] lp8727_charger: use IRQF_ONESHOT

2012-08-30 Thread Anton Vorontsov
On Thu, Aug 30, 2012 at 11:41:54AM +, Kim, Milo wrote: > > > ERROR: Threaded IRQ with no primary handler requested without > > > IRQF_ONESHOT > > > > > > Make sure threaded IRQs without a primary handler are always request > > > with IRQF_ONESHOT > > > > > > Signed-off-by: Fengguang Wu > > > -

Re: [PATCH 4/8] lp8727_charger: cleanup the interrupt handler code

2012-08-30 Thread Anton Vorontsov
On Thu, Aug 30, 2012 at 11:39:57AM +, Kim, Milo wrote: > (a) add configurable debounce timer in the platform data > : if it is not defined, default time(270ms) is set. > (b) use schedule_delay_work() and remove unnecessary workqueue resource > : for delayed interrupt handling, use the s

Re: [PATCH 8/8] lp8727_charger: make cosmetic code

2012-08-30 Thread Anton Vorontsov
On Thu, Aug 30, 2012 at 11:41:01AM +, Kim, Milo wrote: > (a) change the return type of lp8727_is_charger_attached() > (b) remove unnecessary name comparison in lp8727_is_charger_attached() This seems not too 'cosmetic'. Maybe a separate patch for this? It looks trivial enough, but still, it's

Re: [PATCH 0/8] lp8727_charger: cleanup code

2012-08-30 Thread Anton Vorontsov
On Thu, Aug 30, 2012 at 11:37:16AM +, Kim, Milo wrote: > LP8727 driver should be patched for several reasons. > > (a) Need to clean up _probe()/_remove() > (b) Not secure code when the platform data is NULL > (c) Interrupt handling > Two threads are running for handling one IRQ. > One

[PATCH/RFC 0/4] Deferrable timers support for timerfd API

2012-09-01 Thread Anton Vorontsov
Hi all, This patch set implements a userland-side API for generic deferrable timers, per linux/timer.h: * A deferrable timer will work normally when the system is busy, but * will not cause a CPU to come out of idle just to service it; instead, * the timer will be serviced when the CPU eventua

[PATCH 1/4] kernel/time: Add new helpers to convert ktime to/from jiffies

2012-09-01 Thread Anton Vorontsov
er we defined ktime_t, this is because ktime.h needs some declarations from jiffies.h (e.g. TICK_NSEC). Signed-off-by: Anton Vorontsov --- include/linux/jiffies.h | 3 +++ include/linux/ktime.h | 3 ++- kernel/time.c | 23 +++ 3 files changed, 28 insertions(+), 1 del

[PATCH 2/4] timerfd: Move repeated logic into timefd_rearm()

2012-09-01 Thread Anton Vorontsov
This patch introduces timerfd_rearm(), this small helper is used to forward and restart the hrtimer. This small refactoring would be also useful if/when we'll add other backend for timerfd (like deferrable timers), so we won't need to duplicate the code more. Signed-off-by: Anton

[PATCH 3/4] timerfd: Factor out timer-type unspecific timerfd_expire()

2012-09-01 Thread Anton Vorontsov
There is nothing hrtimer-specific inside the timerfd_tmrproc(), except the function prototype. We're about to add other timer types, so factor out generic timerfd_expire() helper from timerfd_tmrproc(). Signed-off-by: Anton Vorontsov --- fs/timerfd.c | 8 ++-- 1 file changed, 6 inser

[PATCH 4/4] timerfd: Add support for deferrable timers

2012-09-01 Thread Anton Vorontsov
except for the timer events themselves (i.e. we use calculation results of hrtimer_forward_now() and hrtimer_expires_remaining(), but never start the hrtimer). So the code path is pretty much the same for both hrtimers and deferrable timers. Signed-off-by: Anton Vorontsov --- fs/timerfd.c

Re: [PATCH] [RFC]power: battery: Generic battery driver using IIO

2012-09-02 Thread Anton Vorontsov
On Sun, Sep 02, 2012 at 09:44:04PM +0530, Sannu K wrote: [...] > Just Curious what is the use of this module? Is there any user space > program uses this? When ACPI drivers for battery is available how > useful will this be? That's mostly for embedded devices. They often have batteries directly co

[PATCH v6 0/12] KGDB/KDB FIQ (NMI) debugger

2012-09-11 Thread Anton Vorontsov
Hi all, Here is a new revision, mostly tty reworks. The new tty_port stuff is a bliss: no more per-driver mutex, no more counting for open(), well-separated initialization callbacks (I hope I got them right :-). But since I now use a lot of new tty_port stuff, I had to rebase the patch set on top

[PATCH 01/12] kernel/debug: Mask KGDB NMI upon entry

2012-09-11 Thread Anton Vorontsov
, then every input to KDB console will cause KGDB to reenter, which we don't want. Signed-off-by: Anton Vorontsov --- include/linux/kgdb.h | 23 +++ kernel/debug/debug_core.c | 36 +--- 2 files changed, 56 insertions(+), 3 deletions(-)

[PATCH 04/12] tty/serial/core: Introduce poll_init callback

2012-09-11 Thread Anton Vorontsov
r callback), which does everything needed to initialize just the hardware. Signed-off-by: Anton Vorontsov --- drivers/tty/serial/serial_core.c | 17 + include/linux/serial_core.h | 1 + 2 files changed, 18 insertions(+) diff --git a/drivers/tty/serial/serial_core.c b/

[PATCH 07/12] tty/serial/amba-pl011: Implement clear_irqs callback

2012-09-11 Thread Anton Vorontsov
It's all pretty straightforward, except for TXIM interrupt. The interrupt has meaning "ready to transmit", so it's almost always raised, and the only way to silence it is to mask it. But that's OK, ops->start_tx will unmask it. Signed-off-by: Anton Vorontsov --- dri

[PATCH 10/12] ARM: Add KGDB/KDB FIQ debugger generic code

2012-09-11 Thread Anton Vorontsov
option. Signed-off-by: Anton Vorontsov --- arch/arm/Kconfig | 18 arch/arm/include/asm/kgdb.h | 8 arch/arm/kernel/Makefile | 1 + arch/arm/kernel/kgdb_fiq.c | 99 arch/arm/kernel/kgdb_fiq_entry.S | 87

[PATCH 12/12] ARM: versatile: Make able to use UART ports for KGDB FIQ debugger

2012-09-11 Thread Anton Vorontsov
can be changed via kgdb_fiq.uart_num kernel command line option. Signed-off-by: Anton Vorontsov --- arch/arm/Kconfig | 1 + arch/arm/mach-versatile/Makefile | 1 + arch/arm/mach-versatile/kgdb_fiq.c | 31 +++ 3 files changed, 33 insertions

[PATCH 11/12] ARM: VIC: Add a couple of low-level FIQ management helpers

2012-09-11 Thread Anton Vorontsov
Just a couple of calls to manage VIC FIQ routing. We'll use them for KGDB FIQ support on ARM Versatile machines. Signed-off-by: Anton Vorontsov --- arch/arm/common/vic.c | 28 arch/arm/include/asm/hardware/vic.h | 2 ++ 2 files changed, 30 inser

[PATCH 09/12] ARM: Move some macros from entry-armv to entry-header

2012-09-11 Thread Anton Vorontsov
kuser_cmpxchg64_fixup global. Signed-off-by: Anton Vorontsov --- arch/arm/kernel/entry-armv.S | 167 +--- arch/arm/kernel/entry-header.S | 170 + 2 files changed, 171 insertions(+), 166 deletions(-) diff --git a/arch/arm/kernel/entry

[PATCH 08/12] tty/serial: Add kgdb_nmi driver

2012-09-11 Thread Anton Vorontsov
or the cases when NMI connected to a dedicated button, the knocking can be disabled altogether by setting kgdb_fiq.knock to -1. Suggested-by: Colin Cross Signed-off-by: Anton Vorontsov --- drivers/tty/serial/Kconfig| 19 ++ drivers/tty/serial/Makefile | 1 + drivers/tty/se

[PATCH 06/12] tty/serial/kgdboc: Add and wire up clear_irqs callback

2012-09-11 Thread Anton Vorontsov
an ordinary IRQ (in KDB this can be done with 'disable_nmi' command), it will behave as normal. p.s. Since the callback is so far used only by polling users, we place it under the appropriate #ifdef. Signed-off-by: Anton Vorontsov --- drivers/tty/serial/kgdboc.c | 10 ++ driv

[PATCH 05/12] tty/serial/amba-pl011: Implement poll_init callback

2012-09-11 Thread Anton Vorontsov
0/0x8) Signed-off-by: Anton Vorontsov --- drivers/tty/serial/amba-pl011.c | 44 ++--- 1 file changed, 33 insertions(+), 11 deletions(-) diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c index cede938..45137e4 100644 --- a/drivers/tty/s

[PATCH 03/12] kdb: Turn KGDB_KDB=n stubs into static inlines

2012-09-11 Thread Anton Vorontsov
This makes the stubs actually usable, since e.g. 'foo = kdb_register();' leads to build errors in !KGDB_KDB case. Plus, with static inlines we do type checking. Signed-off-by: Anton Vorontsov --- include/linux/kdb.h | 29 - 1 file changed, 16 inserti

[PATCH 02/12] kdb: Implement disable_nmi command

2012-09-11 Thread Anton Vorontsov
d for that: echo 1 > /sys/module/kdb/parameters/enable_nmi Signed-off-by: Anton Vorontsov --- kernel/debug/kdb/kdb_main.c | 29 + 1 file changed, 29 insertions(+) diff --git a/kernel/debug/kdb/kdb_main.c b/kernel/debug/kdb/kdb_main.c index 31df170..9fadff1 100644

Re: [PATCH 08/12] tty/serial: Add kgdb_nmi driver

2012-09-11 Thread Anton Vorontsov
On Tue, Sep 11, 2012 at 03:14:20PM +0100, Alan Cox wrote: > > +struct kgdb_nmi_tty_priv { > > + struct tty_port port; > > + int opened; > > + struct tasklet_struct tlet; > > + STRUCT_KFIFO(char, KGDB_NMI_FIFO_SIZE) fifo; > > I don't see where "opened" is used. Yup, a leftover, with tty_po

[RFC] tty/serial/kgdboc: Add and wire up clear_irqs callback

2012-09-11 Thread Anton Vorontsov
On Tue, Sep 11, 2012 at 03:15:40PM +0100, Alan Cox wrote: > Anton Vorontsov wrote: > > This patch implements a new callback: clear_irqs. It is used for the > > This bit I still really don't like. I would like to know what the generic > IRQ folks thing about it and if

Re: [RFC] tty/serial/kgdboc: Add and wire up clear_irqs callback

2012-09-11 Thread Anton Vorontsov
On Tue, Sep 11, 2012 at 08:42:46PM -0700, Colin Cross wrote: [...] > > The "problem" is in the last step. If we exit NMI without making UART > > know that we're done with the interrupt, we will reenter the NMI > > immediately, even without any new characters from the UART. > > The UART irq line sh

Re: [RFC] tty/serial/kgdboc: Add and wire up clear_irqs callback

2012-09-12 Thread Anton Vorontsov
On Tue, Sep 11, 2012 at 09:40:35PM -0700, Colin Cross wrote: [..] > >> the polling rx function should clear the interrupt > >> for you. > > > > Yes, that's an option. But that way we add a new semantic for the > > polling routines, and effecitvely we just merge the two callbacks. > > > > Of course,

Re: [RFC] tty/serial/kgdboc: Add and wire up clear_irqs callback

2012-09-12 Thread Anton Vorontsov
On Wed, Sep 12, 2012 at 10:44:20AM +0100, Alan Cox wrote: > > Of course, if Alan is OK with this, I'm more than OK too. :-) > > It may well be better. > > > (But the polling routines would need to clear all interrupts, not > > just rx/tx. For example, if the controller indicated some error, and >

Re: [PATCH v6 0/4] Runtime Interpreted Power Sequences

2012-09-12 Thread Anton Vorontsov
On Wed, Sep 12, 2012 at 03:27:04PM -0600, Stephen Warren wrote: > On 09/12/2012 03:57 AM, Alexandre Courbot wrote: > > New revision of the power sequences, taking as usual the feedback that was > > kindly provided about the last version. > > > > I think now is a good time to discuss integrating th

[PATCH v7 0/11] KGDB/KDB FIQ (NMI) debugger

2012-09-13 Thread Anton Vorontsov
Hi all, Here comes the lucky v7: - Per Alan Cox's suggestion added hangup method and removed a small leftover; - Per Colin Cross' suggestion moved IRQ quiescing logic into poll_get_char routine. IIUC, Alan is less unhappy about it. As a result, clear_irq() callback dropped. These patches

[PATCH 06/11] tty/serial/amba-pl011: Quiesce interrupts in poll_get_char

2012-09-13 Thread Anton Vorontsov
ways raised, and the only way to silence it is to mask it. But that's OK, ops->start_tx will unmask it. Signed-off-by: Anton Vorontsov --- drivers/tty/serial/amba-pl011.c | 29 + 1 file changed, 29 insertions(+) diff --git a/drivers/tty/serial/amba-pl011.c b/dri

[PATCH 08/11] ARM: Move some macros from entry-armv to entry-header

2012-09-13 Thread Anton Vorontsov
kuser_cmpxchg64_fixup global. Signed-off-by: Anton Vorontsov --- arch/arm/kernel/entry-armv.S | 167 +--- arch/arm/kernel/entry-header.S | 170 + 2 files changed, 171 insertions(+), 166 deletions(-) diff --git a/arch/arm/kernel/entry

[PATCH 11/11] ARM: versatile: Make able to use UART ports for KGDB FIQ debugger

2012-09-13 Thread Anton Vorontsov
can be changed via kgdb_fiq.uart_num kernel command line option. Signed-off-by: Anton Vorontsov --- arch/arm/Kconfig | 1 + arch/arm/mach-versatile/Makefile | 1 + arch/arm/mach-versatile/kgdb_fiq.c | 31 +++ 3 files changed, 33 insertions

[PATCH 10/11] ARM: VIC: Add a couple of low-level FIQ management helpers

2012-09-13 Thread Anton Vorontsov
Just a couple of calls to manage VIC FIQ routing. We'll use them for KGDB FIQ support on ARM Versatile machines. Signed-off-by: Anton Vorontsov --- arch/arm/common/vic.c | 28 arch/arm/include/asm/hardware/vic.h | 2 ++ 2 files changed, 30 inser

[PATCH 09/11] ARM: Add KGDB/KDB FIQ debugger generic code

2012-09-13 Thread Anton Vorontsov
option. Signed-off-by: Anton Vorontsov --- arch/arm/Kconfig | 18 arch/arm/include/asm/kgdb.h | 8 arch/arm/kernel/Makefile | 1 + arch/arm/kernel/kgdb_fiq.c | 99 arch/arm/kernel/kgdb_fiq_entry.S | 87

[PATCH 07/11] tty/serial: Add kgdb_nmi driver

2012-09-13 Thread Anton Vorontsov
or the cases when NMI connected to a dedicated button, the knocking can be disabled altogether by setting kgdb_fiq.knock to -1. Suggested-by: Colin Cross Signed-off-by: Anton Vorontsov --- drivers/tty/serial/Kconfig| 19 ++ drivers/tty/serial/Makefile | 1 + drivers/tty/se

[PATCH 04/11] tty/serial/core: Introduce poll_init callback

2012-09-13 Thread Anton Vorontsov
r callback), which does everything needed to initialize just the hardware. Signed-off-by: Anton Vorontsov --- drivers/tty/serial/serial_core.c | 17 + include/linux/serial_core.h | 1 + 2 files changed, 18 insertions(+) diff --git a/drivers/tty/serial/serial_core.c b/

[PATCH 01/11] kernel/debug: Mask KGDB NMI upon entry

2012-09-13 Thread Anton Vorontsov
, then every input to KDB console will cause KGDB to reenter, which we don't want. Signed-off-by: Anton Vorontsov --- include/linux/kgdb.h | 23 +++ kernel/debug/debug_core.c | 36 +--- 2 files changed, 56 insertions(+), 3 deletions(-)

[PATCH 03/11] kdb: Turn KGDB_KDB=n stubs into static inlines

2012-09-13 Thread Anton Vorontsov
This makes the stubs actually usable, since e.g. 'foo = kdb_register();' leads to build errors in !KGDB_KDB case. Plus, with static inlines we do type checking. Signed-off-by: Anton Vorontsov --- include/linux/kdb.h | 29 - 1 file changed, 16 inserti

[PATCH 05/11] tty/serial/amba-pl011: Implement poll_init callback

2012-09-13 Thread Anton Vorontsov
0/0x8) Signed-off-by: Anton Vorontsov --- drivers/tty/serial/amba-pl011.c | 44 ++--- 1 file changed, 33 insertions(+), 11 deletions(-) diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c index cede938..45137e4 100644 --- a/drivers/tty/s

[PATCH 02/11] kdb: Implement disable_nmi command

2012-09-13 Thread Anton Vorontsov
d for that: echo 1 > /sys/module/kdb/parameters/enable_nmi Signed-off-by: Anton Vorontsov --- kernel/debug/kdb/kdb_main.c | 29 + 1 file changed, 29 insertions(+) diff --git a/kernel/debug/kdb/kdb_main.c b/kernel/debug/kdb/kdb_main.c index 31df170..9fadff1 100644

Re: [PATCH v7 0/11] KGDB/KDB FIQ (NMI) debugger

2012-09-13 Thread Anton Vorontsov
On Thu, Sep 13, 2012 at 06:04:57PM +0100, Alan Cox wrote: > On Thu, 13 Sep 2012 08:01:33 -0700 > Anton Vorontsov wrote: > > > Hi all, > > > > Here comes the lucky v7: > > > > - Per Alan Cox's suggestion added hangup method and removed a small >

Re: [PATCH] power: battery: Generic battery driver using IIO

2012-09-13 Thread Anton Vorontsov
On Thu, Sep 13, 2012 at 09:46:32PM +0530, anish kumar wrote: > From: anish kumar > > In this version: > Addressed concerns raised by lars: > a. made the adc_bat per device. > b. get the IIO channel using hardcoded channel names. > c. Minor issues related to gpio_is_valid and some code >refact

Re: Implement devicetree support for AB8500 Btemp

2012-09-13 Thread Anton Vorontsov
(Thanks for Cc'ing me.) On Thu, Sep 13, 2012 at 02:37:38PM +, Arnd Bergmann wrote: [...] > > > If this is true, I don't understand what makes the 'supplied-to' > > > properties you list in the device tree binding board specific. Are > > > they not always done the same way? If so, you could jus

gpiolib merge plans?

2008-02-02 Thread Anton Vorontsov
Hello Andrew, David, I wonder what are the merge plans for gpiolib for 2.6.25? Are there any design issues that suppress merging?.. Thanks, p.s. Sorry if I'm rubbing salt into the wound... but what happened to "-mm merge plans" emails? -- Anton Vorontsov email: [EMAIL PROTECTE

[PATCH 1/2] fb: add support for foreign endianness

2008-02-05 Thread Anton Vorontsov
) + Fujitsu MINT framebuffer (LE). Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- drivers/video/cfbcopyarea.c | 23 ++ drivers/video/cfbfillrect.c | 48 +-- drivers/video/cfbimgblt.c

[PATCH 2/2] [POWERPC] offb: add support for foreign endianness

2008-02-05 Thread Anton Vorontsov
Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- drivers/video/offb.c | 15 --- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/video/offb.c b/drivers/video/offb.c index 452433d..d7b3dcc 100644 --- a/drivers/video/offb.c +++ b/drivers/video/

[PATCH] fb: fix warning: no return statement in function returning non-void

2008-02-05 Thread Anton Vorontsov
non-void CC drivers/video/syscopyarea.o In file included from drivers/video/syscopyarea.c:22: drivers/video/fb_draw.h: In function ‘fb_rev_pixels_in_long’: drivers/video/fb_draw.h:94: warning: no return statement in function returning non-void Signed-off-by: Anton Vorontsov <[EM

Re: [PATCH 1/2] fb: add support for foreign endianness

2008-02-05 Thread Anton Vorontsov
On Tue, Feb 05, 2008 at 06:44:32PM +0300, Anton Vorontsov wrote: > This patch adds support for the framebuffers with non-native > endianness. This is done via FBINFO_FOREIGN_ENDIAN flag that will > be used by the drivers. Depending on the host endianness this flag > will be ov

[PATCH 0/3] A few cleanups and refactorings, sync w/ upstream

2012-10-04 Thread Anton Vorontsov
Hello Pekka, Just a few updates to vmevents: - Some cleanups and refactorings -- needed for easier integration of 'memory pressure' work; - Forward to newer Linus' tree, fix conflicts. For convenience, the merge commit and all the patches can be pulled from this repo: git://git.infrad

[PATCH 1/3] vmevent: Remove unused code

2012-10-04 Thread Anton Vorontsov
struct vmevent_watch_event and a few definitions are not used anywhere, so let's remove them. Signed-off-by: Anton Vorontsov --- mm/vmevent.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/mm/vmevent.c b/mm/vmevent.c index a7f1042..39ef786 100644 --- a/mm/vmevent.c +++

[PATCH 3/3] vmevent: Don't sample values twice

2012-10-04 Thread Anton Vorontsov
Currently, we sample the same values in vmevent_sample() and vmevent_match(), but we can easily avoid this. Also saves loop iterations. Signed-off-by: Anton Vorontsov --- mm/vmevent.c | 19 +++ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/mm/vmevent.c b/mm

[PATCH 2/3] vmevent: Factor vmevent_match_attr() out of vmevent_match()

2012-10-04 Thread Anton Vorontsov
Soon we'll use this new function for other code; plus this makes code less indented. Signed-off-by: Anton Vorontsov --- mm/vmevent.c | 107 +++ 1 file changed, 57 insertions(+), 50 deletions(-) diff --git a/mm/vmevent.c b/mm/vmev

[RFC] vmevent: Implement pressure attribute

2012-10-04 Thread Anton Vorontsov
Hi all, This is just an RFC so far. It's an attempt to implement Mel Gorman's idea of detecting and measuring memory pressure by calculating the ratio of scanned vs. reclaimed pages in a given time frame. The implemented approach can notify userland about two things: - Constantly rising number o

[GIT PULL] battery-2.6.git

2012-10-04 Thread Anton Vorontsov
ators; 5. Random fixes and cleanups for other drivers. Anton Vorontsov (5): da9052-battery: Fix da9052_determine_vc_tbl_index's return value da9030_battery: Don't use 0 as NULL charger-manager: Fix struct

[GIT PULL] linux-pstore.git

2012-10-04 Thread Anton Vorontsov
ng special. -------- Anton Vorontsov (4): pstore/ram: Fix possible NULL dereference pstore/ram: Mark ramoops_pstore_write_buf() as notrace MAINTAINERS: Add pstore maintainers pstore/ftrace: Convert to its own enable/disable debugfs knob Chuansheng Liu (1): pstore: Avoid

Re: [RFC 1/2] vmevent: Implement pressure attribute

2012-10-24 Thread Anton Vorontsov
Hello Pekka, Thanks for taking a look into this! On Wed, Oct 24, 2012 at 12:03:10PM +0300, Pekka Enberg wrote: > On Mon, 22 Oct 2012, Anton Vorontsov wrote: > > This patch introduces VMEVENT_ATTR_PRESSURE, the attribute reports Linux > > virtual memory management pressure.

Re: [RFC v2 0/2] vmevent: A bit reworked pressure attribute + docs + man page

2012-10-25 Thread Anton Vorontsov
Hello Minchan, Thanks a lot for the email! On Thu, Oct 25, 2012 at 03:40:09PM +0900, Minchan Kim wrote: [...] > > What applications (well, activity managers) are really interested in is > > this: > > > > 1. Do we we sacrifice resources for new memory allocations (e.g. files > >cache)? > > 2.

Re: [RFC v2 0/2] vmevent: A bit reworked pressure attribute + docs + man page

2012-10-25 Thread Anton Vorontsov
On Thu, Oct 25, 2012 at 02:08:14AM -0700, Anton Vorontsov wrote: [...] > Maybe it makes sense to implement something like PRESSURE_MILD with an > additional nr_pages threshold, which basically hits the kernel about how > many easily reclaimable pages userland has (that would be a pa

Re: [PATCH 1/2] fb: add support for foreign endianness

2008-02-15 Thread Anton Vorontsov
On Thu, Feb 14, 2008 at 10:49:42PM -0800, Andrew Morton wrote: > On Tue, 5 Feb 2008 18:44:32 +0300 Anton Vorontsov <[EMAIL PROTECTED]> wrote: > > > This patch adds support for the framebuffers with non-native > > endianness. This is done via FBINFO_FOREIGN_ENDIAN flag that

Re: [patch] power: battery: pointer math issue in gab_probe()

2012-11-05 Thread Anton Vorontsov
On Mon, Nov 05, 2012 at 04:09:45PM +0300, Dan Carpenter wrote: > On Mon, Nov 05, 2012 at 09:34:21PM +0900, anish kumar wrote: > > Hello Dan, > > > > Is this patch of yours picked up by anyone? > > David this should go through you? I'll merge it soon. Sorry for the delay, quite busy lately. :-/

  1   2   3   4   5   6   7   8   9   >