[PATCH] gpio: gpio-max710x: Support device tree probing

2012-11-15 Thread Roland Stigge
For probing via device tree, we need to support the case without platform_data. In this case, chip.base is set to -1 for automatic numbering. Signed-off-by: Roland Stigge sti...@antcom.de --- drivers/gpio/gpio-max730x.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) ---

Re: 3.7-rc3: mouses stopped working

2012-11-15 Thread Pavel Machek
Hi! I'm using thinkpad x60 with external USB mouse. On first boot, both mice stopped working after minute-or-so in X. Lets see if it breaks on the next boot, too.. Aha, happens on next boot, and mice are broken from the start. Hmm. And even on console, gpm is not there, and if I try to start

Re: [PATCH] RFC: pinctrl: grab default handler with bus notifiers

2012-11-15 Thread Linus Walleij
On Tue, Nov 13, 2012 at 7:35 AM, Mark Brown broo...@opensource.wolfsonmicro.com wrote: On Mon, Nov 12, 2012 at 01:21:40PM -0700, Stephen Warren wrote: On 11/11/2012 05:22 AM, Linus Walleij wrote: Another solution that was discussed was whether to move the default pinctrl handle and state

[PATCH] tcp: fix retransmission in repair mode

2012-11-15 Thread Andrey Vagin
From: Andrew Vagin ava...@openvz.org Currently if a socket was repaired with a few packet in a write queue, a kernel bug may be triggered: kernel BUG at net/ipv4/tcp_output.c:2330! RIP: 0010:[8155784f] tcp_retransmit_skb+0x5ff/0x610 According to the initial realization

Re: [PATCH v3] i2c-hid: introduce HID over i2c specification implementation

2012-11-15 Thread Benjamin Tissoires
On Thu, Nov 15, 2012 at 2:51 PM, Jiri Kosina jkos...@suse.cz wrote: On Mon, 12 Nov 2012, Benjamin Tissoires wrote: Microsoft published the protocol specification of HID over i2c: http://msdn.microsoft.com/en-us/library/windows/hardware/hh852380.aspx This patch introduces an implementation of

Re: [PATCH v3] loop: Limit the number of requests in the bio list

2012-11-15 Thread Jens Axboe
On 2012-11-15 01:20, Lukáš Czerner wrote: On Wed, 14 Nov 2012, Jens Axboe wrote: Date: Wed, 14 Nov 2012 08:21:41 -0700 From: Jens Axboe ax...@kernel.dk To: Lukáš Czerner lczer...@redhat.com Cc: linux-kernel@vger.kernel.org, linux-fsde...@vger.kernel.org, jmo...@redhat.com,

Re: 3.7-rc3: mouses stopped working

2012-11-15 Thread Pavel Machek
On Thu 2012-11-15 14:30:04, Jiri Kosina wrote: On Thu, 15 Nov 2012, Pavel Machek wrote: I'm using thinkpad x60 with external USB mouse. On first boot, both mice stopped working after minute-or-so in X. Lets see if it breaks on the next boot, too.. USB keyboard still works, and dmesg

Re: [PATCH 04/13] MFD/rtc/gpio: twl: No need to allocate bigger buffer for write

2012-11-15 Thread Linus Walleij
On Tue, Nov 13, 2012 at 9:28 AM, Peter Ujfalusi peter.ujfal...@ti.com wrote: Since the twl-core has been converted to use regmap it is no longer needed to allocate bigger buffer for data when writing to twl. CC: Grant Likely grant.lik...@secretlab.ca CC: Linus Walleij

[PATCH v5 0/2] i2c: i2c-ocores: Add support for sparc, custom set and get functions, and the GRLIB port of the controller

2012-11-15 Thread Andreas Larsson
On sparc, irqs are not present as an IORESOURCE in the struct platform_device representation. By using platform_get_irq instead of platform_get_resource the driver works for sparc. The GRLIB port of the ocores i2c controller needs custom getreg and setreg functions to allow for big endian

[PATCH v5 2/2] i2c: i2c-ocores: Add support for the GRLIB port of the controller and use function pointers for getreg and setreg functions

2012-11-15 Thread Andreas Larsson
The registers in the GRLIB port of the controller are 32-bit and in big endian byte order. The PRELOW and PREHIGH registers are merged into one register. The subsequent registers have their offset decreased accordingly. Hence the register access needs to be handled in a non-standard manner using

[PATCH v5 1/2] i2c: i2c-ocores: Add irq support for sparc

2012-11-15 Thread Andreas Larsson
Add sparc support by using platform_get_irq instead of platform_get_resource. There are no platform resources of type IORESOURCE_IRQ for sparc, but platform_get_irq works for sparc. In the non-sparc case platform_get_irq internally uses platform_get_resource. Signed-off-by: Andreas Larsson

Re: [PATCH] gpio: gpio-max710x: Support device tree probing

2012-11-15 Thread Wolfram Sang
On Thu, Nov 15, 2012 at 02:59:40PM +0100, Roland Stigge wrote: For probing via device tree, we need to support the case without platform_data. In this case, chip.base is set to -1 for automatic numbering. Signed-off-by: Roland Stigge sti...@antcom.de Aren't there bindings for pullup

Re: 3.7-rc3: mouses stopped working

2012-11-15 Thread Jiri Kosina
On Thu, 15 Nov 2012, Pavel Machek wrote: I'm using thinkpad x60 with external USB mouse. On first boot, both mice stopped working after minute-or-so in X. Lets see if it breaks on the next boot, too.. USB keyboard still works, and dmesg seems to contain repeated detections of

Re: [ANNOUNCE] 3.6.6-rt17

2012-11-15 Thread Paul Gortmaker
On 12-11-14 02:56 PM, Fernando Lopez-Lezcano wrote: On 11/12/2012 01:28 PM, Thomas Gleixner wrote: Dear RT Folks, I'm pleased to announce the 3.6.6-rt17 release. 3.6.6-rt16 is just a not announced update release to 3.6.6. Got this: net/nfc/llcp/llcp.c: In function

Re: [PATCH] tcp: fix retransmission in repair mode

2012-11-15 Thread Pavel Emelyanov
On 11/15/2012 06:03 PM, Andrey Vagin wrote: From: Andrew Vagin ava...@openvz.org Currently if a socket was repaired with a few packet in a write queue, a kernel bug may be triggered: kernel BUG at net/ipv4/tcp_output.c:2330! RIP: 0010:[8155784f] tcp_retransmit_skb+0x5ff/0x610

Re: [PATCH 1/5] arcmsr: Re-name the HBA Type

2012-11-15 Thread James Bottomley
On Thu, 2012-11-15 at 15:24 +0800, NickCheng wrote: From: Nick Cheng nick.ch...@areca.com.tw Replace the nameing, hba, hbb and hbc, with hbaA, hbaB abd hbaC respectively Signed-off-by: Nick Cheng nick.ch...@areca.com.tw I can apply this with manual fixups because of the double // in the

Re: [PATCH 0/9 v4] use efficient this_cpu_* helper

2012-11-15 Thread Christoph Lameter
Tejon: Could you pick up this patchset? On Tue, 13 Nov 2012, Shan Wei wrote: this_cpu_ptr/this_cpu_read is faster than per_cpu_ptr(p, smp_processor_id()) and can reduce memory accesses. The latter helper needs to find the offset for current cpu, and needs more assembler instructions which

[PATCH 2/2] dw_dmac: make usage of dw_dma_slave optional

2012-11-15 Thread Andy Shevchenko
Currently for the slave transfers the driver requires a custom slave configuration to be present. Nevertheless, in some cases we need only the request line as an additional information to the generic slave configuration. The request line is provided by slave_id parameter of the dma_slave_config

[PATCH 1/2] dw_dmac: check direction properly in dw_dma_cyclic_prep

2012-11-15 Thread Andy Shevchenko
dma_transfer_direction is a normal enum. It means we can't usually use the values as bit fields. Let's adjust this check and move it above the usage of the direction parameter. This patch introduces helper function is_slave_direction() that will be used later in other places of the code.

Re: [PATCH] mm: fix a regression with HIGHMEM introduced by changeset 7f1290f2f2a4d

2012-11-15 Thread Wen Congyang
At 2012/11/15 19:28, Bob Liu Wrote: On Thu, Nov 15, 2012 at 5:22 PM, Wen Congyangwe...@cn.fujitsu.com wrote: Hi, Liu Jiang At 11/14/2012 10:52 PM, Jiang Liu Wrote: On 11/07/2012 04:43 AM, Andrew Morton wrote: On Tue, 6 Nov 2012 09:31:57 +0800 Jiang Liujiang@huawei.com wrote:

Re: [PATCH 0/8] Announcement: Enhanced NUMA scheduling with adaptive affinity

2012-11-15 Thread Christoph Lameter
On Tue, 13 Nov 2012, Ingo Molnar wrote: the pages over both nodes in use. I'd not go as far as to claim that to be a general rule: the correct placement depends on the system and workload specifics: how much memory is on each node, how many tasks run on each node, and whether the access

Re: [PATCH] RFC: pinctrl: grab default handler with bus notifiers

2012-11-15 Thread Thomas Petazzoni
Linus, On Thu, 15 Nov 2012 15:03:40 +0100, Linus Walleij wrote: I have to say that I agree with this, notifiers seem to make life more complicated for limited gain. Otherwise I guess we could enhance notifiers so that they're able to trigger deferrals? OK I'll have to come up with a

Re: [PATCH 1/2] dw_dmac: check direction properly in dw_dma_cyclic_prep

2012-11-15 Thread viresh kumar
On Thu, Nov 15, 2012 at 7:50 PM, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c +static inline bool is_slave_direction(enum dma_transfer_direction direction) +{ + return (direction == DMA_MEM_TO_DEV) || (direction ==

Re: new architectures, time_t __kernel_long_t

2012-11-15 Thread Arnd Bergmann
On Thursday 15 November 2012, H.J. Lu wrote: On Thu, Nov 15, 2012 at 1:14 AM, Arnd Bergmann a...@arndb.de wrote: On Wednesday 14 November 2012, H. Peter Anvin wrote: On 11/14/2012 04:18 AM, Arnd Bergmann wrote: Since we are in the review phase for two new architectures that we should be

Re: [PATCH 1/2] Boottime: A tool for automatic measurement of kernel/bootloader boot time

2012-11-15 Thread Lee Jones
On Thu, 15 Nov 2012, Andrew Murray wrote: On 15 November 2012 10:04, Lee Jones lee.jo...@linaro.org wrote: The overhead is very low and the results will be found under sysfs/bootime, as well as detailed results in debugfs under boottime/. The bootgraph* files are compatible with

Re: [PATCH] gpio: gpio-max710x: Support device tree probing

2012-11-15 Thread Roland Stigge
On 15/11/12 15:10, Wolfram Sang wrote: On Thu, Nov 15, 2012 at 02:59:40PM +0100, Roland Stigge wrote: For probing via device tree, we need to support the case without platform_data. In this case, chip.base is set to -1 for automatic numbering. Signed-off-by: Roland Stigge sti...@antcom.de

[PATCH] X.509: Do not rely on implicit time.h include

2012-11-15 Thread Michal Marek
x509_parser.h needs struct tm, so include the header that declares it. Signed-off-by: Michal Marek mma...@suse.cz --- crypto/asymmetric_keys/x509_parser.h |1 + 1 file changed, 1 insertion(+) diff --git a/crypto/asymmetric_keys/x509_parser.h b/crypto/asymmetric_keys/x509_parser.h index

Re: [PATCH] ARM: add get_user() support for 8 byte types

2012-11-15 Thread Arnd Bergmann
On Thursday 15 November 2012, Rob Clark wrote: I still haven't heard a conclusive argument why we need to use get_user() rather than copy_from_user() in the DRM code. Is this about a fast path where you want to shave off a few cycles for each call, or does this simplify the code structure,

Re: new architectures, time_t __kernel_long_t

2012-11-15 Thread H.J. Lu
On Thu, Nov 15, 2012 at 6:36 AM, Arnd Bergmann a...@arndb.de wrote: On Thursday 15 November 2012, H.J. Lu wrote: On Thu, Nov 15, 2012 at 1:14 AM, Arnd Bergmann a...@arndb.de wrote: On Wednesday 14 November 2012, H. Peter Anvin wrote: On 11/14/2012 04:18 AM, Arnd Bergmann wrote: Since we

Re: [PATCH 4/4] pinctrl: nomadik: Prevent NULL dereference if of_match_device returns NULL

2012-11-15 Thread Linus Walleij
On Thu, Nov 15, 2012 at 5:56 AM, Axel Lin axel@ingics.com wrote: of_match_device() may return NULL. Signed-off-by: Axel Lin axel@ingics.com --- drivers/pinctrl/pinctrl-nomadik.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git

Re: [PATCH v2] cuse: do not register multiple devices with the same name

2012-11-15 Thread Tejun Heo
On Thu, Nov 15, 2012 at 01:23:17PM +0100, David Herrmann wrote: We do not check whether we already registered a CUSE device with a given name so we might end up with two devices with the same name. Sysfs will then complain as it cannot create suitable directories. This patch makes the

Re: [RFC 2/5] memcg: rework mem_cgroup_iter to use cgroup iterators

2012-11-15 Thread Tejun Heo
Hello, Michal. On Thu, Nov 15, 2012 at 10:51:03AM +0100, Michal Hocko wrote: I'm a bit confused. Why would that make any difference? Shouldn't it be just able to test the condition and continue? Ohh, I misunderstood your proposal. So what you are suggesting is to put all the logic we

Re: [PATCH 0/9 v4] use efficient this_cpu_* helper

2012-11-15 Thread Tejun Heo
On Thu, Nov 15, 2012 at 02:19:38PM +, Christoph Lameter wrote: Tejon: Could you pick up this patchset? Sure, but, Shan, when posting patchset, please make the patches replies to the head message; otherwise, it's pretty difficult to track what's going on with the patchset as a whole. I see

Re: [PATCH 1/5] arcmsr: Re-name the HBA Type

2012-11-15 Thread 鄭守謙
Hi James, You got these errors/warnings before or after you apply these 5 patches? Thanks, 2012/11/15 James Bottomley james.bottom...@hansenpartnership.com: On Thu, 2012-11-15 at 15:24 +0800, NickCheng wrote: From: Nick Cheng nick.ch...@areca.com.tw Replace the nameing, hba, hbb and hbc, with

[PATCH v3] mfd: arizona: Sync regcache after reset

2012-11-15 Thread Charles Keepax
In the absence of a physical reset line the chip is reset by writing the first register, which is done after the register patch has been applied. This patch synchronises the register cache after the reset to preserve any register changes that had been applied. Signed-off-by: Charles Keepax

Re: [PATCH v5 2/2] i2c: i2c-ocores: Add support for the GRLIB port of the controller and use function pointers for getreg and setreg functions

2012-11-15 Thread Peter Korsgaard
Andreas == Andreas Larsson andr...@gaisler.com writes: Andreas The registers in the GRLIB port of the controller are 32-bit Andreas and in big endian byte order. The PRELOW and PREHIGH registers Andreas are merged into one register. The subsequent registers have Andreas their offset

Re: [PATCH 2/2] dw_dmac: make usage of dw_dma_slave optional

2012-11-15 Thread viresh kumar
On Thu, Nov 15, 2012 at 7:50 PM, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c +static inline bool dwc_is_slave(struct dma_slave_config *sconfig) +{ + return is_slave_direction(sconfig-direction); +} I will not buy

Re: [PATCH 1/2] dw_dmac: check direction properly in dw_dma_cyclic_prep

2012-11-15 Thread viresh kumar
On Thu, Nov 15, 2012 at 8:05 PM, viresh kumar viresh.ku...@linaro.org wrote: On Thu, Nov 15, 2012 at 7:50 PM, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c +static inline bool is_slave_direction(enum dma_transfer_direction

Re: [PATCH 1/5] arcmsr: Re-name the HBA Type

2012-11-15 Thread James Bottomley
On Thu, 2012-11-15 at 22:53 +0800, 鄭守謙 wrote: Hi James, You got these errors/warnings before or after you apply these 5 patches? I got all of this lot from patch 1/5 only. Please fix at least the errors and the warnings that go to whitespace issues. I don't really care about printk(KERN_ERR

Re: [PATCH] tcp: fix retransmission in repair mode

2012-11-15 Thread Eric Dumazet
On Thu, 2012-11-15 at 18:03 +0400, Andrey Vagin wrote: From: Andrew Vagin ava...@openvz.org Currently if a socket was repaired with a few packet in a write queue, a kernel bug may be triggered: kernel BUG at net/ipv4/tcp_output.c:2330! RIP: 0010:[8155784f]

Re: [PATCH 3/3] target/iblock: Add WRITE_SAME w/ UNMAP=0 emulation support

2012-11-15 Thread Douglas Gilbert
On 12-11-15 06:04 AM, Christoph Hellwig wrote: + /* +* Enable WRITE_SAME emulation for IBLOCK, use scsi_debug.c default +*/ Why would we care what scsi_debug.c uses? Would you prefer no hint of where the magic number came from? At least somebody who cares when they see

Re: [PATCH v5 7/9] bug.h: Make BUILD_BUG_ON generate compile-time error

2012-11-15 Thread Borislav Petkov
On Tue, Nov 13, 2012 at 04:24:15PM -0600, Daniel Santos wrote: Borislav, Please note that this patch has changed slightly since you Acked it. I have moved the location of the negative-size array code to the end of the macro. I don't think this really matters honestly, but I figured this

Re: [PATCH v5 6/9] bug.h: Prevent double evaulation of in BUILD_BUG_ON

2012-11-15 Thread Borislav Petkov
On Tue, Nov 13, 2012 at 04:13:38PM -0600, danielfsan...@att.net wrote: When calling BUILD_BUG_ON in an optimized build using gcc 4.3 and later, the condition will be evaulated twice, possibily with side-effects. This patch eliminates that error. Signed-off-by: Daniel Santos

Re: [PATCH v5 5/9] bug.h: Fix BUILD_BUG_ON macro in __CHECKER__

2012-11-15 Thread Borislav Petkov
On Tue, Nov 13, 2012 at 04:13:37PM -0600, danielfsan...@att.net wrote: When __CHECKER__ is defined, we disable all of the BUILD_BUG.* macros. However, both BUILD_BUG_ON_NOT_POWER_OF_2 and BUILD_BUG_ON was evaluating to nothing in this case, and we want (0) since this is a function-like macro

Re: [PATCH v5 8/9] compiler.h, bug.h: Prevent double error messages with BUILD_BUG{,_ON}

2012-11-15 Thread Borislav Petkov
On Tue, Nov 13, 2012 at 04:13:40PM -0600, danielfsan...@att.net wrote: Prior to the introduction of __attribute__((error(msg))) in gcc 4.3, creating compile-time errors required a little trickery. BUILD_BUG{,_ON} uses this attribute when available to generate compile-time errors, but also uses

Re: [PATCH 1/5] arcmsr: Re-name the HBA Type

2012-11-15 Thread 鄭守謙
OK. I will fix it. Thank you, 2012/11/15 James Bottomley james.bottom...@hansenpartnership.com: On Thu, 2012-11-15 at 22:53 +0800, 鄭守謙 wrote: Hi James, You got these errors/warnings before or after you apply these 5 patches? I got all of this lot from patch 1/5 only. Please fix at least the

Re: [PATCH v5 9/9] bug.h, compiler.h: Introduce compiletime_assert BUILD_BUG_ON_MSG

2012-11-15 Thread Borislav Petkov
On Tue, Nov 13, 2012 at 04:13:41PM -0600, danielfsan...@att.net wrote: Introduce compiletime_assert to compiler.h, which moves the details of how to break a build and emit an error message for a specific compiler to the headers where these details should be. Following the tradition of the

RE: PROBLEM: compilation issue, inline assembly arch/x86/kvm/emulate.c fails at -O0

2012-11-15 Thread Blower, Melanie
Thanks for your reply. As you agree there is an actual bug in this code, would you kindly be able to tell me when a fix would be available in the Linux trunk? Thanks and best regards, Melanie Blower -Original Message- From: H. Peter Anvin [mailto:h...@zytor.com] Sent: Wednesday,

Re: new architectures, time_t __kernel_long_t

2012-11-15 Thread H. Peter Anvin
On 11/15/2012 06:36 AM, Arnd Bergmann wrote: Glibc has been providing its own types for years. Kernel provided types used to be wrong for ia32 on x86-64. What about ioctls and other calls then that actually do rely on the kernel headers and use the __kernel_*_t types? Now, glibc

Re: [RFC 2/5] memcg: rework mem_cgroup_iter to use cgroup iterators

2012-11-15 Thread Michal Hocko
On Thu 15-11-12 06:47:32, Tejun Heo wrote: Hello, Michal. On Thu, Nov 15, 2012 at 10:51:03AM +0100, Michal Hocko wrote: I'm a bit confused. Why would that make any difference? Shouldn't it be just able to test the condition and continue? Ohh, I misunderstood your proposal. So what

Re: [PATCH 4/4] pinctrl: nomadik: Prevent NULL dereference if of_match_device returns NULL

2012-11-15 Thread Lee Jones
On Thu, 15 Nov 2012, Linus Walleij wrote: On Thu, Nov 15, 2012 at 5:56 AM, Axel Lin axel@ingics.com wrote: of_match_device() may return NULL. Signed-off-by: Axel Lin axel@ingics.com --- drivers/pinctrl/pinctrl-nomadik.c | 11 --- 1 file changed, 8 insertions(+),

Re: [PATCH 1/2] dw_dmac: check direction properly in dw_dma_cyclic_prep

2012-11-15 Thread Andy Shevchenko
On Thu, 2012-11-15 at 20:28 +0530, viresh kumar wrote: On Thu, Nov 15, 2012 at 8:05 PM, viresh kumar viresh.ku...@linaro.org wrote: On Thu, Nov 15, 2012 at 7:50 PM, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c

[GIT PULL] UBIFS changes for 3.7-rc6

2012-11-15 Thread Artem Bityutskiy
Hi Linus, please, pull UBIFS fixes. The following changes since commit 6f0c0580b70c89094b3422ba81118c7b959c7556: Linux 3.7-rc2 (2012-10-20 12:11:32 -0700) are available in the git repository at: git://git.infradead.org/linux-ubifs.git tags/upstream-3.7-rc6 for you to fetch changes up to

Re: [PATCH 2/2] dw_dmac: make usage of dw_dma_slave optional

2012-11-15 Thread Andy Shevchenko
On Thu, 2012-11-15 at 20:28 +0530, viresh kumar wrote: On Thu, Nov 15, 2012 at 7:50 PM, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c +static inline bool dwc_is_slave(struct dma_slave_config *sconfig) +{ +

[PATCH v2] sp5100_tco: Add SB8x0 chipset support

2012-11-15 Thread Takahisa Tanaka
The current sp5100_tco driver only supports SP5100/SB7x0 chipset, doesn't support SB8x0 chipset, because current sp5100_tco driver doesn't know that the offset address for watchdog timer was changed from SB8x0 chipset. The offset address of SP5100 and SB7x0 chipsets are as follows, quote from the

Re: [PATCH 2/2] dw_dmac: make usage of dw_dma_slave optional

2012-11-15 Thread Viresh Kumar
On 15 November 2012 20:51, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: On Thu, 2012-11-15 at 20:28 +0530, viresh kumar wrote: On Thu, Nov 15, 2012 at 7:50 PM, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c

Re: [PATCH 3/3] target/iblock: Add WRITE_SAME w/ UNMAP=0 emulation support

2012-11-15 Thread Martin K. Petersen
Doug == Douglas Gilbert dgilb...@interlog.com writes: Doug On 12-11-15 06:04 AM, Christoph Hellwig wrote: + /* + * Enable WRITE_SAME emulation for IBLOCK, use scsi_debug.c default + */ Why would we care what scsi_debug.c uses? Doug Would you prefer no hint of where the magic number came

Re: [PATCH 7/7] printk: Wake up klogd using irq_work

2012-11-15 Thread Frederic Weisbecker
2012/11/15 Steven Rostedt rost...@goodmis.org: On Wed, 2012-11-14 at 21:37 +0100, Frederic Weisbecker wrote: diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index f249e8c..822d757 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c @@ -289,7 +289,7 @@ static

Re: [BUGFIX] PM: Fix active child counting when disabled and forbidden

2012-11-15 Thread Alan Stern
On Thu, 15 Nov 2012, Rafael J. Wysocki wrote: So it looks like what we want to do is: (1) Enable runtime PM in pci_pm_init() and set the status to RPM_ACTIVE right before, so that it is in agreement with the pm_runtime_forbid() we do in there. (2) If user space switches

Re: [PATCH 2/2] dw_dmac: make usage of dw_dma_slave optional

2012-11-15 Thread Andy Shevchenko
On Thu, 2012-11-15 at 20:54 +0530, Viresh Kumar wrote: On 15 November 2012 20:51, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: On Thu, 2012-11-15 at 20:28 +0530, viresh kumar wrote: On Thu, Nov 15, 2012 at 7:50 PM, Andy Shevchenko andriy.shevche...@linux.intel.com wrote:

Re: Q: using cgroups in real life

2012-11-15 Thread Michal Hocko
On Wed 14-11-12 14:54:30, Ulrich Windl wrote: Hi! I have a question on cgroups (as of Linux 3.0): The concept is to mount a filesystem, and configure cgroups through it. This implies that all the files belong to root (or maybe some other fixed user). Have a look at libcgroup package -

Re: [RFC 2/5] memcg: rework mem_cgroup_iter to use cgroup iterators

2012-11-15 Thread Tejun Heo
Hello, Michal. On Thu, Nov 15, 2012 at 04:12:55PM +0100, Michal Hocko wrote: Because I'd like to consider the next functions as implementation detail, and having interations structred as loops tend to read better and less error-prone. e.g. when you use next functions directly, it's way

[PATCH 0/8][RFC] ftrace: Optimizing the function tracer

2012-11-15 Thread Steven Rostedt
In the past I've worked on tricks to make the function tracer a bit faster. I've lowered the overhead by 18% which is quite an improvement. Thus, instead of only taking 11x longer in the kernel, it takes 9x ;-) Anyway, these are the latest patches to improve function tracing and are pretty much

[PATCH 8/8][RFC] ring-buffer: User context bit recursion checking

2012-11-15 Thread Steven Rostedt
From: Steven Rostedt srost...@redhat.com Using context bit recursion checking, we can help increase the performance of the ring buffer. Before this patch: # echo function /debug/tracing/current_tracer # for i in `seq 10`; do ./hackbench 50; done Time: 10.285 Time: 10.407 Time: 10.243 Time:

[PATCH 2/8][RFC] ftrace: Fix function tracing recursion self test

2012-11-15 Thread Steven Rostedt
From: Steven Rostedt srost...@redhat.com The function tracing recursion self test should not crash the machine if the resursion test fails. If it detects that the function tracing is recursing when it should not be, then bail, don't go into an infinite recursive loop. Signed-off-by: Steven

[PATCH 1/8][RFC] ftrace: Fix global function tracers that are not recursion safe

2012-11-15 Thread Steven Rostedt
From: Steven Rostedt srost...@redhat.com If one of the function tracers set by the global ops is not recursion safe, it can still be called directly without the added recursion supplied by the ftrace infrastructure. Signed-off-by: Steven Rostedt rost...@goodmis.org --- kernel/trace/ftrace.c |

[PATCH 6/8][RFC] tracing: Avoid unnecessary multiple recursion checks

2012-11-15 Thread Steven Rostedt
From: Steven Rostedt srost...@redhat.com When function tracing occurs, the following steps are made: If arch does not support a ftrace feature: call internal function (uses INTERNAL bits) which calls... If callback is registered to the global list, the list function is called and

[PATCH 7/8][RFC] ftrace: Use only the preempt version of function tracing

2012-11-15 Thread Steven Rostedt
From: Steven Rostedt srost...@redhat.com The function tracer had two different versions of function tracing. The disabling of irqs version and the preempt disable version. As function tracing in very intrusive and can cause nasty recursion issues, it has its own recursion protection. But the

Re: [PATCH 7/7] printk: Wake up klogd using irq_work

2012-11-15 Thread Frederic Weisbecker
2012/11/15 Frederic Weisbecker fweis...@gmail.com: - CPU that offilines CPU offlining - - cpu_down() { __stop_machine(take_cpu_down) take_cpu_down() { __cpu_disable() { * disable irqs in hw *

[PATCH 5/8][RFC] tracing: Make the trace recursion bits into enums

2012-11-15 Thread Steven Rostedt
From: Steven Rostedt srost...@redhat.com Convert the bits into enums which makes the code a little easier to maintain. Signed-off-by: Steven Rostedt rost...@goodmis.org --- kernel/trace/trace.h | 30 +- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git

[PATCH 4/8][RFC] ftrace: Add context level recursion bit checking

2012-11-15 Thread Steven Rostedt
From: Steven Rostedt srost...@redhat.com Currently for recursion checking in the function tracer, ftrace tests a task_struct bit to determine if the function tracer had recursed or not. If it has, then it will will return without going further. But this leads to races. If an interrupt came in

[PATCH 3/8][RFC] ftrace: Optimize the function tracer list loop

2012-11-15 Thread Steven Rostedt
From: Steven Rostedt srost...@redhat.com There is lots of places that perform: op = rcu_dereference_raw(ftrace_control_list); while (op != ftrace_list_end) { Add a helper macro to do this, and also optimize for a single entity. That is, gcc will optimize a loop for either no

[PATCH] remoteproc: fix error path of -find_vqs

2012-11-15 Thread Ohad Ben-Cohen
Eliminate an erroneous invocation of rproc_shutdown inside the error path of rproc_virtio_find_vqs. Reported-by: Ido Yariv i...@wizery.com Signed-off-by: Ohad Ben-Cohen o...@wizery.com --- drivers/remoteproc/remoteproc_virtio.c | 18 -- 1 file changed, 12 insertions(+), 6

Re: [PATCH 2/2] dw_dmac: make usage of dw_dma_slave optional

2012-11-15 Thread Viresh Kumar
On 15 November 2012 20:57, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: Well, the prep_* should assign the value due to changes of check in the dwc_descriptor_complete. Otherwise we will potentially skip some important piece of code. What i meant to say was, set_runtime_config()

Re: [PATCH 5/7] irq_work: Don't stop the tick with pending works

2012-11-15 Thread Frederic Weisbecker
2012/11/15 Steven Rostedt rost...@goodmis.org: On Wed, 2012-11-14 at 21:37 +0100, Frederic Weisbecker wrote: diff --git a/kernel/irq_work.c b/kernel/irq_work.c index 64eddd5..b3c113a 100644 --- a/kernel/irq_work.c +++ b/kernel/irq_work.c @@ -99,6 +99,17 @@ bool irq_work_queue(struct irq_work

Re: [PATCH] mm: fix a regression with HIGHMEM introduced by changeset 7f1290f2f2a4d

2012-11-15 Thread Jiang Liu
On 11/15/2012 05:22 PM, Wen Congyang wrote: Hi, Liu Jiang At 11/14/2012 10:52 PM, Jiang Liu Wrote: On 11/07/2012 04:43 AM, Andrew Morton wrote: On Tue, 6 Nov 2012 09:31:57 +0800 Jiang Liu jiang@huawei.com wrote: Changeset 7f1290f2f2 tries to fix a issue when calculating

[PATCH v6 1/2] i2c: i2c-ocores: Add irq support for sparc

2012-11-15 Thread Andreas Larsson
Add sparc support by using platform_get_irq instead of platform_get_resource. There are no platform resources of type IORESOURCE_IRQ for sparc, but platform_get_irq works for sparc. In the non-sparc case platform_get_irq internally uses platform_get_resource. Signed-off-by: Andreas Larsson

[PATCH v6 2/2] i2c: i2c-ocores: Add support for the GRLIB port of the controller and use function pointers for getreg and setreg functions

2012-11-15 Thread Andreas Larsson
The registers in the GRLIB port of the controller are 32-bit and in big endian byte order. The PRELOW and PREHIGH registers are merged into one register. The subsequent registers have their offset decreased accordingly. Hence the register access needs to be handled in a non-standard manner using

[PATCH v6 0/2] i2c: i2c-ocores: Add support for sparc, custom set and get functions, and the GRLIB port of the controller

2012-11-15 Thread Andreas Larsson
On sparc, irqs are not present as an IORESOURCE in the struct platform_device representation. By using platform_get_irq instead of platform_get_resource the driver works for sparc. The GRLIB port of the ocores i2c controller needs custom getreg and setreg functions to allow for big endian

Re: [PATCH] bindings: i2c: use consistent naming for i2c binding descriptions

2012-11-15 Thread Grant Likely
On Tue, 13 Nov 2012 18:16:43 +0100, Wolfram Sang wolf...@the-dreams.de wrote: Filenames of devictree binding documentation seems to be arbitrary and for me it is unneeded hazzle to find the corresponding documentation for a specific driver. Naming the description the same as the driver is a

[PATCH] pinctrl: nomadik: Staticize non-exported symbols

2012-11-15 Thread Axel Lin
They are not referenced outside of this file, make them static. Signed-off-by: Axel Lin axel@ingics.com --- drivers/pinctrl/pinctrl-nomadik.c | 26 -- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/drivers/pinctrl/pinctrl-nomadik.c

Re: [PATCH v2] cuse: do not register multiple devices with the same name

2012-11-15 Thread David Herrmann
Hi Tejun On Thu, Nov 15, 2012 at 3:44 PM, Tejun Heo t...@kernel.org wrote: On Thu, Nov 15, 2012 at 01:23:17PM +0100, David Herrmann wrote: We do not check whether we already registered a CUSE device with a given name so we might end up with two devices with the same name. Sysfs will then

Re: [PATCH 00/12] printk() fixes, optimizations, and clean ups

2012-11-15 Thread Kay Sievers
On Wed, 2012-11-14 at 00:12 +0100, Jan H. Schönherr wrote: Hi Greg, hi Kay, and all other interested people. This series aims at cleaning up and fixing some bugs around printk(). Patches 9 and 11 might require some discussion, see below. This is how current git looks like: [1.062953]

Acpi deadlocks with 3.7.0-rc4

2012-11-15 Thread Zdenek Kabelac
Hello I've already seen twice this oops after resuming my Lenovo T61 in docking station. Since for some reason currently the serial line doesn't work correctly after resume (while I'm pretty sure it used to work in past) here is at least hand-written oops message from mobile camera

Re: [RFC] dt/platform: Use cell-index for device naming if available

2012-11-15 Thread Grant Likely
On Mon, 12 Nov 2012 18:48:43 -0800, Stepan Moskovchenko step...@codeaurora.org wrote: On 11/11/2012 5:45 PM, Stepan Moskovchenko wrote: On Sun, Nov 11, 2012 at 2:32 AM, Rob Herring robherri...@gmail.com wrote: On 11/09/2012 06:48 PM, Stepan Moskovchenko wrote: Use the cell-index

Re: [PATCH] x86/Sandy Bridge: reserve pages when integrated graphics is present

2012-11-15 Thread Jesse Barnes
On Thu, 15 Nov 2012 10:47:11 -0200 Henrique de Moraes Holschuh h...@hmh.eng.br wrote: On Wed, 14 Nov 2012, Jesse Barnes wrote: + unsigned long bad_ranges[] = { + 0x2005, + 0x2011, + 0x2013, +

Re: [PATCH] x86/Sandy Bridge: reserve pages when integrated graphics is present

2012-11-15 Thread Jesse Barnes
On Thu, 15 Nov 2012 10:47:11 -0200 Henrique de Moraes Holschuh h...@hmh.eng.br wrote: On Wed, 14 Nov 2012, Jesse Barnes wrote: + unsigned long bad_ranges[] = { + 0x2005, + 0x2011, + 0x2013, +

Re: [RFC 2/5] memcg: rework mem_cgroup_iter to use cgroup iterators

2012-11-15 Thread Michal Hocko
On Thu 15-11-12 07:31:24, Tejun Heo wrote: Hello, Michal. On Thu, Nov 15, 2012 at 04:12:55PM +0100, Michal Hocko wrote: Because I'd like to consider the next functions as implementation detail, and having interations structred as loops tend to read better and less error-prone. e.g.

Re: [PATCH] dt: platform: Extract device name from device tree blob

2012-11-15 Thread Per Förlin
On 11/15/2012 04:52 PM, Grant Likely wrote: On Mon, 12 Nov 2012 23:54:40 +0100, Per Förlin per.for...@stericsson.com wrote: On 11/12/2012 04:20 PM, Grant Likely wrote: On Mon, Nov 12, 2012 at 2:59 PM, Per Forlin per.for...@stericsson.com wrote: Add support to extract device name from

Re: [linux-keystone] [PATCH] spi: davinci: add OF support for the spi controller

2012-11-15 Thread Grant Likely
On Mon, 12 Nov 2012 16:28:22 -0500, Murali Karicheri m-kariche...@ti.com wrote: This adds OF support to DaVinci SPI controller to configure platform data through device bindings. Signed-off-by: Murali Karicheri m-kariche...@ti.com Hi Murali, Comments below... ---

Re: [PATCH] backlight: Add of_find_backlight_by_node() function

2012-11-15 Thread Grant Likely
On Wed, 7 Nov 2012 23:08:39 +0100, Thierry Reding thierry.red...@avionic-design.de wrote: This function finds the struct backlight_device for a given device tree node. A dummy function is provided so that it safely compiles out if OF support is disabled. Signed-off-by: Thierry Reding

Re: [PATCH] Staging: comedi: drivers: replaced printk with dev_dbg

2012-11-15 Thread Arpith Easow Alexander
On Tue, Nov 13, 2012 at 11:52:52AM -0800, Greg KH wrote: On Sat, Nov 10, 2012 at 12:38:38PM +0530, Arpith Easow Alexander wrote: This is a patch to the vmk80xx.c file that replaces the printk with dev_dbg. This fixes the warnings found by the checkpatch.pl tool. Signed-off-by: Arpith

Re: [PATCH] arm-dt: Enable DT proc updates.

2012-11-15 Thread Grant Likely
On Wed, 31 Oct 2012 21:04:24 -0500, Rob Herring robherri...@gmail.com wrote: On 10/31/2012 10:57 AM, Pantelis Antoniou wrote: This simple patch enables dynamic changes of the DT tree on runtime to be visible to the device-tree proc interface. Signed-off-by: Pantelis Antoniou

Re: [PATCH] spi: Export OF interfaces.

2012-11-15 Thread Grant Likely
On Wed, 31 Oct 2012 17:57:33 +0200, Pantelis Antoniou pa...@antoniou-consulting.com wrote: Export an interface that other in-kernel users can utilize. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com I'm not going to apply this before an in-kernel user exists for this. I know

[PATCH RFC] irq_work: Flush work on CPU_DYING (was: Re: [PATCH 7/7] printk: Wake up klogd using irq_work)

2012-11-15 Thread Steven Rostedt
On Thu, 2012-11-15 at 16:25 +0100, Frederic Weisbecker wrote: 2012/11/15 Steven Rostedt rost...@goodmis.org: On Wed, 2012-11-14 at 21:37 +0100, Frederic Weisbecker wrote: diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index f249e8c..822d757 100644 ---

RE: [PATCH] Staging: comedi: drivers: replaced printk with dev_dbg

2012-11-15 Thread H Hartley Sweeten
On Thursday, November 15, 2012 9:28 AM, Arpith Easow Alexander wrote: On Tue, Nov 13, 2012 at 11:52:52AM -0800, Greg KH wrote: So a macro called dbgcm tests a variable called dbgcm? Gotta love c at times... Just delete the macro, and the variable, and call dev_dbg() directly please. Ok.

[PATCH RFT] regulator: da9055: Fix checking wrong value in da9055_gpio_init

2012-11-15 Thread Axel Lin
Check pdata-gpio_rsel pdata-gpio_rsel[id] for the case GPI pin is muxed with regulator to select the regulator register set A/B for voltage ramping. Signed-off-by: Axel Lin axel@ingics.com --- Hi Ashish, I'm wondering if this is a typo or I misunderstand the code. Axel

Re: new execve/kernel_thread design

2012-11-15 Thread Michal Simek
Hi Al, 2012/10/17 Al Viro v...@zeniv.linux.org.uk: On Wed, Oct 17, 2012 at 05:07:03PM +0100, Al Viro wrote: What happens during boot is this: * init_task (not to be confused with init) is used as current during infrastructure initializations. Once everything needed for scheduler and

Re: [PATCH 2/2] char/tpm: simplify duration calculation and eliminate sparse warning.

2012-11-15 Thread Kent Yoder
On Wed, Nov 14, 2012 at 11:37:06PM +0100, Peter Hüwe wrote: Am Mittwoch, 14. November 2012, 23:18:26 schrieb Kent Yoder: On Mon, Nov 12, 2012 at 11:37:18PM +0100, Peter Huewe wrote: This patch also gets rid of the (false positive) sparse warning: drivers/char/tpm/tpm.c:360

[PATCH v2 1/3] VFIO: unregister IOMMU notifier on error recovery path

2012-11-15 Thread Jiang Liu
On error recovery path in function vfio_create_group(), it should unregister the IOMMU notifier for the new VFIO group. Otherwise it may cause invalid memory access later when handling bus notifications. Signed-off-by: Jiang Liu jiang@huawei.com --- drivers/vfio/vfio.c | 31

<    5   6   7   8   9   10   11   12   13   14   >