[PATCH 5/6] watchdog: at91sam9: request the irq with IRQF_NO_SUSPEND

2015-02-27 Thread Boris Brezillon
The watchdog interrupt (only used when activating software watchdog) shouldn't be suspended when entering suspend mode, because it is shared with a timer device (which request the line with IRQF_NO_SUSPEND) and once the watchdog Mode Register has been written, it cannot be changed (which means we

[PATCH 1/2] kasan, module, vmalloc: rework shadow allocation for modules

2015-02-27 Thread Andrey Ryabinin
Current approach in handling shadow memory for modules is broken. Shadow memory could be freed only after memory shadow corresponds it is no longer used. vfree() called from interrupt context could use memory its freeing to store 'struct llist_node' in it: void vfree(const void *addr) { ...

[PATCH 6/6] tty: serial: atmel: rework interrupt and wakeup handling

2015-02-27 Thread Boris Brezillon
The IRQ line connected to the DBGU UART is often shared with a timer device which request the IRQ with IRQF_NO_SUSPEND. Since the UART driver is correctly disabling IRQs when entering suspend we can safely request the IRQ with IRQF_COND_SUSPEND so that irq core will not complain about mixing

Re: [PATCH] usb/isp1760: set IRQ flags properly

2015-02-27 Thread Felipe Balbi
On Fri, Feb 27, 2015 at 02:29:40PM +0100, Valentin Rothberg wrote: The IRQF_DISABLED is a NOOP and scheduled to be removed. According to commit e58aa3d2d0cc (genirq: Run irq handlers with interrupts disabled) running IRQ handlers with interrupts enabled can cause stack overflows when the

Re: [PATCH v6 1/2] tools lib traceevent: factor out allocating and processing args

2015-02-27 Thread Steven Rostedt
On Fri, 27 Feb 2015 14:48:14 + Javi Merino javi.mer...@arm.com wrote: +static int alloc_and_process_arg(struct event_format *event, char *next_token, + struct print_arg **print_arg) +{ + struct print_arg *field; + enum event_type type; +

Re: [PATCH] ARM: /proc/cpuinfo: DT: Add support for Revision

2015-02-27 Thread Pali Rohár
On Friday 30 January 2015 22:03:36 Rob Herring wrote: lOn Fri, Jan 30, 2015 at 8:14 AM, Pali Rohár pali.ro...@gmail.com wrote: On Monday 26 January 2015 21:22:27 Rob Herring wrote: On Mon, Jan 26, 2015 at 1:09 PM, Pali Rohár pali.ro...@gmail.com wrote: Ok, here is patch which set

Re: [PATCH] usb/isp1760: set IRQ flags properly

2015-02-27 Thread Felipe Balbi
On Fri, Feb 27, 2015 at 04:48:39PM +0100, Valentin Rothberg wrote: On Fri, Feb 27, 2015 at 4:24 PM, Felipe Balbi ba...@ti.com wrote: On Fri, Feb 27, 2015 at 02:29:40PM +0100, Valentin Rothberg wrote: The IRQF_DISABLED is a NOOP and scheduled to be removed. According to commit e58aa3d2d0cc

Re: [PATCH 4/8] ARM OMAP2+ GPMC: change get_gpmc_timing_reg output for DTS

2015-02-27 Thread Tony Lindgren
* Sergei Shtylyov sergei.shtyl...@cogentembedded.com [150227 06:27]: Hello. On 2/27/2015 5:17 PM, Robert Abel wrote: Documentation/kernel-doc-nano-HOWTO.txt requires colons after the parameter names, doesn't it? Jesus Christ, you guys are killing me... I've already spent way more

Re: [PATCH 07/10] ARM: dts: n9/n950: Enable omap crypto support

2015-02-27 Thread Pali Rohár
On Friday 27 February 2015 16:43:20 Tony Lindgren wrote: * Pali Rohár pali.ro...@gmail.com [150226 05:54]: Harmattan system on Nokia N9 and N950 devices uses omap crypto support. Bootloader on those devices is known that it enables HW crypto support. This patch just include omap36xx.dtsi

Re: 3.20-rc0 breaks nfsroot over usb

2015-02-27 Thread Tony Lindgren
* Aaro Koskinen aaro.koski...@iki.fi [150226 15:06]: Hi, On Thu, Feb 26, 2015 at 11:19:50PM +0100, Pavel Machek wrote: Ok, it seems that new config dependencies broke my kconfig. These will not be enabled if you just to make oldconfig; you want to make sure they are on. OMAP2430

[PATCH] staging: comedi: adv_pci1710: fix AI INSN_READ for non-zero channel

2015-02-27 Thread Ian Abbott
Reading of analog input channels by the `INSN_READ` comedi instruction is broken for all except channel 0. `pci171x_ai_insn_read()` calls `pci171x_ai_read_sample()` with the wrong value for the third parameter. It is supposed to be the current index in a channel list (which is always of length 1

[PATCH v2 0/9] PCI: MMCONFIG clean up

2015-02-27 Thread Tomasz Nowicki
MCFG ACPI table and PCI ECAM standard have no arch dependencies so it can be used across all architectures. Currently MMCONFIG related code resides in arch/x86 directories. This patch set is going to isolate non-architecure specific code and make it accessible for all architectures. v1 - v2

[PATCH v2 3/9] x86, pci: Reorder logic of pci_mmconfig_insert() function

2015-02-27 Thread Tomasz Nowicki
This patch is the first step for MMCONFIG refactoring process. Code that uses pci_mmcfg_lock will be moved to common file and become accessible for all architectures. pci_mmconfig_insert() cannot be moved so easily since it is mixing generic mmconfig code with x86 specific logic inside of mutual

Re: Build warning for unused function in the file,sm7xxfb.c

2015-02-27 Thread Paolo Bonzini
On 27/02/2015 16:14, Sudip Mukherjee wrote: I don't understand the change either, I suggest asking the kvmm developer who accepted it. Hi Paolo, We have a small confusion about commit bab5bb398273bb37547a185f7b344b37c700d0b9. It looks like the patch removed a call to function

Re: [PATCH v2 0/4] KVM: APIC improvements (with bonus mixed mode)

2015-02-27 Thread Radim Krčmář
2015-02-26 19:31-0300, Marcelo Tosatti: On Thu, Feb 26, 2015 at 10:49:53AM +0200, Nadav Amit wrote: Marcello, Radim, As you know - I can run some tests on the patches and whether they comply with real hardware. Please let me know which version to test and I’ll try to do next week.

Re: [RFC v1 0/5] fs/locks: Use plain percpu spinlocks instead of lglock to protect file_lock

2015-02-27 Thread Jeff Layton
On Fri, 27 Feb 2015 16:01:30 +0100 Daniel Wagner daniel.wag...@bmw-carit.de wrote: Sorry for the late response. Got dragged away. On 02/24/2015 10:06 PM, Jeff Layton wrote: On Tue, 24 Feb 2015 16:58:26 +0100 Daniel Wagner daniel.wag...@bmw-carit.de wrote: On 02/20/2015 05:05 PM, Andi

Re: [PATCH 4/5] usb: phy: phy-msm-usb: Rename regulator_set_optimum_mode

2015-02-27 Thread Felipe Balbi
On Wed, Feb 11, 2015 at 07:35:30PM -0800, Bjorn Andersson wrote: The function regulator_set_optimum_mode() is changing name to regulator_set_load(), so update the code accordingly. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com since this depends on the rest of the series:

Re: [PATCH net-next 1/2] net: davinci_mdio: don't request io address range

2015-02-27 Thread Lad, Prabhakar
On Tue, Feb 24, 2015 at 9:27 PM, Murali Karicheri m-kariche...@ti.com wrote: From: Grygorii Strashko grygorii.stras...@ti.com Historically Davinci MDIO driver was created with assumption that MDIO is standalone device, but for Keystone 2 it's a part of NETCP module and now NETCP driver

Re: [RFC 2/3] x86: Switch all C consumers of kernel_stack to this_cpu_sp0

2015-02-27 Thread Denys Vlasenko
On 02/27/2015 01:07 AM, Andy Lutomirski wrote: This will make modifying the semantics of kernel_stack easier. Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Boris Ostrovsky boris.ostrov...@oracle.com Cc: Rusty Russell ru...@rustcorp.com.au Signed-off-by: Andy Lutomirski

[PATCH v2 5/9] pci, acpi, mcfg: Provide generic implementation of MCFG code initialization.

2015-02-27 Thread Tomasz Nowicki
Those two functions are required by ACPI subsystem to make PCI config space accessible. Generic code assume to do nothing for early init call but late init call does as follow: - parse MCFG table and add regions to ECAM resource list - map regions - add regions to iomem_resource Signed-off-by:

Re: [RFC v1 0/5] fs/locks: Use plain percpu spinlocks instead of lglock to protect file_lock

2015-02-27 Thread Daniel Wagner
Sorry for the late response. Got dragged away. On 02/24/2015 10:06 PM, Jeff Layton wrote: On Tue, 24 Feb 2015 16:58:26 +0100 Daniel Wagner daniel.wag...@bmw-carit.de wrote: On 02/20/2015 05:05 PM, Andi Kleen wrote: Daniel Wagner daniel.wag...@bmw-carit.de writes: I am looking at how to

[PATCH v2 2/9] x86, pci: Abstract PCI config accessors and use AMD Fam10h workaround exclusively.

2015-02-27 Thread Tomasz Nowicki
From now on, readb()/writeb()/etc. generic calls are used as default approach. Special MMIO accessors are registered for AMD Fam10h CPUs only. Signed-off-by: Tomasz Nowicki tomasz.nowi...@linaro.org --- arch/x86/include/asm/pci_x86.h | 8 +++ arch/x86/pci/mmconfig-shared.c | 114

[PATCH v2 6/9] x86, pci: mmconfig_{32,64}.c code refactoring - remove code duplication.

2015-02-27 Thread Tomasz Nowicki
mmconfig_64.c version is going to be default implementation for arch agnostic low-level direct PCI config space accessors for ECAM dirver. However, now it initialize raw_pci_ext_ops pointer which is x86 specific code only. Moreover, mmconfig_32.c is doing the same thing at the same time. Move it

[PATCH -resend 1/1] bfs: bfad_worker cleanup

2015-02-27 Thread Jiri Slaby
This kthread is not loop at all due to break at the end of the loop. Make that function linear, with no while loop. And remove an unnecessary cast. Signed-off-by: Jiri Slaby jsl...@suse.cz --- drivers/scsi/bfa/bfad.c | 22 +- 1 file changed, 9 insertions(+), 13 deletions(-)

[PATCH 1/3] staging: comedi: adl_pci6208: combine PCI-6208 and PCI-6216 support

2015-02-27 Thread Ian Abbott
This module's PCI device table has separate PCI device IDs for PCI-6208 and PCI-6216, but in reality, both boards and their cPCI and PCIe variants seem to have the same PCI device ID: 0x6208. The PCI subdevice ID doesn't seem to help either. It shouldn't do any harm to claim 16 AO channels for

[PATCH 0/3] staging: comedi: adl_pci6208: combine board types

2015-02-27 Thread Ian Abbott
The driver uses the wrong PCI device ID for the PCI-6216. In reality, it has the same device ID as the PCI-6208 (and the subdevice ID's don't help either). This results in only the first 8 digital output channels of the PCI-6216 being useable. This series of patches treats the PCI-6208 and

[PATCH 0/6] ARM: at91: fix irq_pm_install_action WARNING

2015-02-27 Thread Boris Brezillon
Commit cab303be91dc47942bc25de33dc1140123540800 [1] introduced a WARN_ON test which triggers a WARNING backtrace on at91 platforms. While this WARN_ON is absolutely necessary to warn users that they should not mix request with and without IRQF_NO_SUSPEND flags on shared IRQs, there is no easy way

[PATCH 2/2] kasan, module: move MODULE_ALIGN macro into linux/moduleloader.h

2015-02-27 Thread Andrey Ryabinin
include/linux/moduleloader.h is more suitable place for this macro. Also change alignment to PAGE_SIZE for CONFIG_KASAN=n as such alignment already assumed in several places. Signed-off-by: Andrey Ryabinin a.ryabi...@samsung.com Cc: Dmitry Vyukov dvyu...@google.com Cc: Rusty Russell

Re: Build warning for unused function in the file,sm7xxfb.c

2015-02-27 Thread Sudip Mukherjee
On Thu, Feb 26, 2015 at 08:48:00AM -0800, Greg KH wrote: On Thu, Feb 26, 2015 at 10:44:00AM +0530, Sudip Mukherjee wrote: On Wed, Feb 25, 2015 at 08:33:41PM -0800, Greg KH wrote: On Thu, Feb 26, 2015 at 09:57:31AM +0530, Sudip Mukherjee wrote: I suggest updating your personal

Re: [PATCH v3 4/7] perf list: Extend raw-dump to certain kind of events

2015-02-27 Thread Arnaldo Carvalho de Melo
Em Fri, Feb 27, 2015 at 06:21:28PM +0800, Yunlong Song escreveu: Extend 'perf list --raw-dump' to 'perf list --raw-dump [hw|sw|cache |tracepoint|pmu|event_glob]' in order to show the raw-dump of a certain kind of events rather than all of the events. Example: Before this patch: $ perf

Re: [perf/core PATCH v6 0/3] perf-buildid-cache: Enhance --update and add --purge

2015-02-27 Thread Arnaldo Carvalho de Melo
Em Fri, Feb 27, 2015 at 01:50:24PM +0900, Masami Hiramatsu escreveu: Hi, Here is the 6th version of of perf buildid-cache update. This updates the 1st and 2nd patches according to Arnaldo's comment. Here are the changes in v6. - [1/3] Add verbose error message if failed to list

[PATCH v10 00/11] sched: consolidation of CPU capacity and usage

2015-02-27 Thread Vincent Guittot
This patchset consolidates several changes in the capacity and the usage tracking of the CPU. It provides a frequency invariant metric of the usage of CPUs and generally improves the accuracy of load/usage tracking in the scheduler. The frequency invariant metric is the foundation required for the

[PATCH v10 07/11] sched: get CPU's usage statistic

2015-02-27 Thread Vincent Guittot
Monitor the usage level of each group of each sched_domain level. The usage is the portion of cpu_capacity_orig that is currently used on a CPU or group of CPUs. We use the utilization_load_avg to evaluate the usage level of each group. The utilization_load_avg only takes into account the running

[PATCH v10 10/11] sched: add SD_PREFER_SIBLING for SMT level

2015-02-27 Thread Vincent Guittot
Add the SD_PREFER_SIBLING flag for SMT level in order to ensure that the scheduler will put at least 1 task per core. Signed-off-by: Vincent Guittot vincent.guit...@linaro.org Reviewed-by: Preeti U. Murthy pre...@linux.vnet.ibm.com --- kernel/sched/core.c | 1 + 1 file changed, 1 insertion(+)

[PATCH v10 02/11] sched: Track group sched_entity usage contributions

2015-02-27 Thread Vincent Guittot
From: Morten Rasmussen morten.rasmus...@arm.com Adds usage contribution tracking for group entities. Unlike se-avg.load_avg_contrib, se-avg.utilization_avg_contrib for group entities is the sum of se-avg.utilization_avg_contrib for all entities on the group runqueue. It is _not_ influenced in any

[PATCH v10 05/11] sched: make scale_rt invariant with frequency

2015-02-27 Thread Vincent Guittot
The average running time of RT tasks is used to estimate the remaining compute capacity for CFS tasks. This remaining capacity is the original capacity scaled down by a factor (aka scale_rt_capacity). This estimation of available capacity must also be invariant with frequency scaling. A frequency

[PATCH v10 04/11] sched: Make sched entity usage tracking scale-invariant

2015-02-27 Thread Vincent Guittot
From: Morten Rasmussen morten.rasmus...@arm.com Apply frequency scale-invariance correction factor to usage tracking. Each segment of the running_load_avg geometric series is now scaled by the current frequency so the utilization_avg_contrib of each entity will be invariant with frequency

[PATCH v10 08/11] sched: replace capacity_factor by usage

2015-02-27 Thread Vincent Guittot
The scheduler tries to compute how many tasks a group of CPUs can handle by assuming that a task's load is SCHED_LOAD_SCALE and a CPU's capacity is SCHED_CAPACITY_SCALE. group_capacity_factor divides the capacity of the group by SCHED_LOAD_SCALE to estimate how many task can run in the group.

[PATCH v10 03/11] sched: remove frequency scaling from cpu_capacity

2015-02-27 Thread Vincent Guittot
Now that arch_scale_cpu_capacity has been introduced to scale the original capacity, the arch_scale_freq_capacity is no longer used (it was previously used by ARM arch). Remove arch_scale_freq_capacity from the computation of cpu_capacity. The frequency invariance will be handled in the load

Re: potential corruption in synclink driver

2015-02-27 Thread Jiri Slaby
On 12/09/2014, 09:52 AM, Dan Carpenter wrote: Hi Jiri, I hate to bother you with this, but you're the TTY expert. I'm getting the following static checker warning: drivers/tty/synclink.c:4057 save_tx_buffer_request() error: 'BufferSize' from user is not capped properly

Re: [PATCH 07/10] ARM: dts: n9/n950: Enable omap crypto support

2015-02-27 Thread Tony Lindgren
* Pali Rohár pali.ro...@gmail.com [150226 05:54]: Harmattan system on Nokia N9 and N950 devices uses omap crypto support. Bootloader on those devices is known that it enables HW crypto support. This patch just include omap36xx.dtsi directly, so aes and sham is enabled. Let's also remove

[PATCH v2 8/9] pci, acpi, mcfg: Share ACPI PCI config space accessors.

2015-02-27 Thread Tomasz Nowicki
MCFG can be used perfectly for all architectures which support ACPI. ACPI mandates MCFG to describe PCI config space ranges which means we should use MMCONFIG accessors by default. Signed-off-by: Tomasz Nowicki tomasz.nowi...@linaro.org --- drivers/acpi/mcfg.c | 20 1 file

[PATCH v2 4/9] x86, pci, acpi: Move arch-agnostic MMCONFIG (aka ECAM) and ACPI code out of arch/x86/ directory

2015-02-27 Thread Tomasz Nowicki
ECAM standard and MCFG table are architecture independent and it makes sense to share common code across all architectures. Both are going to corresponding files - ecam.c and mcfg.c While we are here, rename pci_parse_mcfg to acpi_parse_mcfg. We already have acpi_parse_mcfg prototype which is

[PATCH 2/3] staging: comedi: adl_pci6208: remove multiple board type support

2015-02-27 Thread Ian Abbott
This driver module now only supports a single board type, so remove the infrastructure for describing multiple board types. The comedi auto_attach handler, `pci6208_auto_attach()` doesn't need to set the comedi device's `board_name` or `board_ptr` members. The former is automatically pointed to

Re: [PATCH 2/8] ARM OMAP2+ GPMC: add bus children

2015-02-27 Thread Robert Abel
Hi Roger, On Fri, Feb 27, 2015 at 11:24 AM, Roger Quadros rog...@ti.com wrote: + /* is child a common bus? */ + if (of_match_node(of_default_bus_match_table, child)) + /* create children and other common bus children */ + if (of_platform_populate(child,

[PATCH 3/3] staging: comedi: adl_pci6208: support old PLX device ID

2015-02-27 Thread Ian Abbott
ADLINK's MS Windows drivers for the PCI-6208/6216 boards include the following line in the DDInstall secion of the INF file: %String6208%=DriverInstall6208.NT,PCI\VEN_10B5DEV_9050SUBSYS_6208 That's for a PLX PCI 9050/9052 PCI interface chip with custom subvendor and subdevice ID. The

[PATCH 2/6] rtc: at91sam9: rework wakeup and interrupt handling

2015-02-27 Thread Boris Brezillon
The IRQ line used by the RTC device is usually shared with the system timer (PIT) on at91 platforms. Since timers are registering their handlers with IRQF_NO_SUSPEND, we should expect being called in suspended state, and properly wake the system up when this is the case. Set IRQF_COND_SUSPEND

Re: [PATCH v2 0/4] KVM: APIC improvements (with bonus mixed mode)

2015-02-27 Thread Radim Krčmář
2015-02-25 22:55-0300, Marcelo Tosatti: 1) when we have no x2APIC ID 0xff00, but send x2APIC message there 10.7 SYSTEM AND APIC BUS ARBITRATION Note that except for the SIPI IPI (see Section 10.6.1, “Interrupt Command Register (ICR)”), all bus messages that fail to be delivered to

[PATCH 4/6] clk: at91: implement suspend/resume for the PMC irqchip

2015-02-27 Thread Boris Brezillon
The irq line used by the PMC block is shared with several peripherals including the init timer which is registering its handler with IRQF_NO_SUSPEND. Implement the appropriate suspend/resume callback for the PMC irqchip, and inform irq core that PMC irq handler can be safely called while the

[PATCH 3/6] rtc: at91rm9200: rework wakeup and interrupt handling

2015-02-27 Thread Boris Brezillon
The IRQ line used by the RTC device is usually shared with the system timer (PIT) on at91 platforms. Since timers are registering their handlers with IRQF_NO_SUSPEND, we should expect being called in suspended state, and properly wake the system up when this is the case. Set IRQF_COND_SUSPEND

Re: Non-linear Remap Vs. VM Cleanup: Performance Hit

2015-02-27 Thread Kirill A. Shutemov
On Tue, Feb 24, 2015 at 02:36:25PM -0800, D. Cooper Stevenson wrote: Hello All, I read the Linus's release for RC1. One of his favorite features in the release are, actually some vm cleanups, where this release is getting rid of the largely unused non-linear remapping code (replaced with

[PATCH 7/8 v4] ARM OMAP2+ GPMC: fix WAITMONITORINGTIME divider bug

2015-02-27 Thread Robert ABEL
The WAITMONITORINGTIME is expressed as a number of GPMC_CLK clock cycles, even though the access is defined as asynchronous, and no GPMC_CLK clock is provided to the external device. Still, GPMCFCLKDIVIDER is used as a divider for the GPMC clock, so it must be programmed to define the correct

[PATCH v10 06/11] sched: add per rq cpu_capacity_orig

2015-02-27 Thread Vincent Guittot
This new field cpu_capacity_orig reflects the original capacity of a CPU before being altered by rt tasks and/or IRQ The cpu_capacity_orig will be used: - to detect when the capacity of a CPU has been noticeably reduced so we can trig load balance to look for a CPU with better capacity. As an

[PATCH v10 01/11] sched: add utilization_avg_contrib

2015-02-27 Thread Vincent Guittot
Add new statistics which reflect the average time a task is running on the CPU and the sum of these running time of the tasks on a runqueue. The latter is named utilization_load_avg. This patch is based on the usage metric that was proposed in the 1st versions of the per-entity load tracking

[PATCH v10 09/11] sched; remove unused capacity_orig from

2015-02-27 Thread Vincent Guittot
Signed-off-by: Vincent Guittot vincent.guit...@linaro.org --- kernel/sched/core.c | 12 kernel/sched/fair.c | 13 +++-- kernel/sched/sched.h | 2 +- 3 files changed, 4 insertions(+), 23 deletions(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index

[PATCH RFC 3/3] Drivers: hv: fcopy: make it consistent with vss/kvp

2015-02-27 Thread Vitaly Kuznetsov
Re-implement fcopy in a consistent with Drivers: hv: vss/kvp: convert userspace/kernel communication to using char device way. In particular: - Implement state machine for the driver instead of 3 separate syncronization variables ('fcopy_transaction.active', 'fcopy_transaction.read_sema',

[PATCH RFC 0/3] Drivers: hv: utils: re-implement the kernel/userspace communication layer

2015-02-27 Thread Vitaly Kuznetsov
This series converts kvp/vss daemons to use misc char devices instead of netlink for userspace/kernel communication and then updates fcopy to be consistent with kvp/vss. Userspace/kernel communication via netlink has a number of issues: - It is hard for userspace to figure out if the kernel part

[PATCH v2 9/9] pci, ecam: Improve naming for ecam.c content and areas where it is used.

2015-02-27 Thread Tomasz Nowicki
This commit is consequence of making x86 MMCONFIG code available for all architectures. Current code has old name fashion so for the sake of making it more understandable and express where it comes from, we are changing functions/variables/macros etc. names *mmconfig* - *ecam* Signed-off-by:

[PATCH perf/core ] [BUGFIX] perf-probe: Remove bias offset to find probe point by address

2015-02-27 Thread Masami Hiramatsu
Remove bias offset to find probe point by address. Without this patch, probe points on kernel and executables are shown correctly, but not work with libraries. - # ./perf probe -l probe:do_fork(on do_fork@kernel/fork.c) probe_libc:malloc(on malloc in

[PATCH v2] KVM: SVM: fix interrupt injection (apic-isr_count always 0)

2015-02-27 Thread Radim Krčmář
In commit b4eef9b36db4, we started to use hwapic_isr_update() != NULL instead of kvm_apic_vid_enabled(vcpu-kvm). This didn't work because SVM had it defined and apicv path in apic_{set,clear}_isr() does not change apic-isr_count, because it should always be 1. The initial value of apic-isr_count

[PATCH] phy: exynos5-usbdrd: Fix off-by-one valid value checking for args-args[0]

2015-02-27 Thread Axel Lin
Current code uses args-args[0] as array subscript of phy_drd-phys[]. So the valid value range for args-args[0] is 0 ... EXYNOS5_DRDPHYS_NUM - 1. Signed-off-by: Axel Lin axel@ingics.com --- drivers/phy/phy-exynos5-usbdrd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH] usb/isp1760: set IRQ flags properly

2015-02-27 Thread Valentin Rothberg
On Fri, Feb 27, 2015 at 4:24 PM, Felipe Balbi ba...@ti.com wrote: On Fri, Feb 27, 2015 at 02:29:40PM +0100, Valentin Rothberg wrote: The IRQF_DISABLED is a NOOP and scheduled to be removed. According to commit e58aa3d2d0cc (genirq: Run irq handlers with interrupts disabled) running IRQ

[PATCH 0/8 v4] ARM OMAP2+ GPMC: fixes and bus children

2015-02-27 Thread Robert ABEL
These are the changes I proposed in these patch series: [1], [2], [3], [4] rebased to 3.19 as well as new changes for little bugs I noticed while preparing this patch series as well as changes introduced via comments. 1. DEBUG was undefined in source code -- remove offending lines 2. add

[PATCH 5/8 v4] ARM OMAP2+ GPMC: always program GPMCFCLKDIVIDER

2015-02-27 Thread Robert ABEL
The WAITMONITORINGTIME is expressed as a number of GPMC_CLK clock cycles, even though the access is defined as asynchronous, and no GPMC_CLK clock is provided to the external device. Still, GPMCFCLKDIVIDER is used as a divider for the GPMC clock, so it must be programmed to define the correct

[PATCH 1/8 v4] ARM OMAP2+ GPMC: don't undef DEBUG

2015-02-27 Thread Robert ABEL
OMAP2+ GPMC driver undefines DEBUG, which makes it unnecessarily hard to turn DEBUG on. Remove the offending lines. Signed-off-by: Robert ABEL ra...@cit-ec.uni-bielefeld.de --- drivers/memory/omap-gpmc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/memory/omap-gpmc.c

[PATCH 6/8 v4] ARM OMAP2+ GPMC: calculate GPMCFCLKDIVIDER based on WAITMONITORINGTIME

2015-02-27 Thread Robert ABEL
The WAITMONITORINGTIME is expressed as a number of GPMC_CLK clock cycles, even though the access is defined as asynchronous, and no GPMC_CLK clock is provided to the external device. Still, GPMCFCLKDIVIDER is used as a divider for the GPMC clock, so it must be programmed to define the correct

[PATCH 8/8 v4] ARM OMAP2+ GPMC: fix programming/showing reserved timing parameters

2015-02-27 Thread Robert ABEL
GPMC_CONFIG1_i parameters CLKACTIVATIONTIME and WAITMONITORINGTIME have reserved values. Raise an error if calculated timings try to program reserved values. GPMC_CONFIG1_i ATTACHEDDEVICEPAGELENGTH and DEVICESIZE were already checked when parsing the DT. Explicitly comment invalid values on

[PATCH v2 1/2] arm: devtree: Set system_rev from DT revision

2015-02-27 Thread Pali Rohár
With this patch revision DT string entry is used to set global system_rev variable. DT revision is expected to be string with one hexadecimal number. So Revision line in /proc/cpuinfo will be same as revision DT value. Signed-off-by: Pali Rohár pali.ro...@gmail.com --- arch/arm/kernel/devtree.c

[PATCH 3/8 v4] ARM OMAP2+ GPMC: fix debug output alignment

2015-02-27 Thread Robert ABEL
GPMC debug output is aligned to 10 characters for field names. However, some fields have bigger names, screwing up the alignment. Consequently, alignment was changed to longest field name (17 chars) for now. Signed-off-by: Robert ABEL ra...@cit-ec.uni-bielefeld.de --- drivers/memory/omap-gpmc.c

[PATCH 2/8 v4] ARM OMAP2+ GPMC: add bus children

2015-02-27 Thread Robert ABEL
This patch adds support for spawning buses as children of the GPMC. Signed-off-by: Robert ABEL ra...@cit-ec.uni-bielefeld.de --- drivers/memory/omap-gpmc.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/memory/omap-gpmc.c

[PATCH v10 11/11] sched: move cfs task on a CPU with higher capacity

2015-02-27 Thread Vincent Guittot
When a CPU is used to handle a lot of IRQs or some RT tasks, the remaining capacity for CFS tasks can be significantly reduced. Once we detect such situation by comparing cpu_capacity_orig and cpu_capacity, we trig an idle load balance to check if it's worth moving its tasks on an idle CPU. It's

Re: [PATCH] ARM: /proc/cpuinfo: DT: Add support for Revision

2015-02-27 Thread Pali Rohár
On Monday 26 January 2015 23:34:34 Andreas Färber wrote: Am 26.01.2015 um 20:09 schrieb Pali Rohár: diff --git a/arch/arm/kernel/devtree.c b/arch/arm/kernel/devtree.c index 11c54de..9946c1b 100644 --- a/arch/arm/kernel/devtree.c +++ b/arch/arm/kernel/devtree.c [...] @@ -204,6

[PATCH 4/8 v4] ARM OMAP2+ GPMC: change get_gpmc_timing_reg output for DTS

2015-02-27 Thread Robert ABEL
DTS output was formatted to require additional work when copy-pasting into DTS. Nano-second timings were replaced with interval of values that produce the same number of clock ticks. Signed-off-by: Robert ABEL ra...@cit-ec.uni-bielefeld.de --- drivers/memory/omap-gpmc.c | 38

Re: [PATCH] [trivial] treewide: Fix typo in printk messages

2015-02-27 Thread Andy Shevchenko
On Fri, Feb 27, 2015 at 4:52 PM, Masanari Iida standby2...@gmail.com wrote: This patch fix spelling typo in printk messages. Can you split by subsystems / drivers under question? Signed-off-by: Masanari Iida standby2...@gmail.com --- arch/arc/kernel/unwind.c | 2 +-

RE: [PATCH net-next] hyperv: Implement netvsc_get_channels() ethool op

2015-02-27 Thread Haiyang Zhang
-Original Message- From: Andrew Schwartzmeyer [mailto:and...@schwartzmeyer.com] Sent: Thursday, February 26, 2015 7:27 PM To: Haiyang Zhang Cc: KY Srinivasan; de...@linuxdriverproject.org; net...@vger.kernel.org; linux-kernel@vger.kernel.org; hall5...@vandals.uidaho.edu;

Re: [PATCH v2 4/7] thermal: introduce the Power Allocator governor

2015-02-27 Thread Javi Merino
On Thu, Feb 26, 2015 at 08:36:16PM +, Eduardo Valentin wrote: Javi, Replying in v2. On Thu, Feb 26, 2015 at 07:00:30PM +, Javi Merino wrote: big cut + +/** + * divvy_up_power() - divvy the allocated power between the actors + * @req_power: each actor's requested

Re: bluetooth on n900 -- working patch

2015-02-27 Thread Pali Rohár
On Wednesday 11 February 2015 11:41:36 Pavel Machek wrote: Hi! Here's current version of the bluetooth patch, I hope I did not miss anything. This time including dts changes, so that driver is active. I have firmware in /lib/firmware/nokia/bcmfw.bin Best regards,

Re: 3.20-rc0 breaks nfsroot over usb

2015-02-27 Thread Pavel Machek
On Fri 2015-02-27 01:03:07, Aaro Koskinen wrote: Hi, On Thu, Feb 26, 2015 at 11:19:50PM +0100, Pavel Machek wrote: Ok, it seems that new config dependencies broke my kconfig. These will not be enabled if you just to make oldconfig; you want to make sure they are on. OMAP2430 and

[PATCH 04/19] perf probe: Handle strdup() failure

2015-02-27 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo a...@redhat.com We could end up returning 0 (Ok) with a NULL raw_path. Fix it. Acked-by: Masami Hiramatsu masami.hiramatsu...@hitachi.com Cc: David Ahern dsah...@gmail.com Cc: Jiri Olsa jo...@redhat.com Cc: Namhyung Kim namhy...@kernel.org Cc: Naohiro Aota

[PATCH 02/19] perf probe: Check kprobes blacklist when adding new events

2015-02-27 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu masami.hiramatsu...@hitachi.com Recent linux kernel provides a blacklist of the functions which can not be probed. perf probe can now check this blacklist before setting new events and indicate better error message for users. Without this patch, # perf probe --add

[PATCH 01/19] perf trace: Fix SIGBUS failures due to misaligned accesses

2015-02-27 Thread Arnaldo Carvalho de Melo
From: David Ahern david.ah...@oracle.com On Sparc64 perf-trace is failing in many spots due to extended load instructions being used on misaligned accesses. (gdb) run trace ls Starting program: /tmp/perf/perf trace ls [Thread debugging using libthread_db enabled] Detaching after fork from child

[PATCH 09/19] perf list: Sort the output of 'perf list' to view more clearly

2015-02-27 Thread Arnaldo Carvalho de Melo
From: Yunlong Song yunlong.s...@huawei.com Sort the output according to ASCII character list (using strcmp), which supports both number sequence and alphabet sequence. Example: Before this patch: $ perf list List of pre-defined events (to be used in -e): cpu-cycles OR cycles

[PATCH 07/19] perf probe: Fix a precedence bug

2015-02-27 Thread Arnaldo Carvalho de Melo
From: He Kuang heku...@huawei.com The minus operator has higher precedence than ?: Add parentheses around ?: fix this. Before this patch: $ echo 'p:myprobe do_sys_open' /sys/kernel/debug/tracing/kprobe_events $ perf probe -l -k ../vmlinux kprobes:myprobe (on do_sys_open) After

[PATCH 03/19] perf probe: Fix get_real_path to free allocated memory in error path

2015-02-27 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu masami.hiramatsu...@hitachi.com Fix get_real_path to free allocated memory when comp_dir is used for complementing path and getting an error. Signed-off-by: Masami Hiramatsu masami.hiramatsu...@hitachi.com Cc: Namhyung Kim namhy...@kernel.org Cc: Naohiro Aota

Re: [PATCH 1/1] tty: fix up atime/mtime mess, take four

2015-02-27 Thread Greg KH
On Fri, Feb 27, 2015 at 06:40:31PM +0100, Jiri Slaby wrote: This problem was taken care of three times already in * b0de59b5733d18b0d1974a060860a8b5c1b36a2e (TTY: do not update atime/mtime on read/write), * 37b7f3c76595e23257f61bd80b223de8658617ee (TTY: fix atime/mtime regression), and *

[PATCH] regulator: core: Fix enable GPIO reference counting

2015-02-27 Thread Doug Anderson
It is possible for _regulator_do_enable() to be called for an already-enabled rdev, like in regulator_suspend_finish(). If we were using an enable pin (rdev-ena_pin is set) then we'd end up incrementing the reference count in regulator_ena_gpio_ctrl() over and over again without a decrement.

Re: [PATCH v2 2/2] ARM: perf: Add support for Scorpion PMUs

2015-02-27 Thread Will Deacon
On Fri, Feb 27, 2015 at 07:36:11PM +, Stephen Boyd wrote: On 02/25/15 08:58, Ashwin Chaugule wrote: Its a count control register (PMxEVCNTCR). Theres various conditions on which you can select when to start/stop counting. e.g. start when another counter register overflows. Setting it to

Re: 3.20-rc0 breaks nfsroot over usb

2015-02-27 Thread Arnd Bergmann
On Friday 27 February 2015 07:38:09 Tony Lindgren wrote: * Aaro Koskinen aaro.koski...@iki.fi [150226 15:06]: Hi, On Thu, Feb 26, 2015 at 11:19:50PM +0100, Pavel Machek wrote: Ok, it seems that new config dependencies broke my kconfig. These will not be enabled if you just to make

Re: [PATCH firmware] rtl_nic: update firmware for RTL8168H and RTL8107E

2015-02-27 Thread Kyle McMartin
On Thu, Feb 26, 2015 at 04:31:38PM +0800, Hayes Wang wrote: File: rtl_nic/rtl8168h-1.fw Version: 0.0.2 File: rtl_nic/rtl8168h-2.fw Version: 0.0.2 File: rtl_nic/rtl8107e-1.fw Version: 0.0.2 File: rtl_nic/rtl8107e-2.fw Version: 0.0.2 Signed-off-by: Hayes Wang hayesw...@realtek.com

[PATCH] smp: Remove CSD_FLAG_WAIT flag that's unused

2015-02-27 Thread Tim Chen
The CSD_FLAG_WAIT is not serving any useful purpose as we do not use its value to decide if we are going to wait for a smp call to complete. We also never cleared it properly when we are done waiting to indicate that the wait is over. So the WARNING debug check in csd_unlock is also not serving

Re: [PATCH v1] of: calculate masks of the device based on dma-range size

2015-02-27 Thread Murali Karicheri
On 02/25/2015 07:20 PM, Bjorn Helgaas wrote: [+cc Catalin] On Wed, Feb 11, 2015 at 12:53:35PM -0500, Murali Karicheri wrote: This patch update of_dma_configure() API to calculate the masks (dma_mask and coherent_dma_mask) based on the dma-range values set in DT for the device. Also limit the

Re: [RFC PATCH] ARM64: cmpxchg.h: Clear the exclusive access bit on fail

2015-02-27 Thread Mark Rutland
On Fri, Feb 27, 2015 at 06:44:19PM +, Pranith Kumar wrote: On Fri, Feb 27, 2015 at 1:33 PM, Catalin Marinas catalin.mari...@arm.com wrote: It's either badly formatted or I don't get it. Are the stxr x1 and stxr x7 happening on the same CPU (P0)? If yes, that's badly written code, not

[PATCH 1/2] f2fs: clear page's up-to-date if block was deallocated

2015-02-27 Thread Jaegeuk Kim
If page's on-disk block was deallocated, let's remove up-to-date flag to avoid further access with wrong contents. Signed-off-by: Jaegeuk Kim jaeg...@kernel.org --- fs/f2fs/data.c | 6 +- fs/f2fs/dir.c | 1 + fs/f2fs/node.c | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git

[PATCH 2/2] f2fs: check its block allocation to avoid producing wrong dirty pages

2015-02-27 Thread Jaegeuk Kim
If a page is cached but its block was deallocated, we don't need to make the page dirty again by gc and truncate_partial_data_page. In that case, it needs to check its block allocation all the time instead of giving up-to-date page. Signed-off-by: Jaegeuk Kim jaeg...@kernel.org ---

Re: [PATCH v5 20/20] arm: mach-pxa: Decrement the power supply's device reference counter

2015-02-27 Thread Pavel Machek
On Fri 2015-02-27 09:20:01, Krzysztof Kozlowski wrote: Use power_supply_put() to decrement the power supply's device reference counter. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Reviewed-by: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Reviewed-by: Sebastian Reichel

[PATCH 06/19] perf diff: Support for different binaries

2015-02-27 Thread Arnaldo Carvalho de Melo
From: Kan Liang kan.li...@intel.com Currently, the perf diff only works with same binaries. That's because it compares the symbol start address. It doesn't work if the perf.data comes from different binaries. This patch matches the symbol names. Actually, perf diff once intended to compare the

[PATCH 05/19] perf buildid-cache: Add new buildid cache if update target is not cached

2015-02-27 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu masami.hiramatsu...@hitachi.com Add new buildid cache if the update target file is not cached. This can happen when an old binary is replaced by new one after caching the old one. In this case, user sees his operation just failed. But it does not look straight, since user

Re: [RFC PATCH] ARM64: cmpxchg.h: Clear the exclusive access bit on fail

2015-02-27 Thread Mark Rutland
On Fri, Feb 27, 2015 at 07:15:57PM +, Pranith Kumar wrote: On Fri, Feb 27, 2015 at 2:08 PM, Mark Rutland mark.rutl...@arm.com wrote: On Fri, Feb 27, 2015 at 06:44:19PM +, Pranith Kumar wrote: On Fri, Feb 27, 2015 at 1:33 PM, Catalin Marinas catalin.mari...@arm.com wrote: It's

Re: [RFC PATCH] arm64: Implement cpu_relax as yield

2015-02-27 Thread Peter Crosthwaite
On Wed, Feb 25, 2015 at 5:24 AM, Will Deacon will.dea...@arm.com wrote: On Tue, Feb 24, 2015 at 11:07:37PM +, Peter Crosthwaite wrote: ARM64 has the yield nop hint which has the intended semantics of cpu_relax. Implement. The immediate application is ARM CPU emulators. An emulator can

[PATCH] x86_32: Initialize the cr4 shadow on cpu init

2015-02-27 Thread Andy Lutomirski
32-bit secondary cpus had uninitialized cr4 shadows, causing random failures. Reported-by: Steven Rostedt rost...@goodmis.org Signed-off-by: Andy Lutomirski l...@amacapital.net --- This is embarrassing. I must have gotten lucky testing it. arch/x86/kernel/cpu/common.c | 6 ++ 1 file

<    5   6   7   8   9   10   11   12   13   14   >