[PATCH 1/5] mfd: Add support for TI LMP92001 driver

2017-08-01 Thread s . abhisit
From: Abhisit Sangjan --- drivers/mfd/Kconfig| 12 ++ drivers/mfd/Makefile | 3 + drivers/mfd/lmp92001-core.c| 311 + drivers/mfd/lmp92001-debug.c | 67 drivers/mfd/lmp92001-i2c.c | 217 +

Re: [PATCH] sched: fix NULL pointer issue in pick_next_entity()

2017-08-01 Thread Peter Zijlstra
On Tue, Aug 01, 2017 at 04:57:43PM +0800, Yafang Shao wrote: > > And how would that happen? We only call pick_next_entity(.curr=NULL) > > when we _know_ cfs_rq->nr_running. > > It crashed my machine when I did hadoop test, and after I made this change > it works now. > On SMP system, cfs_rq->nr_ru

Re: [RFC][PATCH]: x86: clarify/fix no-op barriers for text_poke_bp()

2017-08-01 Thread Jiri Kosina
On Mon, 31 Jul 2017, Peter Zijlstra wrote: > So I was looking at text_poke_bp() today and I couldn't make sense of > the barriers there. > > How's for something like so? Hm, agreed, the barrier after unsetting in_progress is superfluous, and the comments are definitely more understandable this

[PATCH 2/5] iio: Add support for LMP92001 ADC

2017-08-01 Thread s . abhisit
From: Abhisit Sangjan --- drivers/iio/adc/Kconfig| 10 + drivers/iio/adc/Makefile | 1 + drivers/iio/adc/lmp92001-adc.c | 479 + 3 files changed, 490 insertions(+) create mode 100644 drivers/iio/adc/lmp92001-adc.c diff --git a/drivers/ii

Re: [PATCH 3/3] pinctrl: add mt2712 pinctrl driver

2017-08-01 Thread Yingjoe Chen
Hi Zhiyong, On Mon, 2017-07-31 at 16:22 +0800, Zhiyong Tao wrote: <...> > 3)Add "spec_dir_set" and "spec_dir_get" in "mtk_pinctrl_devdata". > 4)Change "spec_dir_set" and add "spec_dir_get" in "pinctrl-mt2701.c" > and "pinctrl-mtk-common.c". I think these deserve another patch. Please also e

[PATCH 3/5] iio: Add support for LMP92001 DAC

2017-08-01 Thread s . abhisit
From: Abhisit Sangjan --- drivers/iio/dac/Kconfig| 9 ++ drivers/iio/dac/Makefile | 1 + drivers/iio/dac/lmp92001-dac.c | 350 + 3 files changed, 360 insertions(+) create mode 100644 drivers/iio/dac/lmp92001-dac.c diff --git a/drivers/i

[PATCH 4/5] gpio: Add support for LMP92001 GPIO

2017-08-01 Thread s . abhisit
From: Abhisit Sangjan --- drivers/gpio/Kconfig | 7 ++ drivers/gpio/Makefile| 1 + drivers/gpio/gpio-lmp92001.c | 235 +++ 3 files changed, 243 insertions(+) create mode 100644 drivers/gpio/gpio-lmp92001.c diff --git a/drivers/gpio/Kc

RE: [RESEND][PATCH V10 0/3] powernv : Add support for OPAL-OCC command/response interface

2017-08-01 Thread David Laight
From: Shilpasri G Bhat > Sent: 31 July 2017 08:43 > In P9, OCC (On-Chip-Controller) supports shared memory based > commad-response interface. Within the shared memory there is an OPAL ^ typo > command buffer and OCC response buffer that can be used to send > inband commands to OCC. The follow

[PATCH 5/5] Documentation: bindings: Add ti,lmp92001

2017-08-01 Thread s . abhisit
From: Abhisit Sangjan --- .../devicetree/bindings/gpio/gpio-lmp92001.txt | 29 ++ .../bindings/iio/adc/ti-lmp92001-adc.txt | 21 + .../bindings/iio/dac/ti-lmp92001-dac.txt | 35 ++ 3 files changed, 85 insertions(+) create m

Re: [PATCH] sched: fix NULL pointer issue in pick_next_entity()

2017-08-01 Thread Yafang Shao
Hi Peter, 2017-08-01 17:12 GMT+08:00 Peter Zijlstra : > On Tue, Aug 01, 2017 at 04:57:43PM +0800, Yafang Shao wrote: >> > And how would that happen? We only call pick_next_entity(.curr=NULL) >> > when we _know_ cfs_rq->nr_running. >> >> It crashed my machine when I did hadoop test, and after I mad

Re: [PATCH] HID: wacom: add USB_HID dependency

2017-08-01 Thread Jiri Kosina
On Fri, 28 Jul 2017, Jason Gerecke wrote: > I could accept either the strict dependency you originally suggested > or a modified header, but don't see much reason for the former. Well, until any better solution is proposed (in the form of patch), I'm applying Arnd's patch introducing the hard de

Re: [PATCH 2/3] gpio: Add FT232H CBUS GPIO driver

2017-08-01 Thread Johan Hovold
On Tue, Aug 01, 2017 at 08:49:02AM +0200, Linus Walleij wrote: > On Thu, Jul 6, 2017 at 10:49 PM, Anatolij Gustschin wrote: > > > Add driver for CBUS pins on FT232H. The driver supports setting > > GPIO direction and getting/setting CBUS 0-3 pin value. The CBUS > > pins have to be enabled by conf

RE: [PATCH] netfilter: fix stringop-overflow warning with UBSAN

2017-08-01 Thread David Laight
From: Arnd Bergmann > Sent: 31 July 2017 11:09 > Using gcc-7 with UBSAN enabled, we get this false-positive warning: > > net/netfilter/ipset/ip_set_core.c: In function 'ip_set_sockfn_get': > net/netfilter/ipset/ip_set_core.c:1998:3: error: 'strncpy' writing 32 bytes > into a region of size 2 > ov

Admin

2017-08-01 Thread Administrator
PERHATIAN Kotak surat Anda telah melebihi batas penyimpanan, yaitu 5 GB seperti yang didefinisikan oleh administrator, yang saat ini berjalan pada 10.9GB, Anda mungkin tidak dapat mengirim atau menerima surat baru sampai Anda kembali memvalidasi email mailbox Anda. Untuk memvalidasi ulang kotak

[PATCH V3 1/8] drivers: Add boot constraints core

2017-08-01 Thread Viresh Kumar
Some devices are powered ON by the bootloader before the bootloader handovers control to Linux. It maybe important for those devices to keep working until the time a Linux device driver probes the device and reconfigure its resources. A typical example of that can be the LCD controller, which is u

[PATCH V3 3/8] drivers: boot_constraint: Add support for supply constraints

2017-08-01 Thread Viresh Kumar
This patch adds the first constraint type: power-supply. The constraint is set by enabling the regulator and setting a voltage range (if required) for the respective regulator device, which will be honored by the regulator core even if more users turn up. Once the device is probed, the regulator i

[PATCH V3 5/8] drivers: boot_constraint: Add support for PM constraints

2017-08-01 Thread Viresh Kumar
This patch adds the PM constraint type. The constraint is set by attaching the power domain for the device, which will also enable the power domain. This guarantees that the power domain doesn't get shut down while being used. We don't need to detach the power domain to remove the constraint as t

[PATCH V3 8/8] drivers: boot_constraint: Add Qualcomm display controller constraints

2017-08-01 Thread Viresh Kumar
From: Rajendra Nayak NOT TO BE MERGED This sets boot constraints for the display controller used on Qualcomm dragonboard 410c. Not-signed-off-by: Rajendra Nayak Not-signed-off-by: Viresh Kumar --- drivers/base/boot_constraints/Makefile | 2 +- drivers/base/boot_constraints/qcom-displ

[PATCH V3 0/8] drivers: Boot Constraints core

2017-08-01 Thread Viresh Kumar
Hi Greg, Here is V3 of the boot constraints core based on the feedbacks I have received during V2. This tested on real hardware (Qcom dragonboard 410c) with a display controller configured from bootloader to display a flash screen. Obviously it doesn't work seamlessly without this series and works

[PATCH V3 7/8] drivers: boot_constraint: Manage deferrable constraints

2017-08-01 Thread Viresh Kumar
It is possible that some of the resources aren't available at the time constraints are getting set and the boot constraints core will return -EPROBE_DEFER for them. In order to retry adding the constraints at a later point of time (after the resource is added and before any of its users come up), t

[PATCH V3 6/8] drivers: boot_constraint: Add debugfs support

2017-08-01 Thread Viresh Kumar
This patch adds debugfs support for boot constraints. This is how it looks for a "vmmc-supply" constraint for the MMC device. $ ls -R /sys/kernel/debug/boot_constraints/ /sys/kernel/debug/boot_constraints/: f723d000.dwmmc0 /sys/kernel/debug/boot_constraints/f723d000.dwmmc0: clk-ciu pm-domain su

[PATCH V3 4/8] drivers: boot_constraint: Add support for clk constraints

2017-08-01 Thread Viresh Kumar
This patch adds the clk constraint type. The constraint is set by enabling the clk for the device. Once the device is probed, the clk is disabled and the constraint is removed. We may want to do clk_set_rate() from here, but lets wait for some real users that really want it. Tested-by: Rajendra

[PATCH V3 2/8] drivers: boot_constraint: Add boot_constraints_disable kernel parameter

2017-08-01 Thread Viresh Kumar
Users must be given an option to discard any constraints set by bootloaders. For example, consider that a constraint is set for the LCD controller's supply and the LCD driver isn't loaded by the kernel. If the user doesn't need to use the LCD device, then he shouldn't be forced to honour the constr

Re: [PATCHv2 1/2] arm64:vdso: Rewrite gettimeofday into C.

2017-08-01 Thread Robert Richter
Will, On 31.05.17 13:44:30, Will Deacon wrote: > Thanks for posting this, but please try to cc the maintainers in future -- I > almost missed it! > > On Tue, May 30, 2017 at 05:34:19PM -0700, Andrew Pinski wrote: > > This allows the compiler to optimize the divide by 1000. > > And remove the othe

Re: [PATCH V5 0/2] timer: add imx tpm timer support

2017-08-01 Thread Daniel Lezcano
On Tue, Aug 01, 2017 at 04:40:15PM +0800, Dong Aisheng wrote: > The Timer/PWM Module (TPM) supports input capture, output compare, > and the generation of PWM signals to control electric motor and power > management applications. The counter, compare and capture registers > are clocked by an asynch

Re: [PATCH v3 2/5] dmaengine: Add STM32 DMAMUX driver

2017-08-01 Thread Pierre Yves MORDRET
On 07/31/2017 02:31 PM, Vinod Koul wrote: > On Wed, Jul 26, 2017 at 07:38:02AM +, Pierre Yves MORDRET wrote: >> + >> +#ifndef __DMA_STM32_DMAMUX_H >> +#define __DMA_STM32_DMAMUX_H >> + >> +#if defined(CONFIG_STM32_DMAMUX) >> +int stm32_dmamux_set_config(struct device *

Re: [PATCH 3/3] EDAC, ghes: Make it a proper module

2017-08-01 Thread Borislav Petkov
On Mon, Jul 31, 2017 at 08:19:32PM +, Kani, Toshimitsu wrote: > I'd prefer to add the whitelist check to ghes_edac first. This makes > the existing code to work. We can then work on refactoring changes > like this on top of it without breaking the functionality. Yes, but we want only the whi

[PATCH] Adding Agile-SD TCP module and modifying Kconfig and Makefile to configure the kernel for this new module to configure the kernel for this new module.

2017-08-01 Thread mohamedalrshah
From: Mohamed Alrshah --- net/ipv4/Kconfig | 15 net/ipv4/Makefile | 1 + net/ipv4/tcp_agilesd.c | 221 + 3 files changed, 237 insertions(+) create mode 100755 net/ipv4/tcp_agilesd.c diff --git a/net/ipv4/Kconfig b/net/ipv4/Kco

Re: [PATCH v3] mm: add file_fdatawait_range and file_write_and_wait

2017-08-01 Thread Jan Kara
On Mon 31-07-17 12:49:25, Jeff Layton wrote: > From: Jeff Layton > > Necessary now for gfs2_fsync and sync_file_range, but there will > eventually be other callers. > > Signed-off-by: Jeff Layton Looks good to me. You can add: Reviewed-by: Jan Kara

Re: [RFT PATCH v2] gpiolib: allow gpio irqchip to map irqs dynamically

2017-08-01 Thread Bartosz Golaszewski
2017-08-01 9:52 GMT+02:00 Linus Walleij : > > Applied this rather than v1. > > But maybe we should get rid of ->irq_base from gpio-mockup.c > and delete it, as the base is irqchip-internal. > > Bartosz what do you say? Do we need this in the mockup? > > Yours, > Linus Walleij Hi Linus, a while ag

[PATCH] ARM: rockchip: select ARCH_DMA_ADDR_T_64BIT for LPAE

2017-08-01 Thread Tao Huang
Rockchip RK3288 has some 64-bit capable DMA and therefore needs dma_addr_t to be a 64-bit size. One user is the Mali GPU. Signed-off-by: Tao Huang --- arch/arm/mach-rockchip/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfi

Re: [RFC PATCH v2] membarrier: expedited private command

2017-08-01 Thread Nicholas Piggin
On Tue, 1 Aug 2017 10:12:30 +0200 Peter Zijlstra wrote: > On Tue, Aug 01, 2017 at 12:00:47PM +1000, Nicholas Piggin wrote: > > Thanks for this, I'll take a look. This should be a good start as a stress > > test, but I'd also be interested in some application. The reason being that > > for example

Re: [PATCH] ARM: tegra: Register host1x node with iommu binding on tegra124

2017-08-01 Thread Paul Kocialkowski
On Mon, 2017-07-31 at 17:23 +0200, Thierry Reding wrote: > On Tue, Jul 11, 2017 at 03:17:46PM +, Marcel Ziswiler wrote: > > On Tue, 2017-07-11 at 18:05 +0300, Paul Kocialkowski wrote: > > > On Tue, 2017-07-11 at 14:54 +, Marcel Ziswiler wrote: > > > > On Tue, 2017-07-11 at 11:50 +0300, Paul

[PATCH] arc: arcv2: cache: Explicitly set MSB counterpart of region ops addresses

2017-08-01 Thread Alexey Brodkin
It is necessary to explicitly set both SLC_AUX_RGN_START1 and SLC_AUX_RGN_END1 which hold MSB bits of the physical address correspondingly of region start and end otherwise SLC region operation is executed in unpredictable manner, for example on HSDK platform where PAE40 support exists in hardware

[PATCH 1/2] Input: tegra-kbc: Handle return value of clk_prepare_enable.

2017-08-01 Thread Arvind Yadav
clk_prepare_enable() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/input/keyboard/tegra-kbc.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/input/keyboard/tegra-kbc.c b/drivers/input/keyboard/tegra-kbc.c index 0c07e10

[PATCH 2/2] Input: pxa27x_keypad: Handle return value of clk_prepare_enable.

2017-08-01 Thread Arvind Yadav
clk_prepare_enable() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/input/keyboard/pxa27x_keypad.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/input/keyboard/pxa27x_keypad.c b/drivers/input/keyboard/pxa27

[PATCH v2 0/3] add support of SCPSYS power domain for MediaTek MT7622

2017-08-01 Thread sean.wang
From: Sean Wang Changes since v1: - rebase to Linux v4.13-rc1 There are four power domains on MediaTek MT7622 SoC which are respectively ETHSYS for Ethernet including extra embedded switch, HIF0SYS for PCI-E and SATA, HIF1SYS for USB and WBSYS for WIFI and Bluetooth. Those functions could be se

[PATCH v2 1/3] dt-bindings: soc: update the binding document for SCPSYS on MediaTek MT7622 SoC

2017-08-01 Thread sean.wang
From: Sean Wang Update the binding document for enabling SCPSYS on MediaTek MT7622 SoC. Signed-off-by: Sean Wang Signed-off-by: Chen Zhong --- Documentation/devicetree/bindings/soc/mediatek/scpsys.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/soc

[PATCH v2 3/3] soc: mediatek: add SCPSYS power domain driver for MediaTek MT7622 SoC

2017-08-01 Thread sean.wang
From: Chen Zhong Add SCPSYS power domain driver for MT7622 SoC having four power domains which are respectively ETHSYS for Ethernet including embedded switch, WBSYS for WIFI and Bluetooth, HIF0SYS for PCI-E and SATA, and HIF1SYS for USB. Those functions could be selectively powered gated when the

[PATCH v2 2/3] soc: mediatek: add header files required for MT7622 SCPSYS dt-binding

2017-08-01 Thread sean.wang
From: Chen Zhong Add relevant header files required for dt-bindings of SCPSYS power domain control for all subsystems found on MT7622 SoC. Signed-off-by: Chen Zhong Signed-off-by: Sean Wang --- include/dt-bindings/power/mt7622-power.h | 22 ++ 1 file changed, 22 insertions

Re: [PATCH 2/5] iio: Add support for LMP92001 ADC

2017-08-01 Thread Jonathan Cameron
On Tue, 1 Aug 2017 16:12:22 +0700 wrote: > From: Abhisit Sangjan Hi, A very quick initial review covering stuff you'll want to clean up before you get some in depth reviews. 1) Please cc linux-iio on the whole series - it's useful to see the mfd driver and review it as well. 2) Description of

Re: [PATCH] clk: samsung: exynos5420: The EPLL rate table corrections

2017-08-01 Thread Sylwester Nawrocki
On 07/31/2017 10:17 PM, Stephen Boyd wrote: On 07/31, Sylwester Nawrocki wrote: On 07/21/2017 01:19 PM, Sylwester Nawrocki wrote: This patch fixes values of the EPLL K coefficient and changes the EPLL output frequency values to match exactly what is possible to achieve with given M, P, S, K coe

[PATCH, RESEND 06/12] ima: added parser of digest lists metadata

2017-08-01 Thread Roberto Sassu
Userspace applications will be able to load digest lists by supplying their metadata. Digest list metadata are: - DATA_ALGO: algorithm of the digests to be uploaded - DATA_DIGEST: digest of the file containing the digest list - DATA_SIGNATURE: signature of the file containing the digest list - DA

Re: [RFC][PATCH v3]: documentation,atomic: Add new documents

2017-08-01 Thread Will Deacon
On Tue, Aug 01, 2017 at 11:01:21AM +0200, Peter Zijlstra wrote: > On Mon, Jul 31, 2017 at 10:43:45AM -0700, Paul E. McKenney wrote: > > > Why wouldn't the following have ACQUIRE semantics? > > > > atomic_inc(&var); > > smp_mb__after_atomic(); > > > > Is the issue that there is no actual

Re: [PATCH v2 5/5] ACPI/IORT: Add IORT named component memory address limits

2017-08-01 Thread Hanjun Guo
Hi Lorenzo, On 2017/7/31 23:23, Lorenzo Pieralisi wrote: IORT named components provide firmware configuration describing how many address bits a given device is capable of generating to address memory. Add code to the kernel to retrieve memory address limits configuration for IORT named compone

Re: [RFC PATCH v2] membarrier: expedited private command

2017-08-01 Thread Peter Zijlstra
On Tue, Aug 01, 2017 at 07:57:17PM +1000, Nicholas Piggin wrote: > On Tue, 1 Aug 2017 10:12:30 +0200 > Peter Zijlstra wrote: > > > On Tue, Aug 01, 2017 at 12:00:47PM +1000, Nicholas Piggin wrote: > > > Thanks for this, I'll take a look. This should be a good start as a stress > > > test, but I'd

[PATCH, RESEND 08/12] ima: added parser for RPM data type

2017-08-01 Thread Roberto Sassu
This patch introduces a parser for RPM packages. It extracts the digests from the RPMTAG_FILEDIGESTS header section and converts them to binary data before adding them to the hash table. The advantage of this data type is that verifiers can determine who produced that data, as headers are signed b

Re: [PATCH] sched: fix NULL pointer issue in pick_next_entity()

2017-08-01 Thread Peter Zijlstra
On Tue, Aug 01, 2017 at 05:20:11PM +0800, Yafang Shao wrote: > Hi Peter, > > 2017-08-01 17:12 GMT+08:00 Peter Zijlstra : > > On Tue, Aug 01, 2017 at 04:57:43PM +0800, Yafang Shao wrote: > >> > And how would that happen? We only call pick_next_entity(.curr=NULL) > >> > when we _know_ cfs_rq->nr_run

Re: [PATCH, RESEND 08/12] ima: added parser for RPM data type

2017-08-01 Thread Christoph Hellwig
On Tue, Aug 01, 2017 at 12:20:36PM +0200, Roberto Sassu wrote: > This patch introduces a parser for RPM packages. It extracts the digests > from the RPMTAG_FILEDIGESTS header section and converts them to binary data > before adding them to the hash table. > > The advantage of this data type is tha

Re: [PATCH 2/2 v2] backlight: gpio: delete pdata inversion

2017-08-01 Thread Laurent Pinchart
Hi Linus, Thank you for the patch. On Tuesday 30 May 2017 13:48:22 Linus Walleij wrote: > The option to invert the output of the GPIO (active low) is > not used by the only platform still using platform data to > set up a GPIO backlight (one SH board). Delete the option > as we do not expect to e

Re: [PATCH 1/2 v2] backlight: gpio: Convert to use GPIO descriptor

2017-08-01 Thread Laurent Pinchart
Hi Linus, Thank you for the patch. On Tuesday 01 Aug 2017 10:20:32 Linus Walleij wrote: > On Tue, May 30, 2017 at 1:48 PM, Linus Walleij wrote: > > This driver is predominantly used by device tree systems, all > > of which can deal with modern GPIO descriptors. The legacy > > GPIO API is only u

Re: [PATCH v2 1/4] mm: refactoring TLB gathering API

2017-08-01 Thread Mel Gorman
On Tue, Aug 01, 2017 at 02:56:14PM +0900, Minchan Kim wrote: > This patch is ready for solving race problems caused by TLB batch. s/is ready/is a preparatory patch/ > For that, we will increase/decrease TLB flush pending count of > mm_struct whenever tlb_[gather|finish]_mmu is called. > > Before

Re: [PATCH v2 2/4] mm: make tlb_flush_pending global

2017-08-01 Thread Mel Gorman
On Tue, Aug 01, 2017 at 02:56:15PM +0900, Minchan Kim wrote: > Currently, tlb_flush_pending is used only for CONFIG_[NUMA_BALANCING| > COMPACTION] but upcoming patches to solve subtle TLB flush bacting s/bacting/batching/ > problem will use it regardless of compaction/numa so this patch > doesn't

Re: [RFC PATCH v2] membarrier: expedited private command

2017-08-01 Thread Avi Kivity
On 08/01/2017 01:22 PM, Peter Zijlstra wrote: If mm cpumask is used, I think it's okay. You can cause quite similar kind of iteration over CPUs and lots of IPIs, tlb flushes, etc using munmap/mprotect/etc, or context switch IPIs, etc. Are we reaching the stage where we're controlling those ki

Re: [RFC][PATCH 1/5] mm: Rework {set,clear,mm}_tlb_flush_pending()

2017-08-01 Thread Will Deacon
On Fri, Jul 28, 2017 at 07:45:33PM +0200, Peter Zijlstra wrote: > On Fri, Jun 09, 2017 at 03:45:54PM +0100, Will Deacon wrote: > > On Wed, Jun 07, 2017 at 06:15:02PM +0200, Peter Zijlstra wrote: > > > Commit: > > > > > > af2c1401e6f9 ("mm: numa: guarantee that tlb_flush_pending updates are > >

Re: xattr hash error in 4.13-rc with overlayfs over ext4

2017-08-01 Thread Amir Goldstein
On Mon, Jul 31, 2017 at 7:08 PM, Miklos Szeredi wrote: > On Thu, Jul 27, 2017 at 10:54 PM, Tahsin Erdogan wrote: >> Still no luck reproducing the error. I am using the test script below >> at v4.13-rc2. Do you mind checking my script to see what I am missing? > > Don't know. I can reliably repr

[PATCH v3 3/5] mailbox: bcm-flexrm-mailbox: Fix mask used in CMPL_START_ADDR_VALUE()

2017-08-01 Thread Anup Patel
The mask used in CMPL_START_ADDR_VALUE() should be 27bits instead of 26bits. This incorrect mask was causing completion writes to 40bits physical address fail. This patch fixes mask used in CMPL_START_ADDR_VALUE() macro. Fixes: dbc049eee730 ("mailbox: Add driver for Broadcom FlexRM ring manager")

[PATCH v3 2/5] mailbox: bcm-flexrm-mailbox: Add debugfs support

2017-08-01 Thread Anup Patel
This patch adds debugfs support to Broadcom FlexRM driver so that we can see FlexRM ring state when any issue happens. Signed-off-by: Anup Patel Reviewed-by: Vikram Prakash Reviewed-by: Scott Branden --- drivers/mailbox/bcm-flexrm-mailbox.c | 136 ++- 1 file cha

[PATCH v3 4/5] mailbox: bcm-flexrm-mailbox: Use bitmap instead of IDA

2017-08-01 Thread Anup Patel
Currently, we are using IDA library for managing IDs on a FlexRM ring. The IDA library dynamically allocates memory for underlying data structures which can cause potential locking issue when allocating/free IDs from flexrm_new_request() and flexrm_process_completions(). To tackle this, we replace

[PATCH v3 1/5] mailbox: bcm-flexrm-mailbox: Set IRQ affinity hint for FlexRM ring IRQs

2017-08-01 Thread Anup Patel
This patch set IRQ affinity hint for FlexRM ring IRQ at time of enabling ring (i.e. flexrm_startup()). The IRQ affinity hint will allow FlexRM driver to distribute FlexRM ring IRQs across online CPUs so that all FlexRM ring IRQs don't land in CPU0 by default. Signed-off-by: Anup Patel Reviewed-by

[PATCH v3 5/5] mailbox: bcm-flexrm-mailbox: Use txdone_ack instead of txdone_poll

2017-08-01 Thread Anup Patel
Currently, FlexRM driver uses txdone_poll method of Linux Mailbox to model the send_data() callback. To achieve this, we have introduced "last_pending_msg" pointer for each FlexRM ring which keeps track of the message that did not fit in the FlexRM ring. This patch updates FlexRM driver to use txd

[PATCH v3 0/5] FlexRM driver improvements

2017-08-01 Thread Anup Patel
This patchset does various improvments to Broadcom FlexRM mailbox controller driver and also adds FlexRM DT nodes for Stingray SOC. The patches are based on Linux-4.13-rc3 and can also be found at flexrm-imp-v3 branch of https://github.com/Broadcom/arm64-linux.git Changes since v2: - Dropped PAT

Re: [PATCH v3] KVM: async_pf: rcu irq exit if not triggered from idle task

2017-08-01 Thread Paolo Bonzini
On 27/07/2017 11:05, Wanpeng Li wrote: > Commit 9b132fbe5419 (Add rcu user eqs exception hooks for async page fault) > adds rcu_irq_enter/exit() to kvm_async_pf_task_wait() to exit cpu idle eqs > when needed, to protect the code that needs use rcu. There is no need to call > this pairs if async

[PATCH v2 02/16] dmaengine: bcm-sba-raid: Reduce locking context in sba_alloc_request()

2017-08-01 Thread Anup Patel
We don't require to hold "sba->reqs_lock" for long-time in sba_alloc_request() because lock protection is not required when initializing members of "struct sba_request". Signed-off-by: Anup Patel --- drivers/dma/bcm-sba-raid.c | 22 +++--- 1 file changed, 11 insertions(+), 11 del

[PATCH v2 00/16] Broadcom SBA-RAID driver improvements

2017-08-01 Thread Anup Patel
This patchset does various improvments to Broadcom SBA-RAID driver. The patches are based on Linux-4.13-rc3 and can also be found at sba-raid-imp-v2 branch of https://github.com/Broadcom/arm64-linux.git Changes since v1: - Split PATCH1 into 10 smaller patches for easier review - Added more info

[PATCH v2 01/16] dmaengine: bcm-sba-raid: Minor improvments in comments

2017-08-01 Thread Anup Patel
Make section comments consistent across the Broadcom SBA RAID driver by avoiding " SBA " in some of the comments. Signed-off-by: Anup Patel --- drivers/dma/bcm-sba-raid.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/dma/bcm-sba-raid.c b/drivers/dma/bcm-sba

[PATCH v2 03/16] dmaengine: bcm-sba-raid: Common flags for sba_request state and fence

2017-08-01 Thread Anup Patel
This patch merges sba_request state and fence into common sba_request flags. Also, in-future we can extend sba_request flags as required. Signed-off-by: Anup Patel --- drivers/dma/bcm-sba-raid.c | 66 ++ 1 file changed, 38 insertions(+), 28 deletions(-

[PATCH v2 05/16] dmaengine: bcm-sba-raid: Remove redundant resp_dma from sba_request

2017-08-01 Thread Anup Patel
Both resp and resp_dma are redundant in sba_request because resp is unused and resp_dma carries same information present in tx.phys of sba_request. This patch removes both resp and resp_dma from sba_request. Signed-off-by: Anup Patel --- drivers/dma/bcm-sba-raid.c | 34 +-

[PATCH v2 04/16] dmaengine: bcm-sba-raid: Remove redundant next_count from sba_request

2017-08-01 Thread Anup Patel
The next_count in sba_request is redundant because same information is captured by next_pending_count. This patch removes next_count from sba_request. Signed-off-by: Anup Patel --- drivers/dma/bcm-sba-raid.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/dma/bcm

[PATCH v2 08/16] dmaengine: bcm-sba-raid: Increase number of free sba_request

2017-08-01 Thread Anup Patel
Currently, we have only 1024 free sba_request created by sba_prealloc_channel_resources(). This is too low and the prep_xxx() callbacks start failing more often at time of RAID array setup over NVMe disks. This patch sets number of free sba_request created by sba_prealloc_channel_resources() to be

[PATCH v2 09/16] dmaengine: bcm-sba-raid: Improve sba_issue_pending() run duration

2017-08-01 Thread Anup Patel
The pending sba_request list can become very long in real-life usage (e.g. setting up RAID array) which can cause sba_issue_pending() to run for long duration. This patch adds common sba_process_deferred_requests() to process few completed and pending requests so that it finishes in short duration

[PATCH v2 06/16] dmaengine: bcm-sba-raid: Remove reqs_free_count from sba_device

2017-08-01 Thread Anup Patel
The reqs_free_count member of sba_device is not used anywhere hence no point in tracking number of free sba_request. Signed-off-by: Anup Patel --- drivers/dma/bcm-sba-raid.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/dma/bcm-sba-raid.c b/drivers/dma/bcm-sb

Re: [RFC PATCH v2] membarrier: expedited private command

2017-08-01 Thread Nicholas Piggin
On Tue, 1 Aug 2017 12:22:03 +0200 Peter Zijlstra wrote: > On Tue, Aug 01, 2017 at 07:57:17PM +1000, Nicholas Piggin wrote: > > On Tue, 1 Aug 2017 10:12:30 +0200 > > Peter Zijlstra wrote: > > > > > On Tue, Aug 01, 2017 at 12:00:47PM +1000, Nicholas Piggin wrote: > > > > Thanks for this, I'll

[PATCH v2 07/16] dmaengine: bcm-sba-raid: Allow arbitrary number free sba_request

2017-08-01 Thread Anup Patel
Currently, we cannot have any arbitrary number of free sba_request because sba_prealloc_channel_resources() allocates an array of sba_request using devm_kcalloc() and kcalloc() cannot provide memory beyond certain size. This patch removes "reqs" (sba_request array) from sba_device and makes "cmds"

[PATCH v2] xen: get rid of paravirt op adjust_exception_frame

2017-08-01 Thread Juergen Gross
When running as Xen pv-guest the exception frame on the stack contains %r11 and %rcx additional to the other data pushed by the processor. Instead of having a paravirt op being called for each exception type prepend the Xen specific code to each exception entry. When running as Xen pv-guest just u

[PATCH v2 10/16] dmaengine: bcm-sba-raid: Alloc resources before registering DMA device

2017-08-01 Thread Anup Patel
We should allocate DMA channel resources before registering the DMA device in sba_probe() because we can get DMA request soon after registering the DMA device. If DMA channel resources are not allocated before first DMA request then SBA-RAID driver will crash. Signed-off-by: Anup Patel --- drive

[PATCH v2 11/16] dmaengine: bcm-sba-raid: Peek mbox when we have no free requests

2017-08-01 Thread Anup Patel
When setting up RAID array on several NVMe disks we observed that sba_alloc_request() start failing (due to no free requests left) and RAID array setup becomes very slow. To improve performance, we do mbox channel peek when we have no free requests. This improves performance of RAID array setup be

[PATCH v2 15/16] dmaengine: bcm-sba-raid: Add debugfs support

2017-08-01 Thread Anup Patel
This patch adds debugfs support to report stats via debugfs which in-turn will help debug hang or error situations. Signed-off-by: Anup Patel Reviewed-by: Ray Jui Reviewed-by: Scott Branden --- drivers/dma/bcm-sba-raid.c | 82 +- 1 file changed, 81 i

[PATCH v2 12/16] dmaengine: bcm-sba-raid: Pre-ack async tx descriptor

2017-08-01 Thread Anup Patel
We should pre-ack async tx descriptor at time of allocating sba_request (just like other RAID drivers). Signed-off-by: Anup Patel Reviewed-by: Ray Jui Reviewed-by: Scott Branden --- drivers/dma/bcm-sba-raid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/bcm-sba-raid.c b/driv

[PATCH v2 16/16] dmaengine: bcm-sba-raid: Explicitly ACK mailbox message after sending

2017-08-01 Thread Anup Patel
We should explicitly ACK mailbox message because after sending message we can know the send status via error attribute of brcm_message. This will also help SBA-RAID to use "txdone_ack" method whenever mailbox controller supports it. Signed-off-by: Anup Patel Reviewed-by: Ray Jui --- drivers/dm

[PATCH v2 13/16] dmaengine: bcm-sba-raid: Re-factor sba_process_deferred_requests()

2017-08-01 Thread Anup Patel
Currently, sba_process_deferred_requests() handles both pending and completed sba_request which is unnecessary overhead for sba_issue_pending() because completed sba_request handling is not required in sba_issue_pending(). This patch breaks sba_process_deferred_requests() into two parts sba_proces

[PATCH v2 14/16] dmaengine: bcm-sba-raid: Remove redundant SBA_REQUEST_STATE_RECEIVED

2017-08-01 Thread Anup Patel
The SBA_REQUEST_STATE_RECEIVED state is now redundant because received sba_request are immediately freed or moved to completed list in sba_process_received_request(). This patch removes redundant SBA_REQUEST_STATE_RECEIVED state. Signed-off-by: Anup Patel --- drivers/dma/bcm-sba-raid.c | 26 ++-

[BUG] Slow SATA disk - waiting in balance_dirty_pages() on i686-pae.html

2017-08-01 Thread Philipp Hahn
Hello, ;TL,DR: apt-get is blocked by balance_dirty_pages() with linux-{3,16 4.2, 4.9}, but fast after reboot. We still have several systems running 4.9.0-ucs104-686-pae. They have 16 GiB RAM and two disk: > # lsblk -S > NAME HCTL TYPE VENDOR MODEL REV TRAN > sdb 5:0:0:0

Re: [RFC PATCH v2] membarrier: expedited private command

2017-08-01 Thread Peter Zijlstra
On Tue, Aug 01, 2017 at 01:32:43PM +0300, Avi Kivity wrote: > I hate to propose a way to make this more complicated, but this could be > fixed by a process first declaring its intent to use expedited process-wide > membarrier; if it does, then every context switch updates a process-wide > cpumask i

Re: Possible race condition in oom-killer

2017-08-01 Thread Tetsuo Handa
_THREAD | CLONE_SIGHAND | CLONE_VM | CLONE_FS | CLONE_FILES, NULL) == -1) break; sleep(1); close(pipe_fd[1]); pause(); return 0; } -- Complete log is at http://I-love.SAKURA.ne.jp/tmp/serial-20170801-2.txt.xz : -

Re: [RFC 2/5] i3c: Add core I3C infrastructure

2017-08-01 Thread Boris Brezillon
Hello Greg, On Mon, 31 Jul 2017 18:40:21 -0700 Greg Kroah-Hartman wrote: > On Mon, Jul 31, 2017 at 06:24:47PM +0200, Boris Brezillon wrote: > > Add core infrastructure to support I3C in Linux and document it. > > > > This infrastructure is not complete yet and will be extended over > > time. >

Re: [RFC PATCH v2 00/38] Nested Virtualization on KVM/ARM

2017-08-01 Thread Jintack Lim
Hi Christoffer, On Mon, Jul 31, 2017 at 9:00 AM, Christoffer Dall wrote: > Hi Jintack, > > On Tue, Jul 18, 2017 at 11:58:26AM -0500, Jintack Lim wrote: >> Nested virtualization is the ability to run a virtual machine inside another >> virtual machine. In other words, it’s about running a hypervis

Re: [PATCH] KVM: nVMX: INVPCID support

2017-08-01 Thread Paolo Bonzini
On 27/07/2017 20:29, David Hildenbrand wrote: > On 27.07.2017 15:20, Paolo Bonzini wrote: >> Expose the "Enable INVPCID" secondary execution control to the guest >> and properly reflect the exit reason. >> >> In addition, before this patch the guest was always running with >> INVPCID enabled, causi

[PATCH 1/1 v3 nf-next] netfilter: constify nf_conntrack_l3/4proto parameters

2017-08-01 Thread Julia Lawall
When a nf_conntrack_l3/4proto parameter is not on the left hand side of an assignment, its address is not taken, and it is not passed to a function that may modify its fields, then it can be declared as const. This change is useful from a documentation point of view, and can possibly facilitate ma

[PATCH 0/1 v3 nf-next] constify nf_conntrack_l3/4proto parameters

2017-08-01 Thread Julia Lawall
When a nf_conntrack_l3/4proto parameter is not on the left hand side of an assignment, its address is not taken, and it is not passed to a function that may modify its fields, then it can be declared as const. This change is useful from a documentation point of view, and can possibly facilitate ma

Re: linux-next: build failure after merge of the akpm-current tree

2017-08-01 Thread Stephen Rothwell
Hi all, On Tue, 1 Aug 2017 16:39:04 +1000 Stephen Rothwell wrote: > > After merging the akpm tree, today's linux-next build (sparc defconfig) > failed like this: > > In file included from mm/vmscan.c:55:0: > include/linux/swapops.h: In function 'swp_entry_to_pmd': > include/linux/swapops.h:226:

Re: [PATCH v2 0/3] mailbox: arm: introduce smc triggered mailbox

2017-08-01 Thread Alexander Graf
Hi Andre, On 24.07.17 01:23, Andre Przywara wrote: This is a reworked version of my previous post. It addresses Jassi's comments on the driver and also tries to cover Rob's and Mark's comments on the binding documentation. I dropped the more example-like DT changes from v1, as they are actually

Re: [PATCH 7/7] sched/fair: don't wake affine recently load balanced tasks

2017-08-01 Thread Brendan Jackman
Hi Josef, I happened to be thinking about something like this while investigating a totally different issue with ARM big.LITTLE. Comment below... On Fri, Jul 14 2017 at 13:21, Josef Bacik wrote: > From: Josef Bacik > > The wake affinity logic will move tasks between two cpu's that appear to be >

Re: [PATCH v3 01/10] drivers base/arch_topology: free cpumask cpus_to_visit

2017-08-01 Thread Juri Lelli
Hi Greg, On 28/07/17 12:51, Viresh Kumar wrote: > On 27-07-17, 20:33, Dietmar Eggemann wrote: > > Free cpumask cpus_to_visit in case registering > > init_cpu_capacity_notifier has failed or the parsing of the cpu > > capacity-dmips-mhz property is done. The cpumask cpus_to_visit is > > only used i

Re: [PATCH, RESEND 08/12] ima: added parser for RPM data type

2017-08-01 Thread Roberto Sassu
On 8/1/2017 12:27 PM, Christoph Hellwig wrote: On Tue, Aug 01, 2017 at 12:20:36PM +0200, Roberto Sassu wrote: This patch introduces a parser for RPM packages. It extracts the digests from the RPMTAG_FILEDIGESTS header section and converts them to binary data before adding them to the hash table.

Re: [v3 PATCH 1/2] powernv/powerpc:Save/Restore additional SPRs for stop4 cpuidle

2017-08-01 Thread Michael Ellerman
"Gautham R. Shenoy" writes: > > Subject: [v3 PATCH 1/2] powernv/powerpc:Save/Restore additional SPRs for > stop4 cpuidle I know it's not a big deal, but can we agree on the subject format? powerpc/powernv: Save/Restore additional SPRs for stop4 cpuidle cheers

[PATCH V2 2/2] staging:rtl8188eu:core Fix Avoid CamelCase

2017-08-01 Thread janani-sankarababu
This patch is created to solve CamelCase issue. The variables 'IEs' and 'IELength' of struct wlan_bssid_ex are replaced with 'ies' and 'ie_length' to solve the CamelCase issue and these changes are applied to all the places where these variables are referenced inside the rtl8188eu driver. Signe

Re: [PATCH v2 3/4] mm: fix MADV_[FREE|DONTNEED] TLB flush miss problem

2017-08-01 Thread Mel Gorman
On Tue, Aug 01, 2017 at 02:56:16PM +0900, Minchan Kim wrote: > Nadav reported parallel MADV_DONTNEED on same range has a stale TLB > problem and Mel fixed it[1] and found same problem on MADV_FREE[2]. > > Quote from Mel Gorman > > "The race in question is CPU 0 running madv_free and updating some

Re: linux-next: manual merge of the akpm tree with the wberr tree

2017-08-01 Thread Jeff Layton
On Tue, 2017-08-01 at 15:46 +1000, Stephen Rothwell wrote: > Hi Andrew, > > Today's linux-next merge of the akpm-current tree got a conflict in: > > include/linux/fs.h > > between commit: > > 9dcc0577f2a4 ("mm: remove optimizations based on i_size in mapping > writeback waits") > > from t

Re: [PATCH] x86/hpet: Cure interface abuse in the resume path

2017-08-01 Thread Thomas Gleixner
On Tue, 1 Aug 2017, Tomi Sarvela wrote: > On 01/08/17 10:43, Thomas Gleixner wrote: > > Tomi, can you please do me a favor? > > > > Use plain 4.13-rc3 (without that patch) and add the following on the kernel > > command line: 'nohpet'. Boot the machine and capture and provide the output > > of > >

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