[PATCH] memcg: Only record foreign writebacks with dirty pages when memcg is not disabled

2019-09-23 Thread Baoquan He
In kdump kernel, memcg usually is disabled with 'cgroup_disable=memory' for saving memory. Now kdump kernel will always panic when dump vmcore to local disk: BUG: kernel NULL pointer dereference, address: 0ab8 PGD 5fcab067 P4D 5fcab067 PUD 5ff73067 PMD 0 Oops: [#1] SMP NOPTI CPU:

Re: [RFC patch 09/15] entry: Provide generic exit to usermode functionality

2019-09-23 Thread Peter Zijlstra
On Thu, Sep 19, 2019 at 05:03:23PM +0200, Thomas Gleixner wrote: > +static unsigned long core_exit_to_usermode_work(struct pt_regs *regs, > + unsigned long ti_work) > +{ > + /* > + * Before returning to user space ensure that all pending work >

Re: [RFC patch 03/15] x86/entry: Use generic syscall entry function

2019-09-23 Thread Peter Zijlstra
On Fri, Sep 20, 2019 at 04:41:03PM -0700, Andy Lutomirski wrote: > On Thu, Sep 19, 2019 at 8:09 AM Thomas Gleixner wrote: > > > > Replace the syscall entry work handling with the generic version, Provide > > the necessary helper inlines to handle the real architecture specific > > parts, e.g.

Re: [PATCH v2 2/2] PCI: pciehp: Prevent deadlock on disconnect

2019-09-23 Thread Mika Westerberg
On Mon, Sep 23, 2019 at 11:12:42AM +0300, Mika Westerberg wrote: > Regarding suggestion of unbinding PCI drivers without > pci_lock_rescan_remove() hold, I haven't looked it too closely but I > think we need to take that lock anyway because when we are unbinding a > hotplug driver it is supposed

Re: [PATCH v2 2/2] PCI: pciehp: Prevent deadlock on disconnect

2019-09-23 Thread Lukas Wunner
On Mon, Sep 23, 2019 at 11:12:37AM +0300, Mika Westerberg wrote: > Regarding suggestion of unbinding PCI drivers without > pci_lock_rescan_remove() hold, I haven't looked it too closely but I > think we need to take that lock anyway because when we are unbinding a > hotplug driver it is supposed

Re: [PATCH v8 3/3] mm: fix double page fault on arm64 if PTE_AF is cleared

2019-09-23 Thread Kirill A. Shutemov
On Sat, Sep 21, 2019 at 09:50:54PM +0800, Jia He wrote: > When we tested pmdk unit test [1] vmmalloc_fork TEST1 in arm64 guest, there > will be a double page fault in __copy_from_user_inatomic of cow_user_page. > > Below call trace is from arm64 do_page_fault for debugging purpose > [

Re: [PATCH 3/4] pwm: mxs: add support for inverse polarity

2019-09-23 Thread Uwe Kleine-König
On Mon, Sep 23, 2019 at 10:13:47AM +0200, Rasmus Villemoes wrote: > If I'm reading of_pwm_xlate_with_flags() right, existing device trees > that set #pwm-cells = 2 will continue to work. > > Signed-off-by: Rasmus Villemoes > --- > drivers/pwm/pwm-mxs.c | 14 ++ > 1 file changed, 10

[Patch V10 0/8] Tegra XUSB gadget driver support

2019-09-23 Thread Nagarjuna Kristam
Patches 1-3 are phy driver changes to add support for device mode. Patches 4-7 are changes related to XUSB device mode controller driver. Patch 8 is to enable drivers for XUDC support in defconfig Test Steps(USB 2.0): - Enable "USB Gadget precomposed configurations" in defconfig - Build, flash

[Patch V10 4/8] dt-bindings: usb: Add NVIDIA Tegra XUSB device mode controller binding

2019-09-23 Thread Nagarjuna Kristam
Add device-tree binding documentation for the XUSB device mode controller present on Tegra210 SoC. This controller supports the USB 3.0 specification. Signed-off-by: Nagarjuna Kristam Reviewed-by: JC Kuo Reviewed-by: Rob Herring Acked-by: Thierry Reding ---

[Patch V10 7/8] usb: gadget: Add UDC driver for tegra XUSB device mode controller

2019-09-23 Thread Nagarjuna Kristam
This patch adds UDC driver for tegra XUSB 3.0 device mode controller. XUSB device mode controller supports SS, HS and FS modes Based on work by: Mark Kuo Hui Fu Andrew Bresticker Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- drivers/usb/gadget/udc/Kconfig | 11

[Patch V10 8/8] arm64: defconfig: Enable tegra XUDC support

2019-09-23 Thread Nagarjuna Kristam
Enable Nvidia XUSB device mode controller driver and USB GPIO Based Connection Detection Driver as module. Signed-off-by: Nagarjuna Kristam --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index

[Patch V10 6/8] arm64: tegra: Enable xudc on Jetson TX1

2019-09-23 Thread Nagarjuna Kristam
Enable XUSB device mode driver for USB0 slot on Jetson TX1. Signed-off-by: Nagarjuna Kristam Reviewed-by: JC Kuo --- arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi | 31 +- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git

[Patch V10 2/8] phy: tegra: xusb: Add usb3 port fake support on Tegra210

2019-09-23 Thread Nagarjuna Kristam
On Tegra210, usb2 only otg/peripheral ports dont work in device mode. They need an assosciated usb3 port to work in device mode. Identify an unused usb3 port and assign it as a fake USB3 port to USB2 only port whose mode is otg/peripheral. Based on work by BH Hsieh . Signed-off-by: Nagarjuna

[Patch V10 3/8] phy: tegra: xusb: Add vbus override support on Tegra210

2019-09-23 Thread Nagarjuna Kristam
Tegra XUSB device control driver needs to control vbus override during its operations, add API for the support. Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- drivers/phy/tegra/xusb-tegra210.c | 58 +++ drivers/phy/tegra/xusb.c | 22

[Patch V10 5/8] arm64: tegra: Add xudc node for Tegra210

2019-09-23 Thread Nagarjuna Kristam
Tegra210 has one XUSB device mode controller, which can be operated HS and SS modes. Add DT support for XUSB device mode controller. Signed-off-by: Nagarjuna Kristam Reviewed-by: JC Kuo --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 19 +++ 1 file changed, 19 insertions(+)

[Patch V10 1/8] phy: tegra: xusb: Add XUSB dual mode support on Tegra210

2019-09-23 Thread Nagarjuna Kristam
Configure the port capabilities based on usb_dr_mode settings. Based on work by JC Kuo . Signed-off-by: Nagarjuna Kristam Reviewed-by: JC Kuo Acked-by: Thierry Reding --- drivers/phy/tegra/xusb-tegra210.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git

Re: [PATCH net-next 05/10] ath: Use dev_get_drvdata where possible

2019-09-23 Thread Kalle Valo
Chuhong Yuan wrote: > Instead of using to_pci_dev + pci_get_drvdata, > use dev_get_drvdata to make code simpler. > > Signed-off-by: Chuhong Yuan > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 5d7e4b4935e4 ath: Use dev_get_drvdata where possible --

Re: [PATCH][next] ath: fix various spelling mistakes

2019-09-23 Thread Kalle Valo
Colin King wrote: > There are a bunch of spelling mistakes in two ath drivers, fix > these. > > Signed-off-by: Colin Ian King > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 80ce8ca7a647 ath: fix various spelling mistakes --

Re: [PATCH 1/4] pwm: mxs: implement ->apply

2019-09-23 Thread Uwe Kleine-König
Hello Rasmus, On Mon, Sep 23, 2019 at 10:13:45AM +0200, Rasmus Villemoes wrote: > In preparation for supporting setting the polarity, switch the driver > to support the ->apply method. > > Signed-off-by: Rasmus Villemoes > --- > drivers/pwm/pwm-mxs.c | 62

Re: Kernel Concurrency Sanitizer (KCSAN)

2019-09-23 Thread Dmitry Vyukov
On Mon, Sep 23, 2019 at 6:31 AM Boqun Feng wrote: > > On Fri, Sep 20, 2019 at 04:54:21PM +0100, Will Deacon wrote: > > Hi Marco, > > > > On Fri, Sep 20, 2019 at 04:18:57PM +0200, Marco Elver wrote: > > > We would like to share a new data-race detector for the Linux kernel: > > > Kernel

[PATCH] mm, debug, kasan: save and dump freeing stack trace for kasan

2019-09-23 Thread Vlastimil Babka
On 9/16/19 5:57 PM, Andrey Ryabinin wrote: > I'd rather keep all logic in one place, i.e. "if (!page_owner_disabled && > (IS_ENABLED(CONFIG_KASAN) || debug_pagealloc_enabled())" > With this no changes in early_debug_pagealloc() required and > CONFIG_DEBUG_PAGEALLOC_ENABLE_DEFAULT=y should also

Re: [PATCH 30/32] tools lib bpf: Renaming pr_warning to pr_warn

2019-09-23 Thread Daniel Borkmann
On Sun, Sep 22, 2019 at 02:07:21PM -0700, Andrii Nakryiko wrote: > On Fri, Sep 20, 2019 at 10:06 AM Kefeng Wang > wrote: > > > > For kernel logging macro, pr_warning is completely removed and > > replaced by pr_warn, using pr_warn in tools lib bpf for symmetry > > to kernel logging macro, then

[PATCH] dt-bindings: fixed-regulator: fix compatible enum

2019-09-23 Thread Philippe Schenker
Remove 'const:' in the compatible enum. This was breaking make dt_binding_check since it has more than one compatible string. Fixes: 9c86d003d620 ("dt-bindings: regulator: add regulator-fixed-clock binding") Signed-off-by: Philippe Schenker ---

Re: [PATCH v10 3/6] mm: Introduce Reported pages

2019-09-23 Thread Michael S. Tsirkin
On Wed, Sep 18, 2019 at 10:52:49AM -0700, Alexander Duyck wrote: > From: Alexander Duyck > > In order to pave the way for free page reporting in virtualized > environments we will need a way to get pages out of the free lists and > identify those pages after they have been returned. To

Re: [PATCH] serdev: Add ACPI devices by ResourceSource field

2019-09-23 Thread Hans de Goede
Hi, On 23-09-2019 00:29, Maximilian Luz wrote: Hi all, On 9/20/19 5:00 PM, Hans de Goede wrote: So as promised I've given this patch a try, unfortunately it breaks existing users of ACPI serdev device instantation. After adding this patch "ls /sys/bus/serial/devices" is empty, where as

[PATCH 0/4] pwm: mxs: add support for setting polarity via DT

2019-09-23 Thread Rasmus Villemoes
This series adds support for setting the polarity via DT to the pwm-mxs driver. The DT binding is updated, but I'm not touching the existing .dts or .dtsi files - it seems that the same was done for bcm2835 in commits 46421d9d8e802e570dfa4d793a4938d2642ec7a7 and

[PATCH 3/4] pwm: mxs: add support for inverse polarity

2019-09-23 Thread Rasmus Villemoes
If I'm reading of_pwm_xlate_with_flags() right, existing device trees that set #pwm-cells = 2 will continue to work. Signed-off-by: Rasmus Villemoes --- drivers/pwm/pwm-mxs.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/pwm/pwm-mxs.c

[PATCH 1/4] pwm: mxs: implement ->apply

2019-09-23 Thread Rasmus Villemoes
In preparation for supporting setting the polarity, switch the driver to support the ->apply method. Signed-off-by: Rasmus Villemoes --- drivers/pwm/pwm-mxs.c | 62 +++ 1 file changed, 62 insertions(+) diff --git a/drivers/pwm/pwm-mxs.c

[PATCH 4/4] dt-bindings: pwm: mxs-pwm: Increase #pwm-cells

2019-09-23 Thread Rasmus Villemoes
We need to increase the pwm-cells for the optional flags parameter, in order to implement support for polarity setting via DT. Signed-off-by: Rasmus Villemoes --- Documentation/devicetree/bindings/pwm/mxs-pwm.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 2/4] pwm: mxs: remove legacy methods

2019-09-23 Thread Rasmus Villemoes
Since we now have ->apply, these are no longer relevant. Signed-off-by: Rasmus Villemoes --- drivers/pwm/pwm-mxs.c | 77 --- 1 file changed, 77 deletions(-) diff --git a/drivers/pwm/pwm-mxs.c b/drivers/pwm/pwm-mxs.c index c70c26a9ff68..284107784dad

[PATCH] sample/hw_breakpoint: avoid sample hw_breakpoint recursion for arm/arm64

2019-09-23 Thread wangxu
From: Wang Xu For x86/ppc, hw_breakpoint is triggered after the instruction is executed. For arm/arm64, which is triggered before the instruction executed. Arm/arm64 skips the instruction by using single step. But it only supports default overflow_handler. This patch provides a chance to avoid

Re: [PATCH v2 2/2] PCI: pciehp: Prevent deadlock on disconnect

2019-09-23 Thread Mika Westerberg
Hi Lukas, On Mon, Sep 23, 2019 at 07:34:03AM +0200, Lukas Wunner wrote: > On Mon, Aug 12, 2019 at 05:31:33PM +0300, Mika Westerberg wrote: > > If there are more than one PCIe switch with hotplug downstream ports > > hot-removing them leads to a following deadlock: > > For the record, I think my

Re: [PATCH] EDAC: Armada XP: Use devm_platform_ioremap_resource() in two functions

2019-09-23 Thread Robert Richter
Hi Markus, On 21.09.19 17:57:24, Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 21 Sep 2019 17:50:17 +0200 > > Simplify these function implementations by using a known function. > > This issue was detected by using the Coccinelle software. Which semantic patch did you use here?

Re: [LTP] 12abeb544d: ltp.read_all_dev.fail

2019-09-23 Thread Richard Palethorpe
Hello, kernel test robot writes: > FYI, we noticed the following commit (built with gcc-7): > > commit: 12abeb544d548f55f56323fc6e5e6c0fb74f58e1 ("horrible test hack") > https://kernel.googlesource.com/pub/scm/linux/kernel/git/luto/linux.git > random/kill-it > > in testcase: ltp > with

Re: threads-max observe limits

2019-09-23 Thread Michal Hocko
Andrew, do you want me to send the patch or you can grab it from here? On Sun 22-09-19 16:24:10, Eric W. Biederman wrote: > Michal Hocko writes: > > > From 711000fdc243b6bc68a92f9ef0017ae495086d39 Mon Sep 17 00:00:00 2001 > > From: Michal Hocko > > Date: Sun, 22 Sep 2019 08:45:28 +0200 > >

Re: [PATCH] vhost: It's better to use size_t for the 3rd parameter of vhost_exceeds_weight()

2019-09-23 Thread Michael S. Tsirkin
On Mon, Sep 23, 2019 at 03:46:41PM +0800, wangxu wrote: > From: Wang Xu > > Caller of vhost_exceeds_weight(..., total_len) in drivers/vhost/net.c > usually pass size_t total_len, which may be affected by rx/tx package. > > Signed-off-by: Wang Xu Puts a bit more pressure on the register file

Re: [PATCH 1/1] sched/eas: introduce system-wide overutil indicator

2019-09-23 Thread Dietmar Eggemann
On 9/19/19 9:20 AM, YT Chang wrote: > When the system is overutilization, the load-balance crossing > clusters will be triggered and scheduler will not use energy > aware scheduling to choose CPUs. We're currently transitioning from traditional big.LITTLE (the CPUs of 1 cluster (all having the

Re: bringing back media/zoran driver

2019-09-23 Thread Hans Verkuil
On 9/21/19 7:03 PM, Corentin Labbe wrote: > hello > > I am the owner of a zoran based DC10+ card. > I am in the need of using it since yesterday and I found that its driver was > removed. > > Reverting the removing patch made to a temporary working situation. > > If I understand correctly, it

Re: [PATCH v3 3/3] clk: qcom: Add Global Clock controller (GCC) driver for SC7180

2019-09-23 Thread Taniya Das
Hi Stephen, Thanks for your comments. On 9/19/2019 3:09 AM, Stephen Boyd wrote: Quoting Taniya Das (2019-09-18 02:50:18) diff --git a/drivers/clk/qcom/gcc-sc7180.c b/drivers/clk/qcom/gcc-sc7180.c new file mode 100644 index ..d47865d5408f --- /dev/null +++

Re: [RFC] VSOCK: add support for MSG_PEEK

2019-09-23 Thread Stefano Garzarella
Hi Matias, thanks for this patch! Since this patch only concerns virtio_transport, I'd use the 'vsock/virtio' prefix in the commit title: "vsock/virtio: add support for MSG_PEEK" Some comments below: On Sun, Sep 22, 2019 at 05:48:27PM +, Matias Ezequiel Vara Larsen wrote: > This patch adds

[PATCH v2 rebased] powerpc/fadump: when fadump is supported register the fadump sysfs files.

2019-09-23 Thread Michal Suchanek
Currently it is not possible to distinguish the case when fadump is supported by firmware and disabled in kernel and completely unsupported using the kernel sysfs interface. User can investigate the devicetree but it is more reasonable to provide sysfs files in case we get some fadumpv2 in the

Re: [PATCH v2 2/2] crypto: sun4i-ss: enable pm_runtime

2019-09-23 Thread Corentin Labbe
On Thu, Sep 19, 2019 at 06:55:59PM +0200, Maxime Ripard wrote: > Hi, > > On Thu, Sep 19, 2019 at 07:10:35AM +0200, Corentin Labbe wrote: > > This patch enables power management on the Security System. > > > > Signed-off-by: Corentin Labbe > > --- > > drivers/crypto/sunxi-ss/sun4i-ss-cipher.c |

Re: [PATCH v3 1/3] mmc: Add MMC software queue support

2019-09-23 Thread Baolin Wang
Hi, On Sat, 21 Sep 2019 at 22:43, kbuild test robot wrote: > > Hi Baolin, > > I love your patch! Yet something to improve: > > [auto build test ERROR on linus/master] > [cannot apply to v5.3 next-20190918] > [if your patch is applied to the wrong git tree, please drop us a note to help > improve

[PATCH] vhost: It's better to use size_t for the 3rd parameter of vhost_exceeds_weight()

2019-09-23 Thread wangxu
From: Wang Xu Caller of vhost_exceeds_weight(..., total_len) in drivers/vhost/net.c usually pass size_t total_len, which may be affected by rx/tx package. Signed-off-by: Wang Xu --- drivers/vhost/vhost.c | 4 ++-- drivers/vhost/vhost.h | 7 --- 2 files changed, 6 insertions(+), 5

[PATCH net v2] net: stmmac: selftests: Flow Control test can also run with ASYM Pause

2019-09-23 Thread Jose Abreu
The Flow Control selftest is also available with ASYM Pause. Lets add this check to the test and fix eventual false positive failures. Fixes: 091810dbded9 ("net: stmmac: Introduce selftests support") Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc:

RE: [PATCH net] net: stmmac: selftests: Flow Control test can also run with ASYM Pause

2019-09-23 Thread Jose Abreu
From: Jose Abreu Date: Sep/23/2019, 08:30:43 (UTC+00:00) > From: Jose Abreu > > The Flow Control selftest is also available with ASYM Pause. Lets add > this check to the test and fix eventual false positive failures. > > Fixes: 091810dbded9 ("net: stmmac: Introduce selftests support") >

Re: [PATCH 0/5] net: ethernet: stmmac: some fixes and optimization

2019-09-23 Thread Christophe ROULLIER
Hi Jakub, all, It is not urgent, no problem to wait next merge window (release 5.5) For patch 1 and 3, it is improvement/cleanup because now syscfg clock is not mandatory (I put code backward compatible). Regards, Christophe On 9/23/19 12:12 AM, Jakub Kicinski wrote: > On Fri, 20 Sep 2019

[PATCH] vhost/vsock: Micro optimize error handle

2019-09-23 Thread richard.p...@oppo.com
When a vq error, there is no need to operate on the unmodified vq. Signed-off-by:Peng Hao ---  drivers/vhost/vsock.c | 6 +++---  1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/vhost/vsock.c b/drivers/vhost/vsock.c index 6a50e1d..0bed19d 100644 --- a/drivers/vhost/vsock.c

RE: [PATCH net] net: stmmac: selftests: Flow Control test can also run with ASYM Pause

2019-09-23 Thread Jose Abreu
From: Jakub Kicinski Date: Sep/22/2019, 22:56:42 (UTC+00:00) > On Thu, 19 Sep 2019 12:09:49 +0200, Jose Abreu wrote: > > The Flow Control selftest is also available with ASYM Pause. Lets add > > this check to the test and fix eventual false positive failures. > > > > Fixes: 091810dbded9 ("net:

Re: [PATCH] powerpc/xive: Fix bogus error code returned by OPAL

2019-09-23 Thread Greg KH
On Mon, Sep 23, 2019 at 08:29:40AM +0200, Greg Kurz wrote: > There's a bug in skiboot that causes the OPAL_XIVE_ALLOCATE_IRQ call > to return the 32-bit value 0x when OPAL has run out of IRQs. > Unfortunatelty, OPAL return values are signed 64-bit entities and > errors are supposed to be

[PATCH net] net: stmmac: selftests: Flow Control test can also run with ASYM Pause

2019-09-23 Thread Jose Abreu
From: Jose Abreu The Flow Control selftest is also available with ASYM Pause. Lets add this check to the test and fix eventual false positive failures. Fixes: 091810dbded9 ("net: stmmac: Introduce selftests support") Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue

Re: [PATCH 2/3] pinctrl: meson-a1: add pinctrl driver for Meson A1 Soc

2019-09-23 Thread Qianggui Song
On 2019/9/20 0:26, Jerome Brunet wrote: > On Wed 18 Sep 2019 at 14:36, Qianggui Song wrote: > >> On 2019/9/17 22:07, Jerome Brunet wrote: >>> >>> On Tue 17 Sep 2019 at 13:51, Qianggui Song >>> wrote: >> diff --git a/drivers/pinctrl/meson/pinctrl-meson.c >>

Re: [PATCH AUTOSEL 5.3 084/203] media: omap3isp: Don't set streaming state on random subdevs

2019-09-23 Thread Laurent Pinchart
On Mon, Sep 23, 2019 at 10:19:42AM +0300, Sakari Ailus wrote: > Hi Sasha, > > On Sun, Sep 22, 2019 at 02:41:50PM -0400, Sasha Levin wrote: > > From: Sakari Ailus > > > > [ Upstream commit 7ef57be07ac146e70535747797ef4aee0f06e9f9 ] > > > > The streaming state should be set to the first upstream

Re: [PATCH AUTOSEL 5.3 084/203] media: omap3isp: Don't set streaming state on random subdevs

2019-09-23 Thread Sakari Ailus
Hi Sasha, On Sun, Sep 22, 2019 at 02:41:50PM -0400, Sasha Levin wrote: > From: Sakari Ailus > > [ Upstream commit 7ef57be07ac146e70535747797ef4aee0f06e9f9 ] > > The streaming state should be set to the first upstream sub-device only, > not everywhere, for a sub-device driver itself knows how

Re: [RFT v3 4/8] ARM: dts: exynos: Remove MCT subnode for interrupt map on Exynos4210

2019-09-23 Thread Krzysztof Kozlowski
On Mon, Sep 23, 2019 at 08:56:46AM +0200, Marek Szyprowski wrote: > Hi Krzysztof, > > On 21.09.2019 19:01, Krzysztof Kozlowski wrote: > > Multi Core Timer node has interrupts routed to two different parents - > > GIC and combiner. This was modeled with a interrupt-map within a > > subnode but

Re: [PATCH] usb: hub: Minor refactoring in usb_hub_init()

2019-09-23 Thread Greg KH
On Mon, Sep 23, 2019 at 03:19:21PM +0900, Austin Kim wrote: > Normally when creation of workqueue fails, exception handling takes place > after the call to alloc_workqueue() is made. > > But looking into usb_hub_init() function, 'return 0' statement is executed, > when alloc_workqueue() returns

Re: [PATCH v7 18/21] RISC-V: KVM: Add SBI v0.1 support

2019-09-23 Thread Alexander Graf
On 04.09.19 18:16, Anup Patel wrote: From: Atish Patra The KVM host kernel running in HS-mode needs to handle SBI calls coming from guest kernel running in VS-mode. This patch adds SBI v0.1 support in KVM RISC-V. All the SBI calls are implemented correctly except remote tlb flushes. For

Re: [PATCH] PCI: Do not use bus number zero from EA capability

2019-09-23 Thread sundeep subbaraya
Hi Bjorn, Please let me know if you have any comments on the patch. Thanks, Sundeep On Mon, Sep 2, 2019 at 9:00 PM wrote: > > From: Subbaraya Sundeep > > As per the spec, "Enhanced Allocation (EA) for Memory > and I/O Resources" ECN, approved 23 October 2014, > sec 6.9.1.2, fixed bus numbers

Re: [PATCH v2 3/3] dt-bindings: regulator: add regulator-fixed-clock binding

2019-09-23 Thread Philippe Schenker
On Tue, 2019-09-17 at 15:13 -0500, Rob Herring wrote: > On Tue, Sep 10, 2019 at 1:21 AM Philippe Schenker > wrote: > > This adds the documentation to the compatible regulator-fixed-clock. > > This binding is a special binding of regulator-fixed and adds the > > ability to add a clock to

[PATCH v2] drm: tweak drm_print_bits()

2019-09-23 Thread Gerd Hoffmann
There is little reason for the from/to logic, printing a subset of the bits can be done by simply shifting/masking value if needed. Also use for_each_set_bit(). Suggested-by: Jani Nikula Signed-off-by: Gerd Hoffmann Reviewed-by: Jani Nikula --- include/drm/drm_print.h | 5 ++---

Re: [RFT v3 4/8] ARM: dts: exynos: Remove MCT subnode for interrupt map on Exynos4210

2019-09-23 Thread Marek Szyprowski
Hi Krzysztof, On 21.09.2019 19:01, Krzysztof Kozlowski wrote: > Multi Core Timer node has interrupts routed to two different parents - > GIC and combiner. This was modeled with a interrupt-map within a > subnode but can be expressed in an easier and more common way, directly > in the node

Re: [PATCH v7 11/21] RISC-V: KVM: Handle WFI exits for VCPU

2019-09-23 Thread Alexander Graf
On 04.09.19 18:15, Anup Patel wrote: We get illegal instruction trap whenever Guest/VM executes WFI instruction. This patch handles WFI trap by blocking the trapped VCPU using kvm_vcpu_block() API. The blocked VCPU will be automatically resumed whenever a VCPU interrupt is injected from

Re: [PATCH v7 10/21] RISC-V: KVM: Handle MMIO exits for VCPU

2019-09-23 Thread Alexander Graf
On 04.09.19 18:15, Anup Patel wrote: We will get stage2 page faults whenever Guest/VM access SW emulated MMIO device or unmapped Guest RAM. This patch implements MMIO read/write emulation by extracting MMIO details from the trapped load/store instruction and forwarding the MMIO read/write to

Re: [PATCH v7 06/21] RISC-V: KVM: Implement VCPU create, init and destroy functions

2019-09-23 Thread Alexander Graf
On 04.09.19 18:14, Anup Patel wrote: This patch implements VCPU create, init and destroy functions required by generic KVM module. We don't have much dynamic resources in struct kvm_vcpu_arch so thest functions are quite Since you're respinning for v8 anyway, please s/thest/these/ :) Alex

Re: [PATCH 2/2] mmc: tegra: Implement ->set_dma_mask()

2019-09-23 Thread Adrian Hunter
On 20/09/19 5:53 PM, Thierry Reding wrote: > From: Nicolin Chen > > The SDHCI controller on Tegra186 supports 40-bit addressing, which is > usually enough to address all of system memory. However, if the SDHCI > controller is behind an IOMMU, the address space can go beyond. This > happens on

Re: [PATCH 2/2] mmc: tegra: Implement ->set_dma_mask()

2019-09-23 Thread Adrian Hunter
On 20/09/19 5:53 PM, Thierry Reding wrote: > From: Nicolin Chen > > The SDHCI controller on Tegra186 supports 40-bit addressing, which is > usually enough to address all of system memory. However, if the SDHCI > controller is behind an IOMMU, the address space can go beyond. This > happens on

[PATCH V7 2/2] mailbox: introduce ARM SMC based mailbox

2019-09-23 Thread Peng Fan
From: Peng Fan This mailbox driver implements a mailbox which signals transmitted data via an ARM smc (secure monitor call) instruction. The mailbox receiver is implemented in firmware and can synchronously return data when it returns execution to the non-secure world again. An asynchronous

[PATCH V7 1/2] dt-bindings: mailbox: add binding doc for the ARM SMC/HVC mailbox

2019-09-23 Thread Peng Fan
From: Peng Fan The ARM SMC/HVC mailbox binding describes a firmware interface to trigger actions in software layers running in the EL2 or EL3 exception levels. The term "ARM" here relates to the SMC instruction as part of the ARM instruction set, not as a standard endorsed by ARM Ltd.

[PATCH V7 0/2] mailbox: arm: introduce smc triggered mailbox

2019-09-23 Thread Peng Fan
From: Peng Fan V7: Typo fix #mbox-cells changed to 0 Add a new header file arm-smccc-mbox.h Use ARM_SMCCC_IS_64 Andre, The function_id is still kept in arm_smccc_mbox_cmd, because arm,func-id property is optional, so clients could pass function_id to mbox driver. V6: Switch to per-channel a

Re: [PATCH v3 2/3] dt-bindings: clk: qcom: Add YAML schemas for the GCC clock bindings

2019-09-23 Thread Taniya Das
Hi Matthias, Thank you for your review. On 9/18/2019 11:22 PM, Matthias Kaehlcke wrote: Hi Taniya, not a full review, just a couple of things I noticed, comments inline. On Wed, Sep 18, 2019 at 03:20:17PM +0530, Taniya Das wrote: The GCC clock provider have a bunch of generic properties

[PATCH] powerpc/xive: Fix bogus error code returned by OPAL

2019-09-23 Thread Greg Kurz
There's a bug in skiboot that causes the OPAL_XIVE_ALLOCATE_IRQ call to return the 32-bit value 0x when OPAL has run out of IRQs. Unfortunatelty, OPAL return values are signed 64-bit entities and errors are supposed to be negative. If that happens, the linux code confusingly treats

Re: [PATCH V3 2/2] mm/pgtable/debug: Add test validating architecture page table helpers

2019-09-23 Thread Anshuman Khandual
On 09/21/2019 09:30 PM, kbuild test robot wrote: > Hi Anshuman, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on linus/master] > [cannot apply to v5.3 next-20190919] > [if your patch is applied to the wrong git tree, please drop us a note to help > improve

[PATCH] broadcom: Fix an compile warning in nvram_init

2019-09-23 Thread zhong jiang
I hit the following error when compile the kernel. drivers/firmware/broadcom/bcm47xx_nvram.c: In function ‘nvram_init’: ./include/linux/kern_levels.h:5:18: warning: format ‘%zu’ expects argument of type ‘size_t’, but argument 2 has type ‘u32 {aka unsigned int}’ [-Wformat=] #define KERN_SOH

[PATCH] usb: hub: Minor refactoring in usb_hub_init()

2019-09-23 Thread Austin Kim
Normally when creation of workqueue fails, exception handling takes place after the call to alloc_workqueue() is made. But looking into usb_hub_init() function, 'return 0' statement is executed, when alloc_workqueue() returns valid workqueue pointer. if (hub_wq) return 0;

Re: [PATCH] dimlib: make DIMLIB a hidden symbol

2019-09-23 Thread Uwe Kleine-König
Hello Jakub, On 9/22/19 5:06 AM, Jakub Kicinski wrote: > On Fri, 20 Sep 2019 15:31:15 +0200, Uwe Kleine-König wrote: >> According to Tal Gilboa the only benefit from DIM comes from a driver >> that uses it. So it doesn't make sense to make this symbol user visible, >> instead all drivers that use

Re: [Patch v2 5/7] media: i2c: ov2659: Add powerdown/reset gpio handling

2019-09-23 Thread Sakari Ailus
Hi Benoit, On Fri, Sep 20, 2019 at 11:55:29AM -0500, Benoit Parrot wrote: ... > > > @@ -1400,6 +1440,18 @@ static int ov2659_probe(struct i2c_client *client) > > > ov2659->xvclk_frequency > 2700) > > > return -EINVAL; > > > > > > + /* Optional gpio don't fail if not present

[PATCH net] gianfar: Make reset_gfar static

2019-09-23 Thread YueHaibing
Fix sparse warning: drivers/net/ethernet/freescale/gianfar.c:2070:6: warning: symbol 'reset_gfar' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/net/ethernet/freescale/gianfar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH -next] dm clone: Make __hash_find static

2019-09-23 Thread YueHaibing
drivers/md/dm-clone-target.c:594:34: warning: symbol '__hash_find' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/md/dm-clone-target.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/md/dm-clone-target.c

Re: [PATCH RFC 05/14] dt-bindings/interrupt-controller: pdc: add SPI config register

2019-09-23 Thread Sibi Sankar
On 2019-09-21 03:50, Stephen Boyd wrote: Quoting Lina Iyer (2019-09-17 14:50:20) On Fri, Sep 13 2019 at 13:53 -0600, Lina Iyer wrote: >On Thu, Sep 05 2019 at 18:03 -0600, Stephen Boyd wrote: >>Quoting Lina Iyer (2019-09-03 10:07:22) >>>On Mon, Sep 02 2019 at 07:58 -0600, Marc Zyngier wrote:

Re: [PATCH v4 4/6] platform/x86: huawei-wmi: Add battery charging thresholds

2019-09-23 Thread kbuild test robot
Hi Ayman, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on next-20190918] [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 base tree in git format-patch,

[PATCH -next] nfsd: Make nfsd_reset_boot_verifier_locked static

2019-09-23 Thread YueHaibing
Fix sparse warning: fs/nfsd/nfssvc.c:364:6: warning: symbol 'nfsd_reset_boot_verifier_locked' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- fs/nfsd/nfssvc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfsd/nfssvc.c

[PATCH] scsi: core: Log SCSI command age with errors

2019-09-23 Thread Milan P. Gandhi
Couple of users had requested to print the SCSI command age along with command failure errors. This is a small change, but allows users to get more important information about the command that was failed, it would help the users in debugging the command failures: Signed-off-by: Milan P. Gandhi

Re: [PATCH] x86/mm: fix return value of p[um]dp_set_access_flags

2019-09-23 Thread Wei Yang
On Fri, Sep 20, 2019 at 09:16:12AM -0700, Dave Hansen wrote: >On 9/19/19 7:18 PM, Wei Yang wrote: >> Last but not least, since update_mmu_cache_pmd is empty, even return >> value is not correct, it doesn't break anything. > >In other words, this patch has no functional effect and does not provide

<    3   4   5   6   7   8