Re: [PATCH v5 21/23] powerpc: Simplify test in __dma_sync()

2016-02-04 Thread Christophe Leroy
Le 05/02/2016 08:52, Denis Kirjanov a écrit : On 2/4/16, Christophe Leroy wrote: Le 04/02/2016 12:37, Denis Kirjanov a écrit : On 2/4/16, Christophe Leroy wrote: This simplification helps the compiler. We now have only one test instead of two, so it reduces the number of branches.

Re: [mpt3sas driver 07/10] mpt3sas: Add support for configurable Chain Frame Size

2016-02-04 Thread Sreekanth Reddy
On Thu, Feb 4, 2016 at 8:35 PM, Tomas Henzl wrote: > On 28.1.2016 07:37, Suganath prabu Subaramani wrote: >> From: Suganath prabu Subramani >> >> Added support for configurable Chain Frame Size. Calculate the >> Chain Message Frame size from the IOCMaxChainSegementSize (iocfacts). >> Applicable

Re: [PATCH v5 21/23] powerpc: Simplify test in __dma_sync()

2016-02-04 Thread Denis Kirjanov
On 2/4/16, Christophe Leroy wrote: > > > Le 04/02/2016 12:37, Denis Kirjanov a écrit : >> On 2/4/16, Christophe Leroy wrote: >>> This simplification helps the compiler. We now have only one test >>> instead of two, so it reduces the number of branches. >>> >>> Signed-off-by: Christophe Leroy

[RFC] why the amount of cache from "free -m" and /proc/meminfo are different?

2016-02-04 Thread Xishi Qiu
[root@localhost ~]# free -m totalusedfree shared buff/cache available Mem: 48295 574 41658 86062 46344 Swap: 24191 0 24191 [root@localhost ~]# cat /proc/meminfo MemTotal: 49454896 kB

Re: [PATCH] hid:Add warning message if sysfs group is not created for passed kobject in the function, mt_probe

2016-02-04 Thread Benjamin Tissoires
Hi Nick, On Feb 04 2016 or thereabouts, Nicholas Krause wrote: > This adds a warning message stating that the sysfs group was not > able to be created for the passed hid_device structure pointer > with dev_warn. > > Signed-off-by: Nicholas Krause > --- > drivers/hid/hid-multitouch.c | 2 ++ >

RE: [PATCH] PCI: layerscape: add ls2085a compatible

2016-02-04 Thread Minghuan Lian
The patch is ok to me. Thanks, Minghuan > -Original Message- > From: Bhupesh Sharma > Sent: Friday, February 05, 2016 1:36 PM > To: Shi, Yang ; Bjorn Helgaas ; > Yang-Leo Li ; shawn@linaro.org > Cc: Mingkai Hu ; Minghuan Lian > ; bhelg...@google.com; linux-...@vger.kernel.org; >

Re: [PATCH v2 05/51] mtd: add mtd_ooblayout_xxx() helper functions

2016-02-04 Thread Boris Brezillon
On Thu, 4 Feb 2016 11:06:28 +0100 Boris Brezillon wrote: > In order to make the ecclayout definition completely dynamic we need to > rework the way the OOB layout are defined and iterated. > > Create a few mtd_ooblayout_xxx() helpers to ease OOB bytes manipulation > and hide ecclayout

Re: [PATCH] force inlining of some byteswap operations

2016-02-04 Thread Ingo Molnar
* Denys Vlasenko wrote: > Sometimes gcc mysteriously doesn't inline > very small functions we expect to be inlined. See > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66122 > > With this .config: > http://busybox.net/~vda/kernel_config_OPTIMIZE_INLINING_and_Os, > the following functions

Re: [PATCH] force inlining of unaligned byteswap operations

2016-02-04 Thread Ingo Molnar
* Denys Vlasenko wrote: > Code size decrease after the patch is ~8.5k: > > text data bss dec hex filename > 92197848 20826112 36417536 149441496 8e84bd8 vmlinux > 92189231 20826144 36417536 149432911 8e82a4f vmlinux6_unaligned_be_after Acked-by: Ingo Molnar Thanks,

Re: [PATCH v2 5/10] cpufreq: governor: Rename some data types and variables

2016-02-04 Thread Viresh Kumar
On 05-02-16, 03:17, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The ondemand and conservative governors are represented by > struct common_dbs_data whose name doesn't reflect the purpose it > is used for, so rename it to struct dbs_governor and rename > variables of that type

Re: [PATCH v2 4/10] cpufreq: governor: Put governor structure into common_dbs_data

2016-02-04 Thread Viresh Kumar
On 05-02-16, 03:16, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > For the ondemand and conservative governors (generally, governors > that use the common code in cpufreq_governor.c), there are two static > data structures representing the governor, the struct governor > structure (the

[GIT PULL REQUEST] watchdog - v4.5-rc Fixes

2016-02-04 Thread Wim Van Sebroeck
Hi Linus, Please pull from 'master' branch of git://www.linux-watchdog.org/linux-watchdog.git It will fix several Kconfig dependencies, a compilation warning in pcwd_usb, a failure to abort the sp805 wdt after a ping and the max63xx wdt's MODULE_LICENSE. This will update the following

Hello There

2016-02-04 Thread Ms.Ella Golan
I am Ms.Ella Golan, I am the Executive Vice President Banking Division with FIRST INTERNATIONAL BANK OF ISRAEL LTD (FIBI). I am getting in touch with you regarding an extremely important and urgent matter. If you would oblige me the opportunity, I shall provide you with details upon your

RE: [PATCH] PCI: layerscape: add ls2085a compatible

2016-02-04 Thread Bhupesh Sharma
> From: Shi, Yang > Sent: Friday, February 05, 2016 5:19 AM > > On 2/4/2016 2:37 PM, Bjorn Helgaas wrote: > > On Wed, Jan 27, 2016 at 10:05:40AM -0800, Shi, Yang wrote: > >> Correct FSL folks email address to nxp.com, sorry for the > inconvenience. > > > > Do we need some MAINTAINERS updates in

Re: [PATCH v2 3/10] cpufreq: governor: Avoid passing dbs_data pointers around unnecessarily

2016-02-04 Thread Viresh Kumar
On 05-02-16, 03:15, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Do not pass struct dbs_data pointers to the family of functions > implementing governor operations in cpufreq_governor.c as they can > take that pointer from policy->governor by themselves. > > The

Re: [PATCH] tty: use __GFP_NOWARN for user-controlled kmalloc

2016-02-04 Thread Dmitry Vyukov
On Thu, Feb 4, 2016 at 11:11 PM, David Rientjes wrote: > On Thu, 4 Feb 2016, Dmitry Vyukov wrote: > >> Size of kmalloc() in vc_do_resize() is controlled by user. >> Too large kmalloc() size triggers WARNING message on console. >> >> Use __GFP_NOWARN for this kmalloc() to not scare admins. >> > >

[RFC PATCH] SPI/ACPI: DesignWare: Add ACPI support for Designware SPI driver

2016-02-04 Thread qiujiang
This patch added ACPI support for DesignWare SPI mmio driver. It was based the corresponding DT driver and compatible for this two way. This patch has been tested on Hisilicon D02 board. It relies on the GPIO patchset. Signed-off-by: qiujiang --- drivers/spi/spi-dw-mmio.c | 26

Re: [PATCH v2 2/10] cpufreq: governor: Use common mutex for dbs_data protection

2016-02-04 Thread Viresh Kumar
On 05-02-16, 03:14, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Every governor relying on the common code in cpufreq_governor.c > has to provide its own mutex in struct common_dbs_data. However, > there actually is no need to have a separate mutex per governor > for this purpose,

RE: [PATCH 0/3] module stable fixes.

2016-02-04 Thread 平松雅巳 / HIRAMATU,MASAMI
Hi Rusty, I'm OK for this series of patches, and it seems that the CC list on your mail (on patch mails) is broken. CC: Rusty Russell , Weilong Chen , Masami Hiramatsu , >---> <"PDate:Wed"@ozlabs.org>, <3...@ozlabs.org>, , <2...@ozlabs.org>, <"16:55:26"@ozlabs.org>,

Re: [PATCH 3/3 v3] cpufreq: governor: Replace timers with utilization update callbacks

2016-02-04 Thread Viresh Kumar
Will suck some more blood, sorry about that :) On 05-02-16, 02:28, Rafael J. Wysocki wrote: > The v3 addresses some review comments from Viresh and a couple of issues found > by me. Changes from the previous version: > - Synchronize gov_cancel_work() with the (new) irq_work properly. > - Add a

RE: [PATCH 2/3] module: wrapper for symbol name.

2016-02-04 Thread 平松雅巳 / HIRAMATU,MASAMI
From: Rusty Russell [mailto:ru...@rustcorp.com.au] > >This trivial wrapper adds clarity and makes the following patch >smaller. > >Cc: sta...@kernel.org >Signed-off-by: Rusty Russell Looks good to me. Reviewed-by: Masami Hiramatsu Thanks! >--- > kernel/module.c | 26

RE: [PATCH 3/3] modules: fix longstanding /proc/kallsyms vs module insertion race.

2016-02-04 Thread 平松雅巳 / HIRAMATU,MASAMI
From: Rusty Russell [mailto:ru...@rustcorp.com.au] > >For CONFIG_KALLSYMS, we keep two symbol tables and two string tables. >There's one full copy, marked SHF_ALLOC and laid out at the end of the >module's init section. There's also a cut-down version that only >contains core symbols and strings,

[RFC PATCH] GPIO/ACPI: DesignWare: Add GPIO-signaled ACPI events support for power button

2016-02-04 Thread qiujiang
This patch modifies the DesignWare GPIO controller driver to support the GPIO-signaled ACPI Events. This is used for power button function on ARM server. To make it work, the _AEI and _EVT object must be defined in the corresponding GPIO driver's dsdt table in UEFI. At the same time, ACPI daemon

Re: [PATCH v3 3/3] portman2x4 - use new parport device model

2016-02-04 Thread Sudip Mukherjee
On Thu, Feb 04, 2016 at 05:51:07PM +0100, Takashi Iwai wrote: > On Thu, 04 Feb 2016 17:38:23 +0100, > Sudip Mukherjee wrote: > > > > Modify portman driver to use the new parallel port device model. > > The advantage of using the device model is that the device gets binded > > to the hardware, we

[PATCH v3] arm64: defconfig: Enable samsung MFD and related configs

2016-02-04 Thread Alim Akhtar
Exynos7 based espresso board uses S2MPS15, a multifunction device. This patch enables S2MPS1X regulator, pmic-clk and rtc drivers utilized by the same. Signed-off-by: Alim Akhtar Reviewed-by: Krzysztof Kozlowski --- Changes since v2: * Added Reviewed-by from Krzysztof * rebased on next-20160204

[PATCH] arm64: dts: mt8173: add node for thermal calibration

2016-02-04 Thread Dawei Chien
Add this for supporting thermal calibration by e-fuse data. Signed-off-by: Dawei Chien --- Because MTK thermal/efuse patches hadn't landed on mainline, this patch must base on following patchset: https://lkml.org/lkml/2015/11/17/251 https://lkml.org/lkml/2015/11/19/169

Re: Crashes with 874bbfe600a6 in 3.18.25

2016-02-04 Thread Mike Galbraith
On Wed, 2016-02-03 at 11:24 -0500, Tejun Heo wrote: > On Wed, Feb 03, 2016 at 01:28:56PM +0100, Michal Hocko wrote: > > > The CPU was 168, and that one was offlined in the meantime. So > > > __queue_work fails at: > > > if (!(wq->flags & WQ_UNBOUND)) > > > pwq = per_cpu_ptr(wq->cpu_pwqs,

Re: [PATCH] af_packet: Raw socket destruction warning fix

2016-02-04 Thread Vaneet Narang
Hi, >> >> Issue is coming for 3.10.58. > Sorry for late reply, we were trying to reproduce the issue but its not that frequent. >What driver are you using (is that in-tree)? we are facing issue with wireless driver. Is it possible that wireless driver can cause any issue because rmem

Re: [patch] extcon: use correct size

2016-02-04 Thread Chanwoo Choi
Hi Dan, On 2016년 02월 04일 20:36, Dan Carpenter wrote: > The info->status[] array has 3 elements. We are using size > MAX77843_MUIC_IRQ_NUM (16) instead of MAX77843_MUIC_STATUS_NUM (3) as > intended. > > Fixes: 135d9f7d135a ('extcon: max77843: Clear IRQ bits state before request > IRQ') >

Re: [PATCH 1/2] dt/bindings: Add bindings for the PIC32 SPI peripheral

2016-02-04 Thread Purna Chandra Mandal
On 02/02/2016 04:41 PM, Sergei Shtylyov wrote: > Hello. > On 2/2/2016 1:44 AM, Joshua Henderson wrote: >> From: Purna Chandra Mandal >> Document the devicetree bindings for the SPI peripheral found >> on Microchip PIC32 class devices. >> Signed-off-by: Purna Chandra Mandal >> Signed-off-by:

Re: [PATCH v3 1/4] dt-bindings: power: reset: add document for reboot-mode driver

2016-02-04 Thread John Stultz
On Thu, Feb 4, 2016 at 8:35 PM, Rob Herring wrote: > On Thu, Feb 04, 2016 at 03:46:15PM -0800, John Stultz wrote: >> On Thu, Feb 4, 2016 at 3:08 PM, Rob Herring wrote: >> > On Tue, Feb 02, 2016 at 05:59:11PM +0800, Andy Yan wrote: >> >> +Example: >> >> + reboot-mode { >> >> +

Re: [PATCH] spi: Fix incomplete handling of SPI_MASTER_MUST_RX/_MUST_TX

2016-02-04 Thread Purna Chandra Mandal
Thanks Mark. On 02/02/2016 04:47 AM, Mark Brown wrote: > On Mon, Feb 01, 2016 at 03:39:23PM -0700, Joshua Henderson wrote: >> From: Purna Chandra Mandal >> There is a BUG in the way SPI_MASTER_MUST_RX/TX is implemented which can >> create > Bug is a WORD like any other WORD... ack. >> (1)

Re: [PATCH 0/2] Radix tree retry bug fix & test case

2016-02-04 Thread Konstantin Khlebnikov
On Fri, Feb 5, 2016 at 6:40 AM, Matthew Wilcox wrote: > Konstantin pointed out my braino when using radix_tree_iter_retry(), > and then pointed out a second braino. I think we can fix both brainos > with one simple test (the advantage of having your braino pointed out > to you is that you know

Re: [PATCH v6 1/9] ppc64 (le): prepare for -mprofile-kernel

2016-02-04 Thread Balbir Singh
On Thu, Feb 4, 2016 at 10:02 PM, Petr Mladek wrote: > On Thu 2016-02-04 18:31:40, AKASHI Takahiro wrote: >> Jiri, Torsten >> >> Thank you for your explanation. >> >> On 02/03/2016 08:24 PM, Torsten Duwe wrote: >> >On Wed, Feb 03, 2016 at 09:55:11AM +0100, Jiri Kosina wrote: >> >>On Wed, 3 Feb

[PATCH v5 2/2] regulator: add documentation for ACT8945A's regulator DT bindings

2016-02-04 Thread Wenyou Yang
This patch adds documentation for the DT bindings of the regulator subdevice of ACT8945A MFD. Signed-off-by: Wenyou Yang Acked-by: Rob Herring --- Changes in v5: - due the mfd cell .of_compatible removal, update the compatibe description and example Changes in v4: None Changes in v3: None

Re: [PATCH v3 1/4] dt-bindings: power: reset: add document for reboot-mode driver

2016-02-04 Thread Rob Herring
On Thu, Feb 04, 2016 at 03:46:15PM -0800, John Stultz wrote: > On Thu, Feb 4, 2016 at 3:08 PM, Rob Herring wrote: > > On Tue, Feb 02, 2016 at 05:59:11PM +0800, Andy Yan wrote: > >> add device tree bindings document for reboot-mode driver > >> > >> Signed-off-by: Andy Yan > >> > >> --- > >> > >>

[PATCH V14 2/9] dma: hidma: Add Device Tree binding

2016-02-04 Thread Sinan Kaya
Add documentation for the Qualcomm Technologies HIDMA binding. Signed-off-by: Sinan Kaya Acked-by: Rob Herring --- .../devicetree/bindings/dma/qcom_hidma_mgmt.txt| 89 ++ 1 file changed, 89 insertions(+) create mode 100644

[PATCH V14 4/9] dma: add Qualcomm Technologies HIDMA channel driver

2016-02-04 Thread Sinan Kaya
This patch adds support for hidma engine. The driver consists of two logical blocks. The DMA engine interface and the low-level interface. The hardware only supports memcpy/memset and this driver only support memcpy interface. HW and driver doesn't support slave interface. Signed-off-by: Sinan

[PATCH V14 6/9] dma: qcom_hidma: add debugfs hooks

2016-02-04 Thread Sinan Kaya
Add debugfs hooks for debugging the execution behavior of the DMA channel. The debugfs hooks get initialized by the probe function and uninitialized by the remove function. A stats file is created in debugfs. The stats file will show the information about each HIDMA channel as well as each

[PATCH v5 0/2] regulator: act8945a: add regulator driver for the sub-device of ACT8945A MFD

2016-02-04 Thread Wenyou Yang
The ACT8945A is a Multi Function Device with the following subdevices: - Regulator - Charger This patch set is to add regulator driver for ACT8945A. It is based on the patch set: http://lists.infradead.org/pipermail/linux-arm-kernel/2016-February/405258.html Changes in v5: - remove

[PATCH V14 3/9] dma: add Qualcomm Technologies HIDMA management driver

2016-02-04 Thread Sinan Kaya
The Qualcomm Technologies HIDMA device has been designed to support virtualization technology. The driver has been divided into two to follow the hardware design. 1. HIDMA Management driver 2. HIDMA Channel driver Each HIDMA HW consists of multiple channels. These channels share some set of

[PATCH v5 1/2] regulator: act8945a: add regulator driver for ACT8945A

2016-02-04 Thread Wenyou Yang
This patch adds new regulator driver to support ACT8945A MFD chip's regulators. The ACT8945A has three step-down DC/DC converters and four low-dropout regulators. Signed-off-by: Wenyou Yang --- Changes in v5: - remove the OF table. - due to the mfd cell .of_compatible removal, use the

[PATCH V14 8/9] vfio, platform: add support for ACPI while detecting the reset driver

2016-02-04 Thread Sinan Kaya
The code is using the compatible DT string to associate a reset driver with the actual device itself. The compatible string does not exist on ACPI based systems. HID is the unique identifier for a device driver instead. The change allows a driver to register with DT compatible string or ACPI HID

[PATCH V14 9/9] vfio, platform: add QTI HIDMA reset driver

2016-02-04 Thread Sinan Kaya
In situations where the userspace driver is stopped abnormally and the VFIO platform device is released, the assigned HW device currently is left running. As a consequence the HW device might continue issuing IRQs and performing DMA accesses. This patch is implementing a reset driver for HIDMA

[PATCH V14 7/9] dma: qcom_hidma: add support for object hierarchy

2016-02-04 Thread Sinan Kaya
In order to create a relationship model between the channels and the management object, we are adding support for object hierarchy to the drivers. This patch simplifies the userspace application development. We will not have to traverse different firmware paths based on device tree or ACPI baed

[PATCH V14 5/9] dma: qcom_hidma: implement lower level hardware interface

2016-02-04 Thread Sinan Kaya
This patch implements the hardware hooks for the HIDMA channel driver. The main functions of interest are: - hidma_ll_init - hidma_ll_request - hidma_ll_queue_request - hidma_ll_hw_start OS layer calls the hidma_ll_init function during probe to set up the hardware. At this moment, the number of

[PATCH V14 1/9] dma: qcom_bam_dma: move to qcom directory

2016-02-04 Thread Sinan Kaya
Creating a QCOM directory for all QCOM DMA source files. Signed-off-by: Sinan Kaya Reviewed-by: Andy Gross --- drivers/dma/Kconfig| 11 ++- drivers/dma/Makefile | 2 +- drivers/dma/qcom/Kconfig | 8

[PATCH V14 0/9] dma: add Qualcomm Technologies HIDMA driver

2016-02-04 Thread Sinan Kaya
The Qualcomm Technologies HIDMA device has been designed to support virtualization technology. The driver has been divided into two to follow the hardware design. 1. HIDMA Management driver 2. HIDMA Channel driver Each HIDMA HW consists of multiple channels. These channels share some set of

[PATCH v8 2/2] power: add documentation for ACT8945A's charger DT bindings

2016-02-04 Thread Wenyou Yang
This patch adds documentation for the DT bindings of the charger subdevice of ACT8945A MFD. Signed-off-by: Wenyou Yang Reviewed-by: Krzysztof Kozlowski --- Changes in v8: - due the mfd cell .of_compatible removal, update the compatibe description and example. Changes in v7: None Changes

[PATCH v8 1/2] power: act8945a: add charger driver for ACT8945A

2016-02-04 Thread Wenyou Yang
This patch adds new driver for Active-semi ACT8945A ActivePath charger (part of ACT8945A MFD driver) providing power supply class information to userspace. The driver can be configured through DT (such as, total timer, precondition timer and input over-voltage threshold). Signed-off-by: Wenyou

[PATCH v8 0/2] power: act8945a: add charger driver for the sub-device of ACT8945A MFD

2016-02-04 Thread Wenyou Yang
The ACT8945A is a Multi Function Device with the following subdevices: - Regulator - Charger This patch set is to add regulator driver for ACT8945A. It is based on the patch set: http://lists.infradead.org/pipermail/linux-arm-kernel/2016-February/405258.html Changes in v8: - remove

Re: [PATCH v3 3/3] pci: dra7xx: use pdata callbacks to perform reset

2016-02-04 Thread Kishon Vijay Abraham I
Hi Paul, On Tuesday 02 February 2016 04:10 PM, Kishon Vijay Abraham I wrote: > Hi, > > On Friday 29 January 2016 12:01 AM, Tony Lindgren wrote: >> * Suman Anna [160127 15:17]: >>> On 01/27/2016 12:56 PM, Tony Lindgren wrote: * Suman Anna [160127 10:17]: > On 01/27/2016 11:31 AM, Tony

Re: livepatch/module: remove livepatch module notifier

2016-02-04 Thread Jessica Yu
+++ Petr Mladek [04/02/16 15:39 +0100]: On Mon 2016-02-01 20:17:36, Jessica Yu wrote: [ snipped since email is getting long ] diff --git a/kernel/module.c b/kernel/module.c index b05d466..71c77ed 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -53,6 +53,7 @@ #include #include

linux-next: Tree for Feb 5

2016-02-04 Thread Stephen Rothwell
Hi all, Changes since 20160204: The sunxi tree gained a build failure so I used the version from next-20160204. The gpio tree still had its build failure so I used the version from next-20160128. The aio tree still had a build failure so I used the version from next-20160111. Non-merge

Re: [PATCH V2 0/7] cpufreq: governors: Fix ABBA lockups

2016-02-04 Thread Rafael J. Wysocki
On Thursday, February 04, 2016 07:18:32 PM Rafael J. Wysocki wrote: > On Thu, Feb 4, 2016 at 6:44 PM, Saravana Kannan > wrote: > > On 02/04/2016 09:43 AM, Saravana Kannan wrote: > >> > >> On 02/04/2016 03:09 AM, Viresh Kumar wrote: > >>> > >>> On 04-02-16, 00:50, Rafael J. Wysocki wrote: >

[PATCH] Staging:iio:Remove exceptional & on function name

2016-02-04 Thread Bhumika Goyal
In this file,function names are otherwise used as pointers without &. Found using coccinelle. // @r@ identifier f; @@ f(...) { ... } @@ identifier r.f; @@ - + f // Signed-off-by: Bhumika Goyal --- drivers/staging/iio/impedance-analyzer/ad5933.c | 8 1 file changed, 4

[PATCH] watchdog: w83627hf: Added NCT6102D support.

2016-02-04 Thread Rob Kramer
As used in (and tested on) the ASRock IMB-150 board. Implementation is identical to other NCT chips, just with different registers. Signed-off-by: Rob Kramer --- drivers/watchdog/Kconfig| 1 + drivers/watchdog/w83627hf_wdt.c | 22 +++--- 2 files changed, 20

[PATCH 2/2] radix-tree: fix oops after radix_tree_iter_retry

2016-02-04 Thread Matthew Wilcox
After calling radix_tree_iter_retry(), 'slot' will be set to NULL. This can cause radix_tree_next_slot() to dereference the NULL pointer. Check for a NULL pointer on entry to radix_tree_next_slot(). Reported-by: Konstantin Khlebnikov Signed-off-by: Matthew Wilcox --- include/linux/radix-tree.h

[PATCH 0/2] Radix tree retry bug fix & test case

2016-02-04 Thread Matthew Wilcox
Konstantin pointed out my braino when using radix_tree_iter_retry(), and then pointed out a second braino. I think we can fix both brainos with one simple test (the advantage of having your braino pointed out to you is that you know what you were expecting to happen, so you can sometimes propose

[PATCH 1/2] radix-tree tests: Add regression3 test

2016-02-04 Thread Matthew Wilcox
From: Konstantin Khlebnikov After calling radix_tree_iter_retry(), 'slot' will be set to NULL. This can cause radix_tree_next_slot() to dereference the NULL pointer. Add Konstantin Khlebnikov's test to the regression framework. Reported-by: Konstantin Khlebnikov Signed-off-by: Matthew Wilcox

[PATCH v10 2/2] mfd: add documentation for ACT8945A DT bindings

2016-02-04 Thread Wenyou Yang
The Active-semi ACT8945A PMIC is a Multi-Function Device, it has two subdevices: - Regulator - Charger This patch adds documentation for ACT8945A DT bindings. Signed-off-by: Wenyou Yang Acked-by: Rob Herring Acked-by: Lee Jones --- Changes in v10: - update the example, due to the

[PATCH v10 0/2] mfd: act8945a: add Active-semi ACT8945A PMIC MFD driver

2016-02-04 Thread Wenyou Yang
This patch set adds support for the Active-semi ACT8945A PMIC MFD driver. It is a Multi Function Device with the following subdevices: - Regulator - Charger It is interfaced to the host controller using I2C interface, ACT8945A is a child device of the I2C. Changes in v10: - remove the mfd

[PATCH v10 1/2] mfd: act8945a: add Active-semi ACT8945A PMIC MFD driver

2016-02-04 Thread Wenyou Yang
This patch adds support for the Active-semi ACT8945A PMIC. It is a Multi Function Device with the following subdevices: - Regulator - Charger It is interfaced to the host controller using I2C interface, ACT8945A is a child device of the I2C. Signed-off-by: Wenyou Yang Reviewed-by: Krzysztof

Re: [PATCH] x86, pci: Add quirk for unsizeable Broadwell EP bar

2016-02-04 Thread Andi Kleen
> > But would actually anything use it? > > You mean, would anything actually use the lspci output? I don't know, > but why would we want it to print garbage? In he kernel. I don't think lspci is that interesting. > > And the kernel certainly uses the struct resource. Setting >

Re: [PATCH 2/11] cpufreq: governor: Use common mutex for dbs_data protection

2016-02-04 Thread Rafael J. Wysocki
On Fri, Feb 5, 2016 at 4:24 AM, Viresh Kumar wrote: > On 05-02-16, 04:17, Rafael J. Wysocki wrote: >> And don't we switch governors under policy->rwsem anyway? > > So ? That is blocking only a single policy only, but with the new > change, we will block all policies from doing that concurrently.

Re: [PATCH 2/11] cpufreq: governor: Use common mutex for dbs_data protection

2016-02-04 Thread Viresh Kumar
On 05-02-16, 04:17, Rafael J. Wysocki wrote: > And don't we switch governors under policy->rwsem anyway? So ? That is blocking only a single policy only, but with the new change, we will block all policies from doing that concurrently. -- viresh

Re: [PATCH 1/3] hisi_sas: use Unified Device Properties API

2016-02-04 Thread Martin K. Petersen
> "John" == John Garry writes: John> The hisi_sas driver is required to support both device tree and John> ACPI. The scanning of the device properties now uses the Unified John> Device Properties API, which serves both OF and ACPI. Series applied to 4.6/scsi-queue. -- Martin K. Petersen

Re: [PATCH 2/11] cpufreq: governor: Use common mutex for dbs_data protection

2016-02-04 Thread Viresh Kumar
On 05-02-16, 04:06, Rafael J. Wysocki wrote: > And why is this a big problem, actually? Why do we want the switching > of governors to be that efficient? I am not saying its a big problem, just that its kind of a big lock, which could have been finer. -- viresh

Re: [PATCH 2/11] cpufreq: governor: Use common mutex for dbs_data protection

2016-02-04 Thread Rafael J. Wysocki
On Fri, Feb 5, 2016 at 4:15 AM, Rafael J. Wysocki wrote: > On Fri, Feb 5, 2016 at 4:06 AM, Rafael J. Wysocki wrote: >> On Fri, Feb 5, 2016 at 3:59 AM, Viresh Kumar wrote: >>> On 04-02-16, 17:46, Rafael J. Wysocki wrote: On Thu, Feb 4, 2016 at 6:09 AM, Viresh Kumar wrote: > On

Re: [PATCH V2 2/6] stm class: adds a loop to extract the first valid STM device name

2016-02-04 Thread Chunyan Zhang
On Fri, Feb 5, 2016 at 1:30 AM, Alexander Shishkin wrote: > Chunyan Zhang writes: > > I few comments below: > >> The node name of STM master management policy is a concatenation of an >> STM device name to which this policy applies and following an arbitrary >> string, these two strings are

Re: [PATCH 2/11] cpufreq: governor: Use common mutex for dbs_data protection

2016-02-04 Thread Rafael J. Wysocki
On Fri, Feb 5, 2016 at 4:06 AM, Rafael J. Wysocki wrote: > On Fri, Feb 5, 2016 at 3:59 AM, Viresh Kumar wrote: >> On 04-02-16, 17:46, Rafael J. Wysocki wrote: >>> On Thu, Feb 4, 2016 at 6:09 AM, Viresh Kumar >>> wrote: >>> > On 04-02-16, 00:16, Rafael J. Wysocki wrote: >>> >> From: Rafael J.

[PATCH v4 04/17] arm/xen: Use xen_xlate_map_ballooned_pages to setup grant table

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao Use xen_xlate_map_ballooned_pages to setup grant table. Then it doesn't rely on DT or ACPI to pass the start address and size of grant table. Signed-off-by: Shannon Zhao Acked-by: Stefano Stabellini --- arch/arm/xen/enlighten.c | 13 - 1 file changed, 4

[PATCH v4 05/17] xen: memory : Add new XENMAPSPACE type XENMAPSPACE_dev_mmio

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao Add a new type of Xen map space for Dom0 to map device's MMIO region. Signed-off-by: Shannon Zhao --- include/xen/interface/memory.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/xen/interface/memory.h b/include/xen/interface/memory.h index 2ecfe4f..9aa8988

[PATCH v4 06/17] Xen: ARM: Add support for mapping platform device mmio

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao Add a bus_notifier for platform bus device in order to map the device mmio regions when DOM0 booting with ACPI. Signed-off-by: Shannon Zhao Acked-by: Stefano Stabellini --- drivers/xen/Makefile | 1 + drivers/xen/arm-device.c | 141

[PATCH v4 03/17] Xen: xlate: Use page_to_xen_pfn instead of page_to_pfn

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao Make xen_xlate_map_ballooned_pages work with 64K pages. In that case Kernel pages are 64K in size but Xen pages remain 4K in size. Xen pfns refer to 4K pages. Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini --- drivers/xen/xlate_mmu.c | 26

[PATCH v4 07/17] Xen: ARM: Add support for mapping AMBA device mmio

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao Add a bus_notifier for AMBA bus device in order to map the device mmio regions when DOM0 booting with ACPI. Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini --- drivers/xen/arm-device.c | 43 +++ 1 file changed, 43

[PATCH v4 00/17] Add ACPI support for Xen Dom0 on ARM64

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao This patch set adds ACPI support for Xen Dom0 on ARM64. The relevant Xen ACPI on ARM64 design document could be found from [1]. This patch set adds a new FDT node "uefi" under /hypervisor to pass UEFI information. Introduce a bus notifier of AMBA and Platform bus to map the

Re: [PATCH v4 2/2] pci, pci-thunder-pem: Add PCIe host driver for ThunderX processors.

2016-02-04 Thread Bjorn Helgaas
On Thu, Feb 04, 2016 at 04:28:29PM -0800, David Daney wrote: > On 02/04/2016 04:04 PM, Bjorn Helgaas wrote: > >On Tue, Jan 26, 2016 at 01:46:21PM -0800, David Daney wrote: > >>From: David Daney > >> > >>Some Cavium ThunderX processors require quirky access methods for the > >>config space of the

[PATCH v4 01/17] Xen: ACPI: Hide UART used by Xen

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao ACPI 6.0 introduces a new table STAO to list the devices which are used by Xen and can't be used by Dom0. On Xen virtual platforms, the physical UART is used by Xen. So here it hides UART from Dom0. Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini --- CC: "Rafael

Re: [PATCH 3/11] cpufreq: governor: Use common global_dbs_data pointer

2016-02-04 Thread Rafael J. Wysocki
On Fri, Feb 5, 2016 at 4:02 AM, Viresh Kumar wrote: > On 04-02-16, 17:52, Rafael J. Wysocki wrote: >> On Thu, Feb 4, 2016 at 6:36 AM, Viresh Kumar wrote: > >> > Consider a two policy system, who is stopping us from setting ondemand >> > for one of them and conservative for the other one ? And

[PATCH v4 11/17] ARM: XEN: Move xen_early_init() before efi_init()

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao Move xen_early_init() before efi_init(), then when calling efi_init() could initialize Xen specific UEFI. Check if it runs on Xen hypervisor through the flat dts. Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini --- arch/arm/xen/enlighten.c | 56

[PATCH v4 09/17] xen/hvm/params: Add a new delivery type for event-channel in HVM_PARAM_CALLBACK_IRQ

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao Add a new delivery type: val[63:56] == 3: val[15:8] is flag: val[7:0] is a PPI. To the flag, bit 0 stands the interrupt mode is edge(1) or level(0) and bit 1 stands the interrupt polarity is active low(1) or high(0). Signed-off-by: Shannon Zhao Acked-by: Stefano Stabellini

[PATCH v4 10/17] arm/xen: Get event-channel irq through HVM_PARAM when booting with ACPI

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao When booting with ACPI, it could get the event-channel irq through HVM_PARAM_CALLBACK_IRQ. Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini --- arch/arm/xen/enlighten.c | 36 +++- 1 file changed, 35 insertions(+), 1 deletion(-)

[PATCH v4 13/17] ARM: Xen: Document UEFI support on Xen ARM virtual platforms

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao Add a "uefi" node under /hypervisor node in FDT, then Linux kernel could scan this to get the UEFI information. Signed-off-by: Shannon Zhao Acked-by: Rob Herring --- CC: Rob Herring --- Documentation/devicetree/bindings/arm/xen.txt | 33 +++ 1 file

[PATCH v4 12/17] ARM64: ACPI: Check if it runs on Xen to enable or disable ACPI

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao When it's a Xen domain0 booting with ACPI, it will supply a /chosen and a /hypervisor node in DT. So check if it needs to enable ACPI. Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini Acked-by: Hanjun Guo --- CC: Hanjun Guo --- arch/arm64/kernel/acpi.c | 12

[PATCH v4 15/17] ARM64: XEN: Add a function to initialize Xen specific UEFI runtime services

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao When running on Xen hypervisor, runtime services are supported through hypercall. Add a Xen specific function to initialize runtime services. Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini --- arch/arm/include/asm/xen/xen-ops.h | 6 ++

[PATCH v4 16/17] FDT: Add a helper to get specified name subnode

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao Sometimes it needs to check if there is a node in FDT by full path. Introduce this helper to get the specified name subnode if it exists. Signed-off-by: Shannon Zhao --- CC: Rob Herring --- drivers/of/fdt.c | 25 + include/linux/of_fdt.h | 2

[PATCH v4 14/17] XEN: EFI: Move x86 specific codes to architecture directory

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao Move x86 specific codes to architecture directory and export those EFI runtime service functions. This will be useful for initializing runtime service on ARM later. Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini --- arch/x86/xen/efi.c| 112

[PATCH v4 17/17] Xen: EFI: Parse DT parameters for Xen specific UEFI

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao Add a new function to parse DT parameters for Xen specific UEFI just like the way for normal UEFI. Then it could reuse the existing codes. If Xen supports EFI, initialize runtime services. Signed-off-by: Shannon Zhao Reviewed-by: Matt Fleming Reviewed-by: Stefano

[PATCH v4 02/17] xen/grant-table: Move xlated_setup_gnttab_pages to common place

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao Move xlated_setup_gnttab_pages to common place, so it can be reused by ARM to setup grant table. Rename it to xen_xlate_map_ballooned_pages. Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini --- arch/x86/xen/grant-table.c | 57

[PATCH v4 08/17] Xen: public/hvm: sync changes of HVM_PARAM_CALLBACK_VIA ABI from Xen

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao Sync the changes of HVM_PARAM_CALLBACK_VIA ABI introduced by Xen commit (public/hvm: export the HVM_PARAM_CALLBACK_VIA ABI in the API). Signed-off-by: Shannon Zhao Acked-by: Stefano Stabellini --- include/xen/interface/hvm/params.h | 27 +-- 1 file

Re: [PATCH 2/11] cpufreq: governor: Use common mutex for dbs_data protection

2016-02-04 Thread Rafael J. Wysocki
On Fri, Feb 5, 2016 at 3:59 AM, Viresh Kumar wrote: > On 04-02-16, 17:46, Rafael J. Wysocki wrote: >> On Thu, Feb 4, 2016 at 6:09 AM, Viresh Kumar wrote: >> > On 04-02-16, 00:16, Rafael J. Wysocki wrote: >> >> From: Rafael J. Wysocki >> >> >> >> Every governor relying on the common code in

Re: [PATCH 3/11] cpufreq: governor: Use common global_dbs_data pointer

2016-02-04 Thread Viresh Kumar
On 04-02-16, 17:52, Rafael J. Wysocki wrote: > On Thu, Feb 4, 2016 at 6:36 AM, Viresh Kumar wrote: > > Consider a two policy system, who is stopping us from setting ondemand > > for one of them and conservative for the other one ? And so, we will > > have two gdbs_data .. > > I don't really

Re: [PATCH 2/11] cpufreq: governor: Use common mutex for dbs_data protection

2016-02-04 Thread Viresh Kumar
On 04-02-16, 17:46, Rafael J. Wysocki wrote: > On Thu, Feb 4, 2016 at 6:09 AM, Viresh Kumar wrote: > > On 04-02-16, 00:16, Rafael J. Wysocki wrote: > >> From: Rafael J. Wysocki > >> > >> Every governor relying on the common code in cpufreq_governor.c > >> has to provide its own mutex in struct

RE: [BUG] ODEBUG: assert_init not available (active state 0)

2016-02-04 Thread Zheng, Lv
Hi, The below change is spec compliant. I think you should first test again after the RefOrName stuffs reverted. Then, if you still can see the issues, the story is: === We are enabling correct initialization order and table parsing facilities. These patches are part of them. === So you could

Re: [PATCH V2 0/7] cpufreq: governors: Fix ABBA lockups

2016-02-04 Thread Viresh Kumar
On 05-02-16, 02:20, Shilpasri G Bhat wrote: > I could see the previous lockdep warnings on pm/next and on top of patch[4]. > On Patch[5-7] I see the below lockdep trace on running './runme' on a Power8 > box. > [ 710.336130] Chain exists of: > s_active#91 --> _data->mutex -->

Re: [PATCH V2 1/7] cpufreq: governor: Treat min_sampling_rate as a governor-specific tunable

2016-02-04 Thread Viresh Kumar
On 05-02-16, 03:31, Rafael J. Wysocki wrote: > I'm having some second thoughts about the utility of this patch to be honest. > > I actually would like to move some tunables in the opposite direction. That > is, > from struct od_dbs_tuners and struct cs_dbs_tuners to struct dbs_data. The >

Re: [PATCH] usb: host: xhci: Replace bus lock with host controller lock

2016-02-04 Thread Alan Stern
On Thu, 4 Feb 2016, Chris Bainbridge wrote: > On Thu, Feb 04, 2016 at 04:00:51PM -0500, Alan Stern wrote: > > On Thu, 4 Feb 2016, Chris Bainbridge wrote: > > > > > The XHCI controller presents two USB buses to the system - one for USB 2 > > > and one for USB 3. When only one bus is locked there

[RESEND PATCH v8 3/6] ARM: config: hisi: enable CONFIG_RESET_CONTROLLER

2016-02-04 Thread Jiancheng Xue
enable CONFIG_RESET_CONTROLLER in hisi_defconfig Signed-off-by: Jiancheng Xue --- arch/arm/configs/hisi_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/hisi_defconfig b/arch/arm/configs/hisi_defconfig index b2e340b..ba62c07 100644 ---

[RESEND PATCH v8 4/6] ARM: debug: add hi3519 debug uart

2016-02-04 Thread Jiancheng Xue
add hi3519 debug uart Signed-off-by: Jiancheng Xue --- arch/arm/Kconfig.debug | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index c6b6175..edd3fbe 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug @@ -260,6 +260,14

  1   2   3   4   5   6   7   8   9   10   >