[PATCH v5 5/5] crypto: Add zstd support

2017-08-09 Thread Nick Terrell
Adds zstd support to crypto and scompress. Only supports the default level. Signed-off-by: Nick Terrell --- crypto/Kconfig | 9 ++ crypto/Makefile | 1 + crypto/testmgr.c | 10 +++ crypto/testmgr.h | 71 +++ crypto/zstd.c| 265

Re: [PATCH v3] scheduler: enhancement to show_state_filter and SysRq

2017-08-09 Thread Yafang Shao
2017-08-10 0:42 GMT+08:00 Peter Zijlstra : > On Wed, Aug 09, 2017 at 05:26:14PM +0800, Yafang Shao wrote: >> 2017-08-09 17:09 GMT+08:00 Peter Zijlstra : >> > On Wed, Aug 09, 2017 at 04:01:49PM +0800, Yafang Shao wrote: >> >> 2017-08-09 15:43 GMT+08:00 Peter Zijlstra : >> >> > On Wed, Aug 09, 2017 a

Re: [PATCH v06 30/36] uapi rdma/rdma_user_rxe.h: include in.h and in6.h

2017-08-09 Thread Dmitry V. Levin
On Wed, Aug 09, 2017 at 09:52:41AM -0600, Jason Gunthorpe wrote: > On Wed, Aug 09, 2017 at 04:48:08PM +0300, Moni Shoua wrote: > > > > > > I'm not sure this is a good idea, linux/in.h should not be included in > > > userspace users of this file, 'sockaddr_in' needs to come from glibc's > > > 'netin

Re: [PATCH v4 0/4] Add support for ThunderX2 pmu events using json files

2017-08-09 Thread Ganapatrao Kulkarni
can this be merged/queued to next, if no further comments please? On Wed, Jul 26, 2017 at 8:19 AM, Zhangshaokun wrote: > > Hi Ganapat > > I have tested patch-v4 on Hisilicon's hip08 board for implementation defined > PMU events, > and it works, So > Tested-by: Shaokun Zhang > > Thanks. > Shaoku

[RFC][PATCH] usb: dwc2: Error out of dwc2_hsotg_ep_disable() if we're in host mode

2017-08-09 Thread John Stultz
We've found that while in host mode on HiKey using Android, if one runs the command: stop adbd The existing usb devices being utilized in host mode are disconnected. This is most visible with usb networking devices. This seems to be due to adbd closing the file: /dev/usb-ffs/adb/ep0 Which cal

[PATCH v2] arm64: arch_timer: avoid infinite recursion when ftrace is enabled

2017-08-09 Thread Ding Tianhong
On platforms with an arch timer erratum workaround, it's possible for arch_timer_reg_read_stable() to recurse into itself when certain tracing options are enabled, leading to stack overflows and related problems. For example, when PREEMPT_TRACER and FUNCTION_GRAPH_TRACER are selected, it's possibl

Re: [PATCH 4.9 00/93] 4.9.42-stable review

2017-08-09 Thread Sumit Semwal
Hi Greg, On 9 August 2017 at 23:42, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.42 release. > There are 93 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

Re: [PATCH v1 2/6] fs: use on-stack-bio if backing device has BDI_CAP_SYNC capability

2017-08-09 Thread Matthew Wilcox
On Wed, Aug 09, 2017 at 11:41:50AM +0900, Minchan Kim wrote: > On Tue, Aug 08, 2017 at 07:31:22PM -0700, Matthew Wilcox wrote: > > On Wed, Aug 09, 2017 at 10:51:13AM +0900, Minchan Kim wrote: > > > On Tue, Aug 08, 2017 at 06:29:04AM -0700, Matthew Wilcox wrote: > > > > On Tue, Aug 08, 2017 at 05:49

Re: [PATCH v1 2/6] fs: use on-stack-bio if backing device has BDI_CAP_SYNC capability

2017-08-09 Thread Dan Williams
On Wed, Aug 9, 2017 at 8:04 PM, Matthew Wilcox wrote: > On Wed, Aug 09, 2017 at 11:41:50AM +0900, Minchan Kim wrote: >> On Tue, Aug 08, 2017 at 07:31:22PM -0700, Matthew Wilcox wrote: >> > On Wed, Aug 09, 2017 at 10:51:13AM +0900, Minchan Kim wrote: >> > > On Tue, Aug 08, 2017 at 06:29:04AM -0700,

Re: [PATCH] usb: gadget: udc: renesas_usb3: fix error return code in renesas_usb3_probe()

2017-08-09 Thread Gustavo A. R. Silva
Hi Yoshihiro, On 08/09/2017 06:44 AM, Yoshihiro Shimoda wrote: Hi Gustavo, Thank you for the patch! I'm glad to help :) -Original Message- From: Gustavo A. R. Silva Sent: Wednesday, August 9, 2017 7:35 AM platform_get_irq() returns an error code, but the renesas_usb3 driver ignore

Re: [PATCH RESEND1 00/12] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-08-09 Thread Takashi Sakamoto
Hi, On Aug 7 2017 21:22, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko This patch series adds support for Xen [1] para-virtualized sound frontend driver. It implements the protocol from include/xen/interface/io/sndif.h with the following limitations: - mute/unmute is not support

Re: [PATCH] f2fs: introduce cur_reserved_blocks in sysfs

2017-08-09 Thread Chao Yu
On 2017/8/8 21:43, Yunlong Song wrote: > In this patch, we add a new sysfs interface, we can use it to gradually > achieve > the reserved_blocks finally, even when reserved_blocks is initially set over > user_block_count - total_valid_block_count. This is very useful, especially > when > we upgra

Re: [PATCH] iio: accel: Bugfix to enbale and allow different events to work parallely.

2017-08-09 Thread Harinath Nampally
On Mon, 31 Jul 2017 07:17:38 -0400 Harinath Nampally wrote: This driver supports multiple devices like mma8653, mma8652, mma8452, mma8453 and fxls8471. Almost all these devices have more than one event. Current driver design hardcodes the event specific information, so only one event can be s

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

2017-08-09 Thread Shilpasri G Bhat
In P9, OCC (On-Chip-Controller) supports shared memory based commad-response interface. Within the shared memory there is an OPAL command buffer and OCC response buffer that can be used to send inband commands to OCC. The following commands are supported: 1) Set system powercap 2) Set CPU-GPU powe

[PATCH V11 3/3] powernv: Add support to clear sensor groups data

2017-08-09 Thread Shilpasri G Bhat
Adds support for clearing different sensor groups. OCC inband sensor groups like CSM, Profiler, Job Scheduler can be cleared using this driver. The min/max of all sensors belonging to these sensor groups will be cleared. Signed-off-by: Shilpasri G Bhat --- .../bindings/powerpc/opal/sensor-groups

[PATCH V11 2/3] powernv: Add support to set power-shifting-ratio

2017-08-09 Thread Shilpasri G Bhat
This patch adds support to set power-shifting-ratio which hints the firmware how to distribute/throttle power between different entities in a system (e.g CPU v/s GPU). This ratio is used by OCC for power capping algorithm. Signed-off-by: Shilpasri G Bhat --- Documentation/ABI/testing/sysfs-firmw

[PATCH V11 1/3] powernv: powercap: Add support for powercap framework

2017-08-09 Thread Shilpasri G Bhat
Adds a generic powercap framework to change the system powercap inband through OPAL-OCC command/response interface. Signed-off-by: Shilpasri G Bhat --- .../ABI/testing/sysfs-firmware-opal-powercap | 31 +++ arch/powerpc/include/asm/opal-api.h| 3 + arch/powerpc/include/a

Re: [PATCH] iio: accel: Bugfix to enbale and allow different events to work parallely.

2017-08-09 Thread Harinath Nampally
On Mon, 31 Jul 2017 07:17:38 -0400 Harinath Nampally wrote: This driver supports multiple devices like mma8653, mma8652, mma8452, mma8453 and fxls8471. Almost all these devices have more than one event. Current driver design hardcodes the event specific information, so only one event can be s

Re: [PATCH v2] arm64: arch_timer: avoid infinite recursion when ftrace is enabled

2017-08-09 Thread Ding Tianhong
add Danial and Thomas. On 2017/8/10 10:52, Ding Tianhong wrote: > On platforms with an arch timer erratum workaround, it's possible for > arch_timer_reg_read_stable() to recurse into itself when certain > tracing options are enabled, leading to stack overflows and related > problems. > > For exam

Re: [PATCH v8 00/14] lockdep: Implement crossrelease feature

2017-08-09 Thread Byungchul Park
On Thu, Aug 10, 2017 at 09:55:56AM +0900, Byungchul Park wrote: > On Wed, Aug 09, 2017 at 05:50:59PM +0200, Peter Zijlstra wrote: > > > > > > Heh, look what it does... > > It does not happen in my machine.. > > I tihink it happens because of "Simplify xhlock ring buffer invalidation" > patch of

Re: [PATCH] iio: accel: Bugfix to enbale and allow different events to work parallely.

2017-08-09 Thread Harinath Nampally
My only suggestion for adding all these chips' orientation features, is to start the discussion independently from this driver. Are there other device series that provide such an orientation interrupt? Is it worth finding a representation in iio? Given the number of accelerometers these days have

Re: [linux-sunxi] [PATCH 1/3] arm64: allwinner: a64: add ethernet0 alias for BPi M64 EMAC node

2017-08-09 Thread Chen-Yu Tsai
Hi, On Sat, Jul 22, 2017 at 10:28 AM, Icenowy Zheng wrote: > The Banana Pi M64 board uses the A64 chip's EMAC to provide Ethernet > link. > > Add the ethernet0 alias in the device tree, in order to let U-Boot > generate a MAC address from the chip's SID. > > Signed-off-by: Icenowy Zheng As ment

Re: [PATCH v4 05/12] Documentation: net: phy: Add phy-is-internal binding

2017-08-09 Thread Chen-Yu Tsai
On Thu, Aug 10, 2017 at 8:20 AM, Andrew Lunn wrote: > On Wed, Aug 09, 2017 at 03:47:34PM -0700, Florian Fainelli wrote: >> On August 9, 2017 5:10:30 AM PDT, David Wu wrote: >> >Add the documentation for internal phy. A boolean property >> >indicates that a internal phy will be used. >> > >> >Sign

Re: [PATCH] f2fs: introduce cur_reserved_blocks in sysfs

2017-08-09 Thread Yunlong Song
I think the aim of reserved_blocks function is to leave space for f2fs and FTL, so I change it to a soft version so that it can be used to fit to the data image which does not satisfy the hard version, especially for backward compatibility when updated kernel with new default reserved_blocks set

Re: [PATCH v1 2/6] fs: use on-stack-bio if backing device has BDI_CAP_SYNC capability

2017-08-09 Thread Minchan Kim
On Wed, Aug 09, 2017 at 08:04:33PM -0700, Matthew Wilcox wrote: > On Wed, Aug 09, 2017 at 11:41:50AM +0900, Minchan Kim wrote: > > On Tue, Aug 08, 2017 at 07:31:22PM -0700, Matthew Wilcox wrote: > > > On Wed, Aug 09, 2017 at 10:51:13AM +0900, Minchan Kim wrote: > > > > On Tue, Aug 08, 2017 at 06:29

Re: [lkp-robot] [mm] 7674270022: will-it-scale.per_process_ops -19.3% regression

2017-08-09 Thread Minchan Kim
On Wed, Aug 09, 2017 at 10:59:02AM +0800, Ye Xiaolong wrote: > On 08/08, Minchan Kim wrote: > >On Mon, Aug 07, 2017 at 10:51:00PM -0700, Nadav Amit wrote: > >> Nadav Amit wrote: > >> > >> > Minchan Kim wrote: > >> > > >> >> Hi, > >> >> > >> >> On Tue, Aug 08, 2017 at 09:19:23AM +0800, kernel t

Re: [lkp-robot] [mm] 7674270022: will-it-scale.per_process_ops -19.3% regression

2017-08-09 Thread Nadav Amit
Minchan Kim wrote: > On Wed, Aug 09, 2017 at 10:59:02AM +0800, Ye Xiaolong wrote: >> On 08/08, Minchan Kim wrote: >>> On Mon, Aug 07, 2017 at 10:51:00PM -0700, Nadav Amit wrote: Nadav Amit wrote: > Minchan Kim wrote: > >> Hi, >> >> On Tue, Aug 08, 2017 at 09:19:

Re: [lkp-robot] [mm] 7674270022: will-it-scale.per_process_ops -19.3% regression

2017-08-09 Thread Minchan Kim
On Wed, Aug 09, 2017 at 09:14:50PM -0700, Nadav Amit wrote: Hi Nadav, < snip > > > According to the description it is "testcase:brk increase/decrease of > > one > > page”. According to the mode it spawns multiple processes, not threads. > > > > Since a single page is unmapp

[PATCH 2/2] cpufreq: schedutil: Always process remote callback with slow switching

2017-08-09 Thread Viresh Kumar
The frequency update from the utilization update handlers can be divided into two parts: (A) Finding the next frequency (B) Updating the frequency While any CPU can do (A), (B) can be restricted to a group of CPUs only, depending on the current platform. For platforms where fast cpufreq switchin

[PATCH 1/2] cpufreq: schedutil: Don't restrict kthread to related_cpus unnecessarily

2017-08-09 Thread Viresh Kumar
Utilization update callbacks are now processed remotely, even on the CPUs that don't share cpufreq policy with the target CPU (if dvfs_possible_from_any_cpu flag is set). But in non-fast switch paths, the frequency is changed only from one of policy->related_cpus. This happens because the kthread

Re: [PATCH RFC v2] Add /proc/pid/smaps_rollup

2017-08-09 Thread Minchan Kim
On Wed, Aug 09, 2017 at 05:15:57PM -0700, Daniel Colascione wrote: > /proc/pid/smaps_rollup is a new proc file that improves the > performance of user programs that determine aggregate memory > statistics (e.g., total PSS) of a process. > > Android regularly "samples" the memory usage of various p

Re: [PATCH] osq_lock: fix osq_lock queue corruption

2017-08-09 Thread Andrea Parri
On Mon, Jul 31, 2017 at 10:54:50PM +0530, Prateek Sood wrote: > Fix ordering of link creation between node->prev and prev->next in > osq_lock(). A case in which the status of optimistic spin queue is > CPU6->CPU2 in which CPU6 has acquired the lock. > > tail > v > ,-. <- ,-. >

Re: [linux-sunxi] [PATCH 1/3] arm64: allwinner: a64: add ethernet0 alias for BPi M64 EMAC node

2017-08-09 Thread Icenowy Zheng
于 2017年8月10日 GMT+08:00 上午11:56:02, Chen-Yu Tsai 写到: >Hi, > >On Sat, Jul 22, 2017 at 10:28 AM, Icenowy Zheng >wrote: >> The Banana Pi M64 board uses the A64 chip's EMAC to provide Ethernet >> link. >> >> Add the ethernet0 alias in the device tree, in order to let U-Boot >> generate a MAC address

[PATCH] drm/sun4i: use of_graph_get_remote_endpoint()

2017-08-09 Thread Kuninori Morimoto
From: Kuninori Morimoto Now, we can use of_graph_get_remote_endpoint(). Let's use it. Signed-off-by: Kuninori Morimoto --- - Not tested drivers/gpu/drm/sun4i/sun4i_backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_backend.c b/drivers/g

[PATCH] device property: use of_graph_get_remote_endpoint() for of_fwnode

2017-08-09 Thread Kuninori Morimoto
From: Kuninori Morimoto Now, we can use of_graph_get_remote_endpoint(). Let's use it. Signed-off-by: Kuninori Morimoto --- - not tested drivers/of/property.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/of/property.c b/drivers/of/property.c index 067f9fa..ad

Re: [PATCH v2] f2fs: add app/fs io stat

2017-08-09 Thread Jaegeuk Kim
Hi Chao, I've fixed the below in f2fs.git. On 08/02, Chao Yu wrote: > From: Chao Yu > > This patch enables inner app/fs io stats and introduces below virtual fs > nodes for exposing stats info: > /sys/fs/f2fs//iostat_enable > /proc/fs/f2fs//iostat_info > > Signed-off-by: Chao Yu > --- > v2: >

[PATCH linux-next v5 1/1] spi: imx: dynamic burst length adjust for PIO mode

2017-08-09 Thread Jiada Wang
previously burst length (BURST_LENGTH) is always set to equal to bits_per_word, causes a 10us gap between each word in transfer, which significantly affects performance. This patch uses 32 bits transfer to simulate lower bits transfer, and adjusts burst length runtimely to use biggeest burst lengt

[PATCH v2 0/3] ASoC: rockchip: Parse dai links from dts

2017-08-09 Thread Jeffy Chen
Currently we are using a fixed list of dai links in the driver. This serial of patches would let the driver parse dai links from dts, so that we can disable some of them for future boards in the dts. Tested on my chromebook bob(with cros 4.4 kernel), it still works after disabled rt5514 codec in

[PATCH v2 1/3] ASoC: rockchip: Parse dai links from dts

2017-08-09 Thread Jeffy Chen
Refactor rockchip_sound_probe, parse dai links from dts instead of hard coding them. Signed-off-by: Jeffy Chen --- Changes in v2: Let rockchip,codec-names be a required property, because we plan to add more supported codecs to the fixed dai link list in the driver. sound/soc/rockchip/rk3399_gr

[PATCH v2 2/3] arm64: dts: rockchip: Add rockchip,codec-names property

2017-08-09 Thread Jeffy Chen
Add rockchip,codec-names property for codecs. Signed-off-by: Jeffy Chen --- Changes in v2: None arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi index d4

[PATCH v2 3/3] dt-bindings: ASoC: rockchip: Add rockchip,codec-names property

2017-08-09 Thread Jeffy Chen
Add a new rockchip,codec-names property, so that the driver can parse the codecs by name. Signed-off-by: Jeffy Chen --- Changes in v2: Let rockchip,codec-names be a required property. Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.txt | 2 ++ 1 file changed, 2 insertions(+)

Re: [PATCH] cpufreq: x86: Disable interrupts during MSRs reading

2017-08-09 Thread Len Brown
thanks, Doug! Rafael, Reviewed-by: Len Brown On Tue, Aug 8, 2017 at 5:12 PM, Doug Smythies wrote: > According to Intel 64 and IA-32 Architectures SDM, Volume 3, > Chapter 14.2, "Software needs to exercise care to avoid delays > between the two RDMSRs (for example interrupts)". > > So, disable

Re: [PATCH 3/3] ACPI / scan: Enable GPEs before scanning the namespace

2017-08-09 Thread Lukas Wunner
On Thu, Aug 10, 2017 at 12:34:23AM +0200, Rafael J. Wysocki wrote: > --- linux-pm.orig/drivers/acpi/scan.c > +++ linux-pm/drivers/acpi/scan.c > @@ -2139,6 +2139,10 @@ int __init acpi_scan_init(void) > acpi_get_spcr_uart_addr(); > } > > + acpi_gpe_apply_masked_gpes(

[PATCH v2] memory: mtk-smi: Handle return value of clk_prepare_enable

2017-08-09 Thread Arvind Yadav
clk_prepare_enable() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- changes in v2: Rebase patch[1]https://lkml.org/lkml/2017/8/3/968 and apply this change. Otherwise will merge conflict. drivers/memory/mtk-smi.c | 5 - 1 file chan

Re: [PATCH 1/7] mtd: spi-nor: cadence-quadspi: add a delay in write sequence

2017-08-09 Thread Vignesh R
On Thursday 10 August 2017 05:35 AM, Rob Herring wrote: > On Tue, Aug 01, 2017 at 10:24:28AM +0530, Vignesh R wrote: >> As per 66AK2G02 TRM[1] SPRUHY8F section 11.15.5.3 Indirect Access >> Controller programming sequence, a delay equal to couple QSPI master >> clock(~5ns) is required after settin

Re: [PATCH 2/7] mtd: spi-nor: cadence-quadspi: Add support to enable loopback clock circuit

2017-08-09 Thread Vignesh R
On Thursday 10 August 2017 05:40 AM, Rob Herring wrote: > On Tue, Aug 01, 2017 at 10:24:29AM +0530, Vignesh R wrote: >> Cadence QSPI IP has a adapted loopback circuit which can be enabled by >> setting BYPASS field to 0 in READCAPTURE register. It enables use of >> QSPI return clock to latch the

[GIT] Sparc

2017-08-09 Thread David Miller
Please pull to get these sparc changes: 1) Recognize M8 cpus, just basic chip ID matching, from Allen Pais. 2) Prevent crashes when bringing up sunvdc virtual block devices in some environments. From Jim Quigley. Thanks! The following changes since commit 0a23ea65ce9f10ec2ea392571006b781b1

Re: [PATCH v2 0/4] ipmi: bt-i2c: added IPMI Block Transfer over I2C

2017-08-09 Thread Brendan Higgins
On Wed, Aug 9, 2017 at 7:26 PM, Corey Minyard wrote: > On 08/09/2017 08:04 PM, Brendan Higgins wrote: >>> >>> Perhaps that is some level of abuse, but it's pretty common. I'm not >>> against it. >>> >>> There is standard IPMI firmware NetFN (though no commands defined) that >>> if >>> you use >>>

Re: [PATCH 1/7] mtd: spi-nor: cadence-quadspi: add a delay in write sequence

2017-08-09 Thread Vignesh R
On Thursday 10 August 2017 05:38 AM, Rob Herring wrote: > On Tue, Aug 01, 2017 at 10:24:28AM +0530, Vignesh R wrote: >> As per 66AK2G02 TRM[1] SPRUHY8F section 11.15.5.3 Indirect Access >> Controller programming sequence, a delay equal to couple QSPI master >> clock(~5ns) is required after settin

Re: [RFC v1 4/4] ipmi_bmc: bt-aspeed: port driver to IPMI BMC framework

2017-08-09 Thread Brendan Higgins
On Wed, Aug 9, 2017 at 7:31 PM, Jeremy Kerr wrote: > Hi Brendan, > >> The driver was handling interaction with userspace on its own. This >> patch changes it to use the functionality of the ipmi_bmc framework >> instead. >> >> Note that this removes the ability for the BMC to set SMS_ATN by making

[PATCH] KVM: X86: Fix residual mmio emulation request to userspace

2017-08-09 Thread Wanpeng Li
Reported by syzkaller: The kvm-intel.unrestricted_guest=0 WARNING: CPU: 5 PID: 1014 at /home/kernel/data/kvm/arch/x86/kvm//x86.c:7227 kvm_arch_vcpu_ioctl_run+0x38b/0x1be0 [kvm] CPU: 5 PID: 1014 Comm: warn_test Tainted: GW OE 4.13.0-rc3+ #8 RIP: 0010:kvm_arch_vcpu_ioctl_run+0x

Re: kvm: WARNING in kvm_arch_vcpu_ioctl_run

2017-08-09 Thread Wanpeng Li
2017-08-10 1:07 GMT+08:00 Dmitry Vyukov : > Hello, > > syzkaller fuzzer has hit the following WARNING in kvm_arch_vcpu_ioctl_run. > This is easily reproducible and reproducer is attached at the bottom. > The report is on upstream commit > 26c5cebfdb6ca799186f1e56be7d6f2480c5012c. This requires sett

Re: [PATCH] PCI: dwc: dra7xx: fix error return code in dra7xx_pcie_probe()

2017-08-09 Thread Kishon Vijay Abraham I
On Wednesday 09 August 2017 09:46 PM, Gustavo A. R. Silva wrote: > platform_get_irq() returns an error code, but the pci-dra7xx driver > ignores it and always returns -EINVAL. This is not correct and, > prevents -EPROBE_DEFER from being propagated properly. > > Print and propagate the return val

Re: unregister_netdevice: waiting for eth0 to become free. Usage count = 1

2017-08-09 Thread Wei Wang
Hi John, Is it possible to try the attached patch? I am not sure if it actually fixes the issue. But I think it is worth a try. Also, could you get me all the ipv6 routes when you plug in the usb using "ip -6 route show"? (If you have multiple routing tables configured, could you dump them all?)

Re: [PATCH] net: dsa: make dsa_switch_ops const

2017-08-09 Thread David Miller
From: Bhumika Goyal Date: Wed, 9 Aug 2017 10:34:15 +0530 > Make these structures const as they are only stored in the ops field of > a dsa_switch structure, which is const. > Done using Coccinelle. > > Signed-off-by: Bhumika Goyal Applied, thank you.

Re: [PATCH] atm: make atmdev_ops const

2017-08-09 Thread David Miller
From: Bhumika Goyal Date: Wed, 9 Aug 2017 14:49:15 +0530 > Make these structures const as they are either passed to the function > atm_dev_register having the corresponding argument as const or stored in > the ops field of a atm_dev structure, which is also const. > Done using Coccinelle. > > S

Re: [PATCH] net: atm: make atmdev_ops const

2017-08-09 Thread David Miller
From: Bhumika Goyal Date: Wed, 9 Aug 2017 15:02:08 +0530 > Make these const as they are only stored in the ops field of a atm_dev > structure, which is const. > Done using Coccinelle. > > Signed-off-by: Bhumika Goyal Applied.

Re: [PATCH 0/2] net-next: mediatek: bring up QDMA RX ring 0

2017-08-09 Thread David Miller
From: John Crispin Date: Wed, 9 Aug 2017 12:09:30 +0200 > The MT7623 has several DMA rings. Inside the SW path, the core will use > the PDMA when receiving traffic. While bringing up the HW path we noticed > that the PPE requires the QDMA RX to also be brought up as it uses this > ring internall

Re: [PATCH 0/4] net-next: dsa: fix flow dissection

2017-08-09 Thread David Miller
From: John Crispin Date: Wed, 9 Aug 2017 14:41:15 +0200 > RPS and probably other kernel features are currently broken on some if not > all DSA devices. The root cause of this is that skb_hash will call the > flow_dissector. At this point the skb still contains the magic switch > header and the s

Re: [PATCH v13 1/5] Introduce xbitmap

2017-08-09 Thread Wei Wang
On 08/10/2017 05:36 AM, Andrew Morton wrote: On Thu, 3 Aug 2017 14:38:15 +0800 Wei Wang wrote: From: Matthew Wilcox The eXtensible Bitmap is a sparse bitmap representation which is efficient for set bits which tend to cluster. It supports up to 'unsigned long' worth of bits, and this commi

Re: [RFT v2] mfd: exynos-lpass: Handle return value of clk_prepare_enable

2017-08-09 Thread Krzysztof Kozlowski
On Wed, Aug 09, 2017 at 10:18:10AM +0530, Arvind Yadav wrote: > clk_prepare_enable() can fail here and we must check its return value. > we must call pm_runtime_disable() and pm_runtime_set_suspended(), > If exynos_lpass_probe is not successful. > > Signed-off-by: Arvind Yadav > --- > changes in

Re: [PATCH v2] f2fs: add app/fs io stat

2017-08-09 Thread Chao Yu
Hi Jaegeuk, On 2017/8/10 12:45, Jaegeuk Kim wrote: > Hi Chao, > > I've fixed the below in f2fs.git. Thank you fox fixing it. :) Thanks,

Re: [PATCH 4.12 004/106] scsi: sg: fix SG_DXFER_FROM_DEV transfers

2017-08-09 Thread Johannes Thumshirn
On Wed, Aug 09, 2017 at 09:51:48AM -0700, Greg KH wrote: > 4.12-stable review patch. If anyone has any objections, please let me know. Yep I do, please don't use this one. It has a follow up/was superseded by: f930c7043663 ("scsi: sg: only check for dxfer_len greater than 256M") in Linus' tree (

Re: [PATCH 0/3] drm: make drm_connector_funcs structures const

2017-08-09 Thread Bhumika Goyal
On Wed, Aug 9, 2017 at 10:07 PM, Daniel Vetter wrote: > On Wed, Aug 09, 2017 at 04:02:45PM +0530, Archit Taneja wrote: >> >> >> On 08/08/2017 04:58 PM, Bhumika Goyal wrote: >> > Declare drm_connector_funcs structures as const. >> >> Could you rebase this series over the latest drm-misc-next? The >

Re: [RFT v2] mfd: exynos-lpass: Handle return value of clk_prepare_enable

2017-08-09 Thread Marek Szyprowski
Hi All, On 2017-08-10 08:01, Krzysztof Kozlowski wrote: On Wed, Aug 09, 2017 at 10:18:10AM +0530, Arvind Yadav wrote: clk_prepare_enable() can fail here and we must check its return value. we must call pm_runtime_disable() and pm_runtime_set_suspended(), If exynos_lpass_probe is not successful.

[PATCH v2] iio: adc: Fix coding style violations

2017-08-09 Thread Michal Simek
From: Sai Krishna Potthuri This patch fix following checkpatch warnings in xadc driver 1. prefer 'unsigned int' to bare use of 'unsigned'. 2. else is not generally useful after a break or return. 3. fill all function definition arguments with identifier name Signed-off-by: Sai Krishna Potthuri

linux-next: Tree for Aug 10

2017-08-09 Thread Stephen Rothwell
Hi all, Changes since 20170809: The rpmsg tree gained a conflict against the qcom tree. I again reverted a commit from the staging tree that was causing overnight build failures. Non-merge commits (relative to Linus' tree): 5133 5277 files changed, 207997 insertions(+), 107977 dele

Re: [PATCH] iio: adc: Fix coding style violations

2017-08-09 Thread Michal Simek
On 8.8.2017 17:52, Joe Perches wrote: > On Tue, 2017-08-08 at 14:04 +0200, Michal Simek wrote: >> From: Sai Krishna Potthuri > [] >> diff --git a/drivers/iio/adc/xilinx-xadc.h b/drivers/iio/adc/xilinx-xadc.h > [] >> @@ -76,7 +76,7 @@ struct xadc_ops { >> int (*setup)(struct platform_device *p

[PATCH] VFS: lookup path of "-o remount" the same way as "umount"

2017-08-09 Thread NeilBrown
"mount -o remount" does not need to validate the target directory for the same reasons that "umount" doesn't. It just needs to find the mountpoint and verify it is a mountpount. So change do_mount() to use user_path_mountpoint_at() in the MS_REMOUNT case. This means that mount(.., MS_REMOUNT|MS

[PATCH v4 0/7] PCI: MediaTek: Add host controller support for mt2712 and mt7622

2017-08-09 Thread honghui.zhang
From: Honghui Zhang MediaTek's PCIe host controller has two generation HWs, MT2712 and MT7622 using the new generation HW, which has two root ports. They share most probing flow with MT2701/MT7623. But the read/write config space logical is different. The per-port registers must be touched for re

[PATCH v4 2/7] PCI: mediatek: make the parameter and function names more accurate

2017-08-09 Thread honghui.zhang
From: Honghui Zhang Rename "port->index" to "port->slot" since the ports are hardwired at PCI_SLOT. Also rename "mtk_pcie_parse_ports" to "mtk_pcie_parse_port" since it parses one port each time. No functional change in this patch. Signed-off-by: Honghui Zhang --- drivers/pci/host/pcie-mediat

[PATCH v4 6/7] PCI: mediatek: Add controller support for mt2712 and mt7622

2017-08-09 Thread honghui.zhang
From: Ryder Lee MT2712 and MT7622 using a new IP block of Gen2 controller which has two root ports and shares the same probing flow with MT2701/MT7623. Both MT2712 and MT7622 have the same per-port control registers, but there are slight differences between them: MT7622 has more clocks than MT27

[PATCH v4 7/7] dt-bindings: PCI: add support for mt2712 and mt7622

2017-08-09 Thread honghui.zhang
From: Ryder Lee Add controller support for mt2712/mt7622 and update related properities. Signed-off-by: Ryder Lee Signed-off-by: Honghui Zhang Acked-by: Rob Herring --- .../devicetree/bindings/pci/mediatek-pcie.txt | 168 - 1 file changed, 161 insertions(+), 7 deleti

[PATCH v4 3/7] PCI: mediatek: Add a structure to abstract the controller generations

2017-08-09 Thread honghui.zhang
From: Honghui Zhang Introduce a structure "mtk_pcie_soc" to abstract the differences between controller generations, and the .startup() hook is used to encapsulate some SoC-dependent related setting. In doing so, the common code which will be reused by future chips. Signed-off-by: Ryder Lee Sig

[PATCH v4 5/7] dt-bindings: PCI: rename and cleanup MediaTek binding text

2017-08-09 Thread honghui.zhang
From: Ryder Lee In order to accommodate other SoC generations, this patch updates filename to make it more generic, regroups specific properties by SoCs, and removes redundant descriptions. Signed-off-by: Ryder Lee Signed-off-by: Honghui Zhang Acked-by: Rob Herring --- ...{mediatek,mt7623-pc

[PATCH v4 4/7] PCI: mediatek: switch to use platform_get_resource_byname()

2017-08-09 Thread honghui.zhang
From: Ryder Lee This is a transitional patch. We currently use platfarm_get_resource() for retrieving the IOMEM resources, but there might be some chips don't have subsys/shared registers part, which depends on platform design, and these will be introduced in further patches. Switch this functio

RE: [v6] wlcore: add missing nvs file name info for wilink8

2017-08-09 Thread Reizer, Eyal
> > > > Sorry for top posting (mobile...) > > I have verified with system design and the data sheet that every wilink 6/7 > chip has a mac address in fuse so probably the board you have (pretty old, > right?) has this mac address in fuse. Maybe it was from very early batches? > Anyway I see no reas

[PATCH v4 1/7] PCI: mediatek: Using readl_poll_timeout to wait Gen2 training

2017-08-09 Thread honghui.zhang
From: Ryder Lee Wait Gen2 training by using readl_poll_timeout() calls, and simplify the hardware assert logical by merge it into the new interface mtk_pcie_startup_port. Signed-off-by: Ryder Lee Signed-off-by: Honghui Zhang --- drivers/pci/host/pcie-mediatek.c | 52 +-

[PATCH v5 2/7] dt-bindings: clk: at91: add audio plls to the compatible list

2017-08-09 Thread Quentin Schulz
This new clock driver set allows to have a fractional divided clock that would generate a precise clock particularly suitable for audio applications. The main audio pll clock has two children clocks: one that is connected to the PMC, the other that can directly drive a pad. As these two routes hav

[PATCH v5 0/7] add support for Sama5d2 audio PLLs and enable ClassD

2017-08-09 Thread Quentin Schulz
This patch series adds support for the audio PLLs and enables ClassD that can be found in ATMEL Sama5d2 SoC. There are two audio PLLs (PMC and PAD) that shares the same parent (FRAC). FRAC can output between 620 and 700MHz and only multiply the rate of its parent. The two audio PLLs then divide th

[PATCH v5 6/7] ASoC: atmel-classd: remove aclk clock from DT binding

2017-08-09 Thread Quentin Schulz
Since gclk (generated-clk) is now able to determine the rate of the audio_pll, there is no need for classd to have a direct phandle to the audio_pll while already having a phandle to gclk. This binding is used by no board in mainline so it is safe to be modified. Signed-off-by: Quentin Schulz Ac

[PATCH v5 1/7] clk: at91: clk-generated: remove useless divisor loop

2017-08-09 Thread Quentin Schulz
The driver requests the current clk rate of each of its parent clocks to decide whether a clock rate is suitable or not. It does not request determine_rate from a parent clock which could request a rate change in parent clock (i.e. there is no parent rate propagation). We know the rate we want (pa

[PATCH v5 5/7] clk: at91: clk-generated: make gclk determine audio_pll rate

2017-08-09 Thread Quentin Schulz
This allows gclk to determine audio_pll rate and set the parent rate accordingly. However, there are multiple children clocks that could technically change the rate of audio_pll (via gck). With the rate locking, the first consumer to enable the clock will be the one definitely setting the rate of

[PATCH v5 3/7] clk: at91: add audio pll clock drivers

2017-08-09 Thread Quentin Schulz
This new clock driver set allows to have a fractional divided clock that would generate a precise clock particularly suitable for audio applications. The main audio pll clock has two children clocks: one that is connected to the PMC, the other that can directly drive a pad. As these two routes hav

[PATCH v5 7/7] ASoC: atmel-classd: remove aclk clock

2017-08-09 Thread Quentin Schulz
Since gclk (generated-clk) is now able to determine the rate of the audio_pll, there is no need for classd to have a direct phandle to the audio_pll while already having a phandle to gclk. Thus, remove all mentions to aclk in classd driver and update macros and variable names. Signed-off-by: Quen

[PATCH v5 4/7] clk: at91: clk-generated: create function to find best_diff

2017-08-09 Thread Quentin Schulz
The way to find the best_diff and do the appropriate process afterwards can be re-used. This patch prepares the driver for an upcoming patch that will allow clk_generated to determine the rate of the audio_pll. Signed-off-by: Quentin Schulz Acked-by: Boris Brezillon Acked-by: Nicolas Ferre ---

Re: [PATCH 0/4] net-next: dsa: fix flow dissection

2017-08-09 Thread Eric Dumazet
On Wed, 2017-08-09 at 22:52 -0700, David Miller wrote: > From: John Crispin > Date: Wed, 9 Aug 2017 14:41:15 +0200 > > > RPS and probably other kernel features are currently broken on some if not > > all DSA devices. The root cause of this is that skb_hash will call the > > flow_dissector. At th

Re: [PATCH 1/7] iio: srf08: add device tree binding for srf02 and srf10

2017-08-09 Thread Wolfram Sang
> > Documentation/devicetree/bindings/i2c/trivial-devices.txt | 2 ++ trivial-devices.txt has been moved one directory up some months ago. Rebasing to current top-of-tree probably makes sense. signature.asc Description: PGP signature

Re: [PATCH 1/2] cpufreq: schedutil: Don't restrict kthread to related_cpus unnecessarily

2017-08-09 Thread Pavan Kondeti
On Thu, Aug 10, 2017 at 9:50 AM, Viresh Kumar wrote: > Utilization update callbacks are now processed remotely, even on the > CPUs that don't share cpufreq policy with the target CPU (if > dvfs_possible_from_any_cpu flag is set). > > But in non-fast switch paths, the frequency is changed only from

Re: [PATCH] Introduce dmam_zalloc_coherent()

2017-08-09 Thread Marek Szyprowski
Hi Christoph, On 2017-08-09 15:37, Christoph Hellwig wrote: On Tue, Aug 08, 2017 at 11:15:35AM +0200, Michael Moese wrote: All memory allocation functions have a pendant for allocating zeroed memory, but dmam_alloc_coherent does not have such a pendant. However, it is easier to read dmam_zalloc

Re: [RFC PATCH v5 5/5] vfio-pci: Allow to expose MSI-X table to userspace when safe

2017-08-09 Thread David Gibson
On Mon, Aug 07, 2017 at 05:25:48PM +1000, Alexey Kardashevskiy wrote: 1;4803;0c> Some devices have a MSIX BAR not aligned to the system page size > greater than 4K (like 64k for ppc64) which at the moment prevents > such MMIO pages from being mapped to the userspace for the sake of > the MSIX BAR c

Re: [RFC PATCH v5 1/5] iommu: Add capabilities to a group

2017-08-09 Thread David Gibson
On Mon, Aug 07, 2017 at 05:25:44PM +1000, Alexey Kardashevskiy wrote: > This introduces capabilities to IOMMU groups. The first defined > capability is IOMMU_GROUP_CAP_ISOLATE_MSIX which tells the IOMMU > group users that a particular IOMMU group is capable of MSIX message > filtering; this is usef

Re: [PATCH v3 01/11] net: phy: Add rockchip phy driver support

2017-08-09 Thread David.Wu
Hi Andrew, 在 2017/8/2 21:21, Andrew Lunn 写道: +static struct phy_driver rockchip_phy_driver[] = { +{ + .phy_id = 0x1234d400, + .phy_id_mask= 0xfff0, + .name = "Rockchip internal EPHY", + .features = (PHY_BASIC

linux-next: Tree for Aug 9

2017-08-09 Thread Stephen Rothwell
Hi all, Changes since 20170808: The rpmsg tree gained a conflict against the qcom tree. I again reverted a commit from the staging tree that was causing overnight build failures. Non-merge commits (relative to Linus' tree): 4990 5110 files changed, 190078 insertions(+), 104959 deletions(-) --

RE: [char-misc-next] mei: exclude device from suspend direct complete optimization

2017-08-09 Thread Winkler, Tomas
> > From: Alexander Usyskin > > MEI device performs link reset during system suspend sequence. > The link reset cannot be performed while device is in runtime suspend state. > The resume sequence is bypassed with suspend direct complete > optimization,so the optimization should be disabled for

Re: [PATCH v06 05/36] uapi linux/sysctl.h: use __kernel_size_t instead of size_t

2017-08-09 Thread Mikko Rapeli
Hi Dmitry and thanks for the comments. I have only one question: why haven't your patches been applied yet? -Mikko

RE: [v5] wlcore: add missing nvs file name info for wilink8

2017-08-09 Thread Reizer, Eyal
> > > Subject: Re: [v5] wlcore: add missing nvs file name info for wilink8 > > > > * Reizer, Eyal [170807 00:47]: > > > Hi Tony, > > > > > > > > * Reizer, Eyal [170807 00:32]: > > > > > The following commits: > > > > > c815fde wlcore: spi: Populate config firmware data > > > > > d776fc8 wlcore:

[PATCH] futex: Remove unnecessary warning from get_futex_key

2017-08-09 Thread Mel Gorman
Commit 65d8fc777f6d ("futex: Remove requirement for lock_page() in get_futex_key()") removed an unnecessary lock_page() with the side-effect that page->mapping needed to be treated very carefully. Two defensive warnings were added in case any assumption was missed and the first warning assumed a co

Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc allocator

2017-08-09 Thread Igor Stoppa
On 09/08/17 02:15, Jerome Glisse wrote: > On Tue, Aug 08, 2017 at 03:59:36PM +0300, Igor Stoppa wrote: [...] >> I am tempted to add >> >> #define VM_PMALLOC 0x0100 [...] > VM_PMALLOC sounds fine to me also adding a comment there pointing to > pmalloc documentation would be a goo

[PATCH v1] clk: Keep clocks in their initial state until clk_disable_unused() is called

2017-08-09 Thread Elaine Zhang
ome drivers are briefly preparing+enabling the clock in their ->probe() hook and disable+unprepare them before leaving the function. This can be problem if a clock is shared between different devices, and one of these devices is critical to the system. If this clock is enabled/disabled by a non-cr

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