[PATCH 1/3] KVM: x86: Emulator flag for instruction with no big real mode

2014-06-18 Thread Nadav Amit
Certain instructions, such as monitor and xsave do not support big real mode and cause a #GP exception if any of the accessed bytes effective address are not within [0, 0x]. This patch introduces a flag to mark these instructions, including the necassary checks. Signed-off-by: Nadav Amit ---

Re: [RFT v5h printk: allow increasing the ring buffer depending on the number of CPUs

2014-06-18 Thread Petr Mládek
On Wed 2014-06-18 12:59:26, Luis R. Rodriguez wrote: > On Wed, Jun 18, 2014 at 10:31:02AM +0200, Petr Mládek wrote: > > On Wed 2014-06-18 02:18:16, Luis R. Rodriguez wrote: > > I am happy with this solution. And I agree that it is better to split > > log_buf_len_align() in a separate patch as you s

[PATCH kvm-unit-tests 2/5] x86: test xadd with two identical operands

2014-06-18 Thread Nadav Amit
Previously, KVM emulated xadd incorrectly when the source and destination operands were identical. The expected result is that the register would hold the sum (2x) and not the previous value (x). This test checks this behavior. It should be executed with a disabled unrestricted mode. Signed-off-

Re: [PATCH] USB:gadget: Fix a warning while loading g_mass_storage

2014-06-18 Thread Alan Stern
On Wed, 18 Jun 2014, Michal Nazarewicz wrote: > On Wed, Jun 18 2014, Yang,Wei wrote: > > On 06/17/2014 10:18 PM, Alan Stern wrote: > >> That is a strange question to ask. If you did not know that I approved > >> the patch, why did you insert my Acked-By:? > > > I added your Acked-By, as when you

[PATCH] KVM: x86: Increase the number of fixed MTRR regs to 10

2014-06-18 Thread Nadav Amit
Recent Intel CPUs have 10 variable range MTRRs. Since operating systems sometime make assumptions on CPUs while they ignore capability MSRs, it is better for KVM to be consistent with recent CPUs. Reporting more MTRRs than actually supported has no functional implications. Signed-off-by: Nadav Ami

Re: [PATCH 12/13] kexec: Support for Kexec on panic using new system call

2014-06-18 Thread Vivek Goyal
On Tue, Jun 17, 2014 at 11:43:10PM +0200, Borislav Petkov wrote: [..] > > diff --git a/arch/x86/include/asm/crash.h b/arch/x86/include/asm/crash.h > > new file mode 100644 > > index 000..2dd2eb8 > > --- /dev/null > > +++ b/arch/x86/include/asm/crash.h > > @@ -0,0 +1,9 @@ > > +#ifndef _ASM_X86_

[PATCH v2 9/9] KVM: vmx: vmx instructions handling does not consider cs.l

2014-06-18 Thread Nadav Amit
VMX instructions use 32-bit operands in 32-bit mode, and 64-bit operands in 64-bit mode. The current implementation is broken since it does not use the register operands correctly, and always uses 64-bit for reads and writes. Moreover, write to memory in vmwrite only considers long-mode, so it ign

[PATCH 2/3] KVM: x86: Emulator support for #UD on CPL>0

2014-06-18 Thread Nadav Amit
Certain instructions (e.g., mwait and monitor) cause a #UD exception when they are executed in privilaged mode. This is in contrast to the regular privilaged instructions which cause #GP. In order not to mess with SVM interception of mwait and monitor which assumes privilage level assertions take p

[PATCH 0/3] Correct monitor-mwait emulation as nop

2014-06-18 Thread Nadav Amit
KVM handles monitor-mwait as nop, but does not check any of the preconditions for the instructions. These instructions may generate all kind of exceptions (#UD, #PF, #GP, #SS). They can also be executed in real-mode. This patch-set moves the handling of monitor-mwait to the emulator, to allow the

[PATCH] [TRIVIAL] Remove MPILIB_EXTRA

2014-06-18 Thread Paul Bolle
From: Richard Weinberger The symbol is an orphan, get rid of it. Signed-off-by: Richard Weinberger Signed-off-by: Paul Bolle --- Bounced to trivial. Tested with make menuconfig and make oldconfig. Since I'm sending this to Jiri myself I've upgraded my Acked-by to Signed-off-by. crypto/asymme

[PATCH 1/2] Staging: bcm: Prototypes.h: fix checkpatch errors

2014-06-18 Thread Christian Bay
This patch fixes all errors, excluding > 80 character warnings, shown by the checkpatch script. In detail whitespace changes according to the coding guideline are meant. Additionally there is exactly one newline after every declaration of methods now. Signed-off-by: Christian Bay Signed-off-by

[PATCH] mm: slab.h: wrap the whole file with guarding macro

2014-06-18 Thread Andrey Ryabinin
Guarding section: #ifndef MM_SLAB_H #define MM_SLAB_H ... #endif currently doesn't cover the whole mm/slab.h. It seems like it was done unintentionally. Wrap the whole file by moving closing #endif to the end of it. Signed-off-by: Andrey Ryabinin --- mm/slab.h |

[PATCH 0/2] Staging: bcm: checkpath.pl fixes

2014-06-18 Thread Christian Bay
This patch series will fix several errors and warnings shown by the checkpath.pl script at module driver/staging/bcm. Kernel Version: v3.16-rc1 Christian Bay (2): Staging: bcm: Prototypes.h: fix checkpatch errors Staging: bcm: Queue.h: fix checkpatch errors drivers/staging/bcm/Prototypes.h

[PATCH 2/2] Staging: bcm: Queue.h: fix checkpatch errors

2014-06-18 Thread Christian Bay
This patch fixes all checkpatch errors and warnings in Queue.h: Whitespaces, brackets and comments according to the coding guideline Signed-off-by: Christian Bay Signed-off-by: Martin Gumbrecht --- drivers/staging/bcm/Queue.h | 44 +--- 1 file changed, 21

Re: [PATCH v5 0/7] xen: Add EFI support

2014-06-18 Thread Matt Fleming
On Fri, 13 Jun, at 07:00:16PM, Daniel Kiper wrote: > Hey, > > This patch series adds EFI support for Xen dom0 guests. > It is based on Jan Beulich and Tang Liang work. I was > trying to take into account all previous comments, > however, if I missed something sorry for that. > > Daniel > > arch

Your Email Account Warning!!

2014-06-18 Thread Boyer, Aliya R
Due to the congestion in all Email Account and removal of all unused Webmail Accounts, Fill the details below to upgrade your account. User Name( ) Email Id: ( ) Password( )-- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.k

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

2014-06-18 Thread Lee Jones
On Wed, 18 Jun 2014, Javier Martinez Canillas wrote: > Hello Lee, > > Thanks a lot for your feedback. > > On 06/17/2014 11:17 PM, Lee Jones wrote: > >> The MAX77802 PMIC has 10 high-efficiency Buck and 32 Low-dropout > >> (LDO) regulators. This patch adds support for all these regulators > >> fo

Re: [PATCH] arm64: support reboot and power off via EFI runtime

2014-06-18 Thread Rob Herring
On Tue, Jun 17, 2014 at 11:45 AM, Mark Salter wrote: > Add handlers for arm_pm_resestart and pm_power_off which use EFI typo. > runtime services ResetSystem call to perform the functions. These > handlers are only installed if no handler currently exists. This > allows PSCI to take priority over

Re: [PATCH v5 6/7] arch/x86: Remove redundant set_bit() call

2014-06-18 Thread Matt Fleming
On Wed, 18 Jun, at 10:01:01AM, Konrad Rzeszutek Wilk wrote: > On Wed, Jun 18, 2014 at 02:56:37PM +0100, Matt Fleming wrote: > > On Fri, 13 Jun, at 07:00:22PM, Daniel Kiper wrote: > > > Remove redundant set_bit(EFI_SYSTEM_TABLES, &efi.flags) call. > > > It is executed earlier in efi_systab_init(). >

[PATCH net-next v4 0/3] Driver for TI CC2520 Radio

2014-06-18 Thread Varka Bhadram
This series adds the driver support for TI cc2520 radio. also devicetree bindings for the driver. changes since v3: -drop the unused varible. changes since v2: - drop spi mode dt binding changes since v1: - improverment in gpio setup - changed len pointer to len v

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

2014-06-18 Thread Matt Fleming
On Fri, 13 Jun, at 07:00:23PM, Daniel Kiper wrote: > efi_set_rtc_mmss() is never used to set RTC due to bugs found > on many EFI platforms. It is set directly by mach_set_rtc_mmss(). > > Signed-off-by: Daniel Kiper > --- > arch/x86/platform/efi/efi.c |6 ++ > 1 file changed, 6 insertions

[PATCH net-next v4 3/3] devicetree: add device tree bindings for cc2520 driver

2014-06-18 Thread Varka Bhadram
DT bindings for cc2520 radio driver Signed-off-by: Varka Bhadram --- .../devicetree/bindings/net/ieee802154/cc2520.txt | 29 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/ieee802154/cc2520.txt diff --git a/Documentation/device

[PATCH net-next v4 2/3] ieee802154: cc2520: add driver to kernel build system

2014-06-18 Thread Varka Bhadram
Signed-off-by: Varka Bhadram --- drivers/net/ieee802154/Kconfig | 11 +++ drivers/net/ieee802154/Makefile |1 + 2 files changed, 12 insertions(+) diff --git a/drivers/net/ieee802154/Kconfig b/drivers/net/ieee802154/Kconfig index 3e89bea..8b7ae51 100644 --- a/drivers/net/ieee80215

[PATCH net-next v4 1/3] ieee802154: cc2520: adds driver for TI CC2520 radio

2014-06-18 Thread Varka Bhadram
This patch adds the driver support for the cc2520 radio. Driver support: - Tx and Rx of IEEE-802.15.4 packets. - Energy Detection on channel. - Setting the Channel for the radio. [b/w 11 - 26 channels] - Start and Stop the radio. Signed-off-by: Varka Bhadram ---

Re: [PATCH v5 1/7] efi: Use early_mem*() instead of early_io*()

2014-06-18 Thread Mark Salter
On Wed, 2014-06-18 at 13:17 +0100, Matt Fleming wrote: > Now, the only difference between early_memremap() and early_ioremap(), > at least on x86, is PAGE_KERNEL vs. PAGE_KERNEL_IO, where PAGE_KERNEL_IO > has the additional _PAGE_BIT_IOMAP bit set in the pte. But that's a > software bit for x86. I

[PATCH v2] [TRIVIAL] ARM: msm: Remove MSM_SCM

2014-06-18 Thread Paul Bolle
Commit 8fc1b0f87d9f ("ARM: qcom: Split Qualcomm support into legacy and multiplatform") removed all users of Kconfig symbol MSM_SCM. Remove that symbol too. Signed-off-by: Paul Bolle Reviewed-by: Stephen Boyd --- v2: added Reviewed-by tag and sent to trivial. See https://lkml.org/lkml/2014/4/6/1

Re: [PATCH v5 6/7] arch/x86: Remove redundant set_bit() call

2014-06-18 Thread Konrad Rzeszutek Wilk
On Wed, Jun 18, 2014 at 02:56:37PM +0100, Matt Fleming wrote: > On Fri, 13 Jun, at 07:00:22PM, Daniel Kiper wrote: > > Remove redundant set_bit(EFI_SYSTEM_TABLES, &efi.flags) call. > > It is executed earlier in efi_systab_init(). > > > > Signed-off-by: Daniel Kiper > > --- > > arch/x86/platform/

Re: [PATCH v5 2/7] efi: Introduce EFI_NO_DIRECT flag

2014-06-18 Thread Jan Beulich
>>> On 18.06.14 at 15:52, wrote: > EFI_PARAVIRT will be usable by architectures other than x86, correct? If > your intention is for it only ever to be used by x86, then it should > probably be EFI_ARCH_2. I would expect ARM, once it gets UEFI support on the Xen side, to be able to handle most of

Re: [PATCH v5 6/7] arch/x86: Remove redundant set_bit() call

2014-06-18 Thread Matt Fleming
On Fri, 13 Jun, at 07:00:22PM, Daniel Kiper wrote: > Remove redundant set_bit(EFI_SYSTEM_TABLES, &efi.flags) call. > It is executed earlier in efi_systab_init(). > > Signed-off-by: Daniel Kiper > --- > arch/x86/platform/efi/efi.c |2 -- > 1 file changed, 2 deletions(-) Looks good! -- Matt

[PATCH] arm: get rid of hardcoded assumptions about kernel stack size

2014-06-18 Thread Andrey Ryabinin
Changing kernel stack size on arm is not as simple as it should be: 1) THRED_SIZE macro doen't respect PAGE_SIZE and THREAD_SIZE_ORDER 2) stack size is hardcoded in get_thread_info macro This patch fixes it by caculating THREAD_SIZE and thread_info address taking into account PAGE_SIZE and THREAD_

Re: [PATCH v5 5/7] arch/x86: Replace plain strings with constants

2014-06-18 Thread Matt Fleming
On Fri, 13 Jun, at 07:00:21PM, Daniel Kiper wrote: > v5 - suggestions/fixes: >- do not change indentation > (suggested by Matt Fleming). > > Signed-off-by: Daniel Kiper > --- > arch/x86/kernel/setup.c |4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Looks good, but it's c

Re: [PATCH] arm64: export __cpu_{clear,copy}_user_page functions

2014-06-18 Thread Mark Salter
On Wed, 2014-06-18 at 11:39 +0100, Catalin Marinas wrote: > On Tue, Jun 17, 2014 at 06:14:26PM +0100, Mark Salter wrote: > > The __cpu_clear_user_page() and __cpu_copy_user_page() functions > > are not currently exported. This prevents modules from using > > clear_user_page() and opy_user_page(). >

Re: [PATCH v5 2/7] efi: Introduce EFI_NO_DIRECT flag

2014-06-18 Thread Matt Fleming
On Fri, 13 Jun, at 07:00:18PM, Daniel Kiper wrote: > Introduce EFI_NO_DIRECT flag. If it is set then kernel runs > on EFI platform but it has not direct control on EFI stuff > like EFI runtime, tables, structures, etc. If not this means > that Linux Kernel has direct access to EFI infrastructure >

Re: [PATCH] arm64: support reboot and power off via EFI runtime

2014-06-18 Thread Mark Salter
On Wed, 2014-06-18 at 14:26 +0100, Mark Rutland wrote: > Hi Mark, > > On Tue, Jun 17, 2014 at 05:45:14PM +0100, Mark Salter wrote: > > Add handlers for arm_pm_resestart and pm_power_off which use EFI > > runtime services ResetSystem call to perform the functions. These > > handlers are only instal

Re: [PATCH 04/11] qspinlock: Extract out the exchange of tail code word

2014-06-18 Thread Konrad Rzeszutek Wilk
On Wed, Jun 18, 2014 at 01:37:45PM +0200, Paolo Bonzini wrote: > Il 17/06/2014 22:55, Konrad Rzeszutek Wilk ha scritto: > >On Sun, Jun 15, 2014 at 02:47:01PM +0200, Peter Zijlstra wrote: > >>From: Waiman Long > >> > >>This patch extracts the logic for the exchange of new and previous tail > >>code

[ANNOUNCE] util-linux v2.25-rc1

2014-06-18 Thread Karel Zak
The util-linux release v2.25 is available at ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.25 Feedback and bug reports, as always, are welcomed. Karel Util-linux 2.25 Release Notes = The command cytune(8) has been REMOVED from util-linux. The non-libm

[RFC PATCH v3] reset: Add a defer reset object to send board specific reset

2014-06-18 Thread Houcheng Lin
The Problem --- The reset signal on a hardware board is send either: - during machine initialization - during bus master's initialization In some hardware design, devices on bus need a non-standard and extra reset signal after bus is initialied. Most reason is to wake up device fro

Re: [ath5k-devel] [PATCH 09/28] Remove ATHEROS_AR231X

2014-06-18 Thread Paul Bolle
On Wed, 2014-06-18 at 15:15 +0200, Holger Schurig wrote: > Hmm, wouldn't the obvious thing than to add the driver in it's current > form into staging? Is it well-separated from the rest of Atheros > WLAN drivers ? A quick glance at the code shows an include of ar231x_platform.h (which doesn't ex

Re: [PATCH net-next v2 1/3] ieee802154: cc2520: adds driver for TI CC2520 radio

2014-06-18 Thread Mark Rutland
On Wed, Jun 18, 2014 at 12:13:06PM +0100, Varka Bhadram wrote: > On 06/18/2014 03:25 PM, Mark Rutland wrote: > > On Wed, Jun 18, 2014 at 10:26:16AM +0100, Varka Bhadram wrote: > >> +static int cc2520_probe(struct spi_device *spi) > >> +{ > >> + struct cc2520_private *priv; > >> + struct

Re: [PATCH v4 1/2]: Allow architectures to skip a callchain entry

2014-06-18 Thread Jiri Olsa
On Thu, Jun 05, 2014 at 08:21:09PM -0700, Sukadev Bhattiprolu wrote: SNIP > index 7409ac8..3f97cf2 100644 > --- a/tools/perf/util/machine.c > +++ b/tools/perf/util/machine.c > @@ -1288,8 +1288,10 @@ static int machine__resolve_callchain_sample(struct > machine *machine, > { > u8 cpumode =

Re: [PATCH 03/11] qspinlock: Add pending bit

2014-06-18 Thread Konrad Rzeszutek Wilk
On Wed, Jun 18, 2014 at 01:29:48PM +0200, Paolo Bonzini wrote: > Il 17/06/2014 22:36, Konrad Rzeszutek Wilk ha scritto: > >+/* One more attempt - but if we fail mark it as pending. */ > >+if (val == _Q_LOCKED_VAL) { > >+new = Q_LOCKED_VAL |_Q_PENDING_VAL; > >+ > >+ol

[PATCH] fork: dup_mm: init vm stat counters under mmap_sem

2014-06-18 Thread Vladimir Davydov
If a forking process has a thread calling (un)mmap (silly but still), the child process may have some of its mm's vm stats (total_vm and friends) screwed up, because currently they are copied from oldmm w/o holding any locks (see dup_mm). This patch moves the stats initialization to dup_mmap to be

RE: [PATCH] Smack: separate smackfstransmute and smackfsroot

2014-06-18 Thread Chanho Park
Hi, > -Original Message- > From: Casey Schaufler [mailto:ca...@schaufler-ca.com] > Sent: Wednesday, June 18, 2014 10:26 PM > To: Chanho Park > Cc: james.l.mor...@oracle.com; linux-security-mod...@vger.kernel.org; > linux-kernel@vger.kernel.org; Casey Schaufler > Subject: Re: [PATCH] Smack:

Re: [PATCH] arm64: support reboot and power off via EFI runtime

2014-06-18 Thread Mark Rutland
Hi Mark, On Tue, Jun 17, 2014 at 05:45:14PM +0100, Mark Salter wrote: > Add handlers for arm_pm_resestart and pm_power_off which use EFI > runtime services ResetSystem call to perform the functions. These > handlers are only installed if no handler currently exists. This > allows PSCI to take prio

Re: [PATCH] Smack: separate smackfstransmute and smackfsroot

2014-06-18 Thread Casey Schaufler
On 6/18/2014 5:41 AM, Chanho Park wrote: > According to previous commit(e830b39: Smack: Add smkfstransmute mount option), > the smackfstransmute option is the smackfsroot option + transmute option. > I think it can be confused because the transmute option can only have "TRUE". > Before the patch, y

Re: [PATCH 1/3] drivers/gpio: devres.c: allow gpio array requests for managed devices

2014-06-18 Thread Heiko Stübner
Am Dienstag, 10. Juni 2014, 15:41:46 schrieb Rob Jones: > Add functions devm_gpio_request_array() and devm_gpio_free_array() > which are exactly analogous to the equivalent non-managed device > functions gpio_request_array() and gpio_free_array(), which can be > found in module gpiolib.c. > > Note

Re: [ath5k-devel] [PATCH 09/28] Remove ATHEROS_AR231X

2014-06-18 Thread Holger Schurig
> Having this conversation every rc1 is getting a bit silly. Hmm, wouldn't the obvious thing than to add the driver in it's current form into staging? Is it well-separated from the rest of Atheros WLAN drivers ? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the bo

Re: relative objtree change broke tar builds?

2014-06-18 Thread J. Bruce Fields
On Wed, Jun 18, 2014 at 02:33:22PM +0200, Michal Marek wrote: > Dne 18.6.2014 14:20, J. Bruce Fields napsal(a): > > On Wed, Jun 18, 2014 at 11:06:12AM +0200, Michal Marek wrote: > >> Dne 18.6.2014 00:38, J. Bruce Fields napsal(a): > >>> The changelog there says > >>> > >>> The main Makefile sets

Re: vdso_install target broken post-3.15

2014-06-18 Thread Josh Boyer
On Wed, Jun 18, 2014 at 12:22 AM, Andy Lutomirski wrote: > On Tue, Jun 17, 2014 at 8:48 PM, H. Peter Anvin wrote: >> On 06/17/2014 08:45 PM, Andy Lutomirski wrote: >>> On Tue, Jun 17, 2014 at 3:54 PM, Andy Lutomirski >>> wrote: Just a heads up: gdb can't debug the vdso on 3.16-rc1. I file

perf/events/core: Potential race in list_del_event

2014-06-18 Thread Alexey Preobrazhensky
Hi, I’m working on AddressSanitizer[1] -- a tool that detects use-after-free and out-of-bounds bugs in kernel. We’ve encountered a heap-use-after-free in list_del_event() in linux kernel 3.15+ (revision 64b2d1fbbfda). It seems to be a race between list_del_event() and free_event_rcu(), with writ

Re: [PATCH 0/6] powerpc/powernv: Applying it_page_shift to platform code

2014-06-18 Thread Benjamin Herrenschmidt
On Wed, 2014-06-18 at 17:56 +1000, Alexey Kardashevskiy wrote: > On 06/06/2014 06:44 PM, Alexey Kardashevskiy wrote: > > Here is what I got for powernv in order to support variable page size > > in iommu_table. > > > > I am very uncertain about Patch #4 "Add @it_owner to iommu_table struct" > > an

Re: [PATCH 2/3] drivers/base: devres.c: Add block copy func. for managed devices

2014-06-18 Thread Heiko Stübner
Am Dienstag, 10. Juni 2014, 15:41:47 schrieb Rob Jones: > Add function devm_kmemdup(). > Rationalise with devm_kstrdup() to avoid code duplication. > > Reviewed-by: Ian Molton > Signed-off-by: Rob Jones > --- > drivers/base/devres.c | 42 ++ > include/

Re: [PATCH 3/3] drivers/regulator: gpio-regulator.c: use managed resources for probe.

2014-06-18 Thread Heiko Stübner
Am Dienstag, 10. Juni 2014, 15:41:48 schrieb Rob Jones: > Use managed resource functions for all resource allocations in > gpio_regulator_probe(). > > Remove gpio_regulator_remove() as it is now redundant. > > Reviewed-by: Ian Molton > Signed-off-by: Rob Jones Reviewed-by: Heiko Stuebner >

Re: [PATCH v5 1/7] efi: Use early_mem*() instead of early_io*()

2014-06-18 Thread Daniel Kiper
On Wed, Jun 18, 2014 at 01:17:09PM +0100, Matt Fleming wrote: > (Pulling in Mark Salter for early_ioremap() knowledge) > > On Fri, 13 Jun, at 07:00:17PM, Daniel Kiper wrote: > > Use early_mem*() instead of early_io*() because all mapped EFI regions > > are true RAM not I/O regions. Additionally, I/

Re: [PATCH] watchdog: Remove preemption restrictions when restarting lockup detector

2014-06-18 Thread Don Zickus
On Tue, Jun 17, 2014 at 05:59:05PM -0700, David Rientjes wrote: > On Tue, 17 Jun 2014, Don Zickus wrote: > > > Peter Wu noticed the following splat on his machine when updating > > /proc/sys/kernel/watchdog_thresh: > > > > [0.676701] BUG: sleeping function called from invalid context at > >

Re: [PATCH v5] hwmon: Driver for TI TMP103 temperature sensor

2014-06-18 Thread Guenter Roeck
On 06/17/2014 11:58 PM, Varka Bhadram wrote: On 06/18/2014 11:46 AM, Heiko Schocher wrote: ... In the bindings you are giving the compatible property as : ti,tmp103, but here only tmp103. Instead of using the i2c_device_id struct , use of_device_id struct for giving the compatible property

Re: [PATCH] tty: serial: msm: Fix section mismatch warning

2014-06-18 Thread Arnd Bergmann
On Tuesday 17 June 2014 14:53:44 Kumar Gala wrote: > > On Jun 3, 2014, at 4:17 PM, Olof Johansson wrote: > > > On Tue, Jun 3, 2014 at 2:14 PM, Greg KH wrote: > >> On Tue, Jun 03, 2014 at 02:04:43PM -0700, Olof Johansson wrote: > >>> On Tue, Jun 3, 2014 at 1:33 PM, Greg KH > >>> wrote: >

Re: [bisected] pre-3.16 regression on open() scalability

2014-06-18 Thread Paul E. McKenney
On Tue, Jun 17, 2014 at 11:33:56PM -0700, Dave Hansen wrote: > On 06/17/2014 05:18 PM, Paul E. McKenney wrote: > > So if I understand correctly, a goodly part of the regression is due not > > to the overhead added to cond_resched(), but rather because grace periods > > are now happening faster, thu

Re: [PATCH RFC] mfd: syscon: Decouple syscon interface from syscon devices

2014-06-18 Thread Arnd Bergmann
On Tuesday 17 June 2014 23:26:22 Tomasz Figa wrote: > On 17.06.2014 17:42, Arnd Bergmann wrote: > > This seems like a reasonable way of solving the problem, but I think > > there is an even better one that we have about in the past: if we > > promote syscon from a platform driver into a a drivers/b

Re: [bisected] pre-3.16 regression on open() scalability

2014-06-18 Thread Paul E. McKenney
On Wed, Jun 18, 2014 at 05:40:28AM -0700, Andi Kleen wrote: > On Tue, Jun 17, 2014 at 09:47:45PM -0700, Paul E. McKenney wrote: > > On Tue, Jun 17, 2014 at 07:27:31PM -0700, Andi Kleen wrote: > > > > OK. What would you suggest instead? If all we do is to revert the > > > > > > Hang checker shoul

Re: [PATCH] ARM: perf: allow tracing with kernel tracepoints events

2014-06-18 Thread Will Deacon
Hi Jean, On Tue, Jun 17, 2014 at 06:11:05PM +0100, Jean Pihet wrote: > When tracing with tracepoints events the IP and CPSR are set to 0, > preventing the perf code to resolve the symbols: > > ./perf record -e kmem:kmalloc cal > [ perf record: Woken up 1 times to write data ] > [ perf record: Cap

Re: [PATCH] PM / Documentation: Update copyright in suspend-and-cpuhotplug.txt

2014-06-18 Thread Pavel Machek
Hi! > Extend the year to 2014 in the copyright. > > Signed-off-by: Srivatsa S. Bhat The file was updated in commit 6237dd132d4eb408ffa80830fe395448e5657ab0 Author: Marcos Paulo de Souza Date: Wed May 2 14:33:37 2012 +0200 and by you in 2011: commit 7fef9fc83fbd7293ea9fe665d14046422ebf421

Re: [PATCH v4 4/7] regulator: axp20x: reset probe data before each probe

2014-06-18 Thread Maxime Ripard
On Wed, Jun 18, 2014 at 09:11:59AM +0200, Boris BREZILLON wrote: > > On 17/06/2014 22:44, Maxime Ripard wrote: > > On Tue, Jun 17, 2014 at 09:38:40AM +0200, Boris BREZILLON wrote: > >> The init_data and of_node fields of the axp2xx_matches tables are filled > >> at each device probe by the axp20x_

Re: [PATCH] deb-pkg: Fix for relative paths

2014-06-18 Thread Ilya Dryomov
> Dne 18.6.2014 09:52, Ilya Dryomov napsal(a): >> On Tue, Jun 17, 2014 at 6:47 AM, Alexei Starovoitov >> wrote: >>> On Mon, Jun 16, 2014 at 7:18 AM, Michal Marek wrote: When $srctree or $objtree are relative paths, we cannot change directory and refer to them in the same subshell. Do th

[PATCH] Smack: separate smackfstransmute and smackfsroot

2014-06-18 Thread Chanho Park
According to previous commit(e830b39: Smack: Add smkfstransmute mount option), the smackfstransmute option is the smackfsroot option + transmute option. I think it can be confused because the transmute option can only have "TRUE". Before the patch, you cannot use the smackfsroot and the smackfstran

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

2014-06-18 Thread Vivek Goyal
On Wed, Jun 18, 2014 at 09:52:46AM +0800, Dave Young wrote: [..] > > > > Hi, Vivek > > > > > > > > For efi ioremapping case, in 3.15 kernel efi runtime maps will not be > > > > saved > > > > if efi=old_map is used. So you need detect this and fail the kexec file > > > > load. > > > > > > Dave,

Re: [bisected] pre-3.16 regression on open() scalability

2014-06-18 Thread Andi Kleen
On Tue, Jun 17, 2014 at 09:47:45PM -0700, Paul E. McKenney wrote: > On Tue, Jun 17, 2014 at 07:27:31PM -0700, Andi Kleen wrote: > > > OK. What would you suggest instead? If all we do is to revert the > > > > Hang checker should have two timer phases: > > > > Timer fires first time: > > - Save c

Re: [PATCHv2] x86: skip check for spurious faults for non-present faults

2014-06-18 Thread David Vrabel
Peter, Someone else asking about what _PAGE_IOMAP was for reminded me that this was still outstanding. Could you review and ack if appropriate? Thanks. David On 16/05/14 15:44, David Vrabel wrote: > If a fault on a kernel address is due to a non-present page, then it > cannot be the result of

Re: [PATCH 1/2] ARM: DRA7: hwmod: Add OCP2SCP3 module

2014-06-18 Thread Rajendra Nayak
On Wednesday 18 June 2014 05:46 PM, Roger Quadros wrote: > This module is needed for the SATA and PCIe PHYs. > > Signed-off-by: Roger Quadros > Tested-by: Roger Quadros > --- > arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 25 + > 1 file changed, 25 insertions(+) > > diff

Re: relative objtree change broke tar builds?

2014-06-18 Thread Michal Marek
Dne 18.6.2014 14:20, J. Bruce Fields napsal(a): > On Wed, Jun 18, 2014 at 11:06:12AM +0200, Michal Marek wrote: >> Dne 18.6.2014 00:38, J. Bruce Fields napsal(a): >>> The changelog there says >>> >>> The main Makefile sets its working directory to the object tree >>> and never changes it ag

Re: [PATCH v5 1/7] efi: Use early_mem*() instead of early_io*()

2014-06-18 Thread David Vrabel
On 18/06/14 13:17, Matt Fleming wrote: > (Pulling in Mark Salter for early_ioremap() knowledge) > > On Fri, 13 Jun, at 07:00:17PM, Daniel Kiper wrote: >> Use early_mem*() instead of early_io*() because all mapped EFI regions >> are true RAM not I/O regions. Additionally, I/O family calls do not wo

Re: [PATCH v2 17/20] ARM: sunxi: Introduce Allwinner A23 support

2014-06-18 Thread Maxime Ripard
On Tue, Jun 17, 2014 at 10:52:54PM +0800, Chen-Yu Tsai wrote: > The Allwinner A23 is a dual-core Cortex-A7-based SoC. It re-uses most of > the IPs found in previous SoCs, notably the A31. > > Signed-off-by: Chen-Yu Tsai > --- > arch/arm/mach-sunxi/Kconfig | 8 > arch/arm/mach-sunxi/sun

Re: [PATCH v2 18/20] ARM: sunxi: Add earlyprintk support using R_UART (sun6i/sun8i)

2014-06-18 Thread Maxime Ripard
On Tue, Jun 17, 2014 at 10:52:55PM +0800, Chen-Yu Tsai wrote: > sun6i/sun8i have a UART in the RTC block group, which can be used > as an early console. This is most useful on sun8i as UART0 is muxed > with MMC0, which is not available if we boot from MMC. > > Signed-off-by: Chen-Yu Tsai Acked-b

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

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

Re: [PATCH v2 16/20] mfd: sun6i-prcm: Add support for Allwinner A23 PRCM

2014-06-18 Thread Maxime Ripard
On Wed, Jun 18, 2014 at 09:29:53AM +0100, Lee Jones wrote: > > The Allwinner A23 SoC has a PRCM unit like the previous A31 SoC. > > The differences are the AR100 clock can no longer be modified, > > the APB0 clock has different divisors, and some clock gates are > > gone. > > > > This patch adds a

[PATCH net-next v3 2/3] ieee802154: cc2520: add driver to kernel build system

2014-06-18 Thread Varka Bhadram
Signed-off-by: Varka Bhadram --- drivers/net/ieee802154/Kconfig | 11 +++ drivers/net/ieee802154/Makefile |1 + 2 files changed, 12 insertions(+) diff --git a/drivers/net/ieee802154/Kconfig b/drivers/net/ieee802154/Kconfig index 3e89bea..680422f 100644 --- a/drivers/net/ieee80215

[PATCH net-next v3 1/3] ieee802154: cc2520: adds driver for TI CC2520 radio

2014-06-18 Thread Varka Bhadram
This patch adds the driver support for the cc2520 radio. Driver support: - Tx and Rx of IEEE-802.15.4 packets. - Energy Detection on channel. - Setting the Channel for the radio. [b/w 11 - 26 channels] - Start and Stop the radio. Signed-off-by: Varka Bhadram ---

[PATCH net-next v3 3/3] devicetree: add device tree bindings for cc2520 driver

2014-06-18 Thread Varka Bhadram
DT bindings for cc2520 radio driver Signed-off-by: Varka Bhadram --- .../devicetree/bindings/net/ieee802154/cc2520.txt | 29 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/ieee802154/cc2520.txt diff --git a/Documentation/device

[PATCH net-next v3 0/3] Driver for TI CC2520 Radio.

2014-06-18 Thread Varka Bhadram
This series adds the driver support for TI cc2520 radio. also devicetree bindings for the driver. changes since v2: - drop spi mode dt binding changes since v1: - improverment in gpio setup - changed len pointer to len variable changes before v1: - improvements in

[PULL REQUEST] i2c for 3.16

2014-06-18 Thread Wolfram Sang
Linus, here is a pull request from i2c hoping for the "new driver" rule. Originally, I wanted to send this request during the merge window, but code checkers with very recent additions complained, so a few fixups were needed. So, some more time went by and I merged rc1 to get a stable base. Please

Re: Build error - vmlinux.lds [Re: linux-next: Tree for Jun 18]

2014-06-18 Thread Russell King - ARM Linux
*** [arch/arm/boot/compressed/vmlinux] Error 2 > >> make: *** [uImage] Error 2 > > > > Works fine here against an empty object tree: > > > > http://www.arm.linux.org.uk/developer/build/file.php?lid=9591 > > > > Are you building into an already-built object

Re: [PATCH v2 2/2] mm, thp: replace smp_mb after atomic_add by smp_mb__after_atomic

2014-06-18 Thread Kirill A. Shutemov
On Tue, Jun 17, 2014 at 06:37:59PM -0400, Waiman Long wrote: > In some architectures like x86, atomic_add() is a full memory > barrier. In that case, an additional smp_mb() is just a waste of time. > This patch replaces that smp_mb() by smp_mb__after_atomic() which > will avoid the redundant memory

Re: relative objtree change broke tar builds?

2014-06-18 Thread J. Bruce Fields
On Wed, Jun 18, 2014 at 11:06:12AM +0200, Michal Marek wrote: > Dne 18.6.2014 00:38, J. Bruce Fields napsal(a): > > The scripts I use for my kernel testing rely on the targz-pkg make > > target. After updating to 3.16-rc1 my scripts started failing. In > > scripts/package/buildtar: > > > > tmp

Re: [PATCH 11/21] mfd: use devm_irq_of_parse_and_map() where appropriate

2014-06-18 Thread Lee Jones
On Wed, 18 Jun 2014, Nikita Yushchenko wrote: > >>Hmm... probably it was too early to apply this? I was just going > >>to prepare v2, based on discussion... > > > >Which discussion? > > One you are replying in? > > https://lkml.org/lkml/2014/6/4/136 I only see what's in my mailbox. If you di

Re: [PATCH 6/9] ARM: tegra: Export tegra_powergate_power_on

2014-06-18 Thread Peter De Schrijver
On Tue, Jun 17, 2014 at 11:51:20PM +0200, Thierry Reding wrote: > * PGP Signed by an unknown key > > On Tue, Jun 17, 2014 at 05:01:46PM +0300, Peter De Schrijver wrote: > > On Tue, Jun 17, 2014 at 02:13:15PM +0200, Thierry Reding wrote: > > > > Old Signed by an unknown key > > > > > > On Mon, Jun

[PATCH 2/2] ARM: DRA7: hwmod: Fixup SATA hwmod

2014-06-18 Thread Roger Quadros
Get rid of optional clock as that is now managed by the AHCI platform driver. Correct .mpu_rt_idx to 1 as the module register space (SYSCONFIG..) is passed as the second memory resource in the device tree. Signed-off-by: Roger Quadros Tested-by: Roger Quadros --- arch/arm/mach-omap2/omap_hwmod

Re: [PATCH v5 1/7] efi: Use early_mem*() instead of early_io*()

2014-06-18 Thread Matt Fleming
(Pulling in Mark Salter for early_ioremap() knowledge) On Fri, 13 Jun, at 07:00:17PM, Daniel Kiper wrote: > Use early_mem*() instead of early_io*() because all mapped EFI regions > are true RAM not I/O regions. Additionally, I/O family calls do not work > correctly under Xen in our case. AIUI, ear

[PATCH 1/2] ARM: DRA7: hwmod: Add OCP2SCP3 module

2014-06-18 Thread Roger Quadros
This module is needed for the SATA and PCIe PHYs. Signed-off-by: Roger Quadros Tested-by: Roger Quadros --- arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/o

[PATCH 0/2] ARM: DRA7: hwmod: fixes for 3.16

2014-06-18 Thread Roger Quadros
Hi, These patches add the missing OCP2SCP3 module and fixup the SATA hwmod for DRA7 SoC. Both patches are tested on 3.16-rc1. SATA should have worked on DRA7-evm with just these 2 patches on top of 3.16-rc1,but it didn't :(. So something else is missing and needs to be investigated. SATA worked f

Re: Build error - vmlinux.lds [Re: linux-next: Tree for Jun 18]

2014-06-18 Thread Sachin Kamat
object tree: > > http://www.arm.linux.org.uk/developer/build/file.php?lid=9591 > > Are you building into an already-built object tree or rebuilding an > already built tree? I did a clean build after updating the tree to next-20140618. git status show me the following after doin

[GIT PULL] floppy

2014-06-18 Thread Jiri Kosina
Jens, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/jikos/linux-block.git for-jens to receive formatting fix for floppy driver; preferably for 3.16 still. The branch is based on your for-3.16/drivers. Thanks!

Re: [PATCH 10/11] qspinlock: Paravirt support

2014-06-18 Thread Paolo Bonzini
Il 15/06/2014 14:47, Peter Zijlstra ha scritto: #if !defined(CONFIG_X86_OOSTORE) && !defined(CONFIG_X86_PPRO_FENCE) -#definequeue_spin_unlock queue_spin_unlock /** * queue_spin_unlock - release a queue spinlock * @lock : Pointer to queue spinlock structure * * An effective sm

Re: [PATCH 10/11] qspinlock: Paravirt support

2014-06-18 Thread Paolo Bonzini
Il 17/06/2014 00:08, Waiman Long ha scritto: +void __pv_queue_unlock(struct qspinlock *lock) +{ + int val = atomic_read(&lock->val); + + native_queue_unlock(lock); + + if (val & _Q_LOCKED_SLOW) + ___pv_kick_head(lock); +} + Again a race can happen here between th

Re: Build error - vmlinux.lds [Re: linux-next: Tree for Jun 18]

2014-06-18 Thread Russell King - ARM Linux
On Wed, Jun 18, 2014 at 04:50:43PM +0530, Sachin Kamat wrote: > Hi, > > I observe the following build error while building uImage for ARM. > > Kernel: arch/arm/boot/Image is ready > make[2]: *** No rule to make target > `arch/arm/boot/compressed/vmlinux.lds', needed by > `arch/arm/boot/compress

Re: [PATCH 09/28] Remove ATHEROS_AR231X

2014-06-18 Thread Paul Bolle
Hi Sergey, On Wed, 2014-06-18 at 15:10 +0400, Sergey Ryazanov wrote: > 2014-06-18 14:25 GMT+04:00 Paul Bolle : > > ATHEROS_AR231X and the things depending on it, like AHB bus support, > > have been discussed for three years now. When will you (re)consider a > > patch to remove all currently dead c

Re: [PATCH] USB:gadget: Fix a warning while loading g_mass_storage

2014-06-18 Thread Michal Nazarewicz
On Wed, Jun 18 2014, Yang,Wei wrote: > On 06/17/2014 10:18 PM, Alan Stern wrote: >> That is a strange question to ask. If you did not know that I approved >> the patch, why did you insert my Acked-By:? > I added your Acked-By, as when you reviewed V3, you mentioned that I > *may* add your Acked-

Re: [PATCH 06/11] qspinlock: Optimize pending bit

2014-06-18 Thread Paolo Bonzini
Il 15/06/2014 14:47, Peter Zijlstra ha scritto: XXX: merge into the pending bit patch.. Agree, or if not move it right after the pending bit patch, before the NR_CPUS optimization. Paolo It is possible so observe the pending bit without the locked bit when the last owner has just released

[PATCH v2 1/2] gpio: Add driver for Zynq GPIO controller

2014-06-18 Thread Harini Katakam
From: Harini Katakam Add support for GPIO controller used by Xilinx Zynq. Signed-off-by: Harini Katakam Signed-off-by: Soren Brinkmann --- v2 changes: - convert to pm_runtime_force_(suspend|resume) - add pm_runtime_set_active in probe() - also (un)prepare clocks when they are dis-/enabled

[PATCH v2 2/2] devicetree: Add Zynq GPIO devicetree bindings documentation

2014-06-18 Thread Harini Katakam
From: Harini Katakam Add gpio-zynq bindings documentation. Signed-off-by: Harini Katakam Signed-off-by: Soren Brinkmann --- v2 changes: Improve description. --- .../devicetree/bindings/gpio/gpio-zynq.txt | 24 1 file changed, 24 insertions(+) create mode 1006

Re: [PATCH 05/11] qspinlock: Optimize for smaller NR_CPUS

2014-06-18 Thread Paolo Bonzini
Il 15/06/2014 14:47, Peter Zijlstra ha scritto: - for (;;) { - new = (val & ~_Q_PENDING_MASK) | _Q_LOCKED_VAL; - - old = atomic_cmpxchg(&lock->val, val, new); - if (old == val) - break; - - val = old; - } +

<    2   3   4   5   6   7   8   9   10   >