Re: regression with napi/softirq ?

2019-07-17 Thread Eric Dumazet
On 7/17/19 11:52 PM, Thomas Gleixner wrote: > Sudip, > > On Wed, 17 Jul 2019, Sudip Mukherjee wrote: >> On Wed, Jul 17, 2019 at 9:53 PM Thomas Gleixner wrote: >>> You can hack ksoftirq_running() to return always false to avoid this, but >>> that might cause application starvation and a huge pa

Re: [PATCH RESEND 1/2] clk: imx8mm: Fix typo of pwm3 clock's mux option #4

2019-07-17 Thread Shawn Guo
On Wed, Jun 26, 2019 at 09:28:02AM +0800, anson.hu...@nxp.com wrote: > From: Anson Huang > > i.MX8MM has no sys3_pll2_out clock, PWM3 clock's mux option #4 > should be sys_pll3_out, sys3_pll2_out is a typo, fix it. > > Fixes: ba5625c3e272 ("clk: imx: Add clock driver support for imx8mm") > Signe

Re: [PATCH] net: dsa: sja1105: Release lock in error case

2019-07-17 Thread Yuehaibing
https://patchwork.ozlabs.org/patch/1133135/ This has been fixed. On 2019/7/18 10:21, Hariprasad Kelam wrote: > This patch adds release of unlock in fail case. > > Issue identified by coccicheck > > Signed-off-by: Hariprasad Kelam > --- > net/dsa/tag_sja1105.c | 1 + > 1 file changed, 1 insert

[PATCH 1/2] xen/gntdev: replace global limit of mapped pages by limit per call

2019-07-17 Thread Juergen Gross
Today there is a global limit of pages mapped via /dev/xen/gntdev set to 1 million pages per default. There is no reason why that limit is existing, as total number of foreign mappings is limited by the hypervisor anyway and preferring kernel mappings over userspace ones doesn't make sense. Additi

Re: [PATCH v1] mm/balloon_compaction: avoid duplicate page removal

2019-07-17 Thread Michael S. Tsirkin
On Thu, Jul 18, 2019 at 02:31:14PM +0800, Wei Wang wrote: > On 07/18/2019 12:31 PM, Michael S. Tsirkin wrote: > > On Thu, Jul 18, 2019 at 10:23:30AM +0800, Wei Wang wrote: > > > Fixes: 418a3ab1e778 (mm/balloon_compaction: List interfaces) > > > > > > A #GP is reported in the guest when requesting

[PATCH 0/2] xen/gntdev: sanitize user interface handling

2019-07-17 Thread Juergen Gross
The Xen gntdev driver's checking of the number of allowed mapped pages is in need of some sanitizing work. Juergen Gross (2): xen/gntdev: replace global limit of mapped pages by limit per call xen/gntdev: switch from kcalloc() to kvcalloc() drivers/xen/gntdev-common.h | 2 +- drivers/xen/gn

[PATCH 2/2] xen/gntdev: switch from kcalloc() to kvcalloc()

2019-07-17 Thread Juergen Gross
With sufficient many pages to map gntdev can reach order 9 allocation sizes. As there is no need to have physically contiguous buffers switch to kvcalloc() in order to avoid failing allocations. Signed-off-by: Juergen Gross --- drivers/xen/gntdev.c | 30 +++--- 1 file cha

[PATCH] gpio: refactor gpiochip_allocate_mask() with bitmap_alloc()

2019-07-17 Thread Masahiro Yamada
Refactor gpiochip_allocate_mask() slightly by using bitmap_alloc(). I used bitmap_free() for the corresponding free parts. Actually, bitmap_free() is a wrapper of kfree(), but I did this for consistency. Signed-off-by: Masahiro Yamada --- drivers/gpio/gpiolib.c | 6 +++--- 1 file changed, 3 in

Re: use of shrinker in virtio balloon free page hinting

2019-07-17 Thread Michael S. Tsirkin
On Thu, Jul 18, 2019 at 02:30:01PM +0800, Wei Wang wrote: > On 07/18/2019 01:58 PM, Michael S. Tsirkin wrote: > > > > what if it does not fail? > > > > > > > Shrinker is called on system memory pressure. On memory pressure > > > get_free_page_and_send will fail memory allocation, so it stops all

RE: [PATCH] scsi: uapi: ufs: Fix SPDX license identifier

2019-07-17 Thread Avri Altman
Martin, Are there any further clarifications required? Thanks, Avri > > > James, > > > Just to note: this isn't technically a licence change at all. The > > entire kernel is covered by the system call exception and this file is > > thus also covered. It's really a simple tag change to allow

RE: [PATCH] habanalabs: add debug print when rejecting CS

2019-07-17 Thread Omer Shpigelman
From: Oded Gabbay Sent: Thursday, 18 July 2019 9:30 > When rejecting CS because of too many in-flight CS, print a debug message > about it as it useful to know when the user is debugging (it indicates a back- > pressure from the driver as the device is not fast enough to consume the CS) > > Sign

Re: [PATCH v2 6/7] libnvdimm/bus: Fix wait_nvdimm_bus_probe_idle() ABBA deadlock

2019-07-17 Thread Dan Williams
On Wed, Jul 17, 2019 at 7:05 PM Sasha Levin wrote: > > On Wed, Jul 17, 2019 at 06:08:21PM -0700, Dan Williams wrote: > >A multithreaded namespace creation/destruction stress test currently > >deadlocks with the following lockup signature: > > > >INFO: task ndctl:2924 blocked for more than 122

Re: [PATCH v2 1/2] firmware: imx: Add DSP IPC protocol interface

2019-07-17 Thread Daniel Baluta
I just made some minor changes and will send the patch right now. Shawn please skip this. On Tue, Jul 9, 2019 at 3:02 PM Oleksij Rempel wrote: > > On Tue, Jul 09, 2019 at 08:48:20AM +0300, Daniel Baluta wrote: > > Hi Oleksij, > > > > Any comments on this? > > Looks good for me. All my suggestions

Re: [PATCH 2/3] firmware: imx: scu-pd: Add mu_b side PD range

2019-07-17 Thread Daniel Baluta
On Thu, Jul 18, 2019 at 6:30 AM Aisheng Dong wrote: > > > From: Daniel Baluta > > Sent: Thursday, July 4, 2019 3:04 AM > > Subject: [PATCH 2/3] firmware: imx: scu-pd: Add mu_b side PD range > > > > LSIO subsystem contains 14 MU instances. > > > > 5 MUs to communicate between AP <-> SCU > > - si

[PATCH] habanalabs: add debug print when rejecting CS

2019-07-17 Thread Oded Gabbay
When rejecting CS because of too many in-flight CS, print a debug message about it as it useful to know when the user is debugging (it indicates a back-pressure from the driver as the device is not fast enough to consume the CS) Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/command_subm

[PATCH] Revert "cpufreq: schedutil: Don't set next_freq to UINT_MAX"

2019-07-17 Thread Doug Smythies
This reverts commit ecd2884291261e3fddbc7651ee11a20d596bb514. The commit caused a regression whereby reducing the maximum CPU clock frequency is ineffective while busy, and the CPU clock remains unchanged. Once the system has experienced some idle time, the new limit is implemented. A consequence

Re: [PATCH 1/1] mm/memory_hotplug: Adds option to hot-add memory in ZONE_MOVABLE

2019-07-17 Thread Mike Rapoport
On Wed, Jul 17, 2019 at 11:41:34PM -0300, Leonardo Bras wrote: > Adds an option on kernel config to make hot-added memory online in > ZONE_MOVABLE by default. > > This would be great in systems with MEMORY_HOTPLUG_DEFAULT_ONLINE=y by > allowing to choose which zone it will be auto-onlined Please

Re: [PATCH v1] mm/balloon_compaction: avoid duplicate page removal

2019-07-17 Thread Wei Wang
On 07/18/2019 12:31 PM, Michael S. Tsirkin wrote: On Thu, Jul 18, 2019 at 10:23:30AM +0800, Wei Wang wrote: Fixes: 418a3ab1e778 (mm/balloon_compaction: List interfaces) A #GP is reported in the guest when requesting balloon inflation via virtio-balloon. The reason is that the virtio-balloon dri

Re: [PATCH 12/12] arm64: dts: qcom: Enable Q6v5 WCSS for ipq8074 SoC

2019-07-17 Thread gokulsri
On 2019-07-18 01:43, Stephen Boyd wrote: Quoting Gokul Sriram Palanisamy (2019-07-11 08:41:08) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi index 6a61a63..c24e3f6 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq8

Re: use of shrinker in virtio balloon free page hinting

2019-07-17 Thread Wei Wang
On 07/18/2019 01:58 PM, Michael S. Tsirkin wrote: what if it does not fail? Shrinker is called on system memory pressure. On memory pressure get_free_page_and_send will fail memory allocation, so it stops allocating more. Memory pressure could be triggered by an unrelated allocation e.g. fro

Re: [PATCH 3/3] arm64: debug: Remove rcu_read_lock from debug exception

2019-07-17 Thread Paul E. McKenney
On Thu, Jul 18, 2019 at 02:43:58PM +0900, Masami Hiramatsu wrote: > Remove rcu_read_lock()/rcu_read_unlock() from debug exception > handlers since the software breakpoint can be hit on idle task. The exception entry and exit use irq_enter() and irq_exit(), in this case, correct? Otherwise RCU wil

[PATCH] perf tool: arch: arm64: change the way for get_cpuid_str() function

2019-07-17 Thread Joakim Zhang
Now the get_cpuid__str function returns the MIDR string of the first online cpu from the range of cpus asscociated with the PMU CORE device. It can work when pass a perf_pmu entity to get_cpuid_str. However, it will pass NULL via perf_pmu__find_map from metricgroup.c if we want to add metric group

Re: [PATCH v2] arm64: dts: imx8mm: Init rates and parents configs for clocks

2019-07-17 Thread Shawn Guo
On Wed, Jul 03, 2019 at 03:08:22PM +0300, Abel Vesa wrote: > Add the initial configuration for clocks that need default parent and rate > setting. This is based on the vendor tree clock provider parents and rates > configuration except this is doing the setup in dts rather than using clock > consum

Re: [PATCH 1/1] mm/memory_hotplug: Adds option to hot-add memory in ZONE_MOVABLE

2019-07-17 Thread Oscar Salvador
On Wed, 2019-07-17 at 23:41 -0300, Leonardo Bras wrote: > Adds an option on kernel config to make hot-added memory online in > ZONE_MOVABLE by default. > > This would be great in systems with MEMORY_HOTPLUG_DEFAULT_ONLINE=y > by > allowing to choose which zone it will be auto-onlined We do alread

Re: [PATCH RESEND] KVM: Boosting vCPUs that are delivering interrupts

2019-07-17 Thread Wanpeng Li
Cc arm guy's latest email On Fri, 12 Jul 2019 at 15:15, Wanpeng Li wrote: > > From: Wanpeng Li > > Inspired by commit 9cac38dd5d (KVM/s390: Set preempted flag during vcpu wakeup > and interrupt delivery), except the lock holder, we want to also boost vCPUs > that are delivering interrupts. Actual

Re: [PATCH] ARM: stm32: use "depends on" instead of "if" after prompt

2019-07-17 Thread Masahiro Yamada
Hi Olof, On Wed, Jul 10, 2019 at 2:15 PM Masahiro Yamada wrote: > > This appeared after the global fixups by commit e32465429490 ("ARM: use > "depends on" for SoC configs instead of "if" after prompt"). Fix it now. > > Signed-off-by: Masahiro Yamada > --- I think probably this is too late, b

Re: [PATCH v1 08/50] clk: samsung: change aclk266_isp clocks definitions Exynos5420

2019-07-17 Thread Lukasz Luba
Hi Chanwoo, On 7/16/19 12:22 PM, Chanwoo Choi wrote: > Hi, > > On 19. 7. 15. 오후 9:43, Lukasz Luba wrote: >> The ACLK266_ISP has different topology in Exynos5420 and 5422/5800. In >> Exynos5420 this clock does not have dedicated MUX which chooses PLL instead >> it takes the clock from 2-level mux

[PATCH] fix null pointer bugzilla 203737 . wich is triggered in function bio_set_dev(bio, bdev) in case bdev is null Signed-off-by: Kovtunenko Oleksandr

2019-07-17 Thread Kovtunenko Oleksandr
--- fs/jfs/jfs_logmgr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/jfs/jfs_logmgr.c b/fs/jfs/jfs_logmgr.c index 9330eff..c2fcaa0 100644 --- a/fs/jfs/jfs_logmgr.c +++ b/fs/jfs/jfs_logmgr.c @@ -1209,6 +1209,7 @@ static int open_dummy_log(struct super_block *sb) /* Make up

Re: RFC: move kernel/memremap.c to mm/

2019-07-17 Thread Dan Williams
On Wed, Jul 17, 2019 at 10:49 PM Christoph Hellwig wrote: > > Hi Dan, > > was there any really good reason to have memremap.c in kernel/ back > when you started it? It seems to be pretty much tried into the mm > infrastructure, and I keep mistyping the path. Would you mind a simple > git-mv patc

Re: [PATCH v1 01/50] clk: samsung: add new IDs for Exynos5420 clocks

2019-07-17 Thread Lukasz Luba
On 7/16/19 11:49 AM, Chanwoo Choi wrote: > Hi, > > Usually, when developing the clock controller driver, > define the same sequence between the definition sequence in dt-bibing > and clock driver. As I replied, if you squash patches, it is easy. OK > > For example, > This series add clock id a

Re: [PATCH v1 13/50] clk: samsung: add DPLL rate table in Exynos5420

2019-07-17 Thread Lukasz Luba
Hi Chanwoo, On 7/16/19 11:31 AM, Chanwoo Choi wrote: > Hi, > > Also, you better to merge patch13/patch15/patch16 to one patch > in order to add the PLL table for DPLL/MPLL/SPLL. OK > > And I have a question. Are there any use-case to change > the PLL frequency for DPLL/MPLL/SPLL? Yes, when you s

Re: use of shrinker in virtio balloon free page hinting

2019-07-17 Thread Michael S. Tsirkin
On Thu, Jul 18, 2019 at 01:57:06PM +0800, Wei Wang wrote: > On 07/18/2019 12:13 PM, Michael S. Tsirkin wrote: > > > > It makes sense for pages in the balloon (requested by hypervisor). > > However free page hinting can freeze up lots of memory for its own > > internal reasons. It does not make sen

Re: use of shrinker in virtio balloon free page hinting

2019-07-17 Thread Wei Wang
On 07/18/2019 12:13 PM, Michael S. Tsirkin wrote: It makes sense for pages in the balloon (requested by hypervisor). However free page hinting can freeze up lots of memory for its own internal reasons. It does not make sense to ask hypervisor to set flags in order to fix internal guest issues.

RFC: move kernel/memremap.c to mm/

2019-07-17 Thread Christoph Hellwig
Hi Dan, was there any really good reason to have memremap.c in kernel/ back when you started it? It seems to be pretty much tried into the mm infrastructure, and I keep mistyping the path. Would you mind a simple git-mv patch after -rc1 to move it to mm/ ?

Re: [PATCHv8 3/5] arm64: dts: qcom: msm8996: Add Coresight support

2019-07-17 Thread Sai Prakash Ranjan
Hi Mathieu, On 7/17/2019 10:30 PM, Mathieu Poirier wrote: On Fri, Jul 12, 2019 at 07:46:25PM +0530, Sai Prakash Ranjan wrote: From: Vivek Gautam Enable coresight support by adding device nodes for the available source, sinks and channel blocks on msm8996. This also adds coresight cpu debug n

Re: [PATCH] KVM: x86/vPMU: refine kvm_pmu err msg when event creation failed

2019-07-17 Thread Like Xu
Hi Joe, On 2019/7/18 13:18, Joe Perches wrote: On Thu, 2019-07-18 at 12:49 +0800, Like Xu wrote: If a perf_event creation fails due to any reason of the host perf subsystem, it has no chance to log the corresponding event for guest which may cause abnormal sampling data in guest result. In debu

[PATCH 3/3] arm64: debug: Remove rcu_read_lock from debug exception

2019-07-17 Thread Masami Hiramatsu
Remove rcu_read_lock()/rcu_read_unlock() from debug exception handlers since the software breakpoint can be hit on idle task. Actually, we don't need it because those handlers run in exception context where the interrupts are disabled. This means those are never preempted. Reported-by: Naresh Kam

[PATCH 1/3] arm64: kprobes: Recover pstate.D in single-step exception handler

2019-07-17 Thread Masami Hiramatsu
On arm64, if a nested kprobes hit, it can crash the kernel with below error message. [ 152.118921] Unexpected kernel single-step exception at EL1 This is because commit 7419333fa15e ("arm64: kprobe: Always clear pstate.D in breakpoint exception handler") clears pstate.D always in the nested kpro

[PATCH 2/3] arm64: unwind: Prohibit probing on return_address()

2019-07-17 Thread Masami Hiramatsu
Prohibit probing on return_address() and subroutines which is called from return_address(), since the it is invoked from trace_hardirqs_off() which is also kprobe blacklisted. Reported-by: Naresh Kamboju Signed-off-by: Masami Hiramatsu --- arch/arm64/kernel/return_address.c |4 +++- arch/ar

[PATCH 0/3] arm64: kprobes: Fix some bugs in arm64 kprobes

2019-07-17 Thread Masami Hiramatsu
Hi, Here are the patches which fixes kprobe bugs on arm64. Naresh reported that recently ftracetest crashes kernel, and I found there are 3 different bugs around the crash. - Kprobes on arm64 doesn't recover pstate.D mask even if probed context masks pstate.D. This causes a real kernel crash i

[PATCH v2] KVM: x86/vPMU: refine kvm_pmu err msg when event creation failed

2019-07-17 Thread Like Xu
If a perf_event creation fails due to any reason of the host perf subsystem, it has no chance to log the corresponding event for guest which may cause abnormal sampling data in guest result. In debug mode, this message helps to understand the state of vPMC and we may not limit the number of occurre

Re: [PATCH v3 0/6] Introduce Bandwidth OPPs for interconnect paths

2019-07-17 Thread Viresh Kumar
I know you have explained lots of things earlier as well, but they are available over multiple threads and I don't know where to reply now :) Lets have proper discussion (once again) here and be done with it. Sorry for the trouble of explaining things again. On 17-07-19, 13:34, Saravana Kannan wr

Re: [PATCH v8 07/21] iommu/io-pgtable-arm-v7s: Extend MediaTek 4GB Mode

2019-07-17 Thread Yong Wu
On Wed, 2019-07-17 at 15:23 +0100, Will Deacon wrote: > On Wed, Jul 17, 2019 at 08:44:19PM +0800, Yong Wu wrote: > > On Mon, 2019-07-15 at 10:51 +0100, Will Deacon wrote: > > > On Sun, Jul 14, 2019 at 12:41:20PM +0800, Yong Wu wrote: > > > > @@ -742,7 +763,9 @@ static struct io_pgtable > > > > *arm

[PATCH] clk: sprd: Select REGMAP_MMIO to avoid compile errors

2019-07-17 Thread Chunyan Zhang
From: Chunyan Zhang Make REGMAP_MMIO selected to avoid undefined reference to regmap symbols. Fixes: d41f59fd92f2 ("clk: sprd: Add common infrastructure") Signed-off-by: Chunyan Zhang --- drivers/clk/sprd/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/sprd/Kconfig b/dr

Re: [PATCH v1 02/50] clk: samsung: add IDs for Exynos5420 NoC clocks

2019-07-17 Thread Lukasz Luba
On 7/16/19 11:26 AM, Chanwoo Choi wrote: > Hi, > > You don't need to make the separate patches according to > the type of clock just in order to add the ID by handling them > from devicetree. > > Please merge following patches to one patch > - patch2, patch4~patch7, patch9, patch11, patch12, p

Re: [PATCH v1 04/50] clk: samsung: add IDs to manage aclk400_mscl in Exynos5420

2019-07-17 Thread Lukasz Luba
Hi Chanwoo, On 7/16/19 11:17 AM, Chanwoo Choi wrote: > Hi, > > The patch4~patch7 just add the ID to control the clock from DT. > You can squash them to one patch instead of splitting out according to > the type of clock. Thank you for the review. Yes, you are right it needs to be squashed. Regar

Re: [PATCH v1 03/50] clk: samsung: change parent of dout_aclk400_wcore in Exynos5420

2019-07-17 Thread Lukasz Luba
Hi Chanwoo, On 7/16/19 11:13 AM, Chanwoo Choi wrote: > On 19. 7. 15. 오후 9:43, Lukasz Luba wrote: >> Change parent of dout_aclk400_wcore to mout_aclk400_wcore which reflects >> topology described in the RM. >> >> Signed-off-by: Lukasz Luba >> --- >> drivers/clk/samsung/clk-exynos5420.c | 2 +- >>

Re: [PATCH] KVM: x86/vPMU: refine kvm_pmu err msg when event creation failed

2019-07-17 Thread Joe Perches
On Thu, 2019-07-18 at 12:49 +0800, Like Xu wrote: > If a perf_event creation fails due to any reason of the host perf > subsystem, it has no chance to log the corresponding event for guest > which may cause abnormal sampling data in guest result. In debug mode, > this message helps to understand th

Re: [PATCH v1 6/6] virtio-balloon: Add support for aerating memory via hinting

2019-07-17 Thread Michael S. Tsirkin
On Wed, Jul 17, 2019 at 09:43:52AM -0700, Alexander Duyck wrote: > On Wed, Jul 17, 2019 at 3:28 AM Michael S. Tsirkin wrote: > > > > On Tue, Jul 16, 2019 at 02:06:59PM -0700, Alexander Duyck wrote: > > > On Tue, Jul 16, 2019 at 10:41 AM Michael S. Tsirkin > > > wrote: > > > > > > > > > > > > >

[PATCH] KVM: x86/vPMU: refine kvm_pmu err msg when event creation failed

2019-07-17 Thread Like Xu
If a perf_event creation fails due to any reason of the host perf subsystem, it has no chance to log the corresponding event for guest which may cause abnormal sampling data in guest result. In debug mode, this message helps to understand the state of vPMC and we should not limit the number of occu

Re: [PATCH v3 1/6] dt-bindings: opp: Introduce opp-peak-KBps and opp-avg-KBps bindings

2019-07-17 Thread Viresh Kumar
On 17-07-19, 13:29, Saravana Kannan wrote: > On Wed, Jul 17, 2019 at 12:54 AM Viresh Kumar wrote: > > > > On 02-07-19, 18:10, Saravana Kannan wrote: > > > Interconnects often quantify their performance points in terms of > > > bandwidth. So, add opp-peak-KBps (required) and opp-avg-KBps (optional)

Re: [PATCH v1] mm/balloon_compaction: avoid duplicate page removal

2019-07-17 Thread Michael S. Tsirkin
On Thu, Jul 18, 2019 at 10:23:30AM +0800, Wei Wang wrote: > Fixes: 418a3ab1e778 (mm/balloon_compaction: List interfaces) > > A #GP is reported in the guest when requesting balloon inflation via > virtio-balloon. The reason is that the virtio-balloon driver has > removed the page from its internal

[PATCH] connector: remove redundant input callback from cn_dev

2019-07-17 Thread Vasily Averin
A small cleanup: this callback is never used. Originally fixed by Stanislav Kinsburskiy for OpenVZ7 bug OVZ-6877 cc: stanislav.kinsburs...@gmail.com Signed-off-by: Vasily Averin --- drivers/connector/connector.c | 6 +- include/linux/connector.h | 1 - 2 files changed, 1 insertion(+), 6

Re: use of shrinker in virtio balloon free page hinting

2019-07-17 Thread Michael S. Tsirkin
On Wed, Jul 17, 2019 at 03:46:57PM +, Wang, Wei W wrote: > On Wednesday, July 17, 2019 7:21 PM, Michael S. Tsirkin wrote: > > > > Wei, others, > > > > ATM virtio_balloon_shrinker_scan will only get registered when deflate on > > oom feature bit is set. > > > > Not sure whether that's intenti

Firing an interrupt pin induces the occurrence of another interrupt

2019-07-17 Thread Kar Hin Ong
Hi, I have a x86 system with Xeon CPU running Linux with preempt_rt patch (kernel version 4.14). When a PCI device firing interrupt to GSI 44 (ioapic2, pin20), I noticed that GSI 19 (ioapic1, pin19) will get fired as well, and then it went unhandled. I can reproduce this issue by using anothe

[PATCH] smp: avoid generic_exec_single cause system lockup

2019-07-17 Thread luferry
From: luferry The race can reproduced by sending wait enabled IPI in softirq/irq env src cpu only send ipi when dst cpu with queue empty, if interrupts disturbed between llist_add and send_ipi. Interrupt handler may raise softirq.In irq env, if src cpu try send_ipi to same dst cpu with wait enab

Re: [PATCH v2] arm64: dts: fsl: pico-pi: Add a device tree for the PICO-PI-IMX8M

2019-07-17 Thread Shawn Guo
On Tue, Jun 25, 2019 at 03:34:07PM +0300, Andra Danciu wrote: > From: Richard Hu > > The current level of support yields a working console and is able to boot > userspace from an initial ramdisk copied via u-boot in RAM. > > Additional subsystems that are active : > - Ethernet > - US

Re: [PATCH v8 4/5] x86/paravirt: Remove const mark from x86_hyper_xen_hvm variable

2019-07-17 Thread Juergen Gross
On 17.07.19 19:22, Joe Perches wrote: On Wed, 2019-07-17 at 08:49 +0200, Juergen Gross wrote: On 17.07.19 08:46, Joe Perches wrote: On Tue, 2019-07-16 at 12:26 +0800, Zhenzhong Duan wrote: .. as "nopv" support needs it to be changeable at boot up stage. Checkpatch reports warning, so move var

Re: [PATCH] net: bcmgenet: use promisc for unsupported filters

2019-07-17 Thread Florian Fainelli
On 7/17/2019 2:58 PM, justinpo...@gmail.com wrote: > From: Justin Chen > > Currently we silently ignore filters if we cannot meet the filter > requirements. This will lead to the MAC dropping packets that are > expected to pass. A better solution would be to set the NIC to promisc > mode when

linux-next: Tree for Jul 18

2019-07-17 Thread Stephen Rothwell
Hi all, Please do not add v5.4 material to your linux-next included branches until after v5.3-rc1 has been released. Changes since 20190717: The kbuild tree lost its build failure. The xfs tree gained a conflict against Linus' tree. Non-merge commits (relative to Linus' tree):

[BUG] lseek on /proc/meminfo is broken in 4.19.59

2019-07-17 Thread Sergei Turchanov
Hello! Seeking (to an offset within file size) in /proc/meminfo is broken in 4.19.59. It does seek to a desired position, but reading from that position returns the remainder of file and then a whole copy of file. This doesn't happen with /proc/vmstat or /proc/self/maps for example. Seeking

RE: [PATCH] pwm: mxs: use devm_platform_ioremap_resource() to simplify code

2019-07-17 Thread Aisheng Dong
> From: anson.hu...@nxp.com > Sent: Thursday, July 18, 2019 9:32 AM > > Use the new helper devm_platform_ioremap_resource() which wraps the > platform_get_resource() and devm_ioremap_resource() together, to simplify > the code. > > Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng Regards

RE: [EXT] Re: [v5,2/2] Documentation: dt: binding: rtc: add binding for ftm alarm driver

2019-07-17 Thread Biwen Li
> > > > > > > > Caution: EXT Email > > > > > > On Tue, Jul 16, 2019 at 4:26 AM Biwen Li wrote: > > > > > > > > The patch adds binding for ftm alarm driver > > > > > > Bindings are for h/w, not drivers... > > > > > > 'dt-bindings: rtc: ...' for the subject prefix. > > I will correct it in v6. > > >

[PATCH] PCI: Stop exporting pci_bus_sem

2019-07-17 Thread Kelsey Skunberg
pci_bus_sem is not used by a loadable kernel module and does not need to be exported. Remove line exporting pci_bus_sem. Signed-off-by: Kelsey Skunberg --- drivers/pci/search.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/search.c b/drivers/pci/search.c index 7f4e65872b8d..bade

RE: [PATCH 3/3] firmware: imx: scu-pd: Add IRQSTR_DSP PD range

2019-07-17 Thread Aisheng Dong
> From: Daniel Baluta > Sent: Thursday, July 4, 2019 3:04 AM > > The DSP interrupt steer gathers interrupts from the system and can be used to > steer them to DSP. > > Signed-off-by: Daniel Baluta Reviewed-by: Dong Aisheng Regards Aisheng

RE: [PATCH 2/3] firmware: imx: scu-pd: Add mu_b side PD range

2019-07-17 Thread Aisheng Dong
> From: Daniel Baluta > Sent: Thursday, July 4, 2019 3:04 AM > Subject: [PATCH 2/3] firmware: imx: scu-pd: Add mu_b side PD range > > LSIO subsystem contains 14 MU instances. > > 5 MUs to communicate between AP <-> SCU > - side-A PD range managed by AP > - side-B PD range managed by SCU > >

[PATCH 5.2 11/21] x86/irq: Handle spurious interrupt after shutdown gracefully

2019-07-17 Thread Greg Kroah-Hartman
From: Thomas Gleixner commit b7107a67f0d125459fe41f86e8079afd1a5e0b15 upstream. Since the rework of the vector management, warnings about spurious interrupts have been reported. Robert provided some more information and did an initial analysis. The following situation leads to these warnings:

[PATCH 5.2 09/21] genirq: Add optional hardware synchronization for shutdown

2019-07-17 Thread Greg Kroah-Hartman
From: Thomas Gleixner commit 62e0468650c30f0298822c580f382b16328119f6 upstream. free_irq() ensures that no hardware interrupt handler is executing on a different CPU before actually releasing resources and deactivating the interrupt completely in a domain hierarchy. But that does not catch the

[PATCH 5.2 13/21] ARC: hide unused function unw_hdr_alloc

2019-07-17 Thread Greg Kroah-Hartman
From: Arnd Bergmann commit fd5de2721ea7d16e2b16c4049ac49f229551b290 upstream. As kernelci.org reports, this function is not used in vdk_hs38_defconfig: arch/arc/kernel/unwind.c:188:14: warning: 'unw_hdr_alloc' defined but not used [-Wunused-function] Fixes: bc79c9a72165 ("ARC: dw2 unwind: Rei

[PATCH 5.2 18/21] crypto: talitos - move struct talitos_edesc into talitos.h

2019-07-17 Thread Greg Kroah-Hartman
From: Christophe Leroy commit d44769e4ccb636e8238adbc151f25467a536711b upstream. Moves struct talitos_edesc into talitos.h so that it can be used from any place in talitos.c It will be required for next patch ("crypto: talitos - fix hash on SEC1") Signed-off-by: Christophe Leroy Cc: sta...@vg

[PATCH 5.2 12/21] x86/irq: Seperate unused system vectors from spurious entry again

2019-07-17 Thread Greg Kroah-Hartman
From: Thomas Gleixner commit f8a8fe61fec8006575699559ead88b0b833d5cad upstream. Quite some time ago the interrupt entry stubs for unused vectors in the system vector range got removed and directly mapped to the spurious interrupt vector entry point. Sounds reasonable, but it's subtly broken. Th

[PATCH 5.2 21/21] x86/entry/32: Fix ENDPROC of common_spurious

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 1cbec37b3f9cff074a67bef4fc34b30a09958a0a ] common_spurious is currently ENDed erroneously. common_interrupt is used in its ENDPROC. So fix this mistake. Found by my asm macros rewrite patchset. Fixes: f8a8fe61fec8 ("x86/irq: Seperate unused system vectors from spurious entry a

[PATCH 5.1 50/54] s390/qdio: dont touch the dsci in tiqdio_add_input_queues()

2019-07-17 Thread Greg Kroah-Hartman
From: Julian Wiedmann commit ac6639cd3db607d386616487902b4cc1850a7be5 upstream. Current code sets the dsci to 0x0080. Which doesn't make any sense, as the indicator area is located in the _left-most_ byte. Worse: if the dsci is the _shared_ indicator, this potentially clears the indication

[PATCH 5.1 38/54] mm/oom_kill.c: fix uninitialized oc->constraint

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 432b1de0de02a83f64695e69a2d83cbee10c236f ] In dump_oom_summary() oc->constraint is used to show oom_constraint_text, but it hasn't been set before. So the value of it is always the default value 0. We should inititialize it before. Bellow is the output when memcg oom occurs,

[PATCH 5.1 23/54] sis900: fix TX completion

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 8ac8a01092b2added0749ef937037bf1912e13e3 ] Since commit 605ad7f184b60cfaacbc038aa6c55ee68dee3c89 "tcp: refine TSO autosizing", outbound throughput is dramatically reduced for some connections, as sis900 is doing TX completion within idle states only. Make TX completion happen a

[PATCH 5.1 24/54] ARM: dts: imx6ul: fix PWM[1-4] interrupts

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 3cf10132ac8d536565f2c02f60a3aeb315863a52 ] According to the i.MX6UL/L RM, table 3.1 "ARM Cortex A7 domain interrupt summary", the interrupts for the PWM[1-4] go from 83 to 86. Fixes: b9901fe84f02 ("ARM: dts: imx6ul: add pwm[1-4] nodes") Signed-off-by: Sébastien Szymanski Review

[PATCH 5.1 28/54] dm table: dont copy from a NULL pointer in realloc_argv()

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit a0651926553cfe7992166432e418987760882652 ] For the first call to realloc_argv() in dm_split_args(), old_argv is NULL and size is zero. Then memcpy is called, with the NULL old_argv as the source argument and a zero size argument. AFAIK, this is undefined behavior and generates th

[PATCH 5.1 39/54] fork,memcg: alloc_thread_stack_node needs to set tsk->stack

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 1bf4580e00a248a2c86269125390eb3648e1877c ] Commit 5eed6f1dff87 ("fork,memcg: fix crash in free_thread_stack on memcg charge fail") corrected two instances, but there was a third instance of this bug. Without setting tsk->stack, if memcg_charge_kernel_stack fails, it'll execute f

[PATCH 5.1 35/54] pinctrl: mediatek: Ignore interrupts that are wake only during resume

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 35594bc7cecf3a78504b590e350570e8f4d7779e ] Before suspending, mtk-eint would set the interrupt mask to the one in wake_mask. However, some of these interrupts may not have a corresponding interrupt handler, or the interrupt may be disabled. On resume, the eint irq handler would

RE: [PATCH 3/3] arm64: dts: freescale: Add support for i.MX8QXP AI_ML board

2019-07-17 Thread Aisheng Dong
> > > +&adma_lpuart1 { > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <&pinctrl_lpuart1>; > > > + status = "okay"; > > > +}; > > > + > > > +/* Debug */ > > > +&adma_lpuart2 { > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <&pinctrl_lpuart2>; > > > + status = "okay"; > > > +}; > > >

[PATCH 5.1 15/54] perf/core: Fix perf_sample_regs_user() mm check

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 085ebfe937d7a7a5df1729f35a12d6d655fea68c ] perf_sample_regs_user() uses 'current->mm' to test for the presence of userspace, but this is insufficient, consider use_mm(). A better test is: '!(current->flags & PF_KTHREAD)', exec() clears PF_KTHREAD after it sets the new ->mm but b

[PATCH 5.1 54/54] x86/entry/32: Fix ENDPROC of common_spurious

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 1cbec37b3f9cff074a67bef4fc34b30a09958a0a ] common_spurious is currently ENDed erroneously. common_interrupt is used in its ENDPROC. So fix this mistake. Found by my asm macros rewrite patchset. Fixes: f8a8fe61fec8 ("x86/irq: Seperate unused system vectors from spurious entry a

[PATCH 4.19 03/47] Input: synaptics - enable SMBUS on T480 thinkpad trackpad

2019-07-17 Thread Greg Kroah-Hartman
From: Cole Rogers commit abbe3acd7d72ab4633ade6bd24e8306b67e0add3 upstream. Thinkpad t480 laptops had some touchpad features disabled, resulting in the loss of pinch to activities in GNOME, on wayland, and other touch gestures being slower. This patch adds the touchpad of the t480 to the smbus_p

[PATCH 5.1 47/54] ARC: hide unused function unw_hdr_alloc

2019-07-17 Thread Greg Kroah-Hartman
From: Arnd Bergmann commit fd5de2721ea7d16e2b16c4049ac49f229551b290 upstream. As kernelci.org reports, this function is not used in vdk_hs38_defconfig: arch/arc/kernel/unwind.c:188:14: warning: 'unw_hdr_alloc' defined but not used [-Wunused-function] Fixes: bc79c9a72165 ("ARC: dw2 unwind: Rei

[PATCH 5.1 51/54] crypto: talitos - move struct talitos_edesc into talitos.h

2019-07-17 Thread Greg Kroah-Hartman
From: Christophe Leroy commit d44769e4ccb636e8238adbc151f25467a536711b upstream. Moves struct talitos_edesc into talitos.h so that it can be used from any place in talitos.c It will be required for next patch ("crypto: talitos - fix hash on SEC1") Signed-off-by: Christophe Leroy Cc: sta...@vg

[PATCH 5.1 49/54] s390/qdio: (re-)initialize tiqdio list entries

2019-07-17 Thread Greg Kroah-Hartman
From: Julian Wiedmann commit e54e4785cb5cb4896cf4285964aeef2125612fb2 upstream. When tiqdio_remove_input_queues() removes a queue from the tiq_list as part of qdio_shutdown(), it doesn't re-initialize the queue's list entry and the prev/next pointers go stale. If a subsequent qdio_establish() f

[PATCH 4.19 05/47] drivers: base: cacheinfo: Ensure cpu hotplug work is done before Intel RDT

2019-07-17 Thread Greg Kroah-Hartman
From: James Morse commit 83b44fe343b5abfcb1b2261289bd0cfcfcfd60a8 upstream. The cacheinfo structures are alloced/freed by cpu online/offline callbacks. Originally these were only used by sysfs to expose the cache topology to user space. Without any in-kernel dependencies CPUHP_AP_ONLINE_DYN was

[PATCH 5.1 44/54] x86/ioapic: Implement irq_get_irqchip_state() callback

2019-07-17 Thread Greg Kroah-Hartman
From: Thomas Gleixner commit dfe0cf8b51b07e56ded571e3de0a4a9382517231 upstream. When an interrupt is shut down in free_irq() there might be an inflight interrupt pending in the IO-APIC remote IRR which is not yet serviced. That means the interrupt has been sent to the target CPUs local APIC, but

[PATCH 4.19 04/47] nilfs2: do not use unexported cpu_to_le32()/le32_to_cpu() in uapi header

2019-07-17 Thread Greg Kroah-Hartman
From: Masahiro Yamada commit c32cc30c0544f13982ee0185d55f4910319b1a79 upstream. cpu_to_le32/le32_to_cpu is defined in include/linux/byteorder/generic.h, which is not exported to user-space. UAPI headers must use the ones prefixed with double-underscore. Detected by compile-testing exported hea

[PATCH 5.1 42/54] genirq: Fix misleading synchronize_irq() documentation

2019-07-17 Thread Greg Kroah-Hartman
From: Thomas Gleixner commit 1d21f2af8571c6a6a44e7c1911780614847b0253 upstream. The function might sleep, so it cannot be called from interrupt context. Not even with care. Signed-off-by: Thomas Gleixner Cc: Marc Zyngier Link: https://lkml.kernel.org/r/20190628111440.189241...@linutronix.de S

[PATCH 4.19 19/47] pinctrl: mcp23s08: Fix add_data and irqchip_add_nested call order

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 6dbc6e6f58556369bf999cd7d9793586f1b0e4b4 ] Currently probing of the mcp23s08 results in an error message "detected irqchip that is shared with multiple gpiochips: please fix the driver" This is due to the following: Call to mcp23s08_irqchip_setup() with call hierarchy: mcp23s08

[PATCH 5.1 53/54] crypto/NX: Set receive window credits to max number of CRBs in RxFIFO

2019-07-17 Thread Greg Kroah-Hartman
From: Haren Myneni commit e52d484d9869eb291140545746ccbe5ffc7c9306 upstream. System gets checkstop if RxFIFO overruns with more requests than the maximum possible number of CRBs in FIFO at the same time. The max number of requests per window is controlled by window credits. So find max CRBs from

[PATCH 4.19 13/47] afs: Fix uninitialised spinlock afs_volume::cb_break_lock

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 90fa9b64523a645a97edc0bdcf2d74759957 ] Fix the cb_break_lock spinlock in afs_volume struct by initialising it when the volume record is allocated. Also rename the lock to cb_v_break_lock to distinguish it from the lock of the same name in the afs_server struct. Without this

[PATCH 4.19 10/47] perf/core: Fix perf_sample_regs_user() mm check

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 085ebfe937d7a7a5df1729f35a12d6d655fea68c ] perf_sample_regs_user() uses 'current->mm' to test for the presence of userspace, but this is insufficient, consider use_mm(). A better test is: '!(current->flags & PF_KTHREAD)', exec() clears PF_KTHREAD after it sets the new ->mm but b

[PATCH 4.19 24/47] HID: chicony: add another quirk for PixArt mouse

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit dcf768b0ac868630e7bdb6f2f1c9fe72788012fa ] I've spotted another Chicony PixArt mouse in the wild, which requires HID_QUIRK_ALWAYS_POLL quirk, otherwise it disconnects each minute. USB ID of this device is 0x04f2:0x0939. We've introduced quirks like this for other models before,

[PATCH 4.19 16/47] ppp: mppe: Add softdep to arc4

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit aad1dcc4f011ea409850e040363dff1e59aa4175 ] The arc4 crypto is mandatory at ppp_mppe probe time, so let's put a softdep line, so that the corresponding module gets prepared gracefully. Without this, a simple inclusion to initrd via dracut failed due to the missing dependency, for

[PATCH 4.19 35/47] x86/irq: Seperate unused system vectors from spurious entry again

2019-07-17 Thread Greg Kroah-Hartman
From: Thomas Gleixner t...@linutronix.de commit f8a8fe61fec8006575699559ead88b0b833d5cad upstream Quite some time ago the interrupt entry stubs for unused vectors in the system vector range got removed and directly mapped to the spurious interrupt vector entry point. Sounds reasonable, but it's

[PATCH 4.19 42/47] crypto/NX: Set receive window credits to max number of CRBs in RxFIFO

2019-07-17 Thread Greg Kroah-Hartman
From: Haren Myneni commit e52d484d9869eb291140545746ccbe5ffc7c9306 upstream. System gets checkstop if RxFIFO overruns with more requests than the maximum possible number of CRBs in FIFO at the same time. The max number of requests per window is controlled by window credits. So find max CRBs from

[PATCH 4.19 38/47] s390/qdio: (re-)initialize tiqdio list entries

2019-07-17 Thread Greg Kroah-Hartman
From: Julian Wiedmann commit e54e4785cb5cb4896cf4285964aeef2125612fb2 upstream. When tiqdio_remove_input_queues() removes a queue from the tiq_list as part of qdio_shutdown(), it doesn't re-initialize the queue's list entry and the prev/next pointers go stale. If a subsequent qdio_establish() f

[PATCH 4.19 28/47] pinctrl: mediatek: Update cur_mask in mask/mask ops

2019-07-17 Thread Greg Kroah-Hartman
[ Upstream commit 9d957a959bc8c3dfe37572ac8e99affb5a885965 ] During suspend/resume, mtk_eint_mask may be called while wake_mask is active. For example, this happens if a wake-source with an active interrupt handler wakes the system: irq/pm.c:irq_pm_check_wakeup would disable the interrupt, so that

  1   2   3   4   5   6   7   8   9   10   >