Re: [RESEND PATCH v5 4/4] ARM: configs: stm32: Add DMAMUX support in STM32 defconfig

2017-09-27 Thread Alexandre Torgue
Hi Vinod On 09/26/2017 06:46 PM, Vinod Koul wrote: On Fri, Sep 22, 2017 at 09:31:32AM +0200, Pierre-Yves MORDRET wrote: This patch adds DMAMUX support in STM32 defconfig file Need ACK from ARM folks on this. I will take it in my pull request. Regards Alex Signed-off-by: M'boumba Cedric

Re: [PATCH v2 2/8] drm/rockchip/dsi: add dual mipi channel support

2017-09-27 Thread Mark yao
On 2017年09月26日 15:55, Nickey Yang wrote: This patch add dual mipi channel support: 1.add definition of dsi1 register and grf operation. 2.dsi0 and dsi1 will work in master and slave mode when driving dual mipi panel. Signed-off-by: Nickey Yang Hi Nickey Can you rebase your patches to drm-misc

Re: NULL pointer dereference in call_fext_func [fujitsu_laptop]

2017-09-27 Thread Darren Hart
On Tue, Sep 19, 2017 at 05:42:41PM +0930, Jonathan Woithe wrote: > On Tue, Sep 19, 2017 at 11:07:29AM +0300, Andy Shevchenko wrote: > > On Tue, Sep 19, 2017 at 10:56 AM, Jiri Slaby wrote: > > > we have this report from 4.13.1: > > > BUG: unable to handle kernel NULL pointer dereference at 0004

[PATCH ] mm/backing-dev.c: remove a null kfree and fix a false kmemleak in backing-dev

2017-09-27 Thread Zumeng Chen
It seems kfree(new_congested) does nothing since new_congested has already been set null pointer before kfree, so remove it. Meanwhile kmemleak reports the following memory leakage: unreferenced object 0xcadbb440 (size 64): comm "kworker/0:4", pid 1399, jiffies 4294946504 (age 808.290s) hex dump

Re: [PATCH 2/3] mm: oom: show unreclaimable slab info when kernel panic

2017-09-27 Thread Christopher Lameter
On Wed, 27 Sep 2017, Yang Shi wrote: > Print out unreclaimable slab info (used size and total size) which > actual memory usage is not zero (num_objs * size != 0) when: > - unreclaimable slabs : all user memory > unreclaim_slabs_oom_ratio > - panic_on_oom is set or no killable process Ok. I l

Re: [PATCH v3 0/7] clocksource: sh_cmt: Update driver for DT binding rework

2017-09-27 Thread Geert Uytterhoeven
Hi Daniel, On Tue, Sep 26, 2017 at 8:38 PM, Daniel Lezcano wrote: > On 26/09/2017 10:26, Laurent Pinchart wrote: >> Reviewed-by: Laurent Pinchart > > Thanks. I applied the whole series. Thank you! So we can update DTS in v4.16. Gr{oetje,eeting}s, Geert -- Geert Uytter

Re: [PATCH v4 3/4] ARM: dts: stm32: Add MDMA support for STM32H743 SoC

2017-09-27 Thread Alexandre Torgue
Hi Vinod On 09/26/2017 07:44 PM, Vinod Koul wrote: On Fri, Aug 25, 2017 at 04:31:05PM +0200, Pierre-Yves MORDRET wrote: This patch adds MDMA support for STM32H743 SoC. Need ACK from ARM folks I will take ARM patches (config + DT) in my pull request for 4.15 (if you plan to take driver part

Re: [PATCH V2] r8152: add Linksys USB3GIGV1 id

2017-09-27 Thread Oliver Neukum
Am Dienstag, den 26.09.2017, 08:19 -0700 schrieb Doug Anderson: > > I know that for at least some of the adapters in the CDC Ethernet > blacklist it was claimed that the CDC Ethernet support in the adapter > was kinda broken anyway so the blacklist made sense. ...but for the > Linksys Gigabit ada

Re: [PATCH v2 1/5] media: atmel_isc: Add spin lock for clock enable ops

2017-09-27 Thread Sakari Ailus
Hi Wenyou, On subject: s/_/-/ On Mon, Sep 18, 2017 at 02:39:21PM +0800, Wenyou Yang wrote: > Add the spin lock for the clock enable and disable operations. > > Signed-off-by: Wenyou Yang > --- > > Changes in v2: None > > drivers/media/platform/atmel/atmel-isc.c | 14 +- > 1 file

Re: [PATCH v9] ACPI / init: Invoke early ACPI initialization earlier

2017-09-27 Thread Thomas Gleixner
On Wed, 27 Sep 2017, Dou Liyang wrote: > Hi Rafael, Zheng, > > Welcome any comments! > > Now, our patches are in tip tree, they are based on this > independent patch, we hope it can be merged earlier than our > patches to avoid ACPI Error. we need your advice and confirmation. You should have i

[PATCH 0/3] MMP clock: Adjustments for seven function implementations

2017-09-27 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 27 Sep 2017 09:21:23 +0200 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Delete an error message for a failed memory allocation in three functions Use common error handling code in mmp_clk_register_mix()

[PATCH 1/3] clk/mmp: Delete an error message for a failed memory allocation in three functions

2017-09-27 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 26 Sep 2017 22:25:38 +0200 Omit extra messages for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/clk/mmp/clk-frac.c | 4 +--- drivers/clk/mmp/clk-gate.c | 4 +-

Build regressions/improvements in v4.14-rc2

2017-09-27 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v4.14-rc2[1] compared to v4.13[2]. Summarized: - build errors: +6/-0 - build warnings: +1082/-6390 JFYI, when comparing v4.14-rc2[1] to v4.14-rc1[3], the summaries are: - build errors: +1/-2 - build warnings: +420/-473

[PATCH 2/3] clk/mmp: Use common error handling code in mmp_clk_register_mix()

2017-09-27 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 26 Sep 2017 22:33:18 +0200 Add a jump target so that a bit of exception handling can be better reused at the end of this function. Signed-off-by: Markus Elfring --- drivers/clk/mmp/clk-mix.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) d

[PATCH 3/3] clk/mmp: Adjust 12 checks for null pointers

2017-09-27 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 27 Sep 2017 09:00:21 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script “checkpatch.pl” pointed information out like the following. Comparison to NULL could be written !… Thus fix the affected source code pl

Re: Build regressions/improvements in v4.14-rc2

2017-09-27 Thread Geert Uytterhoeven
On Wed, Sep 27, 2017 at 9:26 AM, Geert Uytterhoeven wrote: > JFYI, when comparing v4.14-rc2[1] to v4.14-rc1[3], the summaries are: > - build errors: +1/-2 + /home/kisskb/slave/src/drivers/net/ethernet/intel/i40e/i40e_ethtool.c: error: implicit declaration of function 'cmpxchg64' [-Werror=impl

Re: [PATCH v2] Asus WMI : Add lightbar led support

2017-09-27 Thread Darren Hart
On Sat, Sep 23, 2017 at 06:23:37PM +0200, Maxime Bellengé wrote: Hi Maxime, Thanks for the update. The patch has been applied and is queued for testing. In the future, please take note of the following comments - which I have addressed in the patch. The commit subject format: platform/x86: : S

Re: [PATCH] platform/x86: intel-hid: Power button suspend on Dell Latitude 7275

2017-09-27 Thread Darren Hart
On Mon, Sep 25, 2017 at 01:57:48PM +0300, Andy Shevchenko wrote: > On Sat, Sep 23, 2017 at 2:45 AM, Darren Hart wrote: > > On Mon, Sep 18, 2017 at 12:57:12AM +0200, Jérôme de Bretagne wrote: > > >> + if (event == 0xce) { > >> + input_report_key(priv->input_dev, KEY

mptsas driver cannot detect hotplugging disk with the LSI SCSI SAS1068 controller in Ubuntu guest on VMware

2017-09-27 Thread Gavin Guo
There is a problem in the latest upstream kernel with the device: $ grep -i lsi lspci 03:00.0 Serial Attached SCSI controller [0107]: LSI Logic / Symbios Logic SAS1068 PCI-X Fusion-MPT SAS [1000:0054] (rev 01) The device is simulated by the VMware ESXi 5.5 When hotplugging a new disk to the Gues

Re: [PATCH] dt-bindings: i2c: Add armada-38x i2c binding

2017-09-27 Thread Gregory CLEMENT
Hi Chris, On mer., sept. 27 2017, Chris Packham wrote: > Hi Gregory, > > On 27/09/17 00:56, Gregory CLEMENT wrote: >> Hi Kalyan, >> >> Please try avoid top-posting. >> >> On dim., sept. 24 2017, Kalyan Kinthada >> wrote: >> >>> Hi Gregory, >>> >>> I got this information from Armada-38x

Re: [PATCH v9] ACPI / init: Invoke early ACPI initialization earlier

2017-09-27 Thread Dou Liyang
Hi Thomas, At 09/27/2017 03:19 PM, Thomas Gleixner wrote: On Wed, 27 Sep 2017, Dou Liyang wrote: Hi Rafael, Zheng, Welcome any comments! Now, our patches are in tip tree, they are based on this independent patch, we hope it can be merged earlier than our patches to avoid ACPI Error. we need

Re: [PATCH v2 3/5] clk: aspeed: Add platform driver and register PLLs

2017-09-27 Thread Andrew Jeffery
On Wed, 2017-09-27 at 16:13 +1000, Joel Stanley wrote: > > > + div_table, > > > > This doesn't seem to be correct. There's the problem of 0b000 and 0b001 > > mapping > > the same value of 2 for the AST2500, whose table then increments in steps > > of 1. > > The AST2400 mappin

[PATCH v6 00/11] net: stmmac: dwmac-sun8i: Handle integrated PHY

2017-09-27 Thread Corentin Labbe
Hello The current way to find if the PHY is internal is to compare DT phy-mode and emac_variant/internal_phy. But it will negate a possible future SoC where an external PHY use the same phy mode than the integrated one. This patchs series adds a new way to find if the PHY is integrated, via the p

[PATCH v6 07/11] arm64: dts: allwinner: add snps,dwmac-mdio compatible to emac/mdio

2017-09-27 Thread Corentin Labbe
stmmac bindings docs said that its mdio node must have compatible = "snps,dwmac-mdio"; Since dwmac-sun8i does not have any good reasons to not doing it, all their MDIO node must have it. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 1 + 1 file changed, 1 inse

[PATCH v6 11/11] of: mdio: Prevent of_mdiobus_register from scanning mdio-mux nodes

2017-09-27 Thread Corentin Labbe
Each child node of an MDIO node is scanned as a PHY when calling of_mdiobus_register() givint the following result: [ 18.175379] mdio_bus stmmac-0: /soc/ethernet@1c3/mdio/mdio-mux has invalid PHY address [ 18.175408] mdio_bus stmmac-0: scan phy mdio-mux at address 0 [ 18.175450] mdio_bus

[PATCH v6 10/11] net: stmmac: dwmac-sun8i: Handle integrated/external MDIOs

2017-09-27 Thread Corentin Labbe
The Allwinner H3 SoC have two distinct MDIO bus, only one could be active at the same time. The selection of the active MDIO bus are done via some bits in the EMAC register of the system controller. This patch implement this MDIO switch via a custom MDIO-mux. Signed-off-by: Corentin Labbe --- d

[PATCH v6 09/11] net: stmmac: dwmac-sun8i: choose internal PHY via phy-is-integrated

2017-09-27 Thread Corentin Labbe
The current way to find if the phy is internal is to compare DT phy-mode and emac_variant/internal_phy. But it will negate a possible future SoC where an external PHY use the same phy mode than the internal one. This patch adds a new way to find if the PHY is internal, via the phy-is-integrated pr

[PATCH v6 06/11] ARM: dts: sunxi: h3/h5: represent the mdio switch used by sun8i-h3-emac

2017-09-27 Thread Corentin Labbe
Since dwmac-sun8i could use either an integrated PHY or an external PHY (which could be at same MDIO address), we need to represent this selection by a MDIO switch. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 31 +-- 1 file changed, 25 inser

[PATCH v6 08/11] net: stmmac: snps,dwmac-mdio MDIOs are automatically registered

2017-09-27 Thread Corentin Labbe
stmmac bindings docs said that its mdio node must have compatible = "snps,dwmac-mdio"; Since dwmac-sun8i does not have any good reasons to not doing it, all their MDIO node must have it. Since these compatible is automatically registered, dwmac-sun8i compatible does not need to be in need_mdio_ids

[PATCH v6 02/11] arm: dts: sunxi: Restore EMAC changes

2017-09-27 Thread Corentin Labbe
This patch restore arm DT about dwmac-sun8i This reverts commit fe45174b72ae ("arm: dts: sunxi: Revert EMAC changes") Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts | 9 arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts | 19 + arch/

Re: [v8 0/4] cgroup-aware OOM killer

2017-09-27 Thread Michal Hocko
On Tue 26-09-17 14:04:41, David Rientjes wrote: > On Tue, 26 Sep 2017, Michal Hocko wrote: > > > > No, I agree that we shouldn't compare sibling memory cgroups based on > > > different criteria depending on whether group_oom is set or not. > > > > > > I think it would be better to compare siblin

[PATCH v6 05/11] dt-bindings: net: dwmac-sun8i: update documentation about integrated PHY

2017-09-27 Thread Corentin Labbe
This patch add documentation about the MDIO switch used on sun8i-h3-emac for integrated PHY. Signed-off-by: Corentin Labbe --- .../devicetree/bindings/net/dwmac-sun8i.txt| 138 +++-- 1 file changed, 126 insertions(+), 12 deletions(-) diff --git a/Documentation/devicetree

[PATCH v6 03/11] arm64: dts: allwinner: Restore EMAC changes

2017-09-27 Thread Corentin Labbe
This patch restore arm64 DT about dwmac-sun8i This reverts commit 87e1f5e8bb4b ("arm64: dts: allwinner: Revert EMAC changes") Signed-off-by: Corentin Labbe --- .../boot/dts/allwinner/sun50i-a64-bananapi-m64.dts | 16 .../boot/dts/allwinner/sun50i-a64-pine64-plus.dts| 15 ++

[PATCH v6 04/11] net: stmmac: sun8i: Restore the compatibles

2017-09-27 Thread Corentin Labbe
This patch restore compatibles about dwmac-sun8i This reverts commit ad4540cc5aa3 ("net: stmmac: sun8i: Remove the compatibles") Signed-off-by: Corentin Labbe --- drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/net/ethernet/st

[PATCH v6 01/11] dt-bindings: net: Restore sun8i dwmac binding

2017-09-27 Thread Corentin Labbe
This patch restore dt-bindings documentation about dwmac-sun8i This reverts commit 8aa33ec2f481 ("dt-bindings: net: Revert sun8i dwmac binding") Signed-off-by: Corentin Labbe --- .../devicetree/bindings/net/dwmac-sun8i.txt| 84 ++ 1 file changed, 84 insertions(+) cr

[RFC GIT PULL, v2] x86 FPU fixes and cleanups

2017-09-27 Thread Ingo Molnar
* Linus Torvalds wrote: > On Tue, Sep 26, 2017 at 9:28 AM, Ingo Molnar wrote: > > > > So this an RFC pull request, you can pull the latest x86-fpu-for-linus git > > tree > > from: > > Ugh. > > Ok, I think I'll do this, but I'd ask that instead of that final merge > commit, you'll just send m

Re: [v8 0/4] cgroup-aware OOM killer

2017-09-27 Thread Michal Hocko
On Tue 26-09-17 20:37:37, Tim Hockin wrote: [...] > I feel like David has offered examples here, and many of us at Google > have offered examples as long ago as 2013 (if I recall) of cases where > the proposed heuristic is EXACTLY WRONG. I do not think we have discussed anything resembling the cur

Re: kernFS/sysfs: mmap and vm_operations close

2017-09-27 Thread Greg Kroah-Hartman
On Wed, Sep 27, 2017 at 08:41:12AM +0200, Federico Vaga wrote: > On Tuesday, 26 September 2017 23:31:29 CEST Greg Kroah-Hartman wrote: > > On Tue, Sep 26, 2017 at 05:50:55PM +0200, Federico Vaga wrote: > > > Hello, > > > > > > I'm writing a sysfs binary attribute that makes use of the `mmap` > > >

Re: [PATCH] mm, swap: Make VMA based swap readahead configurable

2017-09-27 Thread Michal Hocko
On Wed 27-09-17 14:04:01, Minchan Kim wrote: > On Tue, Sep 26, 2017 at 03:21:29PM +0200, Michal Hocko wrote: > > On Thu 21-09-17 09:33:10, Huang, Ying wrote: > > > From: Huang Ying > > > > > > This patch adds a new Kconfig option VMA_SWAP_READAHEAD and wraps VMA > > > based swap readahead code in

Re: [PATCH v5 1/3] livepatch: add (un)patch callbacks

2017-09-27 Thread Petr Mladek
On Tue 2017-09-26 15:01:52, Joe Lawrence wrote: > On 09/26/2017 10:49 AM, Petr Mladek wrote: > > On Thu 2017-08-31 10:53:51, Joe Lawrence wrote: > >> diff --git a/kernel/livepatch/core.c b/kernel/livepatch/core.c > >> index b9628e43c78f..aca62c4b8616 100644 > >> --- a/kernel/livepatch/core.c > >> +

Re: [PATCH v2 5/5] media: atmel-isc: Rework the format list

2017-09-27 Thread Hans Verkuil
On 09/27/2017 07:15 AM, Yang, Wenyou wrote: > Hi Hans, > > Thank  you very much for your review. > > On 2017/9/25 21:24, Hans Verkuil wrote: >> Hi Wenyou, >> >> On 18/09/17 08:39, Wenyou Yang wrote: >>> To improve the readability of code, split the format array into two, >>> one for the format de

Re: [PATCH] mm, swap: Make VMA based swap readahead configurable

2017-09-27 Thread Minchan Kim
On Wed, Sep 27, 2017 at 09:48:35AM +0200, Michal Hocko wrote: > On Wed 27-09-17 14:04:01, Minchan Kim wrote: > > On Tue, Sep 26, 2017 at 03:21:29PM +0200, Michal Hocko wrote: > > > On Thu 21-09-17 09:33:10, Huang, Ying wrote: > > > > From: Huang Ying > > > > > > > > This patch adds a new Kconfig

[PATCH] [media] cx231xx: make cx231xx_vbi_qops const

2017-09-27 Thread Bhumika Goyal
Make this const as it is only passed to the const argument of the function videobuf_queue_vmalloc_init in the file referencing it. Also, make the declaration in the header const. Structure found using Coccienlle and changes done by hand. Signed-off-by: Bhumika Goyal --- drivers/media/usb/cx231x

RE: Re: [PATCH v2 0/8] PM / devfreq: Use OPP interface to handle the frequency

2017-09-27 Thread MyungJoo Ham
> Hi Myungjoo, > > Could you please review this patchset? I ignored your v2 patchset because of the follow-up message: | Re: [PATCH v2 8/8] PM / devfreq: exynos-bus: Register cooling device | | Dear all, | | Please ignore this patch. It has some problem. | I'll fix and resend this patch on v2.

[PATCH] params: Fix an overflow in param_attr_show

2017-09-27 Thread Jean Delvare
Function param_attr_show could overflow the buffer it is operating on. The buffer size is PAGE_SIZE, and the string returned by attribute->param->ops->get is generated by scnprintf(buffer, PAGE_SIZE, ...) so it could be PAGE_SIZE - 1 long, with the terminating '\0' at the very end of the buffer. Ca

Re: [PATCH v2 0/8] PM / devfreq: Use OPP interface to handle the frequency

2017-09-27 Thread Chanwoo Choi
On 2017년 09월 27일 17:09, MyungJoo Ham wrote: >> Hi Myungjoo, >> >> Could you please review this patchset? > > > I ignored your v2 patchset because of the follow-up message: > > | Re: [PATCH v2 8/8] PM / devfreq: exynos-bus: Register cooling device > | > | Dear all, > | > | Please ignore this patc

[PATCH] MIPS: bpf: Fix uninitialised target compiler error

2017-09-27 Thread Matt Redfearn
Compiling ebpf_jit.c with gcc 4.9 results in a (likely spurious) compiler warning, as gcc has detected that the variable "target" may be used uninitialised. Since -Werror is active, this is treated as an error and causes a kernel build failure whenever CONFIG_MIPS_EBPF_JIT is enabled. arch/mips/ne

[PATCH 1/6] mm: add kmalloc_array_node and kcalloc_node

2017-09-27 Thread Johannes Thumshirn
We have kmalloc_array() and kcalloc() wrappers on top of kmalloc() which ensure us overflow free multiplication for the size of a memory allocation but these implementations are not NUMA-aware. Likewise we have kmalloc_node() which is a NUMA-aware version of kmalloc() but the implementation is not

[PATCH 5/6] mm, mempool: use kmalloc_array_node

2017-09-27 Thread Johannes Thumshirn
Now that we have a NUMA-aware version of kmalloc_array() we can use it instead of kmalloc_node() without an overflow check in the size calculation. Signed-off-by: Johannes Thumshirn --- mm/mempool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/mempool.c b/mm/mempool.c i

[PATCH 6/6] rds: ib: use kmalloc_array_node

2017-09-27 Thread Johannes Thumshirn
Now that we have a NUMA-aware version of kmalloc_array() we can use it instead of kmalloc_node() without an overflow check in the size calculation. Signed-off-by: Johannes Thumshirn --- net/rds/ib_fmr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/rds/ib_fmr.c b/ne

[PATCH 3/6] IB/qib: use kmalloc_array_node

2017-09-27 Thread Johannes Thumshirn
Now that we have a NUMA-aware version of kmalloc_array() we can use it instead of kmalloc_node() without an overflow check in the size calculation. Signed-off-by: Johannes Thumshirn --- drivers/infiniband/hw/qib/qib_init.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/

[PATCH 4/6] IB/rdmavt: use kmalloc_array_node

2017-09-27 Thread Johannes Thumshirn
Now that we have a NUMA-aware version of kmalloc_array() we can use it instead of kmalloc_node() without an overflow check in the size calculation. Signed-off-by: Johannes Thumshirn --- drivers/infiniband/sw/rdmavt/qp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/

[PATCH 0/6] Add kmalloc_array_node() and kcalloc_node()

2017-09-27 Thread Johannes Thumshirn
Our current memeory allocation routines suffer form an API imbalance, for one we have kmalloc_array() and kcalloc() which check for overflows in size multiplication and we have kmalloc_node() and kzalloc_node() which allow for memory allocation on a certain NUMA node but don't check for eventual ov

[PATCH 2/6] block: use kmalloc_array_node

2017-09-27 Thread Johannes Thumshirn
Now that we have a NUMA-aware version of kmalloc_array() we can use it instead of kmalloc_node() without an overflow check in the size calculation. Signed-off-by: Johannes Thumshirn --- block/blk-mq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/blk-mq.c b/block/blk-

[PATCH net-next 0/3] support changing steering policies in tuntap

2017-09-27 Thread Jason Wang
Hi all: We use flow caches based flow steering policy now. This is good for connection-oriented communication such as TCP but not for the others e.g connectionless unidirectional workload which cares only about pps. This calls the ability of supporting changing steering policies in tuntap which wa

[PATCH net-next 3/3] tun: introduce cpu id based steering policy

2017-09-27 Thread Jason Wang
This patch introduces a simple queue selection policy which just choose txq based on processor id. This maybe useful for connectless workload or #queues is equal to #cpus. Redirect UDP packets generated by MoonGen between two virtio-net ports through xdp_redirect show 37.4% (from 0.8Mpps to 1.1Mpp

[PATCH net-next 1/3] tun: abstract flow steering logic

2017-09-27 Thread Jason Wang
tun now use flow caches based automatic queue steering method. This may not suffice all user cases. To extend it to be able to use more flow steering policy, this patch abstracts flow steering logic into tun_steering_ops, then we can declare and use different methods in the future. Signed-off-by:

[PATCH net-next 2/3] tun: introduce ioctls to set and get steering policies

2017-09-27 Thread Jason Wang
This patch introduces new ioctl for change packet steering policy for tun. Only automatic flow steering is supported, more policies will come. Signed-off-by: Jason Wang --- drivers/net/tun.c | 35 ++- include/uapi/linux/if_tun.h | 7 +++ 2 files cha

Re: [PATCH] params: Fix an overflow in param_attr_show

2017-09-27 Thread Ingo Molnar
* Jean Delvare wrote: > Function param_attr_show could overflow the buffer it is operating > on. The buffer size is PAGE_SIZE, and the string returned by > attribute->param->ops->get is generated by scnprintf(buffer, > PAGE_SIZE, ...) so it could be PAGE_SIZE - 1 long, with the > terminating '\0

Re: [PATCH] thermal/drivers/hisi: Switch to interrupt mode

2017-09-27 Thread Keerthy
On Wednesday 27 September 2017 05:24 AM, Daniel Lezcano wrote: > At this moment, we have both the interrupt setup and the polling enabled. The > interrupt does nothing more than forcing an update while the temperature is > polled every second. > > We can do much better than that, threshold is se

Re: [PATCH] arm64: fix documentation on kernel pages mappings to HYP VA

2017-09-27 Thread Marc Zyngier
On Tue, Sep 26 2017 at 9:45:42 pm BST, Yury Norov wrote: > Ping? > > On Wed, Sep 13, 2017 at 09:08:30PM +0300, Yury Norov wrote: >> The Documentation/arm64/memory.txt says: >> When using KVM, the hypervisor maps kernel pages in EL2, at a fixed >> offset from the kernel VA (top 24bits of the kern

Re: [PATCH] mm, swap: Make VMA based swap readahead configurable

2017-09-27 Thread Michal Hocko
On Wed 27-09-17 17:04:32, Minchan Kim wrote: > On Wed, Sep 27, 2017 at 09:48:35AM +0200, Michal Hocko wrote: > > On Wed 27-09-17 14:04:01, Minchan Kim wrote: [...] > > > The problem is users have disabled swap readahead by echo 0 > /proc/sys/ > > > vm/page-cluster are regressed by this new interfac

Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB DMA controller

2017-09-27 Thread Jon Hunter
On 27/09/17 02:57, Dmitry Osipenko wrote: > On 26.09.2017 17:50, Jon Hunter wrote: >> >> On 26/09/17 00:22, Dmitry Osipenko wrote: >>> Document DT bindings for NVIDIA Tegra AHB DMA controller that presents >>> on Tegra20/30 SoC's. >>> >>> Signed-off-by: Dmitry Osipenko >>> --- >>> .../bindings/d

[PATCH v3 1/8] clk: at91: pmc: Wait for clocks when resuming

2017-09-27 Thread Romain Izard
Wait for the syncronization of all clocks when resuming, not only the UPLL clock. Do not use regmap_read_poll_timeout, as it will call BUG() when interrupts are masked, which is the case in here. Signed-off-by: Romain Izard Acked-by: Ludovic Desroches Acked-by: Nicolas Ferre --- drivers/clk/at

[PATCH v3 8/8] tty/serial: atmel: Prevent a warning on suspend

2017-09-27 Thread Romain Izard
The atmel serial port driver reported the following warning on suspend: atmel_usart f802.serial: ttyS1: Unable to drain transmitter As the ATMEL_US_TXEMPTY status bit in ATMEL_US_CSR is always cleared when the transmitter is disabled, we need to know the transmitter's state to return the real

[PATCH v3 7/8] atmel_flexcom: Support backup mode

2017-09-27 Thread Romain Izard
The controller used by a flexcom module is configured at boot, and left alone after this. As the configuration will be lost after backup mode, restore the state of the flexcom driver on resume. Signed-off-by: Romain Izard Acked-by: Nicolas Ferre Tested-by: Nicolas Ferre --- drivers/mfd/atmel-f

Re: [PATCH v1 1/5] clk: tegra: Add AHB DMA clock entry

2017-09-27 Thread Peter De Schrijver
On Tue, Sep 26, 2017 at 05:46:01PM +0300, Dmitry Osipenko wrote: > On 26.09.2017 12:56, Peter De Schrijver wrote: > > On Tue, Sep 26, 2017 at 02:22:02AM +0300, Dmitry Osipenko wrote: > >> AHB DMA presents on Tegra20/30. Add missing entries, so that driver > >> for AHB DMA could be implemented. > >>

[PATCH v3 6/8] pwm: atmel-tcb: Support backup mode

2017-09-27 Thread Romain Izard
Save and restore registers for the PWM on suspend and resume, which makes hibernation and backup modes possible. Signed-off-by: Romain Izard Acked-by: Nicolas Ferre --- drivers/pwm/pwm-atmel-tcb.c | 63 +++-- 1 file changed, 61 insertions(+), 2 deletions(

[PATCH v3 4/8] mtd: nand: atmel: Avoid ECC errors when leaving backup mode

2017-09-27 Thread Romain Izard
During backup mode, the contents of all registers will be cleared as the SoC will be completely powered down. For a product that boots on NAND Flash memory, the bootloader will obviously use the related controller to read the Flash and correct any detected error in the memory, before handling back

[PATCH] [media] radio-si470x: make si470x_viddev_template const

2017-09-27 Thread Bhumika Goyal
Make this const as it is only used in a copy operation in the files referencing it. Add const to declaration in the header too. Structure found using Coccienlle and changes done by hand. Signed-off-by: Bhumika Goyal --- drivers/media/radio/si470x/radio-si470x-common.c | 2 +- drivers/media/radi

[PATCH v3 5/8] ehci-atmel: Power down during suspend is normal

2017-09-27 Thread Romain Izard
When an Atmel SoC is suspended with the backup mode, the USB bus will be powered down. As this is expected, do not return an error to the driver core when ehci_resume detects it. Signed-off-by: Romain Izard Acked-by: Nicolas Ferre --- drivers/usb/host/ehci-atmel.c | 3 ++- 1 file changed, 2 ins

Re: [PATCH 4.13 015/109] pinctrl/amd: save pin registers over suspend/resume

2017-09-27 Thread Greg Kroah-Hartman
On Tue, Sep 26, 2017 at 04:07:45PM +0200, Petr Mladek wrote: > On Sun 2017-09-24 22:32:36, Greg Kroah-Hartman wrote: > > 4.13-stable review patch. If anyone has any objections, please let me know. > > > > -- > > > > From: Daniel Drake > > > > commit 79d2c8bede2c93f9432d7da0bc2f

[PATCH v3 0/8] Various patches for SAMA5D2 backup mode

2017-09-27 Thread Romain Izard
While the core of the backup mode for SAMA5D2 has been integrated in v4.13, it is far from complete. Individual controllers in the chip have drivers that do not support the reset of the registers during suspend, and they need to be adapted to handle it. The first patch uses the clock wakeup code f

[PATCH v3 2/8] clk: at91: pmc: Save SCSR during suspend

2017-09-27 Thread Romain Izard
The contents of the System Clock Status Register (SCSR) needs to be restored into the System Clock Enable Register (SCER). As the bootloader will restore some clocks by itself, the issue can be missed as only the USB controller, the LCD controller, the Image Sensor controller and the programmable

Re: [PATCH 4.4 50/53] ntb_transport: fix qp count bug

2017-09-27 Thread Greg Kroah-Hartman
On Tue, Sep 26, 2017 at 11:35:04AM -0600, Logan Gunthorpe wrote: > > > On 26/09/17 10:32 AM, Ben Hutchings wrote: > > In 4.4-stable, it doesn't, so this patch doesn't fix anything. It looks > > like 4.4 would need a backport of: > > Yup, look like the Fixes tag should have been b17faba0 instead

[PATCH v3 3/8] clk: at91: pmc: Support backup for programmable clocks

2017-09-27 Thread Romain Izard
From: Romain Izard When an AT91 programmable clock is declared in the device tree, register it into the Power Management Controller driver. On entering suspend mode, the driver saves and restores the Programmable Clock registers to support the backup mode for these clocks. Signed-off-by: Romain

Re: [PATCH 1/6] mm: add kmalloc_array_node and kcalloc_node

2017-09-27 Thread Michal Hocko
On Wed 27-09-17 10:20:33, Johannes Thumshirn wrote: > We have kmalloc_array() and kcalloc() wrappers on top of kmalloc() which > ensure us overflow free multiplication for the size of a memory > allocation but these implementations are not NUMA-aware. > > Likewise we have kmalloc_node() which is a

Re: [PATCH 1/2] pinctrl: Allow a device to indicate when to force a state

2017-09-27 Thread Charles Keepax
On Tue, Sep 26, 2017 at 10:51:14AM -0700, Florian Fainelli wrote: > On 09/26/2017 07:16 AM, Charles Keepax wrote: > > On Fri, Sep 22, 2017 at 09:57:22AM -0700, Florian Fainelli wrote: > >> On 09/22/2017 06:20 AM, Charles Keepax wrote: > >>> On Fri, Sep 22, 2017 at 01:55:22PM +0200, Linus Walleij wr

Re: [PATCH v5 1/6] timekeeper: introduce extended clocksource reading callback

2017-09-27 Thread Thomas Gleixner
On Tue, 26 Sep 2017, Paolo Bonzini wrote: > On 26/09/2017 00:00, Thomas Gleixner wrote: > >> + * @read_with_stamp: saves cycles value (got from timekeeper) and > >> cycles > >> + *stamp (got from hardware counter value and used > >> by > >> + *

Re: [PATCH] Call xen_cleanhighmap() with 4MB aligned for page tables mapping

2017-09-27 Thread Juergen Gross
On 27/09/17 05:03, Zhenzhong Duan wrote: > When bootup a PVM guest with large memory(Ex.240GB), XEN provided initial > mapping overlaps with kernel module virtual space. When mapping in this space > is cleared by xen_cleanhighmap(), in certain case there could be an 2MB > mapping > left. This is d

Re: [PATCH 1/6] mm: add kmalloc_array_node and kcalloc_node

2017-09-27 Thread Christopher Lameter
On Wed, 27 Sep 2017, Johannes Thumshirn wrote: > +static inline void *kmalloc_array_node(size_t n, size_t size, gfp_t flags, > +int node) > +{ > + if (size != 0 && n > SIZE_MAX / size) > + return NULL; > + if (__builtin_constant_p(n) && __bui

Re: [PATCH] firmware: dmi_scan: Drop dmi_initialized

2017-09-27 Thread Jean Delvare
Hi Peter, On Mon, 25 Sep 2017 11:26:44 +0200, Peter Zijlstra wrote: > On Mon, Sep 25, 2017 at 11:00:11AM +0200, Jean Delvare wrote: > > Then we have that in common. While reading the code and its history, I > > was worried that the justification to add this warning in the first > > place was techn

Re: [PATCH 2/6] block: use kmalloc_array_node

2017-09-27 Thread Christopher Lameter
Reviewed-by: Christoph Lameter

Re: [PATCH 3/6] IB/qib: use kmalloc_array_node

2017-09-27 Thread Christopher Lameter
Reviewed-by: Christoph Lameter

Re: [PATCH] platform/x86: intel-hid: Power button suspend on Dell Latitude 7275

2017-09-27 Thread Andy Shevchenko
On Wed, Sep 27, 2017 at 10:31 AM, Darren Hart wrote: > On Mon, Sep 25, 2017 at 01:57:48PM +0300, Andy Shevchenko wrote: >> On Sat, Sep 23, 2017 at 2:45 AM, Darren Hart wrote: >> > On Mon, Sep 18, 2017 at 12:57:12AM +0200, Jérôme de Bretagne wrote: >> >> >> + if (event == 0xce) { >> >>

[PATCH v2 01/17] phy: qcom-qmp: Fix phy pipe clock gating

2017-09-27 Thread Manu Gautam
From: Vivek Gautam Pipe clock comes out of the phy and is available as long as the phy is turned on. Clock controller fails to gate this clock after the phy is turned off and generates a warning. / # [ 33.048561] gcc_usb3_phy_pipe_clk status stuck at 'on' [ 33.048585] [ cut here

[PATCH v2 03/17] phy: qcom-qmp: Power-on PHY before initialization

2017-09-27 Thread Manu Gautam
PHY must be powered on before turning ON clocks and attempting to initialize it. Driver is exposing separate init and power_on routines for this. Apparently USB dwc3 core driver performs power-on after init. Also, poweron and init for QMP PHY need to be executed together always, hence remove powero

[PATCH v2 02/17] phy: qcom-qmp: Adapt to clk_bulk_* APIs

2017-09-27 Thread Manu Gautam
From: Vivek Gautam Move from using array of clocks to clk_bulk_* APIs that are available now. Signed-off-by: Vivek Gautam Signed-off-by: Manu Gautam --- drivers/phy/qualcomm/phy-qcom-qmp.c | 50 - 1 file changed, 16 insertions(+), 34 deletions(-) diff --gi

[PATCH v2 05/17] phy: qcom-qmp: Fix PHY block reset sequence

2017-09-27 Thread Manu Gautam
PHY block or asynchronous reset requires signal to be asserted before de-asserting. Driver is only de-asserting signal which is already low, hence reset operation is a no-op. Fix this by asserting signal first. Also, resetting requires PHY clocks to be turned ON only after reset is finished. Fix th

[PATCH v2 06/17] phy: qcom-qmp: Move SERDES/PCS START after PHY reset

2017-09-27 Thread Manu Gautam
Driver is currently performing PHY reset after starting SERDES/PCS. As per hardware datasheet reset must be done before starting PHY. Hence, update the sequence. Signed-off-by: Manu Gautam --- drivers/phy/qualcomm/phy-qcom-qmp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff -

[PATCH v2 07/17] phy: qcom-qusb2: Add support for different register layouts

2017-09-27 Thread Manu Gautam
New version of QUSB2 PHY has some registers offset changed. Add support to have register layout for a target and update the same in phy_configuration. Signed-off-by: Manu Gautam --- drivers/phy/qualcomm/phy-qcom-qusb2.c | 131 -- 1 file changed, 95 insertions(+),

[PATCH v2 04/17] phy: qcom-qusb2: Power-on PHY before initialization

2017-09-27 Thread Manu Gautam
PHY must be powered on before turning ON clocks and attempting to initialize it. Driver is exposing separate init and power_on routines for this. Apparently USB dwc3 core driver performs power-on after init. Also, poweron and init for QUSB2 PHY need to be executed together always, hence remove powe

[PATCH v2 09/17] phy: qcom-qusb2: Add support for QUSB2 V2 version

2017-09-27 Thread Manu Gautam
Use register layout to add additional registers present on QUSB2 PHY V2 version for PHY initialization. Other than new registers on V2, following two register's offset and bit definitions are different: POWERDOWN control and PLL_STATUS. Signed-off-by: Manu Gautam --- drivers/phy/qualcomm/phy-qco

[PATCH v2 13/17] phy: qcom-qmp: Add support for QMP V3 USB3 PHY

2017-09-27 Thread Manu Gautam
QMP V3 USB3 PHY is a DP USB combo PHY with dual RX/TX lanes to support type-c. There is a separate block DP_COM for configuration related to type-c or DP. Add support for dp_com region and secondary rx/tx lanes initialization. Signed-off-by: Manu Gautam --- drivers/phy/qualcomm/phy-qcom-qmp.c |

[PATCH v2 12/17] dt-bindings: phy-qcom-qmp: Update bindings for QMP V3 USB PHY

2017-09-27 Thread Manu Gautam
Update compatible string and clock names for QMP version V3 USB PHY. Signed-off-by: Manu Gautam --- Documentation/devicetree/bindings/phy/qcom-qmp-phy.txt | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/phy/qcom-qmp-phy.txt b/Documentat

[PATCH v2 16/17] phy: qcom-qmp: Override lane0_power_present signal in device mode

2017-09-27 Thread Manu Gautam
lane0_power_present signal must be asserted of hardware to operate properly in SS device mode. On some platforms where VBUS line is not connected to SS QMP PHY there is SS_PHY_CTRL register in QSCRATCH wrapper that can be used by software to override VBUS. Signed-off-by: Manu Gautam --- drivers/

[PATCH v2 15/17] phy: qcom-qusb2: Add support for runtime PM

2017-09-27 Thread Manu Gautam
Disable clocks and dp/dm asynchronous interrupts from PHY as part of runtime suspend. Signed-off-by: Manu Gautam --- drivers/phy/qualcomm/phy-qcom-qusb2.c | 159 ++ 1 file changed, 159 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-qusb2.c b/drivers/ph

[PATCH v2 17/17] phy: qcom-qmp: Add support for runtime PM

2017-09-27 Thread Manu Gautam
Disable clocks as part of PHY suspend. This also requires enabling PHY autonomous mode to detect lfps/rx_det in suspend state. Signed-off-by: Manu Gautam --- drivers/phy/qualcomm/phy-qcom-qmp.c | 182 +++- drivers/phy/qualcomm/phy-qcom-qmp.h | 3 + 2 files chang

Re: [PATCH v9] ACPI / init: Invoke early ACPI initialization earlier

2017-09-27 Thread Borislav Petkov
On Wed, Sep 13, 2017 at 05:17:54PM +0800, Dou Liyang wrote: > Linux uses acpi_early_init() to put the ACPI table management into the > late stage from the early stage. This two stages are different. the > mapped ACPI tables in early stage is temporary and should be unmapped, > but in late stage, it

Re: [PATCH 6/6] rds: ib: use kmalloc_array_node

2017-09-27 Thread Christopher Lameter
Reviewed-by: Christoph Lameter

  1   2   3   4   5   6   7   8   9   >