[PATCH] staging: lustre: replace static value with define

2014-12-05 Thread Tristan Lelong
This patch replace the value '80' used in several files in the lustre source code with a define LUSTRE_MDT_MAXNAMELEN. This value is used in 4 different structures as the maximum len for a service name. According to the comments, these names follow a convention which make it possible to use

Re: [PATCH v5 0/6] fix hw_random stuck

2014-12-05 Thread Herbert Xu
On Sat, Dec 06, 2014 at 12:16:36PM +0800, Amos Kong wrote: > When I hotunplug a busy virtio-rng device or try to access > hwrng attributes in non-smp guest, it gets stuck. Please resend these via the linux-crypto mailing list so they can be picked up by patchwork. Thanks, -- Email: Herbert Xu

[PATCH v2] staging: lustre: fix sparse warning on LPROC_SEQ_FOPS macros

2014-12-05 Thread Tristan Lelong
This patch fix a sparse warning in lustre sources warning: incorrect type in argument 1 (different address spaces) expected void [noderef] *to got char * This is done by adding the missing __user attribute on userland pointers inside the LPROC_SEQ_FOPS like macros: - LPROC_SEQ_FOPS -

Re: Interested in bcache

2014-12-05 Thread Adam Brenner
On Fri, Dec 5, 2014 at 6:55 PM, Kent Overstreet wrote: > What did you have in mind? > > On Fri, Dec 5, 2014 at 6:55 PM, nick wrote: >> Greetings fellow Maintainers, >> I am wondering about how to get started with bcache. This is due to be >> reading the documentation in the kernel tree and

[PATCH] checkpatch: include text files in SPACE_BEFORE_TAB test

2014-12-05 Thread Frank Rowand
From: Frank Rowand git-am whined about a patch that I submitted for the Documentation subtree, (https://lkml.org/lkml/2014/11/24/636) but checkpatch does not. Make checkpatch just as whiney. This patch moves the SPACE_BEFORE_TAB test before the check that excludes text files and also before

Re: [PATCH v2 net-next 0/6] allow eBPF programs to be attached to sockets

2014-12-05 Thread David Miller
From: Alexei Starovoitov Date: Mon, 1 Dec 2014 15:06:33 -0800 > V1->V2: > > fixed comments in sample code to state clearly that packet data is accessed > with LD_ABS instructions and not internal skb fields. > Also replaced constants in: > BPF_LD_ABS(BPF_B, 14 + 9 /* R0 = ip->proto */), >

Re: [PATCH V4 net-next] tun/macvtap: use consume_skb() instead of kfree_skb() when needed

2014-12-05 Thread David Miller
From: Jason Wang Date: Mon, 1 Dec 2014 16:53:15 +0800 > To be more friendly with drop monitor, we should only call kfree_skb() when > the packets were dropped and use consume_skb() in other cases. > > Cc: Eric Dumazet > Signed-off-by: Jason Wang Applied, thanks. -- To unsubscribe from this

Re: [PATCH] uapi: fix to export linux/vm_sockets.h

2014-12-05 Thread David Miller
From: Masahiro Yamada Date: Mon, 1 Dec 2014 10:16:17 +0900 > A typo "header=y" was introduced by commit 7071cf7fc435 > (uapi: add missing network related headers to kbuild). > > Signed-off-by: Masahiro Yamada > Cc: Stephen Hemminger Applied. -- To unsubscribe from this list: send the line

Re: [PATCH] skge: Unmask interrupts in case of spurious interrupts

2014-12-05 Thread David Miller
From: Lino Sanfilippo Date: Sun, 30 Nov 2014 12:51:31 +0100 > In case of a spurious interrupt dont forget to reenable the interrupts that > have been masked by reading the interrupt source register. > > Signed-off-by: Lino Sanfilippo Applied. -- To unsubscribe from this list: send the line

Re: [PATCH] sky2: avoid pci write posting after disabling irqs

2014-12-05 Thread David Miller
From: Lino Sanfilippo Date: Sun, 30 Nov 2014 12:56:51 +0100 > In sky2_change_mtu setting B0_IMSK to 0 may be delayed due to PCI write > posting > which could result in irqs being still active when synchronize_irq is called. > Since we are not prepared to handle any further irqs after

Re: [PATCH] pxa168: close race between napi and irq activation

2014-12-05 Thread David Miller
From: Lino Sanfilippo Date: Sun, 30 Nov 2014 11:49:36 +0100 > In pxa168_eth_open() the irqs are enabled before napi. This opens a tiny time > window in which the irq handler is processed, disables irqs but then is not > able > to schedule the not yet activated napi, leaving irqs disabled

Re: [PATCH v2 net] bpf: x86: fix epilogue generation for eBPF programs

2014-12-05 Thread David Miller
From: Alexei Starovoitov Date: Sat, 29 Nov 2014 14:46:13 -0800 > classic BPF has a restriction that last insn is always BPF_RET. > eBPF doesn't have BPF_RET instruction and this restriction. > It has BPF_EXIT insn which can appear anywhere in the program > one or more times and it doesn't have

Re: [PATCH 3.17 000/122] 3.17.5-stable review

2014-12-05 Thread Guenter Roeck
On 12/05/2014 07:44 PM, Greg Kroah-Hartman wrote: On Fri, Dec 05, 2014 at 07:30:48PM -0800, Guenter Roeck wrote: On 12/05/2014 02:42 PM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 3.17.5 release. There are 122 patches in this series, all will be posted as a

Re: [PATCH 1/1] net-ipvlan: Deletion of an unnecessary check before the function call "free_percpu"

2014-12-05 Thread David Miller
From: SF Markus Elfring Date: Sat, 29 Nov 2014 16:30:27 +0100 > From: Markus Elfring > Date: Sat, 29 Nov 2014 16:23:20 +0100 > > The free_percpu() function tests whether its argument is NULL and then > returns immediately. Thus the test around the call is not needed. > > This issue was

Re: [PATCH 1/1] net-PA Semi: Deletion of unnecessary checks before the function call "pci_dev_put"

2014-12-05 Thread David Miller
From: SF Markus Elfring Date: Sat, 29 Nov 2014 19:00:17 +0100 > From: Markus Elfring > Date: Sat, 29 Nov 2014 18:55:40 +0100 > > The pci_dev_put() function tests whether its argument is NULL > and then returns immediately. Thus the test around the call > is not needed. > > This issue was

Re: frequent lockups in 3.18rc4

2014-12-05 Thread Gene Heskett
On Friday 05 December 2014, Linus Torvalds wrote: >On Fri, Dec 5, 2014 at 9:15 AM, Dave Jones wrote: >> A bisect later, and I landed on a kernel that ran for a day, before >> spewing NMI messages, recovering, and then.. >> >> http://codemonkey.org.uk/junk/log.txt > >I have to admit I'm seeing

Re: [PATCH 1/1] net: cassini: Deletion of an unnecessary check before the function call "vfree"

2014-12-05 Thread David Miller
From: SF Markus Elfring Date: Sat, 29 Nov 2014 15:05:33 +0100 > From: Markus Elfring > Date: Sat, 29 Nov 2014 14:34:59 +0100 > > The vfree() function performs also input parameter validation. > Thus the test around the call is not needed. > > This issue was detected by using the Coccinelle

Re: [PATCH 1/1] Drivers: hv: vmbus: Implement a clockevent device

2014-12-05 Thread Greg KH
On Fri, Dec 05, 2014 at 07:58:44PM -0800, K. Y. Srinivasan wrote: > Implement a clockevent device based on the timer support available on > Hyper-V. > In this version of the patch I have addressed Jason's review comments. > > Signed-off-by: K. Y. Srinivasan > Reviewed-by: Jason Wang > --- Why

Re: PROBLEM: [Launchpad #1396889] [Lenovo ThinkPad T400] kexec reboot fails

2014-12-05 Thread Baoquan He
On 12/06/14 at 04:10am, MegaBrutal wrote: > 2014-12-01 23:59 GMT+01:00 Kees Cook : > > > > I suspect you're encountering a subset of the same problems as > > described in this thread: > > https://lkml.org/lkml/2014/9/30/90 > > > > If you can test those patches, that may help demonstrate their

Re: [PATCH v2] dell-smo8800: Add more ACPI ids and change description of driver

2014-12-05 Thread Darren Hart
On Fri, Dec 05, 2014 at 01:05:46PM +0100, Pali Rohár wrote: > This patch adds other ACPI ids from Windows inf driver which should be handled > by dell-smo8800 driver. ACPI devices have same structure -- one IRQ number. > > This patch also updates description of module. > > Signed-off-by: Pali

Re: [Intel-gfx] [ANNOUNCE][RFC] KVMGT - the implementation of Intel GVT-g(full GPU virtualization) for KVM

2014-12-05 Thread Jike Song
On 12/05/2014 09:54 PM, Daniel Vetter wrote: Yeah done a quick read-through of just the i915 bits too, same comment. I guess this is just the first RFC and the redesign we've discussed about already with xengt is in progress somewhere? Yes, it's marching on with Xen now. The KVM implementation

Re: [PATCH 0/3] dell-wmi: Don't send unneeded keypresses

2014-12-05 Thread Darren Hart
On Fri, Dec 05, 2014 at 10:07:35PM +0100, Pali Rohár wrote: > On Friday 05 December 2014 21:41:22 Pavel Machek wrote: > > On Fri 2014-12-05 21:31:34, Pali Rohár wrote: > > > On Wednesday 03 December 2014 14:34:32 Darren Hart wrote: > > > > On Thu, Dec 04, 2014 at 12:16:20AM +0100, Gabriele > > > >

Re: [ANNOUNCE][RFC] KVMGT - the implementation of Intel GVT-g(full GPU virtualization) for KVM

2014-12-05 Thread Jike Song
CC Andy :) On 12/05/2014 09:03 PM, Paolo Bonzini wrote: On 05/12/2014 09:50, Gerd Hoffmann wrote: A few comments on the kernel stuff (brief look so far, also compile-tested only, intel gfx on my test machine is too old). * Noticed the kernel bits don't even compile when configured as

Re: [PATCH v3] platform: x86: dell-laptop: Add support for keyboard backlight

2014-12-05 Thread Darren Hart
On Fri, Dec 05, 2014 at 12:53:31PM +0100, Pali Rohár wrote: > This patch adds support for configuring keyboard backlight settings on > supported > Dell laptops. It exports kernel leds interface and uses Dell SMBIOS tokens or > keyboard class interface. > > With this patch it is possible to set:

Re: [PATCH] PM / Kconfig: Replace PM_RUNTIME with PM in dependencies

2014-12-05 Thread Greg Kroah-Hartman
On Sat, Dec 06, 2014 at 03:54:35AM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is > selected) PM_RUNTIME is always set if PM is set, so Kconfig options > depending on CONFIG_PM_RUNTIME may now be changed to

Re: [PATCH] tty / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM

2014-12-05 Thread Greg Kroah-Hartman
On Sat, Dec 06, 2014 at 03:33:47AM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is > selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks > depending on CONFIG_PM_RUNTIME may now be changed to depend

Re: [PATCH 2/5] gpio: Cygnus: add GPIO driver

2014-12-05 Thread Joe Perches
On Fri, 2014-12-05 at 19:41 -0800, Ray Jui wrote: > On 12/5/2014 6:34 PM, Joe Perches wrote: > > On Fri, 2014-12-05 at 18:14 -0800, Ray Jui wrote: > >> On 12/5/2014 5:28 PM, Joe Perches wrote: > >>> On Fri, 2014-12-05 at 16:40 -0800, Ray Jui wrote: > +

Re: [ANNOUNCE][RFC] KVMGT - the implementation of Intel GVT-g(full GPU virtualization) for KVM

2014-12-05 Thread Jike Song
On 12/05/2014 04:50 PM, Gerd Hoffmann wrote: A few comments on the kernel stuff (brief look so far, also compile-tested only, intel gfx on my test machine is too old). * Noticed the kernel bits don't even compile when configured as module. Everything (vgt, i915, kvm) must be compiled

[PATCH v5 0/6] fix hw_random stuck

2014-12-05 Thread Amos Kong
When I hotunplug a busy virtio-rng device or try to access hwrng attributes in non-smp guest, it gets stuck. My hotplug tests: | test 0: | hotunplug rng device from qemu monitor | | test 1: | guest) # dd if=/dev/hwrng of=/dev/null & | hotunplug rng device from qemu monitor | | test 2: |

[PATCH v5 3/6] hw_random: use reference counts on each struct hwrng.

2014-12-05 Thread Amos Kong
From: Rusty Russell current_rng holds one reference, and we bump it every time we want to do a read from it. This means we only hold the rng_mutex to grab or drop a reference, so accessing /sys/devices/virtual/misc/hw_random/rng_current doesn't block on read of /dev/hwrng. Using a kref is

[PATCH v5 6/6] hw_random: don't init list element we're about to add to list.

2014-12-05 Thread Amos Kong
From: Rusty Russell Another interesting anti-pattern. Signed-off-by: Rusty Russell --- drivers/char/hw_random/core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/char/hw_random/core.c b/drivers/char/hw_random/core.c index a9286bf..4d13ac5 100644 ---

[PATCH v5 5/6] hw_random: don't double-check old_rng.

2014-12-05 Thread Amos Kong
From: Rusty Russell Interesting anti-pattern. Signed-off-by: Rusty Russell --- drivers/char/hw_random/core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/char/hw_random/core.c b/drivers/char/hw_random/core.c index 067270b..a9286bf 100644 ---

[PATCH v5 2/6] hw_random: move some code out mutex_lock for avoiding underlying deadlock

2014-12-05 Thread Amos Kong
In next patch, we use reference counting for each struct hwrng, changing reference count also needs to take mutex_lock. Before releasing the lock, if we try to stop a kthread that waits to take the lock to reduce the referencing count, deadlock will occur. Signed-off-by: Amos Kong ---

[PATCH v5 1/6] hw_random: place mutex around read functions and buffers.

2014-12-05 Thread Amos Kong
From: Rusty Russell There's currently a big lock around everything, and it means that we can't query sysfs (eg /sys/devices/virtual/misc/hw_random/rng_current) while the rng is reading. This is a real problem when the rng is slow, or blocked (eg. virtio_rng with qemu's default /dev/random

[PATCH v5 4/6] hw_random: fix unregister race.

2014-12-05 Thread Amos Kong
From: Rusty Russell The previous patch added one potential problem: we can still be reading from a hwrng when it's unregistered. Add a wait for zero in the hwrng_unregister path. v5: reset cleanup_done flag, use compiler barrier to prevent recording. v4: add cleanup_done flag to insure that

Re: syscall: introduce sendfd() syscall (v.2)

2014-12-05 Thread Alex Dubov
On Sat, Dec 6, 2014 at 12:22 AM, One Thousand Gnomes wrote: > >> 2.a. If task A has sufficient capabilities to send signals to task B, then >> task A is already in position to do anything it wants with task B, including >> killing it outright. > > Not entirely true. > > - We have securirty models

Re: [PATCH V3 0/2] i2c-designware: Baytrail bus locking driver

2014-12-05 Thread Shinya Kuribayashi
On 14/12/02 9:09, David E. Box wrote: Select Intel Baytrail platforms support PMIC's whose i2c bus may be controlled exclusively by platform hardware. This patch set adds support for i2c bus locking to the designware core and provides a driver module for managing the lock on these platforms.

Re: [PATCH] syscall: introduce sendfd() syscall (v.2)

2014-12-05 Thread Alex Dubov
On Sat, Dec 6, 2014 at 6:23 AM, Bastien ROUCARIES wrote: > > > See senfd recvfd in gnulib. It wirk even under solaris > What's so special about a thin wrapper around domain sockets/named fifos (solaris style)? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body

Re: [PATCH v4 4/6] hw_random: fix unregister race.

2014-12-05 Thread Amos Kong
On Wed, Nov 12, 2014 at 02:33:00PM +1030, Rusty Russell wrote: > Amos Kong writes: > > From: Rusty Russell > > > > The previous patch added one potential problem: we can still be > > reading from a hwrng when it's unregistered. Add a wait for zero > > in the hwrng_unregister path. > > > > v4:

Re: [PATCH 3.17 000/122] 3.17.5-stable review

2014-12-05 Thread Greg Kroah-Hartman
On Fri, Dec 05, 2014 at 07:30:48PM -0800, Guenter Roeck wrote: > On 12/05/2014 02:42 PM, Greg Kroah-Hartman wrote: > >This is the start of the stable review cycle for the 3.17.5 release. > >There are 122 patches in this series, all will be posted as a response > >to this one. If anyone has any

Re: [PATCH 2/5] gpio: Cygnus: add GPIO driver

2014-12-05 Thread Ray Jui
On 12/5/2014 6:34 PM, Joe Perches wrote: On Fri, 2014-12-05 at 18:14 -0800, Ray Jui wrote: On 12/5/2014 5:28 PM, Joe Perches wrote: On Fri, 2014-12-05 at 16:40 -0800, Ray Jui wrote: +static void bcm_cygnus_gpio_irq_handler(unsigned int irq, + struct irq_desc *desc) +{ +

Re: [PATCH 3.17 000/122] 3.17.5-stable review

2014-12-05 Thread Guenter Roeck
On 12/05/2014 02:42 PM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 3.17.5 release. There are 122 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be

Re: [PATCH 3.14 00/73] 3.14.26-stable review

2014-12-05 Thread Guenter Roeck
On 12/05/2014 02:44 PM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 3.14.26 release. There are 73 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be

Re: [PATCH 3.10 00/45] 3.10.62-stable review

2014-12-05 Thread Guenter Roeck
On 12/05/2014 02:44 PM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 3.10.62 release. There are 45 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be

[PATCH v2] VERIFY_OCTAL_PERMISSIONS: Move to where it belongs

2014-12-05 Thread George Spelvin
It's the only user of in kernel.h, so that reduces the compile-time cost of #include Only one user has to change: . The there is needed for one function prototype that passes s16 parameters. My first reaction is to wonder if that can be gotten rid of, too. Some other extraneous header files

Re: PROBLEM: [Launchpad #1396889] [Lenovo ThinkPad T400] kexec reboot fails

2014-12-05 Thread MegaBrutal
2014-12-01 23:59 GMT+01:00 Kees Cook : > > I suspect you're encountering a subset of the same problems as > described in this thread: > https://lkml.org/lkml/2014/9/30/90 > > If you can test those patches, that may help demonstrate their utility. > > Thanks! Bang ji le! It works with the patch

Re: [PATCH] PM / Kconfig: Replace PM_RUNTIME with PM in dependencies

2014-12-05 Thread Felipe Balbi
On Sat, Dec 06, 2014 at 03:54:35AM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is > selected) PM_RUNTIME is always set if PM is set, so Kconfig options > depending on CONFIG_PM_RUNTIME may now be changed to

Re: Block layer projects that I haven't had time for

2014-12-05 Thread Kent Overstreet
On Thu, Dec 04, 2014 at 12:00:27PM +0100, Dongsu Park wrote: > Hi Kent, > > On 23.11.2014 20:16, Kent Overstreet wrote: > > Since I'm starting to resign myself to the fact that I'm probably not going > > to > > have much time for upstream development again any time soon, I figured > > maybe I >

Re: [PATCH] [PATCH] VERIFY_OCTAL_PERMISSIONS: Move to where it belongs

2014-12-05 Thread Jeff Kirsher
On Fri, 2014-12-05 at 18:53 -0800, Joe Perches wrote: > On Fri, 2014-12-05 at 21:49 -0500, George Spelvin wrote: > > I found some other alarming things, but nothing related to this. > > > > E.g. > > drivers/net/ethernet/intel/i40e/i40e_debugfs.c: In function > > 'i40e_dbg_dump_desc': > >

Re: [PATCH] [PATCH] VERIFY_OCTAL_PERMISSIONS: Move to where it belongs

2014-12-05 Thread Andrew Morton
On 5 Dec 2014 21:49:52 -0500 "George Spelvin" wrote: > >> - > > > This shouldn't be here because "^---" is considered "end of changelog". > > Damn it, I couldn't remember how to add not-for-commit comments to a patch. > I RTFMed and thought that was what "git mailinfo --scissors" wanted. >

Re: Interested in bcache

2014-12-05 Thread Kent Overstreet
What did you have in mind? On Fri, Dec 5, 2014 at 6:55 PM, nick wrote: > Greetings fellow Maintainers, > I am wondering about how to get started with bcache. This is due to be > reading the documentation in the kernel tree and being interested in started > to help out. > Cheers Nick -- To

[PATCH v2] OHCI: add a quirk for ULi M5237 blocking on reset

2014-12-05 Thread Arseny Solokha
From: Arseny Solokha Commit 8dccddbc2368 ("OHCI: final fix for NVIDIA problems (I hope)") introduced into 3.1.9 broke boot on e.g. Freescale P2020DS development board. The code path that was previously specific to NVIDIA controllers had then become taken for all chips. However, the M5237

Re: [PATCH] [PATCH] VERIFY_OCTAL_PERMISSIONS: Move to where it belongs

2014-12-05 Thread Joe Perches
On Fri, 2014-12-05 at 21:49 -0500, George Spelvin wrote: > I found some other alarming things, but nothing related to this. > > E.g. > drivers/net/ethernet/intel/i40e/i40e_debugfs.c: In function > 'i40e_dbg_dump_desc': > drivers/net/ethernet/intel/i40e/i40e_debugfs.c:855:1: warning: the frame

Re: [PATCH] [PATCH] VERIFY_OCTAL_PERMISSIONS: Move to where it belongs

2014-12-05 Thread George Spelvin
>> - > This shouldn't be here because "^---" is considered "end of changelog". Damn it, I couldn't remember how to add not-for-commit comments to a patch. I RTFMed and thought that was what "git mailinfo --scissors" wanted. (Normally, I put it down with the diffstat, but preferred a more

[PATCH 1/1] Drivers: hv: vmbus: Implement a clockevent device

2014-12-05 Thread K. Y. Srinivasan
Implement a clockevent device based on the timer support available on Hyper-V. In this version of the patch I have addressed Jason's review comments. Signed-off-by: K. Y. Srinivasan Reviewed-by: Jason Wang --- arch/x86/include/uapi/asm/hyperv.h | 11 + drivers/hv/hv.c

RE: drivers:scsi:storvsc: Fix a bug in handling ring buffer failures that may result in I/O freeze

2014-12-05 Thread KY Srinivasan
> -Original Message- > From: Long Li [mailto:lon...@microsoft.com] > Sent: Friday, December 5, 2014 7:38 PM > To: linux-s...@vger.kernel.org > Cc: KY Srinivasan; Haiyang Zhang; jbottom...@parallels.com; > de...@linuxdriverproject.org; linux-kernel@vger.kernel.org; Long Li > Subject:

drivers:scsi:storvsc: Fix a bug in handling ring buffer failures that may result in I/O freeze

2014-12-05 Thread Long Li
When ring buffer returns an error indicating retry, storvsc may not return a proper error code to SCSI when bounce buffer is not used. This has introduced I/O freeze on RAID running atop storvsc devices. This patch fixes it by always returning a proper error code. Signed-off-by: Long Li

Re: [PATCH 2/5] gpio: Cygnus: add GPIO driver

2014-12-05 Thread Joe Perches
On Fri, 2014-12-05 at 18:14 -0800, Ray Jui wrote: > On 12/5/2014 5:28 PM, Joe Perches wrote: > > On Fri, 2014-12-05 at 16:40 -0800, Ray Jui wrote: > >> +static void bcm_cygnus_gpio_irq_handler(unsigned int irq, > >> + struct irq_desc *desc) > >> +{ > >> + struct bcm_cygnus_gpio

[PATCH] PM / Kconfig: Replace PM_RUNTIME with PM in dependencies

2014-12-05 Thread Rafael J. Wysocki
From: Rafael J. Wysocki After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so Kconfig options depending on CONFIG_PM_RUNTIME may now be changed to depend on CONFIG_PM. Replace PM_RUNTIME with PM in Kconfig dependencies

RE: [PATCH V3 1/1] Drivers: hv: vmbus: Implement a clockevent device

2014-12-05 Thread KY Srinivasan
> -Original Message- > From: K. Y. Srinivasan [mailto:k...@microsoft.com] > Sent: Friday, December 5, 2014 4:27 PM > To: gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > jasow...@redhat.com > Cc: KY Srinivasan

[PATCH] ARM / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM

2014-12-05 Thread Rafael J. Wysocki
From: Rafael J. Wysocki After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks depending on CONFIG_PM_RUNTIME may now be changed to depend on CONFIG_PM. Replace CONFIG_PM_RUNTIME with CONFIG_PM everywhere in the

[PATCH] sound / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM

2014-12-05 Thread Rafael J. Wysocki
From: Rafael J. Wysocki After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks depending on CONFIG_PM_RUNTIME may now be changed to depend on CONFIG_PM. Replace CONFIG_PM_RUNTIME with CONFIG_PM everywhere under

[PATCH] tracing / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM

2014-12-05 Thread Rafael J. Wysocki
From: Rafael J. Wysocki After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so files that are build conditionally if CONFIG_PM_RUNTIME is set may now be build if CONFIG_PM is set. Replace CONFIG_PM_RUNTIME with CONFIG_PM in

[PATCH] phy / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM

2014-12-05 Thread Rafael J. Wysocki
From: Rafael J. Wysocki After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks depending on CONFIG_PM_RUNTIME may now be changed to depend on CONFIG_PM. Replace CONFIG_PM_RUNTIME with CONFIG_PM everywhere under

Re: [PATCH 2/2 V8] intel_pstate: add kernel parameter to force loading.

2014-12-05 Thread ethan
Linda, > 在 2014年12月6日,00:09,Linda Knippers 写道: > >> On 12/5/2014 4:40 AM, Ethan Zhao wrote: >> To force loading on Oracle Sun X86 servers, provide one kernel command line >> parameter >> >> intel_pstate = force >> >> For those who be aware of the risk of no power capping capabily working and

[PATCH] video / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM

2014-12-05 Thread Rafael J. Wysocki
From: Rafael J. Wysocki After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks depending on CONFIG_PM_RUNTIME may now be changed to depend on CONFIG_PM. The alternative of CONFIG_PM_SLEEP and CONFIG_PM_RUNTIME may

Re: [PATCH 2/5] gpio: Cygnus: add GPIO driver

2014-12-05 Thread Ray Jui
Thanks for your review, Joe: On 12/5/2014 5:28 PM, Joe Perches wrote: On Fri, 2014-12-05 at 16:40 -0800, Ray Jui wrote: This GPIO driver supports all 3 GPIO controllers in the Broadcom Cygnus SoC. The 3 GPIO controllers are 1) the ASIU GPIO controller ("brcm,cygnus-asiu-gpio"), 2) the

[PATCH] tty / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM

2014-12-05 Thread Rafael J. Wysocki
From: Rafael J. Wysocki After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks depending on CONFIG_PM_RUNTIME may now be changed to depend on CONFIG_PM. Replace CONFIG_PM_RUNTIME with CONFIG_PM everywhere under

[PATCH] SPI / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM

2014-12-05 Thread Rafael J. Wysocki
From: Rafael J. Wysocki After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks depending on CONFIG_PM_RUNTIME may now be changed to depend on CONFIG_PM. Replace CONFIG_PM_RUNTIME with CONFIG_PM everywhere under

[PATCH] serial: 8250: add support for ACPI-probed serial port for X-Gene platform

2014-12-05 Thread Feng Kan
Enable APM X-Gene SoC serial port functionality when using ACPI table to initialize serial port. Signed-off-by: Feng Kan --- drivers/tty/serial/8250/8250_dw.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c

Re: [PATCH v3 2/2] staging: media: lirc: lirc_zilog.c: keep consistency in dev functions

2014-12-05 Thread Mauro Carvalho Chehab
Em Fri, 05 Dec 2014 12:35:25 + Luis de Bethencourt escreveu: > On 5 December 2014 at 12:28, Dan Carpenter wrote: > > > On Thu, Dec 04, 2014 at 10:35:24PM +, Luis de Bethencourt wrote: > > > The previous patch switched some dev functions to move the string to a > > second > > > line.

Re: [PATCH 2/5] gpio: Cygnus: add GPIO driver

2014-12-05 Thread Joe Perches
On Fri, 2014-12-05 at 16:40 -0800, Ray Jui wrote: > This GPIO driver supports all 3 GPIO controllers in the Broadcom Cygnus > SoC. The 3 GPIO controllers are 1) the ASIU GPIO controller > ("brcm,cygnus-asiu-gpio"), 2) the chipCommonG GPIO controller > ("brcm,cygnus-ccm-gpio"), and 3) the ALWAYS-ON

Re: [PATCH] [PATCH] VERIFY_OCTAL_PERMISSIONS: Move to where it belongs

2014-12-05 Thread Andrew Morton
On 5 Dec 2014 20:18:02 -0500 "George Spelvin" wrote: > > VERIFY_OCTAL_PERMISSIONS() sticks out like a sore thumb in kernel.h. > > How about we move it into sysfs.h? > > Something like this, you mean? Kinda. > The in moduleparam.h is needed for one function > prototype that passes s16

[PATCH] [PATCH] VERIFY_OCTAL_PERMISSIONS: Move to where it belongs

2014-12-05 Thread George Spelvin
> VERIFY_OCTAL_PERMISSIONS() sticks out like a sore thumb in kernel.h. > How about we move it into sysfs.h? Something like this, you mean? The in moduleparam.h is needed for one function prototype that passes s16 parameters. My first reaction is to wonder if that can be gotten rid of, too.

Re: [RFC PATCH V2 0/4] Reducing parameters of alloc_pages* family of functions

2014-12-05 Thread Linus Torvalds
On Fri, Dec 5, 2014 at 11:59 AM, Vlastimil Babka wrote: > Hey all, > > this is a V2 of attempting something that has been discussed when Minchan > proposed to expand the x86 kernel stack [1], namely the reduction of huge > number of parameters that the alloc_pages* family and

[PATCH 3/5] ARM: mach-bcm: Enable GPIO support for Cygnus

2014-12-05 Thread Ray Jui
Enable GPIO driver for Broadcom Cygnus SoC by selecting GPIO_BCM_CYGNUS Signed-off-by: Ray Jui Reviewed-by: Scott Branden --- arch/arm/mach-bcm/Kconfig |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-bcm/Kconfig b/arch/arm/mach-bcm/Kconfig index aaeec78..5066d5d 100644 ---

[PATCH 2/5] gpio: Cygnus: add GPIO driver

2014-12-05 Thread Ray Jui
This GPIO driver supports all 3 GPIO controllers in the Broadcom Cygnus SoC. The 3 GPIO controllers are 1) the ASIU GPIO controller ("brcm,cygnus-asiu-gpio"), 2) the chipCommonG GPIO controller ("brcm,cygnus-ccm-gpio"), and 3) the ALWAYS-ON GPIO controller ("brcm,cygnus-crmu-gpio") Signed-off-by:

[PATCH 5/5] MAINTAINERS: Entry for Cygnus GPIO driver

2014-12-05 Thread Ray Jui
Signed-off-by: Ray Jui --- MAINTAINERS |7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7b712d8..5d67204 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2174,6 +2174,13 @@ N: bcm9583* N: bcm583* N: bcm113* +BROADCOM CYGNUS GPIO DRIVER

[PATCH 4/5] ARM: dts: enable GPIO for Broadcom Cygnus

2014-12-05 Thread Ray Jui
This enables all 3 GPIO controllers including the ASIU GPIO, the chipcommonG GPIO, and the ALWAYS-ON GPIO, for Broadcom Cygnus SoC Signed-off-by: Ray Jui Reviewed-by: Scott Branden --- arch/arm/boot/dts/bcm-cygnus.dtsi | 30 ++ 1 file changed, 30 insertions(+)

[PATCH 1/5] gpio: Cygnus: define Broadcom Cygnus GPIO binding

2014-12-05 Thread Ray Jui
Document the GPIO device tree binding for Broadcom Cygnus SoC Signed-off-by: Ray Jui Reviewed-by: Scott Branden --- .../devicetree/bindings/gpio/brcm,cygnus-gpio.txt | 85 1 file changed, 85 insertions(+) create mode 100644

[PATCH 0/5] Add gpio support to Broadcom Cygnus SoC

2014-12-05 Thread Ray Jui
This patchset contains the initial GPIO support for the Broadcom Cygnus SoC. Cygnus has 3 GPIO controllers: 1) the ASIU GPIO; 2) the chipCommonG GPIO; and 3) the ALWAYS-ON GPIO. All 3 types of GPIO controllers are supported by the same Cygnus GPIO driver Ray Jui (5): gpio: Cygnus: define

Re: [PATCH] VERIFY_OCTAL_PERMISSIONS needs

2014-12-05 Thread Andrew Morton
On 5 Dec 2014 19:07:59 -0500 "George Spelvin" wrote: > It is possible to include and try to use > VERIFY_OCTAL_PERMISSIONS, then puke because BUILD_BUG_ON_ZERO > isn't defined. > > I hit this via: > > #include > module_param(verbose, bool, 0); > > IMHO, except in documented special cases,

Re: [PATCH] VERIFY_OCTAL_PERMISSIONS needs

2014-12-05 Thread Randy Dunlap
On 12/05/14 16:07, George Spelvin wrote: > It is possible to include and try to use > VERIFY_OCTAL_PERMISSIONS, then puke because BUILD_BUG_ON_ZERO > isn't defined. > > I hit this via: > > #include > module_param(verbose, bool, 0); > > IMHO, except in documented special cases, header files

[PATCH] VERIFY_OCTAL_PERMISSIONS needs

2014-12-05 Thread George Spelvin
It is possible to include and try to use VERIFY_OCTAL_PERMISSIONS, then puke because BUILD_BUG_ON_ZERO isn't defined. I hit this via: #include module_param(verbose, bool, 0); IMHO, except in documented special cases, header files should #include their own macros' dependencies. Signed-off-by:

[PATCH 2/2] MPILIB: Deobfuscate mpi_cmp

2014-12-05 Thread Rasmus Villemoes
The condition preceding 'return 1;' makes my head hurt. At this point, we know that u and v have the same sign; if they are negative, they compare opposite to how their absolute values compare (which mpihelp_cmp found for us), otherwise cmp itself is the answer. Negating cmp is ok since

[PATCH 1/2] MPILIB: Fix comparison of negative MPIs

2014-12-05 Thread Rasmus Villemoes
If u and v both represent negative integers and their limb counts happen to differ, mpi_cmp will always return a positive value - this is obviously bogus. u is smaller than v if and only if it is larger in absolute value. Signed-off-by: Rasmus Villemoes --- lib/mpi/mpi-cmp.c | 2 +- 1 file

Re: [PATCH v3] mmc: dw_mmc: add quirk for broken data transfer over scheme

2014-12-05 Thread Alexandru Stan
Seems like the BROKEN_DTO also affects EVENT_DATA_COMPLETE, sometimes we don't see that (but we do see EVENT_XFER_COMPLETE), leave the state machine and never come back to it to timeout. I have this happening on emmc specifically, haven't seen it on sdmmc yet. The fix is to also start the timer

[PATCH 3.17 012/122] x86_64, traps: Fix the espfix64 #DF fixup and rewrite it in C

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Andy Lutomirski commit af726f21ed8af2cdaa4e93098dc211521218ae65 upstream. There's nothing special enough about the espfix64 double fault fixup to justify writing it in assembly. Move it to

[PATCH 3.17 013/122] x86_64, traps: Stop using IST for #SS

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Andy Lutomirski commit 6f442be2fb22be02cafa606f1769fa1e6f894441 upstream. On a 32-bit kernel, this has no effect, since there are no IST stacks. On a 64-bit kernel, #SS can only happen in

[PATCH 3.17 019/122] sparc64: Fix constraints on swab helpers.

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 5a2b59d3993e8ca4f7788a48a23e5cb303f26954 ] We are reading the memory location, so we have to have a memory constraint in there purely for the sake of showing the data flow to the

[PATCH 3.17 015/122] x86: Require exact match for noxsave command line option

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Dave Hansen commit 2cd3949f702692cf4c5d05b463f19cd706a92dd3 upstream. We have some very similarly named command-line options: arch/x86/kernel/cpu/common.c:__setup("noxsave",

[PATCH 3.17 017/122] x86, kaslr: Handle Gold linker for finding bss/brk

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Kees Cook commit 70b61e362187b5fccac206506d402f3424e3e749 upstream. When building with the Gold linker, the .bss and .brk areas of vmlinux are shown as consecutive instead of having the same

[PATCH 3.17 018/122] uprobes, x86: Fix _TIF_UPROBE vs _TIF_NOTIFY_RESUME

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Andy Lutomirski commit 82975bc6a6df743b9a01810fb32cb65d0ec5d60b upstream. x86 call do_notify_resume on paranoid returns if TIF_UPROBE is set but not on non-paranoid returns. I suspect that

[PATCH 3.17 021/122] ipv4: Fix incorrect error code when adding an unreachable route

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Panu Matilainen [ Upstream commit 49dd18ba4615eaa72f15c9087dea1c2ab4744cf5 ] Trying to add an unreachable route incorrectly returns -ESRCH if if custom FIB rules are present: [root@localhost

[PATCH 3.17 002/122] MIPS: lib: memcpy: Restore NOP on delay slot before returning to caller

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Markos Chandras commit 51b1029d9966060c6ad02030e6f251425b4f06c1 upstream. Commit cf62a8b8134dd3 ("MIPS: lib: memcpy: Use macro to build the copy_user code") switched to a macro in order to

[PATCH 3.17 020/122] inetdevice: fixed signed integer overflow

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Vincent BENAYOUN [ Upstream commit 84bc88688e3f6ef843aa8803dbcd90168bb89faf ] There could be a signed overflow in the following code. The expression, (32-logmask) is comprised between 0 and

[PATCH 3.17 001/122] MIPS: IP27: Fix __node_distances undefined error

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: James Cowgill commit 5829b0ecc584d15ae4eeabe69f2ab554bdec4689 upstream. export the __node_distances symbol in the ip27 memory code to fix the build error: Building modules, stage 2.

[PATCH 3.17 022/122] ieee802154: fix error handling in ieee802154fake_probe()

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Alexey Khoroshilov [ Upstream commit 8c2dd54485ccee7fc4086611e188478584758c8d ] In case of any failure ieee802154fake_probe() just calls unregister_netdev(). But it does not look safe to

[PATCH 3.17 024/122] bonding: fix curr_active_slave/carrier with loadbalance arp monitoring

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Nikolay Aleksandrov [ Upstream commit b8e4500f42fe4464a33a887579147050bed8fcef ] Since commit 6fde8f037e60 ("bonding: fix locking in bond_loadbalance_arp_mon()") we can have a stale bond

[PATCH 3.17 003/122] MIPS: oprofile: Fix backtrace on 64-bit kernel

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Aaro Koskinen commit bbaf113a481b6ce32444c125807ad3618643ce57 upstream. Fix incorrect cast that always results in wrong address for the new frame on 64-bit kernels. Signed-off-by: Aaro

  1   2   3   4   5   6   7   8   9   10   >