Re: inux-next: Tree for Aug 21 (call-trace when suspending: PM?)

2012-08-21 Thread Sedat Dilek
gnal tree at the request of the arm > maintainer. > > ---- > Hi, I have compiled linux-next (next-20120821) and see the attached call-trace when suspending. Suspending did NOT work (Xorg seems to cause it) - machine came back to desktop. With yester

Re: [RFC/PATCH 10/13] serial: omap: stick to put_autosuspend

2012-08-21 Thread Felipe Balbi
On Tue, Aug 21, 2012 at 04:12:11PM +0530, Shilimkar, Santosh wrote: > On Tue, Aug 21, 2012 at 2:45 PM, Felipe Balbi wrote: > > Everytime we're done using our TTY, we want > > the pm timer to be reinitilized. By sticking > > to pm_runtime_pm_autosuspend() we make sure > > that this will always be

Re: [PATCH 0/4] fat: fix ESTALE errors

2012-08-21 Thread Namjae Jeon
2012/8/21, OGAWA Hirofumi : > Namjae Jeon writes: > >> And.. Hi Ogawa. >> I checked other filesystem about unlink - inode issue. but I found >> Ext4 have same issue. >> Although other filesysm is having this issue, Can we think It could be >> only FAT issue ? > > (I assume this issue == orphaned

Re: [RFC/PATCH 4/4] gpio: smscece: Add support for gpio IO expander feature

2012-08-21 Thread Felipe Balbi
Hi, On Tue, Aug 21, 2012 at 04:15:40PM +0530, Sourav Poddar wrote: > smsc can be used as an gpio io expander device also. So adding > support for configuring smsc pins as a gpio. > > Cc: Benoit Cousson > Cc: Felipe Balbi > Cc: Santosh Shilimkar > Signed-off-by: Sourav Poddar > --- >

Re: [PATCH v2 11/11] protect architectures where THREAD_SIZE >= PAGE_SIZE against fork bombs

2012-08-21 Thread Michal Hocko
On Tue 21-08-12 13:40:45, Glauber Costa wrote: > On 08/21/2012 01:35 PM, Michal Hocko wrote: [...] > > I am asking because this should trigger memcg-oom > > but that one will usually pick up something else than the fork bomb > > which would have a small memory footprint. But that needs to be

Re: [patch 4/8] fs, exportfs: Add export_encode_inode_fh helper

2012-08-21 Thread Cyrill Gorcunov
On Tue, Aug 21, 2012 at 02:49:47PM +0400, Pavel Emelyanov wrote: > >> > >> However, if you have some better ideas on what information about inode > >> should be exported > >> to the userspace please share. > >> > > > > Why not use name_to_handle(fd,...) and open_by_handle(handle,..) ? > >

Re: [PATCH 5/8] mfd: Provide the PRCMU with its own IRQ domain

2012-08-21 Thread Lee Jones
On Tue, Aug 21, 2012 at 10:50:27AM +0100, Mark Brown wrote: > On Tue, Aug 21, 2012 at 09:56:19AM +0100, Lee Jones wrote: > > > Wherever we do this from to be able to obtain the IRQ domain pointer, > > which is where I'm currently struggling. Our options are: > > > - If we're only talking MFD

Re: [PATCH 3/4] arm/dts: omap5-evm: Add keypad support

2012-08-21 Thread Felipe Balbi
On Tue, Aug 21, 2012 at 04:15:39PM +0530, Sourav Poddar wrote: > Add keypad data node in omap5-evm. > > Based on I2C support patch for omap5, which has been > already posted as a different series. > > Cc: Benoit Cousson > Cc: Felipe Balbi > Cc: Santosh Shilimkar > Tested on omap5430 sdp with

Re: [PATCH 2/4] Input: keypad: Add smsc ece1099 keypad driver

2012-08-21 Thread Felipe Balbi
Hi, On Tue, Aug 21, 2012 at 04:15:38PM +0530, Sourav Poddar wrote: > +static struct platform_driver smsc_driver = { > + .driver = { > + .name = "smsc-keypad", > + .of_match_table = of_match_ptr(smsc_keypad_dt_match), > + .owner = THIS_MODULE, > + },

Re: [patch 4/8] fs, exportfs: Add export_encode_inode_fh helper

2012-08-21 Thread Pavel Emelyanov
On 08/21/2012 02:42 PM, Aneesh Kumar K.V wrote: > Pavel Emelyanov writes: > >> On 08/20/2012 11:32 PM, J. Bruce Fields wrote: >>> On Mon, Aug 20, 2012 at 11:06:06PM +0400, Cyrill Gorcunov wrote: On Mon, Aug 20, 2012 at 02:32:25PM -0400, J. Bruce Fields wrote: > On Mon, Aug 20, 2012 at

Re: [PATCH 2/4] Input: keypad: Add smsc ece1099 keypad driver

2012-08-21 Thread Felipe Balbi
On Tue, Aug 21, 2012 at 04:15:38PM +0530, Sourav Poddar wrote: > From: G, Manjunath Kondaiah > > SMSC ECE1099 is a keyboard scan or GPIO expansion device.The device > supports a keypad scan matrix of 23*8.This driver uses this > device as a keypad driver. > > Cc: Dmitry Torokhov > Cc: Benoit

[PATCH 1/4] mfd: smsc: Add support for smsc gpio io/keypad driver

2012-08-21 Thread Sourav Poddar
smsc ece1099 is a keyboard scan or gpio expansion device. The patch create keypad and gpio expander child for this multi function smsc driver. Cc: Samuel Ortiz Cc: Benoit Cousson Cc: Felipe Balbi Cc: Santosh Shilimkar Signed-off-by: Sourav Poddar --- Documentation/smsc_ece1099.txt | 56

[RFC/PATCH 4/4] gpio: smscece: Add support for gpio IO expander feature

2012-08-21 Thread Sourav Poddar
smsc can be used as an gpio io expander device also. So adding support for configuring smsc pins as a gpio. Cc: Benoit Cousson Cc: Felipe Balbi Cc: Santosh Shilimkar Signed-off-by: Sourav Poddar --- drivers/gpio/Kconfig|7 + drivers/gpio/Makefile |1 +

Re: [PATCH] perf/x86: fix SNB-EP CBO and PCU uncore PMU filter management

2012-08-21 Thread Peter Zijlstra
On Mon, 2012-08-20 at 18:22 +0200, Stephane Eranian wrote: > .constraints= snbep_uncore_cbox_constraints, > .ops= _uncore_msr_ops, > .format_group = _uncore_cbox_format_group, > + .extra_regs =

[PATCH 3/4] arm/dts: omap5-evm: Add keypad support

2012-08-21 Thread Sourav Poddar
Add keypad data node in omap5-evm. Based on I2C support patch for omap5, which has been already posted as a different series. Cc: Benoit Cousson Cc: Felipe Balbi Cc: Santosh Shilimkar Tested on omap5430 sdp with 3.5 custom kernel. Signed-off-by: Sourav Poddar ---

[PATCH 2/4] Input: keypad: Add smsc ece1099 keypad driver

2012-08-21 Thread Sourav Poddar
From: G, Manjunath Kondaiah SMSC ECE1099 is a keyboard scan or GPIO expansion device.The device supports a keypad scan matrix of 23*8.This driver uses this device as a keypad driver. Cc: Dmitry Torokhov Cc: Benoit Cousson Cc: Felipe Balbi Cc: Santosh Shilimkar Signed-off-by: G, Manjunath

[PATCH 0/4] Add mfd driver for smsc-ece1099 chip

2012-08-21 Thread Sourav Poddar
Add a smsc-ece1099 mfd driver which will work as keypad scan device or a gpio expander device. Patch 1 creates the parent mfd driver. Patch 2 add keypad support. Patch 3 adds dts support for keypad in omap5 dts file. Patch 4 add gpio expansion driver for chip (RFC). Cc: Benoit Cousson Cc:

Re: [RFC/PATCH 00/13] OMAP UART patches

2012-08-21 Thread Shilimkar, Santosh
On Tue, Aug 21, 2012 at 2:45 PM, Felipe Balbi wrote: > Hi guys, > > here's a series of cleanup patches to the OMAP serial > driver. A later series could be made re-implementing > DMA using the DMA Engine API. Note that for RX DMA > we could be using RX Timeout IRQ as a hint that we better > use

Re: [patch 4/8] fs, exportfs: Add export_encode_inode_fh helper

2012-08-21 Thread Aneesh Kumar K.V
Pavel Emelyanov writes: > On 08/20/2012 11:32 PM, J. Bruce Fields wrote: >> On Mon, Aug 20, 2012 at 11:06:06PM +0400, Cyrill Gorcunov wrote: >>> On Mon, Aug 20, 2012 at 02:32:25PM -0400, J. Bruce Fields wrote: On Mon, Aug 20, 2012 at 08:33:38PM +0400, Cyrill Gorcunov wrote: > On Mon,

Re: [RFC/PATCH 10/13] serial: omap: stick to put_autosuspend

2012-08-21 Thread Shilimkar, Santosh
On Tue, Aug 21, 2012 at 2:45 PM, Felipe Balbi wrote: > Everytime we're done using our TTY, we want > the pm timer to be reinitilized. By sticking > to pm_runtime_pm_autosuspend() we make sure > that this will always be the case. > > Signed-off-by: Felipe Balbi > --- >

Re: [RFC/PATCH 05/13] serial: omap: drop DMA support

2012-08-21 Thread Felipe Balbi
On Tue, Aug 21, 2012 at 04:05:22PM +0530, Shilimkar, Santosh wrote: > On Tue, Aug 21, 2012 at 3:50 PM, Felipe Balbi wrote: > > On Tue, Aug 21, 2012 at 03:14:19PM +0530, Shilimkar, Santosh wrote: > >> On Tue, Aug 21, 2012 at 2:45 PM, Felipe Balbi wrote: > >> > The current support is known to be

Re: [RFC/PATCH 05/13] serial: omap: drop DMA support

2012-08-21 Thread Shilimkar, Santosh
On Tue, Aug 21, 2012 at 3:50 PM, Felipe Balbi wrote: > On Tue, Aug 21, 2012 at 03:14:19PM +0530, Shilimkar, Santosh wrote: >> On Tue, Aug 21, 2012 at 2:45 PM, Felipe Balbi wrote: >> > The current support is known to be broken and >> > a later patch will come re-adding it using >> > dma engine

Re: [RFC PATCH -v2 0/4] Persistent events

2012-08-21 Thread Peter Zijlstra
On Thu, 2012-08-16 at 19:45 +0200, Borislav Petkov wrote: > > off and on I get some free time to work on that, here's the latest > incarnation. It contains review feedback from the earlier round. > > Patch 1/4 adds a trace_add_file() interface which adds an additional > file to debugfs, in this

Re: [PATCH v2 21/31] arm64: 32-bit (compat) applications support

2012-08-21 Thread Pavel Machek
On Mon 2012-08-20 20:34:54, Arnd Bergmann wrote: > On Monday 20 August 2012, Pavel Machek wrote: > > > This patch adds support for 32-bit applications. The vectors page is a > > > binary blob mapped into the application user space at 0x (the > > > AArch64 toolchain does not support

[PATCH] regmap: irq: Allow users to retrieve the irq_domain

2012-08-21 Thread Mark Brown
This is useful for integration with other subsystems, especially MFD, and provides an alternative API for users that request their own IRQs. Signed-off-by: Mark Brown --- drivers/base/regmap/regmap-irq.c | 19 +++ include/linux/regmap.h |2 ++ 2 files changed, 21

[PATCH] Documentation: fix broken utf8 encoding

2012-08-21 Thread Oskar Schirmer
conversion to utf8 left some extra control character here, remove it. Signed-off-by: Oskar Schirmer Cc: John Anthony Kazos Jr Cc: Rob Landley --- Documentation/power/swsusp.txt |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/power/swsusp.txt

Re: [RFC/PATCH 05/13] serial: omap: drop DMA support

2012-08-21 Thread Felipe Balbi
On Tue, Aug 21, 2012 at 03:14:19PM +0530, Shilimkar, Santosh wrote: > On Tue, Aug 21, 2012 at 2:45 PM, Felipe Balbi wrote: > > The current support is known to be broken and > > a later patch will come re-adding it using > > dma engine API. > > > > Signed-off-by: Felipe Balbi > > --- > Thanks

Re: [RFC PATCH -v2 3/4] perf: Add persistent event facilities

2012-08-21 Thread Peter Zijlstra
On Thu, 2012-08-16 at 19:45 +0200, Borislav Petkov wrote: > +struct perf_event > +*perf_add_persistent_on_cpu(unsigned int cpu, struct perf_event_desc *desc, > + unsigned nr_pages) > +{ Oh, weird style that, the * is very much part of the type and would thus be on the

Re: [RFC PATCH -v2 3/4] perf: Add persistent event facilities

2012-08-21 Thread Peter Zijlstra
On Thu, 2012-08-16 at 19:45 +0200, Borislav Petkov wrote: > + err_counter: > + perf_event_release_kernel(event); > + > + err_inode: > + trace_remove_file(desc->dentry); > + > + err_trace_file: > + put_unused_fd(event_fd); > + return event; > +} Note that perf code has

[PATCH] PM/devfreq: Use devm_* functions in exynos4_bus.c

2012-08-21 Thread Sachin Kamat
devm_* functions are device managed functions and make cleanup code simpler and smaller. devm_kzalloc and devm_regulator_get functions are used. Signed-off-by: Sachin Kamat --- drivers/devfreq/exynos4_bus.c | 41 +++-- 1 files changed, 11 insertions(+), 30

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

2012-08-21 Thread Jan Engelhardt
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 not allowed > - user is over its limit > >Currently the function returns NULL

Re: [PATCH v2 09/11] memcg: propagate kmem limiting information to children

2012-08-21 Thread Glauber Costa
On 08/21/2012 02:00 PM, Michal Hocko wrote: > On Tue 21-08-12 13:22:09, Glauber Costa wrote: >> On 08/21/2012 11:54 AM, Michal Hocko wrote: > [...] >>> But maybe you have a good use case for that? >>> >> Honestly, I don't. For my particular use case, this would be always on, >> and end of story. I

Re: [PATCH v2 09/11] memcg: propagate kmem limiting information to children

2012-08-21 Thread Michal Hocko
On Tue 21-08-12 13:22:09, Glauber Costa wrote: > On 08/21/2012 11:54 AM, Michal Hocko wrote: [...] > > But maybe you have a good use case for that? > > > Honestly, I don't. For my particular use case, this would be always on, > and end of story. I was operating under the belief that being able to

Re: [PATCH] perf: create a helper structure perf_event_context

2012-08-21 Thread Ingo Molnar
* Andrew Vagin wrote: > 18 files changed, 222 insertions(+), 255 deletions(-) > -static int process_sample_event(struct perf_tool *tool, > - union perf_event *event, > - struct perf_sample *sample, > - struct

Re: [PATCH v4 1/3] Runtime Interpreted Power Sequences

2012-08-21 Thread Tomi Valkeinen
On Tue, 2012-08-21 at 11:13 +0200, Thierry Reding wrote: > On Tue, Aug 21, 2012 at 11:57:45AM +0300, Tomi Valkeinen wrote: > > This doesn't mean that we'd have a separate driver for each device. For > > example, we have a generic panel driver in OMAP, which contains a kind > > of small panel

[PATCH] KVM: trace the events of mmu_notifier

2012-08-21 Thread Xiao Guangrong
mmu_notifier is the interface to broadcast the mm events to KVM, the tracepoints introduced in this patch can trace all these events, it is very helpful for us to notice and fix the bug caused by mm Signed-off-by: Xiao Guangrong --- include/trace/events/kvm.h | 121

Re: [PATCH v2 08/31] arm64: CPU support

2012-08-21 Thread Catalin Marinas
On Mon, Aug 20, 2012 at 09:47:07PM +0100, Arnd Bergmann wrote: > On Monday 20 August 2012, Catalin Marinas wrote: > > > > --- /dev/null > > > > +++ b/arch/arm64/mm/proc-syms.c > > ... > > > > +EXPORT_SYMBOL(__cpuc_flush_kern_all); > > > > +EXPORT_SYMBOL(__cpuc_flush_user_all); > > > >

Re: [PATCH 5/8] mfd: Provide the PRCMU with its own IRQ domain

2012-08-21 Thread Mark Brown
On Tue, Aug 21, 2012 at 09:56:19AM +0100, Lee Jones wrote: > Wherever we do this from to be able to obtain the IRQ domain pointer, > which is where I'm currently struggling. Our options are: > - If we're only talking MFD here, we can handle this stuff in the MFD > core, but we need more

[PATCH] mm: mmu_notifier: fix inconsistent memory between secondary MMU and host

2012-08-21 Thread Xiao Guangrong
There has a bug in set_pte_at_notify which always set the pte to the new page before release the old page in secondary MMU, at this time, the process will access on the new page, but the secondary MMU still access on the old page, the memory is inconsistent between them Below scenario shows the

Re: [GIT PULL rcu/smphotplug] Fixes for Infiniband EHCA

2012-08-21 Thread Ingo Molnar
* Paul E. McKenney wrote: > Hello, Thomas, > > This pair of patches fixes a typo and some warnings in the tip/smp/hotplug > Infiniband patch. They are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git > rcu/smphotplug > >

Re: [RFC/PATCH 05/13] serial: omap: drop DMA support

2012-08-21 Thread Shilimkar, Santosh
On Tue, Aug 21, 2012 at 2:45 PM, Felipe Balbi wrote: > The current support is known to be broken and > a later patch will come re-adding it using > dma engine API. > > Signed-off-by: Felipe Balbi > --- Thanks Felipe !! One less driver now towards OMAP DMA engine conversion. FWIW, Acked-by:

Re: [PATCH v2 11/11] protect architectures where THREAD_SIZE >= PAGE_SIZE against fork bombs

2012-08-21 Thread Glauber Costa
On 08/21/2012 01:35 PM, Michal Hocko wrote: > On Thu 09-08-12 17:01:19, Glauber Costa wrote: >> Because those architectures will draw their stacks directly from the >> page allocator, rather than the slab cache, we can directly pass >> __GFP_KMEMCG flag, and issue the corresponding free_pages. >>

Re: ext4 write performance regression in 3.6-rc1 on RAID0/5

2012-08-21 Thread Fengguang Wu
On Sat, Aug 18, 2012 at 06:44:57AM +1000, NeilBrown wrote: > On Fri, 17 Aug 2012 22:25:26 +0800 Fengguang Wu > wrote: > > > [CC md list] > > > > On Fri, Aug 17, 2012 at 09:40:39AM -0400, Theodore Ts'o wrote: > > > On Fri, Aug 17, 2012 at 02:09:15PM +0800, Fengguang Wu wrote: > > > > Ted, > > >

Re: [PATCH v1] virtio-scsi: get and set the queue limits for sg device

2012-08-21 Thread Cong Meng
On Tue 21 Aug 2012 04:53:59 PM CST, Stefan Hajnoczi wrote: On Tue, Aug 21, 2012 at 9:26 AM, Cong Meng wrote: Each virtio scsi HBA has global request queue limits. But the passthrough LUNs (scsi-generic) come from different host HBAs may have different request queue limits. If the guest sends

Re: [discussion]sched: a rough proposal to enable power saving in scheduler

2012-08-21 Thread Ingo Molnar
* Matthew Garrett wrote: > On Mon, Aug 20, 2012 at 10:06:06AM +0200, Ingo Molnar wrote: > > > If the answer is 'yes' then there's clear cases where the kernel > > (should) automatically know the events where we switch from > > balancing for performance to balancing for power: > > No. We

Re: [GIT PULL 00/24] perf/core improvements and fixes

2012-08-21 Thread Jiri Olsa
On Tue, Aug 21, 2012 at 11:32:31AM +0200, Ingo Molnar wrote: > > * Arnaldo Carvalho de Melo wrote: > SNIP > > One minor observation, the Makefile tells us: > > Makefile:496: No libunwind found. Please install libunwind >= 0.99 > > I guess that should be libunwind-dev[el], right? Plain

Re: Bug report

2012-08-21 Thread Borislav Petkov
Adding linux-ide. Please send also full dmesg of the box. Thanks. On Mon, Aug 20, 2012 at 05:31:44PM -0500, mr.shroom wrote: > SATA for kernel(s) 3.5+ has an issue with IRQ Balancing on AMD SB710 > with motherboard ASRock m3a770d3. > > The problem started while using Arch linux, after going

[PATCH] gpio: bt8xx: Fix build error due to missing include file

2012-08-21 Thread Axel Lin
This patch fixes below build error: CC [M] drivers/gpio/gpio-bt8xx.o drivers/gpio/gpio-bt8xx.c:53:40: fatal error: ../media/video/bt8xx/bt848.h: No such file or directory compilation terminated. make[2]: *** [drivers/gpio/gpio-bt8xx.o] Error 1 make[1]: *** [drivers/gpio] Error 2 make: ***

Re: [PATCH v2 11/11] protect architectures where THREAD_SIZE >= PAGE_SIZE against fork bombs

2012-08-21 Thread Michal Hocko
On Thu 09-08-12 17:01:19, Glauber Costa wrote: > Because those architectures will draw their stacks directly from the > page allocator, rather than the slab cache, we can directly pass > __GFP_KMEMCG flag, and issue the corresponding free_pages. > > This code path is taken when the architecture

Re: [PATCH 0/2][resend] genirq: export patches

2012-08-21 Thread Thomas Gleixner
On Mon, 20 Aug 2012, Kuninori Morimoto wrote: > > Hi all > > > These are "resend" of genirq export patches. > > > > Kuninori Morimoto (2): > > genirq: export irq_set_chip_and_handler_name() > > genirq: export dummy_irq_chip > > get_maintainer.pl showed me that Thomas is the

Re: [GIT PULL 00/24] perf/core improvements and fixes

2012-08-21 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Hi Ingo, > > Please consider pulling, this is on top of my previous pull requests, > > - Arnaldo > > The following changes since commit 0fe7d7e9761ec7e23350b5543ddac470bb3cde1e: > > perf symbols: Add description of JIT interface (2012-08-13

Re: [Qemu-devel] x86, nops settings result in kernel crash

2012-08-21 Thread Tomas Racek
> On 20.08.2012 21:13, Tomas Racek wrote: > [] > Can we trim the old, large and now not-so-relevant discussion please? > ;) > > > I can provide you with more different traces if it can help. But I > > thought that maybe it will be more useful for you to try it on > > your own. So I've prepared

Re: [PATCH v3] SUNRPC: protect service sockets lists during per-net shutdown

2012-08-21 Thread Stanislav Kinsbursky
20.08.2012 20:58, J. Bruce Fields пишет: On Mon, Aug 20, 2012 at 07:11:00PM +0400, Stanislav Kinsbursky wrote: 20.08.2012 18:56, J. Bruce Fields пишет: On Mon, Aug 20, 2012 at 03:05:49PM +0400, Stanislav Kinsbursky wrote: 16.08.2012 23:29, J. Bruce Fields пишет: Looking back at this:

Re: [PATCH 00/19] [GIT PULL][v3.6] ftrace: Allow kprobes to work with ftace

2012-08-21 Thread Ingo Molnar
* Steven Rostedt wrote: > > Ingo, > > This patch series extends ftrace function tracing utility to be > more dynamic for its users. It allows for data passing to the callback > functions, as well as reading regs as if a breakpoint were to trigger > at function entry. > > The main goal of

[GIT PULL] sound fixes for 3.6-rc3

2012-08-21 Thread Takashi Iwai
Linus, please pull sound fixes for v3.6-rc3 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-3.6 The topmost commit is 53e1719f3da0f095b8db1461bd12dd79f3246b84 Sound fixes for 3.6-rc3 This update

Re: [PATCH v2 09/11] memcg: propagate kmem limiting information to children

2012-08-21 Thread Glauber Costa
On 08/21/2012 11:54 AM, Michal Hocko wrote: > On Fri 17-08-12 14:36:00, Glauber Costa wrote: >> On 08/17/2012 02:35 PM, Michal Hocko wrote: > But I never said that can't happen. I said (ok, I meant) the static > branches can't be disabled. >>> Ok, then I misunderstood that because the

[RFC/PATCH 02/13] serial: omap: always return IRQ_HANDLED

2012-08-21 Thread Felipe Balbi
Even if we enter our IRQ handler just to notice that the our device didn't generate the IRQ, that still means "handling" and IRQ, so let's return IRQ_HANDLED. Signed-off-by: Felipe Balbi --- drivers/tty/serial/omap-serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 8/8] input: ab8500-ponkey: Rely on MFD core to convert IRQs to virtual

2012-08-21 Thread Lee Jones
On Tue, Aug 14, 2012 at 10:31:08AM +0200, Linus Walleij wrote: > On Thu, Aug 9, 2012 at 5:53 PM, Lee Jones wrote: > > > There was a plan to place ab8500_irq_get_virq() calls in each AB8500 > > child device prior to requesting an IRQ, but as we're no longer using > > Device Tree to collect our

[RFC/PATCH 04/13] serial: omap: don't access the platform_device

2012-08-21 Thread Felipe Balbi
The driver doesn't need to know about its platform_device. Everything the driver needs can be done through the struct device pointer. In case we need to use the OMAP-specific PM function pointers, those can make sure to find the device's platform_device pointer so they can find the struct

[RFC/PATCH 09/13] serial: omap: move THRE check to transmit_chars()

2012-08-21 Thread Felipe Balbi
since all other IRQ types now do all necessary checks inside their handlers, transmit_chars() was the only one left expecting serial_omap_irq() to check THRE for it. We can move THRE check to transmit_chars() in order to make serial_omap_irq() more uniform. Signed-off-by: Felipe Balbi ---

[RFC/PATCH 08/13] serial: omap: refactor receive_chars() into rdi/rlsi handlers

2012-08-21 Thread Felipe Balbi
receive_chars() was getting too big and too difficult to follow. By splitting it into separate RDI and RSLI handlers, we have smaller functions which are easy to understand and only touch the pieces which they need to touch. Signed-off-by: Felipe Balbi --- drivers/tty/serial/omap-serial.c | 203

[RFC/PATCH 05/13] serial: omap: drop DMA support

2012-08-21 Thread Felipe Balbi
The current support is known to be broken and a later patch will come re-adding it using dma engine API. Signed-off-by: Felipe Balbi --- drivers/tty/serial/omap-serial.c | 330 ++- 1 file changed, 12 insertions(+), 318 deletions(-) diff --git

[RFC/PATCH 12/13] serial: omap: drop unnecessary check from remove

2012-08-21 Thread Felipe Balbi
if platform_get_drvdata() returns NULL, that's quite a nasty bug on the driver which we want to catch ASAP. Otherwise, that check is hugely unneeded. Signed-off-by: Felipe Balbi --- drivers/tty/serial/omap-serial.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git

[RFC/PATCH 13/13] serial: omap: make sure to suspend device before remove

2012-08-21 Thread Felipe Balbi
before removing the driver, let's make sure to force device into a suspended state in order to conserve power. Signed-off-by: Felipe Balbi --- drivers/tty/serial/omap-serial.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c

Re: [PATCH v2 09/11] memcg: propagate kmem limiting information to children

2012-08-21 Thread Glauber Costa
On 08/21/2012 12:35 PM, Michal Hocko wrote: > On Tue 21-08-12 09:54:30, Michal Hocko wrote: >> E.g. how do you handle charges you left behind? Say you charged some >> pages for stack? > > I got to the last patch and see how you do it. You are relying on > free_accounted_pages directly which

[RFC/PATCH 10/13] serial: omap: stick to put_autosuspend

2012-08-21 Thread Felipe Balbi
Everytime we're done using our TTY, we want the pm timer to be reinitilized. By sticking to pm_runtime_pm_autosuspend() we make sure that this will always be the case. Signed-off-by: Felipe Balbi --- drivers/tty/serial/omap-serial.c | 33 ++--- 1 file changed, 22

[RFC/PATCH 11/13] serial: omap: set dev->drvdata before enabling pm_runtime

2012-08-21 Thread Felipe Balbi
by the time we call our first pm_runtme_get_sync() after enable pm_runtime, our resume method might be called. To avoid problems, we must make sure that our dev->drvdata is set correctly before our resume method gets called. Signed-off-by: Felipe Balbi --- drivers/tty/serial/omap-serial.c | 2

[RFC/PATCH 07/13] serial: omap: simplify IRQ handling

2012-08-21 Thread Felipe Balbi
quite a few changes here, though they are pretty obvious. In summary we're making sure to detect which interrupt type we need to handle before calling the underlying interrupt handling procedure. Signed-off-by: Felipe Balbi --- drivers/tty/serial/omap-serial.c | 47

[RFC/PATCH 06/13] serial: add OMAP-specific defines

2012-08-21 Thread Felipe Balbi
OMAP has some extra Interrupt types which can be really useful for SW. Let's define them so we can later use those in OMAP's serial driver. Signed-off-by: Felipe Balbi --- include/linux/serial_reg.h | 4 1 file changed, 4 insertions(+) diff --git a/include/linux/serial_reg.h

[RFC/PATCH 03/13] serial: omap: define helpers for pdata function pointers

2012-08-21 Thread Felipe Balbi
this patch is in preparation to a few other changes which will align on the prototype for function pointers passed through pdata. It also helps cleaning up the driver a little by agregating checks for pdata in a single location. Signed-off-by: Felipe Balbi --- drivers/tty/serial/omap-serial.c

[RFC/PATCH 01/13] serial: omap: define and use to_uart_omap_port()

2012-08-21 Thread Felipe Balbi
current code only works because struct uart_port is the first member on the uart_omap_port structure. If, for whatever reason, someone puts another member as the first of the structure, that cast won't work anymore. In order to be safe, let's use a container_of() which, for now, gets optimized

[RFC/PATCH 00/13] OMAP UART patches

2012-08-21 Thread Felipe Balbi
Hi guys, here's a series of cleanup patches to the OMAP serial driver. A later series could be made re-implementing DMA using the DMA Engine API. Note that for RX DMA we could be using RX Timeout IRQ as a hint that we better use PIO instead ;-) All patches were tested on my pandaboard, but I'd

Re: [patch 4/8] fs, exportfs: Add export_encode_inode_fh helper

2012-08-21 Thread Pavel Emelyanov
On 08/20/2012 11:32 PM, J. Bruce Fields wrote: > On Mon, Aug 20, 2012 at 11:06:06PM +0400, Cyrill Gorcunov wrote: >> On Mon, Aug 20, 2012 at 02:32:25PM -0400, J. Bruce Fields wrote: >>> On Mon, Aug 20, 2012 at 08:33:38PM +0400, Cyrill Gorcunov wrote: On Mon, Aug 20, 2012 at 07:49:23PM +0530,

Re: [GIT PULL] x86, microcode, AMD: Per-family patches cache

2012-08-21 Thread Borislav Petkov
On Mon, Aug 20, 2012 at 04:23:09PM -0700, H. Peter Anvin wrote: >> git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp.git >> tags/microcode-updates-for-3.7 >> > Hmmm... this isn't actually present on git.kernel.org, and 01/12 > is missing from your "v0" patchset on LKML (nevermind that a "v0" >

Re: [PATCH v4 1/3] Runtime Interpreted Power Sequences

2012-08-21 Thread Thierry Reding
On Tue, Aug 21, 2012 at 11:57:45AM +0300, Tomi Valkeinen wrote: > On Tue, 2012-08-21 at 10:33 +0200, Thierry Reding wrote: > > > I suppose power sequences aren't needed if you have a specific driver > > for every panel out there. However that also means that you'd have to > > write drivers for

Re: [PATCH] fbcon: fix race condition between console lock and cursor timer

2012-08-21 Thread Alan Cox
> So after much tracing with direct netconsole writes (printks > under console_lock not so useful), I think I found the race. Direct netconsole write would be a useful patch to have mainline I think 8) > Hopefully this fixes the problem for anyone seeing vesafb->kms > driver handoff. Not really

Re: [PATCH 3/3] spi: omap2-mcspi: At remove dont use the runtime_autosuspend calls

2012-08-21 Thread Felipe Balbi
On Tue, Aug 21, 2012 at 11:47:44AM +0530, Shubhrajyoti D wrote: > At remove we shouldnt be using the autosuspend timeout as we are > calling pm_runtime_disable immediately after. > > Signed-off-by: Shubhrajyoti D Makes sense to me: Acked-by: Felipe Balbi > --- >

Re: [PATCH 2/3] spi: omap2-mcspi: Remove the macro MOD_REG_BIT

2012-08-21 Thread Felipe Balbi
On Tue, Aug 21, 2012 at 11:47:43AM +0530, Shubhrajyoti D wrote: > Remove the macro MOD_REG_BIT instead make the bit field modifications > directly. This deletes a branch operation in cases where the the set > is predecided.While at it optimise two sequential bit clear in one step.

[PATCH] perf/x86: Disable uncore on virtualized CPU.

2012-08-21 Thread Yan, Zheng
From: "Yan, Zheng" Initializing uncore PMU on virtualized CPU may hang the kernel. This is because kvm does not emulate the entire hardware. Thers are lots of uncore related MSRs, making kvm enumerate them all is a non-trival task. So just disable uncore on virtualized CPU. Signed-off-by: Yan,

Re: [PATCH RESEND] udf: extent cache implementation for manipulating block map

2012-08-21 Thread Jan Kara
Hello, first, I'm sorry for a late reply. I was on a long vacation and then it took me a while to catch up with stuff. On Sat 18-08-12 05:58:22, Namjae Jeon wrote: > From: Namjae Jeon > > While mapping logical blocks of a file to physical blocks on the partition, > everytime UDF read file

Re: [PATCH 1/3] spi: omap2-mcspi: Call pm_runtime_* functions directly

2012-08-21 Thread Felipe Balbi
On Tue, Aug 21, 2012 at 11:47:42AM +0530, Shubhrajyoti D wrote: > Call the pm_runtime functions directly making room for possible > pm optimisations. Also the runtime functions aren't just about > enabling and disabling of clocks though it does enable clocks also. > > Signed-off-by: Shubhrajyoti

Re: [Cocci] [PATCH] scripts/coccinelle: ptr_ret: Add ternary operator version

2012-08-21 Thread Julia Lawall
On Tue, 21 Aug 2012, Lars-Peter Clausen wrote: > Add a ternary operator version of the open-coded PTR_RET(). > > Signed-off-by: Lars-Peter Clausen > --- > scripts/coccinelle/api/ptr_ret.cocci | 26 ++ > 1 files changed, 26 insertions(+), 0 deletions(-) > > diff --git

Re: [PATCH] Fixes for dw_dmac and atmel-mci for AP700x

2012-08-21 Thread Arnd Bergmann
On Tuesday 21 August 2012, Viresh Kumar wrote: > On 21 August 2012 14:17, Arnd Bergmann wrote: > > > On Tuesday 21 August 2012, Viresh Kumar wrote: > > > On 21 August 2012 14:04, Arnd Bergmann wrote: > > > > > > > Yes, this is very strange. Maybe the compiler already splits the > > > > access

[PATCH 4/4] leds-lp5523: minor code style fixes

2012-08-21 Thread Kim, Milo
(a) use LP5523_ENABLE rather than magic number 0x40 (b) use min_t() in lp5523_mux_parse() (c) skip while loop and just return if invalid command Signed-off-by: Milo(Woogyom) Kim --- drivers/leds/leds-lp5523.c | 15 +++ 1 files changed, 7 insertions(+), 8 deletions(-) diff --git

[PATCH 3/4] leds-lp5523: change the return type of lp5523_set_mode()

2012-08-21 Thread Kim, Milo
The return value of this function is not handled any place, so make it as void type. And three if-statements are replaced with switch-statements. Signed-off-by: Milo(Woogyom) Kim --- drivers/leds/leds-lp5523.c | 24 +--- 1 files changed, 13 insertions(+), 11 deletions(-)

[PATCH 2/4] leds-lp5523: set the brightness to 0 forcely on removing the driver

2012-08-21 Thread Kim, Milo
Turning off the brightness of each channel is required when removing the driver. So use flush_work_sync() rather than cancel_work_sync() to wait for unhandled brightness works. Signed-off-by: Milo(Woogyom) Kim --- drivers/leds/leds-lp5523.c |4 ++-- 1 files changed, 2 insertions(+), 2

Re: [PATCH v2 23/31] arm64: Debugging support

2012-08-21 Thread Will Deacon
On Mon, Aug 20, 2012 at 09:10:59PM +0100, Arnd Bergmann wrote: > On Monday 20 August 2012, Will Deacon wrote: > > On Mon, Aug 20, 2012 at 10:07:54AM +0100, Will Deacon wrote: > > > On Fri, Aug 17, 2012 at 08:06:07AM +0100, Arnd Bergmann wrote: > > > > Sorry for the dumb question, but why do you

[PATCH 1/4] leds-lp5523: add channel name in the platform data

2012-08-21 Thread Kim, Milo
The name of each led channel is configurable. If the name is NULL, just use the channel id for making the channel name Signed-off-by: Milo(Woogyom) Kim --- Documentation/leds/leds-lp5523.txt |7 +-- drivers/leds/leds-lp5523.c | 10 +++--- include/linux/leds-lp5523.h

Re: [PATCH v4 1/3] Runtime Interpreted Power Sequences

2012-08-21 Thread Tomi Valkeinen
On Tue, 2012-08-21 at 10:33 +0200, Thierry Reding wrote: > I suppose power sequences aren't needed if you have a specific driver > for every panel out there. However that also means that you'd have to > write drivers for literally every panel that requires support. In the > end this will just

Re: [PATCH 5/8] mfd: Provide the PRCMU with its own IRQ domain

2012-08-21 Thread Lee Jones
> > If they don't have linear domains there's no point, if they support DT > > then they can use it as it is. > > All this stuff just works for any IRQ domain type, there's no > requirement for a particular one. It's not urgently exciting for legacy > domains but it's not harmful either and

Re: [PATCH v1] virtio-scsi: get and set the queue limits for sg device

2012-08-21 Thread Stefan Hajnoczi
On Tue, Aug 21, 2012 at 9:26 AM, Cong Meng wrote: > Each virtio scsi HBA has global request queue limits. But the passthrough > LUNs (scsi-generic) come from different host HBAs may have different request > queue limits. If the guest sends commands that exceed the host limits, the > commands will

Re: [PATCH v4 1/3] Runtime Interpreted Power Sequences

2012-08-21 Thread Alex Courbot
On Tuesday 21 August 2012 16:33:30 Thierry Reding wrote: > I suppose power sequences aren't needed if you have a specific driver > for every panel out there. However that also means that you'd have to > write drivers for literally every panel that requires support. In the > end this will just

[PATCH] scripts/coccinelle: ptr_ret: Add ternary operator version

2012-08-21 Thread Lars-Peter Clausen
Add a ternary operator version of the open-coded PTR_RET(). Signed-off-by: Lars-Peter Clausen --- scripts/coccinelle/api/ptr_ret.cocci | 26 ++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/scripts/coccinelle/api/ptr_ret.cocci

Re: [PATCH] Fixes for dw_dmac and atmel-mci for AP700x

2012-08-21 Thread Arnd Bergmann
On Tuesday 21 August 2012, Viresh Kumar wrote: > On 21 August 2012 14:04, Arnd Bergmann wrote: > > > Yes, this is very strange. Maybe the compiler already splits the > > access into two 16-byte loads and that confuses the device? > > @Arnd: Is compiler allowed to do that even when we have

Re: [PATCH 17/19] x86, msi: Introduce x86_msi.compose_msi_msg call-back

2012-08-21 Thread Joerg Roedel
On Mon, Aug 20, 2012 at 10:08:44AM -0400, Konrad Rzeszutek Wilk wrote: > On Mon, Aug 20, 2012 at 03:56:03PM +0200, Joerg Roedel wrote: > > This call-back points to the right function for initializing > > the msi_msg structure. > > What is the 'hpet_id' purpose in this? The VT-d implementation

[PATCH] Staging: rtl8192u: using random_ether_addr() to generate random MAC

2012-08-21 Thread Wei Yongjun
From: Wei Yongjun Using random_ether_addr() to generate a random Ethernet address (MAC) that is not multicast and has the local assigned bit set. Not need to duplicating its implementation. spatch with a semantic match is used to found this problem. (http://coccinelle.lip6.fr/) Signed-off-by:

[PATCH] staging: rtl8192e: using random_ether_addr() to generate random MAC

2012-08-21 Thread Wei Yongjun
From: Wei Yongjun Using random_ether_addr() to generate a random Ethernet address (MAC) that is not multicast and has the local assigned bit set. Not need to duplicating its implementation. spatch with a semantic match is used to found this problem. (http://coccinelle.lip6.fr/) Signed-off-by:

[PATCH] staging: rtl8187se: using random_ether_addr() to generate random MAC

2012-08-21 Thread Wei Yongjun
From: Wei Yongjun Using random_ether_addr() to generate a random Ethernet address (MAC) that is not multicast and has the local assigned bit set. Not need to duplicating its implementation. spatch with a semantic match is used to found this problem. (http://coccinelle.lip6.fr/) Signed-off-by:

Re: [PATCH] Fixes for dw_dmac and atmel-mci for AP700x

2012-08-21 Thread Arnd Bergmann
On Tuesday 21 August 2012, Viresh Kumar wrote: > On 21 August 2012 13:02, Hein Tibosch wrote: > > > On 8/21/2012 2:35 PM, Viresh Kumar wrote: > > > > It got swapped as 0xAABB.CCDD => 0xCCDD.AABB > > > > @Arnd: How do we explain this? shouldn't it be DD CC BB AA?? Yes, this is very strange.

Re: [PATCH] i2c-i801: Add device tree support

2012-08-21 Thread Wolfram Sang
On Wed, Aug 08, 2012 at 09:06:47AM +0200, Thierry Reding wrote: > This commit adds support for probing slave devices parsed from the > device tree. > > Signed-off-by: Thierry Reding Acked-by: Wolfram Sang Jean, this one is for you, I guess? > --- > drivers/i2c/busses/i2c-i801.c | 2 ++ > 1

<    2   3   4   5   6   7   8   9   10   11   >