[PATCH 1/1] fs/squashfs/file_direct.c: replace count*size kmalloc by kcalloc

2014-06-16 Thread Fabian Frederick
kcalloc manages count*sizeof overflow. Cc: Phillip Lougher phil...@squashfs.org.uk Cc: Andrew Morton a...@linux-foundation.org Signed-off-by: Fabian Frederick f...@skynet.be --- fs/squashfs/file_direct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 1/3] ARM: dts: Create a cros-ec-keyboard fragment

2014-06-16 Thread Stephen Warren
On 06/04/2014 04:20 PM, Doug Anderson wrote: All ChromeOS ARM devices that have the standard CrOS EC have the same keyboard mapping. It's silly to include this same definition everywhere. Let's create a dtsi fragment that we can include from many different boards. This fragment is based

[PATCH v2 08/10] clk: Add driver for Maxim 77802 PMIC clocks

2014-06-16 Thread Javier Martinez Canillas
The MAX77802 PMIC has two 32.768kHz Buffered Clock Outputs with Low Jitter Mode. This patch adds support for these two clocks. Signed-off-by: Javier Martinez Canillas javier.marti...@collabora.co.uk --- Changes since v1: - Use module_platform_driver() instead of having init/exit functions.

[PATCH 1/1] fs/ecryptfs/messaging.c: remove null test before kfree

2014-06-16 Thread Fabian Frederick
Fix checkpatch warning: WARNING: kfree(NULL) is safe this check is probably not required Cc: Tyler Hicks tyhi...@canonical.com Cc: ecryp...@vger.kernel.org Signed-off-by: Fabian Frederick f...@skynet.be --- fs/ecryptfs/messaging.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[PATCH 9/9] perf bench: futex: Support operations for shared futexes

2014-06-16 Thread Davidlohr Bueso
Unlike futex-hash, requeuing and wakeup benchmarks do not support shared futexes, limiting the usefulness of the programs. Correct this, and allow using the local -S parameter. The default remains using private futexes. Signed-off-by: Davidlohr Bueso davidl...@hp.com ---

[PATCH 5/9] perf bench: futex: Use global --repeat option

2014-06-16 Thread Davidlohr Bueso
This option is available through perf-bench, use it instead and free the local option. Signed-off-by: Davidlohr Bueso davidl...@hp.com --- tools/perf/bench/futex-requeue.c | 10 +- tools/perf/bench/futex-wake.c| 12 ++-- 2 files changed, 3 insertions(+), 19 deletions(-) diff

[PATCH 8/9] perf bench: sched-messaging: Drop barf()

2014-06-16 Thread Davidlohr Bueso
Instead of reinventing the wheel, we can use err(2) when dealing with fatal errors. Exit code is now always EXIT_FAILURE (1). Signed-off-by: Davidlohr Bueso davidl...@hp.com --- tools/perf/bench/sched-messaging.c | 45 -- 1 file changed, 19 insertions(+), 26

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

2014-06-16 Thread Andy Lutomirski
On Mon, Jun 16, 2014 at 10:59 AM, Toralf Förster toralf.foers...@gmx.de wrote: On 06/16/2014 07:50 PM, Andy Lutomirski wrote: cc: eparis. This might be a new audit bug. On Mon, Jun 16, 2014 at 10:36 AM, Toralf Förster toralf.foers...@gmx.de wrote: On 06/16/2014 07:32 PM, Andy Lutomirski

[PATCH 7/9] perf bench: mem: -o and -n options are mutually exclusive

2014-06-16 Thread Davidlohr Bueso
-o, --only-prefault Show only the result with page faults before mem* -n, --no-prefault Show only the result without page faults before mem* Makes no sense to call together. Applies to both memset and memcpy. Signed-off-by: Davidlohr Bueso davidl...@hp.com ---

[PATCH 6/9] perf bench: futex: Replace --silent option with global --format

2014-06-16 Thread Davidlohr Bueso
Using the already existing '--format simple' option in perf-bench is/should be equivalent to disabling any verbose output. Replace it and free up the -s option specific to the futex benchmark. Furthermore only show the raw output if used, as it is intended to make scripting/parsing easier.

[PATCH v2] net: tile: fix unused variable warning

2014-06-16 Thread Chris Metcalf
'i' is unused in tile_net_dev_init() after commit d581ebf5a1f (net: tile: Use helpers from linux/etherdevice.h to check/set MAC). Signed-off-by: Chris Metcalf cmetc...@tilera.com --- v2: includes previous commit's summary line as suggested by Sergei Shtylyov. drivers/net/ethernet/tile/tilegx.c

[PATCH 4/9] perf bench: sched-messaging: Plug memleak

2014-06-16 Thread Davidlohr Bueso
Explicitly free the thread array ('pth_tab'). Signed-off-by: Davidlohr Bueso davidl...@hp.com --- tools/perf/bench/sched-messaging.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/perf/bench/sched-messaging.c b/tools/perf/bench/sched-messaging.c index 096ef5a..b519ba4 100644 ---

[PATCH 0/9] perf bench: Updates for 3.17

2014-06-16 Thread Davidlohr Bueso
First set of various updates for the perf-bench tool. I am in the process of adding more benchmarks (ipc futex) but wanted to get these changes in early in the -rc cycle. Patches 3 5 depend on the first patch, otherwise updates are pretty much without order. Please consider applying. Thanks!

[PATCH 2/9] perf bench: sched-messaging: Redo runtime output

2014-06-16 Thread Davidlohr Bueso
Instead of printing sec and usec individually, simplify into a 'runtime' variable to later use accordingly. This is particularly helpful when later adding multiple runs and collecting statistics. Signed-off-by: Davidlohr Bueso davidl...@hp.com --- tools/perf/bench/sched-messaging.c | 13

[PATCH 3/9] perf bench: sched-messaging: Support multiple runs

2014-06-16 Thread Davidlohr Bueso
Make use of the new --repeat option in perf-bench to allow multiple runs. This makes the avg final result much more useful for users, including displaying statistics. Also move up the general information output to be showed before the actual run is done, thus allowing the user to know what's

[PATCH 1/9] perf bench: Add --repeat option

2014-06-16 Thread Davidlohr Bueso
There are a number of benchmarks that do single runs and as a result does not really help users gain a general idea of how the workload performs. So the user must either manually do multiple runs or just use single bogus results. This option will enable users to specify the amount of runs

Re: [PATCH] infiniband: Fixes memory leak in send_flowc

2014-06-16 Thread Steve Wise
On 6/16/2014 12:49 PM, Nicholas Krause wrote: Signed-off-by: Nicholas Krause xerofo...@gmail.com --- drivers/infiniband/hw/cxgb4/cm.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index

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

2014-06-16 Thread Toralf Förster
On 06/16/2014 08:15 PM, Andy Lutomirski wrote: On Mon, Jun 16, 2014 at 10:59 AM, Toralf Förster toralf.foers...@gmx.de wrote: On 06/16/2014 07:50 PM, Andy Lutomirski wrote: cc: eparis. This might be a new audit bug. On Mon, Jun 16, 2014 at 10:36 AM, Toralf Förster toralf.foers...@gmx.de

[PATCH 0/3] ROMFS logging clean-up

2014-06-16 Thread Fabian Frederick
This small patchset converts romfs to current logging functions and fixes some checkpatch warnings. Fabian Frederick (3): fs/romfs/super.c: convert printk to pr_foo() fs/romfs/super.c: use pr_fmt in logging fs/romfs/super.c: add blank line after declarations. fs/romfs/super.c | 23

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

2014-06-16 Thread Andy Lutomirski
On Mon, Jun 16, 2014 at 11:21 AM, Toralf Förster toralf.foers...@gmx.de wrote: On 06/16/2014 08:15 PM, Andy Lutomirski wrote: On Mon, Jun 16, 2014 at 10:59 AM, Toralf Förster toralf.foers...@gmx.de wrote: On 06/16/2014 07:50 PM, Andy Lutomirski wrote: cc: eparis. This might be a new audit

[PATCH 1/3] fs/romfs/super.c: convert printk to pr_foo()

2014-06-16 Thread Fabian Frederick
Use current logging functions. +coalesce formats Cc: Al Viro v...@zeniv.linux.org.uk Cc: Andrew Morton a...@linux-foundation.org Signed-off-by: Fabian Frederick f...@skynet.be --- fs/romfs/super.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git

Re: [patch] checkpatch: warn on missing spaces in broken up quoted strings

2014-06-16 Thread Joe Perches
On Mon, 2014-06-16 at 09:40 +0300, Dan Carpenter wrote: On Fri, Jun 13, 2014 at 12:52:25PM -0700, Joe Perches wrote: On Fri, 2014-06-13 at 12:46 +0300, Dan Carpenter wrote: On Fri, Jun 13, 2014 at 02:30:22AM -0700, Joe Perches wrote: +# check for missing a space in a string

[PATCH 2/3] fs/romfs/super.c: use pr_fmt in logging

2014-06-16 Thread Fabian Frederick
-Remove Error in format logging (already in pr_ level) -Use modulename in pr_fmt instead of ROMFS: in each pr_ callsites. Cc: Al Viro v...@zeniv.linux.org.uk Cc: Andrew Morton a...@linux-foundation.org Signed-off-by: Fabian Frederick f...@skynet.be --- fs/romfs/super.c | 15 --- 1

3.16-rc1 kernel BUG triggered at mutex.c:586

2014-06-16 Thread Vlad Yasevich
Trying to boot 3.16.0-rc1+ (the + is a small vlan related patch) on a tests system triggers the following BUG: Jun 16 13:54:50 scratch kernel: BUG: sleeping function called from invalid context at kernel/locking/mutex.c:586 Jun 16 13:54:50 scratch kernel: in_atomic(): 1, irqs_disabled(): 1, pid:

Re: [PATCH 1/3] ARM: dts: Create a cros-ec-keyboard fragment

2014-06-16 Thread Doug Anderson
Kukjin, On Mon, Jun 16, 2014 at 11:14 AM, Stephen Warren swar...@wwwdotorg.org wrote: On 06/04/2014 04:20 PM, Doug Anderson wrote: All ChromeOS ARM devices that have the standard CrOS EC have the same keyboard mapping. It's silly to include this same definition everywhere. Let's create a

[PATCH] infinibad: fix memory leak in function send_flowc

2014-06-16 Thread Nicholas Krause
Signed-off-by: Nicholas Krause xerofo...@gmail.com --- drivers/infiniband/hw/cxgb4/cm.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index 5e153f6..c518411 100644 --- a/drivers/infiniband/hw/cxgb4/cm.c

[PATCH 3/3] fs/romfs/super.c: add blank line after declarations.

2014-06-16 Thread Fabian Frederick
Fix checkpatch warning: WARNING: Missing a blank line after declarations Cc: Al Viro v...@zeniv.linux.org.uk Cc: Andrew Morton a...@linux-foundation.org Signed-off-by: Fabian Frederick f...@skynet.be --- fs/romfs/super.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/romfs/super.c

[PATCH v2] perf: Get kernel start address by symbol name

2014-06-16 Thread Simon Que
The function machine__get_kernel_start_addr() was taking the first symbol of kallsyms as the start address. This is incorrect in certain cases where the first symbol is something at 0, while the actual kernel functions begin at a later point (e.g. 0x8020). This patch fixes

Re: [PATCH] infinibad: fix memory leak in function send_flowc

2014-06-16 Thread Steve Wise
On 6/16/2014 1:30 PM, Nicholas Krause wrote: Signed-off-by: Nicholas Krause xerofo...@gmail.com --- drivers/infiniband/hw/cxgb4/cm.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index

Re: [PATCH] ARM: EXYNOS: mcpm: Don't rely on firmware's secondary_cpu_start

2014-06-16 Thread Doug Anderson
Kukjin, On Wed, Jun 11, 2014 at 8:28 AM, Kukjin Kim kgene@samsung.com wrote: On 06/12/14 00:19, Doug Anderson wrote: Chander, On Tue, Jun 10, 2014 at 9:52 PM, Chander Kashyapk.chan...@samsung.com wrote: Hi Doug, On Tue, Jun 10, 2014 at 9:19 PM, Nicolas Pitrenicolas.pi...@linaro.org

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

2014-06-16 Thread Toralf Förster
On 06/16/2014 08:24 PM, Andy Lutomirski wrote: On Mon, Jun 16, 2014 at 11:21 AM, Toralf Förster toralf.foers...@gmx.de wrote: On 06/16/2014 08:15 PM, Andy Lutomirski wrote: On Mon, Jun 16, 2014 at 10:59 AM, Toralf Förster toralf.foers...@gmx.de wrote: On 06/16/2014 07:50 PM, Andy

Re: [PATCH v2] ARM: EXYNOS: mcpm: Don't rely on firmware's secondary_cpu_start

2014-06-16 Thread Doug Anderson
Nicolas, On Mon, Jun 9, 2014 at 1:55 PM, Nicolas Pitre nicolas.pi...@linaro.org wrote: On Mon, 9 Jun 2014, Kevin Hilman wrote: On Mon, Jun 9, 2014 at 1:22 PM, Nicolas Pitre nicolas.pi...@linaro.org wrote: On Mon, 9 Jun 2014, Andrew Bresticker wrote: [1] While waiting for the

Re: [PATCH 1/1] fs/squashfs/file_direct.c: replace count*size kmalloc by kcalloc

2014-06-16 Thread Joe Perches
On Mon, 2014-06-16 at 20:12 +0200, Fabian Frederick wrote: kcalloc manages count*sizeof overflow. so does kmalloc_array diff --git a/fs/squashfs/file_direct.c b/fs/squashfs/file_direct.c [] - page = kmalloc(sizeof(void *) * pages, GFP_KERNEL); + page = kcalloc(pages, sizeof(void *),

Re: netconsole breaks netpoll on bridge

2014-06-16 Thread Stefan Priebe - Profihost AG
Am 16.06.2014 um 20:05 schrieb Cong Wang cw...@twopensource.com: On Mon, Jun 16, 2014 at 5:51 AM, Stefan Priebe - Profihost AG s.pri...@profihost.ag wrote: Hi, i'm using a vanilla 3.10.43 kernel and netconsole on top of a bridge. netconsole is used with vmbr0 (bridge) which is on top

[PATCH v3 3/3] regulator: qcom-rpm: Regulator driver for the Qualcomm RPM

2014-06-16 Thread Bjorn Andersson
Driver for regulators exposed by the Resource Power Manager (RPM) found in Qualcomm 8660, 8960 and 8064 based devices. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- drivers/regulator/Kconfig | 12 + drivers/regulator/Makefile | 1 +

Re: [PATCH] infinibad: fix memory leak in function send_flowc

2014-06-16 Thread Steve Wise
On 6/16/2014 1:34 PM, Steve Wise wrote: On 6/16/2014 1:30 PM, Nicholas Krause wrote: Signed-off-by: Nicholas Krause xerofo...@gmail.com --- drivers/infiniband/hw/cxgb4/cm.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/cxgb4/cm.c

Re: [PATCH v5 4/7] xen: Put EFI machinery in place

2014-06-16 Thread Daniel Kiper
On Mon, Jun 16, 2014 at 12:55:35PM +0100, Stefano Stabellini wrote: On Fri, 13 Jun 2014, Daniel Kiper wrote: This patch enables EFI usage under Xen dom0. Standard EFI Linux Kernel infrastructure cannot be used because it requires direct access to EFI data and code. However, in dom0 case it

[PATCH v3 2/3] soc: qcom-rpm: Driver for the Qualcomm RPM

2014-06-16 Thread Bjorn Andersson
Driver for the Resource Power Manager (RPM) found in Qualcomm 8660, 8960 and 8064 based devices. The driver exposes resources that child drivers can operate on; to implementing regulator, clock and bus frequency drivers. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com ---

[PATCH v3 0/3] Qualcomm Resource Power Manager driver

2014-06-16 Thread Bjorn Andersson
This series adds a regulator driver for the Resource Power Manager found in Qualcomm 8660, 8960 and 8064 based devices. The RPM driver exposes resources to its child devices, that can be accessed to implement drivers for the regulators, clocks and bus frequency control that's owned by the RPM in

[PATCH v3 1/3] soc: devicetree: bindings: Add Qualcomm RPM DT binding

2014-06-16 Thread Bjorn Andersson
Add binding for the Qualcomm Resource Power Manager (RPM) found in 8660, 8960 and 8064 based devices. The binding currently describes the rpm itself and the regulator subnodes. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- .../devicetree/bindings/soc/qcom/qcom,rpm.txt |

[PATCHv2] iw_cxgb4: in send_flowc(), handle a skb return from get_skb()

2014-06-16 Thread Nicholas Krause
diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index 5e153f6..e0c43a3 100644 --- a/drivers/infiniband/hw/cxgb4/cm.c +++ b/drivers/infiniband/hw/cxgb4/cm.c @@ -457,6 +457,10 @@ static void send_flowc(struct c4iw_ep *ep, struct sk_buff *skb) int i;

Re: [PATCH v2] ARM: EXYNOS: mcpm: Don't rely on firmware's secondary_cpu_start

2014-06-16 Thread Nicolas Pitre
On Mon, 16 Jun 2014, Doug Anderson wrote: Nicolas, On Mon, Jun 9, 2014 at 1:55 PM, Nicolas Pitre nicolas.pi...@linaro.org wrote: On Mon, 9 Jun 2014, Kevin Hilman wrote: On Mon, Jun 9, 2014 at 1:22 PM, Nicolas Pitre nicolas.pi...@linaro.org wrote: On Mon, 9 Jun 2014, Andrew

[PATCH V2] fs/squashfs/file_direct.c: replace count*size kmalloc by kmalloc_array

2014-06-16 Thread Fabian Frederick
kmalloc_array manages count*sizeof overflow. Cc: Phillip Lougher phil...@squashfs.org.uk Cc: Andrew Morton a...@linux-foundation.org Cc: Joe Perches j...@perches.com Signed-off-by: Fabian Frederick f...@skynet.be --- V2: use kmalloc_array instead of kcalloc (suggested by Joe Perches).

Re: [PATCH 3/5] staging/wlags49_h2: correct check of the return value of register_netdev()

2014-06-16 Thread Dan Carpenter
On Mon, Jun 16, 2014 at 04:50:51PM +0200, Stephan Gabert wrote: As mentioned in net/core/dev.c register_netdev() explicitly returns a negative errno code on failure. So in case of failure, one should rather test whether ret is negative than just unlike 0. No. In the kernel the normal way

Re: netconsole breaks netpoll on bridge

2014-06-16 Thread Cong Wang
On Mon, Jun 16, 2014 at 11:41 AM, Stefan Priebe - Profihost AG s.pri...@profihost.ag wrote: Am 16.06.2014 um 20:05 schrieb Cong Wang cw...@twopensource.com: On Mon, Jun 16, 2014 at 5:51 AM, Stefan Priebe - Profihost AG s.pri...@profihost.ag wrote: Hi, i'm using a vanilla 3.10.43 kernel and

[PATCHv2] iw_cxgb4: in send_flowc(), handle a skb return from get_skb()

2014-06-16 Thread Nicholas Krause
diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index 5e153f6..e0c43a3 100644 --- a/drivers/infiniband/hw/cxgb4/cm.c +++ b/drivers/infiniband/hw/cxgb4/cm.c @@ -457,6 +457,10 @@ static void send_flowc(struct c4iw_ep *ep, struct sk_buff *skb) int i;

Re: [PATCH 0/3] Use Tegra's microsecond counter for udelay()

2014-06-16 Thread Stephen Warren
On 06/12/2014 09:58 AM, Peter De Schrijver wrote: This patchset introduces support for Tegra's microsecond counter as the udelay() timer. This is useful on Tegra SoCs which do not have an arch timer such as Tegra20 and Tegra30. Using the microsecond counter instead of a delay based loop avoids

We offer all purpose loan at 3% interest rate

2014-06-16 Thread Santander Group
We offer all purpose loan at 3% interest rate. Contact Us for more details by Email:santanderfinancegr...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at

[PATCHv2] iw_cxgb4: in send_flowc(), handle a skb return from get_skb()

2014-06-16 Thread Nicholas Krause
diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index 5e153f6..e0c43a3 100644 --- a/drivers/infiniband/hw/cxgb4/cm.c +++ b/drivers/infiniband/hw/cxgb4/cm.c @@ -457,6 +457,10 @@ static void send_flowc(struct c4iw_ep *ep, struct sk_buff *skb) int i;

RE: [PATCH v2] devicetree: Add generic IOMMU device tree bindings

2014-06-16 Thread Stuart Yoder
-Original Message- From: Will Deacon [mailto:will.dea...@arm.com] Sent: Monday, June 16, 2014 12:04 PM To: Yoder Stuart-B08248 Cc: Sethi Varun-B16395; Thierry Reding; Mark Rutland; devicet...@vger.kernel.org; linux-samsung-...@vger.kernel.org; Pawel Moll; Arnd Bergmann; Ian

Re: [PATCH v2 2/3] arm: tegra: enable igb, stmpe, i2c chardev, lm95245, pwm leds

2014-06-16 Thread Stephen Warren
On 06/09/2014 04:52 PM, Marcel Ziswiler wrote: The NVIDIA Tegra 3 based Apalis T30 module contains an Intel i210 resp. i211 gigabit Ethernet controller, an STMPE811 ADC/touch controller, I2C buses and PWM LEDs generically accessible from user space and an LM95245 temperature sensor chip. The

[PATCHv2] iw_cxgb4: in send_flowc(), handle a skb return from get_skb()

2014-06-16 Thread Nicholas Krause
diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index 5e153f6..e0c43a3 100644 --- a/drivers/infiniband/hw/cxgb4/cm.c +++ b/drivers/infiniband/hw/cxgb4/cm.c @@ -457,6 +457,10 @@ static void send_flowc(struct c4iw_ep *ep, struct sk_buff *skb) int i;

Re: [Linux-zigbee-devel] [PATCH net-next 1/3] ieee802154: cc2520: driver for TI cc2520 radio

2014-06-16 Thread Alexander Aring
Hi, On Mon, Jun 16, 2014 at 02:21:19PM +0530, Varka Bhadram wrote: ... + +static void cc2520_unregister(struct cc2520_private *priv) +{ + ieee802154_unregister_device(priv-dev); + ieee802154_free_device(priv-dev); +} Only used in remove callback of module. It's small enough to do this

Re: [PATCH V2] fs/omfs/inode.c: use ULLONG_MAX instead of ~0ULL

2014-06-16 Thread Fabian Frederick
On Sun, 15 Jun 2014 12:11:42 -0400 Bob Copeland m...@bobcopeland.com wrote: On Sun, Jun 15, 2014 at 08:39:20AM +0200, Fabian Frederick wrote: Use more explicit kernel.h definition array_size = DIV_ROUND_UP(bitmap_size, sb-s_blocksize); - if (sbi-s_bitmap_ino == ~0ULL) + if

Re: [Xen-devel] [PATCH v5 7/7] arch/x86: Comment out efi_set_rtc_mmss()

2014-06-16 Thread H. Peter Anvin
On 06/16/2014 04:54 AM, Juergen Gross wrote: And shouldn't it be removed from include/linux/efi.h as well? Indeed. -hpa -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH] staging: ced1401: userspace: use1401.c: Cleaning up potential strncpy missing null-terminate

2014-06-16 Thread Dan Carpenter
On Sun, Jun 15, 2014 at 12:41:47AM +0200, Rickard Strandqvist wrote: Replacing strncpy with strlcpy to avoid strings that lacks null terminate. Generally in the kernel we allow strncpy() if people want to use it. Let's not start doing sed replacements of these if it doesn't cause a problem.

Re: [PATCH v3 7/7] ARM: tegra: Add the EC i2c tunnel to tegra124-venice2

2014-06-16 Thread Stephen Warren
On 04/30/2014 11:44 AM, Doug Anderson wrote: This adds the EC i2c tunnel (and devices under it) to the tegra124-venice2 device tree. I've applied this to Tegra's for-3.17/dt branch. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Re: netconsole breaks netpoll on bridge

2014-06-16 Thread Stefan Priebe - Profihost AG
Am 16.06.2014 um 20:51 schrieb Cong Wang cw...@twopensource.com: On Mon, Jun 16, 2014 at 11:41 AM, Stefan Priebe - Profihost AG s.pri...@profihost.ag wrote: Am 16.06.2014 um 20:05 schrieb Cong Wang cw...@twopensource.com: On Mon, Jun 16, 2014 at 5:51 AM, Stefan Priebe - Profihost AG

Re: [PATCH v5 4/7] xen: Put EFI machinery in place

2014-06-16 Thread Daniel Kiper
On Mon, Jun 16, 2014 at 01:00:29PM +0100, David Vrabel wrote: On 13/06/14 18:00, Daniel Kiper wrote: v5 - suggestions/fixes: Put after a --- marker. Why? You mean: --- v5 - suggestions/fixes: ... +static efi_char16_t vendor[100] __initdata; Why 100? Well... Quite arbitrary value.

Re: [PATCH] staging: ced1401: userspace: use1401.c: Cleaning up potential strncpy missing null-terminate

2014-06-16 Thread Dan Carpenter
On Mon, Jun 16, 2014 at 10:01:14PM +0300, Dan Carpenter wrote: No one calls U14DriverName() so just delete this function. Oh. This is a userspace library or something? I'm not sure what to do. How did you compile test this? Does your platform even provide strlcpy()? Anyway, don't delete

Re: netconsole breaks netpoll on bridge

2014-06-16 Thread Cong Wang
On Mon, Jun 16, 2014 at 12:05 PM, Stefan Priebe - Profihost AG s.pri...@profihost.ag wrote: Am 16.06.2014 um 20:51 schrieb Cong Wang cw...@twopensource.com: On Mon, Jun 16, 2014 at 11:41 AM, Stefan Priebe - Profihost AG s.pri...@profihost.ag wrote: Am 16.06.2014 um 20:05 schrieb Cong Wang

Re: [PATCH v2 3/3] arm: tegra: initial support for apalis t30

2014-06-16 Thread Stephen Warren
On 06/09/2014 04:52 PM, Marcel Ziswiler wrote: This patch adds the device tree to support Toradex Apalis T30, a computer on module which can be used on different carrier boards. The module consists of a Tegra 3 SoC, two PMICs, 1 or 2 GB of DDR3L RAM, eMMC, an LM95245 temperature sensor chip,

Re: netconsole breaks netpoll on bridge

2014-06-16 Thread Stefan Priebe - Profihost AG
Am 16.06.2014 um 21:12 schrieb Cong Wang cw...@twopensource.com: On Mon, Jun 16, 2014 at 12:05 PM, Stefan Priebe - Profihost AG s.pri...@profihost.ag wrote: Am 16.06.2014 um 20:51 schrieb Cong Wang cw...@twopensource.com: On Mon, Jun 16, 2014 at 11:41 AM, Stefan Priebe - Profihost AG

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

2014-06-16 Thread Stephane Viau
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 this change, IOMMU faults would occur if the probe failed

Re: [PATCH v2 07/10] regulator: Add driver for Maxim 77802 PMIC regulators

2014-06-16 Thread Mark Brown
On Mon, Jun 16, 2014 at 08:02:35PM +0200, Javier Martinez Canillas wrote: --- a/drivers/mfd/max77802.c +++ b/drivers/mfd/max77802.c @@ -37,6 +37,7 @@ #include linux/err.h static const struct mfd_cell max77802_devs[] = { + { .name = max77802-pmic, }, }; static bool

Re: [PATCH v2 06/10] mfd: Add driver for Maxim 77802 Power Management IC

2014-06-16 Thread Mark Brown
On Mon, Jun 16, 2014 at 08:02:34PM +0200, Javier Martinez Canillas wrote: +- max77802,pmic-buck-dvs-gpios: The DVS GPIOs. We'll try to set these GPIOs + to match pmic-buck-default-dvs-idx at probe time if they are defined. If + some or all of these GPIOs are not defined it's assumed that the

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

[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

[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 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 r...@broadcom.com Signed-off-by: Alex Elder el...@linaro.org --- arch/arm/configs/bcm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/bcm_defconfig

[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 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 el...@linaro.org --- 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

[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 r...@broadcom.com Signed-off-by: Alex Elder el...@linaro.org --- arch/arm/boot/dts/bcm11351.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/bcm11351.dtsi

[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] Check for Null return from logfs_readpage_nolock in btree_write_block

2014-06-16 Thread Nicholas Krause
Signed-off-by: Nicholas Krause xerofo...@gmail.com --- 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

[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 r...@redhat.com --- Documentation/filesystems/proc.txt |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Documentation/filesystems/proc.txt

[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] 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 sgr...@redhat.com Signed-off-by: Richard Guy Briggs r...@redhat.com --- security/integrity/ima/ima_appraise.c |2 +- security/integrity/ima/ima_policy.c |

[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 r...@redhat.com --- 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 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 han...@cmpxchg.org Acked-by: Michal Hocko mho...@suse.cz --- mm/memcontrol.c | 6

[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 r...@redhat.com --- 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

[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 end

[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 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 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 off-LRU

[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 han...@cmpxchg.org Acked-by: Michal Hocko mho...@suse.cz Acked-by: Vladimir Davydov vdavy...@parallels.com

[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 r...@redhat.com --- include/linux/audit.h |8 +--- kernel/auditfilter.c |2 -- 2 files changed, 5 insertions(+), 5 deletions(-)

[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 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 han...@cmpxchg.org --- mm/memcontrol.c | 8 1 file

[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 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 han...@cmpxchg.org Acked-by: Michal Hocko mho...@suse.cz ---

[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

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] 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 r...@redhat.com --- kernel/audit.c | 14 ++ 1 files changed, 2 insertions(+), 12 deletions(-) diff --git a/kernel/audit.c b/kernel/audit.c

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 a/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra124-emc.txt

[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 ga...@codeaurora.org --- v3: * Added Kconfig HAS_IOMEM dep * re-ordered probe function so phy_provider_register is last v2: * dropped unused dev pointer in struct

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 trem...@yahoo.fr I'm happy with this now. Hartmut, anything else you want to raise,

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] 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 xerofo...@gmail.com --- 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 ---

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