[PATCH RT 7/7] Linux 3.4.110-rt140-rc1

2016-03-02 Thread Steven Rostedt
3.4.110-rt140-rc1 stable review patch. If anyone has any objections, please let me know. -- From: "Steven Rostedt (Red Hat)" --- localversion-rt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localversion-rt b/localversion-rt index e0b93414dc30..553951e7fe2

[PATCH RT 3/7] kernel: softirq: unlock with irqs on

2016-03-02 Thread Steven Rostedt
3.4.110-rt140-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Andrzej Siewior We unlock the lock while the interrupts are off. This isn't a problem now but will get because the migrate_disable() + enable are not symmetrical in regard

[PATCH v10 02/12] vmstat: add vmstat_idle function

2016-03-02 Thread Chris Metcalf
This function checks to see if a vmstat worker is not running, and the vmstat diffs don't require an update. The function is called from the task-isolation code to see if we need to actually do some work to quiet vmstat. Acked-by: Christoph Lameter Signed-off-by: Chris Metcalf --- include/linu

[PATCH v10 10/12] arch/tile: enable task isolation functionality

2016-03-02 Thread Chris Metcalf
We add the necessary call to task_isolation_enter() in the prepare_exit_to_usermode() routine. We already unconditionally call into this routine if TIF_NOHZ is set, since that's where we do the user_enter() call. We add calls to task_isolation_check_exception() in places where exceptions may not

Re: [PATCH] sparc64: Add support for Application Data Integrity (ADI)

2016-03-02 Thread kbuild test robot
Hi Khalid, [auto build test ERROR on sparc/master] [also build test ERROR on v4.5-rc6] [cannot apply to next-20160302] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Khalid-Aziz/sparc64-Add

[REGRESSION, bisect] net: ipv6: unregister_netdevice: waiting for lo to become free. Usage count = 2

2016-03-02 Thread Jeremiah Mahler
Hi David, On Tue, Mar 01, 2016 at 12:07:49PM -0800, Jeremiah Mahler wrote: > Hi all, > > On Tue, Mar 01, 2016 at 08:11:54AM +, Dexuan Cui wrote: > > Hi, I got this line every 10 seconds with today's linux-next in a Hyper-V > > guest, even > > when I didn't configure any NIC for the guest: >

Re: linux-next: unsigned commits in tpmdd tree

2016-03-02 Thread Stephen Rothwell
Hi Jarkko, On Wed, 2 Mar 2016 16:29:56 +0200 Jarkko Sakkinen wrote: > > On Wed, Mar 02, 2016 at 07:42:18AM +1100, Stephen Rothwell wrote: > > Hi Jarkko, > > > > All the new commits in you tree today have no Signed-off-by from you as > > the committer. > > Oops :( This is my mistake. Do you w

Re: [PATCH v10 07/12] task_isolation: add debug boot flag

2016-03-02 Thread Peter Zijlstra
On Wed, Mar 02, 2016 at 03:09:31PM -0500, Chris Metcalf wrote: > +void task_isolation_debug(int cpu) > +{ > + struct task_struct *p; > + > + if (!task_isolation_possible(cpu)) > + return; > + > + rcu_read_lock(); > + p = cpu_curr(cpu); > + get_task_struct(p); As I t

Re: [PATCH] sparc64: Add support for Application Data Integrity (ADI)

2016-03-02 Thread Khalid Aziz
On 03/02/2016 01:26 PM, kbuild test robot wrote: Hi Khalid, [auto build test ERROR on sparc/master] [also build test ERROR on v4.5-rc6] [cannot apply to next-20160302] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https

[PATCH] MAINTAINERS: update arch/tile maintainer email domain

2016-03-02 Thread Chris Metcalf
Mellanox has acquired EZchip, so my email address as arch/tile maintainer will now change to cmetc...@mellanox.com. http://www.mellanox.com/page/press_release_item?id=1681 Signed-off-by: Chris Metcalf --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAIN

[PATCH v2] sparc64: Add support for Application Data Integrity (ADI)

2016-03-02 Thread Khalid Aziz
Enable Application Data Integrity (ADI) support in the sparc kernel for applications to use ADI in userspace. ADI is a new feature supported on sparc M7 and newer processors. ADI is supported for data fetches only and not instruction fetches. This patch adds prctl commands to enable and disable AD

Re: [PATCH v5 22/22] sound/usb: Use Media Controller API to share media resources

2016-03-02 Thread Dan Carpenter
On Wed, Mar 02, 2016 at 09:50:31AM -0700, Shuah Khan wrote: > + mctl = kzalloc(sizeof(*mctl), GFP_KERNEL); > + if (!mctl) > + return -ENOMEM; > + > + mctl->media_dev = mdev; > + if (stream == SNDRV_PCM_STREAM_PLAYBACK) { > + intf_type = MEDIA_INTF_T_ALSA_PCM_

Re: [RFC PATCH] x86: Make sure verify_cpu has a good stack

2016-03-02 Thread Borislav Petkov
On Wed, Mar 02, 2016 at 08:50:53PM +0100, Borislav Petkov wrote: > But better safe than sorry. I got this, it looks good when I'm single-stepping through it with gdb and it boots fine in kvm. I'll run it on baremetal tomorrow: /* * Setup stack for verify_cpu(): make sure we don't

Re: [PATCH v14] x86, mce: Add memcpy_mcsafe()

2016-03-02 Thread Luck, Tony
On Thu, Feb 18, 2016 at 11:47:26AM -0800, Tony Luck wrote: > Make use of the EXTABLE_FAULT exception table entries to write > a kernel copy routine that doesn't crash the system if it > encounters a machine check. Prime use case for this is to copy > from large arrays of non-volatile memory used as

[PATCH RT 1/7] latencyhist: disable jump-labels

2016-03-02 Thread Steven Rostedt
3.4.110-rt140-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Andrzej Siewior Atleast on X86 we die a recursive death |CPU: 3 PID: 585 Comm: bash Not tainted 4.4.1-rt4+ #198 |Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS

Re: [GIT PULL] at91: dt for 4.6 #2

2016-03-02 Thread Arnd Bergmann
On Wednesday 02 March 2016 17:05:22 Nicolas Ferre wrote: > A second batch of DT updates for 4.6. This time it is based on 4.5-rc3 as one > of the patches fixes an node that was changed during 4.5-rc phase. As I saw > that your "next/dt" branches are based on 4.5-rc3, I thought it wouldn't be a > pr

Re: [PATCH v10 07/12] task_isolation: add debug boot flag

2016-03-02 Thread Chris Metcalf
On 3/2/2016 3:37 PM, Peter Zijlstra wrote: On Wed, Mar 02, 2016 at 03:09:31PM -0500, Chris Metcalf wrote: +void task_isolation_debug(int cpu) +{ + struct task_struct *p; + + if (!task_isolation_possible(cpu)) + return; + + rcu_read_lock(); + p = cpu_curr(cpu

Re: Question about prio_changed_dl()

2016-03-02 Thread Peter Zijlstra
On Wed, Mar 02, 2016 at 09:16:57PM +0100, luca abeni wrote: > > That code no longer exists like that. > Uh... I must have done something wrong, then (I was convinced I pulled > from master and rebased my patch before testing and sending it, but > probably something went wrong). > Sorry about that.

Re: [REGRESSION, bisect] net: ipv6: unregister_netdevice: waiting for lo to become free. Usage count = 2

2016-03-02 Thread David Ahern
On 3/2/16 12:31 PM, Jeremiah Mahler wrote: On Tue, Mar 01, 2016 at 08:11:54AM +, Dexuan Cui wrote: Hi, I got this line every 10 seconds with today's linux-next in a Hyper-V guest, even when I didn't configure any NIC for the guest: [ 72.604249] unregister_netdevice: waiting for lo to bec

Re: [GIT PULL] at91: dt for 4.6 #2

2016-03-02 Thread Alexandre Belloni
Hi, On 02/03/2016 at 21:50:59 +0100, Arnd Bergmann wrote : > I see that your gpg key has expired last week, you may want to do something > about that, I think you can just update the date rather than creating a > new key. > You probably want to pull his key, it was updated today. -- Alexandre

Re: [PATCH v2] locktorture: Fix NULL pointer when torture_type is invalid

2016-03-02 Thread Paul E. McKenney
On Wed, Mar 02, 2016 at 11:55:43AM -0800, Davidlohr Bueso wrote: > On Tue, 02 Feb 2016, Davidlohr Bueso wrote: > > I've just hit this issue myself and remembered this thread :) > > Paul, folks, does the below patch look reasonable to you? If so > I can properly resend. thanks. If it works for Ke

Re: [PATCH 1/5] usb: gadget: f_midi: refactor state machine

2016-03-02 Thread Clemens Ladisch
Felipe F. Tonello wrote: > This refactor results in a cleaner state machine code It increases the number of states, and now juggles two state variables. I cannot agree to it being cleaner. > and as a result fixed a bug when packaging a USB-MIDI packet right after > a non-conformant MIDI byte stre

Re: [PATCH] objtool: Disable stack validation when CROSS_COMPILE is used

2016-03-02 Thread Josh Poimboeuf
On Wed, Mar 02, 2016 at 01:27:35PM +1100, Stephen Rothwell wrote: > Hi Josh, > > On Tue, 1 Mar 2016 15:54:51 -0600 Josh Poimboeuf wrote: > > > > Changing it to use the host compiler would probably be an easy fix, but > > that would expose a harder bug related to endianness. > > Just by luck, my

Re: [PATCH v10 7/9] arm64: Add trampoline code for kretprobes

2016-03-02 Thread William Cohen
On 03/01/2016 01:19 PM, Marc Zyngier wrote: > On 01/03/16 02:57, David Long wrote: >> From: William Cohen >> >> The trampoline code is used by kretprobes to capture a return from a probed >> function. This is done by saving the registers, calling the handler, and >> restoring the registers. The c

Re: [ppdev] e7223f1860: kernel BUG at drivers/base/driver.c:153!

2016-03-02 Thread Ross Zwisler
On Mon, Feb 15, 2016 at 4:50 AM, Sudip Mukherjee wrote: > On Mon, Feb 15, 2016 at 04:20:45PM +0800, kernel test robot wrote: >> Greetings, >> >> 0day kernel testing robot got the below dmesg and the first bad commit is >> >> https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git >>

Re: [PATCH V2] ubifs: Add logging functions for ubifs_msg, ubifs_err and ubifs_warn

2016-03-02 Thread Richard Weinberger
Joe, Am 02.03.2016 um 19:58 schrieb Joe Perches: > On Wed, 2016-03-02 at 19:46 +0100, Richard Weinberger wrote: >> Am 02.03.2016 7:19 nachm. schrieb Joe Perches : >>> On Tue, 2016-02-23 at 12:21 -0800, Joe Perches wrote: The existing logging macros are fairly large and converting the ma

Re: [GIT PULL] at91: dt for 4.6 #2

2016-03-02 Thread Arnd Bergmann
On Wednesday 02 March 2016 22:07:50 Alexandre Belloni wrote: > On 02/03/2016 at 21:50:59 +0100, Arnd Bergmann wrote : > > I see that your gpg key has expired last week, you may want to do something > > about that, I think you can just update the date rather than creating a > > new key. > > > > Yo

Re: [PATCH V2] ubifs: Add logging functions for ubifs_msg, ubifs_err and ubifs_warn

2016-03-02 Thread Joe Perches
On Wed, 2016-03-02 at 22:24 +0100, Richard Weinberger wrote: > Am 02.03.2016 um 19:58 schrieb Joe Perches: [] > > For drivers/mtd/ubi, Artem is also a nominal maintainer, but > > last signed a patch in 2014. > > > > Likely the MAINTAINERS entry for UBI should be updated too. > > > > Maybe somethi

Re: [PATCH 3/6] x86/mbm: Intel Memory B/W Monitoring enumeration and init

2016-03-02 Thread Vikas Shivappa
On Wed, 2 Mar 2016, Vikas Shivappa wrote: On Wed, 2 Mar 2016, Thomas Gleixner wrote: Leaks mbm_local and mbm_total Will fix. Thanks for pointing out. I missed the ones which are done at the next level of calls from the init. Will do a check on all the globals as well. Vikas Lo

Re: [RFC PATCH] x86: Make sure verify_cpu has a good stack

2016-03-02 Thread H. Peter Anvin
On 03/02/16 11:50, Borislav Petkov wrote: > On Wed, Mar 02, 2016 at 10:39:05AM -0800, H. Peter Anvin wrote: >> Well, we definitely should use %rip-relative addressing if we can. > > Right you are. > >> However, even so I believe this breaks if the kernel is loaded anywhere >> but its default load

[PATCH] of: add 'const' for of_property_*_string*() parameter '*np'

2016-03-02 Thread David Rivshin (Allworx)
From: David Rivshin The of_property_{read,count,match}_string* family of functions never modify the struct device_node pointer that is passed in, so there is no reason for it to be non-const. Equivalent functions for all other types already take a 'const struct device_node *np'. Signed-off-by: D

Re: [PATCH v6 4/6] staging/android: align struct sync_merge_data to a multiple of 64-bits

2016-03-02 Thread Gustavo Padovan
2016-03-02 Gustavo Padovan : > From: Gustavo Padovan > > Change order of the field to avoid alignment issues with 64 bits > platforms. > > Signed-off-by: Gustavo Padovan > --- > drivers/staging/android/uapi/sync.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Please ignore thi

Re: [PATCHv7 3/7] eeprom: at24: extend driver to plug into the NVMEM framework

2016-03-02 Thread Vladimir Zapolskiy
Hi Andrew, On 26.02.2016 21:59, Andrew Lunn wrote: > Add a regmap for accessing the EEPROM, and then use that with the > NVMEM framework. Set the NVMEM config structure to enable backward, so > that the 'eeprom' file in sys is provided by the framework. > > Signed-off-by: Andrew Lunn > Acked-by:

Re: [PATCH] arm: dts: rockchip: remove broken-cd from emmc and sdio

2016-03-02 Thread Heiko Stübner
Am Dienstag, 26. Januar 2016, 10:06:43 schrieb Shawn Lin: > Only one of "broken-cd" and "non-removable" should be supplied > according to Documentation/devicetree/bindings/mmc/mmc.txt. > Obviously emmc and sdio-wifi are non-removable devices, while > broken-cd is for removable device whose card det

Re: [PATCH] arm64: dts: rockchip: remove broken-cd from emmc and sdio

2016-03-02 Thread Heiko Stübner
Am Dienstag, 26. Januar 2016, 10:06:59 schrieb Shawn Lin: > Only one of "broken-cd" and "non-removable" should be supplied > according to Documentation/devicetree/bindings/mmc/mmc.txt. > Obviously emmc and sdio-wifi are non-removable devices, while > broken-cd is for removable device whose card det

Re: [RFC PATCH] x86: Make sure verify_cpu has a good stack

2016-03-02 Thread Borislav Petkov
On Wed, Mar 02, 2016 at 01:35:09PM -0800, H. Peter Anvin wrote: > You're not actually testing anything as the real issue is what happens > with a relocating bootloader. Hmm, how would that relocation happen so that va - __START_KERNEL_map doesn't give pa? Or do you mean something else with "reloc

Re: [PATCH 44/50] pinctrl: rockchip: Use devm_pinctrl_register() for pinctrl registration

2016-03-02 Thread Heiko Stübner
Am Mittwoch, 24. Februar 2016, 18:46:09 schrieb Laxman Dewangan: > Use devm_pinctrl_register() for pin control registration. > > Signed-off-by: Laxman Dewangan > Cc: Heiko Stuebner > Cc: linux-rockc...@lists.infradead.org looks good to me Reviewed-by: Heiko Stuebner

Re: [PATCHv7 3/7] eeprom: at24: extend driver to plug into the NVMEM framework

2016-03-02 Thread Andrew Lunn
On Wed, Mar 02, 2016 at 11:46:39PM +0200, Vladimir Zapolskiy wrote: > Hi Andrew, > > On 26.02.2016 21:59, Andrew Lunn wrote: > > Add a regmap for accessing the EEPROM, and then use that with the > > NVMEM framework. Set the NVMEM config structure to enable backward, so > > that the 'eeprom' file i

[PATCH] staging/android: add flags member to sync ioctl structs

2016-03-02 Thread Gustavo Padovan
From: Gustavo Padovan Play safe and add flags member to all structs. So we don't need to break API or create new IOCTL in the future if new features that requires flags arises. v2: check if flags are valid (zero, in this case) v3: return -EINVAL if flags are not zero'ed v4: add padding for 64-

Re: [PATCH v5 5/5] lib/percpu-list: Add a config parameter for disabling per-cpu list

2016-03-02 Thread Waiman Long
On 03/02/2016 03:41 AM, Ingo Molnar wrote: * Waiman Long wrote: As there is concern that the larger pcpu_list_node structure and the per-cpu overhead may be a waste of resource on small system. This patch adds a config parameter CONFIG_PERCPU_LIST to disable the per-cpu list if the kernel buil

Re: [PATCHv7 5/7] eeprom: at25: extend driver to plug into the NVMEM framework

2016-03-02 Thread Vladimir Zapolskiy
Hi Andrew, On 26.02.2016 21:59, Andrew Lunn wrote: > Add a regmap for accessing the EEPROM, and then use that with the > NVMEM framework. Enable backwards compatibility in the NVMEM config, > so that the 'eeprom' file in sys is provided by the framework. > > Signed-off-by: Andrew Lunn > Acked-by

[PATCH v3 02/16] KVM: x86: simplify atomics in kvm_pit_ack_irq

2016-03-02 Thread Radim Krčmář
From: Radim Krčmář We already have a helper that does the same thing. Signed-off-by: Radim Krčmář --- arch/x86/kvm/i8254.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/arch/x86/kvm/i8254.c b/arch/x86/kvm/i8254.c index ab5318727579..7d694ac7f4a4 100644 --- a/

[PATCH v3 00/16] KVM: x86: change PIT discard policy and untangle related code

2016-03-02 Thread Radim Krčmář
From: Radim Krčmář v3 - mark patches reviewed by Paolo [1,9-14/16] - properly categorize reinject struct member [Paolo] [7/16] - use atomic_t to document reinject usage [Paolo] [15/16] - document PIT reinject modes [16/16] v2: http://www.spinics.net/lists/kvm/msg127927.html Radim Krčmář (16

[PATCH v3 01/16] KVM: x86: change PIT discard tick policy

2016-03-02 Thread Radim Krčmář
From: Radim Krčmář Discard policy uses ack_notifiers to prevent injection of PIT interrupts before EOI from the last one. This patch changes the policy to always try to deliver the interrupt, which makes a difference when its vector is in ISR. Old implementation would drop the interrupt, but pro

[PATCH v3 05/16] KVM: x86: tone down WARN_ON pit.state_lock

2016-03-02 Thread Radim Krčmář
From: Radim Krčmář If the guest could hit this, it would hang the host kernel, bacause of sheer number of those reports. Internal callers have to be sensible anyway, so we now only check for it in an API function. Signed-off-by: Radim Krčmář --- arch/x86/kvm/i8254.c | 17 +++-- 1

[PATCH v3 03/16] KVM: x86: add kvm_pit_reset_reinject

2016-03-02 Thread Radim Krčmář
From: Radim Krčmář pit_state.pending and pit_state.irq_ack are always reset at the same time. Create a function for them. Signed-off-by: Radim Krčmář --- arch/x86/kvm/i8254.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/arch/x86/kvm/i8254.c b/arch/x8

[PATCH v3 06/16] KVM: x86: pass struct kvm_pit instead of kvm in PIT

2016-03-02 Thread Radim Krčmář
From: Radim Krčmář This patch passes struct kvm_pit into internal PIT functions. Those functions used to get PIT through kvm->arch.vpit, even though most of them never used *kvm for other purposes. Another benefit is that we don't need to set kvm->arch.vpit during initialization. Signed-off-by:

[PATCH v3 08/16] KVM: x86: remove notifiers from PIT discard policy

2016-03-02 Thread Radim Krčmář
From: Radim Krčmář Discard policy doesn't rely on information from notifiers, so we don't need to register notifiers unconditionally. We kept correct counts in case userspace switched between policies during runtime, but that can be avoided by reseting the state. Signed-off-by: Radim Krčmář --

[PATCH v2 2/4] resource: Add remove_resource interface

2016-03-02 Thread Toshi Kani
insert_resource() and insert_resource_conflict() are called by resource producers to insert a new resource. When there is any conflict, they move conflicting resources down to the children of the new resource. There is no destructor of these interfaces, however. Add remove_resource(), which remo

[PATCH v2 4/4] ACPI: Change NFIT driver to insert new resource

2016-03-02 Thread Toshi Kani
ACPI 6.0 defines persistent memory (PMEM) ranges in multiple firmware interfaces, e820, EFI, and ACPI NFIT table. This EFI change, however, leads to hit a bug in the grub bootloader, which treats EFI_PERSISTENT_MEMORY type as regular memory and corrupts stored user data [1]. Therefore, BIOS may s

[PATCH v2 0/4] Support persistent memory as reserved type in e820/EFI

2016-03-02 Thread Toshi Kani
ACPI 6.0 defines persistent memory (PMEM) ranges in multiple firmware interfaces, e820, EFI, and ACPI NFIT table. This EFI change, however, leads to hit a bug in the grub bootloader, which treats EFI_PERSISTENT_MEMORY type as regular memory and corrupts stored user data [1]. Therefore, BIOS may s

[PATCH v3 16/16] KVM: document KVM_REINJECT_CONTROL ioctl

2016-03-02 Thread Radim Krčmář
From: Radim Krčmář Signed-off-by: Radim Krčmář --- v3: new, one result of a long discussion with Paolo Documentation/virtual/kvm/api.txt | 24 1 file changed, 24 insertions(+) diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt index 4

[PATCH v3 14/16] KVM: x86: move PIT timer function initialization

2016-03-02 Thread Radim Krčmář
From: Radim Krčmář We can do it just once. Reviewed-by: Paolo Bonzini Signed-off-by: Radim Krčmář --- arch/x86/kvm/i8254.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/kvm/i8254.c b/arch/x86/kvm/i8254.c index 964902b33eed..68af4445d51d 100644 --- a/arch/x86/k

Re: [4.4-rc1][Regression] drm/i915: Check live status before reading edid

2016-03-02 Thread Joseph Salisbury
On 02/29/2016 04:33 AM, Jani Nikula wrote: > On Wed, 24 Feb 2016, Joseph Salisbury wrote: >> Hi Sonika, >> >> A kernel bug report was opened against Ubuntu [0]. After a kernel >> bisect, it was found that reverting the following commit resolved this bug: >> >> commit 237ed86c693d8a8e4db476976aeb3

[PATCH v3 07/16] KVM: x86: remove unnecessary uses of PIT state lock

2016-03-02 Thread Radim Krčmář
From: Radim Krčmář - kvm_create_pit had to lock only because it exposed kvm->arch.vpit very early, but initialization doesn't use kvm->arch.vpit since the last patch, so we can drop locking. - kvm_free_pit is only run after there are no users of KVM and therefore is the sole actor. - Lockin

Re: [RFC PATCH] x86: Make sure verify_cpu has a good stack

2016-03-02 Thread H. Peter Anvin
On 03/02/16 13:46, Borislav Petkov wrote: > On Wed, Mar 02, 2016 at 01:35:09PM -0800, H. Peter Anvin wrote: >> You're not actually testing anything as the real issue is what happens >> with a relocating bootloader. > > Hmm, how would that relocation happen so that va - __START_KERNEL_map > doesn't

Re: [PATCH 02/41] clk: bcm: Remove CLK_IS_ROOT

2016-03-02 Thread Eric Anholt
Stephen Boyd writes: > This flag is a no-op now. Remove usage of the flag. I like that this flag is going away. It's a nice cleanup. Reviewed-by: Eric Anholt signature.asc Description: PGP signature

[PATCH v2 1/4] resource: Change __request_region to inherit from immediate parent

2016-03-02 Thread Toshi Kani
__request_region() sets 'flags' of a new resource from @parent as it inherits the parent's attribute. When a target resource has a conflict, this function inserts the new resource entry under the conflicted entry by updating @parent. In this case, the new resource entry needs to inherit attribute

[PATCH v2 3/4] resource: Add device-managed insert/remove_resource()

2016-03-02 Thread Toshi Kani
insert_resource() and remove_resouce() are called by producers of resources, such as FW modules and bus drivers. These modules may be implemented as loadable modules. Add device-managed implementaions of insert_resource() and remove_resouce() functions. Signed-off-by: Toshi Kani Cc: Ingo Molnar

[PATCH v3 13/16] KVM: x86: don't assume layout of kvm_kpit_state

2016-03-02 Thread Radim Krčmář
From: Radim Krčmář channels has offset 0 and correct size now, but that can change. Reviewed-by: Paolo Bonzini Signed-off-by: Radim Krčmář --- arch/x86/kvm/x86.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 76f9

[PATCH v3 15/16] KVM: x86: turn kvm_kpit_state.reinject into atomic_t

2016-03-02 Thread Radim Krčmář
From: Radim Krčmář Document possible races between readers and concurrent update to the ioctl. Suggested-by: Paolo Bonzini Signed-off-by: Radim Krčmář --- v3: new arch/x86/kvm/i8254.c | 8 arch/x86/kvm/i8254.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/a

[PATCH v3 11/16] KVM: x86: remove pit and kvm from kvm_kpit_state

2016-03-02 Thread Radim Krčmář
From: Radim Krčmář kvm isn't ever used and pit can be accessed with container_of. If you *really* need kvm, pit_state_to_pit(ps)->kvm. Reviewed-by: Paolo Bonzini Signed-off-by: Radim Krčmář --- arch/x86/kvm/i8254.c | 14 +- arch/x86/kvm/i8254.h | 2 -- 2 files changed, 9 insertio

[PATCH v3 10/16] KVM: x86: refactor kvm_free_pit

2016-03-02 Thread Radim Krčmář
From: Radim Krčmář Could be easier to read, but git history will become deeper. Reviewed-by: Paolo Bonzini Signed-off-by: Radim Krčmář --- arch/x86/kvm/i8254.c | 22 ++ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/arch/x86/kvm/i8254.c b/arch/x86/kvm/i825

[PATCH] eventfd: document lockless access in eventfd_poll

2016-03-02 Thread Paolo Bonzini
Since commit e22553e2a25e ("eventfd: don't take the spinlock in eventfd_poll", 2015-02-17), eventfd is reading ctx->count outside ctx->wqh.lock. However, things aren't as simple as the read barrier in eventfd_poll would suggest. In fact, the read barrier, besides lacking a comment, is not paired

[PATCH v3 12/16] KVM: x86: remove pointless dereference of PIT

2016-03-02 Thread Radim Krčmář
From: Radim Krčmář PIT is known at that point. Reviewed-by: Paolo Bonzini Signed-off-by: Radim Krčmář --- arch/x86/kvm/i8254.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/i8254.c b/arch/x86/kvm/i8254.c index 37e665c5f307..964902b33eed 100644 --- a/arch

[PATCH 07/27] staging: lustre: issue in the offset in lnet match hash table

2016-03-02 Thread James Simmons
From: Alyona Romanenko the offset in hash table is overflowed for no wildcard portal. The offset for no wildcard has been corrected as for wildcard in the LU-1622 Signed-off-by: Alyona Romanenko Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7774 Reviewed-on: http://review.whamcloud.com/18

[PATCH 26/27] staging: lustre: avoid intensive reconnecting for ko2iblnd

2016-03-02 Thread James Simmons
From: Liang Zhen When there is a connection race between two nodes and one side of the connection is rejected by the other side. o2iblnd will reconnect immediately, this is going to generate a lot of trashes if: - race winner is slow and can't send out connecting request in short time. - re

[PATCH 13/27] staging: lustre: fix api-ni.c issues found by Klocwork Insight tool

2016-03-02 Thread James Simmons
From: Dmitry Eremin Pointer 'ni' checked for NULL at line 1569 may be passed to function and may be dereferenced there by passing argument 1 to function 'lnet_ni_notify_locked' at line 1621. Signed-off-by: Dmitry Eremin Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4629 Reviewed-on: http:

[PATCH 01/27] staging: lustre: set downis to 1 if there's no NI for remote net

2016-03-02 Thread James Simmons
From: Liang Zhen lnet_route_t::lr_downis is marked as zero even if there is no NI to target network, this is wrong and breaks logic of ARF. This patch fixes this problem. Signed-off-by: Liang Zhen Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6060 Reviewed-on: http://review.whamcloud.com/

[PATCH 04/27] staging: lustre: return proper error code for LNet core

2016-03-02 Thread James Simmons
It is consider bad style in the linux kernel to return -1 or a positive number for an error. Instead return the appropriate error codes. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6142 Reviewed-on: http://review.whamcloud.com/17626 Reviewed-by: Doug Oucharek

[PATCH] staging: lustre: Support different ko2iblnd configs between systems

2016-03-02 Thread James Simmons
From: Jeremy Filizetti This patch adds suppoort for ko2iblnd to have different values for peer_credits and map_on_demand between systems. Signed-off-by: Jeremy Filizetti Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3322 Reviewed-on: http://review.whamcloud.com/11794 Reviewed-by: Amir She

[PATCH 23/27] staging: lustre: take extra refcount in kiblnd_connreq_done

2016-03-02 Thread James Simmons
From: Liang Zhen refcount taken by cmid is not reliable after kiblnd_connreq_done released the glock because this connection is visible to other threads, another thread can find and close this connection right after kiblnd_connreq_done released the glock, if kiblnd_cm_callback for RDMA_CM_EVENT_D

[PATCH 00/27] Third batch of LNet fixes

2016-03-02 Thread James Simmons
This patch set merges all the fixes for the klnd drivers, socklnd and o2iblnd, to what is currently used in production environments. Several more fixes for the LNet core are also included with this patch set. Alyona Romanenko (1): staging: lustre: issue in the offset in lnet match hash table Am

[PATCH 24/27] staging: lustre: Change connect peer failed cleanup order

2016-03-02 Thread James Simmons
From: Doug Oucharek A race condition has been found where connd is cleaning up failed connections, the peer ref counter goes to zero, but we stil have a connecting counter > 0. One possible race is when we are retrying a connection by calling kiblnd_connect_peer() which itself fails and decremen

[PATCH 25/27] staging: lustre: check wr_id returned by ib_poll_cq

2016-03-02 Thread James Simmons
From: Liang Zhen If ib_poll_cq returned +ve without initialising ib_wc::wr_id (bug in driver), then o2iblnd will run into unpredictable situation because ib_wc::wr_id may refer to stale tx/rx pointer in stack. It indicates bug in HCA driver if this happened, ko2iblnd should output console error

[PATCH 27/27] staging: lustre: do less intense allocating retry for ko2iblnd

2016-03-02 Thread James Simmons
From: Liang Zhen ko2iblnd may retry too frequent for growing pools, all schedulers are spinning if another thread is in progress of allocating a new pool and can't finish right away because of high system load. Signed-off-by: Liang Zhen Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7054 R

[PATCH 18/27] staging: lustre: make o2iblnd_cb.c local functions static

2016-03-02 Thread James Simmons
From: Frank Zago This reduces the code size by about 1KiB. Signed-off-by: Frank Zago Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5396 Reviewed-on: http://review.whamcloud.com/11256 Reviewed-by: Patrick Farrell Reviewed-by: John L. Hammond Reviewed-by: Oleg Drokin --- .../staging/lus

[PATCH 19/27] staging: lustre: corrected some typos and grammar errors

2016-03-02 Thread James Simmons
From: Frank Zago Cleanup various typos and grammar errors. Signed-off-by: Frank Zago Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5710 Reviewed-on: http://review.whamcloud.com/12201 Reviewed-by: James Simmons Reviewed-by: Bob Glossman Reviewed-by: Oleg Drokin --- .../staging/lustre/l

[PATCH 22/27] staging: lustre: make ko2iblnd connect parameters persistent

2016-03-02 Thread James Simmons
From: Amir Shehata Store map-on-demand and peertx credits in the peer, since the peer is persistent. Also made sure that when assigning the parameters received on the connection to the peer structure through create, that if another peer is added before grabbing the lock we assign these parameters

[PATCH 20/27] staging: lustre: change ibh_mrs from array to pointer

2016-03-02 Thread James Simmons
From: Amir Shehata With the removal of PMR we no longer require ibh_mrs field to be a array so change it to a simple pointer. Signed-off-by: Amir Shehata Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6850 Reviewed-on: http://review.whamcloud.com/15788 Reviewed-by: James Simmons Reviewed-

[PATCH 17/27] staging: lustre: make o2iblnd local functions static

2016-03-02 Thread James Simmons
From: Frank Zago This fixes sparse warnings such as: .../o2iblnd.c:424:1: warning: symbol 'kiblnd_get_peer_info' was not declared. Should it be static? This reduces the code size by 400 bytes. The body of "the_o2iblnd" was moved at the end of the file, to avoid having to

[PATCH 10/27] staging: lustre: replace direct LNet HZ access with kernel APIs

2016-03-02 Thread James Simmons
From: Jian Yu On some customers' systems, the kernel was compiled with HZ defined to 100, instead of 1000. This improves performance for HPC applications. However, to use these systems with Lustre, customers have to re-build Lustre for the kernel because Lustre directly uses the defined constant

[PATCH 12/27] staging: lustre: fix socklnd issues found by Klocwork Insight tool

2016-03-02 Thread James Simmons
From: Dmitry Eremin Null pointer 'best_iface' that comes from line 802 may be dereferenced at line 832. Signed-off-by: Dmitry Eremin Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4629 Reviewed-on: http://review.whamcloud.com/9386 Reviewed-by: John L. Hammond Reviewed-by: Isaac Huang Rev

[PATCH 14/27] staging: lustre: fix conctl.c issues found by Klocwork Insight tool

2016-03-02 Thread James Simmons
From: Dmitry Eremin The function lst_test_add_ioctl is always copying lstio_tes_param from userland even if the user doesn't send this data to LNet selftest. Only consider lstio_tes_param data if lstio_tes_param_len is not zero. Signed-off-by: Dmitry Eremin Intel-bug-id: https://jira.hpdd.intel

[PATCH 15/27] staging: lustre: fix framework.c issues found by Klocwork Insight tool

2016-03-02 Thread James Simmons
From: Dmitry Eremin The functions sfw_test_buffers() and sfw_unload_test() from LNet selftest both assume sfw_test_instance_t being passed in is never null. This is corrected here. Signed-off-by: Dmitry Eremin Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4629 Reviewed-on: http://review.w

[PATCH 16/27] staging: lustre: reverse LNet and infinband header order

2016-03-02 Thread James Simmons
LNet is an abstraction built on top of network APIs such as infiniband or TCP/IP layer. Since LNet is dependent on these other layers we should ensure LNet headers should always come after the infiniband header since the infiniband headers can influence the LNet header definitions. Signed-off-by:

[PATCH 11/27] staging: lustre: bind socklnd peers to a specific CPT

2016-03-02 Thread James Simmons
Currently the socklnd driver doesn't support CPT affinity for its peers. Binding peers to a specific CPT and memory allocated to the NUMA node belonging to the CPT should give a performance boost. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7245 Reviewed-on: h

[PATCH 09/27] staging: lustre: set task state before scheduling in lnet_sock_accept

2016-03-02 Thread James Simmons
From: John L. Hammond In the original code change when libcfs_sock_accept() was made into lnet_sock_accept() a call to set_current_state(TASK_INTERRUPTIBLE) got dropped which was restored. For upstream this is an optimization of calling init_waitqueue_entry() only if accept() return -EAGAIN. Also

[PATCH 08/27] staging: lustre: fix 'copy into fixed size buffer' errors

2016-03-02 Thread James Simmons
From: Sebastien Buisson Fix 'copy into fixed size buffer' defects found by Coverity version 6.0.3: Copy into fixed size buffer (STRING_OVERFLOW) The fixed-size string might be overrun by copying without checking the length. Signed-off-by: Sebastien Buisson Intel-bug-id: https://jira.hpdd.intel.

Re: [PATCH] eventfd: document lockless access in eventfd_poll

2016-03-02 Thread Andrea Arcangeli
On Wed, Mar 02, 2016 at 11:01:58PM +0100, Paolo Bonzini wrote: > diff --git a/fs/eventfd.c b/fs/eventfd.c > index 8d0c0df01854..dbbbe203f82b 100644 > --- a/fs/eventfd.c > +++ b/fs/eventfd.c > @@ -121,8 +121,46 @@ static unsigned int eventfd_poll(struct file *file, > poll_table *wait) > u64 c

[PATCH 06/27] staging: lustre: Use after free in lnet_ptl_match_delay()

2016-03-02 Thread James Simmons
From: Olaf Weber In lnet_ptl_match_delay() we check msg->msg_rx_delayed to see whether the message has been added to the delay queue. But this check is done after lnet_ptl_unlock() and lnet_res_unlock(), and the message can be processed and freed before the check. Replace the check with checking

[PATCH 05/27] staging: lustre: remove annoying message in parse_nidrange

2016-03-02 Thread James Simmons
From: Li Xi When setting TBF rules of jobid, parse_nidrange() prints warning messages. However, this is unnecessary and annoying since paring a TBF rule will always try to parse the jobid like a nid. Signed-off-by: Li Xi Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7647 Reviewed-on: http

Re: [PATCHv7 6/7] eeprom: 93xx46: extend driver to plug into the NVMEM framework

2016-03-02 Thread Vladimir Zapolskiy
Hi Andrew, On 26.02.2016 21:59, Andrew Lunn wrote: > Add a regmap for accessing the EEPROM, and then use that with the > NVMEM framework. Enable backward compatibility in the NVMEM config > structure, so that the 'eeprom' file in sys is provided by the > framework. > > Signed-off-by: Andrew Lunn

[PATCH 03/27] staging: lustre: Ignore hops if not explicitly set

2016-03-02 Thread James Simmons
From: Amir Shehata Since the # of hops is not a mandatory parameter the LU-6060 patch will cause problems to already existing systems since it changes the behavior by which a route is determined down. To fix this case the # of hops now defaults to LNET_UNDEFINED_HOPS if no hop count is specified

[PATCH 02/27] staging: lustre: recv could access freed message

2016-03-02 Thread James Simmons
From: Liang Zhen When lnet_parse_put calls lnet_ptl_match_md, this function can attach current message on the delayed list if there is no match. It means this message can be taken over and freed by another thread who is posting new MD, then it is not safe for caller of lnet_parse_put to check thi

[PATCH v3 09/16] KVM: x86: refactor kvm_create_pit

2016-03-02 Thread Radim Krčmář
From: Radim Krčmář Locks are gone, so we don't need to duplicate error paths. Use goto everywhere. Reviewed-by: Paolo Bonzini Signed-off-by: Radim Krčmář --- arch/x86/kvm/i8254.c | 27 --- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/arch/x86/kvm/i82

Re: [RFC PATCH] x86: Make sure verify_cpu has a good stack

2016-03-02 Thread Borislav Petkov
On Wed, Mar 02, 2016 at 01:54:50PM -0800, H. Peter Anvin wrote: > A relocating bootloader is one that doesn't load the kernel at > CONFIG_PHYSICAL_ADDRESS. The EFI stub is one example. > > __START_KERNEL_map is not relocated. On x86-64 we do relocation by > pointing the page tables at a differen

[PATCH v3 04/16] KVM: x86: use atomic_t instead of pit.inject_lock

2016-03-02 Thread Radim Krčmář
From: Radim Krčmář The lock was an overkill, the same can be done with atomics. A mb() was added in kvm_pit_ack_irq, to pair with implicit barrier between pit_timer_fn and pit_do_work. The mb() prevents a race that could happen if pending == 0 and irq_ack == 0: kvm_pit_ack_irq:

Re: [RFC PATCH] x86: Make sure verify_cpu has a good stack

2016-03-02 Thread H. Peter Anvin
On 03/02/16 14:09, Borislav Petkov wrote: > On Wed, Mar 02, 2016 at 01:54:50PM -0800, H. Peter Anvin wrote: >> A relocating bootloader is one that doesn't load the kernel at >> CONFIG_PHYSICAL_ADDRESS. The EFI stub is one example. >> >> __START_KERNEL_map is not relocated. On x86-64 we do relocat

linux-next: manual merge of the samsung-krzk tree with the omap tree

2016-03-02 Thread Stephen Rothwell
Hi Krzysztof, Today's linux-next merge of the samsung-krzk tree got a conflict in: drivers/clk/Kconfig between commit: 21330497f303 ("clk: ti: Add support for dm814x ADPLL") from the omap tree and commit: b9e65ebc654d ("clk: Move vendor's Kconfig into CCF menu section") from the samsun

<    5   6   7   8   9   10   11   >