[PATCH 0/3] Drivers: hv: hv_balloon

2014-12-02 Thread K. Y. Srinivasan
Some bug fixes for the balloon driver. K. Y. Srinivasan (3): Drivers: hv: hv_balloon: Make adjustments in computing the floor Drivers: hv: hv_balloon: Fix a locking bug in the balloon driver Drivers: hv: hv_balloon: Don't post pressure status from interrupt context

[PATCH 3/3] Drivers: hv: hv_balloon: Don't post pressure status from interrupt context

2014-12-02 Thread K. Y. Srinivasan
We currently release memory (balloon down) in the interrupt context and we also post memory status while releasing memory. Rather than posting the status in the interrupt context, wakeup the status posting thread to post the status. This will address the inconsistent lock state that Sitsofe

[PATCH 2/3] Drivers: hv: hv_balloon: Fix a locking bug in the balloon driver

2014-12-02 Thread K. Y. Srinivasan
We support memory hot-add in the Hyper-V balloon driver by hot adding an appropriately sized and aligned region and controlling the on-lining of pages within that region based on the pages that the host wants us to online. We do this because the granularity and alignment requirements in Linux

[PATCH 1/3] Drivers: hv: hv_balloon: Make adjustments in computing the floor

2014-12-02 Thread K. Y. Srinivasan
Make adjustments in computing the balloon floor. Signed-off-by: K. Y. Srinivasan k...@microsoft.com --- drivers/hv/hv_balloon.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c index b958ded..9cbbb83 100644 ---

[PATCH] powerpc: add little endian flag to syscall_get_arch()

2014-12-02 Thread Richard Guy Briggs
Since both ppc and ppc64 have LE variants which are now reported by uname, add that flag (__AUDIT_ARCH_LE) to syscall_get_arch() and add AUDIT_ARCH_PPC*LE variants. Without this, perf trace and auditctl fail. Mainline kernel reports ppc64le (per a058801) but there is no matching

Re: [CFT][PATCH 1/3] userns: Avoid problems with negative groups

2014-12-02 Thread Eric W. Biederman
Andy Lutomirski l...@amacapital.net writes: On Tue, Dec 2, 2014 at 12:25 PM, Eric W. Biederman ebied...@xmission.com wrote: Classic unix permission checks have an interesting feature, the group permissions for a file can be set to less than the other permissions on a file. Occassionally

Re: [PATCH] time: Fix sign bug in ntp mult overflow warning

2014-12-02 Thread Jeremiah Mahler
Xunlei, On Tue, Dec 02, 2014 at 11:00:26PM +0800, Xunlei Pang wrote: On 2 December 2014 at 17:32, Jeremiah Mahler jmmah...@gmail.com wrote: John, On Mon, Nov 24, 2014 at 08:35:45PM -0800, John Stultz wrote: In commit 6067dc5a8c2b (time: Avoid possible NTP adjustment mult @@ -1330,7

Re: [PATCH] arm: perf: Directly handle SMP platforms with one SPI

2014-12-02 Thread Daniel Thompson
On 02/12/14 14:49, Mark Rutland wrote: Hi Daniel, On Wed, Nov 26, 2014 at 04:59:07PM +, Daniel Thompson wrote: Some ARM platforms mux the PMU interrupt of every core into a single SPI. On such platforms if the PMU of any core except 0 raises an interrupt then it cannot be serviced and

[PATCH v7 1/3] Documentation: dt: net: Add binding doc for Keystone NetCP ethernet driver

2014-12-02 Thread Murali Karicheri
From: Sandeep Nair sandee...@ti.com The network coprocessor (NetCP) is a hardware accelerator that processes Ethernet packets. NetCP has a gigabit Ethernet (GbE) subsystem with a ethernet switch sub-module to send and receive packets. NetCP also includes a packet accelerator (PA) module to

[PATCH v7 0/3] net: Add Keystone NetCP ethernet driver support

2014-12-02 Thread Murali Karicheri
v6-v7 Fixed some minor documentation error and also modified the netcp driver to fix the set* functions to include correct le/be macros. v5-v6 updated version after incorporating comments [6] from David Miller, David Laight Geert Uytterhoeven on v5. I would like get this in for v3.19 merge

[PATCH v7 3/3] MAINTAINER: net: Add TI NETCP Ethernet driver entry

2014-12-02 Thread Murali Karicheri
CC: David Miller da...@davemloft.net Signed-off-by: Sandeep Nair sandee...@ti.com Signed-off-by: Murali Karicheri m-kariche...@ti.com --- MAINTAINERS |8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index ea4d005..bc876f2 100644 --- a/MAINTAINERS +++

Re: [CFT][PATCH 2/3] userns: Add a knob to disable setgroups on a per user namespace basis

2014-12-02 Thread Eric W. Biederman
Andy Lutomirski l...@amacapital.net writes: On Tue, Dec 2, 2014 at 12:28 PM, Eric W. Biederman ebied...@xmission.com wrote: - Expose the knob to user space through a proc file /proc/pid/setgroups Can you rename this to something clearer, e.g. userns_setgroups_mode? I am not certain that is

Re: [PATCH] Documentation: memory-barriers: Fix typo in the first example

2014-12-02 Thread Paul E. McKenney
On Tue, Dec 02, 2014 at 04:15:19PM -0500, Jonathan Corbet wrote: On Thu, 27 Nov 2014 12:19:26 +0530 Srikanth Thokala sriku.li...@gmail.com wrote: Hi, Kindly review the patch. To me it looks right. Something like this, though, needs an ack from Paul (cc'd) before I can be really

Re: [PATCH 1/3] Drivers: hv: hv_balloon: Make adjustments in computing the floor

2014-12-02 Thread Dan Carpenter
On Tue, Dec 02, 2014 at 02:29:13PM -0800, K. Y. Srinivasan wrote: Make adjustments in computing the balloon floor. The changelog should say what the user visible effects of the bug are. regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the

[PATCH] arch: alpha: kernel: core_lca.c: Cleaning up functions that are not used anywhere

2014-12-02 Thread Rickard Strandqvist
Removes some functions that are not used anywhere. lca_clock_print() lca_get_clock() lca_clock_fiddle() This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist rickard_strandqv...@spectrumdigital.se --- arch/alpha/kernel/core_lca.c |

Re: [PATCH] powerpc: add little endian flag to syscall_get_arch()

2014-12-02 Thread Tony Jones
On 12/02/2014 01:27 PM, Richard Guy Briggs wrote: Since both ppc and ppc64 have LE variants which are now reported by uname, add that flag (__AUDIT_ARCH_LE) to syscall_get_arch() and add AUDIT_ARCH_PPC*LE variants. Without this, perf trace and auditctl fail. Mainline kernel reports

[PATCH] ALSA: i2sbus: Deletion of unnecessary checks before the function call release_and_free_resource

2014-12-02 Thread SF Markus Elfring
From: Markus Elfring elfr...@users.sourceforge.net Date: Tue, 2 Dec 2014 22:50:24 +0100 The release_and_free_resource() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software.

[BUG] kzalloc overflow in lpfc driver on 6k core system

2014-12-02 Thread Alex Thorlton
Hey guys, We've recently upgraded our big machine up to 6144 cores, and we're shaking out a number of bugs related to booting at that large core count. Last night I tripped a warning from the lpfc driver that appears to be related to a kzalloc that uses the number of cores as part of it's size

Re: [PATCH] Documentation: memory-barriers: Fix typo in the first example

2014-12-02 Thread Jonathan Corbet
On Tue, 2 Dec 2014 13:50:06 -0800 Paul E. McKenney paul...@linux.vnet.ibm.com wrote: I am guessing that this patch is against an old version of this file (there have been two patches applied to this example in the last six months). I believe that the current version is correct, in other

Re: frequent lockups in 3.18rc4

2014-12-02 Thread Dâniel Fraga
On Tue, 2 Dec 2014 12:56:36 -0800 Paul E. McKenney paul...@linux.vnet.ibm.com wrote: And I left out a step. Let's make sure that my preempt_disabled() hack to CONFIG_TREE_PREEMPT_RCU=y has the same effect as the Kconfig hack that allowed CONFIG_PREEMPT=y and CONFIG_TREE_PREEMPT_RCU=n. Could

[PATCH] arch: arm: mach-davinci: serial.c: Cleaning up function that are not used anywhere

2014-12-02 Thread Rickard Strandqvist
Remove function serial_read_reg() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist rickard_strandqv...@spectrumdigital.se --- arch/arm/mach-davinci/serial.c | 10 -- 1 file changed, 10

Re: [RFC 2/2] OOM, PM: make OOM detection in the freezer path raceless

2014-12-02 Thread Tejun Heo
Hello, sorry about the delay. Was on vacation. Generally looks good to me. Some comments below. @@ -355,8 +355,10 @@ static struct sysrq_key_op sysrq_term_op = { static void moom_callback(struct work_struct *ignored) { - out_of_memory(node_zonelist(first_memory_node, GFP_KERNEL),

Re: [PATCH] powerpc: add little endian flag to syscall_get_arch()

2014-12-02 Thread Andy Lutomirski
On Tue, Dec 2, 2014 at 1:27 PM, Richard Guy Briggs r...@redhat.com wrote: Since both ppc and ppc64 have LE variants which are now reported by uname, add that flag (__AUDIT_ARCH_LE) to syscall_get_arch() and add AUDIT_ARCH_PPC*LE variants. Without this, perf trace and auditctl fail.

Re: [CFT][PATCH 1/3] userns: Avoid problems with negative groups

2014-12-02 Thread Andy Lutomirski
On Tue, Dec 2, 2014 at 1:26 PM, Eric W. Biederman ebied...@xmission.com wrote: Andy Lutomirski l...@amacapital.net writes: On Tue, Dec 2, 2014 at 12:25 PM, Eric W. Biederman ebied...@xmission.com wrote: Classic unix permission checks have an interesting feature, the group permissions for a

Re: [PATCH] Documentation: memory-barriers: Fix typo in the first example

2014-12-02 Thread Paul E. McKenney
On Tue, Dec 02, 2014 at 05:01:36PM -0500, Jonathan Corbet wrote: On Tue, 2 Dec 2014 13:50:06 -0800 Paul E. McKenney paul...@linux.vnet.ibm.com wrote: I am guessing that this patch is against an old version of this file (there have been two patches applied to this example in the last six

Re: frequent lockups in 3.18rc4

2014-12-02 Thread Linus Torvalds
On Tue, Dec 2, 2014 at 2:01 PM, Dâniel Fraga frag...@gmail.com wrote: Of course! I applied your patch to 3.17 stock kernel and after stressing it (compiling with -j8 and watching videos on Youtube) to trigger the bug I got the following: So it appears that you can recreate this much

Re: frequent lockups in 3.18rc4

2014-12-02 Thread Paul E. McKenney
On Tue, Dec 02, 2014 at 08:01:49PM -0200, Dâniel Fraga wrote: On Tue, 2 Dec 2014 12:56:36 -0800 Paul E. McKenney paul...@linux.vnet.ibm.com wrote: And I left out a step. Let's make sure that my preempt_disabled() hack to CONFIG_TREE_PREEMPT_RCU=y has the same effect as the Kconfig hack

Re: frequent lockups in 3.18rc4

2014-12-02 Thread Dâniel Fraga
On Tue, 2 Dec 2014 14:10:33 -0800 Linus Torvalds torva...@linux-foundation.org wrote: So it appears that you can recreate this much more quickly than DaveJ can recreate his issue. The two issues may be entirely unrelated, but the it is certainly quite possible that they have some relation

Re: [CFT][PATCH 2/3] userns: Add a knob to disable setgroups on a per user namespace basis

2014-12-02 Thread Andy Lutomirski
On Tue, Dec 2, 2014 at 1:45 PM, Eric W. Biederman ebied...@xmission.com wrote: Andy Lutomirski l...@amacapital.net writes: On Tue, Dec 2, 2014 at 12:28 PM, Eric W. Biederman ebied...@xmission.com wrote: - Expose the knob to user space through a proc file /proc/pid/setgroups Can you rename

Re: [PATCH v6 0/7] vfs: Non-blockling buffered fs read (page cache only)

2014-12-02 Thread Milosz Tanski
On Tue, Nov 25, 2014 at 6:01 PM, Andrew Morton a...@linux-foundation.org wrote: On Mon, 10 Nov 2014 11:40:23 -0500 Milosz Tanski mil...@adfin.com wrote: This patcheset introduces an ability to perform a non-blocking read from regular files in buffered IO mode. This works by only for those

Re: frequent lockups in 3.18rc4

2014-12-02 Thread Dâniel Fraga
On Tue, 2 Dec 2014 14:10:31 -0800 Paul E. McKenney paul...@linux.vnet.ibm.com wrote: Thank you!!! ;) Was this as difficult to trigger as the version with the Kconfig hack that used CONFIG_PREEMPT=y and CONFIG_TREE_PREEMPT_RCU=n? Yes. I had to try many times until I got the

RE: [PATCH 1/3] Drivers: hv: hv_balloon: Make adjustments in computing the floor

2014-12-02 Thread KY Srinivasan
-Original Message- From: Dan Carpenter [mailto:dan.carpen...@oracle.com] Sent: Tuesday, December 2, 2014 1:51 PM To: KY Srinivasan Cc: gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; jasow...@redhat.com

Re: [PATCH v9 2/8] backlight: Add support Skyworks SKY81452 backlight driver

2014-12-02 Thread Bryan Wu
On Tue, Dec 2, 2014 at 12:05 AM, gyun...@gmail.com wrote: From: Gyungoh Yoo jack@skyworksinc.com Signed-off-by: Gyungoh Yoo jack@skyworksinc.com This patch looks good to me and I think Jingoo reviewed it already. So please take my Ack here: Acked-by: Bryan Wu coolo...@gmail.com Lee,

Re: [PATCH] SSB / B44: fix WOL for BCM4401

2014-12-02 Thread Larry Finger
On 12/02/2014 02:12 PM, Michael Büsch wrote: On Tue, 2 Dec 2014 23:01:29 +0300 Andrey Skvortsov andrej.skvort...@gmail.com wrote: On Mon, Dec 01, 2014 at 10:10:23PM +0100, Michael Büsch wrote: On Mon, 1 Dec 2014 23:46:38 +0300 Andrey Skvortsov andrej.skvort...@gmail.com wrote: Wake On Lan

Re: [PATCH v9 4/8] devicetree: backlight: Add new SKY81452 backlight binding

2014-12-02 Thread Bryan Wu
On Tue, Dec 2, 2014 at 12:05 AM, gyun...@gmail.com wrote: From: Gyungoh Yoo jack@skyworksinc.com Signed-off-by: Gyungoh Yoo jack@skyworksinc.com Acked-by: Bryan Wu coolo...@gmail.com Thanks, -Bryan --- Changes v9: Nothing Changes v8: Renamed property names for backlight with

[PATCH] drivers: staging: rtl8192e: Include asm/unaligned.h instead of access_ok.h in rtl819x_BAProc.c

2014-12-02 Thread Chen Gang
asm/unaligned.h is more generic than access_ok.h, and it may include access_ok.h, so need use it instead of access_ok.h. During building, rtllib.h has already include asm/unaligned.h, so will cause building issue. The related error (with allmodconfig under parisc): CC [M]

[PATCH] drm/gm204/i2c: fix semicolon.cocci warnings

2014-12-02 Thread kbuild test robot
drivers/gpu/drm/nouveau/core/subdev/i2c/padgm204.c:74:26-27: Unneeded semicolon Removes unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci Signed-off-by: Fengguang Wu fengguang...@intel.com --- padgm204.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---

[PATCH] staging: rtl8188eu: hal: hal_intf.c: Cleaning up functions that are not used anywhere

2014-12-02 Thread Rickard Strandqvist
Removes some functions that are not used anywhere. rtw_hal_interrupt_handler() rtw_hal_sreset_get_wifi_status() This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist rickard_strandqv...@spectrumdigital.se ---

[PATCH v8 5/8] tpm: device class for tpm

2014-12-02 Thread Jarkko Sakkinen
Added own device class for TPM. Uses MISC_MAJOR:TPM_MINOR for the first character device in order to retain backwards compatibility. Added tpm_dev_release() back attached to the character device. Signed-off-by: Jarkko Sakkinen jarkko.sakki...@linux.intel.com --- drivers/char/tpm/tpm-chip.c

[PATCH v8 0/8] TPM 2.0 support

2014-12-02 Thread Jarkko Sakkinen
This patch set enables TPM2 protocol and provides drivers for FIFO and CRB interfaces. This patch set does not export any sysfs attributes for TPM 2.0 because existing sysfs attributes have three non-trivial issues: - They are associated with the platform device instead of character device. -

[PATCH v8 3/8] tpm: fix raciness of PPI interface lookup

2014-12-02 Thread Jarkko Sakkinen
Traversal of the ACPI device tree was not done right. PPI interface should be looked up only from the ACPI device that is the platform device for the TPM. This could cause problems with systems with two TPM chips such as 4th gen Intel systems. In addition, added the missing license and copyright

[PATCH v8 6/8] tpm: TPM 2.0 baseline support

2014-12-02 Thread Jarkko Sakkinen
TPM 2.0 devices are separated by adding a field 'flags' to struct tpm_chip and defining a flag TPM_CHIP_FLAG_TPM2 for tagging them. This patch adds the following internal functions: - tpm2_get_random() - tpm2_get_tpm_pt() - tpm2_pcr_extend() - tpm2_pcr_read() - tpm2_startup() Additionally, the

[PATCH v8 1/8] tpm: merge duplicate transmit_cmd() functions

2014-12-02 Thread Jarkko Sakkinen
Merged transmit_cmd() functions in tpm-interface.c and tpm-sysfs.c. Added tpm_ prefix for consistency sake. Changed cmd parameter as opaque. This enables to use separate command structures for TPM1 and TPM2 commands in future. Loose coupling works fine here. Signed-off-by: Jarkko Sakkinen

[PATCH v8 7/8] tpm: TPM 2.0 CRB Interface

2014-12-02 Thread Jarkko Sakkinen
tpm_crb is a driver for TPM 2.0 Command Response Buffer (CRB) Interface as defined in PC Client Platform TPM Profile (PTP) Specification. Only polling and single locality is supported as these are the limitations of the available hardware, Platform Trust Techonlogy (PTT) in Haswell CPUs. The

[PATCH v8 8/8] tpm: TPM 2.0 FIFO Interface

2014-12-02 Thread Jarkko Sakkinen
From: Will Arthur will.c.art...@intel.com Detect TPM 2.0 by using the extended STS (STS3) register. For TPM 2.0, instead of calling tpm_get_timeouts(), assign duration and timeout values defined in the TPM 2.0 PTP specification. Signed-off-by: Will Arthur will.c.art...@intel.com Signed-off-by:

[PATCH v8 4/8] tpm: rename chip-dev to chip-pdev

2014-12-02 Thread Jarkko Sakkinen
Rename chip-dev to chip-pdev to make it explicit that this not the character device but actually represents the platform device. Signed-off-by: Jarkko Sakkinen jarkko.sakki...@linux.intel.com --- drivers/char/tpm/tpm-chip.c | 4 ++-- drivers/char/tpm/tpm-dev.c | 10 +-

[PATCH v8 2/8] tpm: two-phase chip management functions

2014-12-02 Thread Jarkko Sakkinen
tpm_register_hardware() and tpm_remove_hardware() are called often before initializing the device. This is wrong order since it could be that main TPM driver needs a fully initialized chip to be able to do its job. For example, now it is impossible to move common startup functions such as

Re: frequent lockups in 3.18rc4

2014-12-02 Thread Paul E. McKenney
On Tue, Dec 02, 2014 at 08:18:46PM -0200, Dâniel Fraga wrote: On Tue, 2 Dec 2014 14:10:31 -0800 Paul E. McKenney paul...@linux.vnet.ibm.com wrote: Thank you!!! ;) Was this as difficult to trigger as the version with the Kconfig hack that used CONFIG_PREEMPT=y and

[PATCH] mm: memcontrol.c: Cleaning up function that are not used anywhere

2014-12-02 Thread Rickard Strandqvist
Remove function mem_cgroup_lru_names_not_uptodate() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist rickard_strandqv...@spectrumdigital.se --- mm/memcontrol.c |5 - 1 file changed, 5

Re: Linux next: boot on Wandboard broken by gic related change

2014-12-02 Thread Vincent Stehlé
On 12/02/2014 01:11 AM, Fabio Estevam wrote: (..) Marc fixed this problem with these patches: http://www.spinics.net/lists/arm-kernel/msg382778.html and http://www.spinics.net/lists/arm-kernel/msg382802.html Ah! Thanks for pointing that out. You are right, those two patches repair

RE: [BUG] kzalloc overflow in lpfc driver on 6k core system

2014-12-02 Thread Elliott, Robert (Server Storage)
-Original Message- From: linux-scsi-ow...@vger.kernel.org [mailto:linux-scsi- ow...@vger.kernel.org] On Behalf Of Alex Thorlton Sent: Tuesday, 02 December, 2014 3:58 PM ... We've recently upgraded our big machine up to 6144 cores, and we're shaking out a number of bugs related to

Re: [PATCH v6 0/7] vfs: Non-blockling buffered fs read (page cache only)

2014-12-02 Thread Andrew Morton
On Tue, 2 Dec 2014 17:17:42 -0500 Milosz Tanski mil...@adfin.com wrote: There have been several incomplete attempts to implement fincore(). If we were to complete those attempts, preadv2() could be implemented using fincore()+pread(). Plus we get fincore(), which is useful for other

[RFC v2] percpu: Add a separate function to merge free areas

2014-12-02 Thread Leonard Crestez
Hello, It seems that free_percpu performance is very bad when working with small objects. The easiest way to reproduce this is to allocate and then free a large number of percpu int counters in order. Small objects (reference counters and pointers) are common users of alloc_percpu and I think

Re: [PATCH v8 0/8] TPM 2.0 support

2014-12-02 Thread Peter Hüwe
Hi Jarkko, Am Dienstag, 2. Dezember 2014, 23:31:12 schrieb Jarkko Sakkinen: This patch set enables TPM2 protocol and provides drivers for FIFO and CRB interfaces. This patch set does not export any sysfs attributes for TPM 2.0 because existing sysfs attributes have three non-trivial issues:

Re: [CFT][PATCH 1/3] userns: Avoid problems with negative groups

2014-12-02 Thread Eric W. Biederman
Andy Lutomirski l...@amacapital.net writes: On Tue, Dec 2, 2014 at 1:26 PM, Eric W. Biederman ebied...@xmission.com wrote: Andy Lutomirski l...@amacapital.net writes: On Tue, Dec 2, 2014 at 12:25 PM, Eric W. Biederman ebied...@xmission.com wrote: Classic unix permission checks have an

sched: odd values for effective load calculations

2014-12-02 Thread Sasha Levin
Hi all, I was fuzzing with trinity inside a KVM tools guest, running the latest -next kernel along with the undefined behaviour sanitizer patch, and hit the following: [ 787.894288] [ 787.897074] UBSan:

Re: [CFT][PATCH 1/3] userns: Avoid problems with negative groups

2014-12-02 Thread Andy Lutomirski
On Tue, Dec 2, 2014 at 2:48 PM, Eric W. Biederman ebied...@xmission.com wrote: Andy Lutomirski l...@amacapital.net writes: On Tue, Dec 2, 2014 at 1:26 PM, Eric W. Biederman ebied...@xmission.com wrote: Andy Lutomirski l...@amacapital.net writes: On Tue, Dec 2, 2014 at 12:25 PM, Eric W.

Re: [PATCH] i2c: rk3x: fix bug that cause measured high_ns doesn't meet I2C spec

2014-12-02 Thread Doug Anderson
Addy, On Thu, Nov 6, 2014 at 12:11 AM, Addy Ke addy...@rock-chips.com wrote: high_ns calculated from the low division of CLKDIV register is the sum of actual measured high_ns and rise_ns. The rise time which related to external pull-up resistor can be up to the maximum rise time in I2C spec.

[PATCH] sound: pci: azt3328.c: Cleaning up function that are not used anywhere

2014-12-02 Thread Rickard Strandqvist
Remove function snd_azf3328_codec_outl() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist rickard_strandqv...@spectrumdigital.se --- sound/pci/azt3328.c |9 - 1 file changed, 9

Re: [PATCH v8 7/8] tpm: TPM 2.0 CRB Interface

2014-12-02 Thread Peter Hüwe
Am Dienstag, 2. Dezember 2014, 23:31:19 schrieb Jarkko Sakkinen: tpm_crb is a driver for TPM 2.0 Command Response Buffer (CRB) Interface as defined in PC Client Platform TPM Profile (PTP) Specification. Only polling and single locality is supported as these are the limitations of the

Re: [PATCH] KVM: cpuid: mask more bits in leaf 0xd and subleaves

2014-12-02 Thread Radim Krčmář
2014-12-02 14:09+0100, Paolo Bonzini: - EAX=0Dh, ECX=1: output registers EBX/ECX/EDX are reserved. (As good as reserved without XSAVES/IA32_XSS.) - EAX=0Dh, ECX1: output register ECX is zero for all the CPUID leaves we support, because variable supported comes from XCR0 and not XSS. However,

Re: [tpmdd-devel] [PATCH v8 7/8] tpm: TPM 2.0 CRB Interface

2014-12-02 Thread Stefan Berger
On 12/02/2014 05:31 PM, Jarkko Sakkinen wrote: +struct acpi_tpm2 { + struct acpi_table_header hdr; + u16 platform_class; + u16 reserved; + u64 control_area_pa; + u32 start_method; +} __packed; [...] + } + + if (buf-hdr.length != sizeof(struct

Re: [CFT][PATCH 2/3] userns: Add a knob to disable setgroups on a per user namespace basis

2014-12-02 Thread Eric W. Biederman
Andy Lutomirski l...@amacapital.net writes: On Tue, Dec 2, 2014 at 1:45 PM, Eric W. Biederman ebied...@xmission.com wrote: Andy Lutomirski l...@amacapital.net writes: On Tue, Dec 2, 2014 at 12:28 PM, Eric W. Biederman ebied...@xmission.com wrote: - Expose the knob to user space through a

Re: [Xen-devel] [PATCH v4 7/7] xen/pciback: Restore configuration space when detaching from a guest.

2014-12-02 Thread Boris Ostrovsky
On 11/21/2014 05:17 PM, Konrad Rzeszutek Wilk wrote: The commit xen/pciback: Don't deadlock when unbinding. was using the version of pci_reset_function which would lock the device lock. That is no good as we can dead-lock. As such we swapped to using the lock-less version and requiring that the

[PATCH] sound: pci: cmipci.c: Cleaning up function that are not used anywhere

2014-12-02 Thread Rickard Strandqvist
Remove function snd_cmipci_pll_rmn() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist rickard_strandqv...@spectrumdigital.se --- sound/pci/cmipci.c | 41 - 1

Re: [PATCH v8 0/8] TPM 2.0 support

2014-12-02 Thread Peter Hüwe
Am Dienstag, 2. Dezember 2014, 23:31:12 schrieb Jarkko Sakkinen: This patch set enables TPM2 protocol and provides drivers for FIFO and CRB interfaces. This patch set does not export any sysfs attributes for TPM 2.0 because existing sysfs attributes have three non-trivial issues: - They are

[PATCH v2 4/6] scsi: misc: Replace seq_printf with seq_puts

2014-12-02 Thread Rasmus Villemoes
Using seq_printf to print a simple string is a lot more expensive than it needs to be, since seq_puts exists. Replace seq_printf with seq_puts when possible. Signed-off-by: Rasmus Villemoes li...@rasmusvillemoes.dk --- drivers/scsi/BusLogic.c | 10 +- drivers/scsi/NCR5380.c

[PATCH v2 6/6] scsi: misc: Print single-character strings with seq_putc

2014-12-02 Thread Rasmus Villemoes
Using seq_putc to print a single character saves at least a strlen() call and a memory access, and may also give a small .text reduction. Signed-off-by: Rasmus Villemoes li...@rasmusvillemoes.dk --- drivers/scsi/NCR5380.c | 2 +- drivers/scsi/advansys.c | 34

[PATCH v2 1/6] scsi: Remove SPRINTF macro

2014-12-02 Thread Rasmus Villemoes
The macro SPRINTF doesn't save a lot of typing or make the code more readable, and depending on a specific identifier (m) in the surrounding scope is generally frowned upon. Nuke it. Signed-off-by: Rasmus Villemoes li...@rasmusvillemoes.dk --- drivers/scsi/NCR5380.c | 20 ++-

[PATCH v2 5/6] scsi: misc: Merge consecutive seq_puts calls

2014-12-02 Thread Rasmus Villemoes
Consecutive seq_puts calls with literal strings may be replaced by a single call, saving a little .text. Signed-off-by: Rasmus Villemoes li...@rasmusvillemoes.dk --- drivers/scsi/advansys.c | 43 +++ drivers/scsi/atp870u.c | 5 ++---

[PATCH v2 2/6] scsi/advansys: Replace seq_printf with seq_puts

2014-12-02 Thread Rasmus Villemoes
Using seq_printf to print a simple string is a lot more expensive than it needs to be, since seq_puts exists. Replace seq_printf with seq_puts when possible. Signed-off-by: Rasmus Villemoes li...@rasmusvillemoes.dk --- drivers/scsi/advansys.c | 155

[PATCH v2 3/6] scsi/aha152x: Replace seq_printf with seq_puts

2014-12-02 Thread Rasmus Villemoes
Using seq_printf to print a simple string is a lot more expensive than it needs to be, since seq_puts exists. Replace seq_printf with seq_puts when possible. Signed-off-by: Rasmus Villemoes li...@rasmusvillemoes.dk --- drivers/scsi/aha152x.c | 248

[PATCH v2 0/6] scsi: Some seq_file cleanups/optimizations

2014-12-02 Thread Rasmus Villemoes
These patches mostly replace seq_printf with simpler and faster equivalents, e.g. seq_printf(m, something) = seq_puts(m, something) and seq_printf(m, \n) = seq_putc(m, '\n). But before my Coccinelle scripts could be unleashed I had to clean up an unnecessary macro. The patches don't change the

Re: [tpmdd-devel] [PATCH v8 0/8] TPM 2.0 support

2014-12-02 Thread Peter Hüwe
Am Mittwoch, 3. Dezember 2014, 00:16:19 schrieb Peter Hüwe: Am Dienstag, 2. Dezember 2014, 23:31:12 schrieb Jarkko Sakkinen: This patch set enables TPM2 protocol and provides drivers for FIFO and CRB interfaces. This patch set does not export any sysfs attributes for TPM 2.0 because

Re: [PATCH v4 1/3] mmc: core: Support the optional init_card() callback for MMC and SD

2014-12-02 Thread Jaehoon Chung
Hi Doug. I think good that this patch is separated to two patches. (board file and codes relevant to mmc.) Best Regards, Jaehoon Chung On 12/03/2014 05:49 AM, Doug Anderson wrote: In (3fcb027 ARM: MXC: mxcmmc: work around a bug in the SDHC busy line handling) the optional init_card() callback

Re: [CFT][PATCH 2/3] userns: Add a knob to disable setgroups on a per user namespace basis

2014-12-02 Thread Andy Lutomirski
On Tue, Dec 2, 2014 at 3:07 PM, Eric W. Biederman ebied...@xmission.com wrote: Andy Lutomirski l...@amacapital.net writes: On Tue, Dec 2, 2014 at 1:45 PM, Eric W. Biederman ebied...@xmission.com wrote: Andy Lutomirski l...@amacapital.net writes: On Tue, Dec 2, 2014 at 12:28 PM, Eric W.

Re: [tpmdd-devel] [PATCH v8 0/8] TPM 2.0 support

2014-12-02 Thread Aaro Koskinen
Hi, On Wed, Dec 03, 2014 at 12:21:07AM +0100, Peter Hüwe wrote: --- a/drivers/char/tpm/tpm_i2c_nuvoton.c +++ b/drivers/char/tpm/tpm_i2c_nuvoton.c @@ -605,10 +605,8 @@ static int i2c_nuvoton_probe(struct i2c_client *client, return -ENODEV; rc = tpm_chip_register(chip);

Re: [tpmdd-devel] [PATCH v8 0/8] TPM 2.0 support

2014-12-02 Thread Peter Hüwe
Am Mittwoch, 3. Dezember 2014, 00:24:43 schrieb Aaro Koskinen: Hi, On Wed, Dec 03, 2014 at 12:21:07AM +0100, Peter Hüwe wrote: --- a/drivers/char/tpm/tpm_i2c_nuvoton.c +++ b/drivers/char/tpm/tpm_i2c_nuvoton.c @@ -605,10 +605,8 @@ static int i2c_nuvoton_probe(struct i2c_client *client,

Re: frequent lockups in 3.18rc4

2014-12-02 Thread Sasha Levin
On 12/02/2014 02:32 PM, Dave Jones wrote: On Mon, Dec 01, 2014 at 06:08:38PM -0500, Chris Mason wrote: I'm not sure if this is related, but running trinity here, I noticed it was stuck at 100% system time on every CPU. perf report tells me we are spending all of our time in spin_lock

[PATCH 4/4] iio: dht11: Fix out-of-bounds read

2014-12-02 Thread Richard Weinberger
As we access i-1 we must not start with i=0. Signed-off-by: Richard Weinberger rich...@nod.at --- drivers/iio/humidity/dht11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/humidity/dht11.c b/drivers/iio/humidity/dht11.c index fbcd7cb..5dfe71b 100644 ---

[PATCH 3/4] iio: dht11: Logging updates

2014-12-02 Thread Richard Weinberger
Currently the driver uses pr_* and dev_* functions. Change all logging functions to dev_* style to be consistent and have the correct device prefix in all messages. This change set also adds new messages to diagnose issues. Signed-off-by: Richard Weinberger rich...@nod.at ---

[PATCH 1/4] iio: dht11: Add locking

2014-12-02 Thread Richard Weinberger
Make sure that the read function is not interrupted... Signed-off-by: Richard Weinberger rich...@nod.at --- drivers/iio/humidity/dht11.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/iio/humidity/dht11.c b/drivers/iio/humidity/dht11.c index d8771f5..168ebc4 100644 ---

Re: [RFC PATCH 3/4] kmod - add call_usermodehelper_ns() helper

2014-12-02 Thread Ian Kent
On Mon, 2014-12-01 at 16:56 -0500, Benjamin Coddington wrote: n Tue, 25 Nov 2014, Eric W. Biederman wrote: Hi, Ian Kent ik...@redhat.com writes: On Tue, 2014-11-25 at 17:19 -0600, Eric W. Biederman wrote: Ian Kent ik...@redhat.com writes: On Tue, 2014-11-25 at 16:23 -0600,

iio: dht11 Updates

2014-12-02 Thread Richard Weinberger
Please see my current patches for your driver. As discussed in an earlier mail I'm testing with the DHT22 sensor only. With the IRQ changes I see 84 edges. I have also a question on your driver. Why you increment DHT11_DATA_BIT_LOW/timeres by one in the ambiguity check? threshold =

[PATCH 2/4] iio: dht11: IRQ fixes

2014-12-02 Thread Richard Weinberger
Signed-off-by: Richard Weinberger rich...@nod.at --- drivers/iio/humidity/dht11.c | 56 1 file changed, 30 insertions(+), 26 deletions(-) diff --git a/drivers/iio/humidity/dht11.c b/drivers/iio/humidity/dht11.c index 168ebc4..0023699 100644 ---

Re: [PATCH 2/4] iio: dht11: IRQ fixes

2014-12-02 Thread Richard Weinberger
Am 03.12.2014 um 00:32 schrieb Richard Weinberger: insert commit message here :-\ Signed-off-by: Richard Weinberger rich...@nod.at -- 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

[PATCH v5 2/4] mmc: core: Support the optional init_card() callback for MMC and SD

2014-12-02 Thread Doug Anderson
In (3fcb027 ARM: MXC: mxcmmc: work around a bug in the SDHC busy line handling) the optional init_card() callback was added. According to the original change it was for now only called from mmc_sdio_init_card(). This callback really ought to be called from the SD and MMC init functions as well.

Re: [PATCH v4 1/3] mmc: core: Support the optional init_card() callback for MMC and SD

2014-12-02 Thread Doug Anderson
Jaehoon, On Tue, Dec 2, 2014 at 3:15 PM, Jaehoon Chung jh80.ch...@samsung.com wrote: Hi Doug. I think good that this patch is separated to two patches. (board file and codes relevant to mmc.) Yes, good idea. I've spun v5 with this. -Doug -- To unsubscribe from this list: send the line

[PATCH v5 4/4] mmc: dw_mmc: Protect read-modify-write of INTMASK with a lock

2014-12-02 Thread Doug Anderson
We're running into cases where our enabling of the SDIO interrupt in dw_mmc doesn't actually take effect. Specifically, adding patch like this: +++ b/drivers/mmc/host/dw_mmc.c @@ -1076,6 +1076,9 @@ static void dw_mci_enable_sdio_irq(struct mmc_host *mmc, int enb) mci_writel(host,

[PATCH v5 1/4] ARM: OMAP2+: Make sure pandora_wl1251_init_card() applies to SDIO only

2014-12-02 Thread Doug Anderson
In preparation for having init_card() called for all card types (not just SDIO), change pandora_wl1251_init_card() so it checks whether the card type is SDIO. Signed-off-by: Doug Anderson diand...@chromium.org --- Changes in v5: - Split fixup to pandora_wl1251_init_card() into its own patch.

[PATCH v5 0/4] Fixes for SDIO interrupts for dw_mmc

2014-12-02 Thread Doug Anderson
Bing Zhao at Marvell found a problem with dw_mmc where interrupts weren't firing sometimes. He tracked it down to a read-modify-write problem with the INTMASK. These patches fix the problem. Note: I've picked up a 1-year old series here to make another attempt at landing it upstream. These

[PATCH v5 3/4] mmc: dw_mmc: Cleanup disable of low power mode w/ SDIO interrupts

2014-12-02 Thread Doug Anderson
In the patch (9623b5b mmc: dw_mmc: Disable low power mode if SDIO interrupts are used) I added code that disabled the low power mode of dw_mmc when SDIO interrupts are used. That code worked but always felt a little hacky because we ended up disabling low power as a side effect of the first

Re: [PATCH] cpuidle: add MAINTAINERS entry for ARM Exynos cpuidle driver

2014-12-02 Thread Rafael J. Wysocki
On Tuesday, December 02, 2014 04:41:35 PM Bartlomiej Zolnierkiewicz wrote: Since there has been quite a lot of development going on for ARM Exynos cpuidle driver recently I would like to add separate MAINTAINERS entry for it and add myself as the primary maintainer. The merging process would

Re: [tpmdd-devel] [PATCH v8 0/8] TPM 2.0 support

2014-12-02 Thread Joe Perches
On Wed, 2014-12-03 at 00:33 +0100, Peter Hüwe wrote: Am Mittwoch, 3. Dezember 2014, 00:24:43 schrieb Aaro Koskinen: On Wed, Dec 03, 2014 at 12:21:07AM +0100, Peter Hüwe wrote: --- a/drivers/char/tpm/tpm_i2c_nuvoton.c +++ b/drivers/char/tpm/tpm_i2c_nuvoton.c @@ -605,10 +605,8 @@ static

Re: [PATCH] sound: pci: cmipci.c: Cleaning up function that are not used anywhere

2014-12-02 Thread Bjorn Helgaas
Hi Rickard, Thanks a lot for fixing cruft like this. It makes life better for everybody. I'll let the maintainer of this driver take care of this patch, but I'll just point out that your subject (Cleaning up function ...) is slightly ambiguous because sometimes cleanup means simplification, not

[PATCH] Staging: slicoss: Fix long line issues in slicoss.c

2014-12-02 Thread Sean Cleator
A patch to the slicoss.c file to fix some of the long line issues found by the checkpath.pl tool Signed-off-by: Sean Cleator seanclea...@hotmail.co.uk --- drivers/staging/slicoss/slicoss.c | 39 ++- 1 file changed, 26 insertions(+), 13 deletions(-) diff

[PATCH 1/1] X86: Mark the Hyper-V clocksource as being continuous

2014-12-02 Thread K. Y. Srinivasan
The clocksource based on Hyper-V per-partition reference count MSR is continuous. Mark it accordingly. Signed-off-by: K. Y. Srinivasan k...@microsoft.com cc: sta...@vger.kernel.org --- arch/x86/kernel/cpu/mshyperv.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git

mmotm 2014-12-02-15-55 uploaded

2014-12-02 Thread akpm
The mm-of-the-moment snapshot 2014-12-02-15-55 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You

[PATCH jbarnes] drm/i915: fence_lock can be static

2014-12-02 Thread kbuild test robot
drivers/gpu/drm/i915/i915_sync.c:43:12: sparse: symbol 'fence_lock' was not declared. Should it be static? Signed-off-by: Fengguang Wu fengguang...@intel.com --- i915_sync.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_sync.c

[jbarnes:upstream-sync-points 2/2] drivers/gpu/drm/i915/i915_sync.c:43:12: sparse: symbol 'fence_lock' was not declared. Should it be static?

2014-12-02 Thread kbuild test robot
tree: git://people.freedesktop.org/~jbarnes/linux upstream-sync-points head: 97b242f63adaf11c3edf16b0282243cc4274eac8 commit: 97b242f63adaf11c3edf16b0282243cc4274eac8 [2/2] drm/i915: Android sync points for i915 v3 reproduce: # apt-get install sparse git checkout

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