[PATCH 10/18] tty: serial: fsl_lpuart: support suspend/resume

2016-03-09 Thread Stefan Agner
In order to allow wake support in STOP sleep mode, clocks are needed. Use imx_clk_gate2_cgr to disable automatic clock gating in low power mode STOP. This allows to enable wake by UART using: echo enabled > /sys/class/tty/ttyLP0/power/wakeup However, if wake is not enabled, the driver should

Re: [PATCH v7 06/17] scsi: ufs: separate device and host quirks

2016-03-09 Thread Martin K. Petersen
> "Yaniv" == Yaniv Gardi writes: Yaniv> Currently we use the host quirks mechanism in order to handle Yaniv> both device and host controller quirks. In order to support Yaniv> various of UFS devices we should separate handling the device Yaniv> quirks from the host controller's. This patch

[PATCH 17/18] Documentation: dt: add Vybrid DDR memory controller bindings

2016-03-09 Thread Stefan Agner
Add device-tree bindings of Vybrids LPDDR2/DDR3 SDRAM Memory Controller. Access to the device is required to put the memory into self-refresh mode. Signed-off-by: Stefan Agner --- .../bindings/arm/freescale/fsl,vf610-ddrmc.txt | 23 ++ 1 file changed, 23

[PATCH 12/18] gpio: vf610: add system PM suspend/resume

2016-03-09 Thread Stefan Agner
Store the state of the GPIO module (which contains the GPIO output state) in memory during suspend. The driver already maintains an interrupt configuration in memory, hence we can use this configuration to restore the port control register (PCR). Signed-off-by: Stefan Agner ---

[PATCH 17/18] Documentation: dt: add Vybrid DDR memory controller bindings

2016-03-09 Thread Stefan Agner
Add device-tree bindings of Vybrids LPDDR2/DDR3 SDRAM Memory Controller. Access to the device is required to put the memory into self-refresh mode. Signed-off-by: Stefan Agner --- .../bindings/arm/freescale/fsl,vf610-ddrmc.txt | 23 ++ 1 file changed, 23 insertions(+)

[PATCH 12/18] gpio: vf610: add system PM suspend/resume

2016-03-09 Thread Stefan Agner
Store the state of the GPIO module (which contains the GPIO output state) in memory during suspend. The driver already maintains an interrupt configuration in memory, hence we can use this configuration to restore the port control register (PCR). Signed-off-by: Stefan Agner ---

[PATCH 07/18] ARM: imx: clk-vf610: leave DDR clock on

2016-03-09 Thread Stefan Agner
To use STOP mode without putting DDR3 into self-refresh mode, we need to keep the DDR clock enabled. Use the new gate configuration with a value of 2 to make sure that the clock is enabled in RUN, WAIT and STOP mode. Signed-off-by: Stefan Agner --- drivers/clk/imx/clk-vf610.c

[PATCH 07/18] ARM: imx: clk-vf610: leave DDR clock on

2016-03-09 Thread Stefan Agner
To use STOP mode without putting DDR3 into self-refresh mode, we need to keep the DDR clock enabled. Use the new gate configuration with a value of 2 to make sure that the clock is enabled in RUN, WAIT and STOP mode. Signed-off-by: Stefan Agner --- drivers/clk/imx/clk-vf610.c | 3

[PATCH 15/18] ARM: vf610: PM: initial suspend/resume support

2016-03-09 Thread Stefan Agner
Add system suspend and resume support for Vybrid SoC. The standby sleep state puts the SoC in STOP mode. The SoC can be woken through an interrupt from GPC (Global Power Controller). The GPC can use any interrupt as wake-up source. To save power the main PLL1 is bypassed and uses the 24MHz on-chip

[PATCH 16/18] ARM: vf610: PM: enable Suspend-to-RAM only if hardware fixes are in place

2016-03-09 Thread Stefan Agner
To use self-refresh mode for DDR3 SDRAM memory in LPSTOPx mode, the hardware need to have pull-ups/downs populated on RESET/CKE line of the DDR memory. Read the device tree property which indicates whether a given board has such resistors populated. Signed-off-by: Stefan Agner

[PATCH 11/18] pinctrl: pinctrl-imx: implement suspend/resume

2016-03-09 Thread Stefan Agner
In some SoC's using the IMX pin controller, the IP looses its state when entering lowest power modes. Enhance the driver with suspend/ resume functions restoring the pin states. Signed-off-by: Stefan Agner --- drivers/pinctrl/freescale/pinctrl-imx.c | 63

[PATCH 18/18] ARM: vf610: PM: enable SNVS access

2016-03-09 Thread Stefan Agner
Restore access to SNVS which seems to be done by the boot ROM on normal boot. This is required for RTC wakeup not ending up in a interrupt storm, since the SNVS RTC driver can not acknowledge the wakeup alarm without write access. Signed-off-by: Stefan Agner ---

[PATCH 14/18] gpio: vf610: add support for WKPU unit

2016-03-09 Thread Stefan Agner
WKPU unit support within the VF610 GPIO driver. The WKPU unit allows some GPIO to be the wakeup source from lowest power modes LPSTOPx. The relationship between the GPIO banks and the WKPU GPIO numbering can be derived from the device tree property fsl,gpio-wakeup. Signed-off-by: Stefan Agner

[PATCH 18/18] ARM: vf610: PM: enable SNVS access

2016-03-09 Thread Stefan Agner
Restore access to SNVS which seems to be done by the boot ROM on normal boot. This is required for RTC wakeup not ending up in a interrupt storm, since the SNVS RTC driver can not acknowledge the wakeup alarm without write access. Signed-off-by: Stefan Agner ---

[PATCH 14/18] gpio: vf610: add support for WKPU unit

2016-03-09 Thread Stefan Agner
WKPU unit support within the VF610 GPIO driver. The WKPU unit allows some GPIO to be the wakeup source from lowest power modes LPSTOPx. The relationship between the GPIO banks and the WKPU GPIO numbering can be derived from the device tree property fsl,gpio-wakeup. Signed-off-by: Stefan Agner

[PATCH 15/18] ARM: vf610: PM: initial suspend/resume support

2016-03-09 Thread Stefan Agner
Add system suspend and resume support for Vybrid SoC. The standby sleep state puts the SoC in STOP mode. The SoC can be woken through an interrupt from GPC (Global Power Controller). The GPC can use any interrupt as wake-up source. To save power the main PLL1 is bypassed and uses the 24MHz on-chip

[PATCH 16/18] ARM: vf610: PM: enable Suspend-to-RAM only if hardware fixes are in place

2016-03-09 Thread Stefan Agner
To use self-refresh mode for DDR3 SDRAM memory in LPSTOPx mode, the hardware need to have pull-ups/downs populated on RESET/CKE line of the DDR memory. Read the device tree property which indicates whether a given board has such resistors populated. Signed-off-by: Stefan Agner ---

[PATCH 11/18] pinctrl: pinctrl-imx: implement suspend/resume

2016-03-09 Thread Stefan Agner
In some SoC's using the IMX pin controller, the IP looses its state when entering lowest power modes. Enhance the driver with suspend/ resume functions restoring the pin states. Signed-off-by: Stefan Agner --- drivers/pinctrl/freescale/pinctrl-imx.c | 63 +++

Re: [PATCH 02/13] hwmon: convert ntc_thermistor to use devm_thermal_zone_of_sensor_register

2016-03-09 Thread kbuild test robot
Hi Eduardo, [auto build test ERROR on soc-thermal/next] [also build test ERROR on v4.5-rc7 next-20160309] [cannot apply to thermal/next] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Eduardo

Re: [PATCH 02/13] hwmon: convert ntc_thermistor to use devm_thermal_zone_of_sensor_register

2016-03-09 Thread kbuild test robot
Hi Eduardo, [auto build test ERROR on soc-thermal/next] [also build test ERROR on v4.5-rc7 next-20160309] [cannot apply to thermal/next] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Eduardo

[PATCH 01/18] irqchip: vf610-gpc: add Vybrid GPC IRQ controller

2016-03-09 Thread Stefan Agner
This patch introduces a driver for Vybrids GPC (Global Power Controller). Vybrids GPC IP is simpler than the one found in i.MX 6: There is no power gating control (GPC) and the GPC INTC does not need to clear IRQ masks for an interrupt to get routed to the GIC (the mask only applys for wake-up

[PATCH 01/18] irqchip: vf610-gpc: add Vybrid GPC IRQ controller

2016-03-09 Thread Stefan Agner
This patch introduces a driver for Vybrids GPC (Global Power Controller). Vybrids GPC IP is simpler than the one found in i.MX 6: There is no power gating control (GPC) and the GPC INTC does not need to clear IRQ masks for an interrupt to get routed to the GIC (the mask only applys for wake-up

RE: [PATCH][RFC v3] ACPI / PM: Fix poweroff issue on HW-full platforms without _S5

2016-03-09 Thread Chen, Yu C
> -Original Message- > From: Rafael J. Wysocki [mailto:r...@rjwysocki.net] > Sent: Wednesday, March 09, 2016 6:57 AM > To: Chen, Yu C > Cc: Rafael J. Wysocki; ACPI Devel Maling List; x...@kernel.org; linux- > e...@vger.kernel.org; Linux Kernel Mailing List; linux...@vger.kernel.org; > Len

[PATCH 02/18] ARM: dts: vf610: add GPC as new interrupt parent

2016-03-09 Thread Stefan Agner
Signed-off-by: Stefan Agner --- arch/arm/boot/dts/vfxxx.dtsi | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi index 5e49fbd..909988d 100644 --- a/arch/arm/boot/dts/vfxxx.dtsi +++

RE: [PATCH][RFC v3] ACPI / PM: Fix poweroff issue on HW-full platforms without _S5

2016-03-09 Thread Chen, Yu C
> -Original Message- > From: Rafael J. Wysocki [mailto:r...@rjwysocki.net] > Sent: Wednesday, March 09, 2016 6:57 AM > To: Chen, Yu C > Cc: Rafael J. Wysocki; ACPI Devel Maling List; x...@kernel.org; linux- > e...@vger.kernel.org; Linux Kernel Mailing List; linux...@vger.kernel.org; > Len

[PATCH 02/18] ARM: dts: vf610: add GPC as new interrupt parent

2016-03-09 Thread Stefan Agner
Signed-off-by: Stefan Agner --- arch/arm/boot/dts/vfxxx.dtsi | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi index 5e49fbd..909988d 100644 --- a/arch/arm/boot/dts/vfxxx.dtsi +++

[PATCH 00/18] ARM: vf610: Suspend/resume with self-refresh mode

2016-03-09 Thread Stefan Agner
This is a reworked and extended respin of an older patchset posted back in 2014: http://lkml.iu.edu/hypermail/linux/kernel/1409.2/03734.html This implementation supports Vybrids STOP (standby) and LPSTOP2 mode (mem). Only the latter puts the memory in self-refresh mode and the SoC in a deep sleep

[PATCH 00/18] ARM: vf610: Suspend/resume with self-refresh mode

2016-03-09 Thread Stefan Agner
This is a reworked and extended respin of an older patchset posted back in 2014: http://lkml.iu.edu/hypermail/linux/kernel/1409.2/03734.html This implementation supports Vybrids STOP (standby) and LPSTOP2 mode (mem). Only the latter puts the memory in self-refresh mode and the SoC in a deep sleep

[PATCH] media: au0828 disable tuner to demod link in au0828_media_device_register()

2016-03-09 Thread Shuah Khan
Disable tuner to demod link in au0828_media_device_register(). This step should be done after dvb graph is created. Signed-off-by: Shuah Khan --- drivers/media/usb/au0828/au0828-core.c | 26 ++ drivers/media/usb/au0828/au0828-video.c | 20

[PATCH] media: au0828 disable tuner to demod link in au0828_media_device_register()

2016-03-09 Thread Shuah Khan
Disable tuner to demod link in au0828_media_device_register(). This step should be done after dvb graph is created. Signed-off-by: Shuah Khan --- drivers/media/usb/au0828/au0828-core.c | 26 ++ drivers/media/usb/au0828/au0828-video.c | 20 +--- 2 files

Re: [PATCH v10 1/3] cpufreq: Add mechanism for registering utilization update callbacks

2016-03-09 Thread Vincent Guittot
On 9 March 2016 at 19:35, Peter Zijlstra wrote: > On Mon, Feb 15, 2016 at 10:47:22PM +0100, Rafael J. Wysocki wrote: >> From: Rafael J. Wysocki >> >> Introduce a mechanism by which parts of the cpufreq subsystem >> ("setpolicy" drivers or the

Re: [PATCH v10 1/3] cpufreq: Add mechanism for registering utilization update callbacks

2016-03-09 Thread Vincent Guittot
On 9 March 2016 at 19:35, Peter Zijlstra wrote: > On Mon, Feb 15, 2016 at 10:47:22PM +0100, Rafael J. Wysocki wrote: >> From: Rafael J. Wysocki >> >> Introduce a mechanism by which parts of the cpufreq subsystem >> ("setpolicy" drivers or the core) can register callbacks to be >> executed from

[RESEND PATCH v3] staging/android/ion : fix a race condition in the ion driver

2016-03-09 Thread EunTaik Lee
There is a use-after-free problem in the ion driver. This is caused by a race condition in the ion_ioctl() function. A handle has ref count of 1 and two tasks on different cpus calls ION_IOC_FREE simultaneously. cpu 0 cpu 1

[RESEND PATCH v3] staging/android/ion : fix a race condition in the ion driver

2016-03-09 Thread EunTaik Lee
There is a use-after-free problem in the ion driver. This is caused by a race condition in the ion_ioctl() function. A handle has ref count of 1 and two tasks on different cpus calls ION_IOC_FREE simultaneously. cpu 0 cpu 1

Re: [PATCH] f2fs: support access control via key management

2016-03-09 Thread kbuild test robot
Hi Jaegeuk, [auto build test ERROR on f2fs/dev] [also build test ERROR on next-20160309] [cannot apply to v4.5-rc7] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Jaegeuk-Kim/f2fs-support

Re: [PATCH] f2fs: support access control via key management

2016-03-09 Thread kbuild test robot
Hi Jaegeuk, [auto build test ERROR on f2fs/dev] [also build test ERROR on next-20160309] [cannot apply to v4.5-rc7] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Jaegeuk-Kim/f2fs-support

Re: [PATCH 0/5] Add Korean translation of memory-barriers.txt

2016-03-09 Thread Paul E. McKenney
l patch adds the > Korean translation of the document. > > The patches are based on recent next tree: > 0f6dd067b9c3c712b1177fa2fc0deb21805c771c ("Add linux-next specific files for > 20160309") I have queued this series for review, thank you! Of course, I cannot do anything

Re: [PATCH 0/5] Add Korean translation of memory-barriers.txt

2016-03-09 Thread Paul E. McKenney
l patch adds the > Korean translation of the document. > > The patches are based on recent next tree: > 0f6dd067b9c3c712b1177fa2fc0deb21805c771c ("Add linux-next specific files for > 20160309") I have queued this series for review, thank you! Of course, I cannot do anything

[PATCH net] net: hns: bug fix about ping6

2016-03-09 Thread Kejian Yan
The current upstreaming code fails to ping other IPv6 net device, because the enet receives the multicast packets with the src mac addr whick is the same as its mac addr. These packets need to be dropped. Signed-off-by: Kejian Yan ---

[patch net 2/2] net: hns: fixes a bug of RSS

2016-03-09 Thread Kejian Yan
If trying to get receive flow hash indirection table by ethtool, it needs to call .get_rxnfc to get ring number first. So this patch implements the .get_rxnfc of ethtool. And the data type of rss_indir_table is u32, it has to be multiply by the width of data type when using memcpy. Signed-off-by:

[PATCH net] net: hns: bug fix about ping6

2016-03-09 Thread Kejian Yan
The current upstreaming code fails to ping other IPv6 net device, because the enet receives the multicast packets with the src mac addr whick is the same as its mac addr. These packets need to be dropped. Signed-off-by: Kejian Yan --- drivers/net/ethernet/hisilicon/hns/hns_enet.c | 9 +

[patch net 2/2] net: hns: fixes a bug of RSS

2016-03-09 Thread Kejian Yan
If trying to get receive flow hash indirection table by ethtool, it needs to call .get_rxnfc to get ring number first. So this patch implements the .get_rxnfc of ethtool. And the data type of rss_indir_table is u32, it has to be multiply by the width of data type when using memcpy. Signed-off-by:

[patch net 0/2] net: hns: get and set RSS indirection table by using ethtool

2016-03-09 Thread Kejian Yan
When we use ethtool to retrieves or configure the receive flow hash indirection table, ethtool needs to call .get_rxnfc to get the ring number so this patchset implements the .get_rxnfc and fixes the bug that we can not get the tatal table each time. Kejian Yan (2): net: hns: fix return value

[patch net 1/2] net: hns: fix return value of the function about rss

2016-03-09 Thread Kejian Yan
Both .get_rxfh and .get_rxfh are always return 0, it should return result from hardware when getting or setting rss. And the rss function should return the correct data type. Signed-off-by: Kejian Yan --- drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c | 2 +-

[patch net 0/2] net: hns: get and set RSS indirection table by using ethtool

2016-03-09 Thread Kejian Yan
When we use ethtool to retrieves or configure the receive flow hash indirection table, ethtool needs to call .get_rxnfc to get the ring number so this patchset implements the .get_rxnfc and fixes the bug that we can not get the tatal table each time. Kejian Yan (2): net: hns: fix return value

[patch net 1/2] net: hns: fix return value of the function about rss

2016-03-09 Thread Kejian Yan
Both .get_rxfh and .get_rxfh are always return 0, it should return result from hardware when getting or setting rss. And the rss function should return the correct data type. Signed-off-by: Kejian Yan --- drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c | 2 +-

[PATCH 2/2] kernel/smp: Use make csd_lock_wait be smp_cond_acquire

2016-03-09 Thread Davidlohr Bueso
From: Davidlohr Bueso We can micro-optimize this call and mildly relax the barrier requirements by relying on ctrl + rmb, keeping the acquire semantics. In addition, this is pretty much the now standard for busy-waiting under such restraints. Signed-off-by: Davidlohr Bueso

[PATCH 2/2] kernel/smp: Use make csd_lock_wait be smp_cond_acquire

2016-03-09 Thread Davidlohr Bueso
From: Davidlohr Bueso We can micro-optimize this call and mildly relax the barrier requirements by relying on ctrl + rmb, keeping the acquire semantics. In addition, this is pretty much the now standard for busy-waiting under such restraints. Signed-off-by: Davidlohr Bueso --- kernel/smp.c |

[PATCH 1/2] kernel/smp: Explicitly inline cds_lock helpers

2016-03-09 Thread Davidlohr Bueso
From: Davidlohr Bueso While the compiler tends to already to it for us (except for cds_unlock), make it explicit. These helpers mainly deal with the ->flags, are short-lived and can be called, for example, from smp_call_function_many(). Signed-off-by: Davidlohr Bueso

[PATCH -tip 0/2] kernel/smp: Small csd_lock optimizations

2016-03-09 Thread Davidlohr Bueso
From: Davidlohr Bueso Hi, Justifications are in each patch, there is slight impact (patch 2) on some tlb flushing intensive benchmarks (albeit using ipi batching nowadays). Specifically for the pft benchmark, on a 12-core box: pft faults 4.4

[PATCH 1/2] kernel/smp: Explicitly inline cds_lock helpers

2016-03-09 Thread Davidlohr Bueso
From: Davidlohr Bueso While the compiler tends to already to it for us (except for cds_unlock), make it explicit. These helpers mainly deal with the ->flags, are short-lived and can be called, for example, from smp_call_function_many(). Signed-off-by: Davidlohr Bueso --- kernel/smp.c | 6

[PATCH -tip 0/2] kernel/smp: Small csd_lock optimizations

2016-03-09 Thread Davidlohr Bueso
From: Davidlohr Bueso Hi, Justifications are in each patch, there is slight impact (patch 2) on some tlb flushing intensive benchmarks (albeit using ipi batching nowadays). Specifically for the pft benchmark, on a 12-core box: pft faults 4.4

RE: [Qemu-devel] [RFC qemu 0/4] A PV solution for live migration optimization

2016-03-09 Thread Li, Liang Z
> > > > > Yes, we really can teach qemu to skip these pages and it's not hard. > > > > > The problem is the poor performance, this PV solution > > > > > > > > Balloon is always PV. And do not call patches solutions please. > > > > > > > > > is aimed to make it more > > > > > efficient and reduce

RE: [Qemu-devel] [RFC qemu 0/4] A PV solution for live migration optimization

2016-03-09 Thread Li, Liang Z
> > > > > Yes, we really can teach qemu to skip these pages and it's not hard. > > > > > The problem is the poor performance, this PV solution > > > > > > > > Balloon is always PV. And do not call patches solutions please. > > > > > > > > > is aimed to make it more > > > > > efficient and reduce

[PATCH] serial-uartlite: un-constify uartlite_be/uartlite_le

2016-03-09 Thread Arnd Bergmann
The patch to make uartlite_be/uartlite_le const was well-intended but caused a new build warning: tty/serial/uartlite.c: In function 'ulite_request_port': tty/serial/uartlite.c:348:21: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

[PATCH] serial-uartlite: un-constify uartlite_be/uartlite_le

2016-03-09 Thread Arnd Bergmann
The patch to make uartlite_be/uartlite_le const was well-intended but caused a new build warning: tty/serial/uartlite.c: In function 'ulite_request_port': tty/serial/uartlite.c:348:21: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

[PATCH v2 3/3] crypto: s5p-sss - Sort the headers to improve readability

2016-03-09 Thread Krzysztof Kozlowski
Sort the headers alphabetically to improve readability and to spot duplications easier. Suggested-by: Vladimir Zapolskiy Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. New patch. My email differs from one used in previous patches because

[PATCH v2 3/3] crypto: s5p-sss - Sort the headers to improve readability

2016-03-09 Thread Krzysztof Kozlowski
Sort the headers alphabetically to improve readability and to spot duplications easier. Suggested-by: Vladimir Zapolskiy Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. New patch. My email differs from one used in previous patches because this time I am sending this from work.

[PATCH v2 2/3] crypto: s5p-sss - Handle unaligned buffers

2016-03-09 Thread Krzysztof Kozlowski
From: Krzysztof Kozlowski During crypto selftests on Odroid XU3 (Exynos5422) some of the algorithms failed because of passing AES-block unaligned source and destination buffers: alg: skcipher: encryption failed on chunk test 1 for ecb-aes-s5p: ret=22 Handle such case by

[PATCH v2 1/3] crypto: s5p-sss - Minor coding cleanups

2016-03-09 Thread Krzysztof Kozlowski
From: Krzysztof Kozlowski Remove unneeded inclusion of delay.h and get rid of indentation from labels. Signed-off-by: Krzysztof Kozlowski Acked-by: Vladimir Zapolskiy --- Changes since v1: 1. Add Vladimir's acked-by. ---

[PATCH v2 2/3] crypto: s5p-sss - Handle unaligned buffers

2016-03-09 Thread Krzysztof Kozlowski
From: Krzysztof Kozlowski During crypto selftests on Odroid XU3 (Exynos5422) some of the algorithms failed because of passing AES-block unaligned source and destination buffers: alg: skcipher: encryption failed on chunk test 1 for ecb-aes-s5p: ret=22 Handle such case by copying the buffers to

[PATCH v2 1/3] crypto: s5p-sss - Minor coding cleanups

2016-03-09 Thread Krzysztof Kozlowski
From: Krzysztof Kozlowski Remove unneeded inclusion of delay.h and get rid of indentation from labels. Signed-off-by: Krzysztof Kozlowski Acked-by: Vladimir Zapolskiy --- Changes since v1: 1. Add Vladimir's acked-by. --- drivers/crypto/s5p-sss.c | 15 +++ 1 file changed, 7

Re: [PATCH 3/5] ftrace perf: Use ftrace_ops::private to store event pointer

2016-03-09 Thread Namhyung Kim
On Wed, Mar 09, 2016 at 09:46:43PM +0100, Jiri Olsa wrote: > Having following commands running concurrently: > > # perf record -e ftrace:function -a -o krava.data sleep 10 > # perf record -e ftrace:function --filter 'ip == SyS_read' ls > > will end up in the latter one to fail on the filter

Re: [PATCH 3/5] ftrace perf: Use ftrace_ops::private to store event pointer

2016-03-09 Thread Namhyung Kim
On Wed, Mar 09, 2016 at 09:46:43PM +0100, Jiri Olsa wrote: > Having following commands running concurrently: > > # perf record -e ftrace:function -a -o krava.data sleep 10 > # perf record -e ftrace:function --filter 'ip == SyS_read' ls > > will end up in the latter one to fail on the filter

Re: [PATCH v3 1/2] cxl: Add mechanism for delivering AFU driver specific events

2016-03-09 Thread Ian Munsie
Excerpts from Frederic Barrat's message of 2016-03-09 20:27:20 +1100: > It would also avoid entering > WARN(1, "afu_read must be buggy\n"); > if the driver changes its mind between the 2 calls :-) Honestly, it had better not - that would be a gross violation of the poll & read semantics

Re: [PATCH v3 1/2] cxl: Add mechanism for delivering AFU driver specific events

2016-03-09 Thread Ian Munsie
Excerpts from Frederic Barrat's message of 2016-03-09 20:27:20 +1100: > It would also avoid entering > WARN(1, "afu_read must be buggy\n"); > if the driver changes its mind between the 2 calls :-) Honestly, it had better not - that would be a gross violation of the poll & read semantics

Re: [PATCH v3 1/2] cxl: Add mechanism for delivering AFU driver specific events

2016-03-09 Thread Ian Munsie
Excerpts from Vaibhav Jain's message of 2016-03-10 01:37:56 +1100: > > +select CXL_AFU_DRIVER_OPS > I suggest wrapping the driver_ops struct definition and other related > functions inside a #ifdef CONFIG_CXL_AFU_DRIVER_OPS. No, the kconfig option is there so that cxlflash can add support for

Re: [PATCH v3 1/2] cxl: Add mechanism for delivering AFU driver specific events

2016-03-09 Thread Ian Munsie
Excerpts from Vaibhav Jain's message of 2016-03-10 01:37:56 +1100: > > +select CXL_AFU_DRIVER_OPS > I suggest wrapping the driver_ops struct definition and other related > functions inside a #ifdef CONFIG_CXL_AFU_DRIVER_OPS. No, the kconfig option is there so that cxlflash can add support for

Re: [PATCH] mvsas:Fix possible NULL pointer deference in mvs_dev_found_notify

2016-03-09 Thread Valdis . Kletnieks
On Wed, 09 Mar 2016 22:33:47 +0200, Dāvis Mosāns said: > About whether mvs_find_dev_mvi can return NULL it looks like it's possible, > but I'm not sure if it practically happens. I guess it did hence patch. Or the "bug" was found by incorrect code inspection. Nick has a history of submitting

Re: [PATCH] mvsas:Fix possible NULL pointer deference in mvs_dev_found_notify

2016-03-09 Thread Valdis . Kletnieks
On Wed, 09 Mar 2016 22:33:47 +0200, Dāvis Mosāns said: > About whether mvs_find_dev_mvi can return NULL it looks like it's possible, > but I'm not sure if it practically happens. I guess it did hence patch. Or the "bug" was found by incorrect code inspection. Nick has a history of submitting

[PATCH] clocksource: Add missing include of of.h.

2016-03-09 Thread David Lechner
This header uses OF_DELCARE_1 which is defined in linux/of.h. This fixes getting unhelpful compiler error messages about missing ')' before a string constant. Signed-off-by: David Lechner --- include/linux/clocksource.h | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH] clocksource: Add missing include of of.h.

2016-03-09 Thread David Lechner
This header uses OF_DELCARE_1 which is defined in linux/of.h. This fixes getting unhelpful compiler error messages about missing ')' before a string constant. Signed-off-by: David Lechner --- include/linux/clocksource.h | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH v3] lock/semaphore: Avoid an unnecessary deadlock within up()

2016-03-09 Thread Byungchul Park
On Thu, Mar 10, 2016 at 09:38:34AM +0900, Byungchul Park wrote: > On Wed, Mar 09, 2016 at 03:07:01PM +0900, Byungchul Park wrote: > > On Wed, Mar 09, 2016 at 11:00:37AM +0900, Byungchul Park wrote: > > > On Wed, Feb 17, 2016 at 10:28:29AM +0100, Ingo Molnar wrote: > > > > > > > > * Byungchul Park

Re: [PATCH v3] lock/semaphore: Avoid an unnecessary deadlock within up()

2016-03-09 Thread Byungchul Park
On Thu, Mar 10, 2016 at 09:38:34AM +0900, Byungchul Park wrote: > On Wed, Mar 09, 2016 at 03:07:01PM +0900, Byungchul Park wrote: > > On Wed, Mar 09, 2016 at 11:00:37AM +0900, Byungchul Park wrote: > > > On Wed, Feb 17, 2016 at 10:28:29AM +0100, Ingo Molnar wrote: > > > > > > > > * Byungchul Park

[PATCH] f2fs: support access control via key management

2016-03-09 Thread Jaegeuk Kim
Through this patch, user can assign its key into a specific normal files. Then, other users who do not have that key cannot open the files. Later, owner can drop its key from the files for other users to access the files again. Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h

[PATCH] f2fs: support access control via key management

2016-03-09 Thread Jaegeuk Kim
Through this patch, user can assign its key into a specific normal files. Then, other users who do not have that key cannot open the files. Later, owner can drop its key from the files for other users to access the files again. Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h | 20

[PATCH 2/5] doc/memory-barriers: add missed subsection in TOC

2016-03-09 Thread SeongJae Park
Virtual Machine Guests subsection has added with commit 6a65d26385bf487926a0616650927303058551e3 ("asm-generic: implement virt_xxx memory barriers") in memory-barriers.txt but it forgot to add the subsection in 'table of contents'. This commit adds the subsection in the 'table of contents'.

[PATCH 2/5] doc/memory-barriers: add missed subsection in TOC

2016-03-09 Thread SeongJae Park
Virtual Machine Guests subsection has added with commit 6a65d26385bf487926a0616650927303058551e3 ("asm-generic: implement virt_xxx memory barriers") in memory-barriers.txt but it forgot to add the subsection in 'table of contents'. This commit adds the subsection in the 'table of contents'.

Re: [PATCH v2] irqchip/gicv3-its: Don't allow devices whose ID is outside range

2016-03-09 Thread Shanker Donthineni
Hi Marc, On 03/08/2016 08:31 PM, Marc Zyngier wrote: > On Sun, 28 Feb 2016 13:22:03 -0600 > Shanker Donthineni wrote: > > Hi Shanker, > >> We are not checking whether the requested device identifier fits into >> the device table memory or not. The function

Re: [PATCH v2] irqchip/gicv3-its: Don't allow devices whose ID is outside range

2016-03-09 Thread Shanker Donthineni
Hi Marc, On 03/08/2016 08:31 PM, Marc Zyngier wrote: > On Sun, 28 Feb 2016 13:22:03 -0600 > Shanker Donthineni wrote: > > Hi Shanker, > >> We are not checking whether the requested device identifier fits into >> the device table memory or not. The function its_create_device() >> assumes that

Re: [kbuild-all] drivers/vhost/vhost.c:718:3: error: call to '__compiletime_assert_718' declared with attribute error: BUILD_BUG_ON failed: __alignof__ *vq->avail > VRING_AVAIL_ALIGN_SIZE

2016-03-09 Thread Fengguang Wu
Hi Michael, On Sun, Mar 06, 2016 at 10:37:07AM +0200, Michael S. Tsirkin wrote: > I keep seeing these errors. Any openrisc/gcc/kbuild people > interested in looking into this? Sorry, currently the buildbot is running old gcc 4.5.1 cross compiler for openrisc:

[PATCH 3/5] doc/memory-barriers: fix typo

2016-03-09 Thread SeongJae Park
Signed-off-by: SeongJae Park --- Documentation/memory-barriers.txt | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/memory-barriers.txt b/Documentation/memory-barriers.txt index 0560a49..89f96af 100644 ---

[PATCH 3/5] doc/memory-barriers: fix typo

2016-03-09 Thread SeongJae Park
Signed-off-by: SeongJae Park --- Documentation/memory-barriers.txt | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/memory-barriers.txt b/Documentation/memory-barriers.txt index 0560a49..89f96af 100644 --- a/Documentation/memory-barriers.txt +++

Re: [kbuild-all] drivers/vhost/vhost.c:718:3: error: call to '__compiletime_assert_718' declared with attribute error: BUILD_BUG_ON failed: __alignof__ *vq->avail > VRING_AVAIL_ALIGN_SIZE

2016-03-09 Thread Fengguang Wu
Hi Michael, On Sun, Mar 06, 2016 at 10:37:07AM +0200, Michael S. Tsirkin wrote: > I keep seeing these errors. Any openrisc/gcc/kbuild people > interested in looking into this? Sorry, currently the buildbot is running old gcc 4.5.1 cross compiler for openrisc:

[PATCH 4/5] doc/memory-barriers: Insert white spaces consistently

2016-03-09 Thread SeongJae Park
The document uses two newlines between sections, one newline between item and its detailed description, and two spaces between sentences. However, there is few point that missed the rule. This commit fix them to use the rule consistently. Signed-off-by: SeongJae Park ---

[PATCH 0/5] Add Korean translation of memory-barriers.txt

2016-03-09 Thread SeongJae Park
next tree: 0f6dd067b9c3c712b1177fa2fc0deb21805c771c ("Add linux-next specific files for 20160309") SeongJae Park (5): doc/memory-barriers: fix missed renaming: s/lock/acquire doc/memory-barriers: add missed subsection in TOC doc/memory-barriers: fix typo doc/memory-barriers: In

[PATCH 4/5] doc/memory-barriers: Insert white spaces consistently

2016-03-09 Thread SeongJae Park
The document uses two newlines between sections, one newline between item and its detailed description, and two spaces between sentences. However, there is few point that missed the rule. This commit fix them to use the rule consistently. Signed-off-by: SeongJae Park ---

[PATCH 0/5] Add Korean translation of memory-barriers.txt

2016-03-09 Thread SeongJae Park
next tree: 0f6dd067b9c3c712b1177fa2fc0deb21805c771c ("Add linux-next specific files for 20160309") SeongJae Park (5): doc/memory-barriers: fix missed renaming: s/lock/acquire doc/memory-barriers: add missed subsection in TOC doc/memory-barriers: fix typo doc/memory-barriers: In

[PATCH 1/5] doc/memory-barriers: fix missed renaming: s/lock/acquire

2016-03-09 Thread SeongJae Park
Terms `lock` and `unlock` have changed to `acquire` / `release` by commit 2e4f5382d12a441b5cccfdde00308df15c2ce300 ("locking/doc: Rename LOCK/UNLOCK to ACQUIRE/RELEASE"). However, the commit missed to change the table of content. This commit changes the missed parts. Signed-off-by: SeongJae

[PATCH 1/5] doc/memory-barriers: fix missed renaming: s/lock/acquire

2016-03-09 Thread SeongJae Park
Terms `lock` and `unlock` have changed to `acquire` / `release` by commit 2e4f5382d12a441b5cccfdde00308df15c2ce300 ("locking/doc: Rename LOCK/UNLOCK to ACQUIRE/RELEASE"). However, the commit missed to change the table of content. This commit changes the missed parts. Signed-off-by: SeongJae

Re: [PATCH v3 1/2] cxl: Add mechanism for delivering AFU driver specific events

2016-03-09 Thread Ian Munsie
Excerpts from Frederic Barrat's message of 2016-03-09 20:27:20 +1100: > So on afu_read(), we may call afu_driver_ops->event_pending() twice > before calling afu_driver_ops->deliver_event(). Actually, in the > (likely) scenario where there's only an afu_driver event pending, we > *will* call

Re: [PATCH v3 1/2] cxl: Add mechanism for delivering AFU driver specific events

2016-03-09 Thread Ian Munsie
Excerpts from Frederic Barrat's message of 2016-03-09 20:27:20 +1100: > So on afu_read(), we may call afu_driver_ops->event_pending() twice > before calling afu_driver_ops->deliver_event(). Actually, in the > (likely) scenario where there's only an afu_driver event pending, we > *will* call

Re: [PATCH 2/2] oom-clear-tif_memdie-after-oom_reaper-managed-to-unmap-the-address-space-fix

2016-03-09 Thread Johannes Weiner
On Wed, Mar 09, 2016 at 03:08:53PM -0800, Andrew Morton wrote: > On Wed, 9 Mar 2016 17:48:29 -0500 Johannes Weiner wrote: > > > However, I disagree with your changelog. > > What text would you prefer? I'd just keep the one you had initially. Or better, this modified

Re: [PATCH 2/2] oom-clear-tif_memdie-after-oom_reaper-managed-to-unmap-the-address-space-fix

2016-03-09 Thread Johannes Weiner
On Wed, Mar 09, 2016 at 03:08:53PM -0800, Andrew Morton wrote: > On Wed, 9 Mar 2016 17:48:29 -0500 Johannes Weiner wrote: > > > However, I disagree with your changelog. > > What text would you prefer? I'd just keep the one you had initially. Or better, this modified version: When the OOM

Re: [PATCH][v6][RFC] livepatch/ppc: Enable livepatching on powerpc

2016-03-09 Thread Balbir Singh
On 09/03/16 20:19, Torsten Duwe wrote: > On Wed, Mar 09, 2016 at 05:59:40PM +1100, Balbir Singh wrote: >> The previous revision was nacked by Torsten, but compared to the alternatives > I nacked it because I was confident it couldn't work. Same goes > for this one, sorry. My good intention was

Re: [PATCH][v6][RFC] livepatch/ppc: Enable livepatching on powerpc

2016-03-09 Thread Balbir Singh
On 09/03/16 20:19, Torsten Duwe wrote: > On Wed, Mar 09, 2016 at 05:59:40PM +1100, Balbir Singh wrote: >> The previous revision was nacked by Torsten, but compared to the alternatives > I nacked it because I was confident it couldn't work. Same goes > for this one, sorry. My good intention was

Re: [PATCH 2/5] ftrace perf: Move exclude_kernel tracepoint check to init event

2016-03-09 Thread Namhyung Kim
On Wed, Mar 09, 2016 at 09:46:42PM +0100, Jiri Olsa wrote: > We suppress events with attr::exclude_kernel set when > the event is generated, so following capture will > give no warning but won't produce any data: > > $ sudo perf record -e sched:sched_switch:u ls > $ sudo /perf script | wc -l

Re: [PATCH 2/5] ftrace perf: Move exclude_kernel tracepoint check to init event

2016-03-09 Thread Namhyung Kim
On Wed, Mar 09, 2016 at 09:46:42PM +0100, Jiri Olsa wrote: > We suppress events with attr::exclude_kernel set when > the event is generated, so following capture will > give no warning but won't produce any data: > > $ sudo perf record -e sched:sched_switch:u ls > $ sudo /perf script | wc -l

Re: [PATCH v3] lock/semaphore: Avoid an unnecessary deadlock within up()

2016-03-09 Thread Byungchul Park
On Wed, Mar 09, 2016 at 03:07:01PM +0900, Byungchul Park wrote: > On Wed, Mar 09, 2016 at 11:00:37AM +0900, Byungchul Park wrote: > > On Wed, Feb 17, 2016 at 10:28:29AM +0100, Ingo Molnar wrote: > > > > > > * Byungchul Park wrote: > > > > > > > diff --git

Re: [PATCH v3] lock/semaphore: Avoid an unnecessary deadlock within up()

2016-03-09 Thread Byungchul Park
On Wed, Mar 09, 2016 at 03:07:01PM +0900, Byungchul Park wrote: > On Wed, Mar 09, 2016 at 11:00:37AM +0900, Byungchul Park wrote: > > On Wed, Feb 17, 2016 at 10:28:29AM +0100, Ingo Molnar wrote: > > > > > > * Byungchul Park wrote: > > > > > > > diff --git a/kernel/locking/semaphore.c

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