[PATCH] erspan: remove the incorrect mtu limit for erspan

2019-09-26 Thread Haishuang Yan
erspan driver calls ether_setup(), after commit 61e84623ace3 ("net: centralize net_device min/max MTU checking"), the range of mtu is [min_mtu, max_mtu], which is [68, 1500] by default. It causes the dev mtu of the erspan device to not be greater than 1500, this limit value is not correct for ipgr

Re: [GIT PULL] treewide conversion to sizeof_member() for v5.4-rc1

2019-09-26 Thread Alexey Dobriyan
On Thu, Sep 26, 2019 at 01:06:01PM -0700, Linus Torvalds wrote: > On Thu, Sep 26, 2019 at 10:33 AM Kees Cook wrote: > > > > Please pull this mostly mechanical treewide conversion to the single and > > more accurately named sizeof_member() macro for the end of v5.4-rc1. This > > replaces 3 macros o

Re: [PATCH] dt-bindings: timer: Use defines instead of numbers in Exynos MCT examples

2019-09-26 Thread Krzysztof Kozlowski
On Fri, Sep 27, 2019 at 08:36:47AM +0200, Marek Szyprowski wrote: > Hi Krzysztof, > > > timer@1005 { > > compatible = "samsung,exynos4412-mct"; > > reg = <0x1005 0x800>; > > > > -interrupts = <0 57 0>, <0 69 0>, <0 70 0>, <0 71 0>, > > -

RE: [PATCH v5 1/3] x86/hyper-v: Suspend/resume the hypercall page for hibernation

2019-09-26 Thread Dexuan Cui
> From: Vitaly Kuznetsov > Sent: Thursday, September 26, 2019 3:44 AM > > [...] > > +static int hv_suspend(void) > > +{ > > + union hv_x64_msr_hypercall_contents hypercall_msr; > > + > > + /* Reset the hypercall page */ > > + rdmsrl(HV_X64_MSR_HYPERCALL, hypercall_msr.as_uint64); > > + hyp

RE: [PATCH -next 7/8] dmaengine: xilinx_dma: Check for both idle and halted state in axidma stop_transfer

2019-09-26 Thread Radhey Shyam Pandey
> -Original Message- > From: Vinod Koul > Sent: Thursday, September 26, 2019 10:51 PM > To: Radhey Shyam Pandey > Cc: dan.j.willi...@intel.com; Michal Simek ; > nick.graum...@gmail.com; andrea.mere...@gmail.com; Appana Durga > Kedareswara Rao ; mcg...@kernel.org; > dmaeng...@vger.kernel.o

RE: [PATCH v4 5/6] powerpc: Chunk calls to flush_dcache_range in arch_*_memory

2019-09-26 Thread Alastair D'Silva
On Fri, 2019-09-27 at 08:37 +0200, Mark Marshall wrote: > Comment below... > > On Thu, 26 Sep 2019 at 12:18, Alastair D'Silva > wrote: > > From: Alastair D'Silva > > > > When presented with large amounts of memory being hotplugged > > (in my test case, ~890GB), the call to flush_dcache_range ta

Re: [PATCH] Bluetooth: btusb: avoid unused function warning

2019-09-26 Thread Marcel Holtmann
Hi Arnd, > The btusb_rtl_cmd_timeout() function is used inside of an > ifdef, leading to a warning when this part is hidden > from the compiler: > > drivers/bluetooth/btusb.c:530:13: error: unused function > 'btusb_rtl_cmd_timeout' [-Werror,-Wunused-function] > > Use an IS_ENABLED() check inste

Re: [PATCH RFC 1/2] clk: introduce clk_invalidate_rate()

2019-09-26 Thread Neil Armstrong
On 27/09/2019 02:14, Stephen Boyd wrote: > Quoting Neil Armstrong (2019-09-19 03:25:17) >> This introduces the clk_invalidate_rate() call used to recalculate the >> rate and parent tree of a particular clock if it's known that the >> underlying registers set has been altered by the firmware, like f

Re: [PATCH v2 1/1] leds: remove PAGE_SIZE limit of /sys/class/leds//trigger

2019-09-26 Thread Greg Kroah-Hartman
On Sat, Sep 14, 2019 at 12:03:24AM +0900, Akinobu Mita wrote: > Reading /sys/class/leds//trigger returns all available LED triggers. > However, the size of this file is limited to PAGE_SIZE because of the > limitation for sysfs attribute. > > Enabling LED CPU trigger on systems with thousands of C

Re: [PATCH RFC 0/2] clk: meson: g12a: handle clock hw changes while in suspend

2019-09-26 Thread Neil Armstrong
On 26/09/2019 22:46, Kevin Hilman wrote: > Neil Armstrong writes: > >> This serie aime to support when the suspend/resume firmware alters the >> clock tree, leading to an incorrect representation of the clock tree >> after a resume from suspend-to-mem. >> >> For the Amlogic G12A/G12B/SM1 case, th

Re: [PATCH v2 1/1] leds: remove PAGE_SIZE limit of /sys/class/leds//trigger

2019-09-26 Thread Greg Kroah-Hartman
On Tue, Sep 24, 2019 at 11:30:08PM +0200, Jacek Anaszewski wrote: > Hi Greg, > > Akinobu seems to have addressed all issues that have been > raised regarding this patch. I'd be happy to have your ack before > applying it. You have to wait until after -rc1 is out before doing anything, so there's

Re: [PATCH v4 5/6] powerpc: Chunk calls to flush_dcache_range in arch_*_memory

2019-09-26 Thread Mark Marshall
Comment below... On Thu, 26 Sep 2019 at 12:18, Alastair D'Silva wrote: > > From: Alastair D'Silva > > When presented with large amounts of memory being hotplugged > (in my test case, ~890GB), the call to flush_dcache_range takes > a while (~50 seconds), triggering RCU stalls. > > This patch brea

Re: [PATCH] dt-bindings: timer: Use defines instead of numbers in Exynos MCT examples

2019-09-26 Thread Marek Szyprowski
Hi Krzysztof, On 26.09.2019 20:36, Krzysztof Kozlowski wrote: > Make the examples in Exynos Multi Core Timer bindings more readable and > bring them closer to real DTS by using defines for interrupt flags. > > Suggested-by: Marek Szyprowski > Signed-off-by: Krzysztof Kozlowski > > --- > > Rebase

RE: [PATCH v4] memory_hotplug: Add a bounds check to __add_pages

2019-09-26 Thread Alastair D'Silva
On Thu, 2019-09-26 at 09:46 +0200, David Hildenbrand wrote: > On 26.09.19 09:43, Michal Hocko wrote: > > On Thu 26-09-19 09:12:50, David Hildenbrand wrote: > > > On 26.09.19 03:34, Alastair D'Silva wrote: > > > > From: Alastair D'Silva > > > > > > > > On PowerPC, the address ranges allocated to O

Re: [PATCH] xhci: Increase STS_SAVE timeout in xhci_suspend()

2019-09-26 Thread Mathias Nyman
On 26.9.2019 20.57, Kai-Heng Feng wrote: After commit f7fac17ca925 ("xhci: Convert xhci_handshake() to use readl_poll_timeout_atomic()"), ASMedia xHCI may fail to suspend. Although the algorithms are essentially the same, the old max timeout is (usec + usec * time of doing readl()), and the new

[PATCH v2 1/3] selftests: netfilter: add ipvs test script

2019-09-26 Thread Haishuang Yan
Test virutal server via directing routing for IPv4. Tested: # selftests: netfilter: ipvs.sh # Testing DR mode... # ipvs.sh: PASS ok 6 selftests: netfilter: ipvs.sh Signed-off-by: Haishuang Yan --- v2: optimize test script --- tools/testing/selftests/netfilter/Makefile | 2 +- tools/testing/s

[PATCH v2 2/3] selftests: netfilter: add ipvs nat test case

2019-09-26 Thread Haishuang Yan
Test virtual server via NAT. Tested: # selftests: netfilter: ipvs.sh # Testing DR mode... # Testing NAT mode... # ipvs.sh: PASS Signed-off-by: Haishuang Yan --- tools/testing/selftests/netfilter/ipvs.sh | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/t

[PATCH v2 0/3] selftests: netfilter: introduce test cases for ipvs

2019-09-26 Thread Haishuang Yan
This series patch include test cases for ipvs. The test topology is who as below: +--+ | | | | ns0 | ns1 | | ---

Re: [PATCH] drm/omap: Migrate minimum FCK/PCK ratio from Kconfig to dts

2019-09-26 Thread Tomi Valkeinen
On 26/09/2019 17:12, Adam Ford wrote: And what is the hdmi5_configure there? I don't see anything in the driver that would print hdmi5_configure. And, of course, there's no hdmi5 on that platform. Hmm, ok... it's from component.c, using "%ps". Somehow that goes wrong. Which is a bit alarming, bu

[PATCH v2 3/3] selftests: netfilter: add ipvs tunnel test case

2019-09-26 Thread Haishuang Yan
Test virtual server via ipip tunnel. Tested: # selftests: netfilter: ipvs.sh # Testing DR mode... # Testing NAT mode... # Testing Tunnel mode... # ipvs.sh: PASS ok 6 selftests: netfilter: ipvs.sh Signed-off-by: Haishuang Yan --- v2: optimize test script --- tools/testing/selftests/netfilter/ipv

Re: [PATCH v3] arm64: use generic free_initrd_mem()

2019-09-26 Thread Anshuman Khandual
On 09/25/2019 10:39 AM, Mike Rapoport wrote: > From: Mike Rapoport > > arm64 calls memblock_free() for the initrd area in its implementation of > free_initrd_mem(), but this call has no actual effect that late in the boot > process. By the time initrd is freed, all the reserved memory is manage

Re: [PATCH] binfmt_elf: Do not move brk for INTERP-less ET_EXEC

2019-09-26 Thread Richard Kojedzinszky
Hi, Thanks for the fix, again. I am not familiar with the code here, I suspect the intent was to fix or improve something. That happens sometimes, that things get broken. I am happy that I could report it, and it got fixed quickly. Thanks again, Richard 2019-09-26 20:37 időpontban Kees Coo

[PATCH 1/3] ARM: dts: add Netronix E60K02 board common file

2019-09-26 Thread Andreas Kemnade
The Netronix board E60K02 can be found some several Ebook-Readers, at least the Kobo Clara HD and the Tolino Shine 3. The board is equipped with different SoCs. For now the following peripherals are included: - LED - Power Key - Cover (gpio via hall sensor) - RC5T619 PMIC (the kernel misses suppor

[PATCH 0/3] dts: ARM: add Kobo Clara HD eBook reader

2019-09-26 Thread Andreas Kemnade
This adds a device tree for the Kobo Clara HD eBook reader. Name on mainboard is: 37NB-E60K00+4A4 Serials start with: E60K02 (a number also seen in vendor kernel sources) These boards are also found in the Tolino Shine 3 reader but equipped with a i.MX6SL processor. Support for that device is plann

[PATCH 3/3] ARM: dts: imx: add devicetree for Kobo Clara HD

2019-09-26 Thread Andreas Kemnade
This adds a devicetree for the Kobo Clara HD Ebook reader. It is on based on boards called "e60k02". It is equipped with an imx6sll SoC. Signed-off-by: Andreas Kemnade --- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/imx6sll-kobo-clarahd.dts | 275 +

[PATCH 2/3] dt-bindings: arm: fsl: add compatible string for Kobo Clara HD

2019-09-26 Thread Andreas Kemnade
This adds a compatible string fro the Kobo Clara HD eBook reader. Signed-off-by: Andreas Kemnade --- Documentation/devicetree/bindings/arm/fsl.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fsl.yaml

Re: [PATCH 1/2] dt-bindings: clock: meson: add A1 clock controller bindings

2019-09-26 Thread Jian Hu
Hi, Jerome Thank you for review. On 2019/9/25 22:29, Jerome Brunet wrote: On Wed 25 Sep 2019 at 19:44, Jian Hu wrote: In addition to the comment expressed by Stephen on patch 2 got it. Add the documentation to support Amlogic A1 clock driver, and add A1 clock controller bindings. Signed-o

Re: [PATCH v1 0/5] Add Tiger Lake/Elkhart Lake support to pmc_core driver

2019-09-26 Thread Andy Shevchenko
On Fri, Sep 27, 2019 at 9:01 AM Andy Shevchenko wrote: > On Thu, Sep 26, 2019 at 9:43 PM Gayatri Kammela > wrote: > > Thank you for the series, I'll comment them later. > > For now, check how to properly setup prefix for all patches. The Title > all broken. > On top of that the fully inconsisten

[PATCH v2] async: Let kfree() out of the critical area of the lock

2019-09-26 Thread Yunfeng Ye
The async_lock is big global lock, and kfree() is not always cheap, it will increase lock contention. it's better let kfree() outside the lock to keep the critical area as short as possible. Signed-off-by: Yunfeng Ye Reviewed-by: Alexander Duyck Reviewed-by: Bart Van Assche --- v1 -> v2: - upd

Re: [PATCH v1 0/5] Add Tiger Lake/Elkhart Lake support to pmc_core driver

2019-09-26 Thread Andy Shevchenko
On Thu, Sep 26, 2019 at 9:43 PM Gayatri Kammela wrote: Thank you for the series, I'll comment them later. For now, check how to properly setup prefix for all patches. The Title all broken. > Patch 1: Cleans up termination lines > Patch 2: Refactor driver for ease of adding new SoCs > Patch 3: R

RE: [PATCH v5 3/3] clocksource/drivers: Suspend/resume Hyper-V clocksource for hibernation

2019-09-26 Thread Dexuan Cui
> From: Daniel Lezcano > Sent: Thursday, September 26, 2019 6:17 AM > >> > >> I can take this patch if needed. > > > > Thanks, Daniel! Usually tglx takes care of the patches, but it looks > > recently he > > may be too busy to handle the 3 patches. > > > > I guess you can take the patch, if tglx

Re: [PATCH v2 3/3] RISC-V: Move SBI related macros under uapi.

2019-09-26 Thread Anup Patel
On Fri, Sep 27, 2019 at 5:39 AM Atish Patra wrote: > > All SBI related macros can be reused by KVM RISC-V and userspace tools > such as kvmtool, qemu-kvm. SBI calls can also be emulated by userspace > if required. Any future vendor extensions can leverage this to emulate > the specific extension i

Re: [PATCH v2 2/3] RISC-V: Add basic support for SBI v0.2

2019-09-26 Thread Anup Patel
On Fri, Sep 27, 2019 at 5:39 AM Atish Patra wrote: > > The SBI v0.2 introduces a base extension which is backward compatible > with v0.1. Implement all helper functions and minimum required SBI > calls from v0.2 for now. All other base extension function will be > added later as per need. > As v0.

Re: [PATCH v2 1/3] RISC-V: Mark existing SBI as 0.1 SBI.

2019-09-26 Thread Anup Patel
On Fri, Sep 27, 2019 at 5:39 AM Atish Patra wrote: > > As per the new SBI specification, current SBI implementation version > is defined as 0.1 and will be removed/replaced in future. Each of the > function call in 0.1 is defined as a separate extension which makes > easier to replace them one at

Re: [PATCH] base: soc: Export soc_device_to_device API

2019-09-26 Thread Greg KH
On Thu, Sep 26, 2019 at 07:33:21AM -0700, mnala...@codeaurora.org wrote: > On 2019-09-23 21:50, Greg KH wrote: > > On Mon, Sep 23, 2019 at 02:35:33PM -0700, mnala...@codeaurora.org wrote: > > > On 2019-09-19 23:10, Greg KH wrote: > > > > On Thu, Sep 19, 2019 at 08:36:51PM -0700, Bjorn Andersson wro

RE: [PATCH] HID: hyperv: Add the support of hibernation

2019-09-26 Thread Dexuan Cui
> From: Jiri Kosina > Sent: Thursday, September 26, 2019 6:23 AM > To: Dexuan Cui > > On Thu, 26 Sep 2019, Jiri Kosina wrote: > > > > > This patch is basically a pure Hyper-V specific change and it has a > > > > build dependency on the commit 271b2224d42f ("Drivers: hv: vmbus: > > > > Implement

[PATCH] reap out the dead mutt config links

2019-09-26 Thread Bhaskar Chowdhury
Signed-off-by: Bhaskar Chowdhury --- Documentation/process/email-clients.rst | 5 - 1 file changed, 5 deletions(-) diff --git a/Documentation/process/email-clients.rst b/Documentation/process/email-clients.rst index 5273d06c8ff6..1f920d445a8b 100644 --- a/Documentation/process/email-clients.

RE: [PATCH net v2] vsock: Fix a lockdep warning in __vsock_release()

2019-09-26 Thread Dexuan Cui
> From: linux-hyperv-ow...@vger.kernel.org > On Behalf Of Stefano Garzarella > Sent: Thursday, September 26, 2019 12:48 AM > > Hi Dexuan, > > On Thu, Sep 26, 2019 at 01:11:27AM +, Dexuan Cui wrote: > > ... > > NOTE: I only tested the code on Hyper-V. I can not test the code for > > virtio so

Re: [PATCH v1] PM / Domains: Add tracepoints

2019-09-26 Thread Greg Kroah-Hartman
On Thu, Sep 26, 2019 at 03:04:38PM -0700, Matthias Kaehlcke wrote: > Define genpd_power_on/off and genpd_set_performance_state > tracepoints and use them. This says _what_ you do, but not _why_ you want to do this. Who is going to use this? What can be done with this information that is needed b

Re: [PATCH] modpost: Copy namespace string into 'struct symbol'

2019-09-26 Thread Greg Kroah-Hartman
On Thu, Sep 26, 2019 at 05:24:46PM -0500, Shaun Ruffell wrote: > When building an out-of-tree module I was receiving many warnings from > modpost like: > > WARNING: module dahdi_vpmadt032_loader uses symbol __kmalloc from namespace > ts/dahdi-linux/drivers/dahdi/dahdi-version.o: ..., but does n

RE: [PATCH -next 3/8] dmaengine: xilinx_dma: Introduce xilinx_dma_get_residue

2019-09-26 Thread Radhey Shyam Pandey
> -Original Message- > From: Vinod Koul > Sent: Thursday, September 26, 2019 10:48 PM > To: Radhey Shyam Pandey > Cc: dan.j.willi...@intel.com; Michal Simek ; > nick.graum...@gmail.com; andrea.mere...@gmail.com; Appana Durga > Kedareswara Rao ; mcg...@kernel.org; > dmaeng...@vger.kernel.o

Re: [PATCH v6 1/5] pinctrl: mediatek: Check gpio pin number and use binary search in mtk_hw_pin_field_lookup()

2019-09-26 Thread Light Hsieh
Dear reviewers: Patch v6 improves v5 by: 1.in mtk_pinconf_get() and mtk_pinconf_set() @pinctrl-paris.c: * check if pin is in range before using pin as array index of hw->soc->pins[] 2.in mtk_pin_field_lookup() @pinctrl-mtk-common-v2.c: * declear start, end, check as signed integer inste

Re: [PATCH v4] memory_hotplug: Add a bounds check to __add_pages

2019-09-26 Thread Alastair D'Silva
On Thu, 2019-09-26 at 09:53 +0200, Oscar Salvador wrote: > On Thu, Sep 26, 2019 at 11:34:05AM +1000, Alastair D'Silva wrote: > > From: Alastair D'Silva > > > > On PowerPC, the address ranges allocated to OpenCAPI LPC memory > > are allocated from firmware. These address ranges may be higher > > t

RE: [PATCH v4 1/2] fpga: fpga-mgr: Add readback support

2019-09-26 Thread Appana Durga Kedareswara Rao
Hi Alan, Did you get a chance to send your framework changes to upstream? @Moritz Fischer: If Alan couldn't send his patch series, Can we take this patch series?? Please let me know your thoughts on this. Regards, Kedar. > On Fri, Jul 27, 2018 at 1:22 AM, Appana Durga Kedareswara rao > wrote:

Re: WARNING in pvr2_i2c_core_done

2019-09-26 Thread Greg Kroah-Hartman
On Thu, Sep 26, 2019 at 05:44:31PM -0400, Alan Stern wrote: > On Wed, 25 Sep 2019, Andrey Konovalov wrote: > > > On Wed, Sep 25, 2019 at 4:10 PM Alan Stern > > wrote: > > > > > > On Wed, 25 Sep 2019, syzbot wrote: > > > > > > > Hello, > > > > > > > > syzbot found the following crash on: > > > >

Re: [PATCH] get_maintainer: Add signatures from Fixes: lines in commit message

2019-09-26 Thread Kees Cook
On Thu, Sep 26, 2019 at 09:46:34PM -0700, Joe Perches wrote: > Fixes: lines in a commit message generally indicate that a > previous commit was inadequate for whatever reason. > > The signers of the previous inadequate commit should also be > cc'd on this new commit so update get_maintainer to fin

[PATCH v6 3/5] pinctrl: mediatek: Refine mtk_pinconf_get() and mtk_pinconf_set()

2019-09-26 Thread Light Hsieh
1.Refine mtk_pinconf_get(): 1.1 Use only one occurrence of return at end of this function. 1.2 Correct cases for PIN_CONFIG_SLEW_RATE, PIN_CONFIG_INPUT_SCHMITT_ENABLE, and PIN_CONFIG_OUTPUT_ENABLE - Use variable ret to receive value in mtk_hw_get_value() (instead of variable val) since

[PATCH v6 5/5] pinctrl: mediatek: Add support for pin configuration dump via debugfs.

2019-09-26 Thread Light Hsieh
Add support for pin configuration dump via catting /sys/kernel/debug/pinctrl/$platform_dependent_path/pinconf-pins. pinctrl framework had already support such dump. This patch implement the operation function pointer to fullfill this dump. --- drivers/pinctrl/mediatek/pinctrl-paris.c | 88 +++

[PATCH v6 4/5] pinctrl: mediatek: Backward compatible to previous Mediatek's bias-pull usage

2019-09-26 Thread Light Hsieh
Refine mtk_pinconf_set()/mtk_pinconf_get() for backward compatibility to previous Mediatek's bias-pull usage. In PINCTRL_MTK that use pinctrl-mtk-common.c, bias-pull setting for pins with 2 pull resistors can be specified as value for bias-pull-up and bias-pull-down. For example: bias-pull-up =

[PATCH v6 2/5] pinctrl: mediatek: Supporting driving setting without mapping current to register value

2019-09-26 Thread Light Hsieh
Mediatek's smarphone project actual usage does need to know current value (in mA) in procedure of finding the best driving setting. The steps in the procedure is like as follow: 1. set driving setting field in setting register as 0, measure waveform, perform test, and etc. 2. set driving settin

[PATCH v6 1/5] pinctrl: mediatek: Check gpio pin number and use binary search in mtk_hw_pin_field_lookup()

2019-09-26 Thread Light Hsieh
1. Check if gpio pin number is in valid range to prevent from get invalid pointer 'desc' in the following code: desc = (const struct mtk_pin_desc *)&hw->soc->pins[gpio]; 2. Use binary search in mtk_hw_pin_field_lookup() Modify mtk_hw_pin_field_lookup() to use binary search for accele

Re: [PATCH] ipc/sem: Fix race between to-be-woken task and waker

2019-09-26 Thread Manfred Spraul
Hi, On 9/26/19 8:12 PM, Waiman Long wrote: On 9/26/19 5:34 AM, Peter Zijlstra wrote: On Fri, Sep 20, 2019 at 11:54:02AM -0400, Waiman Long wrote: While looking at a customr bug report about potential missed wakeup in the system V semaphore code, I spot a potential problem. The fact that semaph

Re: [PATCH] vhost: introduce mdev based hardware backend

2019-09-26 Thread Tiwei Bie
On Fri, Sep 27, 2019 at 11:46:06AM +0800, Jason Wang wrote: > On 2019/9/26 下午12:54, Tiwei Bie wrote: > > + > > +static long vhost_mdev_start(struct vhost_mdev *m) > > +{ > > + struct mdev_device *mdev = m->mdev; > > + const struct virtio_mdev_device_ops *ops = mdev_get_dev_ops(mdev); > > + st

[PATCH v2 1/2] ipvs: batch __ip_vs_cleanup

2019-09-26 Thread Haishuang Yan
It's better to batch __ip_vs_cleanup to speedup ipvs connections dismantle. Signed-off-by: Haishuang Yan --- v2: remove unused pointer list --- include/net/ip_vs.h | 2 +- net/netfilter/ipvs/ip_vs_core.c | 28 net/netfilter/ipvs/ip_vs_ctl.c | 12 +++

[PATCH v2 2/2] ipvs: batch __ip_vs_dev_cleanup

2019-09-26 Thread Haishuang Yan
It's better to batch __ip_vs_cleanup to speedup ipvs devices dismantle. Signed-off-by: Haishuang Yan --- v2: remove unused pointer list --- net/netfilter/ipvs/ip_vs_core.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_core.c b/n

[PATCH v2 0/2] ipvs: speedup ipvs netns dismantle

2019-09-26 Thread Haishuang Yan
Implement exit_batch() method to dismantle more ipvs netns per round. Tested: $ cat add_del_unshare.sh #!/bin/bash for i in `seq 1 100` do (for j in `seq 1 40` ; do unshare -n ipvsadm -A -t 172.16.$i.$j:80 >/dev/null ; done) & done wait; grep net_namespace /proc/slabinfo Befor pa

Re: [PATCH v6] gpio/mpc8xxx: change irq handler from chained to normal

2019-09-26 Thread kbuild test robot
Hi Hui, Thank you for the patch! Yet something to improve: [auto build test ERROR on gpio/for-next] [cannot apply to v5.3 next-20190925] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the ba

[PATCH 1/1] direct-io: Change is_async member of struct dio from int to bool

2019-09-26 Thread Ritesh Harjani
Change is_async member of struct dio from int to bool. Found this during code review. Signed-off-by: Ritesh Harjani --- fs/direct-io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/direct-io.c b/fs/direct-io.c index ae196784f487..b139876653ef 100644 --- a/fs/direct-io.c

[PATCH] get_maintainer: Add signatures from Fixes: lines in commit message

2019-09-26 Thread Joe Perches
Fixes: lines in a commit message generally indicate that a previous commit was inadequate for whatever reason. The signers of the previous inadequate commit should also be cc'd on this new commit so update get_maintainer to find the old commit and add the original signers. Suggested-by: Dan Carpe

[PATCH RESEND 1/1] vfs: Really check for inode ptr in lookup_fast

2019-09-26 Thread Ritesh Harjani
d_is_negative can race with d_instantiate_new() -> __d_set_inode_and_type(). For e.g. in use cases where Thread-1 is creating symlink (doing d_instantiate_new()) & Thread-2 is doing cat of that symlink while doing lookup_fast (via REF-walk- one such case is, when ->permission returns -ECHILD). Dur

RE: [PATCH v2] hv_sock: Add the support of hibernation

2019-09-26 Thread Dexuan Cui
> From: linux-hyperv-ow...@vger.kernel.org > On Behalf Of kbuild test robot > Sent: Thursday, September 26, 2019 9:19 PM > > Hi Dexuan, > > Thank you for the patch! Yet something to improve: > > >> net//vmw_vsock/hyperv_transport.c:970:3: error: 'struct hv_driver' has no > member named 'suspend

RE: [PATCH v2][PATCH net] hv_netvsc: Add the support of hibernation

2019-09-26 Thread Dexuan Cui
> From: linux-hyperv-ow...@vger.kernel.org > On Behalf Of kbuild test robot > Sent: Thursday, September 26, 2019 9:18 PM > > Hi Dexuan, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on net/master] > > 'netvsc_drv.shutdown') > >> drivers/net/hyperv/netvsc_drv

Re: [PATCH v6] gpio/mpc8xxx: change irq handler from chained to normal

2019-09-26 Thread kbuild test robot
Hi Hui, Thank you for the patch! Yet something to improve: [auto build test ERROR on gpio/for-next] [cannot apply to v5.3 next-20190925] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the ba

Re: [PATCH] vhost: introduce mdev based hardware backend

2019-09-26 Thread Tiwei Bie
On Fri, Sep 27, 2019 at 11:51:35AM +0800, Jason Wang wrote: > On 2019/9/27 上午11:46, Jason Wang wrote: > > + > > +static struct mdev_class_id id_table[] = { > > +    { MDEV_ID_VHOST }, > > +    { 0 }, > > +}; > > + > > +static struct mdev_driver vhost_mdev_driver = { > > +    .name    = "vhost_mdev"

Re: Regression in dbdda842fe96 ("printk: Add console owner and waiter logic to load balance console writes") [Was: Regression in fd5f7cde1b85 ("...")]

2019-09-26 Thread Sergey Senozhatsky
On (09/26/19 10:58), Petr Mladek wrote: [..] > > - spin_lock(&sport->port.lock); > > - > > + uart_port_lock_irqsave(&sport->port, flags); > > uart_port_lock_irqsave() does not exist. ... Oh. Good catch! Apparently I still carry around my patch set which added printk_safe to TTY/UART locking A

Re: [PATCH 1/4] MIPS: CI20: DTS: Add I2C nodes

2019-09-26 Thread Alexandre GRIVEAUX
Hello, > Hi Alexandre, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on linus/master] > [cannot apply to v5.3 next-20190920] > [if your patch is applied to the wrong git tree, please drop us a note to help > improve the system. BTW, we also suggest to use '--bas

Re: [PATCH v2] hv_sock: Add the support of hibernation

2019-09-26 Thread kbuild test robot
to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Dexuan-Cui/hv_sock-Add-the-support-of-hibernation/20190926-053950 config: x86_64-rhel-7.6 (attached as .config) compiler: gcc-7 (Debian 7.4.0-13) 7.4.0

Re: [PATCH v2][PATCH net] hv_netvsc: Add the support of hibernation

2019-09-26 Thread kbuild test robot
Hi Dexuan, Thank you for the patch! Yet something to improve: [auto build test ERROR on net/master] url: https://github.com/0day-ci/linux/commits/Dexuan-Cui/hv_netvsc-Add-the-support-of-hibernation/20190926-061258 config: x86_64-rhel-7.6 (attached as .config) compiler: gcc-7 (Debian 7.4.0

Re: [PATCH] dmaengine: bcm-sba-raid: Handle mbox_request_channel failure

2019-09-26 Thread Rayagonda Kokatanur
Hi Vinod, Did you get chance to review this fix? Best regards, Rayagonda On Thu, Jan 10, 2019 at 11:06 PM Ray Jui wrote: > > > > On 1/9/2019 10:07 PM, Rayagonda Kokatanur wrote: > > Fix kernel NULL pointer dereference error when mbox_request_channel() > > fails to allocate channel. > > > > Fix

mainline/master boot bisection: v5.3-12562-g7897c04ad09f on bcm2836-rpi-2-b

2019-09-26 Thread kernelci.org bot
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This automated bisection report was sent to you on the basis * * that you may be involved with the breaking commit it has * * found. No manual investigation has been done to verify it, * * and the root cause of the problem

Re: [PATCH] vhost: introduce mdev based hardware backend

2019-09-26 Thread Jason Wang
On 2019/9/27 上午11:46, Jason Wang wrote: + +static struct mdev_class_id id_table[] = { +    { MDEV_ID_VHOST }, +    { 0 }, +}; + +static struct mdev_driver vhost_mdev_driver = { +    .name    = "vhost_mdev", +    .probe    = vhost_mdev_probe, +    .remove    = vhost_mdev_remove, +    .id_table =

[PATCH 1/2] clk: sprd: Use IS_ERR() to validate the return value of syscon_regmap_lookup_by_phandle()

2019-09-26 Thread Baolin Wang
The syscon_regmap_lookup_by_phandle() will never return NULL, thus use IS_ERR() to validate the return value instead of IS_ERR_OR_NULL(). Signed-off-by: Baolin Wang --- drivers/clk/sprd/common.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/sprd/common.c b/dr

[PATCH 2/2] clk: sprd: Change to use devm_platform_ioremap_resource()

2019-09-26 Thread Baolin Wang
Use the new helper that wraps the calls to platform_get_resource() and devm_ioremap_resource() together, which can simpify the code. Signed-off-by: Baolin Wang --- drivers/clk/sprd/common.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/sprd/common.c b/driv

[PATCH v2 2/2] ptp: Add a ptp clock driver for IDT ClockMatrix.

2019-09-26 Thread vincent . cheng . xh
From: Vincent Cheng The IDT ClockMatrix (TM) family includes integrated devices that provide eight PLL channels. Each PLL channel can be independently configured as a frequency synthesizer, jitter attenuator, digitally controlled oscillator (DCO), or a digital phase lock loop (DPLL). Typically

[PATCH v2 1/2] dt-bindings: ptp: Add bindings doc for IDT ClockMatrix based PTP clock

2019-09-26 Thread vincent . cheng . xh
From: Vincent Cheng Add device tree binding doc for the IDT ClockMatrix PTP clock driver. Co-developed-by: Richard Cochran Signed-off-by: Richard Cochran Signed-off-by: Vincent Cheng --- Changes since v1: - No changes --- Documentation/devicetree/bindings/ptp/ptp-idtcm.txt | 15 +++

Re: [PATCH] vhost: introduce mdev based hardware backend

2019-09-26 Thread Jason Wang
On 2019/9/26 下午12:54, Tiwei Bie wrote: This patch introduces a mdev based hardware vhost backend. This backend is built on top of the same abstraction used in virtio-mdev and provides a generic vhost interface for userspace to accelerate the virtio devices in guest. This backend is implemented

[PATCH] kasan: fix the missing underflow in memmove and memcpy with CONFIG_KASAN_GENERIC=y

2019-09-26 Thread Walter Wu
memmove() and memcpy() have missing underflow issues. When -7 <= size < 0, then KASAN will miss to catch the underflow issue. It looks like shadow start address and shadow end address is the same, so it does not actually check anything. The following test is indeed not caught by KASAN: ch

Please reap out these dead link from the kernel doc

2019-09-26 Thread Bhaskar Chowdhury
I am not sure who is handling this ...stumble over it ...please do the needful Here is url for your reference : https://www.kernel.org/doc/html/latest/process/email-clients.html There are two external urls for mutt config , which are dead ...those are : http://dev.mutt.org/trac/wiki/UseCa

[PATCH] dmaengine: sprd: Change to use devm_platform_ioremap_resource()

2019-09-26 Thread Baolin Wang
Use the new helper that wraps the calls to platform_get_resource() and devm_ioremap_resource() together, which can simpify the code. Signed-off-by: Baolin Wang --- drivers/dma/sprd-dma.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/dma/sprd-dma.c b/drivers/dm

[PATCH v2] async: Using current_work() to implement current_is_async()

2019-09-26 Thread Yunfeng Ye
current_is_async() can be implemented using current_work(), it's better not to be aware of the workqueue's internal information. Signed-off-by: Yunfeng Ye Reviewed-by: Bart Van Assche --- v1 -> v2: - add "Reviewed-by" kernel/async.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-)

Re: [PATCH] vhost: introduce mdev based hardware backend

2019-09-26 Thread Jason Wang
On 2019/9/26 下午9:14, Tiwei Bie wrote: On Thu, Sep 26, 2019 at 04:35:18AM -0400, Michael S. Tsirkin wrote: On Thu, Sep 26, 2019 at 12:54:27PM +0800, Tiwei Bie wrote: [...] diff --git a/include/uapi/linux/vhost.h b/include/uapi/linux/vhost.h index 40d028eed645..5afbc2f08fa3 100644 --- a/includ

[PATCH v6] gpio/mpc8xxx: change irq handler from chained to normal

2019-09-26 Thread Hui Song
From: Song Hui More than one gpio controllers can share one interrupt, change the driver to request shared irq. While this will work, it will mess up userspace accounting of the number of interrupts per second in tools such as vmstat. The reason is that for every GPIO interrupt, /proc/interrupt

Re: [PATCH v3 3/4] mm: don't expose non-hugetlb page to fast gup prematurely

2019-09-26 Thread John Hubbard
On 9/26/19 3:20 AM, Kirill A. Shutemov wrote: > On Wed, Sep 25, 2019 at 04:26:54PM -0600, Yu Zhao wrote: >> On Wed, Sep 25, 2019 at 10:25:30AM +0200, Peter Zijlstra wrote: >>> On Tue, Sep 24, 2019 at 05:24:58PM -0600, Yu Zhao wrote: ... >>> I'm thinking this patch make stuff rather fragile.. Should

Re: [PATCH] net: qrtr: fix memory leak in qrtr_tun_read_iter

2019-09-26 Thread Navid Emamdoost
On Thu, Sep 26, 2019 at 12:21:12AM +0100, Al Viro wrote: > On Wed, Sep 25, 2019 at 06:04:13PM -0500, Navid Emamdoost wrote: > > In qrtr_tun_read_iter we need an error handling path to appropriately > > release skb in cases of error. > > Release _what_ skb? It is not a leak clearly! My bad ... > >

Re: [PATCH] net/ncsi: prevent memory leak in ncsi_rsp_handler_gc

2019-09-26 Thread Navid Emamdoost
On Thu, Sep 26, 2019 at 12:09:38AM +0100, Al Viro wrote: > On Wed, Sep 25, 2019 at 04:58:53PM -0500, Navid Emamdoost wrote: > > In ncsi_rsp_handler_gc if allocation for nc->vlan_filter.vids fails the > > allocated memory for nc->mac_filter.addrs should be released. > > > > Signed-off-by: Navid Ema

[PATCH] nvmem: sc27xx: Change to use devm_hwspin_lock_request_specific() to request one hwlock

2019-09-26 Thread Baolin Wang
Change to use devm_hwspin_lock_request_specific() to help to simplify the cleanup code for drivers requesting one hwlock. Thus we can remove the redundant sc27xx_efuse_remove() and platform_set_drvdata(). Signed-off-by: Baolin Wang --- drivers/nvmem/sc27xx-efuse.c | 13 + 1 file ch

Re: [PATCH 2/2] clk: meson: a1: add support for Amlogic A1 clock driver

2019-09-26 Thread Jian Hu
Hi, Stephen Thank you for review On 2019/9/25 21:12, Stephen Boyd wrote: Quoting Jian Hu (2019-09-25 04:44:48) The Amlogic A1 clock includes three parts: peripheral clocks, pll clocks, CPU clocks. sys pll and CPU clocks will be sent in next patch. Unlike the previous series, there is no EE/AO

[PATCH v3 0/5] clk: rockchip: Support for some new features

2019-09-26 Thread Elaine Zhang
1. Support for some new features 2. fix up some error Chang in V3: [PATCH v2 3/6] : It's been merged So rebased and resubmit. Chang in V2: [PATCH v2 5/6] : fix up the Register error, and add delay. Elaine Zhang (4): clk: rockchip: fix up the frac clk get rate error clk: rockchip: add a clock

[PATCH v3 1/5] clk: rockchip: Add supprot to limit input rate for fractional divider

2019-09-26 Thread Elaine Zhang
From: Finley Xiao >From Rockchips fractional divider usage, some clocks can be generated by fractional divider, but the input clock frequency of fractional divider should be less than a specified value. Signed-off-by: Finley Xiao Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-px30.c

[PATCH v3 4/5] clk: rockchip: add pll up and down when change pll freq

2019-09-26 Thread Elaine Zhang
set pll sequence: ->set pll to slow mode or other plls ->set pll down ->set pll params ->set pll up ->wait pll lock status ->set pll to normal mode To slove the system error: wait_pll_lock: timeout waiting for pll to lock pll_set_params: pll update u

[PATCH v3 2/5] clk: rockchip: fix up the frac clk get rate error

2019-09-26 Thread Elaine Zhang
support fractional divider with only one level parent clock Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/drivers/clk/rockchip/clk.c b/drivers/clk/rockchip/clk.c index fac5a4a3f5c3..8f77c3f9fab7

[PATCH v3 5/5] clk: rockchip: support pll setting by auto

2019-09-26 Thread Elaine Zhang
If setting freq is not support in rockchip_pll_rate_table, It can calculate and set pll params by auto. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-pll.c | 215 ++--- 1 file changed, 200 insertions(+), 15 deletions(-) diff --git a/drivers/clk/roc

[PATCH v3 3/5] clk: rockchip: add a clock-type for muxes based in the pmugrf

2019-09-26 Thread Elaine Zhang
Rockchip socs often have some tiny number of muxes not controlled from the core clock controller but through bits set in the pmugrf. Use MUXPMUGRF() to cover this special clock-type. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk.c | 9 + drivers/clk/rockchip/clk.h | 17 ++

[PATCH] csky: Fixup csky_pmu.max_period assignment

2019-09-26 Thread guoren
From: Mao Han The csky_pmu.max_period has type u64, and BIT() can only return 32 bits unsigned long on C-SKY. The initialization for max_period will be incorrect when count_width is bigger than 32. Use BIG_ULL() Signed-off-by: Mao Han Signed-off-by: Guo Ren --- arch/csky/kernel/perf_event.c

Re: [PATCH] udf: prevent memory leak in udf_new_inode

2019-09-26 Thread Navid Emamdoost
On Thu, Sep 26, 2019 at 10:00:31AM +0200, Jan Kara wrote: > On Wed 25-09-19 23:24:08, Al Viro wrote: > > On Wed, Sep 25, 2019 at 04:39:03PM -0500, Navid Emamdoost wrote: > > > In udf_new_inode if either udf_new_block or insert_inode_locked fials > > > the allocated memory for iinfo->i_ext.i_data sh

Re: [PATCH v2] ASoC: Intel: Skylake: prevent memory leak in snd_skl_parse_uuids

2019-09-26 Thread Navid Emamdoost
On Wed, Sep 25, 2019 at 12:05:28PM -0500, Pierre-Louis Bossart wrote: > On 9/25/19 11:19 AM, Navid Emamdoost wrote: > > In snd_skl_parse_uuids if allocation for module->instance_id fails, the > > allocated memory for module shoulde be released. I changes the > > allocation for module to use devm_kz

Re: [PATCH] scsi: qla2xxx: Remove WARN_ON_ONCE in qla2x00_status_cont_entry()

2019-09-26 Thread Bart Van Assche
On 2019-09-26 00:46, Daniel Wagner wrote: > Commit 88263208dd23 ("scsi: qla2xxx: Complain if sp->done() is not > called from the completion path") introduced the WARN_ON_ONCE in > qla2x00_status_cont_entry(). The assumption was that there is only one > status continuations element. According to the

[PATCH] iio: adc: sc27xx: Use devm_hwspin_lock_request_specific() to simplify code

2019-09-26 Thread Baolin Wang
Change to use devm_hwspin_lock_request_specific() to help to simplify the cleanup code for drivers requesting one hwlock. Signed-off-by: Baolin Wang --- drivers/iio/adc/sc27xx_adc.c | 16 +--- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/drivers/iio/adc/sc27xx_adc.

Re: [PATCH 2/3] KVM: x86: fix nested guest live migration with PML

2019-09-26 Thread Junaid Shahid
On 9/26/19 10:18 AM, Paolo Bonzini wrote: > @@ -1597,8 +1615,11 @@ static bool spte_clear_dirty(u64 *sptep) > > rmap_printk("rmap_clear_dirty: spte %p %llx\n", sptep, *sptep); > > - spte &= ~shadow_dirty_mask; > + WARN_ON(!spte_ad_enabled(spte)); > + if (spte_ad_need_write_pro

Re: [PATCH 1/3] KVM: x86: assign two bits to track SPTE kinds

2019-09-26 Thread Junaid Shahid
On 9/26/19 10:18 AM, Paolo Bonzini wrote: > Currently, we are overloading SPTE_SPECIAL_MASK to mean both > "A/D bits unavailable" and MMIO, where the difference between the > two is determined by mio_mask and mmio_value. > > However, the next patch will need two bits to distinguish > availabilit

  1   2   3   4   5   6   7   >