[PATCH v2 1/5] ACPICA: OSL: Add direct inclusion of extra header.

2014-04-22 Thread Lv Zheng
This is a linuxized result of an ACPICA commit to upgrade the extra header mechanism. This patch enhances the extra header solution to allow Linux to use ACPI_USE_NATIVE_INTERFACE_HEADER and the file name can be automatically replaced during ACPICA release process. Using this way, the rest of the

[PATCH v2 2/5] ACPICA: Add to remove mis-ordered inclusion of from .

2014-04-22 Thread Lv Zheng
>From ACPICA's perspective, should be included after inclusion of . But currently in Linux, included by has included to find ACPICA types for inline functions. This causes the following problem: 1. Redundant code in and : Linux must be careful to keep conditions for inclusion consiste

[PATCH v2 5/5] ACPICA: Remove deprecated _LINUX definitions for ACPICA.

2014-04-22 Thread Lv Zheng
There are _LINUX defined so that when Linux kernel is compiled using broken compilers that having not __linux__ defined can still include from . This behavior is deprecated as all drivers/acpi/acpica files are compiled without including , thus without _LINUX defined. As there is no issues encoun

[PATCH v2 3/5] ACPICA: Add to remove mis-ordered inclusion of from .

2014-04-22 Thread Lv Zheng
There is a mis-order inclusion for . As we will enforce including for all Linux ACPI users, we can find the inclusion order is as follows: (acenv.h before including aclinux.h) ... (aclinux.h before incl

[PATCH v2 4/5] ACPICA: Cleanup redudant definitions that already have defaults in .

2014-04-22 Thread Lv Zheng
Since mis-order issues have been solved, we can cleanup redundant definitions that already have defaults in . This patch removes redudant environments for __KERNEL__ surrounded code. Signed-off-by: Lv Zheng Cc: Tony Luck Cc: Fenghua Yu Cc: linux-i...@vger.kernel.org Cc: Thomas Gleixner Cc: In

[PATCH v2 0/5] ACPICA: Fix some mis-ordered inclusions.

2014-04-22 Thread Lv Zheng
This patch fixes some mis-ordered inclusions for Linux resident ACPICA. There is no real issue in the Linux kernel, but this can help to cleanup the code so that (benefits): 1. Redundant environment definitions can be removed from and . 2. Lift a burden off the ACPICA release automation - copy

Re: [PATCH 19/28] nios2: Device tree support

2014-04-22 Thread Ley Foon Tan
On Tue, Apr 22, 2014 at 9:42 PM, Arnd Bergmann wrote: > On Friday 18 April 2014, Ley Foon Tan wrote: >> diff --git a/arch/nios2/boot/dts/3c120_devboard.dts >> b/arch/nios2/boot/dts/3c120_devboard.dts >> +/dts-v1/; >> + >> +/ { >> + model = "ALTR,qsys_ghrd_3c120"; >> + compatible = "ALTR,

Re: [PATCH v6 06/19] usb: phy: msm: Fix checkpatch.pl warnings

2014-04-22 Thread Ivan T. Ivanov
On Tue, 2014-04-22 at 16:30 +0100, Srinivas Kandagatla wrote: > > On 22/04/14 10:20, Ivan T. Ivanov wrote: > > @@ -79,8 +78,7 @@ static int msm_hsusb_init_vddcx(struct msm_otg *motg, int > > init) > > ret = regulator_set_voltage(motg->vddcx, 0, > > USB_PHY_VDD_DIG

RE: [Resend Patch 9/9] I2C/ACPI: Add CONFIG_I2C_ACPI config

2014-04-22 Thread Zheng, Lv
Hi, Tianyu > From: Lan, Tianyu > Sent: Wednesday, April 23, 2014 1:40 PM > > On 2014年04月22日 19:45, Mika Westerberg wrote: > > On Tue, Apr 22, 2014 at 02:24:15PM +0800, Lan Tianyu wrote: > >> This patch is to add CONFIG_I2C_ACPI. Current there is a race between > >> removing I2C ACPI operation reg

Re: [PATCH 2/4] mm/memcontrol.c: use accessor to get id from css

2014-04-22 Thread Jianyu Zhan
On Wed, Apr 23, 2014 at 3:49 AM, Andrew Morton wrote: > I'd expect Tejun to process this series, but you didn't cc him on 2/4. Oh, I reposed too much confidence in get_maintainer.pl. I thought it would cc tj as usual. :-) Tj said he has a patchset queued for addressing this problem and will be

[PATCH v2 1/2] perf record: Propagate exit status of a command line workload

2014-04-22 Thread Namhyung Kim
Currently perf record doesn't propagate the exit status of a workload given by the command line. But sometimes it'd useful if it's propagated so that a monitoring script can handle errors appropriately. To do that, it got rid of exit handlers and run/call them directly in the __cmd_record(). I d

[PATCH v2 2/2] perf tools: Get rid of on_exit() feature test

2014-04-22 Thread Namhyung Kim
The on_exit() function was only used in perf record but it's gone in previous patch. Signed-off-by: Namhyung Kim --- tools/perf/builtin-record.c | 31 - tools/perf/config/Makefile | 8 --- tools/perf/config/feature-checks/Make

Re: [RESEND PATCH v3 8/9] tty: cadence: Document DT binding

2014-04-22 Thread Michal Simek
On 04/05/2014 02:23 AM, Soren Brinkmann wrote: > Add binding documentation for the Cadence UART. > > Signed-off-by: Soren Brinkmann > Acked-by: Peter Crosthwaite > Acked-by: Rob Herring > Tested-by: Michal Simek > --- > > Changes in v3: None > Changes in v2: None > > .../devicetree/bindings

Re: [RESEND PATCH v3 9/9] ARM: zynq: DT: Migrate UART to Cadence binding

2014-04-22 Thread Michal Simek
On 04/05/2014 02:23 AM, Soren Brinkmann wrote: > The Zynq UART is Cadence IP and the driver has been renamed accordingly. > Migrate the DT to use the new binding for the UART driver. > > Signed-off-by: Soren Brinkmann > Acked-by: Peter Crosthwaite > Acked-by: Rob Herring > Tested-by: Michal Sim

Re: [PATCH] x86-64: espfix for 64-bit mode *PROTOTYPE*

2014-04-22 Thread H. Peter Anvin
On 04/22/2014 10:04 AM, Linus Torvalds wrote: The segment table is shared for a process. So you can have one thread doing a load_ldt() that invalidates a segment, while another thread is busy taking a page fault. The segment was valid at page fault time and is saved on the kernel stack, but by t

RE: [PATCH] mmc: dw_mmc: Don't print data errors

2014-04-22 Thread Seungwon Jeon
On Wed, April 23, 2014, Doug Anderson wrote: > Data errors are completely expected during tuning. Printing them out > is confusing people looking at the kernel logs. They see things like: > > [3.613296] dwmmc_exynos 1220.dwmmc0: data error, status 0x0088 > > ...and they think somet

Re: [PATCH 1/4] cpuidle: config: Add SOC_EXYNOS5420 entry to select cpuidle-big-little driver

2014-04-22 Thread Chander Kashyap
Hi Daniel, On 22 April 2014 16:12, Daniel Lezcano wrote: > On 04/21/2014 01:49 PM, Chander Kashyap wrote: >> >> Exynos5420 is a big-little SoC from Samsung. It has 4 A15 and 4 A7 cores. >> In order to use generic cpuidle-big-little driver, this patch adds >> Exynos5420 >> specific check to initia

Re: [PATCHSET 00/17] perf report: Add -F option for specifying output fields (v4)

2014-04-22 Thread Namhyung Kim
Hi Don, On Tue, 22 Apr 2014 17:16:47 -0400, Don Zickus wrote: > On Wed, Apr 16, 2014 at 12:05:37PM +0900, Namhyung Kim wrote: >> Hello, >> >> This is a patchset implementing -F/--fields option to setup output >> field/column as Ingo requested. It depends on my --percentage >> patchset [1]. >> >

Re: [PATCH v2 04/10] drm/nouveau/fb: add GK20A support

2014-04-22 Thread Alexandre Courbot
On Wed, Apr 23, 2014 at 11:07 AM, Alexandre Courbot wrote: > On 04/22/2014 07:40 PM, Thierry Reding wrote: >> >> * PGP Signed by an unknown key >> >> >> On Mon, Apr 21, 2014 at 03:02:16PM +0900, Alexandre Courbot wrote: >> [...] >>> >>> diff --git a/drivers/gpu/drm/nouveau/core/subdev/fb/ramgk20a.

[GIT PULL] serial: Cadence

2014-04-22 Thread Michal Simek
Hi Greg, this is around for a while and I would like to close it. I have applied patches 1-7 from v3. Patches 8 and 9 should go through arm-soc tree and I will add them to my zynq/dt branch. Please apply these patches to your tree. If this should go through different tree please let me know. Tha

[f2fs-dev][PATCH 2/2 v2] f2fs: introduce f2fs_seek_block to support SEEK_{DATA, HOLE} in llseek

2014-04-22 Thread Chao Yu
In This patch we introduce f2fs_seek_block to support SEEK_{DATA,HOLE} of lseek(2). change log from v1: o fix bug when lseek from middle of page and fix wrong calculation of PGOFS_OF_NEXT_DNODE macro. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h |6 fs/f2fs/file.c | 92

Re: [PATCHSET 0/9] perf tools: Fixup for the --percentage change

2014-04-22 Thread Ingo Molnar
* Namhyung Kim wrote: > Hi Ingo, > > On Tue, 22 Apr 2014 11:55:57 +0200, Ingo Molnar wrote: > > I gave it some quick testing and after fixing a trivial merge conflict > > in tools/lib/lockdep/Makefile all seems to be working fine. > > Thanks for testing! > > > > > But while looking at it I r

Re: [PATCH 0/3] tools lib traceevent: Options for plugins

2014-04-22 Thread Namhyung Kim
Hi Steven, On Tue, 22 Apr 2014 15:48:24 -0400, Steven Rostedt wrote: > trace-cmd has a way to set options for plugins, via the command > line parameter. For example, you can add or remove the parent > from being printed in function tracing by adding: > > -O parent=1 > -O parent=0 > > This is p

[git pull] Input updates for 3.15-rc2

2014-04-22 Thread Dmitry Torokhov
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus or master.kernel.org:/pub/scm/linux/kernel/git/dtor/input.git for-linus to receive updates for the input subsystem. The main change is that we now publish "firmware ID" for the ser

Re: mapping instructions to dynamic languages like java, python, ruby

2014-04-22 Thread Namhyung Kim
Hi Stephane, On Tue, 22 Apr 2014 21:05:11 +0200, Stephane Eranian wrote: > Hi Don, > > I have been working on the JIT code support for a while now. > I have something working well for more than Java now. It reuses > some of the same principles as the OProfile support but extend > them to support m

Re: [PATCH] dmaengine: edma: No need save/restore interrupt flags during spin_lock in IRQ

2014-04-22 Thread Vinod Koul
On Thu, Apr 17, 2014 at 12:58:33AM -0500, Joel Fernandes wrote: > The vchan lock in edma_callback is acquired in hard interrupt context. As > interrupts are already disabled, there's no point in save/restoring interrupt > mask bit or cpsr flags. > > Get rid of flags local variable and use spin_loc

Re: [PATCH 0/6] input: cyapa: integrated with gen5 trackpad supported in one driver.

2014-04-22 Thread Dmitry Torokhov
Hi Dudley, On Tue, Apr 22, 2014 at 08:39:43AM +, Dudley Du wrote: > Hi Dmitry, > > Could you help review the patches of input: cyapa for re-architecture > and supporting new trackpad devices, I'm really looking forward your > responses. It is on my TODO list, sorry it takes too long... Than

Re: [PATCH 4/9] perf tools: Introduce hists__inc_dump_events()

2014-04-22 Thread Namhyung Kim
On Tue, 22 Apr 2014 18:53:55 +0200, Jiri Olsa wrote: > On Tue, Apr 22, 2014 at 05:49:46PM +0900, Namhyung Kim wrote: > > SNIP > >> index f955ae5a41c5..883340d7d43e 100644 >> --- a/tools/perf/util/hist.c >> +++ b/tools/perf/util/hist.c >> @@ -333,6 +333,19 @@ void hists__inc_nr_events(struct hists *

Re: [PATCH] soc_button_array: fix a crash during rmmod

2014-04-22 Thread Dmitry Torokhov
On Tue, Apr 22, 2014 at 02:38:39PM +0800, Zhu, Lejun wrote: > When the system has zero or one button available, trying to rmmod > soc_button_array will cause crash. Fix this by properly handling -ENODEV > in probe(). > > Signed-off-by: Lejun Zhu Applied, thank you. > --- > drivers/input/misc/s

[PATCH V2] ARM: EXYNOS: cpu hotplug: use v7_exit_coherency_flush macro for cache disabling

2014-04-22 Thread Leela Krishna Amudala
A common macro v7_exit_coherency_flush available which does the below tasks in the seqeunce. -clearing C bit -clearing L1 cache -exit SMP -instruction and data synchronization So removing the local functions which does the same thing and use the macro instead. Signed-off-by: Leela Krishna Amudal

Re: [PATCH] extcon: palmas: explicitly set edev name as node name

2014-04-22 Thread Kishon Vijay Abraham I
Hi Chanwoo, On Thursday 10 April 2014 09:19 AM, Chanwoo Choi wrote: > Hi Kishon, > > On 03/28/2014 03:51 PM, Kishon Vijay Abraham I wrote: >> commit ca488 (extcon: of: Remove unnecessary function call by using the >> name of device_node) started using node name instead of device name >> to get th

Re: [Bugfix] sched: fix possible invalid memory access caused by CPU hot-addition

2014-04-22 Thread Peter Zijlstra
On Wed, Apr 23, 2014 at 07:32:13AM +0200, Peter Zijlstra wrote: > On Wed, Apr 23, 2014 at 10:45:13AM +0800, Jiang Liu wrote: > > Hi Peter, > > It's not for memoryless node, but to solve a race window > > in CPU hot-addition. The related CPU hot-addition flow is: > > 1) Handle CPU hot-addition e

Re: [Resend Patch 9/9] I2C/ACPI: Add CONFIG_I2C_ACPI config

2014-04-22 Thread Lan Tianyu
On 2014年04月22日 19:45, Mika Westerberg wrote: > On Tue, Apr 22, 2014 at 02:24:15PM +0800, Lan Tianyu wrote: >> This patch is to add CONFIG_I2C_ACPI. Current there is a race between >> removing I2C ACPI operation region and ACPI AML code accessing. >> So make i2c core built-in if CONFIG_I2C_ACPI is s

Re: [Bugfix] sched: fix possible invalid memory access caused by CPU hot-addition

2014-04-22 Thread Jiang Liu
On 2014/4/23 13:32, Peter Zijlstra wrote: > On Wed, Apr 23, 2014 at 10:45:13AM +0800, Jiang Liu wrote: >> Hi Peter, >> It's not for memoryless node, but to solve a race window >> in CPU hot-addition. The related CPU hot-addition flow is: >> 1) Handle CPU hot-addition event >> 1.a) gather platf

Re: [PATCH] ARM: EXYNOS: cpu hotplug: use v7_exit_coherency_flush macro for cache disabling

2014-04-22 Thread Leela Krishna Amudala
Hi Daniel, Thanks for reviewing the patch. On Tue, Apr 22, 2014 at 8:06 PM, Daniel Lezcano wrote: > On 04/22/2014 04:18 PM, Leela Krishna Amudala wrote: >> >> Remove the duplicated code for cache disabling and use >> "v7_exit_coherency_flush" >> macro to do the same job. > > > Hi Leela, > > than

Re: [PATCH 1/3] tools: Unify export.h

2014-04-22 Thread Rusty Russell
Borislav Petkov writes: > From: Borislav Petkov > > So tools/ has been growing three, at a different stage of their > development export.h headers and so we should unite into one. Add > tools/include/ to the include path of virtio and liblockdep to pick the > shared header now. Acked-by: Rusty R

Re: Futex Question (64 bits?)

2014-04-22 Thread Rusty Russell
Ryan Nicholl writes: > I would like to know if it would be possible to use a 64 bit futex > call? If not, I would like to request it be added. (It is acknowledged > in the manpages that it must be added eventually anyway.) It could be done; it's just not been done yet. Simple matter of coding ;)

Re: [PATCH 3/9] drivers/hid/hid-lg4ff.c: avoid world-writable sysfs files.

2014-04-22 Thread Rusty Russell
si...@mungewell.org writes: >> In line with practice for module parameters, we're adding a build-time >> check that sysfs files aren't world-writable. > > So this is the equivalent of 'chmod 774 ...' rather than 'chmod > 777...'? Yep. Though not sure why it was 777 rather than 666... > Yep I'm O

Re: [PATCH] Fix: tracing: use 'E' instead of 'X' for unsigned module tain flag

2014-04-22 Thread Rusty Russell
Mathieu Desnoyers writes: > In the following commit: > > commit 57673c2b0baa900dddae3b9eb3d7748ebf550eb3 > Author: Rusty Russell > Date: Mon Mar 31 14:39:57 2014 +1030 > > Use 'E' instead of 'X' for unsigned module taint flag. > > One site has been forgotten in trace events module.h. Hmm,

Re: [PATCH v2] fix printk output

2014-04-22 Thread Rusty Russell
Sergei Ianovich writes: > On Tue, 2013-12-10 at 15:59 +1030, Rusty Russell wrote: >> BTW, did you actually hit this? > > # modprobe usb_storage > [ 600.807274] usbcore: registered new interface driver usb-storage > # modprobe -r usb_storage > [ 604.216318] waiting module removal not supported: p

Re: [PATCH] sched / idle: Make cpuidle_idle_call() void

2014-04-22 Thread Peter Zijlstra
On Wed, Apr 23, 2014 at 01:36:42AM +0200, Rafael J. Wysocki wrote: > On Tuesday, April 22, 2014 01:49:30 PM Peter Zijlstra wrote: > > On Mon, Apr 21, 2014 at 01:26:58AM +0200, Rafael J. Wysocki wrote: > > > From: Rafael J. Wysocki > > > > > > The only value ever returned by cpuidle_idle_call() is

Re: debug_dma_assert_idle - snd_hda_intel - cpu touching an active dma mapped cacheline

2014-04-22 Thread poma
On 23.04.2014 02:53, poma wrote: > > This one comes and goes... > > [ cut here ] > WARNING: CPU: 2 PID: 521 at lib/dma-debug.c:593 > debug_dma_assert_idle+0x159/0x1d0() > snd_hda_intel :00:07.0: DMA-API: cpu touching an active dma mapped > cacheline [cln=0x03019000] >

Re: Microblaze image hanging in qemu with 3.15-rc

2014-04-22 Thread Michal Simek
Hi Guenter, On 04/22/2014 07:23 PM, Guenter Roeck wrote: > Hi all, > > when trying to run a microblaze image with 3.15-rc1 or 3.15-rc2 in qemu, > I get the following hangup. This used to work with earlier kernels > with the same configuration. > > Is this a known problem, or is something wrong

Re: [Bugfix] sched: fix possible invalid memory access caused by CPU hot-addition

2014-04-22 Thread Peter Zijlstra
On Wed, Apr 23, 2014 at 10:45:13AM +0800, Jiang Liu wrote: > Hi Peter, > It's not for memoryless node, but to solve a race window > in CPU hot-addition. The related CPU hot-addition flow is: > 1) Handle CPU hot-addition event > 1.a) gather platform specific information > 1.b) associate hot-ad

Re: [PATCH 5/4] ipc,shm: minor cleanups

2014-04-22 Thread Michael Kerrisk (man-pages)
On 04/23/2014 07:25 AM, Davidlohr Bueso wrote: > On Wed, 2014-04-23 at 07:07 +0200, Michael Kerrisk (man-pages) wrote: >> On 04/23/2014 04:53 AM, Davidlohr Bueso wrote: >>> - Breakup long function names/args. >>> - Cleaup variable declaration. >>> - s/current->mm/mm >>> >>> Signed-off-by: Davidl

[PATCH 2/3] f2fs: pass flags field to setxattr functions

2014-04-22 Thread Jaegeuk Kim
This patch passes the "flags" field to the low level setxattr functions to use XATTR_REPLACE in the following patches. Signed-off-by: Jaegeuk Kim --- fs/f2fs/acl.c | 2 +- fs/f2fs/xattr.c | 13 +++-- fs/f2fs/xattr.h | 4 ++-- 3 files changed, 10 insertions(+), 9 deletions(-) diff --

Re: [PATCH 5/4] ipc,shm: minor cleanups

2014-04-22 Thread Davidlohr Bueso
On Wed, 2014-04-23 at 07:07 +0200, Michael Kerrisk (man-pages) wrote: > On 04/23/2014 04:53 AM, Davidlohr Bueso wrote: > > - Breakup long function names/args. > > - Cleaup variable declaration. > > - s/current->mm/mm > > > > Signed-off-by: Davidlohr Bueso > > --- > > ipc/shm.c | 40 ++

[PATCH 3/3] f2fs: return errors right after checking them

2014-04-22 Thread Jaegeuk Kim
This patch adds two error conditions early in the setxattr operations. Signed-off-by: Jaegeuk Kim --- fs/f2fs/xattr.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/xattr.c b/fs/f2fs/xattr.c index bbe9c2b..6073f9f 100644 --- a/fs/f2fs/xattr.c +++ b/fs/f2fs/

[PATCH 1/3] f2fs: clean up long variable names

2014-04-22 Thread Jaegeuk Kim
This patch includes simple clean-ups to reduce unnecessary long variable names. Signed-off-by: Jaegeuk Kim --- fs/f2fs/xattr.c | 86 + fs/f2fs/xattr.h | 6 ++-- 2 files changed, 47 insertions(+), 45 deletions(-) diff --git a/fs/f2fs/xattr

Re: [PATCH] vfs: rw_copy_check_uvector() - free iov on error

2014-04-22 Thread Eric Biggers
On Wed, Apr 23, 2014 at 12:06:39AM -0500, Eric Biggers wrote: > The proposed patch doesn't work because in compat_rw_copy_check_uvector(), > 'iov' > is incremented in the loop before it is freed or returned. This probably > should > be changed to indexing with 'seg', like in the non-compat versi

[PATCH] autofs - fix lockref lookup

2014-04-22 Thread Ian Kent
autofs needs to be able to see private data dentry flags for its dentrys that are being created but not yet hashed and for its dentys that have been rmdir()ed but not yet freed. It needs to do this so it can block processes in these states until a status has been returned to indicate the given oper

Re: [PATCH] pinctrl-baytrail: fix for irq descriptor conflict on ASUS T100TA

2014-04-22 Thread Adam Williamson
On Mon, 2014-04-21 at 10:30 -0400, Benjamin Tissoires wrote: > On Mon, Apr 21, 2014 at 9:28 AM, Jin, Yao wrote: > > > > > > On 2014/4/21 14:27, Jin, Yao wrote: > >> > >> > >> On 2014/4/20 23:28, Adam Williamson wrote: > >>> On Sun, 2014-04-20 at 20:08 +0800, Jin, Yao wrote: > For the issue th

Re: [PATCH] proc: fix documentation for /proc/stat, line "intr"

2014-04-22 Thread Michael Kerrisk (man-pages)
On Wed, Apr 23, 2014 at 12:35 AM, Randy Dunlap wrote: > On 04/22/14 11:19, Michael Kerrisk (man-pages) wrote: >> On 04/22/2014 05:29 PM, Jan Moskyto Matejka wrote: >>> The sum at the beginning of line "intr" includes also unnumbered interrupts. >>> It implies that the sum at the beginning isn't th

Re: [PATCH 3/9] perf tools: Account entry stats when it's added to the output tree

2014-04-22 Thread Namhyung Kim
On Tue, 22 Apr 2014 19:10:49 +0200, Jiri Olsa wrote: > On Tue, Apr 22, 2014 at 05:49:45PM +0900, Namhyung Kim wrote: > > SNIP > >> >> diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c >> index 1c77714f668d..f955ae5a41c5 100644 >> --- a/tools/perf/util/hist.c >> +++ b/tools/perf/util/hi

RE: [PATCHv2 2/3] regmap: Add the DT binding documentation for endianness

2014-04-22 Thread li.xi...@freescale.com
> -Original Message- > From: Mark Brown [mailto:broo...@kernel.org] > Sent: Tuesday, April 15, 2014 5:10 AM > To: Xiubo Li-B47053 > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCHv2 2/3] regmap: Add the DT binding documentation for > endianness > > On

Re: [PATCH 1/4] ipc/shm.c: check for ulong overflows in shmat

2014-04-22 Thread Michael Kerrisk (man-pages)
On 04/21/2014 04:26 PM, Manfred Spraul wrote: > find_vma_intersection does not work as intended if addr+size overflows. > The patch adds a manual check before the call to find_vma_intersection. > > Signed-off-by: Manfred Spraul > --- > ipc/shm.c | 3 +++ > 1 file changed, 3 insertions(+) > > di

Re: [PATCH 5/4] ipc,shm: minor cleanups

2014-04-22 Thread Michael Kerrisk (man-pages)
On 04/23/2014 04:53 AM, Davidlohr Bueso wrote: > - Breakup long function names/args. > - Cleaup variable declaration. > - s/current->mm/mm > > Signed-off-by: Davidlohr Bueso > --- > ipc/shm.c | 40 +--- > 1 file changed, 17 insertions(+), 23 deletions(-) >

Re: [PATCH 3/4] ipc/shm.c: check for integer overflow during shmget.

2014-04-22 Thread Michael Kerrisk (man-pages)
On 04/21/2014 04:26 PM, Manfred Spraul wrote: > SHMMAX is the upper limit for the size of a shared memory segment, > counted in bytes. The actual allocation is that size, rounded up to > the next full page. > Add a check that prevents the creation of segments where the > rounded up size causes an i

Re: [PATCH] vfs: rw_copy_check_uvector() - free iov on error

2014-04-22 Thread Eric Biggers
The proposed patch doesn't work because in compat_rw_copy_check_uvector(), 'iov' is incremented in the loop before it is freed or returned. This probably should be changed to indexing with 'seg', like in the non-compat version... -- To unsubscribe from this list: send the line "unsubscribe linux-k

Re: [PATCH 4/4] ipc/shm.c: Increase the defaults for SHMALL, SHMMAX.

2014-04-22 Thread Michael Kerrisk (man-pages)
On 04/21/2014 04:26 PM, Manfred Spraul wrote: > System V shared memory > > a) can be abused to trigger out-of-memory conditions and the standard >measures against out-of-memory do not work: > > - it is not possible to use setrlimit to limit the size of shm segments. > > - segments ca

Re: [PATCH 2/4] ipc/shm.c: check for overflows of shm_tot

2014-04-22 Thread Michael Kerrisk (man-pages)
On 04/21/2014 04:26 PM, Manfred Spraul wrote: > shm_tot counts the total number of pages used by shm segments. > > If SHMALL is ULONG_MAX (or nearly ULONG_MAX), then the number > can overflow. Subsequent calls to shmctl(,SHM_INFO,) would return > wrong values for shm_tot. > > The patch adds a de

linux-next: Tree for Apr 23

2014-04-22 Thread Stephen Rothwell
Hi all, This tree still fails (more than usual) the powerpc allyesconfig build. Changes since 20140422: New tree: drm-panel The arm tree still produces quite a few build warnings. The powerpc tree still had its build failure. The vfs tree still had its build failure so I applied a fix patch

Re: [RFC PATCH v5 2/2] Use kernfs_break_active_protection() for device online store callbacks

2014-04-22 Thread Li Zhong
On Tue, 2014-04-22 at 16:44 -0400, Tejun Heo wrote: > Hello, > > On Tue, Apr 22, 2014 at 11:34:39AM +0800, Li Zhong wrote: > > > Is this assumption true? If so, can we add lockdep assertions in > > > places to verify and enforce this? If not, aren't we just feeling > > > good when the reality is

Re: [PATCH] zram: correct offset usage in zram_bio_discard

2014-04-22 Thread Joonsoo Kim
On Wed, Apr 23, 2014 at 11:52:08AM +0800, Weijie Yang wrote: > On Wed, Apr 23, 2014 at 11:08 AM, Joonsoo Kim wrote: > > On Wed, Apr 23, 2014 at 10:32:30AM +0800, Weijie Yang wrote: > >> On Wed, Apr 23, 2014 at 3:55 AM, Andrew Morton > >> wrote: > >> > On Tue, 22 Apr 2014 11:14:02 +0800 Weijie Yan

Re: [PATCH 3/9] perf tools: Account entry stats when it's added to the output tree

2014-04-22 Thread Namhyung Kim
On Tue, 22 Apr 2014 16:54:49 +0200, Jiri Olsa wrote: > On Tue, Apr 22, 2014 at 05:49:45PM +0900, Namhyung Kim wrote: > > SNIP > >> } >> >> static int process_sample_event(struct perf_tool *tool, >> @@ -234,19 +230,17 @@ static int __cmd_annotate(struct perf_annotate *ann) >> total_nr_sampl

Re: [PATCH] proc: fix documentation for /proc/stat, line "intr"

2014-04-22 Thread Michael Kerrisk (man-pages)
On 04/23/2014 12:35 AM, Randy Dunlap wrote: > On 04/22/14 11:19, Michael Kerrisk (man-pages) wrote: >> On 04/22/2014 05:29 PM, Jan Moskyto Matejka wrote: >>> The sum at the beginning of line "intr" includes also unnumbered interrupts. >>> It implies that the sum at the beginning isn't the sum of th

Re: [PATCH 2/9] perf hists: Introduce hists__add_nr_events()

2014-04-22 Thread Namhyung Kim
On Tue, 22 Apr 2014 16:52:03 +0200, Jiri Olsa wrote: > On Tue, Apr 22, 2014 at 05:49:44PM +0900, Namhyung Kim wrote: >> +static void hists__add_nr_events(struct hists *hists, u32 type, u32 val) >> +{ >> +__events_stats__add(&hists->stats, type, val); >> +} > > adding static function with no usa

Re: [Bugfix] sched: fix possible invalid memory access caused by CPU hot-addition

2014-04-22 Thread Jiang Liu
On 2014/4/23 9:59, David Rientjes wrote: > On Tue, 22 Apr 2014, Peter Zijlstra wrote: > >> On Tue, Apr 22, 2014 at 01:01:51PM -0700, Andrew Morton wrote: >>> On Tue, 22 Apr 2014 10:15:15 +0200 Peter Zijlstra >>> wrote: >>> On Tue, Apr 22, 2014 at 01:27:15PM +0800, Jiang Liu wrote: > W

Re: [PATCH 1/9] perf report: Count number of entries and samples separately

2014-04-22 Thread Namhyung Kim
Hi Jiri, On Tue, 22 Apr 2014 16:51:03 +0200, Jiri Olsa wrote: > On Tue, Apr 22, 2014 at 05:49:43PM +0900, Namhyung Kim wrote: >> Those stats are counted counted in multiple places so that they can >> confuse readers of the code. This is a preparation of later change >> and do not intend any funct

Re: [PATCHSET 0/9] perf tools: Fixup for the --percentage change

2014-04-22 Thread Namhyung Kim
Hi Ingo, On Tue, 22 Apr 2014 11:55:57 +0200, Ingo Molnar wrote: > I gave it some quick testing and after fixing a trivial merge conflict > in tools/lib/lockdep/Makefile all seems to be working fine. Thanks for testing! > > But while looking at it I remembered one of my old UI complains about >

Re: [PATCH V2 01/19] tick: trivial cleanups

2014-04-22 Thread Viresh Kumar
On 23 April 2014 02:53, Frederic Weisbecker wrote: > On Mon, Apr 21, 2014 at 03:24:57PM +0530, Viresh Kumar wrote: >> diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c >> index 6558b7a..9e9ddba 100644 >> --- a/kernel/time/tick-sched.c >> +++ b/kernel/time/tick-sched.c >> @@ -108,7 +

Re: [PATCH] cpufreq: powernow-k8: Fix checkpatch warnings

2014-04-22 Thread Viresh Kumar
On 23 April 2014 02:43, Stratos Karafotis wrote: > @@ -342,7 +333,7 @@ static int core_voltage_pre_transition(struct > powernow_k8_data *data, > return 1; > > if (savefid != data->currfid) { > - printk(KERN_ERR PFX "ph1 err, currfid changed 0x%x\n", > +

[PATCH] ceph: fix corruption when using page_count 0 page in rbd

2014-04-22 Thread Chunwei Chen
It has been reported that using ZFSonLinux on rbd will result in memory corruption. The bug report can be found here: https://github.com/zfsonlinux/spl/issues/241 http://tracker.ceph.com/issues/7790 The reason is that ZFS will send pages with page_count 0 into rbd, which in turns send them to tcp

Re: [PATCH] cpufreq: Kconfig: Fix spelling errors

2014-04-22 Thread Viresh Kumar
On 23 April 2014 01:10, Stratos Karafotis wrote: > Fix 4 spelling errors in help sections. > > Signed-off-by: Stratos Karafotis > --- > drivers/cpufreq/Kconfig.arm | 4 ++-- > drivers/cpufreq/Kconfig.x86 | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) Acked-by: Viresh Kumar -- To

Re: [PATCH v2 2/2] usb: gadget: Add xilinx axi usb2 device support

2014-04-22 Thread sundeep subbaraya
Hi, On Tue, Apr 22, 2014 at 8:19 PM, Felipe Balbi wrote: > Hi, > > On Tue, Apr 22, 2014 at 12:58:41PM +0530, sundeep subbaraya wrote: >> Hi, >> >> On Mon, Apr 21, 2014 at 10:09 PM, Alan Stern >> wrote: >> > On Mon, 21 Apr 2014, Felipe Balbi wrote: >> > >> >> Hi, >> >> >> >> On Fri, Apr 18, 2014

linux-next: build failure after merge of the akpm-current tree

2014-04-22 Thread Stephen Rothwell
Hi Andrew, After merging the akpm-current tree, today's linux-next build (arm multi_v7_defconfig) failed like this: In file included from arch/arm/mm/flush.c:20:0: include/linux/hugetlb.h: In function 'hugepages_supported': include/linux/hugetlb.h:468:9: error: 'HPAGE_SHIFT' undeclared (first use

[PATCH] usb: phy: tahvo: Use devm_extcon_dev_* function for resource management of extcon

2014-04-22 Thread Chanwoo Choi
This patch uses devm_extcon_dev_{allocate, register} function for automatically resource management of extcon device instead of legacy method and simplifies the behavior of register/unregister for extcon device. Signed-off-by: Chanwoo Choi --- This patch has dependency about following patches[1-2

Re: [perf] yet another 32/64-bit range check failure

2014-04-22 Thread Vince Weaver
On Tue, 22 Apr 2014, Vince Weaver wrote: > This is allowing events to be allocated memory but not being freed somehow > before returning EINVAL (a memory leak). > At least it looks like this is happening in the huge traces I have trying > to track down the perf_fuzzer memory corruption bug. I ca

Re: [PATCH] mmc: dw_mmc: Don't print data errors

2014-04-22 Thread Alim Akhtar
Hi Doug, On Wed, Apr 23, 2014 at 5:21 AM, Doug Anderson wrote: > Data errors are completely expected during tuning. Printing them out > is confusing people looking at the kernel logs. They see things like: > > [3.613296] dwmmc_exynos 1220.dwmmc0: data error, status 0x0088 > > ...an

Re: [PATCH 0/6][v2] audit: implement multicast socket for journald

2014-04-22 Thread Eric Paris
On Tue, 2014-04-22 at 22:25 -0400, Steve Grubb wrote: > On Tuesday, April 22, 2014 09:31:52 PM Richard Guy Briggs wrote: > > This is a patch set Eric Paris and I have been working on to add a > > restricted capability read-only netlink multicast socket to kernel audit to > > enable userspace client

Re: [PATCH 0/6][v2] audit: implement multicast socket for journald

2014-04-22 Thread David Miller
From: Richard Guy Briggs Date: Tue, 22 Apr 2014 21:49:29 -0400 > On 14/04/22, David Miller wrote: >> From: Richard Guy Briggs >> Date: Tue, 22 Apr 2014 21:31:52 -0400 >> >> > This is a patch set Eric Paris and I have been working on to add a >> > restricted >> > capability read-only netlink mu

Re: [PATCH] zram: correct offset usage in zram_bio_discard

2014-04-22 Thread Weijie Yang
On Wed, Apr 23, 2014 at 11:08 AM, Joonsoo Kim wrote: > On Wed, Apr 23, 2014 at 10:32:30AM +0800, Weijie Yang wrote: >> On Wed, Apr 23, 2014 at 3:55 AM, Andrew Morton >> wrote: >> > On Tue, 22 Apr 2014 11:14:02 +0800 Weijie Yang >> > wrote: >> > >> >> we want to skip the logical block which is p

[PATCH 5/5] NFS: avoid deadlocks with loop-back mounted NFS filesystems.

2014-04-22 Thread NeilBrown
Support for loop-back mounted NFS filesystems is useful when NFS is used to access shared storage in a high-availability cluster. If the node running the NFS server fails some other node can mount the filesystem and start providing NFS service. If that node already had the filesystem NFS mounted,

linux-next: build failure after merge of the wireless-next tree

2014-04-22 Thread Stephen Rothwell
Hi John, After merging the wireless-next tree, today's linux-next build (powerpc allyesconfig) failed like this: drivers/net/wireless/mwifiex/pcie.c: In function 'mwifiex_pcie_fw_dump_work': drivers/net/wireless/mwifiex/pcie.c:2290:3: error: implicit declaration of function 'vmalloc' [-Werror=im

[PATCH 4/5] SUNRPC: track when a client connection is routed to the local host.

2014-04-22 Thread NeilBrown
If requests are being sent to the local host, then NFS will need to take care to avoid deadlocks. So keep track when accepting a connection or sending a UDP request and set a flag in the svc_xprt when the peer connected to is local. The interface rpc_is_foreign() is provided to check is a given c

[PATCH 3/5] nfsd: Only set PF_LESS_THROTTLE when really needed.

2014-04-22 Thread NeilBrown
PF_LESS_THROTTLE has a very specific use case: to avoid deadlocks and live-locks while writing to the page cache in a loop-back NFS mount situation. It therefore makes sense to *only* set PF_LESS_THROTTLE in this situation. We now know when a request came from the local-host so it could be a loop-

[PATCH 2/5] SUNRPC: track whether a request is coming from a loop-back interface.

2014-04-22 Thread NeilBrown
If an incoming NFS request is coming from the local host, then nfsd will need to perform some special handling. So detect that possibility and make the source visible in rq_local. Signed-off-by: NeilBrown --- include/linux/sunrpc/svc.h |1 + include/linux/sunrpc/svc_xprt.h |1 + ne

[PATCH 1/5] MM: avoid throttling reclaim for loop-back nfsd threads.

2014-04-22 Thread NeilBrown
When a loop-back NFS mount is active and the backing device for the NFS mount becomes congested, that can impose throttling delays on the nfsd threads. These delays significantly reduce throughput and so the NFS mount remains congested. This results in a live lock and the reduced throughput persi

[PATCH/RFC 0/5] Support loop-back NFS mounts - take 2

2014-04-22 Thread NeilBrown
This is a somewhat shorter patchset for loop-back NFS support than last time, thanks to the excellent feedback and particularly to Dave Chinner. Thanks. Avoiding the wait-for-congestion which can trigger a livelock is much the same, though I've reduced the cases in which the wait is by-passed. I

Re: [PATCH 03/10] staging: rtl8188eu: Remove _ReadLEDSetting() function.

2014-04-22 Thread navin patidar
On Tue, Apr 22, 2014 at 7:58 PM, Larry Finger wrote: > > To me, the opposite case is true. If you have not tested, then you need to > explicitly state "compile tested only" in the commit message. Without saying > that, your signed-off-by is implying that you have tested, as well as > declaring tha

[RFC][PATCH 2/3] printk: Add printk_once_deferred

2014-04-22 Thread John Stultz
Two of the three prink_deferred uses are really printk_once style uses, so add a printk_once_deferred macro to simplify those call sites. Cc: Jan Kara Cc: Peter Zijlstra Cc: Jiri Bohac Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Andrew Morton Signed-off-by: John Stultz --- include/linux/printk

[RFC][PATCH 3/3] timekeeping: Use printk_deferred when holding timekeeping seqlock

2014-04-22 Thread John Stultz
Jiri Bohac pointed out that there are rare but potential deadlock possibilities when calling printk while holding the timekeeping seqlock. This is due to printk() triggering console sem wakeup, which can cause scheduling code to trigger hrtimers which may try to read the time. Specifically, as Ji

[RFC][PATCH 0/3] Convert timekeeping core to use printk_deferred

2014-04-22 Thread John Stultz
Jiri pointed out a potential deadlock when calling printk while holding the timekeeping seqlock. Annoyingly, the seqlock lockdep enablement doesn't catch this, as printk disables lockdep. When looking for possible solutions, one idea was to use a local buffer and defer the printk to later. Ends u

[RFC][PATCH 1/3] printk: Rename printk_sched to printk_deferred

2014-04-22 Thread John Stultz
After learning we'll need some sort of deferred printk functionality in the timekeeping core, Peter suggested we rename the printk_sched function so it can be reused by needed subsystems. This only changes the function name and name of the associated buffer. No logic changes. Cc: Jan Kara Cc: Pe

[perf] yet another 32/64-bit range check failure

2014-04-22 Thread Vince Weaver
More fun found by the perf_fuzzer... In kernel/events/core.c SYSCALL_DEFINE5(perf_event_open, We check if flags is valid like this: /* for future expandability... */ if (flags & ~PERF_FLAG_ALL) return -EINVAL; but flags is a 64-bit value but ~PERF_FLAG_ALL is 3

Re: [PATCH 09/10] staging: rtl8188eu: Remove unused enum LED_STATE_871x members.

2014-04-22 Thread navin patidar
dan, It is ok to rearrange and remove members of enum LED_STATE_871x and enum LED_CTL_MODE. these enum are not related to firmware . regards, --navin-patidar On Tue, Apr 22, 2014 at 4:05 PM, Dan Carpenter wrote: > It's ok to renumber all of these? It's not something the firmware will > care a

Re: [PATCH 20/28] nios2: Time keeping

2014-04-22 Thread Ley Foon Tan
On Tue, Apr 22, 2014 at 9:44 PM, Arnd Bergmann wrote: > On Friday 18 April 2014, Ley Foon Tan wrote: >> +static inline unsigned long read_timersnapshot(void) >> +{ >> + unsigned long count; >> + >> + outw(0, timer_membase + ALTERA_TIMER_SNAPL_REG); >> + count = >> +

Re: [PATCH 2/6] netlink: have netlink per-protocol bind function return an error code.

2014-04-22 Thread Richard Guy Briggs
On 14/04/22, David Miller wrote: > From: Richard Guy Briggs > Date: Fri, 18 Apr 2014 13:34:06 -0400 > > > @@ -1449,6 +1453,26 @@ static int netlink_bind(struct socket *sock, struct > > sockaddr *addr, > > if (!nladdr->nl_groups && (nlk->groups == NULL || !(u32)nlk->groups[0])) > >

Re: [PATCH] sysfs, device-tree: aid for debugging device tree boot problems

2014-04-22 Thread Greg Kroah-Hartman
On Tue, Apr 22, 2014 at 06:25:25PM -0700, Frank Rowand wrote: > Create some infrastructure to aid trouble shooting device tree related > boot issues. > > Add a %driver_name file to each device tree node sysfs directory which has had > a driver bound to it. This allows detecting device tree nodes

Re: [PATCH] zram: correct offset usage in zram_bio_discard

2014-04-22 Thread Joonsoo Kim
On Wed, Apr 23, 2014 at 10:32:30AM +0800, Weijie Yang wrote: > On Wed, Apr 23, 2014 at 3:55 AM, Andrew Morton > wrote: > > On Tue, 22 Apr 2014 11:14:02 +0800 Weijie Yang > > wrote: > > > >> we want to skip the logical block which is partially covered by > >> the discard bio, so check the remaini

  1   2   3   4   5   6   7   8   9   10   >