[PATCH 10/15] purgatory/sha256: Provide implementation of sha256 in purgaotory context

2014-06-26 Thread Vivek Goyal
Next two patches provide code for purgatory. This is a code which does not link against the kernel and runs stand alone. This code runs between two kernels. One of the primary purpose of this code is to verify the digest of newly loaded kernel and making sure it matches the digest computed at kerne

[PATCH v2] video: hyperv: hyperv_fb: refresh the VM screen by force on VM panic

2014-06-26 Thread Dexuan Cui
Currently the VSC has no chance to notify the VSP of the dirty rectangle on VM panic because the notification work is done in a workqueue, and in panic() the kernel typically ends up in an infinite loop, and a typical kernel config has CONFIG_PREEMPT_VOLUNTARY=y and CONFIG_PREEMPT is not set, so a

[PATCH 06/15] resource: Provide new functions to walk through resources

2014-06-26 Thread Vivek Goyal
I have added two more functions to walk through resources. Currently walk_system_ram_range() deals with pfn and /proc/iomem can contain partial pages. By dealing in pfn, callback function loses the info that last page of a memory range is a partial page and not the full page. So I implemented walk

[PATCH 08/15] kexec: New syscall kexec_file_load() declaration

2014-06-26 Thread Vivek Goyal
This is the new syscall kexec_file_load() declaration/interface. I have reserved the syscall number only for x86_64 so far. Other architectures (including i386) can reserve syscall number when they enable the support for this new syscall. Signed-off-by: Vivek Goyal CC: linux-...@vger.kernel.org -

[PATCH 14/15] kexec: Support for kexec on panic using new system call

2014-06-26 Thread Vivek Goyal
This patch adds support for loading a kexec on panic (kdump) kernel usning new system call. It prepares ELF headers for memory areas to be dumped and for saved cpu registers. Also prepares the memory map for second kernel and limits its boot to reserved areas only. Signed-off-by: Vivek Goyal ---

[PATCH 03/15] kexec: rename unusebale_pages to unusable_pages

2014-06-26 Thread Vivek Goyal
Let's use the more common "unusable". This patch was originally written and posted by Boris. I am including it in this patch series. Signed-off-by: Borislav Petkov --- include/linux/kexec.h | 2 +- kernel/kexec.c| 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/

[PATCH 01/15] bin2c: Move bin2c in scripts/basic

2014-06-26 Thread Vivek Goyal
Kexec wants to use bin2c and it wants to use it really early in the build process. See arch/x86/purgatory/ code in later patches. So move bin2c in scripts/basic so that it can be built very early and be usable by arch/x86/purgatory/ Signed-off-by: Vivek Goyal --- kernel/Makefile | 2 +

[PATCH 00/15][V4] kexec: A new system call to allow in kernel loading

2014-06-26 Thread Vivek Goyal
Hi, This is V4 of the patchset. Previous versions were posted here. V1: https://lkml.org/lkml/2013/11/20/540 V2: https://lkml.org/lkml/2014/1/27/331 V3: https://lkml.org/lkml/2014/6/3/432 Changes since v3: - Took care of most of the review comments from V3. - Stopped building purgatory for 32bi

[PATCH 15/15] kexec: Support kexec/kdump on EFI systems

2014-06-26 Thread Vivek Goyal
This patch does two thigns. It passes EFI run time mappings to second kernel in bootparams efi_info. Second kernel parse this info and create new mappings in second kernel. That means mappings in first and second kernel will be same. This paves the way to enable EFI in kexec kernel. This patch als

[PATCH] tools: selftests - create a separate hotplug target

2014-06-26 Thread Shuah Khan
On some systems, hotplug tests could hang forever waiting for cpu and memory to be ready to be offlined. A special hotplug target is created, which will help run non-hotplug tests and run hotplug tests as a special case. Individual hotplug tests can still be run as a special target targeted for a s

RE: [PATCH] video: hyperv: hyperv_fb: refresh the VM screen by force on VM panic

2014-06-26 Thread Dexuan Cui
> > >> MS-TFS: 157532 > > > > > What is this line for? > > > > Hi Greg, > > This line is for our internal bug repository. > > We have an automated system to correlate bugs with fixes so that our test > > team knows when a bug fix has been accepted upstream and they need to > > write a new test case

Re: ext4: total breakdown on USB hdd, 3.0 kernel

2014-06-26 Thread Pavel Machek
Hi! > Ok, this ext4 filesystem does _not_ have easy life: it is in usb envelope, I > wanted > to use it as a root filesystem, and it is connected to OLPC-1.75, running > some kind > of linux-3.0 kernels. > > So power disconnects are common, and even during regular reboot, I hear disk > doing >

[PATCH 2/2] dmaengine: qcom_adm: Add device tree binding

2014-06-26 Thread Andy Gross
Add device tree binding support for the QCOM ADM DMA driver. Signed-off-by: Andy Gross --- Documentation/devicetree/bindings/dma/qcom_adm.txt | 60 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/qcom_adm.txt diff --git a/Documen

[PATCH 0/2] Add Qualcomm ADM dmaengine driver

2014-06-26 Thread Andy Gross
This patch set introduces the dmaengine driver for the Qualcomm Application Data Mover (ADM) DMA controller present on MSM8960, APQ8064, and IPQ8064 devices. The initial version of this driver will only support slave DMA operations between system memory and peripherals. Flow control via the CRCI

[PATCH 1/2] dmaengine: Add QCOM ADM DMA driver

2014-06-26 Thread Andy Gross
Add the DMA engine driver for the QCOM Application Data Mover (ADM) DMA controller found in the MSM8960 and IPQ/APQ8064 platforms. The ADM supports both memory to memory transactions and memory to/from peripheral device transactions. The controller also provides flow control capabilities for tran

Re: [PATCH v2] mm: export NR_SHMEM via sysinfo(2) / si_meminfo() interfaces

2014-06-26 Thread Rik van Riel
On 06/26/2014 04:00 PM, Rafael Aquini wrote: > Historically, we exported shared pages to userspace via sysinfo(2) sharedram > and /proc/meminfo's "MemShared" fields. With the advent of tmpfs, from kernel > v2.4 onward, that old way for accounting shared mem was deemed inaccurate and > we started to

ext4: total breakdown on USB hdd, 3.0 kernel

2014-06-26 Thread Pavel Machek
Hi! Ok, this ext4 filesystem does _not_ have easy life: it is in usb envelope, I wanted to use it as a root filesystem, and it is connected to OLPC-1.75, running some kind of linux-3.0 kernels. So power disconnects are common, and even during regular reboot, I hear disk doing emergency parking

[PATCH] Tools: hv: fix file overwriting of hv_fcopy_daemon

2014-06-26 Thread Yue Zhang
From: Yue Zhang hv_fcopy_daemon fails to overwrite a file if the target file already exits. Add O_TRUNC flag on opening. Signed-off-by: Yue Zhang --- tools/hv/hv_fcopy_daemon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/hv/hv_fcopy_daemon.c b/tools/hv/hv_fcopy

Re: [PATCH] x86_64,entry: Fix RCX for traced syscalls

2014-06-26 Thread H. Peter Anvin
The real question is if we care that sysret and iter don't match. On 32 bits the situation is even more complex. On June 26, 2014 1:00:22 PM PDT, Andy Lutomirski wrote: >On Thu, Jun 26, 2014 at 12:59 PM, Andy Lutomirski >wrote: >> On Thu, Jun 26, 2014 at 12:56 PM, Andi Kleen >wrote: show

[PATCH v2] mm: export NR_SHMEM via sysinfo(2) / si_meminfo() interfaces

2014-06-26 Thread Rafael Aquini
Historically, we exported shared pages to userspace via sysinfo(2) sharedram and /proc/meminfo's "MemShared" fields. With the advent of tmpfs, from kernel v2.4 onward, that old way for accounting shared mem was deemed inaccurate and we started to export a hard-coded 0 for sysinfo.sharedram. Later o

Re: [PATCH v2 1/2] ARM: at91/dt: describe rgmii ethernet phy connected to sama5d3xek boards

2014-06-26 Thread Boris BREZILLON
Hi Florian, On 26/06/2014 20:15, Florian Fainelli wrote: > Hi Boris, > > 2014-06-26 3:13 GMT-07:00 Boris BREZILLON > : >> Add ethernet-phy node and specify phy interrupt (connected to pin PB25). >> >> The PHY address is not specified here because atmel have 2 different >> designs >> for its CPU m

Re: [PATCH] x86_64,entry: Fix RCX for traced syscalls

2014-06-26 Thread Andy Lutomirski
On Thu, Jun 26, 2014 at 12:59 PM, Andy Lutomirski wrote: > On Thu, Jun 26, 2014 at 12:56 PM, Andi Kleen wrote: >>> show RCX == RIP even under strace. >> >> If you think it's really worth the extra instruction? > > Hard to say. That extra instruction only happens on slow paths, so I > suspect the

Re: [PATCH v1 3/9] of: Update Tegra XUSB pad controller binding for USB

2014-06-26 Thread Stephen Warren
On 06/25/2014 04:25 PM, Andrew Bresticker wrote: > Thanks for the review Stephen! > > On Wed, Jun 25, 2014 at 2:46 PM, Stephen Warren wrote: >> On 06/18/2014 12:16 AM, Andrew Bresticker wrote: >>> Add new bindings used for USB support by the Tegra XUSB pad controller. >>> This includes additional

Re: [PATCH] x86_64,entry: Fix RCX for traced syscalls

2014-06-26 Thread Andy Lutomirski
On Thu, Jun 26, 2014 at 12:56 PM, Andi Kleen wrote: >> show RCX == RIP even under strace. > > If you think it's really worth the extra instruction? Hard to say. That extra instruction only happens on slow paths, so I suspect the slowdown is negligible. On the other hand, having syscall show a b

[PATCH resend #4] fcntl-linux.h: add new definitions and manual updates for open file description locks

2014-06-26 Thread Jeff Layton
From: Jeff Layton Open file description locks have been merged into the Linux kernel for v3.15. Add the appropriate command-value definitions and an update to the manual that describes their usage. ChangeLog: 2014-04-24 Jeff Layton [BZ#16839] * manual/llio.texi: add section

Re: [PATCH] hwpoison: Fix race with changing page during offlining

2014-06-26 Thread Andrew Morton
On Thu, 26 Jun 2014 15:50:36 -0400 Naoya Horiguchi wrote: > > index 90002ea..e277726a 100644 > > --- a/mm/memory-failure.c > > +++ b/mm/memory-failure.c > > @@ -1143,6 +1143,22 @@ int memory_failure(unsigned long pfn, int trapno, > > int flags) > > lock_page(hpage); > > > > /* > > +

Re: [PATCH] x86_64,entry: Fix RCX for traced syscalls

2014-06-26 Thread Andi Kleen
> show RCX == RIP even under strace. If you think it's really worth the extra instruction? It's not wrong, but it's not clear if it's useful. -Andi > > Signed-off-by: Andy Lutomirski > --- > arch/x86/kernel/entry_64.S | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git

Re: [PATCH] hwpoison: Fix race with changing page during offlining

2014-06-26 Thread Naoya Horiguchi
Thank you for testing/reporting. On Thu, Jun 26, 2014 at 11:22:52AM -0700, Andi Kleen wrote: > From: Andi Kleen > > While running the mcelog test suite on 3.14 I hit the following VM_BUG_ON: > > soft_offline: 0x56d4: unknown non LRU page type 388000 This line comes from error path in g

Re: Filesystem lockup with CONFIG_PREEMPT_RT

2014-06-26 Thread Austin Schuh
On Wed, May 21, 2014 at 12:33 AM, Richard Weinberger wrote: > CC'ing RT folks > > On Wed, May 21, 2014 at 8:23 AM, Austin Schuh wrote: >> On Tue, May 13, 2014 at 7:29 PM, Austin Schuh >> wrote: >>> Hi, >>> >>> I am observing a filesystem lockup with XFS on a CONFIG_PREEMPT_RT >>> patched kernel

Re: [PATCH v2] ecryptfs: Drop cast

2014-06-26 Thread Tyler Hicks
On 2014-06-27 01:11:59, Himangi Saraogi wrote: > This patch does away with cast on void * and the if as it is unnecessary. > > The following Coccinelle semantic patch was used for making the change: > > @r@ > expression x; > void* e; > type T; > identifier f; > @@ > > ( > *((T *)e) > | > ((T

Re: [PATCH v3 1/1] rcu: uninline rcu_lock_acquire() and rcu_lock_release()

2014-06-26 Thread Oleg Nesterov
On 06/26, Paul E. McKenney wrote: > > On Thu, Jun 26, 2014 at 08:36:57PM +0200, Oleg Nesterov wrote: > > > > +static void rcu_release_map(struct lockdep_map *map, unsigned long ip) > > > +{ > > > + rcu_lockdep_assert_watching(); > > > + __rcu_lock_release(&map, ip); > > > > "map", not "&map". I fix

Linux 3.15.2

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

[PATCH v2] ecryptfs: Drop cast

2014-06-26 Thread Himangi Saraogi
This patch does away with cast on void * and the if as it is unnecessary. The following Coccinelle semantic patch was used for making the change: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x)[...] | ((T *)x)->f | - (T *) e ) Signed-off-by: Himangi Saraogi -

Re: [PATCH 4/5] perf trace: add pagefault statistics

2014-06-26 Thread Arnaldo Carvalho de Melo
Em Thu, Jun 26, 2014 at 08:14:27PM +0400, Stanislav Fomichev escreveu: > 'perf trace' can show summary of events using -S option. This commit > also reports number of major/minor pagefault events in this summary. > > Signed-off-by: Stanislav Fomichev Where is it? [root@zoo /]# perf trace -S -F

Re: [RFC PATCH 3/5] kernel/rcu/tree_plugin.h:990 fix a sparse warning

2014-06-26 Thread Paul E. McKenney
On Wed, Jun 11, 2014 at 04:39:41PM -0400, Pranith Kumar wrote: > kernel/rcu/tree_plugin.h:990:13: warning: context imbalance in > 'rcu_report_unblock_qs_rnp' - unexpected unlock > > by annotating the function with __releases() > > Signed-off-by: Pranith Kumar Hearing no objections, I have queu

Re: [RFC PATCH 2/5] kernel/rcu/tree_plugin.h:1494 fix a sparse warning

2014-06-26 Thread Paul E. McKenney
On Wed, Jun 11, 2014 at 04:39:40PM -0400, Pranith Kumar wrote: > kernel/rcu/tree_plugin.h:1494:13: warning: context imbalance in > 'rcu_initiate_boost' - unexpected unlock > > by annotating the function with releases() > > Signed-off-by: Pranith Kumar Hearing no objections, I have queued this

Re: [RFC PATCH v6 04/20] iommu/arm-smmu: add capability IOMMU_CAP_INTR_REMAP

2014-06-26 Thread Alex Williamson
On Thu, 2014-06-26 at 19:10 +, Chalamarla, Tirumalesh wrote: > Thanks for the clarification Alex, That’s exactly my point, why are we > relying on QEMU or something else to emulate the MSI space when we can > directly give access to devices using ITS (of course with a small emulation > code

Linux 3.14.9

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

Re: Linux 3.4.95

2014-06-26 Thread Greg KH
diff --git a/Makefile b/Makefile index 0864af4a683b..fda1dab589be 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 4 -SUBLEVEL = 94 +SUBLEVEL = 95 EXTRAVERSION = NAME = Saber-toothed Squirrel diff --git a/drivers/net/ethernet/mellanox/mlx4/main.c b/drivers/net/e

Linux 3.10.45

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

Re: [Patch] x86: intel-mid: fix conflicts between 78a3bb9e408b and 9f354b0252b8

2014-06-26 Thread David Cohen
On Mon, Jun 23, 2014 at 10:38:07AM -0700, David Cohen wrote: > Hi Jiang, > > On Mon, Jun 23, 2014 at 10:30:35AM +0800, Jiang Liu wrote: > > Commit 9f354b0252b8 "x86, irq: Clean up unused IOAPIC interface" kills > > interface io_apic_set_pci_routing(), so change arch/x86/platform/ > > intel-mid/dev

Linux 3.4.95

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

Re: [RFA][PATCH 24/27] Blackfin: ftrace: Remove check of obsolete variable function_trace_stop

2014-06-26 Thread Steven Rostedt
On Thu, 26 Jun 2014 15:25:31 -0400 Mike Frysinger wrote: > On Thu 26 Jun 2014 12:52:45 Steven Rostedt wrote: > > From: "Steven Rostedt (Red Hat)" > > > > Nothing sets function_trace_stop to disable function tracing anymore. > > Remove the check for it in the arch code. > > > > [ Please test th

Re: [RFA][PATCH 24/27] Blackfin: ftrace: Remove check of obsolete variable function_trace_stop

2014-06-26 Thread Mike Frysinger
On Thu 26 Jun 2014 12:52:45 Steven Rostedt wrote: > From: "Steven Rostedt (Red Hat)" > > Nothing sets function_trace_stop to disable function tracing anymore. > Remove the check for it in the arch code. > > [ Please test this on your arch ] i haven't tested, but the asm looks correct -- it's on

Re: [tip:perf/core] perf script/python: Print array argument as string

2014-06-26 Thread Jiri Olsa
On Thu, Jun 26, 2014 at 05:37:27PM +0200, Sebastian Andrzej Siewior wrote: > On 06/12/2014 02:01 PM, tip-bot for Namhyung Kim wrote: > > > Commit-ID: e646fe730a324098a718f1c9b2f349efb99d5457 > > Gitweb: > > http://git.kernel.org/tip/e646fe730a324098a718f1c9b2f349efb99d5457 > > Author: Na

Re: [PATCH 0/3] drivers: expand usage of request_firmware_direct()

2014-06-26 Thread Greg KH
On Thu, Jun 26, 2014 at 06:18:05PM +0200, Takashi Iwai wrote: > At Tue, 24 Jun 2014 15:39:40 -0700, > Luis R. Rodriguez wrote: > > > > From: "Luis R. Rodriguez" > > > > Takashi added request_firmware_direct() via bba3a87e9 through v3.14-rc1 > > which avoids the unnecessary delay introduced by us

Re: [PATCH v3 1/1] rcu: uninline rcu_lock_acquire() and rcu_lock_release()

2014-06-26 Thread Paul E. McKenney
On Thu, Jun 26, 2014 at 08:36:57PM +0200, Oleg Nesterov wrote: > On 06/26, Oleg Nesterov wrote: > > > > On 06/26, Oleg Nesterov wrote: > > > > > > +static void rcu_release_map(struct lockdep_map *map, unsigned long ip) > > > +{ > > > + rcu_lockdep_assert_watching(); > > > + __rcu_lock_release(&rcu_

RE: [RFC PATCH v6 04/20] iommu/arm-smmu: add capability IOMMU_CAP_INTR_REMAP

2014-06-26 Thread Chalamarla, Tirumalesh
Thanks for the clarification Alex, That’s exactly my point, why are we relying on QEMU or something else to emulate the MSI space when we can directly give access to devices using ITS (of course with a small emulation code). This way we are also benefited from all ITS services like VCPU migratio

Re: [PATCH 3.15 00/61] 3.15.2-stable review

2014-06-26 Thread Greg Kroah-Hartman
On Wed, Jun 25, 2014 at 10:20:43AM -0400, Benjamin LaHaise wrote: > Hi Greg, > > On Tue, Jun 24, 2014 at 11:50:43AM -0400, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 3.15.2 release. > > There are 61 patches in this series, all will be posted as a response >

Re: [PATCH 3.15 00/61] 3.15.2-stable review

2014-06-26 Thread Greg Kroah-Hartman
On Wed, Jun 25, 2014 at 06:00:54PM +0900, Satoru Takeuchi wrote: > At Tue, 24 Jun 2014 13:50:54 -0600, > Shuah Khan wrote: > > > > On 06/24/2014 09:50 AM, Greg Kroah-Hartman wrote: > > > This is the start of the stable review cycle for the 3.15.2 release. > > > There are 61 patches in this series,

Re: [PATCH 3.15 00/61] 3.15.2-stable review

2014-06-26 Thread Greg Kroah-Hartman
On Tue, Jun 24, 2014 at 04:31:00PM -0700, Guenter Roeck wrote: > On 06/24/2014 08:50 AM, Greg Kroah-Hartman wrote: > >This is the start of the stable review cycle for the 3.15.2 release. > >There are 61 patches in this series, all will be posted as a response > >to this one. If anyone has any issu

[PATCH] x86_64,entry: Fix RCX for traced syscalls

2014-06-26 Thread Andy Lutomirski
The int_ret_from_sys_call and syscall tracing code disagrees with the sysret path as to the value of RCX. The Intel SDM, the AMD APM, and my laptop all agree that sysret returns with RCX == RIP. The syscall tracing code does not respect this property. For example, this program: int main() {

[PATCH V2] FS/OMFS: block number sanity check during fill_super operation

2014-06-26 Thread Fabian Frederick
This patch defines maximum block number to 2^31. It also converts bitmap_size and array_size to unsigned int in omfs_get_imap. Suggested-By: Linus Torvalds Suggested-By: Bob Copeland Cc: Linus Torvalds Cc: Bob Copeland Cc: Andrew Morton Signed-off-by: Fabian Frederick --- This is untested.

Re: [PATCH] ARM: tegra: Migrate Apalis T30 PCIe power supply scheme

2014-06-26 Thread Sergei Shtylyov
Hello. On 06/26/2014 12:10 AM, Marcel Ziswiler wrote: This migration is required for continued PCIe operation after commit: d3c7e24b84fcb62f96fa9a585a41f1829f326878 Please also specify that commit's summary line in parens. Signed-off-by: Marcel Ziswiler WBR, Sergei -- To unsubscr

[PATCH] iommu: Constify struct iommu_ops

2014-06-26 Thread Thierry Reding
From: Thierry Reding This structure is read-only data and should never be modified. Signed-off-by: Thierry Reding --- drivers/iommu/amd_iommu.c | 4 ++-- drivers/iommu/arm-smmu.c| 2 +- drivers/iommu/exynos-iommu.c| 2 +- drivers/iommu/fsl_pamu_domain.c | 2 +- drivers/io

Re: [PATCH 2/9] drivers: base: support cpu cache information interface to userspace via sysfs

2014-06-26 Thread Sudeep Holla
On 26/06/14 19:50, Russell King - ARM Linux wrote: On Thu, Jun 26, 2014 at 07:41:32PM +0100, Sudeep Holla wrote: Hi, On 25/06/14 23:23, Russell King - ARM Linux wrote: On Wed, Jun 25, 2014 at 06:30:37PM +0100, Sudeep Holla wrote: + coherency_line_size: the minimum amount of da

Re: [RFC PATCH v6 04/20] iommu/arm-smmu: add capability IOMMU_CAP_INTR_REMAP

2014-06-26 Thread Alex Williamson
On Thu, 2014-06-26 at 18:41 +, Chalamarla, Tirumalesh wrote: > Sorry there was a type, > > The question is: > > How is VFIO restricting software from writing to MSI/MSI-X > vectors of the device. All interrupts are configured via ioctl, not MSI config space or the MSI-X vector

Re: [PATCH] ecryptfs: Drop cast

2014-06-26 Thread Joe Perches
On Fri, 2014-06-27 at 00:12 +0530, Himangi Saraogi wrote: > This patch does away with casts on void * as they are unnecessary. [] > diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c [] > @@ -53,7 +53,7 @@ static void unlock_dir(struct dentry *dir) > > static int ecryptfs_inode_test(struct i

[PATCH] pciehp: Remove the field controller->no_cmd_completed

2014-06-26 Thread Rajat Jain
After following recent cleanups by Bjorn: http://git.kernel.org/cgit/linux/kernel/git/helgaas/pci.git/log/?h=pci/hotplug 2cc56f3 PCI: pciehp: Remove assumptions about which commands cause 40b9608 PCI: pciehp: Compute timeout from hotplug command start time 3461a06 PCI: pciehp: Wait for hotplug co

Re: [PATCH 2/9] drivers: base: support cpu cache information interface to userspace via sysfs

2014-06-26 Thread Russell King - ARM Linux
On Thu, Jun 26, 2014 at 07:41:32PM +0100, Sudeep Holla wrote: > Hi, > > On 25/06/14 23:23, Russell King - ARM Linux wrote: >> On Wed, Jun 25, 2014 at 06:30:37PM +0100, Sudeep Holla wrote: >>> + coherency_line_size: the minimum amount of data that gets >>> transferred >> >> So, what value

Re: [PATCH 8/9] ARM: kernel: add support for cpu cache information

2014-06-26 Thread Stephen Boyd
On 06/26/14 04:36, Sudeep Holla wrote: > Hi Stephen, > > On 26/06/14 01:19, Stephen Boyd wrote: >> On 06/25/14 10:30, Sudeep Holla wrote: >>> + >>> +/* >>> + * Which cache CCSIDR represents depends on CSSELR value >>> + * Make sure no one else changes CSSELR during this >>> + * smp_call_function_si

Re: [PATCH 1/1] FS/OMFS: block number sanity check during fill_super operation

2014-06-26 Thread Fabian Frederick
On Thu, 26 Jun 2014 11:35:57 -0700 Linus Torvalds wrote: > On Jun 26, 2014 11:28 AM, "Fabian Frederick" wrote: > > > >Sorry but I don't see a problem with 2^31 value. > > It's not really 2^31. > > It's *negative* 2^31. > > 1 is "int", so it's a signed number. With the shift it ends up bei

[PATCH] ecryptfs: Drop cast

2014-06-26 Thread Himangi Saraogi
This patch does away with casts on void * as they are unnecessary. The following Coccinelle semantic patch was used for making the change: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x)[...] | ((T *)x)->f | - (T *) e ) Signed-off-by: Himangi Saraogi Acked-by

RE: [RFC PATCH v6 04/20] iommu/arm-smmu: add capability IOMMU_CAP_INTR_REMAP

2014-06-26 Thread Chalamarla, Tirumalesh
Sorry there was a type, The question is: How is VFIO restricting software from writing to MSI/MSI-X vectors of the device. -Original Message- From: Chalamarla, Tirumalesh Sent: Thursday, June 26, 2014 11:16 AM To: Chalamarla, Tirumalesh; Joerg Roedel; Will Deacon Cc: k...

Re: [PATCH 2/9] drivers: base: support cpu cache information interface to userspace via sysfs

2014-06-26 Thread Sudeep Holla
Hi, On 25/06/14 23:23, Russell King - ARM Linux wrote: On Wed, Jun 25, 2014 at 06:30:37PM +0100, Sudeep Holla wrote: + coherency_line_size: the minimum amount of data that gets transferred So, what value to do envision this taking for a CPU where the cache line size is 32 bytes

[PATCH v3 1/1] rcu: uninline rcu_lock_acquire() and rcu_lock_release()

2014-06-26 Thread Oleg Nesterov
On 06/26, Oleg Nesterov wrote: > > On 06/26, Oleg Nesterov wrote: > > > > +static void rcu_release_map(struct lockdep_map *map, unsigned long ip) > > +{ > > + rcu_lockdep_assert_watching(); > > + __rcu_lock_release(&rcu_lock_map, ip); > > OOPS. This shou

Re: [PATCH] ring-buffer: Fix polling on trace_pipe

2014-06-26 Thread Martin Lau
Hi Steve, Can the modified test program reproduce the problem in your test setup? Thanks, --Martin On Tue, Jun 10, 2014 at 10:58:14PM -0700, Martin Lau wrote: > Hi Steve, > > Attached is the modified test program. Here is the sample output: > > localhost ~ # ./ftrace-test-epoll-kafai >

Re: [PATCH] clk: tegra: export clock names for debugging

2014-06-26 Thread Sergei Shtylyov
Hello. On 06/26/2014 07:48 PM, Peter De Schrijver wrote: When writing a module for testing or debugging purposes, there is no way to get hold of clk handles. This patch solves this by exposing all valid clocks as clkdev's for the virtual device tegra-clk-debug. Signed-off-by: Peter De Schrij

[PATCH] regulator: tps65917: Fix SMPS enable/disable/is_enable

2014-06-26 Thread Nishanth Menon
We use regmap regulator ops to enable/disable and check if regulator is enabled for various SMPS. However, these depend on valid enable_reg, enable_mask and enable_value in regulator descriptor. So, similar to fix we did in commit 318dbb02b50c ("regulator: palmas: Fix SMPS enable/disable/is_enable

Re: [PATCH 1/1] FS/OMFS: block number sanity check during fill_super operation

2014-06-26 Thread Fabian Frederick
On Thu, 26 Jun 2014 10:08:04 -0700 Linus Torvalds wrote: > On Jun 26, 2014 10:05 AM, "Fabian Frederick" wrote: > > > > +#define OMFS_MAX_BLOCKS (1 << 31) > > This is wrong. Think about the types, and what value this has... > Hello Linus, Sorry but I don't see a problem with 2^31 value. It

[PATCH] hwpoison: Fix race with changing page during offlining

2014-06-26 Thread Andi Kleen
From: Andi Kleen While running the mcelog test suite on 3.14 I hit the following VM_BUG_ON: soft_offline: 0x56d4: unknown non LRU page type 388000 page:ea15b400 count:3 mapcount:2097169 mapping: (null) index:0x8800056d7000 page flags: 0x384081(locked|slab|he

RE: [RFC PATCH v6 04/20] iommu/arm-smmu: add capability IOMMU_CAP_INTR_REMAP

2014-06-26 Thread Chalamarla, Tirumalesh
When I say emulating ITS, I mean translating guest ITS commands to physical ITS commands and placing them in physical queue. Regards, Tirumalesh. -Original Message- From: kvmarm-boun...@lists.cs.columbia.edu [mailto:kvmarm-boun...@lists.cs.columbia.edu] On Behalf Of Chalamarla, Tirum

[PATCH v5 00/14] Add Maxim 77802 PMIC support

2014-06-26 Thread Javier Martinez Canillas
MAX77802 is a PMIC that contains 10 high efficiency Buck regulators, 32 Low-dropout (LDO) regulators, two 32kHz buffered clock outputs, a Real-Time-Clock (RTC) and a I2C interface to program the individual regulators, clocks and the RTC. This fifth version of the patch-set addresses several issues

[PATCH v5 02/14] mfd: max77686: Allow the max77686 rtc to wakeup the system

2014-06-26 Thread Javier Martinez Canillas
From: Doug Anderson The max77686 includes an RTC that keeps power during suspend. It's convenient to be able to use it as a wakeup source. NOTE: due to wakeup ordering problems this patch alone doesn't work so well on exynos5250-snow. You also need something that brings the i2c bus up before t

[PATCH v5 04/14] clk: max77686: Improve Maxim 77686 PMIC clocks binding

2014-06-26 Thread Javier Martinez Canillas
Like most clock drivers, the Maxim 77686 PMIC clock binding follows the convention that the "#clock-cells" property is used to specify the number of cells in a clock provider. But the binding document is not clear enough that it shall be set to 1 since the PMIC support multiple clocks outputs. Al

[PATCH v5 03/14] clk: max77686: Add DT include for MAX77686 PMIC clock

2014-06-26 Thread Javier Martinez Canillas
This patch adds a dt-binding include for Maxim 77686 PMIC clock IDs that can be to be shared between the clk-max77686 clock driver and DeviceTree source files. Signed-off-by: Javier Martinez Canillas Reviewed-by: Krzysztof Kozlowski --- Changes since v4: None Changes since v3: None drivers/c

[PATCH v5 12/14] clk: max77802: Add DT binding documentation

2014-06-26 Thread Javier Martinez Canillas
Add Device Tree binding documentation for the clocks outputs in the Maxim 77802 Power Management IC. Signed-off-by: Javier Martinez Canillas --- Changes since v4: None Changes since v3: - Don't use the same clock driver name in clock-names since it's a consumer concept and most probably wil

[PATCH v5 09/14] regmap: Add regmap_reg_copy function

2014-06-26 Thread Javier Martinez Canillas
Some device drivers using the register map API need to copy the value from one register to another. Even though it can be done with a combination of regmap_read() and regmap_write(), it is better to have a function to avoid code duplication and also it sanity check and do it atomically by holding t

[PATCH v5 05/14] clk: Add generic driver for Maxim PMIC clocks

2014-06-26 Thread Javier Martinez Canillas
Maxim Integrated Power Management ICs are very similar with regard to their clock outputs. Most of the clock drivers for these chips are duplicating code and are simpler enough that can be converted to use a generic driver to consolidate code and avoid duplication. Signed-off-by: Javier Martinez C

[PATCH v5 14/14] ARM: dts: Add max77802 to exynos5420-peach-pit and exynos5800-peach-pi

2014-06-26 Thread Javier Martinez Canillas
Peach pit and pi boards uses a Maxim 77802 power management IC to drive regulators and its Real Time Clock. This patch adds support for this chip. These are the device nodes and pinctrl configuration that are present on the Peach pit DeviceTree source file in the the Chrome OS kernel 3.8 tree. Si

[PATCH v5 08/14] mfd: max77802: Add DT binding documentation

2014-06-26 Thread Javier Martinez Canillas
Add Device Tree binding documentation for Maxim 77802 PMIC. Signed-off-by: Javier Martinez Canillas --- Changes since v4: None Changes since v3: None Changes since v2: - Explain better the Dynamic Voltage Scaling (DVS) support in some Buck regulators and the max77802,pmic-buck-{dvs,selb}-g

[PATCH v5 10/14] regulator: Add driver for Maxim 77802 PMIC regulators

2014-06-26 Thread Javier Martinez Canillas
The MAX77802 PMIC has 10 high-efficiency Buck and 32 Low-dropout (LDO) regulators. This patch adds support for all these regulators found on the MAX77802 PMIC and is based on a driver added by Simon Glass to the Chrome OS kernel 3.8 tree. Signed-off-by: Javier Martinez Canillas Tested-by: Naveen

[PATCH v5 11/14] clk: Add driver for Maxim 77802 PMIC clocks

2014-06-26 Thread Javier Martinez Canillas
The MAX77802 PMIC has two 32.768kHz Buffered Clock Outputs with Low Jitter Mode. This patch adds support for these two clocks. Signed-off-by: Javier Martinez Canillas Reviewed-by: Krzysztof Kozlowski --- Changes since v4: None Changes since v3: None Changes since v2: None Changes since v1:

[PATCH v5 13/14] rtc: Add driver for Maxim 77802 PMIC Real-Time-Clock

2014-06-26 Thread Javier Martinez Canillas
The MAX7802 PMIC has a Real-Time-Clock (RTC) with two alarms. This patch adds support for the RTC and is based on a driver added by Simon Glass to the Chrome OS kernel 3.8 tree. Signed-off-by: Javier Martinez Canillas --- Changes since v4: None Changes since v3: None drivers/rtc/Kconfig

[PATCH v5 07/14] mfd: Add driver for Maxim 77802 Power Management IC

2014-06-26 Thread Javier Martinez Canillas
Maxim MAX77802 is a power management chip that contains 10 high efficiency Buck regulators, 32 Low-dropout (LDO) regulators used to power up application processors and peripherals, a 2-channel 32kHz clock outputs, a Real-Time-Clock (RTC) and a I2C interface to program the individual regulators, clo

[PATCH v5 06/14] clk: max77686: Convert to the generic max clock driver

2014-06-26 Thread Javier Martinez Canillas
Clocks drivers for Maxim PMIC are very similar so they can be converted to use the generic Maxim clock driver. Also, while being there use module_platform_driver() helper macro to eliminate more boilerplate code. Signed-off-by: Javier Martinez Canillas Reviewed-by: Krzysztof Kozlowski --- Chan

[PATCH v5 01/14] mfd: max77686: Convert to use regmap_irq

2014-06-26 Thread Javier Martinez Canillas
By using the generic IRQ support in the Register map API, it is possible to get rid max77686-irq.c and simplify the code. Suggested-by: Krzysztof Kozlowski Signed-off-by: Javier Martinez Canillas Acked-by: Lee Jones Reviewed-by: Doug Anderson Tested-by: Doug Anderson --- Changes since v4: -

Re: [PATCH v2 1/2] ARM: at91/dt: describe rgmii ethernet phy connected to sama5d3xek boards

2014-06-26 Thread Florian Fainelli
Hi Boris, 2014-06-26 3:13 GMT-07:00 Boris BREZILLON : > Add ethernet-phy node and specify phy interrupt (connected to pin PB25). > > The PHY address is not specified here because atmel have 2 different > designs > for its CPU modules: one is connecting PHYAD[0-2] pins to pull up resistors > (Embes

Re: [PATCH v1 4/9] pinctrl: tegra-xusb: Add USB PHY support

2014-06-26 Thread Stephen Warren
On 06/25/2014 05:30 PM, Andrew Bresticker wrote: > On Wed, Jun 25, 2014 at 3:12 PM, Stephen Warren wrote: >> On 06/18/2014 12:16 AM, Andrew Bresticker wrote: >>> In addition to the PCIe and SATA PHYs, the XUSB pad controller also >>> supports 3 UTMI, 2 HSIC, and 2 USB3 PHYs. Each USB3 PHY uses a

RE: [RFC PATCH v6 04/20] iommu/arm-smmu: add capability IOMMU_CAP_INTR_REMAP

2014-06-26 Thread Chalamarla, Tirumalesh
Forgive me if this discussion is not relative here, but I thought it is. How is VFIO restricting devices from writing to MSI/MSI-X, Is all the vector area is mapped by VFIO to trap the accesses. I am asking this because we might need to emulate ITS somewhere either in KVM or VFIO to provide

Re: [PATCH v1 6/9] usb: xhci: Add NVIDIA Tegra XHCI host-controller driver

2014-06-26 Thread Stephen Warren
On 06/25/2014 06:06 PM, Andrew Bresticker wrote: > On Wed, Jun 25, 2014 at 3:37 PM, Stephen Warren wrote: >> On 06/18/2014 12:16 AM, Andrew Bresticker wrote: >>> Add support for the on-chip XHCI host controller present on Tegra SoCs. >>> >>> The driver is currently very basic: it loads the control

Re: [PATCH 6/6] cfq: Increase default value of target_latency

2014-06-26 Thread Jeff Moyer
Mel Gorman writes: >> And we should probably run our standard set of I/O exercisers at the >> very least. But, like I said, it seems like wasted effort. >> > > Out of curiousity, what do you consider to be the standard set of I/O > exercisers? Yes, that was vague, sorry. I was referring to an

[PATCH 1/1] doc: atomic-ops.txt: correct return value info about atomic_add_unless

2014-06-26 Thread Pranith Kumar
Signed-off-by: Pranith Kumar --- Documentation/atomic_ops.txt | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Documentation/atomic_ops.txt b/Documentation/atomic_ops.txt index 68542fe..d3ad657 100644 --- a/Documentation/atomic_ops.txt +++ b/Documentation/atomic_ops.tx

Re: [RFC PATCH] phy: micrel: make phy_has_fixups attribute read correctly

2014-06-26 Thread Florian Fainelli
Hello, 2014-06-25 0:24 GMT-07:00 Bo Shen : > If the fixups parameters get from dtb, it won't set has_fixups > parameters, so when read phy_has_fixups attribute, it always > present as 0. > Add this patch to make phy_has_fixups attribute read correctly. I am not entirely sure whether loading value

Re: [PATCH v2] clocksource: document some basic timekeeping concepts

2014-06-26 Thread Randy Dunlap
On 06/24/14 01:51, Linus Walleij wrote: > This adds some documentation about clock sources, clock events, > the weak sched_clock() function and delay timers that answers > questions that repeatedly arise on the mailing lists. > > Cc: Thomas Gleixner > Cc: Nicolas Pitre > Cc: Colin Cross > Cc: J

Re: [for-next][PATCH v2 1/3] tracing: Fix syscall_*regfunc() vs copy_process() race

2014-06-26 Thread Steven Rostedt
On Tue, 24 Jun 2014 15:55:41 +0900 Namhyung Kim wrote: > Hi Steve, > > On Fri, 20 Jun 2014 06:45:19 -0400, Steven Rostedt wrote: > > From: Oleg Nesterov > > > > syscall_regfunc() and syscall_unregfunc() should set/clear > > TIF_SYSCALL_TRACEPOINT system-wide, but do_each_thread() can race > > w

Re: [PATCH 6/6] cfq: Increase default value of target_latency

2014-06-26 Thread Mel Gorman
On Thu, Jun 26, 2014 at 12:50:32PM -0400, Jeff Moyer wrote: > Mel Gorman writes: > > > On Thu, Jun 26, 2014 at 11:36:50AM -0400, Jeff Moyer wrote: > >> Right, and I guess I hadn't considered that case as I thought folks used > >> more than one spinning disk for such workloads. > >> > > > > They

Re: [PATCH 1/1] kernel/trace/trace.c: remove unnecessary null test before debugfs_remove

2014-06-26 Thread Steven Rostedt
On Thu, 26 Jun 2014 19:14:31 +0200 Fabian Frederick wrote: > This fixes checkpatch warning: > > "WARNING: debugfs_remove(NULL) is safe this check is probably not required" Thanks, applied to my 3.17 queue. -- Steve > > Cc: Steven Rostedt > Cc: Frederic Weisbecker > Signed-off-by: Fabian Fr

[PATCH 3/4] drivers/s390/block/dasd.c: replace pr_warning by pr_warn

2014-06-26 Thread Fabian Frederick
Fix checkpatch warning: "WARNING: Prefer pr_warn(... to pr_warning(..." + coalesce formats. Cc: Stefan Weinhuber Cc: Stefan Haberland Signed-off-by: Fabian Frederick --- drivers/s390/block/dasd.c | 28 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a

[PATCH 2/4] drivers/s390/block/dasd.c: Move EXPORT_SYMBOL after function/variable

2014-06-26 Thread Fabian Frederick
Fix checkpatch warnings: "WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable" Cc: Stefan Weinhuber Cc: Stefan Haberland Signed-off-by: Fabian Frederick --- drivers/s390/block/dasd.c | 69 +++ 1 file changed, 33 insertions(+)

<    1   2   3   4   5   6   7   >