[PATCH] bitmap: Fix undefined shift in __bitmap_shift_{left|right}()

2014-10-22 Thread Jan Kara
If __bitmap_shift_left() or __bitmap_shift_right() are asked to shift by a multiple of BITS_PER_LONG, they will try to shift a long value by BITS_PER_LONG bits which is undefined. Change the functions to avoid the undefined shift. Coverity-id: 1192175 Coverity-id: 1192174 CC: Rasmus Villemoes

Re: [PATCH] bitmap: Fix undefined shift in __bitmap_shift_left()

2014-10-22 Thread Jan Kara
On Wed 22-10-14 14:43:51, Jan Kara wrote: > It __bitmap_shift_left() is asked to shift by a multiple of > BITS_PER_LONG, it will try to shift a long value by BITS_PER_LONG bits > which is undefined. Change the function to take this into account. > > Coverity-id: 1192175 > CC: Rasmus Villemoes >

[PATCH V2] tty: serial: omap: Increase max consoles and add check to prevent crash

2014-10-22 Thread Nishanth Menon
Increase the maximum number of consoles possible to 10 since DRA7 now has the maximum number of consoles possible. without doing this, for example, enabling DRA7 UART10 results in internal data structures and console cannot match up and we endup with a crash as follows: [1.903503] omap_uart

[PATCH] bitmap: Fix undefined shift in __bitmap_shift_left()

2014-10-22 Thread Jan Kara
It __bitmap_shift_left() is asked to shift by a multiple of BITS_PER_LONG, it will try to shift a long value by BITS_PER_LONG bits which is undefined. Change the function to take this into account. Coverity-id: 1192175 CC: Rasmus Villemoes CC: sta...@vger.kernel.org Signed-off-by: Jan Kara ---

Re: [PATCH v2 1/2] timekeeping: add EXPORT_SYMBOL_GPL for do_adjtimex()

2014-10-22 Thread Thomas Gleixner
On Wed, 22 Oct 2014, Mike Surcouf wrote: > I get that NTP can be installed locally. This is how I regulate time > on my guests. I agree the admin argument probably doesn't stand up. > > The problem is hyperv_clocksource (pluggable time source used by > hyperv guests) is systematically fast in

Re: [PATCH] memcg: remove mem_cgroup_reclaimable check from soft reclaim

2014-10-22 Thread Johannes Weiner
On Wed, Oct 22, 2014 at 01:21:16PM +0200, Michal Hocko wrote: > On Tue 21-10-14 14:22:39, Johannes Weiner wrote: > [...] > > From 27bd24b00433d9f6c8d60ba2b13dbff158b06c13 Mon Sep 17 00:00:00 2001 > > From: Johannes Weiner > > Date: Tue, 21 Oct 2014 09:53:54 -0400 > > Subject: [patch] mm:

Re: [PATCH v5 02/20] perf: Add AUX area to ring buffer for raw data streams

2014-10-22 Thread Peter Zijlstra
On Mon, Oct 13, 2014 at 04:45:30PM +0300, Alexander Shishkin wrote: > + struct kref aux_refcount; I'm not a fan of kref, pointless obfuscation that. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [RFC][PATCH 0/6] Another go at speculative page faults

2014-10-22 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Tue, Oct 21, 2014 at 06:23:40PM +0200, Ingo Molnar wrote: > > > > * Peter Zijlstra wrote: > > > > > My Ivy Bridge EP (2*10*2) has a ~58% improvement in pagefault throughput: > > > > > > PRE: > > >149,441,555 page-faults ( +- 1.25%

[PATCH] asus-nb-wmi: Add wapf4 quirk for the X550VB

2014-10-22 Thread Stanislaw Gruszka
As reported here: http://bugzilla.redhat.com/show_bug.cgi?id=1089731#c23 the X550VB needs wapf=4 too. Signed-off-by: Stanislaw Gruszka --- drivers/platform/x86/asus-nb-wmi.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/platform/x86/asus-nb-wmi.c

Re: [PATCH resend] ARM: perf: remove useless return and check of idx in counter handling

2014-10-22 Thread Mark Rutland
On Wed, Oct 22, 2014 at 01:16:49PM +0100, chai wen wrote: > Idx sanity check was once implemented separately in these counter > handling functions and then return value was treated as a judgement. > armv7_pmnc_select_counter() > armv7_pmnc_enable_counter() >

Re: [PATCH v2 06/12] perf/x86: implement cross-HT corruption bug workaround

2014-10-22 Thread Jiri Olsa
On Thu, Oct 09, 2014 at 06:34:40PM +0200, Stephane Eranian wrote: > From: Maria Dimakopoulou SNIP > +static struct event_constraint * > +intel_get_excl_constraints(struct cpu_hw_events *cpuc, struct perf_event > *event, > +int idx, struct event_constraint *c) > +{ > +

Re: [PATCHv5 7/7] usb: dwc2: Update Kconfig to support dual-role

2014-10-22 Thread Bartlomiej Zolnierkiewicz
On Wednesday, October 22, 2014 02:25:46 PM Bartlomiej Zolnierkiewicz wrote: > BTW It is a bit late but it would be great if you could split your > patchset on two. First one merging gadget functionality into > core/platform code and the second one adding USB_DWC2_DUAL_ROLE > functionality. On

Re: [PATCH] i8k: Ignore temperature sensors which report invalid values

2014-10-22 Thread Pali Rohár
On Tuesday 21 October 2014 06:27:23 Guenter Roeck wrote: > On 10/20/2014 09:46 AM, Pali Rohár wrote: > > Ok, I will describe my problem. Guenter, maybe you can find > > another solution/fix for it. > > > > Calling i8k_get_temp(3) on my laptop without > > I8K_TEMPERATURE_BUG always returns value

Re: [PATCH] x86, kexec: Add .gitignore file

2014-10-22 Thread Prarit Bhargava
On 10/22/2014 08:15 AM, Prarit Bhargava wrote: > > > On 10/10/2014 07:47 PM, Shuah Khan wrote: >> On Fri, Oct 10, 2014 at 4:55 PM, Prarit Bhargava wrote: >>> When doing git-status there are two untracked files: >>> >>> \# Untracked files: >>> \# (use "git add ..." to include in what will be

Re: [PATCHv5 7/7] usb: dwc2: Update Kconfig to support dual-role

2014-10-22 Thread Bartlomiej Zolnierkiewicz
Hi, On Monday, October 20, 2014 01:52:06 PM dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > Update DWC2 kconfig and makefile to support dual-role mode. The platform > file will always get compiled for the case where the controller is directly > connected to the CPU. So for

Re: [PATCH] tty: serial: omap: increase max consoles to 10

2014-10-22 Thread Nishanth Menon
On 10:03-20141022, Sebastian Andrzej Siewior wrote: > On 10/21/2014 06:23 PM, Nishanth Menon wrote: > > > > The final solution is to transition off to use 8250 driver and no > > dependency on console structures and move away from omap-serial driver, > > hence

Re: Regression in i915 intel_panel_setup_backligh

2014-10-22 Thread Jani Nikula
[This is in reply to https://lkml.org/lkml/2014/10/3/415 - I just don't have the message to reply to.] Daniel, the bug you describe is likely [1]. We're on it. Thanks, Jani. [1] https://bugzilla.kernel.org/show_bug.cgi?id=86551 -- Jani Nikula, Intel Open Source Technology Center -- To

[PATCH resend] ARM: perf: remove useless return and check of idx in counter handling

2014-10-22 Thread chai wen
Idx sanity check was once implemented separately in these counter handling functions and then return value was treated as a judgement. armv7_pmnc_select_counter() armv7_pmnc_enable_counter() armv7_pmnc_disable_counter() armv7_pmnc_enable_intens()

Re: regression: checkpatch.pl fails when called via symlink

2014-10-22 Thread Joe Perches
On Wed, 2014-10-22 at 13:43 +0300, Jani Nikula wrote: > Since commit 66b47b4a9dad00e45c049d79966de9a3a1f4d337 > Author: Kees Cook > Date: Mon Oct 13 15:51:57 2014 -0700 > > checkpatch: look for common misspellings > > checkpatch.pl dies with > > checkpatch.pl: Can't open

Re: [RFC][PATCH 3/6] mm: VMA sequence count

2014-10-22 Thread Peter Zijlstra
On Wed, Oct 22, 2014 at 02:53:04PM +0300, Kirill A. Shutemov wrote: > Em, no. In this case change_protection() will not touch the pte, since > it's pte_none() and the pte_same() check will pass just fine. Oh, that's what you meant. Yes that's a problem, yes vm_page_prot needs wrapping too. -- To

Re: [PATCH] x86, kexec: Add .gitignore file

2014-10-22 Thread Prarit Bhargava
On 10/10/2014 07:47 PM, Shuah Khan wrote: > On Fri, Oct 10, 2014 at 4:55 PM, Prarit Bhargava wrote: >> When doing git-status there are two untracked files: >> >> \# Untracked files: >> \# (use "git add ..." to include in what will be committed) >> \# >> \#

Re: [RFC][PATCH] add pagesize field to /proc/pid/numa_maps

2014-10-22 Thread Petr Holasek
On Mon, 20 Oct 2014, David Rientjes wrote: > On Tue, 21 Oct 2014, Petr Holasek wrote: > > > There were some similar attempts to add vma's pagesize to numa_maps in the > > past, > > so I've distilled the most straightforward one - adding pagesize field > > expressing size in kbytes to each line.

[PATCHv5 0/3] syscalls,x86: Add execveat() system call

2014-10-22 Thread David Drysdale
This patch set adds execveat(2) for x86, and is derived from Meredydd Luff's patch from Sept 2012 (https://lkml.org/lkml/2012/9/11/528). The primary aim of adding an execveat syscall is to allow an implementation of fexecve(3) that does not rely on the /proc filesystem. The current glibc version

Re: [PATCH v7] mfd: syscon: Decouple syscon interface from platform devices

2014-10-22 Thread Lee Jones
On Wed, 22 Oct 2014, Pankaj Dubey wrote: > Hello Lee, > > On Tuesday, October 07, 2014 2:39 PM, Lee Jones wrote, > > On Tue, 30 Sep 2014, Pankaj Dubey wrote: > > > > > Currently a syscon entity can be only registered directly through a > > > platform device that binds to a dedicated syscon

[PATCHv5 man-pages 3/3] execveat.2: initial man page for execveat(2)

2014-10-22 Thread David Drysdale
Signed-off-by: David Drysdale --- man2/execveat.2 | 144 1 file changed, 144 insertions(+) create mode 100644 man2/execveat.2 diff --git a/man2/execveat.2 b/man2/execveat.2 new file mode 100644 index ..d19571a3eb9d ---

Re: [PATCH 0/4] (CMA_AGGRESSIVE) Make CMA memory be more aggressive about allocation

2014-10-22 Thread Peter Hurley
On 10/16/2014 04:55 AM, Laura Abbott wrote: > On 10/15/2014 8:35 PM, Hui Zhu wrote: >> In fallbacks of page_alloc.c, MIGRATE_CMA is the fallback of >> MIGRATE_MOVABLE. >> MIGRATE_MOVABLE will use MIGRATE_CMA when it doesn't have a page in >> order that Linux kernel want. >> >> If a system that has

[PATCH] staging: comedi: Kconfig: fix config COMEDI_ADDI_APCI_3120 dependants

2014-10-22 Thread Ian Abbott
A merge conflict between commits fbfd9c8a1782f33d7b67294b2a42587063e61c0c ("staging: comedi: addi_apci_3120: use dma_alloc_coherent()") and aff5b1f8eb71b64bb613dc64c50b6904e89f79b9 ("staging: comedi: remove comedi_fc module") left the COMEDI_ADDI_APCI_3120 config option depending on VIRT_TO_BUS

RE

2014-10-22 Thread MMA Open the attachment
AA D.pdf Description: Adobe PDF document

[PATCH v1 0/2] ARM: hip04: add GPIO support

2014-10-22 Thread Zhou Wang
This series add the support for the GPIOs of Hisilicon Soc hip04. Hip04 uses synopsis' GPIO IP, and we use the dwapb GPIO driver here. This series add the corresponding dts. As the hip04 basic dts has been merged in 3.18 mainline kernel, I just resend this patchset for review. Zhou Wang (2):

[PATCH v1 1/2] ARM: hip04: set ARCH_NR_GPIO to 128

2014-10-22 Thread Zhou Wang
Set ARCH_NR_GPIO for Hisilicon Soc Hip04, which has 4 GPIO controllers with 32 GPIOs each. Signed-off-by: Zhou Wang --- arch/arm/Kconfig |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 89c4b5c..26aae1e 100644 --- a/arch/arm/Kconfig +++

[PATCH v1 2/2] ARM: dts: hip04: add GPIO pieces

2014-10-22 Thread Zhou Wang
Hisilicon Soc hip04 has four GPIO controllers, each one has 32 GPIOs and can be configured to be an interrupt controller.The GPIO controllers are compatible with the snps,dw-apb-gpio driver. This patch add the corresponding device tree nodes. Signed-off-by: Zhou Wang ---

Re: [RFC][PATCH 0/6] Another go at speculative page faults

2014-10-22 Thread Kirill A. Shutemov
On Wed, Oct 22, 2014 at 01:45:58PM +0200, Peter Zijlstra wrote: > On Wed, Oct 22, 2014 at 02:29:25PM +0300, Kirill A. Shutemov wrote: > > On Wed, Oct 22, 2014 at 12:34:49AM -0700, Davidlohr Bueso wrote: > > > On Mon, 2014-10-20 at 23:56 +0200, Peter Zijlstra wrote: > > > > Hi, > > > > > > > > I

Re: [PATCHv4 RESEND 0/3] syscalls,x86: Add execveat() system call

2014-10-22 Thread Christoph Hellwig
[adding Rich Felker to the Cc list, who has been very interested in a O_SEARCH implementation for which this would be an important building block] On Fri, Oct 17, 2014 at 02:45:03PM -0700, Andy Lutomirski wrote: > [Added Eric Biederman, since I think your tree might be a reasonable > route

Re: [PATCHv4 RESEND 0/3] syscalls,x86: Add execveat() system call

2014-10-22 Thread Christoph Hellwig
On Wed, Oct 22, 2014 at 04:54:05AM -0700, Christoph Hellwig wrote: > [adding Rich Felker to the Cc list, who has been very interested in a > O_SEARCH implementation for which this would be an important building > block] s/O_SEARCH/O_EXEC/, sorry. -- To unsubscribe from this list: send the line

Re: [RFC][PATCH 3/6] mm: VMA sequence count

2014-10-22 Thread Kirill A. Shutemov
On Wed, Oct 22, 2014 at 01:39:51PM +0200, Peter Zijlstra wrote: > On Wed, Oct 22, 2014 at 02:26:57PM +0300, Kirill A. Shutemov wrote: > > On Mon, Oct 20, 2014 at 11:56:36PM +0200, Peter Zijlstra wrote: > > > Wrap the VMA modifications (vma_adjust/unmap_page_range) with sequence > > > counts such

Re: [PATCH v2 2/4] phy: exynos5-usbdrd: Add pipe-clk and utmi-clk support

2014-10-22 Thread Kishon Vijay Abraham I
Hi, On Tuesday 07 October 2014 03:49 PM, Vivek Gautam wrote: > Exynos7 SoC has now separate gate control for 125MHz pipe3 phy > clock, as well as 60MHz utmi phy clock. > So get the same and control in the phy-exynos5-usbdrd driver. > > Signed-off-by: Vivek Gautam > --- >

[PATCHv5 2/3] syscalls,x86: add selftest for execveat(2)

2014-10-22 Thread David Drysdale
Signed-off-by: David Drysdale --- tools/testing/selftests/Makefile| 1 + tools/testing/selftests/exec/.gitignore | 6 + tools/testing/selftests/exec/Makefile | 22 +++ tools/testing/selftests/exec/execveat.c | 295 4 files changed, 324

[PATCHv5 1/3] syscalls,x86: implement execveat() system call

2014-10-22 Thread David Drysdale
Add a new system execveat(2) syscall. execveat() is to execve() as openat() is to open(): it takes a file descriptor that refers to a directory, and resolves the filename relative to that. In addition, if the filename is empty and AT_EMPTY_PATH is specified, execveat() executes the file to which

Re: [RFC][PATCH 0/6] Another go at speculative page faults

2014-10-22 Thread Peter Zijlstra
On Wed, Oct 22, 2014 at 02:29:25PM +0300, Kirill A. Shutemov wrote: > On Wed, Oct 22, 2014 at 12:34:49AM -0700, Davidlohr Bueso wrote: > > On Mon, 2014-10-20 at 23:56 +0200, Peter Zijlstra wrote: > > > Hi, > > > > > > I figured I'd give my 2010 speculative fault series another spin: > > > > > >

RE: [alsa-devel] [PATCH] ASoC: atmel_ssc_dai: Track playback and capture CMR dividers separately.

2014-10-22 Thread Peter Rosin
Bo Chen wrote: > with this piece of code, I reproduce your issue. > > Now, I know the reason of this issue, work in oss mode, it will set the > default > clock to 8KHz, and then if change to other sample rate, for example 48KHz, > the div is different, then it reports -EBUSY. Indeed. > So, I

Re: [RFC][PATCH 3/6] mm: VMA sequence count

2014-10-22 Thread Peter Zijlstra
On Wed, Oct 22, 2014 at 02:26:57PM +0300, Kirill A. Shutemov wrote: > On Mon, Oct 20, 2014 at 11:56:36PM +0200, Peter Zijlstra wrote: > > Wrap the VMA modifications (vma_adjust/unmap_page_range) with sequence > > counts such that we can easily test if a VMA is changed. > > > > The

Re: lockdep splat in CPU hotplug

2014-10-22 Thread Jiri Kosina
On Wed, 22 Oct 2014, Jiri Kosina wrote: > Still, the lockdep stacktrace is bogus and didn't really help > understanding this. Any idea why it's wrong? > > > == > > [ INFO: possible circular locking dependency detected ] > >

Re: [PATCH] mfd: max77693: Fix a truncate warning

2014-10-22 Thread Lee Jones
On Tue, 14 Oct 2014, Krzysztof Kozlowski wrote: > Fix warning on x86_64, make allyesconfig: > > drivers/mfd/max77693.c: In function ‘max77693_i2c_probe’: > drivers/mfd/max77693.c:259:5: warning: large integer implicitly truncated to > unsigned type [-Woverflow] > SRC_IRQ_ALL,

Re: [PATCH fixes v2] mfd: max77693: Fix always masked MUIC interrupts

2014-10-22 Thread Lee Jones
On Wed, 22 Oct 2014, Krzysztof Kozlowski wrote: > On pią, 2014-10-10 at 11:56 +0100, Lee Jones wrote: > > On Fri, 10 Oct 2014, Krzysztof Kozlowski wrote: > > > > > All interrupts coming from MUIC were ignored because interrupt source > > > register was masked. > > > > > > The Maxim 77693 has a

[PATCH v6 0/7] ARM: kprobes: enable OPTPROBES for ARM 32.

2014-10-22 Thread Wang Nan
Previous 5 version of ARM OPTPROBES patches are unable to deal with stack storing instructions correctly. V5 patches disallow optimizing every protential stack store instructions based on pessimistic assumption. Which, as Tixy comments, 'excludes the main use of kprobes'.

[PATCH v6 3/7] ARM: kprobes: introduces checker

2014-10-22 Thread Wang Nan
This patch introdces a 'checker' field to decode_action, and calls checkers when instruction decoding. This allows further analysis for specific instructions. Signed-off-by: Wang Nan --- arch/arm/kernel/probes.c | 10 ++ arch/arm/kernel/probes.h | 10 -- 2 files changed, 18

[PATCH v6 7/7] ARM: kprobes: enable OPTPROBES for ARM 32

2014-10-22 Thread Wang Nan
This patch introduce kprobeopt for ARM 32. Limitations: - Currently only kernel compiled with ARM ISA is supported. - Offset between probe point and optinsn slot must not larger than 32MiB. Masami Hiramatsu suggests replacing 2 words, it will make things complex. Futher patch can make

[PATCH v6 5/7] ARM: kprobes: disallow probing stack consuming instructions

2014-10-22 Thread Wang Nan
This patch prohibit probing instructions for which the stack requirement are unable to be determined statically. Some test cases are found not work again after the modification, this patch also removes them. Signed-off-by: Wang Nan --- arch/arm/kernel/kprobes-test-arm.c | 16 ++--

[patch] rtc: bq3000: fix register value

2014-10-22 Thread Pavel Machek
Fix register value in bq32000 trickle charging. Mike reported that I'm using wrong value in one trickle-charging case, and after checking docs, I must admit he's right. Signed-off-by: Pavel Machek Reported-by: Mike Bremford diff --git a/drivers/rtc/rtc-bq32k.c b/drivers/rtc/rtc-bq32k.c

[PATCH v6 4/7] ARM: kprobes: collects stack consumption for store instructions

2014-10-22 Thread Wang Nan
This patch use previous introduced checker on store instructions, record stack consumption informations to arch_probes_insn. With such information, kprobe opt can decide how much stack needs to be protected. Signed-off-by: Wang Nan --- arch/arm/include/asm/probes.h | 1 +

[PATCH v6 1/7] ARM: kprobes: replace 'union decode_action' to 'struct decode_action'

2014-10-22 Thread Wang Nan
This patch is generated simply using: $ sed -i "s/union decode_action/struct decode_action/g" `grep decode_action * -rl` Which allows futher expansion to decode_action. Signed-off-by: Wang Nan --- arch/arm/kernel/kprobes-arm.c | 2 +- arch/arm/kernel/kprobes-thumb.c | 4 ++--

[PATCH v6 2/7] ARM: kprobes: seprates load and store actions

2014-10-22 Thread Wang Nan
This patch seprates actions for load and store. Following patches will check store instructions for more informations. Coverage test complains register test coverage missing after this sepration. This patch introduces one testcase for it. Signed-off-by: Wang Nan ---

[PATCH v6 6/7] kprobes: copy ainsn after alloc aggr kprobe

2014-10-22 Thread Wang Nan
Copy old kprobe to newly alloced optimized_kprobe before arch_prepare_optimized_kprobe(). Original kprove can brings more information to optimizer. v1 -> v2: - Bugfix: copy p->addr when alloc_aggr_kprobe. Signed-off-by: Wang Nan --- kernel/kprobes.c | 6 ++ 1 file changed, 6

Re: [PATCH 1/2] ARM: perf: armv7 remove useless return and check of idx in counter handling

2014-10-22 Thread Chai Wen
On 10/22/2014 06:47 PM, Mark Rutland wrote: > Hi, > > On Wed, Oct 22, 2014 at 09:21:46AM +0100, chai wen wrote: >> Idx sanity check was once implemented separately in these counter handling >> functions and then return value was treated as a judgement. >> armv7_pmnc_select_counter() >>

Re: [RFC][PATCH 0/6] Another go at speculative page faults

2014-10-22 Thread Kirill A. Shutemov
On Wed, Oct 22, 2014 at 12:34:49AM -0700, Davidlohr Bueso wrote: > On Mon, 2014-10-20 at 23:56 +0200, Peter Zijlstra wrote: > > Hi, > > > > I figured I'd give my 2010 speculative fault series another spin: > > > > https://lkml.org/lkml/2010/1/4/257 > > > > Since then I think many of the

Re: [RFC][PATCH 3/6] mm: VMA sequence count

2014-10-22 Thread Kirill A. Shutemov
On Mon, Oct 20, 2014 at 11:56:36PM +0200, Peter Zijlstra wrote: > Wrap the VMA modifications (vma_adjust/unmap_page_range) with sequence > counts such that we can easily test if a VMA is changed. > > The unmap_page_range() one allows us to make assumptions about > page-tables; when we find the

Re: [PATCH] Documentation: Fix a typo in mailbox.txt

2014-10-22 Thread Jonathan Corbet
On Wed, 22 Oct 2014 08:36:07 +0900 Masanari Iida wrote: > This patch fix a typo in Documentation/mailbox.txt > "bool async" is defined in struct demo_client. This seems worthy of application, but it makes me worry: clearly the example code in this file was not taken from a working file and has

Re: [PATCH 2/2] ARM: perf: armv7: wrap unsupported arch init functions via micro

2014-10-22 Thread Chai Wen
On 10/22/2014 07:01 PM, Mark Rutland wrote: > Hi, > > On Wed, Oct 22, 2014 at 09:21:47AM +0100, chai wen wrote: >> Signed-off-by: chai wen >> --- >> arch/arm/kernel/perf_event_v7.c | 52 >> +- >> 1 files changed, 13 insertions(+), 39 deletions(-) > > I'm

Re: [PATCH 10/15] media: davinci: vpbe: add support for VIDIOC_CREATE_BUFS

2014-10-22 Thread Hans Verkuil
Hi Prabhakar, This patch series looks good, except for this one. If you add create_bufs support, then you should also update queue_setup. If the fmt argument to queue_setup is non-NULL, then check that the fmt.pix.sizeimage field is >= the current format's sizeimage. If not, return -EINVAL.

[PATCH] watchdog: hpwdt: Fix initialization message in hpwdt.c

2014-10-22 Thread Masanari Iida
allow_kdump was enabled as default since following commit. commit a089361cf5f1d6a5295aa5385238bd044998e1e9, watchdog: hpwdt: Unregister NMI events on exit. But the initialization message was not modified. So it still shows HP Watchdog Timer Driver: NMI decoding initialized, allow kernel

Re: [PATCH v2 2/3] ARM: keystone: pm: switch to use generic pm domains

2014-10-22 Thread Grygorii Strashko
Hi Santosh, On 10/21/2014 09:05 PM, Santosh Shilimkar wrote: > On 10/20/2014 05:56 AM, Grygorii Strashko wrote: >> This patch switches Keystone 2 PM code to use Generic PM domains >> instead of PM clock domains because of the lack of DT support >> for the last. >> >> Reviewed-by: Kevin Hilman >>

Re: [PATCH v2 36/47] arm64: psci: Register with kernel poweroff handler

2014-10-22 Thread Catalin Marinas
On Tue, Oct 21, 2014 at 05:12:52AM +0100, Guenter Roeck wrote: > Register with kernel poweroff handler instead of setting pm_power_off > directly. > > Cc: Catalin Marinas > Cc: Will Deacon > Signed-off-by: Guenter Roeck Acked-by: Catalin Marinas -- To unsubscribe from this list: send the

Re: [PATCH] memcg: remove mem_cgroup_reclaimable check from soft reclaim

2014-10-22 Thread Michal Hocko
On Tue 21-10-14 14:22:39, Johannes Weiner wrote: [...] > From 27bd24b00433d9f6c8d60ba2b13dbff158b06c13 Mon Sep 17 00:00:00 2001 > From: Johannes Weiner > Date: Tue, 21 Oct 2014 09:53:54 -0400 > Subject: [patch] mm: memcontrol: do not filter reclaimable nodes in NUMA > round-robin > > The

Re: [PATCHv5 2/7] usb: dwc2: Move gadget probe function into platform code

2014-10-22 Thread Bartlomiej Zolnierkiewicz
Hi, On Monday, October 20, 2014 01:52:01 PM dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > This patch will aggregate the probing of gadget/hcd driver into platform.c. > The gadget probe funtion is converted into gadget_init that is now only > responsible for gadget only

Re: [RFC PATCH] UBSan: run-time undefined behavior sanity checker

2014-10-22 Thread Andrey Ryabinin
On 10/22/2014 01:58 PM, Rasmus Villemoes wrote: > On Mon, Oct 20 2014, Andrey Ryabinin wrote: > >> UBSan uses compile-time instrumentation to catch undefined behavior (UB). >> Compiler inserts code that perform certain kinds of >> checks before operations that could cause UB. >> If check fails

[PATCH v3 0/4] mm: new function to forbid zeropage mappings for a process

2014-10-22 Thread Dominik Dingel
s390 has the special notion of storage keys which are some sort of page flags associated with physical pages and live outside of direct addressable memory. These storage keys can be queried and changed with a special set of instructions. The mentioned instructions behave quite nicely under

[PATCH 3/4] s390/mm: prevent and break zero page mappings in case of storage keys

2014-10-22 Thread Dominik Dingel
As soon as storage keys are enabled we need to stop working on zero page mappings to prevent inconsistencies between storage keys and pgste. Otherwise following data corruption could happen: 1) guest enables storage key 2) guest sets storage key for not mapped page X -> change goes to PGSTE 3)

[PATCH 2/4] mm: introduce mm_forbids_zeropage function

2014-10-22 Thread Dominik Dingel
Add a new function stub to allow architectures to disable for an mm_structthe backing of non-present, anonymous pages with read-only empty zero pages. Signed-off-by: Dominik Dingel --- include/linux/mm.h | 4 mm/huge_memory.c | 2 +- mm/memory.c| 2 +- 3 files changed, 6

Re: [PATCH 00/12] rtc: omap: fixes and power-off feature

2014-10-22 Thread Johan Hovold
On Sat, Oct 11, 2014 at 12:08:18PM -0700, Tony Lindgren wrote: > * Johan Hovold [141011 02:42]: > > On Fri, Oct 10, 2014 at 12:54:22PM -0500, Felipe Balbi wrote: > > > > > > is this power-off feature "RTC-only mode" ? > > > > Yes, I believe so, at least as long as RTC power is maintained. The >

[PATCH 4/4] s390/mm: disable KSM for storage key enabled pages

2014-10-22 Thread Dominik Dingel
When storage keys are enabled unmerge already merged pages and prevent new pages from being merged. Signed-off-by: Dominik Dingel Acked-by: Christian Borntraeger --- arch/s390/include/asm/pgtable.h | 2 +- arch/s390/kvm/priv.c| 17 - arch/s390/mm/pgtable.c

[PATCH 1/4] s390/mm: recfactor global pgste updates

2014-10-22 Thread Dominik Dingel
Replace the s390 specific page table walker for the pgste updates with a call to the common code walk_page_range function. There are now two pte modification functions, one for the reset of the CMMA state and another one for the initialization of the storage keys. Signed-off-by: Dominik Dingel

Re: [PATCHv4 RESEND 0/3] syscalls,x86: Add execveat() system call

2014-10-22 Thread David Drysdale
On Tue, Oct 21, 2014 at 5:29 AM, Eric W. Biederman wrote: > Andy Lutomirski writes: > >> On Mon, Oct 20, 2014 at 6:48 AM, David Drysdale wrote: >>> On Sun, Oct 19, 2014 at 1:20 AM, Eric W. Biederman >>> wrote: Andy Lutomirski writes: > [Added Eric Biederman, since I think your

RE: [PATCH v7] mfd: syscon: Decouple syscon interface from platform devices

2014-10-22 Thread Pankaj Dubey
Hello Lee, On Tuesday, October 07, 2014 2:39 PM, Lee Jones wrote, > On Tue, 30 Sep 2014, Pankaj Dubey wrote: > > > Currently a syscon entity can be only registered directly through a > > platform device that binds to a dedicated syscon driver. However in > > certain use cases it is desirable to

Re: [PATCH 00/19] MIPS GIC cleanup, part 2

2014-10-22 Thread Qais Yousef
On 10/20/2014 08:03 PM, Andrew Bresticker wrote: Second round of cleanups for the MIPS GIC drivers: - Patches 1 through 5 get rid of the ugly REG() macros and instead use proper iomem accessors. - Patches 6 and 7 move the GIC header to linux/irqchip/ and clean it up. - Patches 8

Re: [PATCH 2/2] ARM: perf: armv7: wrap unsupported arch init functions via micro

2014-10-22 Thread Mark Rutland
Hi, On Wed, Oct 22, 2014 at 09:21:47AM +0100, chai wen wrote: > Signed-off-by: chai wen > --- > arch/arm/kernel/perf_event_v7.c | 52 +- > 1 files changed, 13 insertions(+), 39 deletions(-) I'm currently in the process of decoupling

Re: [PATCH v2 1/2] timekeeping: add EXPORT_SYMBOL_GPL for do_adjtimex()

2014-10-22 Thread Mike Surcouf
I get that NTP can be installed locally. This is how I regulate time on my guests. I agree the admin argument probably doesn't stand up. The problem is hyperv_clocksource (pluggable time source used by hyperv guests) is systematically fast in my environment. by around -250 PPM. I get away with

Re: [PATCH 08/12] rtc: omap: restore irq state after reading TC registers

2014-10-22 Thread Johan Hovold
On Sat, Oct 11, 2014 at 07:47:58PM -0500, Felipe Balbi wrote: > On Sat, Oct 11, 2014 at 12:12:01PM +0200, Johan Hovold wrote: > > On Fri, Oct 10, 2014 at 01:02:31PM -0500, Felipe Balbi wrote: > > > Hi, > > > > > > On Thu, Oct 09, 2014 at 09:06:30PM +0200, Johan Hovold wrote: > > > > Make sure to

Re: [PATCH] dell-wmi: Update code for processing WMI events

2014-10-22 Thread Pali Rohár
On Tuesday 21 October 2014 23:32:12 Darren Hart wrote: > On Tue, Oct 21, 2014 at 12:15:24AM +0200, Pali Rohár wrote: > > WMI buffer can contains more events. First value in buffer > > is length of event followed by data of specified length. > > After that is next length and next data. When length

Re: [PATCH v3] ASoC: rockchip-i2s: add MAX98090 support to Kconfig

2014-10-22 Thread Mark Brown
On Wed, Oct 22, 2014 at 10:59:59AM +0800, Jianqun wrote: > +config SND_SOC_MAX98090 > + tristate "ASoC support for max98090 driver" > + depends on I2C && GPIOLIB > + help > + Say Y or M here if you want to add support for max98090 codec. No, you're missing what Lars was saying

Re: [PATCH 1/2] ARM: perf: armv7 remove useless return and check of idx in counter handling

2014-10-22 Thread Mark Rutland
Hi, On Wed, Oct 22, 2014 at 09:21:46AM +0100, chai wen wrote: > Idx sanity check was once implemented separately in these counter handling > functions and then return value was treated as a judgement. > armv7_pmnc_select_counter() > armv7_pmnc_enable_counter() >

regression: checkpatch.pl fails when called via symlink

2014-10-22 Thread Jani Nikula
Since commit 66b47b4a9dad00e45c049d79966de9a3a1f4d337 Author: Kees Cook Date: Mon Oct 13 15:51:57 2014 -0700 checkpatch: look for common misspellings checkpatch.pl dies with checkpatch.pl: Can't open /path/to/spelling.txt for reading: No such file or directory if it's called through a

[no subject]

2014-10-22 Thread OUTLOOK 2014 Award winner
Open the attached file and view the information OUTLOOK AWARD OUTLOOK AWARD.doc Description: MS-Word document

Re: [PATCH 3/4] s390/mm: prevent and break zero page mappings in case of storage keys

2014-10-22 Thread Dominik Dingel
On Wed, 22 Oct 2014 12:09:31 +0200 Paolo Bonzini wrote: > On 10/22/2014 10:30 AM, Dominik Dingel wrote: > > As use_skey is already the condition on which we call s390_enable_skey > > we need to introduce a new flag for the mm->context on which we decide > > if zero page mapping is allowed. > >

Re: [RESEND PATCH 3/3 v5] sched: Remove task and group entity load_avg when they are dead

2014-10-22 Thread Peter Zijlstra
On Fri, Oct 10, 2014 at 10:21:57AM +0800, Yuyang Du wrote: > When task exits or group is destroyed, the entity's load_avg should be > removed from its parent cfs_rq's load_avg. Otherwise, it will take time > for the parent cfs_rq to decay the dead entity's load_avg to 0, which > is not desired.

Re: [RESEND PATCH 2/3 v5] sched: Rewrite per entity runnable load average tracking

2014-10-22 Thread Peter Zijlstra
So I would really like to hear from others on this, as it stands I tend to rather like this code -- and it removes a fair amount of icky lines of code. That said, it does change semantics slightly in that it removes the blocked/runnable split and last time we added the blocked component to the

Re: [PATCH 0/5] iommu/vt-d: Fix crash dump failure caused by legacy DMA/IO

2014-10-22 Thread Baoquan He
On 10/22/14 at 10:22am, Li, Zhen-Hua wrote: > > Hi Baoquan, > I tested it on 3.17, it does not have these faults. There are little > differences between this version and Bill's last version. > > I will test it on 3.18.0-rc1+ on my system and let you know the result. > > And could you send me

Re: [RESUBMIT PATCH v4 7/8] regulator: sky81452: Add compatible string for device binding

2014-10-22 Thread Mark Brown
On Mon, Oct 20, 2014 at 03:10:24PM +0900, Gyungoh Yoo wrote: > On Fri, Oct 17, 2014 at 04:26:05PM +0200, Mark Brown wrote: > > The thing I'm seeing is that the binding for your device with the > > subnode looks very much like the device trees of devices with multiple > > regulators. The fact

Re: [PATCH 00/12] rtc: omap: fixes and power-off feature

2014-10-22 Thread Johan Hovold
On Wed, Oct 15, 2014 at 12:08:32PM -0500, Felipe Balbi wrote: > On Wed, Oct 15, 2014 at 07:06:28PM +0200, Johan Hovold wrote: > > On Wed, Oct 15, 2014 at 11:55:02AM -0500, Felipe Balbi wrote: > > > BTW, how do you test this series ? > > > > Set a 30 second wakealarm using the sysfs attribute of

Re: [PATCH v3 1/5] perf/sdt: ELF support for SDT

2014-10-22 Thread Hemant Kumar
On 10/22/2014 08:09 AM, Namhyung Kim wrote: Hi Hemant, On Fri, 10 Oct 2014 16:27:53 +0530, Hemant Kumar wrote: This patch serves the initial support to identify and list SDT events in binaries. When programs containing SDT markers are compiled, gcc with the help of assembler directives

Re: [PATCH 0/5] iommu/vt-d: Fix crash dump failure caused by legacy DMA/IO

2014-10-22 Thread Li, Zhen-Hua
Hi Baoquan, I tested it on 3.17, it does not have these faults. There are little differences between this version and Bill's last version. I will test it on 3.18.0-rc1+ on my system and let you know the result. And could you send me the result of "lspci -vvv " on your system? Thanks Zhenhua

Re: [PATCH 09/12] rtc: omap: add support for pmic_power_en

2014-10-22 Thread Johan Hovold
On Fri, Oct 10, 2014 at 01:07:27PM -0500, Felipe Balbi wrote: > On Thu, Oct 09, 2014 at 09:06:31PM +0200, Johan Hovold wrote: > > - /* clear pending irqs, and set 1/second periodic, > > -* which we'll use instead of update irqs > > + /* > > +* disable interrupts > > +* > > +*

Re: [3.16.1 BISECTED REGRESSION]: Simtec Entropy Key (cdc-acm) broken in 3.16

2014-10-22 Thread Johan Hovold
On Wed, Oct 22, 2014 at 10:31:17AM +0100, Nix wrote: > On 14 Oct 2014, Johan Hovold verbalised: > > > On Sun, Oct 12, 2014 at 10:36:30PM +0100, Nix wrote: > >> I have checked: this code is being executed against a symlink that > >> points to /dev/ttyACM0, and the tcsetattr() succeeds. (At least,

Re: [PATCH] KVM: x86: Enable Intel AVX-512 for guest

2014-10-22 Thread Paolo Bonzini
On 10/22/2014 11:35 AM, Chao Peng wrote: > Expose Intel AVX-512 feature bits to guest. Also add checks for > xcr0 AVX512 related bits according to spec: > http://download-software.intel.com/sites/default/files/managed/71/2e/319433-017.pdf > > Signed-off-by: Chao Peng The patch looks good, but

Re: [PATCH V2] kernel, add bug_on_warn

2014-10-22 Thread Prarit Bhargava
On 10/22/2014 12:27 AM, Rusty Russell wrote: > Prarit Bhargava writes: >> There have been several times where I have had to rebuild a kernel to >> cause a panic when hitting a WARN() in the code in order to get a crash >> dump from a system. Sometimes this is easy to do, other times (such as

Re: [PATCH 3/4] s390/mm: prevent and break zero page mappings in case of storage keys

2014-10-22 Thread Paolo Bonzini
On 10/22/2014 10:30 AM, Dominik Dingel wrote: > As use_skey is already the condition on which we call s390_enable_skey > we need to introduce a new flag for the mm->context on which we decide > if zero page mapping is allowed. Can you explain better why "mm->context.use_skey = 1" cannot be done

Re: [PATCH 0/5] iommu/vt-d: Fix crash dump failure caused by legacy DMA/IO

2014-10-22 Thread Baoquan He
Hi Zhenhua, I tested your latest patch on 3.18.0-rc1+, there are still some dmar errors. I remember it worked well with Bill's original patchset. 0console [earlya[0.00] allocate tes of page_cg 'a ong[ 0.00] tsc: Fast TSC calibration using PIT 0031] Calibrating delay loop (skipped),

Re: [tpmdd-devel] [PATCH] tpm: fix multiple race conditions in tpm_ppi.c

2014-10-22 Thread Jarkko Sakkinen
On Tue, Oct 21, 2014 at 03:02:15PM -0600, Jason Gunthorpe wrote: > On Tue, Oct 21, 2014 at 11:42:51PM +0300, Jarkko Sakkinen wrote: > > > > Personally, I'd sequence this commit right after your 'tpm: two-phase > > > chip management functions' commit because it makes it much saner (no > > > half

Re: [PATCH] sysctl: terminate strings also on \r

2014-10-22 Thread Aaron Tomlin
On Tue, Oct 21, 2014 at 01:21:37PM -0700, Kees Cook wrote: > From: Paul Wise > > This partially mitigates a common strategy used by attackers for hiding > the full contents of strings in procfs from naive sysadmins who use cat, > more or sysctl to inspect the contents of strings in procfs. > >

Re: [RESEND PATCH 2/3 v5] sched: Rewrite per entity runnable load average tracking

2014-10-22 Thread Peter Zijlstra
On Fri, Oct 10, 2014 at 10:21:56AM +0800, Yuyang Du wrote: > +/* Group cfs_rq's load_avg is used for task_h_load and update_cfs_share */ > +static inline int update_cfs_rq_load_avg(u64 now, struct cfs_rq *cfs_rq) > { > + int decayed; > > + if (atomic_long_read(_rq->removed_load_avg)) {

[PATCH v6 2/4] pinctrl: Device tree bindings for Qualcomm PMIC MPP block

2014-10-22 Thread Ivan T. Ivanov
DeviceTree binding documentation for Qualcomm SPMI PMIC MPP pinctrl drivers. Signed-off-by: Ivan T. Ivanov Acked-by: Bjorn Andersson --- .../devicetree/bindings/pinctrl/qcom,pmic-mpp.txt | 162 + include/dt-bindings/pinctrl/qcom,pmic-mpp.h| 44 ++ 2 files

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