[PATCH 4/7] arm-cci: Abstract handling for CCI events

2015-05-05 Thread Suzuki K. Poulose
From: "Suzuki K. Poulose" Given that each CCI has different set of interfaces and its associated events, it is good to abstract the validation of the event codes to make it easier to add support for a new CCI model. This patch also abstracts the mapping of a given event to a counter, as there ar

[PATCH 6/7] arm-cci: Add CCI-500 PMU support

2015-05-05 Thread Suzuki K. Poulose
From: "Suzuki K. Poulose" CCI-500 provides 8 event counters which can count any of the supported events independently. The PMU event id is a 9-bit value made of two parts. bits [8:5] - Source port 0x0-0x6 Slave Ports 0x8-0xD Master Ports

[PATCH 5/7] arm-cci: Sanitise CCI400 PMU driver specific code

2015-05-05 Thread Suzuki K. Poulose
From: "Suzuki K. Poulose" Rename CCI400 specific defintions from CCI_xxx to CCI400_xxx. Introduce generic ARM_CCI_PMU to cover common code for handling the CCI PMU. Cc: Mark Rutland Cc: Will Deacon Cc: Punit Agrawal Signed-off-by: Suzuki K. Poulose --- drivers/bus/Kconfig |5 ++ driv

[PATCH 3/7] arm-cci: Abstract out the PMU counter details

2015-05-05 Thread Suzuki K. Poulose
From: "Suzuki K. Poulose" Adds the PMU model specific counters to the PMU model abstraction to make it easier to add a new PMU. The patch cleans up the naming convention used all over the code. e.g, CCI_PMU_MAX_HW_EVENTS => maximum number of events that can be counted at any time, which is in fa

Re: [PATCH] ACPI / scan: Add a scan handler for PRP0001

2015-05-05 Thread Rafael J. Wysocki
On Tuesday, May 05, 2015 02:24:25 PM Mika Westerberg wrote: > On Tue, May 05, 2015 at 02:49:55AM +0200, Rafael J. Wysocki wrote: > > > > Thanks, I have an update, though. > > > > In a recent discussion with Darren we've come to the conlusion that > > having a parent with PRP0001 and "compatible"

[PATCH 2/7] arm-cci: Cleanup PMU driver code

2015-05-05 Thread Suzuki K. Poulose
From: "Suzuki K. Poulose" This patch gets rid of the global struct cci_pmu variable and makes the code use the cci_pmu explicitly. Makes code a bit more robust and reader friendly. Cc: Punit Agrawal Cc: Mark Rutland Cc: Will Deacon Signed-off-by: Suzuki K. Poulose --- drivers/bus/arm-cci.c

[PATCH 0/2] block: loop: fix stacked loop and performance regression

2015-05-05 Thread Ming Lei
Hi, The 1st patch convers to per-device workqueue because loop devices can be stacked. The 2nd patch decreases max active works as 16, so that fedora 22's boot performance regression can be fixed. drivers/block/loop.c | 30 ++ drivers/block/loop.h | 1 + 2 files cha

[PATCH 7/7] arm-cci: Add aliases for PMU events

2015-05-05 Thread Suzuki K. Poulose
From: "Suzuki K. Poulose" Each CCI model have different event/source codes and formats. This patch exports this information via the sysfs, which includes the aliases for the events. The aliases are listed by 'perf list', helping the users to specify the name of the event instead of the binary con

[PATCH 2/2] block: loop: avoiding too many pending per work I/O

2015-05-05 Thread Ming Lei
If there are too many pending per work I/O, too many high priority work thread can be generated so that system performance can be effected. This patch limits the max_active parameter of workqueue as 16. This patch fixes Fedora 22 live booting performance regression when it is booted from squashfs

[PATCH 1/2] block: loop: convert to per-device workqueue

2015-05-05 Thread Ming Lei
Documentation/workqueue.txt: If there is dependency among multiple work items used during memory reclaim, they should be queued to separate wq each with WQ_MEM_RECLAIM. Loop devices can be stacked, so we have to convert to per-device workqueue. One example is Fedora live CD

Re: [PATCH 1/9] ARM: tegra: Cardhu device-tree comment spelling fix

2015-05-05 Thread Thierry Reding
On Fri, Apr 10, 2015 at 11:35:56PM +0200, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > Signed-off-by: Marcel Ziswiler > --- > arch/arm/boot/dts/tegra30-cardhu.dtsi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) I added a short commit message and applied this. Thanks, Thierry

[PATCH] qxl: rewrite framebuffer support

2015-05-05 Thread Gerd Hoffmann
Completely different approach: Instead of encoding each and every framebuffer update as spice operation simply update the shadow framebuffer and maintain a dirty rectangle. Also schedule a worker to push an update for the dirty rectangle as spice operation. Usually a bunch of dirty rectangle upd

Re: [PATCH 2/9] ARM: tegra: fix hda2codec_2x clock name for Tegra30

2015-05-05 Thread Thierry Reding
On Fri, Apr 10, 2015 at 11:35:57PM +0200, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > Signed-off-by: Marcel Ziswiler > --- > drivers/clk/tegra/clk-tegra30.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) I think this isn't technically required because we're always getting the c

Re: not syncing: Attempted to kill init! exitcode=0x00000004 ?

2015-05-05 Thread Shawn Guo
On Tue, Apr 07, 2015 at 12:34:30PM +0900, Masahiro Yamada wrote: > Hello experts, > I hope this is the correct ML to ask this question. > > I am struggling to port Linux-4.0-rc7 onto my SoC/board, > based on ARM cortex-A9 (single CPU), but the kernel fails to boot > with the error: > "not syncing:

[PATCH v2 2/2] sched/rt: Remove redundant conditions from task_woken_rt()

2015-05-05 Thread Xunlei Pang
From: Xunlei Pang - Remove "has_pushable_tasks(rq)". Because for queued p, "!task_running(rq, p)" and "p->nr_cpus_allowed > 1" already imply that "has_pushable_tasks(rq)" is true. - Remove "!test_tsk_need_resched(rq->curr)". The condtion mainly intends to ensure higher priority rt tasks wo

[PATCH v2 1/2] sched/rt: Check to push task away when its affinity is changed

2015-05-05 Thread Xunlei Pang
From: Xunlei Pang We may suffer from extra rt overload rq due to the affinity, so when the affinity of any runnable rt task is changed, we should check to trigger balancing, otherwise it will cause some unnecessary delayed real-time response. Unfortunately, current RT global scheduler does nothin

Re: [PATCH 3/9] Documentation: DT bindings: fix hda2codec_2x clock name for tegra30-hda

2015-05-05 Thread Thierry Reding
On Fri, Apr 10, 2015 at 11:35:58PM +0200, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > Fix hda2codec_2x clock name in Tegra30 HDA controller device tree node > documentation. > While at it also fix coma vs. semicolon issue. > > Signed-off-by: Marcel Ziswiler > --- > Documentation/devicet

[PATCH v4 3/5] clk: hi6220: Document devicetree bindings for hi6220 clock

2015-05-05 Thread Bintian Wang
Document DT files bindings for Hisilicon hi6220 clock. Signed-off-by: Bintian Wang Reviewed-by: Haojian Zhuang --- .../devicetree/bindings/clock/hi6220-clock.txt | 34 ++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/hi6220-

[PATCH v4 2/5] arm64: hi6220: Document devicetree bindings for Hisilicon hi6220 SoC

2015-05-05 Thread Bintian Wang
This patch adds documentation for the devicetree bindings used by the DT files of Hisilicon hi6220 SoC mobile platform. Signed-off-by: Bintian Wang --- .../bindings/arm/hisilicon/hisilicon.txt | 87 ++ 1 file changed, 87 insertions(+) diff --git a/Documentation/dev

Re: [PATCH] gma500:Remove functions that are now deprecated and move to the newer functions in drm_dp_helper.c

2015-05-05 Thread Alan Cox
On Mon, 2015-05-04 at 18:29 -0400, Nicholas Krause wrote: > This removes the deprecated functions,i2c_dp_aux_add_bus and > i2c_dp_aux_prepare_bus and the only call in the function, > cdv_intel_dp_i2c_init to i2c_dp_aux_add_bus respectfully. > The call and use of these functions is now replaced al

[PATCH v4 5/5] arm64: dts: Add dts files for Hisilicon Hi6220 SoC

2015-05-05 Thread Bintian Wang
Add initial dtsi file to support Hisilicon Hi6220 SoC with support of Octal core CPUs in two clusters and each cluster has quard Cortex-A53. Also add dts file to support HiKey development board which based on Hi6220 SoC. Signed-off-by: Bintian Wang Reviewed-by: Haojian Zhuang Reviewed-by: Yipin

[tip:x86/apic] x86: Let x2APIC support depend on interrupt remapping or guest support

2015-05-05 Thread tip-bot for Jan Kiszka
Commit-ID: 19e3d60d49f05a9de0ef06c60703f31d4acd5f17 Gitweb: http://git.kernel.org/tip/19e3d60d49f05a9de0ef06c60703f31d4acd5f17 Author: Jan Kiszka AuthorDate: Mon, 4 May 2015 17:58:01 +0200 Committer: Thomas Gleixner CommitDate: Tue, 5 May 2015 14:01:37 +0200 x86: Let x2APIC support dep

[tip:x86/apic] x86/x2apic: Acpi_gbl_FADT existence depends on CONFIG_ACPI

2015-05-05 Thread tip-bot for Jan Kiszka
Commit-ID: 781674fc33adf0d975a361e111bb45804356aa23 Gitweb: http://git.kernel.org/tip/781674fc33adf0d975a361e111bb45804356aa23 Author: Jan Kiszka AuthorDate: Mon, 4 May 2015 17:58:00 +0200 Committer: Thomas Gleixner CommitDate: Tue, 5 May 2015 14:01:37 +0200 x86/x2apic: Acpi_gbl_FADT e

RE: [PATCH bisected regression] input_available_p() sometimes says 'no' when it should say 'yes'

2015-05-05 Thread Nic Percival
There is only ever one debuggee process. My original demo (and indeed the original test failure) is not threaded. The debugger is multi-threaded. I've brought in Chris, Fletch and Paul, my immediate colleagues, into the discussion. The email thread is getting a little tangled, however, from my

Re: [PATCH v2 2/5] clk: sunxi: support the cpus (cpu special) clock on the Allwinner A80

2015-05-05 Thread Maxime Ripard
On Tue, May 05, 2015 at 06:01:16PM +0800, Chen-Yu Tsai wrote: > On Tue, May 5, 2015 at 4:25 PM, Maxime Ripard > wrote: > > On Mon, May 04, 2015 at 11:22:33PM +0800, Chen-Yu Tsai wrote: > >> Hi, > >> > >> On Mon, May 4, 2015 at 8:51 PM, Maxime Ripard > >> wrote: > >> > Hi, > >> > > >> > On Fri, Ma

Re: [PATCH 4/9] ARM: tegra: add Tegra30 HDA support

2015-05-05 Thread Thierry Reding
On Fri, Apr 10, 2015 at 11:35:59PM +0200, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > Add a device node for the HDA controller found on Tegra30. > > Signed-off-by: Marcel Ziswiler > --- > arch/arm/boot/dts/tegra30.dtsi | 15 +++ > 1 file changed, 15 insertions(+) Applied, t

[PATCH v4 4/5] clk: hi6220: Clock driver support for Hisilicon hi6220 SoC

2015-05-05 Thread Bintian Wang
Add clock drivers for hi6220 SoC, this driver controls the SoC registers to supply different clocks to different IPs in the SoC. We add one divider clock for hi6220 because the divider in hi6220 also has a mask bit but it doesnot obey the rule defined by flag "CLK_DIVIDER_HIWORD_MASK", we can not

[PATCH v4 1/5] arm64: Enable Hisilicon ARMv8 SoC family in Kconfig and defconfig

2015-05-05 Thread Bintian Wang
This patch introduces ARCH_HISI to enable Hisilicon SoC family in Kconfig and defconfig. Signed-off-by: Bintian Wang Reviewed-by: Haojian Zhuang Reviewed-by: Wei Xu --- arch/arm64/Kconfig | 5 + arch/arm64/configs/defconfig | 1 + 2 files changed, 6 insertions(+) diff --git a/ar

[PATCH v4 0/5] arm64,hi6220: Enable Hisilicon Hi6220 SoC

2015-05-05 Thread Bintian Wang
Hi6220 is one mobile solution of Hisilicon, this patchset contains initial support for Hi6220 SoC and HiKey development board, which supports octal ARM Cortex A53 cores. Initial support is minimal and includes just the arch configuration, clock driver, device tree configuration. PSCI is enabled in

Re: A desktop environment[1] kernel wishlist

2015-05-05 Thread Rafael J. Wysocki
On Tuesday, May 05, 2015 08:05:32 AM Tomeu Vizoso wrote: > On 5 May 2015 at 00:19, Rafael J. Wysocki wrote: > > On Friday, May 01, 2015 11:02:19 AM Tomeu Vizoso wrote: > >> On 30 April 2015 at 20:54, Chirantan Ekbote wrote: > >> > On Thu, Apr 30, 2015 at 10:23 AM, Olof Johansson wrote: > >> >> H

Re: [PATCH 3.2 000/221] 3.2.69-rc1 review

2015-05-05 Thread Ben Hutchings
On Mon, 2015-05-04 at 21:48 -0700, Guenter Roeck wrote: > On 05/04/2015 06:16 PM, Ben Hutchings wrote: > > This is the start of the stable review cycle for the 3.2.69 release. > > There are 221 patches in this series, which will be posted as responses > > to this one. If anyone has any issues with

Re: [PATCH 5/9] ARM: tegra: fix hda2codec_2x clock name in Tegra124 device tree

2015-05-05 Thread Thierry Reding
On Fri, Apr 10, 2015 at 11:36:00PM +0200, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > Signed-off-by: Marcel Ziswiler > --- > arch/arm/boot/dts/tegra124.dtsi | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) I have this exact commit locally in my tree, so I've just taken the co

Re: [PATCH] serial/amba-pl011: fix minor bugs for pio mode

2015-05-05 Thread Leo Yan
On Tue, May 05, 2015 at 12:11:56PM +0100, Dave P Martin wrote: > On Tue, May 05, 2015 at 04:00:25AM +0100, Leo Yan wrote: > [...] > > Thanks for the fixes, but I already posted patches that probably fix the > issues you are observing, And Greg took them into his tty-testing branch. > > Can you gi

Re: [PATCH] adm8211: fix checkpatch errors for indentation and new line around switch-case

2015-05-05 Thread Peter Rosin
> diff --git a/drivers/net/wireless/adm8211.c b/drivers/net/wireless/adm8211.c > index f07a618..058fb4b 100644 > --- a/drivers/net/wireless/adm8211.c > +++ b/drivers/net/wireless/adm8211.c > @@ -1098,14 +1098,18 @@ static void adm8211_hw_init(struct ieee80211_hw *dev) > pci_read_confi

Re: [PATCH v2 1/2] sched/rt: Check to push task away when its affinity is changed

2015-05-05 Thread Peter Zijlstra
On Tue, May 05, 2015 at 07:56:07PM +0800, Xunlei Pang wrote: > +++ b/kernel/sched/core.c > @@ -4773,6 +4773,9 @@ void do_set_cpus_allowed(struct task_struct *p, const > struct cpumask *new_mask) > > cpumask_copy(&p->cpus_allowed, new_mask); > p->nr_cpus_allowed = cpumask_weight(new_m

Re: [PATCH] serial/amba-pl011: fix minor bugs for pio mode

2015-05-05 Thread Leo Yan
On Tue, May 05, 2015 at 08:09:27PM +0800, Leo Yan wrote: > On Tue, May 05, 2015 at 12:11:56PM +0100, Dave P Martin wrote: > > On Tue, May 05, 2015 at 04:00:25AM +0100, Leo Yan wrote: > > [...] > > > > Thanks for the fixes, but I already posted patches that probably fix the > > issues you are obser

Re: [PATCH 4/4] sched: cpufreq_cfs: pelt-based cpu frequency scaling

2015-05-05 Thread Juri Lelli
Hi Peter, thanks a lot for the fast reply! :) On 05/05/15 10:00, Peter Zijlstra wrote: > On Mon, May 04, 2015 at 03:10:41PM -0700, Michael Turquette wrote: >> This policy is implemented using the cpufreq governor interface for two >> main reasons: >> >> 1) re-using the cpufreq machine drivers wit

Re: [RFC v2 1/4] fs: Add generic file system event notifications

2015-05-05 Thread Beata Michalska
Hi again, On 04/29/2015 11:13 AM, Greg KH wrote: > On Wed, Apr 29, 2015 at 09:42:59AM +0200, Jan Kara wrote: >> On Wed 29-04-15 09:03:08, Beata Michalska wrote: >>> On 04/28/2015 07:39 PM, Greg KH wrote: On Tue, Apr 28, 2015 at 04:46:46PM +0200, Beata Michalska wrote: > On 04/28/2015 04:0

Re: [PATCH 7/9] ARM: tegra: enable HDA in defconfig

2015-05-05 Thread Thierry Reding
On Fri, Apr 10, 2015 at 11:36:02PM +0200, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > Signed-off-by: Marcel Ziswiler > --- > arch/arm/configs/tegra_defconfig | 8 > 1 file changed, 8 insertions(+) I've squashed this into a single commit with the patch that enables watchdog supp

Re:Re: Input: keyboard/Trackpad support for MacBookPro 12,1

2015-05-05 Thread Yang Hongyang
At 2015-05-05 19:18:00, "Chris Bainbridge" wrote: >On 5 May 2015 at 04:29, Yang Hongyang wrote: >> Any ideas? > >https://bugzilla.kernel.org/show_bug.cgi?id=96771 Thank you!N嫥叉靣笡y氊b瞂千v豝�)藓{.n�+壏{睉赙zXФ洝塄}财爖�&j:+v墾�珣赙zZ+€�+zf"穐殘啳嗃iz�畐ア�?櫒璀�&�)撷f旟^j谦y呩@A玜囤 0鹅h�鍜i

Re: [PATCH] serial/amba-pl011: fix minor bugs for pio mode

2015-05-05 Thread Dave Martin
On Tue, May 05, 2015 at 08:11:12PM +0800, Leo Yan wrote: > On Tue, May 05, 2015 at 08:09:27PM +0800, Leo Yan wrote: > > On Tue, May 05, 2015 at 12:11:56PM +0100, Dave P Martin wrote: > > > On Tue, May 05, 2015 at 04:00:25AM +0100, Leo Yan wrote: > > > [...] > > > > > > Thanks for the fixes, but I

Re: [PATCH 8/9] ARM: tegra: colibri t30: activate stmpe811 touch controller

2015-05-05 Thread Thierry Reding
On Fri, Apr 10, 2015 at 11:36:03PM +0200, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > Activate STMPE811 touch controller as found on Colibri T30 modules. > While at it change order of HDMI sub nodes as well to be more in line > with Apalis T30. > While at it also update comment about suppo

Re: [PATCH 1/2] gpio / ACPI: Add support for retrieving GpioInt resources from a device

2015-05-05 Thread Mika Westerberg
On Tue, May 05, 2015 at 01:47:36AM +0200, Rafael J. Wysocki wrote: > On Tuesday, April 28, 2015 06:05:06 PM Mika Westerberg wrote: > > ACPI specification knows two types of GPIOs: GpioIo and GpioInt. The latter > > is used to describe that a given device interrupt line is connected to a > > specifi

Re: question about RCU dynticks_nesting

2015-05-05 Thread Paul E. McKenney
On Tue, May 05, 2015 at 12:51:02PM +0200, Peter Zijlstra wrote: > On Tue, May 05, 2015 at 12:48:34PM +0200, Peter Zijlstra wrote: > > On Mon, May 04, 2015 at 03:00:44PM -0400, Rik van Riel wrote: > > In case of the non-preemptible RCU, we could easily also > > > increase current->rcu_read_lock_nes

Re: [PATCH 9/9] ARM: tegra: apalis t30: fix pin muxing and add HDA in device tree

2015-05-05 Thread Thierry Reding
On Fri, Apr 10, 2015 at 11:36:04PM +0200, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > Fix pin muxing, add digital audio aka HDA pin muxing and activate HDA > driver. > Fix pu vs. gpio_pu pin muxing. > While at it also update comment about supported module hardware > versions. > While at it

[PATCH 1/9] usb:fsl:otg: Add controller version based ULPI and UTMI phy

2015-05-05 Thread Ramneek Mehresh
Add controller version based ULPI and UTMI phy initialization for otg driver Signed-off-by: Shengzhou Liu Signed-off-by: Ramneek Mehresh Reviewed-by: Fleming Andrew-AFLEMING Tested-by: Fleming Andrew-AFLEMING --- drivers/usb/phy/phy-fsl-usb.c | 20 drivers/usb/phy/phy-fsl

[PATCH 3/9] usb:fsl:otg: Signal host drv when host is otg

2015-05-05 Thread Ramneek Mehresh
Set is_otg boolean flag to signal host driver when host is running in context of otg host suspend/resume Signed-off-by: Ramneek Mehresh --- drivers/usb/phy/phy-fsl-usb.c | 7 ++- include/linux/usb.h | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/usb/ph

[PATCH 4/9] usb:fsl:otg: Modify otg_event to start host drv

2015-05-05 Thread Ramneek Mehresh
Add mechanism to start host driver from inside fsl_otg_even upon each id change interrupt Signed-off-by: Ramneek Mehresh Reviewed-by: Fleming Andrew-AFLEMING Tested-by: Fleming Andrew-AFLEMING --- drivers/usb/phy/phy-fsl-usb.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/usb

[PATCH 6/9] usb:fsl:otg: Remove host drv upon otg bring-up

2015-05-05 Thread Ramneek Mehresh
Change have_hcd variable to remove/suspend host driver on completion of otg initialization for otg auto detect Signed-off-by: Ramneek Mehresh Reviewed-by: Li Yang-R58472 Reviewed-by: Fleming Andrew-AFLEMING Tested-by: Fleming Andrew-AFLEMING --- drivers/usb/host/ehci-fsl.c | 5 + 1 file c

[PATCH 5/9] usb:fsl:otg: Combine host/gadget start/resume for ID change

2015-05-05 Thread Ramneek Mehresh
Make call to fsl_otg_event for each id change even Signed-off-by: Ramneek Mehresh Reviewed-by: Fleming Andrew-AFLEMING Tested-by: Fleming Andrew-AFLEMING --- drivers/usb/phy/phy-fsl-usb.c | 15 +++ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/drivers/usb/phy/phy-f

[PATCH 9/9] usb:fsl:otg: Make fsl otg driver as tristate

2015-05-05 Thread Ramneek Mehresh
Provide option to load fsl otg driver as loadable module Signed-off-by: Ramneek Mehresh --- drivers/usb/phy/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/phy/Kconfig b/drivers/usb/phy/Kconfig index 2175678..4927905 100644 --- a/drivers/usb/phy/Kconfig ++

[PATCH 8/9] usb:fsl:otg: Resolve OTG crash issue with another host

2015-05-05 Thread Ramneek Mehresh
Resolves kernel crash issue when a USB flash drive is inserted into USB1 port with USB2 port configured as otg. Removing "else" block so that the controller coming up in "non-otg" mode doesn't return -ENODEV. Returning "ENODEV" results in platform framework unbinding platform-drv from controller re

Re: [PATCH RFC] Coccinelle: Check for return not matching function signature

2015-05-05 Thread SF Markus Elfring
> Check if the signature of a function and the return value type match. Is this a task that is usually performed by a compiler? > In many cases this mismatch will have no side-effects > but in some cases it may lead to hard to locate problems It is another software development challenge to find

[PATCH 7/9] usb:fsl:otg: Add host-gadget drv sync delay

2015-05-05 Thread Ramneek Mehresh
Resolve synchronization issue between host and gadget drivers upon role-reversal Signed-off-by: Ramneek Mehresh Reviewed-by: Li Yang-R58472 Reviewed-by: Fleming Andrew-AFLEMING Tested-by: Fleming Andrew-AFLEMING --- drivers/usb/phy/phy-fsl-usb.c | 11 ++- 1 file changed, 10 insertions

Re: question about RCU dynticks_nesting

2015-05-05 Thread Paul E. McKenney
On Tue, May 05, 2015 at 12:53:46PM +0200, Peter Zijlstra wrote: > On Mon, May 04, 2015 at 12:39:23PM -0700, Paul E. McKenney wrote: > > But in non-preemptible RCU, we have PREEMPT=n, so there is no preempt > > counter in production kernels. Even if there was, we have to sample this > > on other CP

[BUG ?] MIPS: KVM: condition with no effect

2015-05-05 Thread Nicholas Mc Guire
Hi ! Not sure if this is a bug or maybe a placeholder for something... so patch - but maybe someone that knows this code can give it a look. arch/mips/kvm/emulate.c:emulation_result kvm_mips_complete_mmio_load() 2414 case 2: 2415 if (vcpu->mmio_needed == 2) 2416

Re: [PATCH v2 3/4] PM / Hibernate: fix SANITIZE_FREED_PAGES

2015-05-05 Thread Anisse Astier
On Tue, May 5, 2015 at 12:29 AM, Rafael J. Wysocki wrote: > I haven't seen it, for one, and I'm wondering why the "clearing" cannot be > done > at the swsusp_free() time? Because the validity of the free pages bitmap is short-lived since device resume code might do some allocations. > > In any

Re: [PATCH v2 2/4] mm/page_alloc.c: add config option to sanitize freed pages

2015-05-05 Thread Anisse Astier
On Mon, May 4, 2015 at 11:50 PM, PaX Team wrote: > On 4 May 2015 at 23:16, Anisse Astier wrote: > >> @@ -960,9 +966,15 @@ static int prep_new_page(struct page *page, unsigned >> int order, gfp_t gfp_flags, >> kernel_map_pages(page, 1 << order, 1); >> kasan_alloc_pages(page, order); >>

Re: [PATCH v2 4/4] mm: Add debug code for SANITIZE_FREED_PAGES

2015-05-05 Thread Anisse Astier
On Mon, May 4, 2015 at 11:50 PM, PaX Team wrote: > On 4 May 2015 at 23:16, Anisse Astier wrote: > >> diff --git a/mm/page_alloc.c b/mm/page_alloc.c >> index c29e3a0..ba8aa25 100644 >> --- a/mm/page_alloc.c >> +++ b/mm/page_alloc.c >> @@ -975,6 +975,31 @@ static int prep_new_page(struct page *page,

[PATCH 2/9][v3]usb:fsl:otg: Add support to add/remove usb host driver

2015-05-05 Thread Ramneek Mehresh
Add workqueue to add/remove host driver (outside interrupt context) upon each id change Signed-off-by: Ramneek Mehresh --- Changes for v3: - use overrides for ehci_fsl_overrides - remove struct ehci_hcd from ehci_fsl - move ehci_fsl to ehci-fsl.h drivers/usb/host/ehci-f

Re: [PATCH 09/13] KVM: x86: save/load state on SMM switch

2015-05-05 Thread Radim Krčmář
2015-05-05 11:37+0200, Paolo Bonzini: > On 04/05/2015 21:59, Radim Krčmář wrote: > > > The big ugly one. This patch adds support for switching in and out of > > > system management mode, respectively upon receiving KVM_REQ_SMI and upon > > > executing a RSM instruction. Both 32- and 64-bit format

Re: [PATCH v3 2/7] mmc: mediatek: Add Mediatek MMC driver

2015-05-05 Thread Ulf Hansson
On 28 April 2015 at 11:48, Chaotian Jing wrote: > Add Mediatek MMC driver code > Support eMMC/SD/SDIO > > Signed-off-by: Chaotian Jing > --- > drivers/mmc/host/Kconfig |8 + > drivers/mmc/host/Makefile |1 + > drivers/mmc/host/mtk-sd.c | 1416 > +

Re: [PATCH 3.14 73/92] dm crypt: fix deadlock when async crypto algorithm returns -EBUSY

2015-05-05 Thread Mike Snitzer
On Tue, May 05 2015 at 2:42am -0400, Milan Broz wrote: > On 05/05/2015 05:22 AM, Mike Snitzer wrote: > > On Mon, May 04 2015 at 5:32pm -0400, > > Rabin Vincent wrote: > > > >> On Sat, May 02, 2015 at 09:03:28PM +0200, Greg Kroah-Hartman wrote: > >>> 3.14-stable review patch. If anyone has an

[PATCH v8 01/23] IB/Verbs: Implement new callback query_protocol()

2015-05-05 Thread Michael Wang
Add new callback query_protocol() and implement for each HW. Mapping List: node-type link-layer transport protocol nes RNICETH IWARP IWARP amso1100RNICETH IWARP IWARP cxgb3

[PATCH v8 06/23] IB/Verbs: Reform IB-core multicast

2015-05-05 Thread Michael Wang
Use raw management helpers to reform IB-core multicast. Signed-off-by: Michael Wang --- drivers/infiniband/core/multicast.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/infiniband/core/multicast.c b/drivers/infiniband/core/multicast.c index fa17b55..b

[PATCH v8 07/23] IB/Verbs: Reform IB-ulp ipoib

2015-05-05 Thread Michael Wang
Use raw management helpers to reform IB-ulp ipoib. Signed-off-by: Michael Wang --- drivers/infiniband/ulp/ipoib/ipoib_main.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/infiniband/ulp/ipoib/ipoib_main.c b/drivers/infiniband/ulp/ipoib/ipoib_main.c

[PATCH v8 17/23] IB/Verbs: Use management helper rdma_cap_ib_cm()

2015-05-05 Thread Michael Wang
Introduce helper rdma_cap_ib_cm() to help us check if the port of an IB device support Infiniband Communication Manager. Signed-off-by: Michael Wang --- drivers/infiniband/core/cm.c | 6 +++--- drivers/infiniband/core/cma.c | 19 +-- drivers/infiniband/core/ucm.c | 2 +- inclu

[PATCH v8 18/23] IB/Verbs: Use management helper rdma_cap_iw_cm()

2015-05-05 Thread Michael Wang
Introduce helper rdma_cap_iw_cm() to help us check if the port of an IB device support IWARP Communication Manager. Signed-off-by: Michael Wang --- drivers/infiniband/core/cma.c | 14 +++--- include/rdma/ib_verbs.h | 15 +++ 2 files changed, 22 insertions(+), 7 deletion

[PATCH v8 16/23] IB/Verbs: Use management helper rdma_cap_ib_smi()

2015-05-05 Thread Michael Wang
Introduce helper rdma_cap_ib_smi() to help us check if the port of an IB device support Infiniband Subnet Management Interface. Signed-off-by: Michael Wang --- drivers/infiniband/core/agent.c | 2 +- drivers/infiniband/core/mad.c | 2 +- include/rdma/ib_verbs.h | 15 +++

[PATCH v8 20/23] IB/Verbs: Use management helper rdma_cap_ib_mcast()

2015-05-05 Thread Michael Wang
Introduce helper rdma_cap_ib_mcast() to help us check if the port of an IB device support Infiniband Multicast. Signed-off-by: Michael Wang --- drivers/infiniband/core/cma.c | 6 +++--- drivers/infiniband/core/multicast.c | 6 +++--- include/rdma/ib_verbs.h | 15 +

[PATCH v8 19/23] IB/Verbs: Use management helper rdma_cap_ib_sa()

2015-05-05 Thread Michael Wang
Introduce helper rdma_cap_ib_sa() to help us check if the port of an IB device support Infiniband Subnet Administration. Signed-off-by: Michael Wang --- drivers/infiniband/core/cma.c | 4 ++-- drivers/infiniband/core/sa_query.c | 10 +- drivers/infiniband/core/ucma.c | 2 +- i

[PATCH v8 23/23] IB/Verbs: Use management helper rdma_cap_eth_ah()

2015-05-05 Thread Michael Wang
Introduce helper rdma_cap_eth_ah() to help us check if the port of an IB device support Ethernet Address Handler. Signed-off-by: Michael Wang --- drivers/infiniband/core/cma.c | 2 +- drivers/infiniband/core/sa_query.c | 2 +- drivers/infiniband/core/verbs.c| 4 ++-- include/rdma/ib_

[PATCH v8 21/23] IB/Verbs: Use management helper rdma_cap_read_multi_sge()

2015-05-05 Thread Michael Wang
Introduce helper rdma_cap_read_multi_sge() to help us check if the port of an IB device support RDMA Read Multiple Scatter-Gather Entries. Signed-off-by: Michael Wang --- include/rdma/ib_verbs.h | 16 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c | 4 ++-- 2 files cha

[PATCH v8 22/23] IB/Verbs: Use management helper rdma_cap_af_ib()

2015-05-05 Thread Michael Wang
Introduce helper rdma_cap_af_ib() to help us check if the port of an IB device support Native Infiniband Address. Signed-off-by: Michael Wang --- drivers/infiniband/core/cma.c | 2 +- include/rdma/ib_verbs.h | 15 +++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --gi

[PATCH v8 12/23] IB/Verbs: Reform mcast related part in IB-core cma

2015-05-05 Thread Michael Wang
Use raw management helpers to reform mcast related part in IB-core cma. Signed-off-by: Michael Wang --- drivers/infiniband/core/cma.c | 56 ++- 1 file changed, 18 insertions(+), 38 deletions(-) diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniba

[PATCH v8 13/23] IB/Verbs: Reform cma_acquire_dev()

2015-05-05 Thread Michael Wang
Reform cma_acquire_dev() with management helpers, introduce cma_validate_port() to make the code more clean. Signed-off-by: Michael Wang --- drivers/infiniband/core/cma.c | 68 +-- 1 file changed, 40 insertions(+), 28 deletions(-) diff --git a/drivers/inf

Re: [PATCH 3.2 042/221] ALSA: hdspm - Constrain periods to 2 on older cards

2015-05-05 Thread Adrian Knoth
On 05/05/15 03:16, Ben Hutchings wrote: > 3.2.69-rc1 review patch. If anyone has any objections, please let me know. I do! :) > > From: Adrian Knoth > > commit f0153c3d948c1764f6c920a0675d86fc1d75813e upstream. > > RME RayDAT and AIO use a fixed buffer size of 16384 samples. With period > s

[PATCH v8 15/23] IB/Verbs: Use management helper rdma_cap_ib_mad()

2015-05-05 Thread Michael Wang
Introduce helper rdma_cap_ib_mad() to help us check if the port of an IB device support Infiniband Management Datagrams. Signed-off-by: Michael Wang --- drivers/infiniband/core/mad.c | 6 +++--- drivers/infiniband/core/user_mad.c | 6 +++--- include/rdma/ib_verbs.h| 15 +++

[PATCH v8 11/23] IB/Verbs: Reform route related part in IB-core cma

2015-05-05 Thread Michael Wang
Use raw management helpers to reform route related part in IB-core cma. Signed-off-by: Michael Wang --- drivers/infiniband/core/cma.c | 31 --- drivers/infiniband/core/ucma.c | 25 ++--- 2 files changed, 14 insertions(+), 42 deletions(-) diff --g

[PATCH v8 03/23] IB/Verbs: Reform IB-core mad/agent/user_mad

2015-05-05 Thread Michael Wang
Use raw management helpers to reform IB-core mad/agent/user_mad. Signed-off-by: Michael Wang --- drivers/infiniband/core/agent.c| 2 +- drivers/infiniband/core/mad.c | 43 +++--- drivers/infiniband/core/user_mad.c | 26 --- 3 files ch

[PATCH v8 14/23] IB/Verbs: Reform rest part in IB-core cma

2015-05-05 Thread Michael Wang
Use raw management helpers to reform rest part in IB-core cma. Signed-off-by: Michael Wang --- drivers/infiniband/core/cma.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c index 3fb3458..d43f

[PATCH v8 05/23] IB/Verbs: Reform IB-core sa_query

2015-05-05 Thread Michael Wang
Use raw management helpers to reform IB-core sa_query. Signed-off-by: Michael Wang --- drivers/infiniband/core/sa_query.c | 30 +- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/drivers/infiniband/core/sa_query.c b/drivers/infiniband/core/sa_query.c

[PATCH v8 10/23] IB/Verbs: Reform cm related part in IB-core cma/ucm

2015-05-05 Thread Michael Wang
Use raw management helpers to reform cm related part in IB-core cma/ucm. Few checks focus on the device cm type rather than the port capability, directly pass port 1 works currently, but can't support mixing cm type device in future. Signed-off-by: Michael Wang --- drivers/infiniband/core/cma.c

[PATCH v8 09/23] IB/Verbs: Reform IB-core verbs

2015-05-05 Thread Michael Wang
Use raw management helpers to reform IB-core verbs Signed-off-by: Michael Wang --- drivers/infiniband/core/verbs.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/infiniband/core/verbs.c b/drivers/infiniband/core/verbs.c index f93eb8d..7dd2f51 100644 --- a/drive

[PATCH v8 08/23] IB/Verbs: Reform IB-ulp xprtrdma

2015-05-05 Thread Michael Wang
Use raw management helpers to reform IB-ulp xprtrdma. Signed-off-by: Michael Wang --- net/sunrpc/xprtrdma/svc_rdma_recvfrom.c | 4 +-- net/sunrpc/xprtrdma/svc_rdma_transport.c | 45 +--- 2 files changed, 20 insertions(+), 29 deletions(-) diff --git a/net/sunrpc/xpr

[PATCH] mfd: arizona: Fix incorrect Makefile conditionals

2015-05-05 Thread Richard Fitzgerald
The use of ifneq against 'n' to conditionally compile codec-specific parts is wrong and was resulting in all the codec tables being built even for deselected codecs. For the WM5102 there is an extra dependency on wm5102_patch() so it is given an alternative empty version when deselected to avoid h

[PATCH v8 04/23] IB/Verbs: Reform IB-core cm

2015-05-05 Thread Michael Wang
Use raw management helpers to reform IB-core cm. Signed-off-by: Michael Wang --- drivers/infiniband/core/cm.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/drivers/infiniband/core/cm.c b/drivers/infiniband/core/cm.c index e28a494..add5e484 100644 --- a

Re: [PATCH v3 3/7] mmc: mediatek: Add PM support for MMC driver

2015-05-05 Thread Ulf Hansson
On 28 April 2015 at 11:48, Chaotian Jing wrote: > Add PM support for Mediatek MMC driver > > Signed-off-by: Chaotian Jing > --- > drivers/mmc/host/mtk-sd.c | 58 > +++ > 1 file changed, 53 insertions(+), 5 deletions(-) > > diff --git a/drivers/mmc/hos

[PATCH 1/1] fcoe: use continue instead of goto+label

2015-05-05 Thread Jiri Slaby
There is a label pointing to the start of a while loop and a goto nested only in the loop. The goto jumps to the label in some cases. Replace the goto and the label by simple continue. Signed-off-by: Jiri Slaby Cc: Robert Love Cc: fcoe-de...@open-fcoe.org --- drivers/scsi/fcoe/fcoe.c | 3 +-- 1

Re: [PATCH 3.2 042/221] ALSA: hdspm - Constrain periods to 2 on older cards

2015-05-05 Thread Ben Hutchings
On Tue, 2015-05-05 at 14:46 +0200, Adrian Knoth wrote: > On 05/05/15 03:16, Ben Hutchings wrote: > > > 3.2.69-rc1 review patch. If anyone has any objections, please let me know. > > I do! :) > > > > > From: Adrian Knoth > > > > commit f0153c3d948c1764f6c920a0675d86fc1d75813e upstream. > > >

[PATCH v8 02/23] IB/Verbs: Implement raw management helpers

2015-05-05 Thread Michael Wang
Add raw helpers: rdma_protocol_ib rdma_protocol_iboe rdma_protocol_iwarp rdma_ib_or_iboe (transition, clean up later) To help us detect which technology the port supported. Signed-off-by: Michael Wang --- include/rdma/ib_verbs.h | 22 ++ 1 file

[PATCH v8 00/23] IB/Verbs: IB Management Helpers

2015-05-05 Thread Michael Wang
Since v7: * Thanks to Doug, Ira, Devesh for the testing :-) * Thanks for the comments from or, Doug, Ira, Jason :-) Please remind me if anything missed :-P * Use rdma_cap_XX() instead of cap_XX() for readability * Remove CC list in git log for maintainability * Use bool as return valu

Re: [PATCH 1/2] timer: Avoid waking up an idle-core by migrate running timer

2015-05-05 Thread Thomas Gleixner
On Sat, 25 Apr 2015, Eric Dumazet wrote: > On Thu, 2015-04-23 at 14:45 +0200, Thomas Gleixner wrote: > > > You definitely have a point from the high throughput networking > > perspective. > > > > Though in a power optimizing scenario with minimal network traffic > > this might be the wrong decisi

Re: question about RCU dynticks_nesting

2015-05-05 Thread Peter Zijlstra
On Tue, May 05, 2015 at 05:34:46AM -0700, Paul E. McKenney wrote: > On Tue, May 05, 2015 at 12:53:46PM +0200, Peter Zijlstra wrote: > > On Mon, May 04, 2015 at 12:39:23PM -0700, Paul E. McKenney wrote: > > > But in non-preemptible RCU, we have PREEMPT=n, so there is no preempt > > > counter in prod

Re: [PATCH v2 0/3] leds: blink resolution improvements

2015-05-05 Thread Stas Sergeev
05.05.2015 11:22, Jacek Anaszewski пишет: On 05/04/2015 07:20 PM, Stas Sergeev wrote: 04.05.2015 18:22, Jacek Anaszewski пишет: On 05/04/2015 02:12 PM, Stas Sergeev wrote: Only under that condition: --- if (led_cdev->blink_delay_on || led_cdev->blink_delay_off) { led_cdev->delayed_set

Re: [PATCH 1/2] x86/quark: Add Quark embedded SRAM support

2015-05-05 Thread Bryan O'Donoghue
On 05/05/15 01:44, Paul Bolle wrote: On Mon, 2015-05-04 at 03:17 +0100, Bryan O'Donoghue wrote: --- a/arch/x86/platform/intel-quark/Makefile +++ b/arch/x86/platform/intel-quark/Makefile obj-$(CONFIG_INTEL_IMR) += imr.o (Your change to drivers/platform/x86/Kconfig now makes it possible tha

Re: [PATCH RFC] Coccinelle: Check for return not matching function signature

2015-05-05 Thread Nicholas Mc Guire
On Tue, 05 May 2015, SF Markus Elfring wrote: > > Check if the signature of a function and the return value type match. > > Is this a task that is usually performed by a compiler? > > > > In many cases this mismatch will have no side-effects > > but in some cases it may lead to hard to locate p

Re: [Query] PCIe power management with designware

2015-05-05 Thread Pratyush Anand
Hi Kishon, Correcting Mohit's ID On Mon, May 4, 2015 at 9:54 PM, Kishon Vijay Abraham I wrote: > > Hi, > > I'm planning to add power management (suspend/resume) support for DRA7xx and > have a query. > > The pci_pm_suspend_noirq callback being a bus pm_ops gets invoked late i.e > after the sus

Re: [PATCH] gma500:Remove functions that are now deprecated and move to the newer functions in drm_dp_helper.c

2015-05-05 Thread Patrik Jakobsson
On Tue, May 5, 2015 at 12:29 AM, Nicholas Krause wrote: > This removes the deprecated functions,i2c_dp_aux_add_bus and > i2c_dp_aux_prepare_bus and the only call in the function, > cdv_intel_dp_i2c_init to i2c_dp_aux_add_bus respectfully. > The call and use of these functions is now replaced along

Re: [PATCH V7 3/6] perf, x86: handle multiple records in PEBS buffer

2015-05-05 Thread Peter Zijlstra
On Mon, Apr 20, 2015 at 04:07:47AM -0400, Kan Liang wrote: > From: Yan, Zheng > Here lists some possible ways you may get a lot of collision. This is the first time the world 'collisions' is used; either define what you mean by it or avoid using it. > - when you count the same thing multipl

<    1   2   3   4   5   6   7   8   9   10   >