Re: [PATCH V3 5/8] memcg: add per cgroup writeback pages accounting

2013-01-06 Thread Greg Thelen
On Tue, Dec 25 2012, Sha Zhengju wrote: From: Sha Zhengju handai@taobao.com Similar to dirty page, we add per cgroup writeback pages accounting. The lock rule still is: mem_cgroup_begin_update_page_stat() modify page WRITEBACK stat mem_cgroup_update_page_stat()

Re: Linux 3.8-rc2

2013-01-06 Thread Daniel Vetter
On Thu, Jan 03, 2013 at 03:18:54PM -0800, Linus Torvalds wrote: On Thu, Jan 3, 2013 at 3:12 PM, Alexey Zaytsev alexey.zayt...@gmail.com wrote: Chris: The patch does not seem to have any effect on the problem. Peter: I've attached the dmesgs, as well as the diff between the interesting

Re: [PATCH] drm/i915: Treat crtc-mode.clock == 0 as disabled

2013-01-06 Thread Daniel Vetter
On Fri, Jan 4, 2013 at 12:39 PM, Chris Wilson ch...@chris-wilson.co.uk wrote: Prevent a divide-by-zero by consistently treating an 'active' CRTC without a mode set as actually disabled. Can you please resend with sob/tested-by/lkml-references and regression sha1 citation and maybe a small

[PATCH] [media] ngene: Use newly created function

2013-01-06 Thread Emil Goode
The function demod_attach_drxd was split into two by commit 36a495a3. This resulted in a new function tuner_attach_dtt7520x that is not used. We should register tuner_attach_dtt7520x as a callback in the ngene_info struct in the same way as done with the other part of the split function. Sparse

Re: [PATCH V3 4/8] memcg: add per cgroup dirty pages accounting

2013-01-06 Thread Greg Thelen
On Tue, Dec 25 2012, Sha Zhengju wrote: From: Sha Zhengju handai@taobao.com This patch adds memcg routines to count dirty pages, which allows memory controller to maintain an accurate view of the amount of its dirty memory and can provide some info for users while cgroup's direct

Re: [PATCH] OMAP: add pwm driver using dmtimers.

2013-01-06 Thread NeilBrown
On Thu, 13 Dec 2012 11:07:25 -0600 Jon Hunter jon-hun...@ti.com wrote: On 12/12/2012 09:06 PM, NeilBrown wrote: + +#if CONFIG_PM +static int omap_pwm_suspend(struct platform_device *pdev, pm_message_t state) +{ + struct omap_chip *omap = platform_get_drvdata(pdev); + /* No

Re: [PATCH] drivers/power/88pm860x_battery.c: eliminate possible references to released resources

2013-01-06 Thread Anton Vorontsov
On Sun, Jan 06, 2013 at 09:43:10AM +0100, Julia Lawall wrote: From: Julia Lawall julia.law...@lip6.fr devm_kzalloc should not be followed by kfree, as this results in a double free. The problem was found using the following semantic match (http://coccinelle.lip6.fr/): // smpl @@

Re: [PATCH] [media] ngene: Use newly created function

2013-01-06 Thread Patrice Chotard
Hi Emil, You are right, there was a missing piece of code. During merge, part of the orignal patch was missing. I have signaled it to Mauro who have fixed it in media_tree. Regards. Le 06/01/2013 21:59, Emil Goode a écrit : The function demod_attach_drxd was split into two by commit 36a495a3.

Re: [PATCH 4/4] MAINTAINERS: add LP8788 MFD driver entry

2013-01-06 Thread Anton Vorontsov
On Mon, Dec 10, 2012 at 03:52:40PM -0800, Bryan Wu wrote: On Sun, Dec 9, 2012 at 9:27 PM, Kim, Milo milo@ti.com wrote: Cc: Anton Vorontsov c...@mail.ru Cc: Bryan Wu coolo...@gmail.com Cc: Jonathan Cameron ji...@cam.ac.uk Cc: Mark Brown broo...@opensource.wolfsonmicro.com Cc: Samuel

Re: [PATCH] bq2415x_charger: Remove unneeded version.h include

2013-01-06 Thread Anton Vorontsov
On Tue, Dec 18, 2012 at 11:07:06PM +0100, Jesper Juhl wrote: The file uses nothing from the header, so including it is pointless. Signed-off-by: Jesper Juhl j...@chaosbits.net Sachin Kamat sent a similar cleanup in Nov, so he wins. :) --- drivers/power/bq2415x_charger.c |1 - 1 files

Re: Major network performance regression in 3.7

2013-01-06 Thread Willy Tarreau
On Sun, Jan 06, 2013 at 04:49:35PM -0500, John Stoffel wrote: Willy == Willy Tarreau w...@1wt.eu writes: Willy On Sun, Jan 06, 2013 at 11:00:15AM -0800, Eric Dumazet wrote: On Sun, 2013-01-06 at 10:51 -0800, Eric Dumazet wrote: (sd-len is usually 4096, which is expected, but

Re: Major network performance regression in 3.7

2013-01-06 Thread John Stoffel
Willy == Willy Tarreau w...@1wt.eu writes: Willy On Sun, Jan 06, 2013 at 04:49:35PM -0500, John Stoffel wrote: Willy == Willy Tarreau w...@1wt.eu writes: Willy On Sun, Jan 06, 2013 at 11:00:15AM -0800, Eric Dumazet wrote: On Sun, 2013-01-06 at 10:51 -0800, Eric Dumazet wrote:

Re: Major network performance regression in 3.7

2013-01-06 Thread John Stoffel
Willy == Willy Tarreau w...@1wt.eu writes: Willy On Sun, Jan 06, 2013 at 11:00:15AM -0800, Eric Dumazet wrote: On Sun, 2013-01-06 at 10:51 -0800, Eric Dumazet wrote: (sd-len is usually 4096, which is expected, but sd-total_len value is huge in your case, so we always set the flag in

Re: [PATCH 1/1] sunrpc: Fix lockd sleeping until timeout

2013-01-06 Thread Andriy Skulysh
There is a race in enqueueing thread to a pool and waking up a thread. lockd doesn't wake up on reception of lock granted callback if svc_wake_up() is called before lockd's thread is added to a pool. Signed-off-by: Andriy Skulysh andriy_skul...@xyratex.com --- include/linux/sunrpc/svc.h |1 +

Re: [PATCH/RFC 0/1] Delete legacy power trace API

2013-01-06 Thread Steven Rostedt
On Sat, 2013-01-05 at 23:10 +0100, Rafael J. Wysocki wrote: On Friday, January 04, 2013 08:49:03 PM Paul Gortmaker wrote: The actual deletion is mind-numbingly simple; and if you go by the comments in the code, it is well overdue. However, in discussions with Frederic, he suggested to me

Re: Fix test relying in wrong behavior of is_printable

2013-01-06 Thread Jon Loeliger
Hi David =CE=91=CF=80=CF=8C =CF=84=CE=BF iPhone =CE=BC=CE=BF=CF=85 6 =CE=99=CE=B1=CE=BD 2013, 5:58, =CE=BF/=CE=B7 David Gibson da...@gibson.dr= opbear.id.au =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: On Fri, Jan 04, 2013 at 09:16:08PM +0200, Pantelis Antoniou wrote: After fixing the

Re: Fix util_is_printable_string

2013-01-06 Thread Jon Loeliger
The method used did not account for multi-part strings. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com Applied. Plese consider a follow-up patch to address David's concerns. Thanks, jdl -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of

Re: fdtdump: properly handle multi-string properties

2013-01-06 Thread Jon Loeliger
Device tree can store multiple strings in a single property. We didn't handle that case properly. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com Applied. Thanks, jdl -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Re: [PATCH/RFC 0/1] Delete legacy power trace API

2013-01-06 Thread Rafael J. Wysocki
On Sunday, January 06, 2013 05:13:56 PM Steven Rostedt wrote: On Sat, 2013-01-05 at 23:10 +0100, Rafael J. Wysocki wrote: On Friday, January 04, 2013 08:49:03 PM Paul Gortmaker wrote: The actual deletion is mind-numbingly simple; and if you go by the comments in the code, it is well

Re: [PATCH 1/2] lp8788-charger: fix a parent device in _probe()

2013-01-06 Thread Anton Vorontsov
On Thu, Jan 03, 2013 at 06:30:16AM +, Kim, Milo wrote: The lp8788-charger is a platform driver of lp8788-mfd. The platform device is allocated when mfd_add_devices() is called in lp8788-mfd. On the other hand, 'lp-dev' is the i2c client device. Therefore, this 'platform_device' is

Re: [PATCH] drivers/power/da9052-battery.c: avoid out-of-range array access

2013-01-06 Thread Anton Vorontsov
On Sat, Jan 05, 2013 at 02:14:51PM -0500, Nickolai Zeldovich wrote: Avoid accessing vc_tbl_ref[3], which is one past the end of that array, in da9052_determine_vc_tbl_index(), by adjusting the loop bound. Signed-off-by: Nickolai Zeldovich nicko...@csail.mit.edu --- Applied, thanks!

[PATCH 1/8] dma: coh901318: create a proper platform data file

2013-01-06 Thread Linus Walleij
From: Linus Walleij linus.wall...@linaro.org This extracts the platform data that we will keep generic from the U300 platform and associates it with the COH901318 driver in linux/platform_data/dma-coh901318.h. Signed-off-by: Linus Walleij linus.wall...@linaro.org --- arch/arm/mach-u300/core.c

[PATCH 0/8] DMA: COH901318 in-factoring of platform

2013-01-06 Thread Linus Walleij
From: Linus Walleij linus.wall...@linaro.org This patch series moves the big, complex platform data for the U300 DMA controller COH901318 down into the driver, rids the mach/coh901318.h header from the global scope, creates a proper platform data header for the few things we acually want to

[PATCH 4/8] dma: coh901318: skip hard-coded addresses

2013-01-06 Thread Linus Walleij
From: Linus Walleij linus.wall...@linaro.org Remove hard-coded target addresses altogether. Skip the prefix runtime_* from the variables, since all of these are now runtime and their names are unique enough already. Signed-off-by: Linus Walleij linus.wall...@linaro.org ---

[PATCH 5/8] dma: coh901318: push header down into the DMA subsystem

2013-01-06 Thread Linus Walleij
From: Linus Walleij linus.wall...@linaro.org The defines in U300's mach/coh901318.h are now only used by the DMA engine driver itself, so move the header down into the DMA subsystem. Signed-off-by: Linus Walleij linus.wall...@linaro.org --- arch/arm/mach-u300/core.c | 1 -

[PATCH 7/8] dma: coh901318: merge header files

2013-01-06 Thread Linus Walleij
From: Linus Walleij linus.wall...@linaro.org We do not need two header files for the two parts of the driver to talk to each other so merge them into one. Signed-off-by: Linus Walleij linus.wall...@linaro.org --- drivers/dma/coh901318.c | 1 - drivers/dma/coh901318.h | 108

[PATCH 8/8] dma: coh901318: cut down on platform data abstraction

2013-01-06 Thread Linus Walleij
From: Linus Walleij linus.wall...@linaro.org Since we merged the platform data into the driver we can remove the middle-man abstraction. Signed-off-by: Linus Walleij linus.wall...@linaro.org --- drivers/dma/coh901318.c | 74 + 1 file changed, 7

[PATCH 6/8] dma: coh901318: push definitions into driver

2013-01-06 Thread Linus Walleij
From: Linus Walleij linus.wall...@linaro.org Move everything in the header file that is not used in both the main driver and the LLI portions into the driver, including register definitions and such. Signed-off-by: Linus Walleij linus.wall...@linaro.org --- drivers/dma/coh901318.c | 208

[PATCH 3/8] dma: coh901318: remove hardcoded target addresses

2013-01-06 Thread Linus Walleij
From: Linus Walleij linus.wall...@linaro.org Nowadays the clients should use the dmaengine framework to tell the DMA driver what target address to use, so delete these addresses, they are for an out-of-tree driver anyway. Signed-off-by: Linus Walleij linus.wall...@linaro.org ---

[PATCH] mfd: ab8500: update header file and version detection

2013-01-06 Thread Linus Walleij
From: Linus Walleij linus.wall...@linaro.org This updates the AB8500 register map with defines for a few new chip variants and adds version detection helpers to handle the different variants. Signed-off-by: Linus Walleij linus.wall...@linaro.org --- Hi Sam, it'd be great if you could ACK this

Re: [PATCH v3 2/4] videobuf2-dma-streaming: new videobuf2 memory allocator

2013-01-06 Thread Alessandro Rubini
The problem is that on the sta2x11 architecture only the first 512MB are available through the PCI bus, but the allocator can allocate memory for DMA above this limit. By using GFP_DMA flags the allocation take place under the 16MB so it works. Still, you are not running the upstream

HSI subsystem status

2013-01-06 Thread Linus Walleij
Hi Carlos, what is the status on the HSI subsystem? We have based some patches for HSI master on top of the OMAP HSI master patches, but these never seem to reach the tree? Yours, Linus Walleij -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Re: [PATCH] cpuidle - fix lock contention in the idle path

2013-01-06 Thread Daniel Lezcano
[ ... ] The following patch is a hot fix by returning to the initial behavior by removing the lock when getting the driver. The patch fixes the problem. Verified on a system with 1024 cpus. Thanks. Signed-off-by: Daniel Lezcano daniel.lezc...@linaro.org Reported-by: Russ Anderson

Re: HSI subsystem status

2013-01-06 Thread Linus Walleij
On Mon, Jan 7, 2013 at 12:11 AM, Linus Walleij linus.wall...@linaro.org wrote: Hi Carlos, what is the status on the HSI subsystem? We have based some patches for HSI master on top of the OMAP HSI master patches, but these never seem to reach the tree? Mail server replied: Delivery to the

Re: [PATCH 1/3] pinctrl: exynos: add exynos5250 SoC specific data

2013-01-06 Thread Linus Walleij
On Thu, Dec 27, 2012 at 5:58 PM, Kukjin Kim kgene@samsung.com wrote: And I think, would be clear if the config could be changed like following. 8-- From: Kukjin Kim kgene@samsung.com Subject: [PATCH] pinctrl: exynos:

[PATCH] chelsio: Use netdev_level and pr_level

2013-01-06 Thread Joe Perches
Use more current logging styles. Convert printks to pr_level and printks with (%s: ..., dev-name to netdev_level(dev, ... Add pr_fmt #defines where appropriate. Coalesce formats. Use pr_level_once where appropriate. Signed-off-by: Joe Perches j...@perches.com ---

Re: [PATCH tip/core/rcu 05/14] rcu: Distinguish rcuo kthreads by RCU flavor

2013-01-06 Thread Paul Gortmaker
On Sat, Jan 5, 2013 at 12:48 PM, Paul E. McKenney paul...@linux.vnet.ibm.com wrote: From: Paul E. McKenney paul.mcken...@linaro.org Currently, the per-no-CBs-CPU kthreads are named rcuo followed by the CPU number, for example, rcuo. This is problematic given that there are either two or

Re: [PATCH] SPI: SSP SPI Controller driver v3

2013-01-06 Thread Linus Walleij
On Wed, Dec 19, 2012 at 10:56 AM, Mika Westerberg mika.westerb...@linux.intel.com wrote: On Tue, Dec 18, 2012 at 04:11:36PM +0800, chao bi wrote: This patch is to implement SSP SPI controller driver, which has been applied and validated on intel Moorestown Medfield platform. The patch are

Re: [PATCH 06/13] cpuset: cleanup cpuset[_can]_attach()

2013-01-06 Thread Rusty Russell
Tejun Heo t...@kernel.org writes: Hello, Rusty. On Thu, Jan 03, 2013 at 11:17:11AM +1030, Rusty Russell wrote: So, I guess this currently is caught in a place which isn't here or there. I'm pretty skeptical whether it makes sense to bother about static usages tho. Can I keep them for

Re: [PATCH v2 1/5] virtio: add functions for piecewise addition of buffers

2013-01-06 Thread Rusty Russell
Wanlong Gao gaowanl...@cn.fujitsu.com writes: On 01/02/2013 01:03 PM, Rusty Russell wrote: Paolo Bonzini pbonz...@redhat.com writes: The virtqueue_add_buf function has two limitations: 1) it requires the caller to provide all the buffers in a single call; 2) it does not support chained

[PATCH 2/5 RESEND] thermal: exynos: Miscellaneous fixes to support falling threshold interrupt

2013-01-06 Thread Amit Daniel Kachhap
Below fixes are done to support falling threshold interrupt, * Falling interrupt status macro corrected according to exynos5 data sheet. * The get trend function modified to calculate trip temperature correctly. * The clearing of interrupt status in the isr is now done after handling the event

Re: [PATCH 2/5 RESEND] thermal: exynos: Miscellaneous fixes to support falling threshold interrupt

2013-01-06 Thread Joe Perches
On Sun, 2013-01-06 at 15:50 -0800, Amit Daniel Kachhap wrote: Below fixes are done to support falling threshold interrupt, * Falling interrupt status macro corrected according to exynos5 data sheet. * The get trend function modified to calculate trip temperature correctly. * The clearing of

Re: [PATCH V2 0/3] thermal: Add support for interrupt based notification to thermal layer

2013-01-06 Thread amit daniel kachhap
Hi Rui, Any comment on these patches? These are based on new quick cooling macros introduced. Also my linaro ID is not valid so using samsung ID. Thanks, Amit Daniel On Mon, Nov 26, 2012 at 5:47 AM, Amit Daniel Kachhap amit.kach...@linaro.org wrote: Changes since V1: Used the new thermal trend

[PATCH 1/2] thermal: sysfs: Add a new sysfs node emul_temp

2013-01-06 Thread Amit Daniel Kachhap
This patch adds support to set the emulated temperature method in thermal zone (sensor). After setting this feature thermal zone must report this temperature and not the actual temperature. The actual implementation of this emulated temperature is based on sensor capability or platform specific.

[PATCH 2/2] thermal: exynos: Use the framework for temperature emulation support

2013-01-06 Thread Amit Daniel Kachhap
This removes the driver specific sysfs support of the temperature emulation and uses the newly added core thermal framework for thermal emulation. A platform specific handler is added to support this. Signed-off-by: Amit Daniel Kachhap amit.dan...@samsung.com ---

Re: [PATCH] media: cx18, ivtv: do not dereference array before index check

2013-01-06 Thread Andy Walls
On Sat, 2013-01-05 at 14:11 -0500, Nickolai Zeldovich wrote: Move dereferencing of hw_devicenames[], hw_bus[] arrays until after checking that idx is within range. Signed-off-by: Nickolai Zeldovich nicko...@csail.mit.edu Hi Nickolai, My comments are in line below. ---

[PATCH] irqdomain: document the simple domain first_irq

2013-01-06 Thread Linus Walleij
From: Linus Walleij linus.wall...@linaro.org The first_irq needs to be zero to get a linear domain and that comes with special semantics. We want to simplify this going forward but some documentation never hurts. Signed-off-by: Linus Walleij linus.wall...@linaro.org --- kernel/irq/irqdomain.c |

Re: linux-3.7.1: OOPS in page_lock_anon_vma

2013-01-06 Thread Hugh Dickins
On Sun, 6 Jan 2013, Martin Mokrejs wrote: I was running 3.7.1 kernel quite fine for a while but I realized that it is slow and that I should go and drop useless kernel drivers from my kernel. I have a SandyBridge-based laptop and I found that I gain speed while setting CONFIG_NO_HZ=y,

linux-next: build failure after merge of the slave-dma tree

2013-01-06 Thread Stephen Rothwell
Hi Vinod, After merging the slave-dma tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/dma/dmatest.c: In function 'unmap_dst': drivers/dma/dmatest.c:244:21: error: invalid storage class for function 'min_odd' drivers/dma/dmatest.c:244:1: warning: ISO C90 forbids

Re: oops in copy_page_rep()

2013-01-06 Thread Dave Jones
On Sat, Jan 05, 2013 at 07:57:39PM -0800, Linus Torvalds wrote: Adding more people in case somebody else has any idea. Anybody? On Sat, Jan 5, 2013 at 7:22 AM, Dave Jones da...@redhat.com wrote: I have no idea what happened here, but this is the first time I've seen this one. This

Common clock framework: mutex recursion when calling clk_prepare from prepare handler

2013-01-06 Thread Laurent Pinchart
Hello, I ran into a mutex recursion issue while trying to port the OMAP3 ISP driver (drivers/media/platform/omap3isp) over to the common clock framework. The OMAP3 ISP generates two programmable clocks named xclka and xclkb that are routed out of the SoC. My goal is to expose them as common

[PATCH] clk: max77686: Avoid double free at remove time

2013-01-06 Thread Laurent Pinchart
The clk_lookup entry is dropped at remove time by a call to clkdev_drop(). That function frees the entry, which is also freed by the driver core as it has been allocated through devm_kzalloc(). This results in a double free. Use kzalloc() instead of devm_kzalloc() to fix this. Signed-off-by:

Re: m68k nommu: build failure in v3.8-rc2

2013-01-06 Thread Greg Ungerer
Hi Richard, On 01/06/2013 10:26 PM, Richard Cochran wrote: I see the following error, using the .config inline, below. arch/m68k/mm/init.c: In function 'print_memmap': arch/m68k/mm/init.c:139:2: error: 'KMAP_START' undeclared (first use in this function) arch/m68k/mm/init.c:139:2: note: each

RE: [PATCH] sched: remove redundant update_runtime notifier

2013-01-06 Thread Neil Zhang
All, -Original Message- From: Neil Zhang [mailto:zhan...@marvell.com] Sent: 2012年12月28日 18:00 To: mi...@kernel.org; pet...@infradead.org Cc: linux-kernel@vger.kernel.org; Neil Zhang; bitbuc...@online.de Subject: [PATCH] sched: remove redundant update_runtime notifier

RE: [PATCH RFT] regulator: lp8788-ldo: Use ldo-en_pin to check if regulator is enabled by external pin

2013-01-06 Thread Kim, Milo
Hi Axel, -Original Message- From: Axel Lin [mailto:axel@ingics.com] Sent: Saturday, January 05, 2013 4:34 PM To: Mark Brown Cc: Kim, Milo; Girdwood, Liam; linux-kernel@vger.kernel.org Subject: [PATCH RFT] regulator: lp8788-ldo: Use ldo-en_pin to check if regulator is enabled by

Re: [PATCH v2 1/5] virtio: add functions for piecewise addition of buffers

2013-01-06 Thread Rusty Russell
Paolo Bonzini pbonz...@redhat.com writes: Il 02/01/2013 06:03, Rusty Russell ha scritto: Paolo Bonzini pbonz...@redhat.com writes: The virtqueue_add_buf function has two limitations: 1) it requires the caller to provide all the buffers in a single call; 2) it does not support chained

Re: [PATCH] MODSIGN: Don't taint unless signature enforcing is enabled

2013-01-06 Thread Rusty Russell
Josh Boyer jwbo...@redhat.com writes: With module signing enabled but not in enforcing mode, we don't consider unsigned modules to be an error. However, we only mark sig_ok as true if a signature verified. This causes the module to be tainted with the TAINT_FORCED_MODULE flag. Wait, what?

Re: init_module.2 man page ERRORS text for signed modules

2013-01-06 Thread Rusty Russell
Michael Kerrisk (man-pages) mtk.manpa...@gmail.com writes: Hi David, Rusty, Linux 3.7 added signed modules. As a consequence, init_module() acquired some new possible error returns. I've put together the text below to describe the new errors. Does the text look okay? Looks good. I liked

Re: [PATCH] module: prevent warning when finit_module a 0 sized file

2013-01-06 Thread Rusty Russell
Sasha Levin sasha.le...@oracle.com writes: On 01/02/2013 07:41 PM, Rusty Russell wrote: Sasha Levin sasha.le...@oracle.com writes: If we try to finit_module on a file sized 0 bytes vmalloc will scream and spit out a warning. Since modules have to be bigger than 0 bytes anyways we can just

[PATCH resend 0/3] ARM: KDB FIQ debugger

2013-01-06 Thread Anton Vorontsov
Hello Andrew, Russell, Just resending this once again... (Also rebased onto v3.8-rc2, and since there were some irqdomain changes, I had to drop VIC changes from the series, and place the IRQ rerouting code into the board code. But that is even better, so far we don't need it anywhere else.)

[PATCH 1/3] ARM: Move some macros from entry-armv to entry-header

2013-01-06 Thread Anton Vorontsov
Just move the macros into header file as we would want to use them for KGDB FIQ entry code. The following macros were moved: - svc_entry - usr_entry - kuser_cmpxchg_check - vector_stub To make kuser_cmpxchg_check actually work across different files, we also have to make

[PATCH 2/3] ARM: Add KGDB/KDB FIQ debugger generic code

2013-01-06 Thread Anton Vorontsov
The FIQ debugger may be used to debug situations when the kernel stuck in uninterruptable sections, e.g. the kernel infinitely loops or deadlocked in an interrupt or with interrupts disabled. By default KGDB FIQ is disabled in runtime, but can be enabled with kgdb_fiq.enable=1 kernel command line

Re: [RFC PATCH] mm: memblock: fix wrong memmove size in memblock_merge_regions()

2013-01-06 Thread Lin Feng
On 01/04/2013 10:56 PM, Tejun Heo wrote: On Fri, Jan 04, 2013 at 05:10:50PM +0800, Lin Feng wrote: The memmove span covers from (next+1) to the end of the array, and the index of next is (i+1), so the index of (next+1) is (i+2). So the size of remaining array elements is (type-cnt - (i +

Re: [RFC PATCH] mm: memblock: fix wrong memmove size in memblock_merge_regions()

2013-01-06 Thread Lin Feng
On 01/05/2013 09:04 AM, Wanpeng Li wrote: On Fri, Jan 04, 2013 at 05:10:50PM +0800, Lin Feng wrote: The memmove span covers from (next+1) to the end of the array, and the index of next is (i+1), so the index of (next+1) is (i+2). So the size of remaining array elements is (type-cnt - (i +

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

2013-01-06 Thread Anton Vorontsov
If enabled, kernel will able to enter KGDB upon serial line activity on UART ports. Note that even with this patch and CONFIG_KGDB_FIQ is enabled, you still need to pass kgdb_fiq.enable=1 kernel command line option, otherwise UART will behave in a normal way. By default UART0 is used, but this

Re: init_module.2 man page ERRORS text for signed modules

2013-01-06 Thread Michael Kerrisk (man-pages)
Hi Rusty, On Mon, Jan 7, 2013 at 2:14 AM, Rusty Russell ru...@rustcorp.com.au wrote: Michael Kerrisk (man-pages) mtk.manpa...@gmail.com writes: Hi David, Rusty, Linux 3.7 added signed modules. As a consequence, init_module() acquired some new possible error returns. I've put together the

Re: [PATCH v2 0/1] Input: xpad - Implement wireless controller LED setting and fix connect time LED setting

2013-01-06 Thread Chris Moeller
On Mon, 10 Dec 2012 05:24:02 -0800 Chris Moeller kod...@gmail.com wrote: On Mon, 10 Dec 2012 04:43:54 -0800 Chris Moeller kod...@gmail.com wrote: On Mon, 10 Dec 2012 02:58:25 -0800 Chris Moeller kod...@gmail.com wrote: On Sun, 2 Dec 2012 23:43:18 -0800 Dmitry Torokhov

Re: [PATCH 1/4] module: add syscall to load module from fd

2013-01-06 Thread Michael Kerrisk (man-pages)
On Sun, Jan 6, 2013 at 9:24 PM, Kees Cook keesc...@chromium.org wrote: On Sun, Jan 6, 2013 at 11:59 AM, Michael Kerrisk (man-pages) mtk.manpa...@gmail.com wrote: Hi Rusty, (and Lucas, and Kees) On Thu, Jan 3, 2013 at 1:12 AM, Rusty Russell ru...@rustcorp.com.au wrote: Michael Kerrisk

[PATCH] drivers/net/wireless/mwl8k.c: avoid use-after-free

2013-01-06 Thread Nickolai Zeldovich
Do not dereference p-station_id after kfree(cmd) because p points into the cmd data structure. Signed-off-by: Nickolai Zeldovich nicko...@csail.mit.edu --- drivers/net/wireless/mwl8k.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/mwl8k.c

[PATCH v2] media: cx18, ivtv: eliminate unnecessary array index checks

2013-01-06 Thread Nickolai Zeldovich
The idx values passed to cx18_i2c_register() and ivtv_i2c_register() by cx18_init_subdevs() and ivtv_load_and_init_modules() respectively are always in-range, based on how the hw_all bitmask is populated. Previously, the checks were already ineffective because arrays were being dereferenced using

Re: [RFC PATCH] mm: memblock: optimize memblock_find_in_range_node() to minimize the search work

2013-01-06 Thread Lin Feng
On 01/04/2013 11:01 PM, Tejun Heo wrote: On Fri, Jan 04, 2013 at 05:24:53PM +0800, Lin Feng wrote: The memblock array is in ascending order and we traverse the memblock array in reverse order so we can add some simple check to reduce the search work. Tejun fix a underflow bug in

[v3 PATCH 00/12] atmel spi controller with dmaengine and device tree support

2013-01-06 Thread Wenyou Yang
Hi All, This set of patches is to add dmaengine and device tree support for atmel spi. The work is based on Nicolas and Richard's work. It is tested on at91sam9x5ek, at91sam9m10g45ek, at91sam9263ek and at91sam9g20ek. It is based on v3.8-rc2. Changelog: V3: 1./ Rebase on v3.8-rc2.

[v3 PATCH 05/12] spi/atmel_spi: update the dt support

2013-01-06 Thread Wenyou Yang
To meet the different spi IP version of atmel SoC, add more compatible atmel,at91rm9200-spi, atmel,at91sam9260-spi atmel,at91sam9g45-spi, atmel,at91sam9x5-spi with different config and devtype. The has_dma_support is used to select the dma engine transfer mode. The has_wdrbt indicate if there is

[v3 PATCH 04/12] spi/atmel_spi: add flag to controller data for lock operations

2013-01-06 Thread Wenyou Yang
From: Nicolas Ferre nicolas.fe...@atmel.com Will allow to drop the lock during DMA operations. Signed-off-by: Nicolas Ferre nicolas.fe...@atmel.com Cc: grant.lik...@secretlab.ca Cc: spi-devel-gene...@lists.sourceforge.net --- drivers/spi/spi-atmel.c | 31 +++ 1

[v3 PATCH 06/12] spi/atmel_spi: add dmaengine support

2013-01-06 Thread Wenyou Yang
From: Nicolas Ferre nicolas.fe...@atmel.com Add dmaengine support. For different SoC, the has_dma_support is used to select the transfer mode: dmaengine or PDC. For the dmaengine transfer mode, if it fails to config dmaengine, or if the message len less than 16 bytes, it will use the PIO

[v3 PATCH 10/12] ARM: at91: add clocks for spi dt entries

2013-01-06 Thread Wenyou Yang
From: Richard Genoud richard.gen...@gmail.com Signed-off-by: Richard Genoud richard.gen...@gmail.com [wenyou.y...@atmel.com: declare the spi clocks for sam9260, at91sam9g45, and at91sam9n12] Signed-off-by: Wenyou Yang wenyou.y...@atmel.com Cc: li...@arm.linux.org.uk Cc: plagn...@jcrosoft.com Cc:

[PATCH 12/12] ARM: dts: add spi nodes for the atmel boards

2013-01-06 Thread Wenyou Yang
From: Richard Genoud richard.gen...@gmail.com Signed-off-by: Richard Genoud richard.gen...@gmail.com [wenyou.y...@atmel.com: added spi nodes for the sam9263ek, sam9g20ek, sam9m10g45ek and sam9n12ek boards] Signed-off-by: Wenyou Yang wenyou.y...@atmel.com Cc: li...@arm.linux.org.uk ---

[v3 PATCH 02/12] spi/atmel_spi: call unmapping on transfers buffers

2013-01-06 Thread Wenyou Yang
From: Nicolas Ferre nicolas.fe...@atmel.com Signed-off-by: Nicolas Ferre nicolas.fe...@atmel.com Cc: grant.lik...@secretlab.ca Cc: spi-devel-gene...@lists.sourceforge.net --- drivers/spi/spi-atmel.c |8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git

[v3 PATCH 07/12] spi/atmel_spi: fix spi-atmel driver to adapt to slave_config changes

2013-01-06 Thread Wenyou Yang
From: Richard Genoud richard.gen...@gmail.com This is the following of the patch e2b35f3dbfc080f15b72834d08f04f0269dbe9be Signed-off-by: Richard Genoud richard.gen...@gmail.com [wenyou.y...@atmel.com: fix DMA: when enable both spi0 and spi1, spi0 doesn't work] Signed-off-by: Wenyou Yang

[v3 PATCH 11/12] ARM: dts: add spi nodes for atmel SoC

2013-01-06 Thread Wenyou Yang
From: Richard Genoud richard.gen...@gmail.com Signed-off-by: Richard Genoud richard.gen...@gmail.com [wenyou.y...@atmel.com: add spi nodes for sam9260, sam9263, sam9g45 and sam9n12] [wenyou.y...@atmel.com: remove spi property cs-gpios to the board dts files] Signed-off-by: Wenyou Yang

[v3 PATCH 08/12] spi/atmel_spi: correct 16 bits transfers using PIO

2013-01-06 Thread Wenyou Yang
From: Richard Genoud richard.gen...@gmail.com Signed-off-by: Richard Genoud richard.gen...@gmail.com Cc: grant.lik...@secretlab.ca Cc: spi-devel-gene...@lists.sourceforge.net --- drivers/spi/spi-atmel.c | 46 +- 1 file changed, 37 insertions(+), 9

[v3 PATCH 09/12] spi/atmel_spi: correct 16 bits transfer with DMA

2013-01-06 Thread Wenyou Yang
From: Richard Genoud richard.gen...@gmail.com Signed-off-by: Richard Genoud richard.gen...@gmail.com Cc: grant.lik...@secretlab.ca Cc: spi-devel-gene...@lists.sourceforge.net --- drivers/spi/spi-atmel.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git

[v3 PATCH 01/12] spi/atmel_spi: add physical base address

2013-01-06 Thread Wenyou Yang
From: Nicolas Ferre nicolas.fe...@atmel.com Needed for future use with dmaengine enabled driver. Signed-off-by: Nicolas Ferre nicolas.fe...@atmel.com Cc: grant.lik...@secretlab.ca Cc: spi-devel-gene...@lists.sourceforge.net --- drivers/spi/spi-atmel.c |2 ++ 1 file changed, 2 insertions(+)

[v3 PATCH 03/12] spi/atmel_spi: status information passed through controller data

2013-01-06 Thread Wenyou Yang
From: Nicolas Ferre nicolas.fe...@atmel.com The status of transfer is stored in controller data structure so that it can be used not only by atmel_spi_msg_done() function. This will be useful for upcoming dmaengine enabled driver. Signed-off-by: Nicolas Ferre nicolas.fe...@atmel.com Cc:

Re: [PATCH 01/17] ARM: shmobile: fix memory size for kota2_defconfig

2013-01-06 Thread Simon Horman
On Fri, Nov 30, 2012 at 02:10:47PM -0800, Olof Johansson wrote: Hi, On Thu, Oct 4, 2012 at 1:58 AM, Simon Horman ho...@verge.net.au wrote: On Thu, Oct 04, 2012 at 08:34:54AM +, Arnd Bergmann wrote: On Wednesday 03 October 2012, Simon Horman wrote: I looked through my fines and found

[GIT] Fix for regression in integrity subsystem

2013-01-06 Thread James Morris
Please pull for 3.8. Description from Tetsuo: Commit fdf90729 ima: support new kernel module syscall by error modified init_module() to return INTEGRITY_UNKNOWN (which is 4) to user space if kernel was built with CONFIG_IMA_APPRAISE=y. As a result, user space can no longer load kernel modules

Re: [v3 PATCH 05/12] spi/atmel_spi: update the dt support

2013-01-06 Thread Joe Perches
On Mon, 2013-01-07 at 09:50 +0800, Wenyou Yang wrote: To meet the different spi IP version of atmel SoC, add more compatible atmel,at91rm9200-spi, atmel,at91sam9260-spi atmel,at91sam9g45-spi, atmel,at91sam9x5-spi with different config and devtype. trivial comment: diff --git

Re: [PATCH v2] media: cx18, ivtv: eliminate unnecessary array index checks

2013-01-06 Thread Andy Walls
Nickolai Zeldovich nicko...@csail.mit.edu wrote: The idx values passed to cx18_i2c_register() and ivtv_i2c_register() by cx18_init_subdevs() and ivtv_load_and_init_modules() respectively are always in-range, based on how the hw_all bitmask is populated. Previously, the checks were already

Re: [v3 PATCH 06/12] spi/atmel_spi: add dmaengine support

2013-01-06 Thread Joe Perches
On Mon, 2013-01-07 at 09:50 +0800, Wenyou Yang wrote: From: Nicolas Ferre nicolas.fe...@atmel.com [] diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c [] +static inline bool atmel_spi_use_dma(struct atmel_spi *as, + struct spi_transfer *xfer) +{ +

[PATCH] regulator: lp8755: Remove enum bucks

2013-01-06 Thread Axel Lin
We already have enum lp8755_bucks in lp8755.h, so it looks pointless adding enum bucks in lp8755.c. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/lp8755.c | 50 +++- 1 file changed, 17 insertions(+), 33 deletions(-) diff --git

[PATCH] block: Remove judgement for rq_mergeable(rq) in func elv_rqhash_find.

2013-01-06 Thread majianpeng
Because only mergeable rq can add rqhash.So it does not make sense to judge rq_mergeable(rq) in func elv_rqhash_find. Signed-off-by: Jianpeng Ma majianp...@gmail.com --- block/elevator.c |5 - 1 file changed, 5 deletions(-) diff --git a/block/elevator.c b/block/elevator.c index

Re: [PATCH] drivers/net/wireless/mwl8k.c: avoid use-after-free

2013-01-06 Thread Lennert Buytenhek
On Sun, Jan 06, 2013 at 08:27:22PM -0500, Nickolai Zeldovich wrote: Do not dereference p-station_id after kfree(cmd) because p points into the cmd data structure. Good catch, but the patch would be better titled mwl8k.c: avoid having a working driver, as the station_id return code _is_ needed

Re: [PATCH] drivers/net/wireless/mwl8k.c: avoid use-after-free

2013-01-06 Thread Nickolai Zeldovich
On Sun, Jan 6, 2013 at 9:48 PM, Lennert Buytenhek buyt...@wantstofly.org wrote: Good catch, but the patch would be better titled mwl8k.c: avoid having a working driver, as the station_id return code _is_ needed by the caller in case of success. I'm not quite sure what you mean -- is there

Re: [PATCH] drivers/net/wireless/mwl8k.c: avoid use-after-free

2013-01-06 Thread Julian Calaby
Hi Lennert, On Mon, Jan 7, 2013 at 1:48 PM, Lennert Buytenhek buyt...@wantstofly.org wrote: On Sun, Jan 06, 2013 at 08:27:22PM -0500, Nickolai Zeldovich wrote: Do not dereference p-station_id after kfree(cmd) because p points into the cmd data structure. Good catch, but the patch would be

Re: [PATCH] drivers/net/wireless/mwl8k.c: avoid use-after-free

2013-01-06 Thread Lennert Buytenhek
On Sun, Jan 06, 2013 at 10:02:14PM -0500, Nickolai Zeldovich wrote: Good catch, but the patch would be better titled mwl8k.c: avoid having a working driver, as the station_id return code _is_ needed by the caller in case of success. I'm not quite sure what you mean -- is there something

linux-next: Tree for Jan 7

2013-01-06 Thread Stephen Rothwell
Hi all, Changes since 20130104: Undropped tree: pekey The slave-dma tree gained a build failure so I used the version from next-20130104. The pekey tree lost its build failure. I have created today's linux-next tree

Re: oops in copy_page_rep()

2013-01-06 Thread Hugh Dickins
On Sun, 6 Jan 2013, Dave Jones wrote: investigating the huge page theory a little further I'm a bit confused. The kernel on that machine has THP enabled, and the cpu supports it (an old amd64), but.. $ cat /sys/kernel/mm/hugepages/hugepages-2048kB/* 0 0 0 0 0 0 I was expecting at

[PATCH v2] mm: memblock: fix wrong memmove size in memblock_merge_regions()

2013-01-06 Thread Lin Feng
The memmove span covers from (next+1) to the end of the array, and the index of next is (i+1), so the index of (next+1) is (i+2). So the size of remaining array elements is (type-cnt - (i + 2)). Cc: Tejun Heo t...@kernel.org Reviewed-by: Wanpeng Li liw...@linux.vnet.ibm.com Signed-off-by: Lin

Re: PEBS (in perf) stopped working from 3.6 - 3.7

2013-01-06 Thread David Ahern
On 1/4/13 6:05 PM, Steinar H. Gunderson wrote: On Fri, Jan 04, 2013 at 05:16:27PM -0700, David Ahern wrote: Known problem. Pick one of: update perf to 3.7, add H to the command (-e cycles:ppH) or apply this patch: https://lkml.org/lkml/2012/12/28/384 I spoke too soon. This works for cycles,

[PATCH] tcp: fix MSG_SENDPAGE_NOTLAST logic

2013-01-06 Thread Eric Dumazet
From: Eric Dumazet eduma...@google.com commit 35f9c09fe9c72e (tcp: tcp_sendpages() should call tcp_push() once) added an internal flag : MSG_SENDPAGE_NOTLAST meant to be set on all frags but the last one for a splice() call. The condition used to set the flag in pipe_to_sendpage() relied on

<    1   2   3   4   5   6   >