Re: [PATCH] modpost: Optionally ignore secondary errors seen if a single module build fails

2013-09-23 Thread Rusty Russell
Guenter Roeck li...@roeck-us.net writes: Commit ea4054a23 (modpost: handle huge numbers of modules) added support for building a large number of modules. Wow, this is a lot of work for a trivial fix. I was happy with any of the approaches, but I'll accept this. I'm not even going to bikeshed

[PATCH -next] dma: mmp_pdma: use list_move instead of list_del/list_add

2013-09-23 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Using list_move() instead of list_del() + list_add(). Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/dma/mmp_pdma.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/dma/mmp_pdma.c

Re: [PATCH v2 3/4] mm/zswap: avoid unnecessary page scanning

2013-09-23 Thread Weijie Yang
On Mon, Sep 23, 2013 at 10:06 AM, Bob Liu bob@oracle.com wrote: On 09/10/2013 12:29 AM, Seth Jennings wrote: On Fri, Sep 06, 2013 at 01:16:45PM +0800, Weijie Yang wrote: add SetPageReclaim before __swap_writepage so that page can be moved to the tail of the inactive list, which can avoid

Re: [Suggestion] arc: compiler: bug: about an arc compiler's bug which is not in gcc main source code.

2013-09-23 Thread Chen Gang
Oh, I forgot to supply the related arc cross-compiler's information: [root@dhcp122 linux-next]# /usr/local/bin/arc-elf32-gcc -v Using built-in specs. Target: arc-elf32 Configured with: /mnt/sda11/src/toolchain_arc/unisrc/configure --target=arc-elf32 --with-cpu=arc700 --disable-werror

[PATCH] Fix coalescing host bridge windows in arch/x86/pci/acpi.c

2013-09-23 Thread Alexey Neyman
[Resending due to no response to the original message in a week] Hi all, I have a board with a BIOS bug that reports the following I/O port regions in _CRS on one of the host bridges: 0x-0x03af // #0 0x03e0-0x0cf7 // #1 0x03b0-0x03bb // #2 0x03c0-0x03df // #3 0x-0xdfff // #4

Re: [PATCH -v2] EFI: Runtime services virtual mapping

2013-09-23 Thread Dave Young
On 09/21/13 at 01:39pm, Borislav Petkov wrote: On Thu, Sep 19, 2013 at 04:54:54PM +0200, Borislav Petkov wrote: From: Borislav Petkov b...@suse.de We map the EFI regions needed for runtime services contiguously on virtual addresses starting from -4G down for a total max space of 64G.

Re: [PATCH] usb: dwc3: Remove additional delay of 100ms when resuming

2013-09-23 Thread Jingoo Han
On Monday, September 23, 2013 12:38 PM, Vivek Gautam wrote: This delay got introduced in: 7415f17 usb: dwc3: core: add power management support which reflected similar code in dwc3_core_soft_reset() function. However, originally the delay of 100ms in dwc3_core_soft_reset() was meant to

Re: [PATCH -v2] EFI: Runtime services virtual mapping

2013-09-23 Thread Borislav Petkov
On Mon, Sep 23, 2013 at 01:47:41PM +0800, Dave Young wrote: + unsigned long size = md-num_pages PAGE_SHIFT; + + efi_va -= size; + if (efi_va EFI_VA_END) { + pr_warning(FW_WARN VA address range overflow!\n); + return; + } + + /* Do the 1:1 map */

Re: [PATCH 0/3] KVM: Make kvm_lock non-raw

2013-09-23 Thread Jan Kiszka
On 2013-09-22 11:53, Gleb Natapov wrote: On Sun, Sep 22, 2013 at 10:53:14AM +0200, Paolo Bonzini wrote: Il 22/09/2013 09:42, Gleb Natapov ha scritto: On Mon, Sep 16, 2013 at 04:06:10PM +0200, Paolo Bonzini wrote: Paul Gortmaker reported a BUG on preempt-rt kernels, due to taking the mmu_lock

Re: [Suggestion] arc: compiler: bug: about an arc compiler's bug which is not in gcc main source code.

2013-09-23 Thread Vineet Gupta
On 09/23/2013 11:43 AM, Chen Gang wrote: Oh, I forgot to supply the related arc cross-compiler's information: [root@dhcp122 linux-next]# /usr/local/bin/arc-elf32-gcc -v Using built-in specs. Target: arc-elf32 Configured with: /mnt/sda11/src/toolchain_arc/unisrc/configure --target=arc-elf32

Re: [PATCH 0/4] ipc: shm and msg fixes

2013-09-23 Thread Davidlohr Bueso
On Sat, 2013-09-21 at 11:58 -0700, Linus Torvalds wrote: On Sat, Sep 21, 2013 at 11:30 AM, Davidlohr Bueso davidl...@hp.com wrote: IPC uses security_xxx_free() at two levels: for freeing the structure (ie: shm_destroy()) and cleaning up upon error when creating the structure (ie:

Re: [PATCH] i2c: s3c2410: fix clk_disable/clk_unprepare warnings

2013-09-23 Thread Wolfram Sang
On Tue, Sep 17, 2013 at 11:31:53AM -0500, Kim Phillips wrote: commit d16933b33914a6dff38a4ecbe8edce44a17898e8 i2c: s3c2410: Move location of clk_prepare_enable() call in probe function refactored clk_enable and clk_disable calls yet neglected to remove the clk_disable_unprepare call in the

Re: [PATCH V3] pci: exynos: split into two parts such as Synopsys part and Exynos part

2013-09-23 Thread Pratyush Anand
On Mon, Sep 23, 2013 at 01:32:54PM +0800, Kishon Vijay Abraham I wrote: Hi Pratyush, On Monday 23 September 2013 09:44 AM, Pratyush Anand wrote: Hi Kishon, On Sun, Sep 22, 2013 at 07:16:34PM +0800, Kishon Vijay Abraham I wrote: Hi Arnd, Thanks for replying :-) On Sunday 22

Re: [PATCH] perf bench sched: Add --threaded 0/1 option

2013-09-23 Thread Namhyung Kim
Hi Ingo, Just a few nitpicks... On Tue, 17 Sep 2013 13:42:56 +0200, Ingo Molnar wrote: Allow the measurement of thread versus process context switch performance. The default stays at 'process' based measurement, like lmbench's lat_ctx benchmark. Sample output: comet:~/tip/tools/perf

Re: [Suggestion] arc: compiler: bug: about an arc compiler's bug which is not in gcc main source code.

2013-09-23 Thread Chen Gang
On 09/23/2013 02:39 PM, Vineet Gupta wrote: Hi Chen, Thanks for the problem report. Please note that we have moved on to gcc 4.8 based tool-chain so I would suggest you switch over to it too (4.4 support is really phased out). With current 4.8 tools, I don't see the error you report.

Re: perf: cannot resolve kernel symbols

2013-09-23 Thread Namhyung Kim
Hi Jean, On Thu, 19 Sep 2013 15:24:56 +0200, Jean Pihet wrote: Hi, Ping on this issue. Any idea or pointer. Did you build perf without libelf? Thanks, Namhyung Cheers, Jean On 17 September 2013 14:02, Jean Pihet jean.pi...@linaro.org wrote: Hi, I am running the perf record and

Re: [PATCH] i2c: mv64xxx: Fix some build warnings

2013-09-23 Thread Wolfram Sang
On Wed, Sep 18, 2013 at 02:50:52PM +0200, Thierry Reding wrote: Some functions and variables are only used if the configuration selects HAVE_CLK. Protect them with a corresponding #ifdef CONFIG_HAVE_CLK block to avoid compiler warnings. Signed-off-by: Thierry Reding tred...@nvidia.com Added

RE: [PATCH 3/3] dma: Add Freescale eDMA engine driver support

2013-09-23 Thread Lu Jingchang-B35083
-Original Message- From: Vinod Koul [mailto:vinod.k...@intel.com] Sent: Monday, September 23, 2013 12:26 PM To: Lu Jingchang-B35083 Cc: d...@fb.com; shawn@linaro.org; linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infradead.org; devicet...@vger.kernel.org Subject: Re:

Re: [PATCH] i2c: mv64xxx: Do not use writel_relaxed()

2013-09-23 Thread Wolfram Sang
On Wed, Sep 18, 2013 at 02:51:40PM +0200, Thierry Reding wrote: The driver is used on PowerPC which don't provide writel_relaxed(). This breaks the c2k and prpmc2800 default configurations. To fix the build, turn the calls to writel_relaxed() into writel(). The impacts for ARM should be

Re: [PATCH 1/3] Add smp support for Allwinner A20(sunxi 7i).

2013-09-23 Thread Uwe Kleine-König
Hello, On Sat, Sep 21, 2013 at 05:49:00PM -0500, Maxime Ripard wrote: On Sun, Sep 22, 2013 at 12:49:45AM +0800, cinifr wrote: Thanks. I have modify my patch as you said. It is in attachments. Maybe I remail the new patch? Yes, remail the whole serie and change the prefix to PATCHv3 (you

Re: [PATCH -v2] EFI: Runtime services virtual mapping

2013-09-23 Thread Dave Young
On 09/23/13 at 08:29am, Borislav Petkov wrote: On Mon, Sep 23, 2013 at 01:47:41PM +0800, Dave Young wrote: + unsigned long size = md-num_pages PAGE_SHIFT; + + efi_va -= size; + if (efi_va EFI_VA_END) { + pr_warning(FW_WARN VA address range overflow!\n); +

Re: [PATCH V3 4/6] vhost_net: determine whether or not to use zerocopy at one time

2013-09-23 Thread Michael S. Tsirkin
On Thu, Sep 05, 2013 at 10:54:44AM +0800, Jason Wang wrote: On 09/04/2013 07:59 PM, Michael S. Tsirkin wrote: On Mon, Sep 02, 2013 at 04:40:59PM +0800, Jason Wang wrote: Currently, even if the packet length is smaller than VHOST_GOODCOPY_LEN, if upend_idx != done_idx we still set zcopy_used

Re: [PATCH 1/3] Add smp support for Allwinner A20(sunxi 7i).

2013-09-23 Thread Ian Campbell
On Sun, 2013-09-22 at 23:31 +0800, cinifr wrote: On Sunday, 22 September 2013, Ian Campbell i...@hellion.org.uk wrote: On Sun, 2013-09-22 at 20:21 +0800, Fan Rong wrote: + /* Set boot addr */ + paddr = virt_to_phys(sun7i_secondary_startup); + writel(paddr,

Re: linux-next: manual merge of the omap_dss2 tree with the fbdev tree

2013-09-23 Thread Tomi Valkeinen
Hi Stephen, Jean-Christophe, On 23/09/13 05:28, Stephen Rothwell wrote: Hi Tomi, Today's linux-next merge of the omap_dss2 tree got a conflict in drivers/video/atmel_lcdfb.c between commits a17c2e7b704f (video: atmel_lcdfb: fix platform data struct) and 5e8be022fb5b (video: atmel_lcdfb:

Re: i835GM flicker on panning

2013-09-23 Thread Daniel Vetter
On Mon, Sep 23, 2013 at 12:33:04AM +0200, Thomas Richter wrote: On 22.09.2013 22:03, Daniel Vetter wrote: Hm, that sounds a bit more like the ddx is having fun with rendering. Have you tried switching the backed from to either SNA or UXA? Also adding relevant mailing lists ... No, whether I

linux-next: build failure after merge of the final tree (random tree related)

2013-09-23 Thread Stephen Rothwell
Hi all, After merging the final tree, today's linux-next build (arm defconfig) failed like this: In file included from include/linux/sched.h:17:0, from arch/arm/kernel/asm-offsets.c:13: include/linux/timex.h: In function 'random_get_entropy': include/linux/timex.h:80:2: error:

Re: [PATCH 8/9] of/i2c: Resolve interrupt references at probe time

2013-09-23 Thread Wolfram Sang
On Mon, Sep 16, 2013 at 10:32:05AM +0200, Thierry Reding wrote: Instead of resolving interrupt references at device creation time, delay resolution until probe time. At device creation time, there is nothing that can be done if an interrupt parent isn't ready yet, and the device will end up

[PATCH] documentation: Add links to TRACE_EVENT documentation

2013-09-23 Thread Stefan Raspl
documentation: Add links to TRACE_EVENT documentation Existing tracepoint documentation doesn't mention the popular TRACE_EVENT macro. Since an excellent series of articles on proper usage already exists, respective links are added to the existing documentation. Signed-off-by: Stefan Raspl

linux-next: Tree for Sep 23

2013-09-23 Thread Stephen Rothwell
Hi all, Heads up: I will be having a 3 week break leading up to the kernel summit. This means that next-20130927 (next Friday) will be the last linux-next release until next-20131028 (or maybe 29). I presume that Linus will be up to v3.12-rc7 by then and -rc7 is often the last before a release

Re: [RFC PATCH 08/15] ata: ahci_platform: Manage SATA PHY

2013-09-23 Thread Roger Quadros
Hi Tejun, On 09/23/2013 12:51 AM, Tejun Heo wrote: Hello, On Sun, Sep 22, 2013 at 10:24:36PM +0400, Sergei Shtylyov wrote: Not sure why you asked -- I'm not using this driver, neither I'm Well, you have better grip of what's going on in the embedded world than me. I'm mostly curious

Re: [PATCH 3/5] OMAPDSS: DISPC: Fix assignment of 0/1 to bool variables

2013-09-23 Thread Tomi Valkeinen
Hi, On 22/09/13 21:44, Peter Senna Tschudin wrote: Convert 0 to false and 1 to true when assigning values to bool variables. Inspired by commit 3db1cd5c05f35fb43eb134df6f321de4e63141f2. The simplified semantic patch that find this problem is as follows (http://coccinelle.lip6.fr/): Thanks,

Re: [PATCH,RFC] random: make fast_mix() honor its name

2013-09-23 Thread Jörg-Volker Peetz
Thanks for your patience and elaborated answer. Theodore Ts'o wrote, on 09/22/2013 23:27: On Sun, Sep 22, 2013 at 11:01:42PM +0200, Jörg-Volker Peetz wrote: just out of interest I would like to ask why this mixing function has to be that complicated. For example, even if the input is always

Re: [RFC PATCH 08/15] ata: ahci_platform: Manage SATA PHY

2013-09-23 Thread Roger Quadros
Hi, On 09/22/2013 09:22 PM, Sergei Shtylyov wrote: Hello. On 09/19/2013 05:05 PM, Roger Quadros wrote: From: Balaji T K balaj...@ti.com Some platforms have a PHY hooked up to the SATA controller. The PHY needs to be initialized and powered up for SATA to work. We do that using the

Re: [PATCH] pinctrl: pinctrl-adi2: Add dependency to arch BLACKFIN in Kconfig.

2013-09-23 Thread Linus Walleij
On Mon, Sep 23, 2013 at 5:57 AM, Sonic Zhang sonic@gmail.com wrote: From: Sonic Zhang sonic.zh...@analog.com Signed-off-by: Sonic Zhang sonic.zh...@analog.com Patch applied, will push immediately so linux-next builds. Yours, Linus Walleij -- To unsubscribe from this list: send the line

Re: perf: cannot resolve kernel symbols

2013-09-23 Thread Jean Pihet
Hi Namhyung, On 23 September 2013 08:58, Namhyung Kim namhy...@kernel.org wrote: Hi Jean, On Thu, 19 Sep 2013 15:24:56 +0200, Jean Pihet wrote: Hi, Ping on this issue. Any idea or pointer. Did you build perf without libelf? no, libelf is linked to the binary. What is weird is that the

Re: [PATCH] pinctrl: pinctrl-adi2-bf60x: remove useless and duplicated GPIO definition for PPI2.

2013-09-23 Thread Linus Walleij
On Mon, Sep 23, 2013 at 6:07 AM, Sonic Zhang sonic@gmail.com wrote: From: Sonic Zhang sonic.zh...@analog.com Signed-off-by: Sonic Zhang sonic.zh...@analog.com Patch applied. Yours, Linus Walleij -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a

Re: [PATCH] pinctrl: pinctrl-adi2: Add dependency to arch BLACKFIN in Kconfig.

2013-09-23 Thread Dan Carpenter
The other two Coccinelle warnings were real bugs as well: drivers/pinctrl/pinctrl-adi2.c:250:1-18: ERROR: nested lock+irqsave that reuses flags from line 249. The second spinlock_irq_save() should just be a spinlock. drivers/pinctrl/pinctrl-adi2.c:326:16-19: ERROR: port is NULL but

Re: [PATCH 2/3 v4] blackfin: gpio: Remove none gpio lib code.

2013-09-23 Thread Linus Walleij
On Tue, Sep 3, 2013 at 10:29 AM, Sonic Zhang sonic@gmail.com wrote: From: Sonic Zhang sonic.zh...@analog.com - Remove non gpio lib code from blackfin architecture. - Limit the lagecy blackfin gpio driver to bf5xx processors only. - Remove unused definition of the pint power functions.

[PATCH] regulator: wm831x-ldo: Fix max_uV for gp_ldo and aldo linear range settings

2013-09-23 Thread Axel Lin
Fix the linear range settings in commit 5ff26a14c3331 regulator: wm831x-ldo: Convert to use linear ranges. For wm831x_gp_ldo: We have below equations for list voltage before converting to linear ranges: sel = 0xe: volt = 0.9-1.6V in 50mV steps sel = 0x1f: volt = 1.7-3.3V in 100mV

[PATCH v2 09/26] ARM: call of_clk_init from default time_init handler

2013-09-23 Thread Sebastian Hesselbarth
Most DT ARM machs require common clock providers initialized before timers. Currently, arch/arm machs use .init_time to call of_clk_init right before clocksource_of_init. This prevents to remove that callback and use the default one instead. This patch adds a call to of_clk_init() to the default

Re: [PATCH] powerpc/irq: Run softirqs off the top of the irq stack

2013-09-23 Thread Stephen Rothwell
Hi Ben, On Mon, 23 Sep 2013 14:35:58 +1000 Benjamin Herrenschmidt b...@kernel.crashing.org wrote: diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c index c69440c..0c9646f 100644 --- a/arch/powerpc/kernel/irq.c +++ b/arch/powerpc/kernel/irq.c @@ -443,46 +443,7 @@ void

Re: [PATCH v3 4/4] Documentation: add LP3943 DT bindings and document

2013-09-23 Thread Lee Jones
+++ b/Documentation/lp3943.txt @@ -0,0 +1,62 @@ +TI/National Semiconductor LP3943 MFD driver +=== snip Why do you need to document your driver in this way? If this stuff is really important (and most of it really isn't), then put it either in the

Re: [PATCH 8/9] of/i2c: Resolve interrupt references at probe time

2013-09-23 Thread Thierry Reding
On Mon, Sep 23, 2013 at 09:34:51AM +0200, Wolfram Sang wrote: On Mon, Sep 16, 2013 at 10:32:05AM +0200, Thierry Reding wrote: Instead of resolving interrupt references at device creation time, delay resolution until probe time. At device creation time, there is nothing that can be done if

Re: [PATCH v3] mfd: add STw481x driver

2013-09-23 Thread Lee Jones
This adds a driver for the STw481x PMICs found in the Nomadik family of platforms. This one uses pure device tree probing. Print some of the OTP registers on boot and register a regulator MFD child. Signed-off-by: Linus Walleij linus.wall...@linaro.org --- ChangeLog v2-v3: - Instead of

Re: [rtc-linux] [PATCH V2 3/5] gpio: add support for AMS AS3722 gpio driver

2013-09-23 Thread Linus Walleij
On Fri, Sep 20, 2013 at 2:30 PM, Laxman Dewangan ldewan...@nvidia.com wrote: The AS3722 is a compact system PMU suitable for mobile phones, tablets etc. Add a driver to support accessing the 8 GPIOs found on the AMS AS3722 PMIC using gpiolib. Signed-off-by: Laxman Dewangan

Re: [PATCH] arc: include: asm: uaccess.h: include asm-generic/uaccess-unaligned.h

2013-09-23 Thread Vineet Gupta
On 09/22/2013 08:53 AM, Chen Gang wrote: Need include the default implementation, just like another platforms (e.g. parisc, tile ...), or can not pass compiling. The related error (with allmodconfig for arc): CC [M] fs/btrfs/ioctl.o fs/btrfs/ioctl.c: In function

[PATCH] USB: gadget: s3c-hsotg: add isochronous transfers support

2013-09-23 Thread Robert Baldyga
This patch adds isochronous transfer support. It adds few modifications: - Modify s3c_hsotg_write_fifo() function. It actually calculates transfer size, taking into account Multi Count value, which indicates number of transactions per microframe. - Fix s3c_hsotg_start_req() function by setting

[PATCH] usb: s3c-hsotg: add isochronous transfers support

2013-09-23 Thread Robert Baldyga
Hello, There is my initial proposal for isochronous transfers support in s3c-hsotg driver. This patch does few modifications: - Fix few functions to make them usable in isochronous transfers handling. - Add few fields to s3c_hsotg_ep structure, used for isochronous ep handling. - Add isochronous

Re: [PATCH v3] mfd: add STw481x driver

2013-09-23 Thread Linus Walleij
On Mon, Sep 23, 2013 at 10:05 AM, Lee Jones lee.jo...@linaro.org wrote: Nit: +static const struct i2c_device_id stw481x_id[] = { + { stw481x, 0 }, + { } Where we have '{ }'. +}; + +static const struct of_device_id stw481x_match[] = { + { .compatible = st,stw4810, }, +

Re: [PATCH] iio: add Bosch BMG160 gyroscope sensor driver

2013-09-23 Thread Joe Perches
On Mon, 2013-09-23 at 13:35 +0800, jianlong wrote: This patch adds IIO driver for Bosch BMG160 triaxial gyroscope sensor. This code could be made a lot more readable without the somewhat obfuscating 16 bit compiler support. Are there similar devices that this source needs to support in the

Re: [PATCH v6] fat: additions to support fat_fallocate

2013-09-23 Thread Namjae Jeon
2013/9/21, OGAWA Hirofumi hirof...@mail.parknet.co.jp: Namjae Jeon linkinj...@gmail.com writes: Hi OGAWA. Entirely, we would have to consider in the case of write fail (e.g. -ENOSPC). If write failed, it will call truncate(). Then, it can be truncate the fallocate region too unexpectedly. I

Re: [PATCH v2 04/10] irqdomain: Return errors from irq_create_of_mapping()

2013-09-23 Thread Thierry Reding
On Sun, Sep 22, 2013 at 04:14:43PM -0500, Rob Herring wrote: On Wed, Sep 18, 2013 at 8:24 AM, Thierry Reding thierry.red...@gmail.com wrote: Instead of returning 0 for all errors, allow the precise error code to be propagated. This will be used in subsequent patches to allow further

[PATCH] perf bench sched: Add --threaded option

2013-09-23 Thread Ingo Molnar
* Namhyung Kim namhy...@kernel.org wrote: Hi Ingo, Just a few nitpicks... On Tue, 17 Sep 2013 13:42:56 +0200, Ingo Molnar wrote: Allow the measurement of thread versus process context switch performance. The default stays at 'process' based measurement, like lmbench's lat_ctx

Re: [PATCH 2/3 v4] blackfin: gpio: Remove none gpio lib code.

2013-09-23 Thread Sonic Zhang
Hi Linus, On Mon, Sep 23, 2013 at 3:48 PM, Linus Walleij linus.wall...@linaro.org wrote: On Tue, Sep 3, 2013 at 10:29 AM, Sonic Zhang sonic@gmail.com wrote: From: Sonic Zhang sonic.zh...@analog.com - Remove non gpio lib code from blackfin architecture. - Limit the lagecy blackfin gpio

[PATCH v3 0/3] mm/zswap bugfix: memory leaks and other problems

2013-09-23 Thread Weijie Yang
This patch series fix a few bugs in mm/zswap based on Linux-3.11. v2 -- v3 - keep GFP_KERNEL flag v1 -- v2 - free memory in zswap_frontswap_invalidate_area(in patch 1) - fix whitespace corruption (line wrapping) Corresponding mail thread:

[PATCH v3 3/3] mm/zswap: avoid unnecessary page scanning

2013-09-23 Thread Weijie Yang
add SetPageReclaim before __swap_writepage so that page can be moved to the tail of the inactive list, which can avoid unnecessary page scanning as this page was reclaimed by swap subsystem before. Signed-off-by: Weijie Yang weijie.y...@samsung.com Reviewed-by: Bob Liu bob@oracle.com Cc:

[PATCH v3 2/3] mm/zswap: bugfix: memory leak when invalidate and reclaim occur concurrently

2013-09-23 Thread Weijie Yang
Consider the following scenario: thread 0: reclaim entry x (get refcount, but not call zswap_get_swap_cache_page) thread 1: call zswap_frontswap_invalidate_page to invalidate entry x. finished, entry x and its zbud is not freed as its refcount != 0 now, the swap_map[x] = 0 thread

Re: [RFC PATCH 15/15] arm: dts: dra7: add sata node

2013-09-23 Thread Roger Quadros
On 09/22/2013 09:45 PM, Sergei Shtylyov wrote: On 09/20/2013 02:19 PM, Roger Quadros wrote: From: Balaji T K balaj...@ti.com Add support for sata controller. [Roger Q] Clean up. CC: Benoit Cousson bcous...@baylibre.com Signed-off-by: Balaji T K balaj...@ti.com Signed-off-by: Roger

Re: [PATCH] mfd: arizona: Correct register definition for FLL2_SYNC_BW

2013-09-23 Thread Lee Jones
On Sat, 21 Sep 2013, Charles Keepax wrote: We had specified the mask twice for FLL2_SYNC_BW change the first mask definition in a bit definition to match the other fields. Signed-off-by: Charles Keepax ckee...@opensource.wolfsonmicro.com --- include/linux/mfd/arizona/registers.h |2 +-

[PATCH v3 1/3] mm/zswap: bugfix: memory leak when re-swapon

2013-09-23 Thread Weijie Yang
zswap_tree is not freed when swapoff, and it got re-kmalloc in swapon, so memory-leak occurs. Modify: free memory of zswap_tree in zswap_frontswap_invalidate_area(). Signed-off-by: Weijie Yang weijie.y...@samsung.com Reviewed-by: Bob Liu bob@oracle.com Cc: Minchan Kim minc...@kernel.org Cc:

Re: [PATCH] thermal: st: Add support for STiH41x thermal sensors

2013-09-23 Thread Ajit Pal Singh
On Thursday 19 September 2013 01:32 AM, Eduardo Valentin wrote: On 18-09-2013 05:38, Ajit Pal Singh wrote: Adds support for thermal sensors on STiH41x series SOCs. Single trip point 'THERMAL_TRIP_CRITICAL' is supported. STIH416 MPE sensor supports interrupt reporting when a preset threshold

Re: [PATCH] arc: include: asm: uaccess.h: include asm-generic/uaccess-unaligned.h

2013-09-23 Thread Chen Gang
On 09/23/2013 04:07 PM, Vineet Gupta wrote: On 09/22/2013 08:53 AM, Chen Gang wrote: Need include the default implementation, just like another platforms (e.g. parisc, tile ...), or can not pass compiling. The related error (with allmodconfig for arc): CC [M] fs/btrfs/ioctl.o

Re: [PATCH v2] iio: ti_am335x_adc: Take touchscreen steps into account for conversion timeout

2013-09-23 Thread Arun Joseph
On Sunday 22 September 2013 11:21 PM, Matthias Kaehlcke wrote: Hi, El Sat, Sep 21, 2013 at 01:25:42PM +0100 Jonathan Cameron ha dit: On 09/16/13 22:17, Matthias Kaehlcke wrote: The calculation of the old conversion timeout value was based on the number of steps used by this driver. This

Re: i835GM flicker on panning

2013-09-23 Thread Thomas Richter
Hi Daniel, hi others, On 22.09.2013 22:03, Daniel Vetter wrote: Hm, that sounds a bit more like the ddx is having fun with rendering. Have you tried switching the backed from to either SNA or UXA? Also adding relevant mailing lists ... No, whether I use uxa or sna makes no difference, same

Re: [rtc-linux] [PATCH V2 3/5] gpio: add support for AMS AS3722 gpio driver

2013-09-23 Thread Laxman Dewangan
On Monday 23 September 2013 01:36 PM, Linus Walleij wrote: On Fri, Sep 20, 2013 at 2:30 PM, Laxman Dewangan ldewan...@nvidia.com wrote: +Required subnode properties: +--- +reg: The GPIO number on which the properties need to be applied. + +Optional subnode properties:

Re: [PATCH 8/9] of/i2c: Resolve interrupt references at probe time

2013-09-23 Thread Wolfram Sang
This function should be in the CONFIG_OF block. I'll argue the other way. I think that the whole CONFIG_OF block should be remove, or at least be confined to public functions. The reason that I've chosen to do it this way is that the i2c_device_probe() uses an IS_ENABLED(CONFIG_OF), which

[PATCH] MTD: Onenand: Add device tree support for samsung onenand

2013-09-23 Thread Mateusz Krawczuk
This patch add clk and device tree nodes for samsung onenand driver. Signed-off-by: Mateusz Krawczuk m.krawc...@partner.samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- .../devicetree/bindings/mtd/samsung-onenand.txt| 40 ++

Re: [PATCH v2 07/10] of/irq: Propagate errors in of_irq_to_resource_table()

2013-09-23 Thread Thierry Reding
On Sun, Sep 22, 2013 at 04:08:26PM -0500, Rob Herring wrote: On Wed, Sep 18, 2013 at 8:24 AM, Thierry Reding thierry.red...@gmail.com wrote: Now that all helpers return precise error codes, this function can propagate these errors to the caller properly. Signed-off-by: Thierry Reding

Re: [Intel-gfx] BUG: sleeping function called from invalid context on 3.10.10-rt7

2013-09-23 Thread Ville Syrjälä
On Sat, Sep 21, 2013 at 12:07:36AM +0200, Mario Kleiner wrote: On 09/17/2013 10:55 PM, Daniel Vetter wrote: On Tue, Sep 17, 2013 at 9:50 PM, Peter Hurley pe...@hurleysoftware.com wrote: On 09/11/2013 03:31 PM, Peter Hurley wrote: [+cc dri-devel] On 09/11/2013 11:38 AM, Steven

[PATCH v2] hung_task: change sysctl_hung_task_check_count to int

2013-09-23 Thread Li Zefan
As sysctl_hung_task_check_count is unsigned long, when this value is assigned to max_count in check_hung_uninterruptible_tasks(), it's truncated to int type. Therefore if we write 2^32 to sysctl.hung_task_check_count, hung task detection will be effectively disabled. With this fix, it will still

Re: [PATCH v3] mfd: add STw481x driver

2013-09-23 Thread Lee Jones
I'm happy to change it myself, rather that asking you to resubmit. Which do you prefer? Pls fix it if you have time! Sorry, I should have been more clear. Which method do you prefer? -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM

Re: [PATCH -v2] EFI: Runtime services virtual mapping

2013-09-23 Thread Borislav Petkov
On Sat, Sep 21, 2013 at 01:39:29PM +0200, Borislav Petkov wrote: -void __init efi_call_phys_prelog(void) +/* + * We allocate runtime services regions top-down, starting from -4G, i.e. + * 0x___ and limit EFI VA mapping space to 64G. + */ +static u64 efi_va = -4 * (1UL

Re: [PATCH 1/2] staging: zram: fix handle_pending_slot_free() and zram_reset_device() race

2013-09-23 Thread Sergey Senozhatsky
On (09/23/13 13:24), Minchan Kim wrote: On (09/16/13 09:02), Minchan Kim wrote: Hello Sergey, Sorry for really slow response. I was really busy by internal works and Thanks for pointing the BUG, Dan, Jerome and Sergey. I read your threads roughly so I may miss something. If so,

Re: [PATCH linux-next] pinctrl: fix pinconf_dbg_config_write return type

2013-09-23 Thread Linus Walleij
On Mon, Sep 16, 2013 at 10:50 PM, Vincent Stehlé vincent.ste...@laposte.net wrote: Have pinconf_dbg_config_write() return a ssize_t. This fixes the following compilation warning: drivers/pinctrl/pinconf.c:617:2: warning: initialization from incompatible pointer type [enabled by default]

Re: [patch] pinctrl: remove an unnecessary cast

2013-09-23 Thread Linus Walleij
On Tue, Sep 17, 2013 at 12:47 PM, Dan Carpenter dan.carpen...@oracle.com wrote: sizeof() is already size_t so there is no need to cast here. Generally, casting inside the min() macro instead of using min_t() is considered bad style. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com

Re: [PATCH 1/4] pinctrl: sh-pfc: r8a7790: add pin definitions for the I2C3 interface

2013-09-23 Thread Linus Walleij
On Tue, Sep 17, 2013 at 7:10 PM, Guennadi Liakhovetski g.liakhovet...@gmx.de wrote: On Tue, 17 Sep 2013, Linus Walleij wrote: +/* R8A7790 has 6 banks with 32 GPIOs in each = 192 GPIOs */ +#define ROW_GROUP_A(r) ('Z' - 'A' + 1 + (r)) +#define PIN_NUMBER(r, c) (((r) - 'A') * 16 + (c) + 200)

[PATCH] driver core: prevent deferred probe with platform_driver_probe

2013-09-23 Thread Johan Hovold
Prevent drivers relying on platform_driver_probe from requesting deferred probing in order to avoid further futile probe attempts (either the driver has been unregistered or its probe function has been set to platform_drv_probe_fail when probing is retried). Note that several platform drivers

Geachte Email Gebruiker

2013-09-23 Thread Jaqueline Pirao Zotesso
Geachte Email Gebruiker, We zijn verbetering van onze E-mail systeem om ons in staat te verminderen het optreden van Spam. U bent om te klikken op de onderstaande link om te upgraden van uw e-mail. http://polvac.com/form/forms/form1.html ondertekend IT Service! System Administrator ® --

[PATCH] jffs2: fix unbalanced locking

2013-09-23 Thread Li Zefan
In the failure path in jffs2_do_crccheck_inode() the lock isn't released before returning. This probably won't cause real bug, because the structure that contains the lock is freed in this case. Signed-off-by: Li Zefan lize...@huawei.com --- fs/jffs2/readinode.c | 3 ++- 1 file changed, 2

[PATCH v6 0/5] memcg, cgroup: kill css id

2013-09-23 Thread Li Zefan
Hi Andrew, The whole patchset has been acked and reviewed by Michal and Tejun. Could you merge it into mm tree? === This patchset converts memcg to use cgroup-id, and then we remove cgroup css_id. As we've removed memcg's own refcnt, converting memcg to use cgroup-id is very

[PATCH v6 1/5] memcg: convert to use cgroup_is_descendant()

2013-09-23 Thread Li Zefan
This is a preparation to kill css_id. Signed-off-by: Li Zefan lize...@huawei.com Acked-by: Michal Hocko mho...@suse.cz --- mm/memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 7dda769..9117249 100644 --- a/mm/memcontrol.c +++

[PATCH v6 4/5] memcg: stop using css id

2013-09-23 Thread Li Zefan
Now memcg uses cgroup id instead of css id. Update some comments and set mem_cgroup_subsys-use_id to 0. Signed-off-by: Li Zefan lize...@huawei.com Acked-by: Michal Hocko mho...@suse.cz --- mm/memcontrol.c | 23 --- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git

[PATCH v6 2/5] memcg: convert to use cgroup id

2013-09-23 Thread Li Zefan
Use cgroup id instead of css id. This is a preparation to kill css id. Note, as memcg treat 0 as an invalid id, while cgroup id starts with 0, we define memcg_id == cgroup_id + 1. Signed-off-by: Li Zefan lize...@huawei.com Acked-by: Michal Hocko mho...@suse.cz --- mm/memcontrol.c | 32

[PATCH v6 3/5] memcg: fail to create cgroup if the cgroup id is too big

2013-09-23 Thread Li Zefan
memcg requires the cgroup id to be smaller than 65536. This is a preparation to kill css id. Signed-off-by: Li Zefan lize...@huawei.com Acked-by: Michal Hocko mho...@suse.cz --- mm/memcontrol.c | 9 + 1 file changed, 9 insertions(+) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index

[PATCH v6 5/5] cgroup: kill css_id

2013-09-23 Thread Li Zefan
The only user of css_id was memcg, and it has been convered to use cgroup-id, so kill css_id. Signed-off-by: Li Zefan lize...@huwei.com Reviewed-by: Michal Hocko mho...@suse.cz Acked-by: Tejun Heo t...@kernel.org --- include/linux/cgroup.h | 37 kernel/cgroup.c| 248

checkpatch guide for newbies

2013-09-23 Thread Dan Carpenter
I've written a checkpatch guide for newbies because it seems like they make the same mistakes over and over. I intend to put it under Documentation/. Could you look it over? Introduction This document is aimed at new kernel contributors using checkpatch.pl --file. The first

Re: [PATCH 3/3 v4] blackfin: pinctrl-adi2: Enable PINCTRL framework for BF54x and BF60x.

2013-09-23 Thread Linus Walleij
On Tue, Sep 3, 2013 at 10:29 AM, Sonic Zhang sonic@gmail.com wrote: From: Sonic Zhang sonic.zh...@analog.com - Remove unused macro MAX_RESOURCES - Override blackfin legacy peripheral pinmux request and free APIs by devm_pinctrl_get_select_default() to init the peripheral portmux setting.

Re: [PATCH 2/3 v4] blackfin: gpio: Remove none gpio lib code.

2013-09-23 Thread Linus Walleij
On Mon, Sep 23, 2013 at 10:17 AM, Sonic Zhang sonic@gmail.com wrote: On Mon, Sep 23, 2013 at 3:48 PM, Linus Walleij linus.wall...@linaro.org wrote: Hi Sonic, I tried to apply this but it doesn't apply cleanly on my pinctrl devel branch based off v3.12-rc1. Can you rebase patch 2+3 and

Re: [PATCH 11/26] ARM: dove: remove custom .init_time hook

2013-09-23 Thread Andrew Lunn
On Sun, Sep 22, 2013 at 02:20:28PM +0200, Sebastian Hesselbarth wrote: On 09/21/2013 02:22 PM, Andrew Lunn wrote: On Wed, Sep 18, 2013 at 07:53:44PM +0200, Sebastian Hesselbarth wrote: With arch/arm calling of_clk_init(NULL) from time_init(), we can now remove custom .init_time hooks. While at

Re: [PATCH] perf tools: Use per-file CFLAGS in Makefile

2013-09-23 Thread Namhyung Kim
Hi Borislav, On Sat, 21 Sep 2013 01:01:32 +0200, Borislav Petkov wrote: On Mon, Sep 16, 2013 at 11:11:16AM +0900, Namhyung Kim wrote: -$(OUTPUT)util/scripting-engines/trace-event-perl.o: util/scripting-engines/trace-event-perl.c $(OUTPUT)PERF-CFLAGS -$(QUIET_CC)$(CC) -o $@ -c $(CFLAGS)

Re: [PATCH V2 0/6] perf: New conditional branch filter

2013-09-23 Thread Anshuman Khandual
On 09/21/2013 12:25 PM, Stephane Eranian wrote: On Tue, Sep 10, 2013 at 4:06 AM, Michael Ellerman mich...@ellerman.id.au wrote: On Fri, 2013-08-30 at 09:54 +0530, Anshuman Khandual wrote: This patchset is the re-spin of the original branch stack sampling patchset which introduced

Re: [PATCH] perf tools: Use per-file CFLAGS in Makefile

2013-09-23 Thread Namhyung Kim
Hi Jiri, On Sat, 21 Sep 2013 14:47:14 +0200, Jiri Olsa wrote: On Mon, Sep 16, 2013 at 11:11:16AM +0900, Namhyung Kim wrote: From: Namhyung Kim namhyung@lge.com Some files need additional compiler flags to be built successfully. Cleanup Makefile by using optional per-file CFLAGS which

[PATCH] pinctrl: pinctrl-adi2: Remove nested lock+irqsave that resue flags.

2013-09-23 Thread Sonic Zhang
From: Sonic Zhang sonic.zh...@analog.com Also avoid use NULL pointer in error message. Signed-off-by: Sonic Zhang sonic.zh...@analog.com --- drivers/pinctrl/pinctrl-adi2.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git

Re: [RFC 4/5] gpiolib: add gpiod_get() and gpiod_put() functions

2013-09-23 Thread Mika Westerberg
On Fri, Sep 20, 2013 at 08:40:48PM +0200, Linus Walleij wrote: On Wed, Sep 4, 2013 at 9:56 PM, Stephen Warren swar...@wwwdotorg.org wrote: On 09/04/2013 05:29 AM, Alexandre Courbot wrote: Add gpiod_get() and gpiod_put() functions that provide safer handling of GPIOs. These functions put

Re: [rtc-linux] [PATCH V2 3/5] gpio: add support for AMS AS3722 gpio driver

2013-09-23 Thread Linus Walleij
On Mon, Sep 23, 2013 at 10:55 AM, Laxman Dewangan ldewan...@nvidia.com wrote: On Monday 23 September 2013 01:36 PM, Linus Walleij wrote: This is pin control. Do not try to shoehorn pin control drivers into the GPIO subsystem. Take a good day off, read through Documentation/pinctrl.txt and

Re: [PATCH] perf tools: Use per-file CFLAGS in Makefile

2013-09-23 Thread Borislav Petkov
On Mon, Sep 23, 2013 at 06:15:09PM +0900, Namhyung Kim wrote: I replaced them to a single -w option since all we want to do is suppress any warning, right? Do we? And besides, -w is a big hammer as it shuts up all warnings. acme? I think special handling those files grew out of necessity to

Re: [PATCH] x86 efi: bugfix interrupt disabling sequence

2013-09-23 Thread Bart Kuivenhoven
On Sat, 2013-09-21 at 16:41 +0100, Matt Fleming wrote: On Fri, 20 Sep, at 10:21:26PM, Bart Kuivenhoven wrote: Well, isn't it so, that the kernel expects a setup in which interrupts are disabled before the decompressed image is loaded? Yes, but I wasn't advocating leaving interrupts

Re: [PATCH 1/3] perf callchain: Convert children list to rbtree

2013-09-23 Thread Namhyung Kim
Hi, On Sun, 22 Sep 2013 13:15:59 +0200, Jiri Olsa wrote: On Tue, Sep 10, 2013 at 05:24:16PM +0900, Namhyung Kim wrote: From: Namhyung Kim namhyung@lge.com SNIP index 2b585bc308cf..1b22b6269213 100644 --- a/tools/perf/util/callchain.h +++ b/tools/perf/util/callchain.h @@ -21,10 +21,9

Re: [PATCH] hotplug: Optimize {get,put}_online_cpus()

2013-09-23 Thread Peter Zijlstra
On Sat, Sep 21, 2013 at 06:34:04PM +0200, Oleg Nesterov wrote: So the slow path is still per-cpu and mostly uncontended even in the pending writer case. Is it really important? I mean, per-cpu/uncontended even if the writer is pending? I think so, once we make {get,put}_online_cpus()

Re: [PATCH v2] iio: ti_am335x_adc: Take touchscreen steps into account for conversion timeout

2013-09-23 Thread Sekhar Nori
On Monday 23 September 2013 02:27 PM, Arun Joseph wrote: On Sunday 22 September 2013 11:21 PM, Matthias Kaehlcke wrote: Hi, El Sat, Sep 21, 2013 at 01:25:42PM +0100 Jonathan Cameron ha dit: On 09/16/13 22:17, Matthias Kaehlcke wrote: The calculation of the old conversion timeout value was

  1   2   3   4   5   6   7   8   9   10   >