Re: [PATCH 07/13] kexec: Implementation of new syscall kexec_file_load

2014-06-16 Thread Vivek Goyal
On Mon, Jun 16, 2014 at 02:25:07PM -0700, H. Peter Anvin wrote: > On 06/16/2014 02:09 PM, Borislav Petkov wrote: > > > > Nah, I don't feel strongly about it - I just don't trust userspace and > > think that every value we get from it should be "sanitized". > > > > Borislav and I talked about

[PATCH 10/10] mfd: cros_ec: ec_dev->cmd_xfer() returns number of bytes received from EC

2014-06-16 Thread Doug Anderson
From: Bill Richardson When communicating with the EC, the cmd_xfer() function should return the number of bytes it received from the EC, or negative on error. Signed-off-by: Bill Richardson Signed-off-by: Doug Anderson --- drivers/i2c/busses/i2c-cros-ec-tunnel.c | 2 +-

[PATCH 08/10] mfd: cros_ec: cleanup: Remove EC wrapper functions

2014-06-16 Thread Doug Anderson
From: Bill Richardson Remove the three wrapper functions that talk to the EC without passing all the desired arguments and just use the underlying communication function that passes everything in a struct intead. This is internal code refactoring only. Nothing should change. Signed-off-by:

Re: perf/workqueue: lockdep warning on process exit

2014-06-16 Thread Sasha Levin
On 06/16/2014 10:24 AM, Sasha Levin wrote: > Hi all, > > While fuzzing with trinity inside a KVM tools guest running the latest -next > kernel I've stumbled on the following spew: I think that this is due to a recent change, since it seems to reproduce very often. I've tried bisecting it but it

[PATCH 09/10] mfd: cros_ec: Check result code from EC messages

2014-06-16 Thread Doug Anderson
From: Bill Richardson Just because the host was able to talk to the EC doesn't mean that the EC was happy with what it was told. Errors in communincation are not the same as error messages from the EC itself. This change lets the EC report its errors separately. Signed-off-by: Bill Richardson

[PATCH 04/10] mfd: cros_ec: Tweak struct cros_ec_device for clarity

2014-06-16 Thread Doug Anderson
From: Bill Richardson The members of struct cros_ec_device were improperly commented, and intermixed the private and public sections. This is just cleanup to make it more obvious what goes with what. [dianders: left lock in the structure but gave it the name that will eventually be used.]

[PATCH 07/10] mfd: cros_ec: cleanup: remove unused fields from struct cros_ec_device

2014-06-16 Thread Doug Anderson
From: Bill Richardson struct cros_ec_device has a superfluous "name" field. We can get all the debugging info we need from the existing ec_name and phys_name fields, so let's take out the extra field. Signed-off-by: Bill Richardson Signed-off-by: Doug Anderson --- drivers/mfd/cros_ec.c

[PATCH 01/10] mfd: cros_ec: Fix the comment on cros_ec_remove()

2014-06-16 Thread Doug Anderson
From: Bill Richardson This comment was incorrect, so update it. Signed-off-by: Bill Richardson Signed-off-by: Simon Glass Signed-off-by: Doug Anderson --- include/linux/mfd/cros_ec.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/mfd/cros_ec.h

[PATCH 03/10] mfd: cros_ec: Allow static din/dout buffers with cros_ec_register()

2014-06-16 Thread Doug Anderson
From: Bill Richardson The lower-level driver may want to provide its own buffers. If so, there's no need to allocate new ones. This already happens to work just fine (since we check for size of 0 and use devm allocation), but it's good to document it. [dianders: Resolved conflicts; documented

[PATCH 02/10] mfd: cros_ec: IRQs for cros_ec should be optional

2014-06-16 Thread Doug Anderson
From: Bill Richardson Preparing the way for the LPC device, which is just a plaform_device without interrupts. Signed-off-by: Bill Richardson Signed-off-by: Doug Anderson --- drivers/mfd/cros_ec.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git

[PATCH 0/10] Batch of cleanup patches for cros_ec

2014-06-16 Thread Doug Anderson
This is a batch of cleanup patches picked from the ChromeOS 3.8 kernel tree and applied to ToT. Most of these patches were authored by Bill Richardson (CCed). Where appropriate I've squashed patches together, though I have erred on the side of keeping patches logically distinct rather than

Re: 3.15: kernel BUG at kernel/auditsc.c:1525!

2014-06-16 Thread Andy Lutomirski
[cc: hpa, x86 list] On Mon, Jun 16, 2014 at 1:43 PM, Richard Weinberger wrote: > Am 16.06.2014 22:41, schrieb Toralf Förster: >> Well, might be the mail:subject should be adapted, b/c the issue can be >> triggered in a 3.13.11 kernel too. >> Unfortunately it does not appear within an UML guest,

Re: netconsole breaks netpoll on bridge

2014-06-16 Thread Francois Romieu
Stefan Priebe - Profihost AG : [...] > That sounds great! Is there anything I can do or some code I can port to veth? You may add an empty handler for .ndo_poll_controller in drivers/net/veth.c and give it a try on current kernel. It should not be too bad. -- Ueimor -- To unsubscribe from

Re: [PATCH] serial: samsung: Fix compile error with SERIAL_SAMSUNG_DEBUG

2014-06-16 Thread Greg Kroah-Hartman
On Sun, Jun 15, 2014 at 10:46:56AM -0700, Joe Perches wrote: > On Sun, 2014-06-15 at 23:06 +0530, Sachin Kamat wrote: > > On Sun, Jun 15, 2014 at 2:03 AM, Joe Perches wrote: > > > Greg? Can you please apply this soon? > > > > A similar patch has already been posted [1]. Probably Greg will apply

Re: [PATCH] net/cadence/macb: clear interrupts simply and correctly

2014-06-16 Thread Sören Brinkmann
On Thu, 2014-06-12 at 05:50PM +0900, Jongsung Kim wrote: > The "Rx used bit read" interrupt is enabled but not cleared for some > systems with the ISR (Interrupt Status Register) configured as clear- > on-write. This interrupt may be asserted when the CPU does not handle > Rx-complete interrupts

Re: [PATCH 11/13] kexec-bzImage: Support for loading bzImage using 64bit entry

2014-06-16 Thread Borislav Petkov
On Mon, Jun 16, 2014 at 05:15:00PM -0400, Vivek Goyal wrote: > Do we want to show all the rejection messages from bzImage64 and > bzImage32 loaders. It might be too verbose to show users that before > vmlinux loader accepted the image other loaders on this arches rejcted > the image. I get all

Re: [PATCH 07/13] kexec: Implementation of new syscall kexec_file_load

2014-06-16 Thread H. Peter Anvin
On 06/16/2014 02:09 PM, Borislav Petkov wrote: > > Nah, I don't feel strongly about it - I just don't trust userspace and > think that every value we get from it should be "sanitized". > Borislav and I talked about this briefly over IRC. A key part of that is that if userspace could manipulate

Re: Linux 3.15.1

2014-06-16 Thread Greg KH
diff --git a/Makefile b/Makefile index 6d1e304943a3..e2846acd2841 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 15 -SUBLEVEL = 0 +SUBLEVEL = 1 EXTRAVERSION = NAME = Shuffling Zombie Juror diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index

Linux 3.15.1

2014-06-16 Thread Greg KH
I'm announcing the release of the 3.15.1 kernel. All users of the 3.15 kernel series must upgrade. The updated 3.15.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.15.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 3.14.8

2014-06-16 Thread Greg KH
diff --git a/Makefile b/Makefile index f2d1225828c2..ef1d59b750ea 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 14 -SUBLEVEL = 7 +SUBLEVEL = 8 EXTRAVERSION = NAME = Remembering Coco diff --git a/arch/mips/include/asm/thread_info.h

Linux 3.14.8

2014-06-16 Thread Greg KH
I'm announcing the release of the 3.14.8 kernel. All users of the 3.14 kernel series must upgrade. The updated 3.14.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.14.y and can be browsed at the normal kernel.org git web browser:

Linux 3.10.44

2014-06-16 Thread Greg KH
I'm announcing the release of the 3.10.44 kernel. All users of the 3.10 kernel series must upgrade. The updated 3.10.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.10.y and can be browsed at the normal kernel.org git web

Re: Linux 3.10.44

2014-06-16 Thread Greg KH
diff --git a/Makefile b/Makefile index 9cf513828341..e55476c4aef0 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 10 -SUBLEVEL = 43 +SUBLEVEL = 44 EXTRAVERSION = NAME = TOSSUG Baby Fish diff --git a/arch/arm/boot/dts/armada-xp-gp.dts

Re: Linux 3.4.94

2014-06-16 Thread Greg KH
diff --git a/Makefile b/Makefile index 20f420096dfa..0864af4a683b 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 4 -SUBLEVEL = 93 +SUBLEVEL = 94 EXTRAVERSION = NAME = Saber-toothed Squirrel diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index

Linux 3.4.94

2014-06-16 Thread Greg KH
I'm announcing the release of the 3.4.94 kernel. All users of the 3.4 kernel series must upgrade. The updated 3.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.4.y and can be browsed at the normal kernel.org git web browser:

Re: [PATCH -next 12/26] intel: Use dma_zalloc_coherent

2014-06-16 Thread Jeff Kirsher
On Sun, 2014-06-15 at 13:37 -0700, Joe Perches wrote: > Use the zeroing function instead of dma_alloc_coherent & memset(,0,) > > Signed-off-by: Joe Perches Acked-by: Jeff Kirsher > --- > drivers/net/ethernet/intel/ixgb/ixgb_main.c | 6 ++ > 1 file changed, 2 insertions(+), 4 deletions(-)

Re: [PATCH 7/7] mincore: apply page table walker on do_mincore()

2014-06-16 Thread Sasha Levin
AGEALLOC [ 650.352956] Dumping ftrace buffer: [ 650.352956](ftrace buffer empty) [ 650.352956] Modules linked in: [ 650.352956] CPU: 12 PID: 15403 Comm: trinity-c363 Tainted: GW 3.15.0-next-20140616-sasha-00025-g0fd1f7d-dirty #657 [ 650.352956] task: 88027caf3000 ti: 8

Re: [PATCH 11/13] kexec-bzImage: Support for loading bzImage using 64bit entry

2014-06-16 Thread Vivek Goyal
On Mon, Jun 16, 2014 at 10:57:43PM +0200, Borislav Petkov wrote: > On Mon, Jun 16, 2014 at 04:06:08PM -0400, Vivek Goyal wrote: > > There can be more than one loader and the one which claims first > > to recognize the image will get to load the image. So once 32 bit > > loader support comes in, it

Re: [RFC] Turn off -Wmaybe-uninitialized completely and move it to W=1

2014-06-16 Thread Sam Ravnborg
On Mon, Jun 16, 2014 at 03:20:45PM +0200, Borislav Petkov wrote: > Hi, > > so 3.16-rc1 adds this false positive from gcc, see below (triggers on > 4.9 and 4.8.2). Now, it is firing wrong and gcc people tell me there's > no way for the compiler to know that the "from" and "to" values will NOT > be

Re: [RFC PATCH 00/13][V3] kexec: A new system call to allow in kernel loading

2014-06-16 Thread Borislav Petkov
On Tue, Jun 03, 2014 at 09:06:49AM -0400, Vivek Goyal wrote: > This patch series does not do kernel signature verification yet. I > plan to post another patch series for that. Now bzImage is already > signed with PKCS7 signature I plan to parse and verify those > signatures. Btw, do you have a

[PATCH] mfd: cros_ec_spi: set wakeup capability

2014-06-16 Thread Doug Anderson
From: Prathyush K Set the device as wakeup capable and register the wakeup source. Note: Though it makes more sense to have the SPI framework do this, (either via device tree or by board_info) this change is as per an existing mail chain: https://lkml.org/lkml/2009/8/27/291 Signed-off-by:

Re: [PATCH 1/1] PM / Runtime: let rpm_resume fail if rpm disabled and device suspended.

2014-06-16 Thread Rafael J. Wysocki
On Monday, June 16, 2014 01:40:05 PM Alan Stern wrote: > On Sat, 14 Jun 2014, Allen Yu wrote: > > > --- a/drivers/base/power/runtime.c > > +++ b/drivers/base/power/runtime.c > > @@ -608,7 +608,7 @@ static int rpm_resume(struct device *dev, int rpmflags) > > repeat: > > if

Re: [PATCH 07/13] kexec: Implementation of new syscall kexec_file_load

2014-06-16 Thread Borislav Petkov
On Mon, Jun 16, 2014 at 04:53:31PM -0400, Vivek Goyal wrote: > Kdump kernel uses a different command line. It adds extra command line > options to currently running kernels. > > Till recent past we used to pass new kernel's memory map using command > line "memmap=" and when command line size was

[PATCH] mm: page_alloc: simplify drain_zone_pages by using min()

2014-06-16 Thread Michal Nazarewicz
Instead of open-coding getting minimal value of two, just use min macro. That is why it is there for. While changing the function also change type of batch local variable to match type of per_cpu_pages::batch (which is int). Signed-off-by: Michal Nazarewicz --- mm/page_alloc.c | 8 ++-- 1

[PATCH] include: kernel.h: rewrite min3, max3 and clamp using min and max

2014-06-16 Thread Michal Nazarewicz
It appears that gcc is better at optimising a double call to min and max rather than open coded min3 and max3. This can be observed here: $ cat min-max.c #define min(x, y) ({\ typeof(x) _min1 = (x); \ typeof(y) _min2 = (y);

Re: [PATCH v3 2/2] Add support for Compact (Bluetooth|USB) keyboard with Trackpoint

2014-06-16 Thread Antonio Ospite
On Sun, 15 Jun 2014 21:39:50 +0100 Jamie Lentin wrote: This one does not compile on 3.15, see below. Maybe you can take the chance to split the series in 4 patches: 1. rename only 2. cleanup of already existing code 3. preparatory changes to support multiple devices (the

Re: mm: NULL ptr deref in remove_migration_pte

2014-06-16 Thread Sasha Levin
iscriminator 1)) >>>>>> > >>>> [ 2552.320286] RSP >>>>>> > >>>> [ 2552.320286] CR2: 0018 >>> > > >>> > > Sasha, please clarify your Ping: I've seen you say in other mail >>&

Re: [PATCH tty-next 15/22] isdn: tty: Use private flag for ASYNC_CLOSING

2014-06-16 Thread Peter Hurley
Hi David, On 06/16/2014 11:37 AM, David Laight wrote: From: Of Peter Hurley ASYNC_CLOSING is no longer used in the tty core; use private flag info->closing as substitute. ... @@ -311,6 +311,7 @@ typedef struct atemu { typedef struct modem_info { int magic; struct

Re: [PATCH] mm, thp: move invariant bug check out of loop in __split_huge_page_map

2014-06-16 Thread Kirill A. Shutemov
On Mon, Jun 16, 2014 at 11:49:34PM +0300, Kirill A. Shutemov wrote: > On Mon, Jun 16, 2014 at 03:35:48PM -0400, Waiman Long wrote: > > In the __split_huge_page_map() function, the check for > > page_mapcount(page) is invariant within the for loop. Because of the > > fact that the macro is

Re: Writing watchdog_thresh triggers BUG: sleeping function called from invalid context

2014-06-16 Thread Peter Wu
On Monday 16 June 2014 16:52:45 Don Zickus wrote: > On Mon, Jun 16, 2014 at 04:12:44PM +0200, Peter Wu wrote: > > Hi, > > > > Writing to /proc/sys/kernel/watchdog_thresh causes the following BUG in > > at least v3.13-rc2-625-g06151db, v3.15 and v3.16-rc1. Kernel config is > > attached. > > > >

Re: [PATCH 11/13] kexec-bzImage: Support for loading bzImage using 64bit entry

2014-06-16 Thread Borislav Petkov
On Mon, Jun 16, 2014 at 04:06:08PM -0400, Vivek Goyal wrote: > There can be more than one loader and the one which claims first > to recognize the image will get to load the image. So once 32 bit > loader support comes in, it might happen that we ask 64bit loader > first and it rejects the image

Re: [PATCH 07/13] kexec: Implementation of new syscall kexec_file_load

2014-06-16 Thread Vivek Goyal
On Mon, Jun 16, 2014 at 10:05:26PM +0200, Borislav Petkov wrote: > On Mon, Jun 16, 2014 at 01:38:23PM -0400, Vivek Goyal wrote: > > And what's the sane default in this case? > > COMMAND_LINE_SIZE > > > Using current kernel's command line size will not work if future > > kernel decide to support

Re: [PATCH 00/11] qspinlock with paravirt support

2014-06-16 Thread Konrad Rzeszutek Wilk
On Sun, Jun 15, 2014 at 02:46:57PM +0200, Peter Zijlstra wrote: > Since Waiman seems incapable of doing simple things; here's my take on the > paravirt crap. > > The first few patches are taken from Waiman's latest series, but the virt > support is completely new. Its primary aim is to not mess

Re: [PATCH] mm, thp: move invariant bug check out of loop in __split_huge_page_map

2014-06-16 Thread Kirill A. Shutemov
On Mon, Jun 16, 2014 at 03:35:48PM -0400, Waiman Long wrote: > In the __split_huge_page_map() function, the check for > page_mapcount(page) is invariant within the for loop. Because of the > fact that the macro is implemented using atomic_read(), the redundant > check cannot be optimized away by

Re: Writing watchdog_thresh triggers BUG: sleeping function called from invalid context

2014-06-16 Thread Don Zickus
On Mon, Jun 16, 2014 at 04:12:44PM +0200, Peter Wu wrote: > Hi, > > Writing to /proc/sys/kernel/watchdog_thresh causes the following BUG in > at least v3.13-rc2-625-g06151db, v3.15 and v3.16-rc1. Kernel config is > attached. > > It was originally found on bare metal, since then reproduced in

Re: [PATCH 01/11] qspinlock: A simple generic 4-byte queue spinlock

2014-06-16 Thread Konrad Rzeszutek Wilk
On Sun, Jun 15, 2014 at 02:46:58PM +0200, Peter Zijlstra wrote: > From: Waiman Long > > This patch introduces a new generic queue spinlock implementation that > can serve as an alternative to the default ticket spinlock. Compared > with the ticket spinlock, this queue spinlock should be almost

Re: 3.15: kernel BUG at kernel/auditsc.c:1525!

2014-06-16 Thread Richard Weinberger
Am 16.06.2014 22:41, schrieb Toralf Förster: > Well, might be the mail:subject should be adapted, b/c the issue can be > triggered in a 3.13.11 kernel too. > Unfortunately it does not appear within an UML guest, therefore an automated > bisecting isn't possible I fear. You could try KVM. :)

Re: [PATCH] firmware: Add device tree binding for coreboot

2014-06-16 Thread Stephen Warren
On 06/16/2014 07:30 AM, Rob Herring wrote: > On Fri, Jun 13, 2014 at 4:58 PM, Julius Werner wrote: ... >> Rob Herring wrote: >>> Don't you need need to keep the kernel from allocating this memory by >>> using one of the reserved memory mechanisms? The recently added one >>> should be able to

Re: 3.15: kernel BUG at kernel/auditsc.c:1525!

2014-06-16 Thread Toralf Förster
Well, might be the mail:subject should be adapted, b/c the issue can be triggered in a 3.13.11 kernel too. Unfortunately it does not appear within an UML guest, therefore an automated bisecting isn't possible I fear. -- Toralf -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH v3 1/2] Rename hid-lenovo-tpkbd to hid-lenovo, so we can add other keyboards

2014-06-16 Thread Antonio Ospite
On Sun, 15 Jun 2014 21:39:49 +0100 Jamie Lentin wrote: Almost there :) > Signed-off-by: Jamie Lentin > --- > drivers/hid/Kconfig | 14 +- > drivers/hid/Makefile | 2 +- > drivers/hid/hid-core.c | 2 +- >

Re: [PATCH] drm/msm: update and activate iommu support

2014-06-16 Thread Rob Clark
On Mon, Jun 16, 2014 at 2:20 PM, Stephane Viau wrote: > This changes activates the iommu support for MDP5, through the > platform config structure. > > Iommu support is also slightly modified in order to make sure > that MDP iommu is properly cleaned up if a probe deferral is > requested. Before

Re: [patch V2 5/5] futex: Simplify futex_lock_pi_atomic() and make it more robust

2014-06-16 Thread Darren Hart
On Fri, 2014-06-13 at 11:44 +0200, Thomas Gleixner wrote: > Subject: futex: Simplify futex_lock_pi_atomic() and make it more robust > From: Thomas Gleixner > Date: Wed, 11 Jun 2014 20:45:41 - > > futex_lock_pi_atomic() is a maze of retry hoops and loops. > > Reduce it to simple and

Re: [PATCH] tile: use ARRAY_SIZE

2014-06-16 Thread Chris Metcalf
On 6/16/2014 4:12 PM, Himangi Saraogi wrote: ARRAY_SIZE is more concise to use when the size of an array is divided by the size of its type or the size of its first element. The semantic patch that makes this change is as follows: // @i@ @@ @@ type T; T[] E; @@ - (sizeof(E)/sizeof(T)) +

[PATCH v2] firmware: Add device tree binding for coreboot

2014-06-16 Thread Julius Werner
This patch adds documentation describing a device tree binding for the coreboot firmware. It is meant to be dynamically added during boot and contains address definitions for the coreboot table (a list of variable-sized descriptors providing information about various compile- and run-time

Re: [RFC] printk: allow increasing the ring buffer depending on the number of CPUs

2014-06-16 Thread Chris Metcalf
On 6/12/2014 2:45 PM, Joe Perches wrote: (adding Chris Metcalf for arch/tile, I think this change might impact that arch) Thanks for the Cc. I've been following the discussion and I think it's on the right track for arch/tile. -- Chris Metcalf, Tilera Corp. http://www.tilera.com -- To

[PATCH] mfd: wm8994: Add a bunch of missing defaults/readables

2014-06-16 Thread Charles Keepax
Ever since this commit: commit d4807ad2c4c0e17b6f00e3be9492c81de0804f40 regmap: Check readable regs in _regmap_read Regmap will refuse to read a register which is not marked as readable, this has highlighted a number of controls in this driver which are not marked as readable/missing defaults.

Re: [PATCH 1/2] phy: qcom: Add driver for QCOM IPQ806x SATA PHY

2014-06-16 Thread Kumar Gala
On Jun 16, 2014, at 5:04 AM, Kishon Vijay Abraham I wrote: > Hi, > > On Friday 13 June 2014 12:48 AM, Kumar Gala wrote: >> Add a PHY driver for uses with AHCI based SATA controller driver on the >> IPQ806x family of SoCs. >> >> Signed-off-by: Kumar Gala >> --- >> drivers/phy/Kconfig

Re: [PATCH] firmware: Add device tree binding for coreboot

2014-06-16 Thread Julius Werner
On Mon, Jun 16, 2014 at 6:30 AM, Rob Herring wrote: > On Fri, Jun 13, 2014 at 4:58 PM, Julius Werner wrote: >>> This is just to export a fixed log to userspace (like a DMI table) or >>> the kernel will actually use the data in some way? Based on the link, >>> it looks like the former to me. >>

Re: [PATCH 0/4] Volatile Ranges (v14 - madvise reborn edition!)

2014-06-16 Thread John Stultz
On Tue, Jun 3, 2014 at 7:57 AM, Johannes Weiner wrote: > On Thu, May 08, 2014 at 10:12:40AM -0700, John Stultz wrote: >> On 04/29/2014 02:21 PM, John Stultz wrote: >> > Another few weeks and another volatile ranges patchset... >> > >> > After getting the sense that the a major objection to the

[PATCH] tile: use ARRAY_SIZE

2014-06-16 Thread Himangi Saraogi
ARRAY_SIZE is more concise to use when the size of an array is divided by the size of its type or the size of its first element. The semantic patch that makes this change is as follows: // @i@ @@ @@ type T; T[] E; @@ - (sizeof(E)/sizeof(T)) + ARRAY_SIZE(E) // Signed-off-by: Himangi Saraogi

[PATCH] SELinux: use ARRAY_SIZE

2014-06-16 Thread Himangi Saraogi
ARRAY_SIZE is more concise to use when the size of an array is divided by the size of its type or the size of its first element. The Coccinelle semantic patch that makes this change is as follows: // @@ type T; T[] E; @@ - (sizeof(E)/sizeof(E[...])) + ARRAY_SIZE(E) // Signed-off-by: Himangi

Re: [PATCH 1/8] mfd: Add support for DA9150 combined charger & fuel-gauge device

2014-06-16 Thread Jonathan Cameron
On 16/06/14 14:12, Opensource [Adam Thomson] wrote: On Sun, Jun 15, 2014 at 20:49, Jonathan Cameron wrote: Hi Adam, Some general comments inline. It's been a while since I've looked at any particularly similar parts, but it seems to me that a lot of indirection gets added here that if

[PATCH] zorro: use ARRAY_SIZE

2014-06-16 Thread Himangi Saraogi
ARRAY_SIZE is more concise to use when the size of an array is divided by the size of its type or the size of its first element. The Coccinelle semantic patch that makes this change is as follows: // @@ type T; T[] E; @@ - (sizeof(E)/sizeof(T)) + ARRAY_SIZE(E) // Signed-off-by: Himangi

Re: [PATCH 09/13] purgatory: Core purgatory functionality

2014-06-16 Thread Borislav Petkov
On Mon, Jun 16, 2014 at 01:25:38PM -0400, Vivek Goyal wrote: > I tried following with CONFIG_KEXEC=n > > ifeq ($(CONFIG_KEXEC),y) > $(Q)$(MAKE) $(clean)=arch/x86/purgatory > endif > > And still "make V=1 clean" shows me that it is going in purgatory dir > to clean things up. So add the

Re: [RFC PATCH 3/4] drm/tegra: Request memory bandwidth for the display controller

2014-06-16 Thread Stephen Warren
On 06/16/2014 07:35 AM, Tomeu Vizoso wrote: > Request it based solely on the current mode's refresh rate. More > accurate requirements can be requested in future patches. > diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c > + bandwidth = mode->clock *

Re: [PATCH 11/13] kexec-bzImage: Support for loading bzImage using 64bit entry

2014-06-16 Thread Vivek Goyal
On Sun, Jun 15, 2014 at 06:35:15PM +0200, Borislav Petkov wrote: [..] > > +int bzImage64_probe(const char *buf, unsigned long len) > > +{ > > + int ret = -ENOEXEC; > > + struct setup_header *header; > > + > > + /* kernel should be atleast two sector long */ > >

Re: [PATCH] Check for Null return from logfs_readpage_nolock in btree_write_block

2014-06-16 Thread Mateusz Guzik
On Mon, Jun 16, 2014 at 03:47:01PM -0400, Nicholas Krause wrote: > Signed-off-by: Nicholas Krause > --- > fs/logfs/readwrite.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/fs/logfs/readwrite.c b/fs/logfs/readwrite.c > index 4814031..adb9233 100644 > --- a/fs/logfs/readwrite.c >

Re: [PATCH 07/13] kexec: Implementation of new syscall kexec_file_load

2014-06-16 Thread Borislav Petkov
On Mon, Jun 16, 2014 at 01:38:23PM -0400, Vivek Goyal wrote: > And what's the sane default in this case? COMMAND_LINE_SIZE > Using current kernel's command line size will not work if future > kernel decide to support even longer command line size. When do you ever get to kexec a kernel with

Re: [PATCH v7] iio: add support of the max1027

2014-06-16 Thread Jonathan Cameron
On 14/06/14 23:27, Philippe Reynes wrote: This driver add partial support of the maxim 1027/1029/1031. Differential mode is not supported. It was tested on armadeus apf27 board. Signed-off-by: Philippe Reynes I'm happy with this now. Hartmut, anything else you want to raise, or do you want

[PATCH v3 1/2] phy: qcom: Add driver for QCOM IPQ806x SATA PHY

2014-06-16 Thread Kumar Gala
Add a PHY driver for uses with AHCI based SATA controller driver on the IPQ806x family of SoCs. Signed-off-by: Kumar Gala --- v3: * Added Kconfig HAS_IOMEM dep * re-ordered probe function so phy_provider_register is last v2: * dropped unused dev pointer in struct qcom_ipq806x_sata_phy *

Re: [RFC PATCH 1/4] memory: tegra124-emc: Add EMC driver

2014-06-16 Thread Stephen Warren
On 06/16/2014 07:35 AM, Tomeu Vizoso wrote: > Adds functionality for registering memory bandwidth needs and setting > the EMC clock rate based on that. > > Also adds API for setting floor and ceiling frequency rates. > diff --git >

[PATCH] audit: use atomic_t to simplify audit_serial()

2014-06-16 Thread Richard Guy Briggs
Since there is already a primitive to do this operation in the atomic_t, use it to simplify audit_serial(). Signed-off-by: Richard Guy Briggs --- kernel/audit.c | 14 ++ 1 files changed, 2 insertions(+), 12 deletions(-) diff --git a/kernel/audit.c b/kernel/audit.c index

Re: [PATCH] hugetlb: fix copy_hugetlb_page_range() to handle migration/hwpoisoned entry

2014-06-16 Thread Naoya Horiguchi
On Sun, Jun 15, 2014 at 05:19:29PM -0700, Hugh Dickins wrote: > On Fri, 6 Jun 2014, Naoya Horiguchi wrote: > > > There's a race between fork() and hugepage migration, as a result we try to > > "dereference" a swap entry as a normal pte, causing kernel panic. > > The cause of the problem is that

[patch 01/12] mm: memcontrol: fold mem_cgroup_do_charge()

2014-06-16 Thread Johannes Weiner
This function was split out because mem_cgroup_try_charge() got too big. But having essentially one sequence of operations arbitrarily split in half is not good for reworking the code. Fold it back in. Signed-off-by: Johannes Weiner Acked-by: Michal Hocko --- mm/memcontrol.c | 166

[patch 02/12] mm: memcontrol: rearrange charging fast path

2014-06-16 Thread Johannes Weiner
The charging path currently starts out with OOM condition checks when OOM is the rarest possible case. Rearrange this code to run OOM/task dying checks only after trying the percpu charge and the res_counter charge and bail out before entering reclaim. Attempting a charge does not hurt an

[patch 04/12] mm: memcontrol: retry reclaim for oom-disabled and __GFP_NOFAIL charges

2014-06-16 Thread Johannes Weiner
There is no reason why oom-disabled and __GFP_NOFAIL charges should try to reclaim only once when every other charge tries several times before giving up. Make them all retry the same number of times. Signed-off-by: Johannes Weiner --- mm/memcontrol.c | 8 1 file changed, 4

[patch 00/12] mm: memcontrol: naturalize charge lifetime v3

2014-06-16 Thread Johannes Weiner
Hi, this is v3 of the memcg charge naturalization series. Changes since v2 include: o make THP charges use __GFP_NORETRY to prevent excessive reclaim (Michal) o simplify move precharging while in the area o add acks & rebase to v3.16-rc1 These patches rework memcg charge lifetime to integrate

[patch 06/12] mm: memcontrol: simplify move precharge function

2014-06-16 Thread Johannes Weiner
The move precharge function does some baroque things: it tries raw res_counter charging of the entire amount first, and then falls back to a loop of one-by-one charges, with checks for pending signals and cond_resched() batching. Just use mem_cgroup_try_charge() without __GFP_WAIT for the first

[patch 03/12] mm: huge_memory: use GFP_TRANSHUGE when charging huge pages

2014-06-16 Thread Johannes Weiner
Transparent huge page charges prefer falling back to regular pages rather than spending a lot of time in direct reclaim. Desired reclaim behavior is usually declared in the gfp mask, but THP charges use GFP_KERNEL and then rely on the fact that OOM is disabled for THP charges, and that

[PATCH] audit: use union for audit_field values since they are mutually exclusive

2014-06-16 Thread Richard Guy Briggs
Since only one of val, uid and gid are used at any given time, combine them to reduce the size of the struct audit_field. Signed-off-by: Richard Guy Briggs --- include/linux/audit.h |8 +--- kernel/auditfilter.c |2 -- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git

[patch 10/12] mm: memcontrol: do not acquire page_cgroup lock for kmem pages

2014-06-16 Thread Johannes Weiner
Kmem page charging and uncharging is serialized by means of exclusive access to the page. Do not take the page_cgroup lock and don't set pc->flags atomically. Signed-off-by: Johannes Weiner Acked-by: Michal Hocko Acked-by: Vladimir Davydov --- mm/memcontrol.c | 21 +++-- 1

[patch 09/12] mm: memcontrol: remove ordering between pc->mem_cgroup and PageCgroupUsed

2014-06-16 Thread Johannes Weiner
There is a write barrier between setting pc->mem_cgroup and PageCgroupUsed, which was added to allow LRU operations to lookup the memcg LRU list of a page without acquiring the page_cgroup lock. But ever since 38c5d72f3ebe ("memcg: simplify LRU handling by new rule"), pages are ensured to be

[patch 07/12] mm: memcontrol: catch root bypass in move precharge

2014-06-16 Thread Johannes Weiner
When mem_cgroup_try_charge() returns -EINTR, it bypassed the charge to the root memcg. But move precharging does not catch this and treats this case as if no charge had happened, thus leaking a charge against root. Because of an old optimization, the root memcg's res_counter is not actually

[patch 11/12] mm: memcontrol: rewrite charge API

2014-06-16 Thread Johannes Weiner
The memcg charge API charges pages before they are rmapped - i.e. have an actual "type" - and so every callsite needs its own set of charge and uncharge functions to know what type is being operated on. Worse, uncharge has to happen from a context that is still type-specific, rather than at the

[patch 08/12] mm: memcontrol: use root_mem_cgroup res_counter

2014-06-16 Thread Johannes Weiner
Due to an old optimization to keep expensive res_counter changes at a minimum, the root_mem_cgroup res_counter is never charged; there is no limit at that level anyway, and any statistics can be generated on demand by summing up the counters of all other cgroups. However, with per-cpu charge

[PATCH] audit: reduce scope of audit_log_fcaps

2014-06-16 Thread Richard Guy Briggs
audit_log_fcaps() isn't used outside kernel/audit.c. Reduce its scope. Signed-off-by: Richard Guy Briggs --- kernel/audit.c |2 +- kernel/audit.h |1 - 2 files changed, 1 insertions(+), 2 deletions(-) diff --git a/kernel/audit.c b/kernel/audit.c index bdd0172..3225a5d 100644 ---

[patch 05/12] mm: memcontrol: reclaim at least once for __GFP_NORETRY

2014-06-16 Thread Johannes Weiner
Currently, __GFP_NORETRY tries charging once and gives up before even trying to reclaim. Bring the behavior on par with the page allocator and reclaim at least once before giving up. Signed-off-by: Johannes Weiner Acked-by: Michal Hocko --- mm/memcontrol.c | 6 +++--- 1 file changed, 3

[PATCH] audit: reduce scope of audit_net_id

2014-06-16 Thread Richard Guy Briggs
audit_net_id isn't used outside kernel/audit.c. Reduce its scope. Signed-off-by: Richard Guy Briggs --- kernel/audit.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kernel/audit.c b/kernel/audit.c index 59c0bbe..bdd0172 100644 --- a/kernel/audit.c +++

[PATCH] audit: fix dangling keywords in integrity ima message output

2014-06-16 Thread Richard Guy Briggs
Replace spaces in op keyword labels in log output since userspace audit tools can't parse orphaned keywords. Reported-by: Steve Grubb Signed-off-by: Richard Guy Briggs --- security/integrity/ima/ima_appraise.c |2 +- security/integrity/ima/ima_policy.c |6 +++--- 2 files changed, 4

[PATCH v2] sched: Fast idling of CPU when system is partially loaded

2014-06-16 Thread Tim Chen
Thanks to the review from Jason and Peter. I've moved the check of whether load balance is required into fair.c's idle_balance. When a system is lightly loaded (i.e. no more than 1 job per cpu), attempt to pull job to a cpu before putting it to idle is unnecessary and can be skipped. This patch

[PATCH] Documentation: corrected sub-chapter number

2014-06-16 Thread Richard Guy Briggs
The index is correct, but there are two sections tagged 3.7. Fix. Signed-off-by: Richard Guy Briggs --- Documentation/filesystems/proc.txt |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt index

[PATCH] Check for Null return from logfs_readpage_nolock in btree_write_block

2014-06-16 Thread Nicholas Krause
Signed-off-by: Nicholas Krause --- fs/logfs/readwrite.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/logfs/readwrite.c b/fs/logfs/readwrite.c index 4814031..adb9233 100644 --- a/fs/logfs/readwrite.c +++ b/fs/logfs/readwrite.c @@ -2210,6 +2210,8 @@ void btree_write_block(struct

[PATCH v5 1/5] devicetree: bindings: document Broadcom CPU enable method

2014-06-16 Thread Alex Elder
Broadcom mobile SoCs use a ROM-implemented holding pen for controlled boot of secondary cores. A special register is used to communicate to the ROM that a secondary core should start executing kernel code. This enable method is currently used for members of the bcm281xx and bcm21664 SoC

[PATCH v5 4/5] ARM: dts: enable SMP support for bcm28155

2014-06-16 Thread Alex Elder
Define nodes representing the two Cortex A9 CPUs in a bcm28155 SoC. Signed-off-by: Ray Jui Signed-off-by: Alex Elder --- arch/arm/boot/dts/bcm11351.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/bcm11351.dtsi b/arch/arm/boot/dts/bcm11351.dtsi

[PATCH v5 5/5] ARM: dts: enable SMP support for bcm21664

2014-06-16 Thread Alex Elder
Define nodes representing the two Cortex A9 CPUs in a bcm21644 SoC. Signed-off-by: Alex Elder --- arch/arm/boot/dts/bcm21664.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/bcm21664.dtsi b/arch/arm/boot/dts/bcm21664.dtsi index 8b36682..2016b72

[PATCH v5 3/5] ARM: configs: enable SMP in bcm_defconfig

2014-06-16 Thread Alex Elder
Also explicitly set CONFIG_NR_CPUS to 2, limiting it to the most we currently need. Signed-off-by: Ray Jui Signed-off-by: Alex Elder --- arch/arm/configs/bcm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/bcm_defconfig b/arch/arm/configs/bcm_defconfig index

[PATCH v5 2/5] ARM: add SMP support for Broadcom mobile SoCs

2014-06-16 Thread Alex Elder
This patch adds SMP support for BCM281XX and BCM21664 family SoCs. This feature is controlled with a distinct config option such that an SMP-enabled multi-v7 binary can be configured to run these SoCs in uniprocessor mode. Since this SMP functionality is used for multiple Broadcom mobile chip

[PATCH v5 0/5] ARM: SMP: support Broadcom mobile SoCs

2014-06-16 Thread Alex Elder
This series adds SMP support for two Broadcom mobile SoC families. It uses CPU_METHOD_OF_DECLARE() so that SMP operations are assigned using device tree rather than adding it to a machine definition in a board file. The enable method starts a secondary core by writing to a register monitored by

[PATCH] mm, thp: move invariant bug check out of loop in __split_huge_page_map

2014-06-16 Thread Waiman Long
In the __split_huge_page_map() function, the check for page_mapcount(page) is invariant within the for loop. Because of the fact that the macro is implemented using atomic_read(), the redundant check cannot be optimized away by the compiler leading to unnecessary read to the page structure. This

Re: [PATCH] mm: Move __vma_address() to internal.h to be inlined in huge_memory.c

2014-06-16 Thread Waiman Long
On 06/12/2014 05:45 PM, David Rientjes wrote: On Thu, 12 Jun 2014, Waiman Long wrote: The vma_address() function which is used to compute the virtual address within a VMA is used only by 2 files in the mm subsystem - rmap.c and huge_memory.c. This function is defined in rmap.c and is inlined

<    1   2   3   4   5   6   7   8   9   10   >