Re: [PATCH v2] arm64: dts: ls1028a: Fix CPU idle fail.

2019-06-11 Thread Shawn Guo
On Fri, May 17, 2019 at 12:57:53PM +0800, Ran Wang wrote: > PSCI spec define 1st parameter's bit 16 of function CPU_SUSPEND to > indicate CPU State Type: 0 for standby, 1 for power down. In this > case, we want to select standby for CPU idle feature. But current > setting wrongly select power down

Re: [PATCH 01/11] perf intel-pt: Add new packets for PEBS via PT

2019-06-11 Thread Adrian Hunter
On 12/06/19 3:09 AM, Arnaldo Carvalho de Melo wrote: > Em Mon, Jun 10, 2019 at 10:27:53AM +0300, Adrian Hunter escreveu: >> Add 3 new packets to supports PEBS via PT, namely Block Begin Packet (BBP), >> Block Item Packet (BIP) and Block End Packet (BEP). PEBS data is encoded >> into multiple BIP

Re: mmotm 2019-06-11-16-59 uploaded (nf_conntrack_bridge)

2019-06-11 Thread Randy Dunlap
On 6/11/19 4:59 PM, a...@linux-foundation.org wrote: > The mm-of-the-moment snapshot 2019-06-11-16-59 has been uploaded to > >http://www.ozlabs.org/~akpm/mmotm/ > > mmotm-readme.txt says > > README for mm-of-the-moment: > > http://www.ozlabs.org/~akpm/mmotm/ > > This is a snapshot of my

Re: [PATCH v3 7/8] usb: dwc3: qcom: Start USB in 'host mode' on the SDM845

2019-06-11 Thread Lee Jones
On Tue, 11 Jun 2019, Bjorn Andersson wrote: > On Mon 10 Jun 01:42 PDT 2019, Lee Jones wrote: > > > When booting with Device Tree, the current default boot configuration > > table option, the request to boot via 'host mode' comes from the > > 'dr_mode' property. > > As I said in my previous

[PATCH 2/5] dt-bindings: usb: mtu3: support force_vbus mode

2019-06-11 Thread Chunfeng Yun
Add a new property to indicate that the controller doesn't support Vbus detection due to non-exist Vbus PIN, and the driver should set force_vbus state for device mode Signed-off-by: Chunfeng Yun --- Documentation/devicetree/bindings/usb/mediatek,mtu3.txt | 2 ++ 1 file changed, 2 insertions(+)

[PATCH 1/5] dt-bindings: usb: mtu3: fix typo of DMA clock name

2019-06-11 Thread Chunfeng Yun
Fix typo of dma_ck Signed-off-by: Chunfeng Yun --- Documentation/devicetree/bindings/usb/mediatek,mtu3.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/usb/mediatek,mtu3.txt b/Documentation/devicetree/bindings/usb/mediatek,mtu3.txt index

[PATCH 3/5] dt-bindings: usb: mtk-xhci: add an optional xhci_ck clock

2019-06-11 Thread Chunfeng Yun
Add a new optional clock xhci_ck Signed-off-by: Chunfeng Yun --- Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.txt

[PATCH 5/5] usb: xhci-mtk: add an optional xhci_ck clock

2019-06-11 Thread Chunfeng Yun
Some SoCs may have an optional clock xhci_ck (125M or 200M), it usually uses the same PLL as sys_ck, so support it. Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk.c | 13 + drivers/usb/host/xhci-mtk.h | 1 + 2 files changed, 14 insertions(+) diff --git

[PATCH 4/5] usb: mtu3: support force_vbus mode

2019-06-11 Thread Chunfeng Yun
Some SoCs don't support Vbus detection due to non-exist Vbus PIN, so software need set force_vbus state when the controller works as device mode. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3.h | 3 +++ drivers/usb/mtu3/mtu3_core.c | 1 + drivers/usb/mtu3/mtu3_dr.c | 2 ++

Re: [RFC] On the Current Troubles of Mainlining Loongson Platform Drivers

2019-06-11 Thread Maciej W. Rozycki
On Tue, 11 Jun 2019, Aaro Koskinen wrote: > However, with your patch the "nobody cared" is never reached so all is > good. I tried 10 boots with the patch and all were successful. Without > the patch 8 out of 10 failed with the "nobody cared" warning. I wouldn't call it "good", just less

Re: [PATCH v2 8/8] habanalabs: enable 64-bit DMA mask in POWER9

2019-06-11 Thread Oliver O'Halloran
On Wed, Jun 12, 2019 at 8:54 AM Benjamin Herrenschmidt wrote: > > On Tue, 2019-06-11 at 20:22 +0300, Oded Gabbay wrote: > > > > > So, to summarize: > > > If I call pci_set_dma_mask with 48, then it fails on POWER9. However, > > > in runtime, I don't know if its POWER9 or not, so upon failure I

madvise() flags for not to sync dirty pages to the disk in shared mapping

2019-06-11 Thread dharmendra hans
Hi, I was searching for some madvise() flag options which allow my application to have choice of not syncing dirty pages created through shared mmap() to the disk. Issue is that currently dirty pages created by the application will be synced to the disk and there is no way application can avoid

Re: Coccinelle: api: add devm_platform_ioremap_resource script

2019-06-11 Thread Julia Lawall
On Tue, 11 Jun 2019, Enrico Weigelt, metux IT consult wrote: > On 09.06.19 10:55, Markus Elfring wrote: > > > > >> But there is not usually any interesting formatting on the left side of an > >> assignment (ie typically no newlines or comments). > > > > Is there any need to trigger additional

[PATCH+DISCUSSION] irqchip: armada-370-xp: Remove redundant ops assignment

2019-06-11 Thread Benjamin Herrenschmidt
pci_msi_create_irq_domain -> pci_msi_domain_update_chip_ops will set those two already since the driver sets MSI_FLAG_USE_DEF_CHIP_OPS Signed-off-by: Benjamin Herrenschmidt --- [UNTESTED] Just something I noticed while browsing through those drivers in search of ways to factor some of the

Re: linux-next 20190611: objtool warning

2019-06-11 Thread Guenter Roeck
On 6/11/19 7:52 PM, Josh Poimboeuf wrote: On Tue, Jun 11, 2019 at 06:59:22PM -0700, Randy Dunlap wrote: Hi, New warning AFAIK: drivers/hwmon/smsc47m1.o: warning: objtool: fan_div_store()+0x11f: sibling call from callable instruction with modified stack frame I'm getting a different

Re: [PATCH 4/4] mm: shrinker: make shrinker not depend on memcg kmem

2019-06-11 Thread Yang Shi
On 6/11/19 7:52 PM, Kirill A. Shutemov wrote: On Fri, Jun 07, 2019 at 02:07:39PM +0800, Yang Shi wrote: Currently shrinker is just allocated and can work when memcg kmem is enabled. But, THP deferred split shrinker is not slab shrinker, it doesn't make too much sense to have such shrinker

Re: [PATCH 2/4] mm: thp: make deferred split shrinker memcg aware

2019-06-11 Thread Yang Shi
On 6/11/19 7:47 PM, Kirill A. Shutemov wrote: On Fri, Jun 07, 2019 at 02:07:37PM +0800, Yang Shi wrote: + /* +* The THP may be not on LRU at this point, e.g. the old page of +* NUMA migration. And PageTransHuge is not enough to distinguish +* with other

Re: [PATCH bpf v2] bpf: fix nested bpf tracepoints with per-cpu data

2019-06-11 Thread Andrii Nakryiko
On Tue, Jun 11, 2019 at 8:48 PM Matt Mullins wrote: > > BPF_PROG_TYPE_RAW_TRACEPOINTs can be executed nested on the same CPU, as > they do not increment bpf_prog_active while executing. > > This enables three levels of nesting, to support > - a kprobe or raw tp or perf event, > - another one

Re: [PATCH] powerpc/32s: fix booting with CONFIG_PPC_EARLY_DEBUG_BOOTX

2019-06-11 Thread Michael Ellerman
On Mon, 2019-06-03 at 13:00:51 UTC, Christophe Leroy wrote: > When booting through OF, setup_disp_bat() does nothing because > disp_BAT are not set. By change, it used to work because BOOTX > buffer is mapped 1:1 at address 0x8100 by the bootloader, and > btext_setup_display() sets virt addr

Re: [PATCH v3] powerpc: fix kexec failure on book3s/32

2019-06-11 Thread Michael Ellerman
On Mon, 2019-06-03 at 08:20:28 UTC, Christophe Leroy wrote: > In the old days, _PAGE_EXEC didn't exist on 6xx aka book3s/32. > Therefore, allthough __mapin_ram_chunk() was already mapping kernel > text with PAGE_KERNEL_TEXT and the rest with PAGE_KERNEL, the entire > memory was executable. Part of

Re: [PATCH -next] dmaengine: dw-edma: Fix build error without CONFIG_PCI_MSI

2019-06-11 Thread Vinod Koul
On 12-06-19, 12:19, YueHaibing wrote: > If CONFIG_PCI_MSI is not set, building with CONFIG_DW_EDMA > fails: > > drivers/dma/dw-edma/dw-edma-core.c: In function dw_edma_irq_request: > drivers/dma/dw-edma/dw-edma-core.c:784:21: error: implicit declaration of > function pci_irq_vector; did you mean

Re: linux-next: Tree for Jun 11 (drivers/dma/dw-edma/)

2019-06-11 Thread Vinod Koul
On 11-06-19, 10:30, Randy Dunlap wrote: > On 6/11/19 2:24 AM, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20190607: > > > > on x86_64 or i386: > > when CONFIG_PCI is not set/enabled: > > ../drivers/dma/dw-edma/dw-edma-core.c: In function ‘dw_edma_irq_request’: >

[PATCH 1/2] staging: rtl8712: Fixed CamelCase lockRxFF0Filter renamed to lock_rx_ff0_filter

2019-06-11 Thread Deepak Mishra
In process of cleaning up struct _adapter in drv_types.h, lockRxFF0Filter is renamed to to lock_rx_ff0_filter to fix a checkpatch reported issue. Signed-off-by: Deepak Mishra --- drivers/staging/rtl8712/drv_types.h | 2 +- drivers/staging/rtl8712/usb_intf.c | 2 +-

[PATCH 0/2] staging: rtl8712: cleanup struct _adapter

2019-06-11 Thread Deepak Mishra
In process of cleaning up rtl8712 struct _adapter in drv_types.h I have fixed the camelcasing of lockRxFF0Filter and wkFilterRxFF0 Deepak Mishra (2): staging: rtl8712: Fixed CamelCase lockRxFF0Filter renamed to lock_rx_ff0_filter staging: rtl8712: Fixed CamelCase wkFilterRxFF0 renamed to

[PATCH 2/2] staging: rtl8712: Fixed CamelCase wkFilterRxFF0 renamed to wk_filter_rx_ff0

2019-06-11 Thread Deepak Mishra
In process of cleaning up struct _adapter in drv_types.h, wkFilterRxFF0 is renamed to to wk_filter_rx_ff0 to fix a checkpatch reported issue. Signed-off-by: Deepak Mishra --- drivers/staging/rtl8712/drv_types.h| 2 +- drivers/staging/rtl8712/rtl871x_xmit.c | 2 +-

[PATCH v9 4/4] arm64: dts: qcom: sdm845: Add Q6V5 MSS node

2019-06-11 Thread Bjorn Andersson
From: Sibi Sankar This patch adds Q6V5 MSS remoteproc node for SDM845 SoCs. Reviewed-by: Douglas Anderson Reviewed-by: Vinod Koul Signed-off-by: Sibi Sankar Signed-off-by: Bjorn Andersson --- Changes since v8: - None arch/arm64/boot/dts/qcom/sdm845.dtsi | 58

[PATCH v9 3/4] arm64: dts: qcom: Add AOSS QMP node

2019-06-11 Thread Bjorn Andersson
The AOSS QMP provides a number of power domains, used for QDSS and PIL, add the node for this. Tested-by: Sibi Sankar Reviewed-by: Sibi Sankar Reviewed-by: Vinod Koul Signed-off-by: Bjorn Andersson --- Changes since v8: - None arch/arm64/boot/dts/qcom/sdm845.dtsi | 10 ++ 1 file

[PATCH v9 1/4] dt-bindings: soc: qcom: Add AOSS QMP binding

2019-06-11 Thread Bjorn Andersson
Add binding for the QMP based side-channel communication mechanism to the AOSS, which is used to control resources not exposed through the RPMh interface. Reviewed-by: Rob Herring Reviewed-by: Vinod Koul Signed-off-by: Bjorn Andersson --- Changes since v8: - None

[PATCH v9 2/4] soc: qcom: Add AOSS QMP driver

2019-06-11 Thread Bjorn Andersson
The Always On Subsystem (AOSS) Qualcomm Messaging Protocol (QMP) driver is used to communicate with the AOSS for certain side-channel requests, that are not available through the RPMh interface. The communication is a very simple synchronous mechanism of messages being written in message RAM and

[PATCH v9 0/4] Qualcomm AOSS QMP driver

2019-06-11 Thread Bjorn Andersson
Add binding for the QMP based side-channel communication mechanism to the AOSS, which is used to control resources not exposed through the RPMh interface. Bjorn Andersson (3): dt-bindings: soc: qcom: Add AOSS QMP binding soc: qcom: Add AOSS QMP driver arm64: dts: qcom: Add AOSS QMP node

Re: [PATCH v2 3/5] locking/qspinlock: Introduce CNA into the slow path of qspinlock

2019-06-11 Thread Alex Kogan
Hi, Wei. > On Jun 11, 2019, at 12:22 AM, liwei (GF) wrote: > > Hi Alex, > > On 2019/3/29 23:20, Alex Kogan wrote: >> In CNA, spinning threads are organized in two queues, a main queue for >> threads running on the same node as the current lock holder, and a >> secondary queue for threads

[PATCH v6 3/3] arm64: kexec_file: add rng-seed support

2019-06-11 Thread Hsin-Yi Wang
Adding "rng-seed" to dtb. It's fine to add this property if original fdt doesn't contain it. Since original seed will be wiped after read, so use a default size 128 bytes here. Signed-off-by: Hsin-Yi Wang Reviewed-by: Stephen Boyd --- change log v5->v6: * no change ---

[PATCH v6 2/3] fdt: add support for rng-seed

2019-06-11 Thread Hsin-Yi Wang
Introducing a chosen node, rng-seed, which is an entropy that can be passed to kernel called very early to increase initial device randomness. Bootloader should provide this entropy and the value is read from /chosen/rng-seed in DT. Signed-off-by: Hsin-Yi Wang Reviewed-by: Stephen Boyd ---

[PATCH v6 1/3] arm64: map FDT as RW for early_init_dt_scan()

2019-06-11 Thread Hsin-Yi Wang
Currently in arm64, FDT is mapped to RO before it's passed to early_init_dt_scan(). However, there might be some codes (eg. commit "fdt: add support for rng-seed") that need to modify FDT during init. Map FDT to RO after early fixups are done. Signed-off-by: Hsin-Yi Wang Reviewed-by: Stephen

[PATCH v6 0/3] add support for rng-seed

2019-06-11 Thread Hsin-Yi Wang
Introducing a chosen node, rng-seed, which is an entropy that can be passed to kernel called very early to increase initial device randomness. Hsin-Yi Wang (3): arm64: map FDT as RW for early_init_dt_scan() fdt: add support for rng-seed arm64: kexec_file: add rng-seed support

RE: [PATCHv6 3/3] vfio/mdev: Synchronize device create/remove with parent removal

2019-06-11 Thread Parav Pandit
> -Original Message- > From: Alex Williamson > Sent: Tuesday, June 11, 2019 11:25 PM > To: Parav Pandit > Cc: Cornelia Huck ; k...@vger.kernel.org; linux- > ker...@vger.kernel.org; kwankh...@nvidia.com; c...@nvidia.com > Subject: Re: [PATCHv6 3/3] vfio/mdev: Synchronize device

Re: [PATCH] dmaengine: dw-edma: Fix build error without CONFIG_PCI_MSI

2019-06-11 Thread Yuehaibing
Pls ignore this, will fix patch title and resend On 2019/6/12 12:18, YueHaibing wrote: > If CONFIG_PCI_MSI is not set, building with CONFIG_DW_EDMA > fails: > > drivers/dma/dw-edma/dw-edma-core.c: In function dw_edma_irq_request: > drivers/dma/dw-edma/dw-edma-core.c:784:21: error: implicit

[PATCH -next] dmaengine: dw-edma: Fix build error without CONFIG_PCI_MSI

2019-06-11 Thread YueHaibing
If CONFIG_PCI_MSI is not set, building with CONFIG_DW_EDMA fails: drivers/dma/dw-edma/dw-edma-core.c: In function dw_edma_irq_request: drivers/dma/dw-edma/dw-edma-core.c:784:21: error: implicit declaration of function pci_irq_vector; did you mean rcu_irq_enter?

[PATCH] dmaengine: dw-edma: Fix build error without CONFIG_PCI_MSI

2019-06-11 Thread YueHaibing
If CONFIG_PCI_MSI is not set, building with CONFIG_DW_EDMA fails: drivers/dma/dw-edma/dw-edma-core.c: In function dw_edma_irq_request: drivers/dma/dw-edma/dw-edma-core.c:784:21: error: implicit declaration of function pci_irq_vector; did you mean rcu_irq_enter?

RE: [PATCH 1/6] ptp: add QorIQ PTP support for DPAA2

2019-06-11 Thread Y.b. Lu
Hi Andrew, > -Original Message- > From: Andrew Lunn > Sent: 2019年6月10日 21:06 > To: Y.b. Lu > Cc: net...@vger.kernel.org; David S . Miller ; > Richard Cochran ; Rob Herring > ; Shawn Guo ; > devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; > linux-arm-ker...@lists.infradead.org

Re: [RFC] Disable lockref on arm64

2019-06-11 Thread Jayachandran Chandrasekharan Nair
On Wed, May 22, 2019 at 05:04:17PM +0100, Will Deacon wrote: > On Sat, May 18, 2019 at 12:00:34PM +0200, Ard Biesheuvel wrote: > > On Sat, 18 May 2019 at 06:25, Jayachandran Chandrasekharan Nair > > wrote: > > > > > > On Mon, May 06, 2019 at 07:10:40PM +0100, Will Deacon wrote: > > > > On Mon,

Re: [RFC PATCH] x86/cpufeatures: Enumerate new AVX512 bfloat16 instructions

2019-06-11 Thread Borislav Petkov
On Tue, Jun 11, 2019 at 08:32:59PM -0700, Fenghua Yu wrote: > Currently KVM doesn't simulate scattered features (the ones in CPUID_LNX_* > in cpuid_leafs) as reverse_cpuid[] doesn't contain CPUID_LNX_*. 43500e6f294d ("x86/cpufeatures: Remove get_scattered_cpuid_leaf()") > After the

Re: [PATCH V5 - Rebased] mm/hotplug: Reorder memblock_[free|remove]() calls in try_remove_memory()

2019-06-11 Thread Anshuman Khandual
alid() behaves correctly and returns positive >> as memblock for the address range still exists. arch_remove_memory() >> removes applicable memory sections from zone with __remove_pages() and >> tears down kernel linear mapping. Removing memblock regions afterwards >> is safe

Re: [RFC PATCH] x86/cpufeatures: Enumerate new AVX512 bfloat16 instructions

2019-06-11 Thread Borislav Petkov
On Wed, Jun 12, 2019 at 03:29:57AM +, Yu, Fenghua wrote: > My bad. I studied a bit more and found the patch #1 is not needed. Why, I think you were spot-on: "And the two variables are ONLY used in resctrl monitoring configuration. There is no need to store them in cpuinfo_x86 on each CPU."

RE: [PATCH 2/2] soc: imx8: Use existing of_root directly

2019-06-11 Thread Aisheng Dong
> From: anson.hu...@nxp.com [mailto:anson.hu...@nxp.com] > Sent: Wednesday, June 12, 2019 11:36 AM > > There is common of_root for reference, no need to find it from DT again, use > of_root directly to make driver simple. > > Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng Regards Dong

RE: [PATCH 1/2] soc: imx8: Fix potential kernel dump in error path

2019-06-11 Thread Aisheng Dong
, this > will caused below kernel dump in later error path which calls kfree: > > kernel BUG at mm/slub.c:3942! > Internal error: Oops - BUG: 0 [#1] PREEMPT SMP Modules linked in: > CPU: 2 PID: 1 Comm: swapper/0 Not tainted > 5.2.0-rc4-next-20190611-00023-g705146c-dirty #2197 Hardwa

Re: [LKP] [tcp] 8b27dae5a2: netperf.Throughput_Mbps -25.7% regression

2019-06-11 Thread Feng Tang
On Tue, Jun 04, 2019 at 06:07:35PM +0800, Feng Tang wrote: > On Thu, May 30, 2019 at 11:23:14PM +0800, Feng Tang wrote: > > Hi Eric, > > > > On Thu, May 30, 2019 at 05:21:40AM -0700, Eric Dumazet wrote: > > > On Thu, May 30, 2019 at 3:31 AM Feng Tang wrote: > > > > > > > > On Wed, Apr 03, 2019

[PATCH net v2] tcp: avoid creating multiple req socks with the same tuples

2019-06-11 Thread Mao Wenan
There is one issue about bonding mode BOND_MODE_BROADCAST, and two slaves with diffierent affinity, so packets will be handled by different cpu. These are two pre-conditions in this case. When two slaves receive the same syn packets at the same time, two request sock(reqsk) will be created if

Re: [PATCH 2/2] edac: add support for Amazon's Annapurna Labs EDAC

2019-06-11 Thread Borislav Petkov
On Wed, Jun 12, 2019 at 08:25:52AM +1000, Benjamin Herrenschmidt wrote: > Yes, we would be in a world of pain already if tracepoints couldn't > handle concurrency :-) Right, lockless buffer and the whole shebang :) > Sort-of... I still don't see a race in what we propose but I might be > missing

[PATCH] media: ttpci: Fix build error without RC_CORE

2019-06-11 Thread YueHaibing
If RC_CORE is not set, building fails: drivers/media/pci/ttpci/av7110_ir.o: In function `av7110_ir_init': av7110_ir.c:(.text+0x1b0): undefined reference to `rc_allocate_device' av7110_ir.c:(.text+0x2c1): undefined reference to `rc_register_device' av7110_ir.c:(.text+0x2dc): undefined reference to

Re: [RFC PATCH] x86/cpufeatures: Enumerate new AVX512 bfloat16 instructions

2019-06-11 Thread Fenghua Yu
On Tue, Jun 11, 2019 at 09:47:02PM +0200, Borislav Petkov wrote: > On Tue, Jun 11, 2019 at 11:19:20AM -0700, Fenghua Yu wrote: > > So can I re-organize word 11 and 12 as follows? > > > > 1. Change word 11 to host scattered features. > > 2. Move the previos features in word 11 and word 12 to word

[PATCH 2/2] soc: imx8: Use existing of_root directly

2019-06-11 Thread Anson . Huang
From: Anson Huang There is common of_root for reference, no need to find it from DT again, use of_root directly to make driver simple. Signed-off-by: Anson Huang --- drivers/soc/imx/soc-imx8.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git

[PATCH 1/2] soc: imx8: Fix potential kernel dump in error path

2019-06-11 Thread Anson . Huang
Internal error: Oops - BUG: 0 [#1] PREEMPT SMP Modules linked in: CPU: 2 PID: 1 Comm: swapper/0 Not tainted 5.2.0-rc4-next-20190611-00023-g705146c-dirty #2197 Hardware name: NXP i.MX8MQ EVK (DT) pstate: 6005 (nZCv daif -PAN -UAO) pc : kfree+0x170/0x1b0 lr : imx8_soc_init+0xc0/0xe4 sp :

Re: [BISECTED REGRESSION] b43legacy broken on G4 PowerBook

2019-06-11 Thread Benjamin Herrenschmidt
On Tue, 2019-06-11 at 20:52 -0500, Larry Finger wrote: > On 6/11/19 5:46 PM, Benjamin Herrenschmidt wrote: > > On Tue, 2019-06-11 at 17:20 -0500, Larry Finger wrote: > > > b43-pci-bridge 0001:11:00.0: dma_direct_supported: failed (mask = > > > 0x3fff, > > > min_mask = 0x5000/0x5000,

RE: [RFC PATCH] x86/cpufeatures: Enumerate new AVX512 bfloat16 instructions

2019-06-11 Thread Yu, Fenghua
> On Tuesday, June 11, 2019 3:28 PM, Fenghua Yu wrote: > On Tue, Jun 11, 2019 at 09:47:02PM +0200, Borislav Petkov wrote: > > On Tue, Jun 11, 2019 at 11:19:20AM -0700, Fenghua Yu wrote: > > > So can I re-organize word 11 and 12 as follows? > > > > > > 1. Change word 11 to host scattered features.

[PATCH] ipmi: ipmb: Fix build error while CONFIG_I2C is set to m

2019-06-11 Thread YueHaibing
If CONFIG_I2C is m and CONFIG_I2C_SLAVE is y, building with CONFIG_IPMB_DEVICE_INTERFACE setting to y will fail: drivers/char/ipmi/ipmb_dev_int.o: In function `ipmb_remove': ipmb_dev_int.c: undefined reference to `i2c_slave_unregister' drivers/char/ipmi/ipmb_dev_int.o: In function `ipmb_write':

Re: [PATCH] dt-bindings: gpio: Convert Arm PL061 to json-schema

2019-06-11 Thread Viresh Kumar
On 11-06-19, 13:54, Rob Herring wrote: > On Mon, May 27, 2019 at 12:41 AM Viresh Kumar wrote: > > I checked SPEAr and it is missing interrupt-controller at few places and > > clocks > > everywhere. Missing clocks should be fine as SPEAr doesn't get clocks from > > DT. > > Clocks not from DT

Re: linux-next 20190611: objtool warning

2019-06-11 Thread Randy Dunlap
On 6/11/19 7:52 PM, Josh Poimboeuf wrote: > On Tue, Jun 11, 2019 at 06:59:22PM -0700, Randy Dunlap wrote: >> Hi, >> >> New warning AFAIK: >> >> drivers/hwmon/smsc47m1.o: warning: objtool: fan_div_store()+0x11f: sibling >> call from callable instruction with modified stack frame > > I'm getting a

[PATCH 2/2] mt76: mt7615: update peer's bssid when state transition changes

2019-06-11 Thread Ryder Lee
Driver should update peer's bssid and bss information when state transition changes. Signed-off-by: Ryder Lee --- .../net/wireless/mediatek/mt76/mt7615/main.c | 5 +- .../net/wireless/mediatek/mt76/mt7615/mcu.c | 49 ++- 2 files changed, 27 insertions(+), 27 deletions(-)

[PATCH v2] mt76: mt7615: add support for per-chain signal strength reporting

2019-06-11 Thread Ryder Lee
Fill in RX status->chain_signal to avoid empty value. Signed-off-by: Ryder Lee --- Changes since v2 - correct calculation sequence --- .../net/wireless/mediatek/mt76/mt7615/mac.c | 30 ++- .../net/wireless/mediatek/mt76/mt7615/mac.h | 5 2 files changed, 34

[PATCH 1/2] mt76: mt7615: fix incorrect settings in mesh mode

2019-06-11 Thread Ryder Lee
Fix wrong settings that will drop packets due to hardware's RX table searching flow. Fixes: f072c7ba2150 ("mt76: mt7615: enable support for mesh") Signed-off-by: Ryder Lee --- drivers/net/wireless/mediatek/mt76/mt7615/mcu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: Getting empty callchain from perf_callchain_kernel()

2019-06-11 Thread Josh Poimboeuf
On Fri, May 24, 2019 at 10:53:19AM +0200, Peter Zijlstra wrote: > > For ORC, I'm thinking we may be able to just require that all generated > > code (BPF and others) always use frame pointers. Then when ORC doesn't > > recognize a code address, it could try using the frame pointer as a > >

Re: linux-next 20190611: objtool warning

2019-06-11 Thread Josh Poimboeuf
On Tue, Jun 11, 2019 at 06:59:22PM -0700, Randy Dunlap wrote: > Hi, > > New warning AFAIK: > > drivers/hwmon/smsc47m1.o: warning: objtool: fan_div_store()+0x11f: sibling > call from callable instruction with modified stack frame I'm getting a different warning: drivers/hwmon/smsc47m1.o:

Re: [PATCH 4/4] mm: shrinker: make shrinker not depend on memcg kmem

2019-06-11 Thread Kirill A. Shutemov
On Fri, Jun 07, 2019 at 02:07:39PM +0800, Yang Shi wrote: > Currently shrinker is just allocated and can work when memcg kmem is > enabled. But, THP deferred split shrinker is not slab shrinker, it > doesn't make too much sense to have such shrinker depend on memcg kmem. > It should be able to

Re: [PATCH v2 3/4] perf augmented_raw_syscalls: Support arm64 raw syscalls

2019-06-11 Thread Arnaldo Carvalho de Melo
Em Tue, Jun 11, 2019 at 12:18:31PM +0800, Leo Yan escreveu: > On Mon, Jun 10, 2019 at 03:47:54PM -0300, Arnaldo Carvalho de Melo wrote: > > [...] > > > > > I tested with the lastest perf/core branch which contains the patch: > > > > 'perf augmented_raw_syscalls: Tell which args are filenames and

Re: [PATCH 2/4] mm: thp: make deferred split shrinker memcg aware

2019-06-11 Thread Kirill A. Shutemov
On Fri, Jun 07, 2019 at 02:07:37PM +0800, Yang Shi wrote: > + /* > + * The THP may be not on LRU at this point, e.g. the old page of > + * NUMA migration. And PageTransHuge is not enough to distinguish > + * with other compound page, e.g. skb, THP destructor is not used > +

Re: [PATCHv7 1/3] dt-bindings: i2c: document bindings for i2c-slave-mqueue

2019-06-11 Thread Wang, Haiyue
在 2019-06-12 07:14, Rob Herring 写道: On Wed, Jun 05, 2019 at 09:46:49AM -0700, Eduardo Valentin wrote: Document the i2c-slave-mqueue binding by adding descriptor, required properties, and example. Cc: Rob Herring Cc: Mark Rutland Cc: Wolfram Sang Cc: linux-...@vger.kernel.org Cc:

RE: 5.2-rc2: low framerate in flightgear, cpu not running at full speed, thermal related?

2019-06-11 Thread Doug Smythies
Hi, So, currently there seems to be 3 issues in this thread (and I am guessing a little, without definitive data): 1.) On your system Kernel 5.4-rc2 (or 4) defaults to the intel_pstate CPU frequency scaling driver and the powersave governor, but kernel 4.6 defaults to the acpi-cpufreq CPU

Re: [PATCH net] mpls: fix af_mpls dependencies

2019-06-11 Thread Randy Dunlap
On 6/11/19 5:08 PM, Matteo Croce wrote: > On Wed, Jun 12, 2019 at 1:07 AM Randy Dunlap wrote: >> >> On 6/9/19 7:57 PM, David Miller wrote: >>> From: Matteo Croce >>> Date: Sat, 8 Jun 2019 14:50:19 +0200 >>> MPLS routing code relies on sysctl to work, so let it select PROC_SYSCTL.

Re: [RFC PATCH v2 2/2] Implement sharing/unsharing of PMDs for FS/DAX

2019-06-11 Thread Kirill A. Shutemov
On Fri, Jun 07, 2019 at 12:51:03PM -0700, Larry Bassel wrote: > diff --git a/mm/hugetlb.c b/mm/hugetlb.c > index 3a54c9d..1c1ed4e 100644 > --- a/mm/hugetlb.c > +++ b/mm/hugetlb.c > @@ -4653,9 +4653,9 @@ long hugetlb_unreserve_pages(struct inode *inode, long > start, long end, > } > > #ifdef

Re: [PATCH v5 10/15] dma: imx-sdma: add i.mx6ul/6sx compatible name

2019-06-11 Thread Robin Gong
On 2019-06-11 at 22:35 +, Rob Herring wrote: > On Mon, 10 Jun 2019 16:17:48 +0800, yibin.g...@nxp.com wrote: > > > > From: Robin Gong > > > > Add i.mx6ul and i.mx6sx compatible name in binding doc. > > > > Signed-off-by: Robin Gong > > --- > >  

[PATCH 2/2] staging: rtl8723bs: hal: sdio_halinit: fix spaces preferred around that unary operator

2019-06-11 Thread Hariprasad Kelam
CHECK: spaces preferred around that '+' (ctx:VxV) CHECK: spaces preferred around that '<<' (ctx:VxV) CHECK: spaces preferred around that '|' (ctx:VxV) Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8723bs/hal/sdio_halinit.c | 92 ++-- 1 file changed, 46

[PATCH 1/2] staging: rtl8723bs: hal: sdio_halinit: fix comparison to true/false is error prone

2019-06-11 Thread Hariprasad Kelam
CHECK: Using comparison to false is error prone CHECK: Using comparison to true is error prone Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8723bs/hal/sdio_halinit.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git

Re: [PATCH 1/2] PCI: altera: Fix configuration type based on secondary number

2019-06-11 Thread Ley Foon Tan
On Thu, May 30, 2019 at 11:25 PM Lorenzo Pieralisi wrote: > > On Fri, May 24, 2019 at 02:07:25PM +0800, Ley Foon Tan wrote: > > This fix issue when access config from PCIe switch. > > > > Stratix 10 PCIe controller does not support Type 1 to Type 0 conversion > > as previous version (V1) does. >

Re: [PATCH v2 2/3] KVM: X86: Provide a capability to disable cstate msr read intercepts

2019-06-11 Thread Wanpeng Li
On Tue, 11 Jun 2019 at 19:09, Paolo Bonzini wrote: > > On 11/06/19 09:38, Wanpeng Li wrote: > > MSR_CORE_C1_RES is unreadable except for ATOM platform, so I think we > > can avoid the complex logic to handle C1 now. :) > > I disagree. Linux uses it on all platforms is available, and virtual >

Re: [RFC PATCH] Add script to add/remove/rename/renumber syscalls and resolve conflicts

2019-06-11 Thread Linus Torvalds
On Tue, Jun 11, 2019 at 3:27 AM David Howells wrote: > > Add a script that simplifies the process of altering system call tables in > the kernel sources. It has five functions available: Ugh, I hate it. I'm sure the script is all kinds of clever and useful, but I really think the solution is

Re: bcachefs status update (it's done cooking; let's get this sucker merged)

2019-06-11 Thread Linus Torvalds
On Mon, Jun 10, 2019 at 9:11 PM Dave Chinner wrote: > > The same rwsem issues were seen on the mmap_sem, the shrinker rwsem, > in a couple of device drivers, and so on. i.e. This isn't an XFS > issue I'm raising here - I'm raising a concern about the lack of > validation of core infrastructure

[PATCH] scsi: scsi_sysfs.c: Hide wwid sdev attr if VPD is not supported

2019-06-11 Thread Marcos Paulo de Souza
WWID composed from VPD data from device, specifically page 0x83. So, when a device does not have VPD support, for example USB storage devices where VPD is specifically disabled, a read into /device/wwid file will always return ENXIO. To avoid this, change the scsi_sdev_attr_is_visible function to

Re: [PATCH, RFC 2/2] Implement sharing/unsharing of PMDs for FS/DAX

2019-06-11 Thread Kirill A. Shutemov
On Fri, May 24, 2019 at 09:07:11AM -0700, Larry Bassel wrote: > Again, I don't think this can happen in DAX. The only sharing allowed > is for FS/DAX/2MiB pagesize. Hm. I still don't follow. How do you guarantee that DAX actually allocated continues space for the file on backing storage and you

[PATCH net-next v2 0/2] hinic: add rss support and rss paramters configuration

2019-06-11 Thread Xue Chaojing
This series add rss support for HINIC driver and implemente the ethtool interface related to rss parameter configuration. user can use ethtool configure rss parameters or show rss parameters. Xue Chaojing (2): hinic: add rss support hinic: add support for rss parameters with ethtool

[PATCH net-next v2 2/2] hinic: add support for rss parameters with ethtool

2019-06-11 Thread Xue Chaojing
This patch adds support rss parameters with ethtool, user can change hash key, hash indirection table, hash function by ethtool -X, and show rss parameters by ethtool -x. Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/Makefile| 2 +-

[PATCH net-next v2 1/2] hinic: add rss support

2019-06-11 Thread Xue Chaojing
This patch adds rss support for the HINIC driver. Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/hinic_dev.h | 26 ++ .../net/ethernet/huawei/hinic/hinic_hw_dev.c | 10 +- .../net/ethernet/huawei/hinic/hinic_hw_dev.h | 26 ++ .../net/ethernet/huawei/hinic/hinic_hw_wqe.h

Re: [PATCH v3 2/2] power: supply: ucs1002: Add HWMON interface

2019-06-11 Thread Andrey Smirnov
On Tue, Jun 11, 2019 at 12:46 PM Sebastian Reichel wrote: > > Hi, > > On Wed, Jun 05, 2019 at 11:39:45AM -0700, Guenter Roeck wrote: > > On Wed, Jun 05, 2019 at 10:47:25AM -0700, Andrey Smirnov wrote: > > > On Wed, Jun 5, 2019 at 9:26 AM Andrew F. Davis wrote: > > > > > > > > On 6/5/19 3:23 AM,

linux-next 20190611: objtool warning

2019-06-11 Thread Randy Dunlap
Hi, New warning AFAIK: drivers/hwmon/smsc47m1.o: warning: objtool: fan_div_store()+0x11f: sibling call from callable instruction with modified stack frame > gcc --version gcc (SUSE Linux) 7.4.1 20190424 [gcc-7-branch revision 270538] -- ~Randy

Re: [BISECTED REGRESSION] b43legacy broken on G4 PowerBook

2019-06-11 Thread Larry Finger
On 6/11/19 5:46 PM, Aaro Koskinen wrote: Hi, On Tue, Jun 11, 2019 at 05:20:12PM -0500, Larry Finger wrote: It is obvious that the case of a mask smaller than min_mask should be handled by the IOMMU. In my system, CONFIG_IOMMU_SUPPORT is selected. All other CONFIG variables containing IOMMU are

Re: [GIT PULL] (swiotlb) stable/for-linus-5.2

2019-06-11 Thread pr-tracker-bot
The pull request you sent on Tue, 11 Jun 2019 14:36:09 -0400: > git://git.kernel.org/pub/scm/linux/kernel/git/konrad/swiotlb.git > stable/for-linus-5.2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/4d8f5f91b8a608980b173ef3382913c7405f82c3 Thank you! --

Re: [GIT PULL] VFIO fixes for v5.2-rc5

2019-06-11 Thread pr-tracker-bot
The pull request you sent on Tue, 11 Jun 2019 11:49:55 -0600: > git://github.com/awilliam/linux-vfio.git tags/vfio-v5.2-rc5 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/c23b07125f8aebf8b39fffa325145826098f7d8f Thank you! -- Deet-doot-dot, I am a bot.

Re: [GIT PULL] Minor ptrace fixes for v5.2-rc5

2019-06-11 Thread pr-tracker-bot
The pull request you sent on Tue, 11 Jun 2019 15:23:27 -0500: > git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git > for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/aa7235483a838be79b7c22a86b0dc4cb12ee5dd6 Thank you! --

Re: [RFC PATCH v3 00/16] Core scheduling v3

2019-06-11 Thread Li, Aubrey
On 2019/6/6 23:26, Julien Desfossez wrote: > As mentioned above, we have come up with a fix for the long starvation > of untagged interactive threads competing for the same core with tagged > threads at the same priority. The idea is to detect the stall and boost > the stalling threads priority so

Re: [BISECTED REGRESSION] b43legacy broken on G4 PowerBook

2019-06-11 Thread Larry Finger
On 6/11/19 5:46 PM, Benjamin Herrenschmidt wrote: On Tue, 2019-06-11 at 17:20 -0500, Larry Finger wrote: b43-pci-bridge 0001:11:00.0: dma_direct_supported: failed (mask = 0x3fff, min_mask = 0x5000/0x5000, dma bits = 0x1f Ugh ? A mask with holes in it ? That's very wrong... That

Re: [PATCH] futex: Fix futex lock the wrong page

2019-06-11 Thread zhangxiaoxu (A)
This patch is for stable branch linux-4.4-y. On 2019/6/12 9:54, ZhangXiaoxu wrote: The upstram commit 65d8fc777f6d ("futex: Remove requirement for lock_page() in get_futex_key()") use variable 'page' as the page head, when merge it to stable branch, the variable `page_head` is page head. In

Re: [GIT PULL] Minor ptrace fixes for v5.2-rc5

2019-06-11 Thread Linus Torvalds
On Tue, Jun 11, 2019 at 10:23 AM Eric W. Biederman wrote: > > Apologies for being a little slow about getting this to you, I am still > figuring out how to develop with a little baby in the house. Heh. It gets better as they age. In just a couple of decades, you'll find they have it all figured

[PATCH] futex: Fix futex lock the wrong page

2019-06-11 Thread ZhangXiaoxu
The upstram commit 65d8fc777f6d ("futex: Remove requirement for lock_page() in get_futex_key()") use variable 'page' as the page head, when merge it to stable branch, the variable `page_head` is page head. In the stable branch, the variable `page` not means the page head, when lock the page head,

Re: [PATCH v3 2/4] KVM: LAPIC: lapic timer interrupt is injected by posted interrupt

2019-06-11 Thread Wanpeng Li
On Wed, 12 Jun 2019 at 04:39, Marcelo Tosatti wrote: > > On Tue, Jun 11, 2019 at 08:17:07PM +0800, Wanpeng Li wrote: > > From: Wanpeng Li > > > > Dedicated instances are currently disturbed by unnecessary jitter due > > to the emulated lapic timers fire on the same pCPUs which vCPUs resident. >

Re: [PATCH v4] page cache: Store only head pages in i_pages

2019-06-11 Thread Kirill A. Shutemov
On Sun, Jun 02, 2019 at 10:47:35PM +0100, Chris Wilson wrote: > Quoting Matthew Wilcox (2019-03-07 15:30:51) > > diff --git a/mm/huge_memory.c b/mm/huge_memory.c > > index 404acdcd0455..aaf88f85d492 100644 > > --- a/mm/huge_memory.c > > +++ b/mm/huge_memory.c > > @@ -2456,6 +2456,9 @@ static void

Re: [PATCH] arm64: configs: Enable GPIO_DAVINCI

2019-06-11 Thread keerthy
On 6/11/2019 11:49 PM, Tero Kristo wrote: On 05/06/2019 09:14, Keerthy wrote: Enable GPIO_DAVINCI and related configs for TI K3 AM6 platforms. Signed-off-by: Keerthy ---   arch/arm64/configs/defconfig | 3 +++   1 file changed, 3 insertions(+) diff --git a/arch/arm64/configs/defconfig

Re: [PATCH v3 0/3] KVM: Yield to IPI target if necessary

2019-06-11 Thread Nadav Amit
> On Jun 11, 2019, at 6:18 PM, Wanpeng Li wrote: > > On Wed, 12 Jun 2019 at 00:57, Nadav Amit wrote: >>> On Jun 11, 2019, at 3:02 AM, Wanpeng Li wrote: >>> >>> On Tue, 11 Jun 2019 at 09:48, Nadav Amit wrote: > On Jun 10, 2019, at 6:45 PM, Wanpeng Li wrote: > > On Tue, 11 Jun

[PATCH v4] kernel/module: Fix mem leak in module_add_modinfo_attrs

2019-06-11 Thread YueHaibing
In module_add_modinfo_attrs if sysfs_create_file fails, we forget to free allocated modinfo_attrs and roll back the sysfs files. Fixes: 03e88ae1b13d ("[PATCH] fix module sysfs files reference counting") Signed-off-by: YueHaibing --- v4: call module_remove_modinfo_attrs only while i > 0 v3: reuse

Re: [PATCH 16/16] mm: pass get_user_pages_fast iterator arguments in a structure

2019-06-11 Thread Nadav Amit
> On Jun 11, 2019, at 5:52 PM, Nicholas Piggin wrote: > > Christoph Hellwig's on June 12, 2019 12:41 am: >> Instead of passing a set of always repeated arguments down the >> get_user_pages_fast iterators, create a struct gup_args to hold them and >> pass that by reference. This leads to an over

Re: [PATCH v3 0/3] KVM: Yield to IPI target if necessary

2019-06-11 Thread Wanpeng Li
On Wed, 12 Jun 2019 at 00:57, Nadav Amit wrote: > > > On Jun 11, 2019, at 3:02 AM, Wanpeng Li wrote: > > > > On Tue, 11 Jun 2019 at 09:48, Nadav Amit wrote: > >>> On Jun 10, 2019, at 6:45 PM, Wanpeng Li wrote: > >>> > >>> On Tue, 11 Jun 2019 at 09:11, Sean Christopherson > >>> wrote: >

  1   2   3   4   5   6   7   8   9   10   >