RE: [PATCH v2] rtc: rtc-ds1374: wdt: Use watchdog core for watchdog part

2020-07-05 Thread 陳昭勳
Hi, > > > > + ret = devm_watchdog_register_device(&client->dev, &ds1374->wdt); > > > > if (ret) { > > > > - misc_deregister(&ds1374_miscdev); > > > > + dev_err(&client->dev, "failed to register DS1374 > > > > watchdog > > > > +device\n"); > > There was n

Re: [PATCH] eventfd: Enlarge recursion limit to allow vhost to work

2020-07-05 Thread Juri Lelli
On 03/07/20 19:11, He Zhe wrote: > > > On 7/3/20 4:12 PM, Juri Lelli wrote: > > Hi, > > > > On 10/04/20 19:47, zhe...@windriver.com wrote: > >> From: He Zhe > >> > >> commit b5e683d5cab8 ("eventfd: track eventfd_signal() recursion depth") > >> introduces a percpu counter that tracks the percpu r

[rcu:rcu/next] BUILD SUCCESS 856cb917f3b3edc8f81cfdff77fb2cad0c631376

2020-07-05 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next branch HEAD: 856cb917f3b3edc8f81cfdff77fb2cad0c631376 doc: Drop doubled words from RCU requirements documentation elapsed time: 1825m configs tested: 193 configs skipped: 25 The following configs have

Re: [PATCH v2] rtc: rtc-ds1374: wdt: Use watchdog core for watchdog part

2020-07-05 Thread Alexandre Belloni
On 06/07/2020 05:18:39+, Johnson CH Chen (陳昭勳) wrote: > > > #endif /*CONFIG_RTC_DRV_DS1374_WDT*/ > > > /* > > > @@ -653,15 +514,25 @@ static int ds1374_probe(struct i2c_client > > > *client, > > > > > > #ifdef CONFIG_RTC_DRV_DS1374_WDT > > > save_client = client; > > > - ret = misc_registe

linux-next: manual merge of the akpm-current tree with the s390 tree

2020-07-05 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: drivers/s390/crypto/ap_bus.h between commit: 74ecbef7b908 ("s390/zcrypt: code beautification and struct field renames") from the s390 tree and commit: a0062965cc01 ("mm, treewide: rename kzfree() to kfree_sensi

[PATCH] Replace HTTP links with HTTPS ones: EP93XX

2020-07-05 Thread Alexander A. Klimov
Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each file: If not .svg: For each line: If doesn't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:

[PATCH] Replace HTTP links with HTTPS ones: RTC

2020-07-05 Thread Alexander A. Klimov
Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each file: If not .svg: For each line: If doesn't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:

KASAN: use-after-free Read in wg_get_device_start

2020-07-05 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:7cc2a8ea Merge tag 'block-5.8-2020-07-01' of git://git.ker.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=123532a710 kernel config: https://syzkaller.appspot.com/x/.config?x=183dd243398ba7ec das

INFO: task hung in gate_exit_net

2020-07-05 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:2b04a661 Merge branch 'cxgb4-add-mirror-action-support-for.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=12d9b86b10 kernel config: https://syzkaller.appspot.com/x/.config?x=2172f4d0dbc37e27 das

BUG: unable to handle kernel NULL pointer dereference in bpf_prog_ADDR_L

2020-07-05 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:cb8e59cc Merge git://git.kernel.org/pub/scm/linux/kernel/g.. git tree: bpf-next console output: https://syzkaller.appspot.com/x/log.txt?x=1446cfd310 kernel config: https://syzkaller.appspot.com/x/.config?x=a16ddbc78955e3a9 das

Re: WARNING in bpf_xdp_adjust_tail

2020-07-05 Thread Jesper Dangaard Brouer
On Sun, 05 Jul 2020 00:20:18 -0700 syzbot wrote: > Hello, > > syzbot found the following crash on: It is WARN that trigger this, due to panic_on_warn set. It's great to see that syzbot report these, as the WARN_ONCE is meant to catch drivers that forget to init xdp->frame_sz. In this case it

Re: [PATCH v2] kasan: fix KASAN unit tests for tag-based KASAN

2020-07-05 Thread Dmitry Vyukov
On Mon, Jul 6, 2020 at 4:21 AM Walter Wu wrote: > > We use tag-based KASAN, then KASAN unit tests don't detect out-of-bounds > memory access. They need to be fixed. > > With tag-based KASAN, the state of each 16 aligned bytes of memory is > encoded in one shadow byte and the shadow value is tag of

Re: [PATCH v5 03/14] irqchip/csky-mpintc: Fix potential resource leaks

2020-07-05 Thread Markus Elfring
> … Thus add jump targets for the completion of the desired > exception handling. By the way, do some coding-style cleanups > suggested by Markus. I propose to split these changes. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?

Re: INFO: rcu detected stall in netlink_sendmsg (4)

2020-07-05 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:9e50b94b Add linux-next specific files for 20200703 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=13e6ec3310 kernel config: https://syzkaller.appspot.com/x/.config?x=f99cc0faa1476e

Re: [PATCH 0/3] readfile(2): a new syscall to make open/read/close faster

2020-07-05 Thread Jan Ziak
On Sun, Jul 5, 2020 at 1:58 PM Greg KH wrote: > > On Sun, Jul 05, 2020 at 06:09:03AM +0200, Jan Ziak wrote: > > On Sun, Jul 5, 2020 at 5:27 AM Matthew Wilcox wrote: > > > > > > On Sun, Jul 05, 2020 at 05:18:58AM +0200, Jan Ziak wrote: > > > > On Sun, Jul 5, 2020 at 5:12 AM Matthew Wilcox > > >

Re: [PATCH v3] ARM: dts: exynos: Remove DMA controller bus node name to fix dtschema warnings

2020-07-05 Thread Marek Szyprowski
On 05.07.2020 20:17, Krzysztof Kozlowski wrote: > There is no need to keep DMA controller nodes under AMBA bus node. > Remove the "amba" node to fix dtschema warnings like: > > amba: $nodename:0: 'amba' does not match > '^(bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$' > > Signed-off-by: Krzysztof Koz

[PATCH v1 1/2] scsi: ufs: Simplify completion timestamp for SCSI and query commands

2020-07-05 Thread Stanley Chu
Simplify recording command completion time in __ufshcd_transfer_req_compl() by assigning lrbp->compl_time_stamp in an unified location. Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufshcd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/ufs/ufshcd.c b/drive

[PATCH v1 0/2] scsi: ufs: Fix and simplify setup_xfer_req vop and request's completion timestamp

2020-07-05 Thread Stanley Chu
Hi, This small series fixes and simplifies setup_xfer_req vop and request's completion timestamp. Stanley Chu (2): scsi: ufs: Simplify completion timestamp for SCSI and query commands scsi: ufs: Fix and simplify setup_xfer_req variant operation drivers/scsi/ufs/ufshcd.c | 12 ++-- 1

[PATCH v1 2/2] scsi: ufs: Fix and simplify setup_xfer_req variant operation

2020-07-05 Thread Stanley Chu
Add missing "setup_xfer_req" call in ufshcd_issue_devman_upiu_cmd() by ufs-bsg path, and collect all "setup_xfer_req" calls to an unified place, i.e., ufshcd_send_command(), to simplify the driver. Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufshcd.c | 9 + 1 file changed, 5 insertio

Re: linux-next: manual merge of the dmaengine tree with the dmaengine-fixes tree

2020-07-05 Thread Stephen Rothwell
Hi all, On Mon, 6 Jul 2020 10:11:46 +0530 Vinod Koul wrote: > > On 05-07-20, 21:23, Dave Jiang wrote: > > > > On 7/5/2020 8:56 PM, Stephen Rothwell wrote: > > > > > > Today's linux-next merge of the dmaengine tree got a conflict in: > > > > > >drivers/dma/idxd/sysfs.c > > > > > > betwee

Re: [PATCH] omapfb: dss: Fix max fclk divider for omap36xx

2020-07-05 Thread Tomi Valkeinen
Hi, On 03/07/2020 22:36, Sam Ravnborg wrote: Hi Tomi. On Fri, Jul 03, 2020 at 10:17:29AM +0300, Tomi Valkeinen wrote: On 30/06/2020 21:26, Adam Ford wrote: The drm/omap driver was fixed to correct an issue where using a divider of 32 breaks the DSS despite the TRM stating 32 is a valid number

linux-next: manual merge of the memblock tree with the pidfd tree

2020-07-05 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the memblock tree got a conflict in: arch/unicore32/kernel/process.c between commit: 8496da092a53 ("unicore: switch to copy_thread_tls()") 714acdbd1c94 ("arch: rename copy_thread_tls() back to copy_thread()") from the pidfd tree and commit: fb37409a

[rcu:dev.2020.07.02a] BUILD SUCCESS 9e4ad971bf0a551b3922c94eda1f361be04dcde2

2020-07-05 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2020.07.02a branch HEAD: 9e4ad971bf0a551b3922c94eda1f361be04dcde2 squash! kernel/smp: Provide CSD lock timeout diagnostics elapsed time: 2235m configs tested: 219 configs skipped: 34 The following configs

[PATCH] cpuidle/powernv : Remove dead code block

2020-07-05 Thread Abhishek Goel
Commit 1961acad2f88559c2cdd2ef67c58c3627f1f6e54 removes usage of function "validate_dt_prop_sizes". This patch removes this unused function. Signed-off-by: Abhishek Goel --- drivers/cpuidle/cpuidle-powernv.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/drivers/cpuidle/cpuid

Re: [PATCH 13/16] arm64: dts: allwinner: a64: Add HDMI audio

2020-07-05 Thread Maxime Ripard
On Sat, Jul 04, 2020 at 01:38:59PM +0200, Clément Péron wrote: > From: Marcus Cooper > > Add a simple-soundcard to link audio between HDMI and I2S. > > Signed-off-by: Jernej Skrabec > Signed-off-by: Marcus Cooper > Signed-off-by: Clément Péron > --- > arch/arm64/boot/dts/allwinner/sun50i-a64

Re: [PATCH] Replace HTTP links with HTTPS ones: VMWare PVRDMA driver

2020-07-05 Thread Leon Romanovsky
On Sun, Jul 05, 2020 at 11:45:28PM +0200, Alexander A. Klimov wrote: > Rationale: > Reduces attack surface on kernel devs opening the links for MITM > as HTTPS traffic is much harder to manipulate. > > Deterministic algorithm: > For each file: > If not .svg: > For each line: > If doesn'

RE: [EXT] Re: [PATCH v5 3/3] ARM: imx6plus: optionally enable internal routing of clk_enet_ref

2020-07-05 Thread Andy Duan
From: Sven Van Asbroeck Sent: Sunday, July 5, 2020 11:34 PM > > ext phy-| \ > | | > enet_ref-o--|M |pad--| \ >| |_/ | | >| |M |mac_gtx >| | | >

Re: [PATCH 08/16] arm64: dts: allwinner: h6: Add HDMI audio node

2020-07-05 Thread Maxime Ripard
Hi, On Sat, Jul 04, 2020 at 01:38:54PM +0200, Clément Péron wrote: > From: Jernej Skrabec > > Add a simple-soundcard to link audio between HDMI and I2S. > > Signed-off-by: Jernej Skrabec > Signed-off-by: Marcus Cooper > Signed-off-by: Clément Péron > --- > arch/arm64/boot/dts/allwinner/sun5

Re: [PATCH 07/16] ASoC: sun4i-i2s: Fix sun8i volatile regs

2020-07-05 Thread Maxime Ripard
On Sat, Jul 04, 2020 at 01:38:53PM +0200, Clément Péron wrote: > The FIFO TX reg is volatile and sun8i i2s register > mapping is different from sun4i. > > Even if in this case it's doesn't create an issue, > Avoid setting some regs that are undefined in sun8i. > > Signed-off-by: Clément Péron A

Re: [PATCH 06/16] ASoC: sun4i-i2s: Adjust regmap settings

2020-07-05 Thread Maxime Ripard
On Sat, Jul 04, 2020 at 01:38:52PM +0200, Clément Péron wrote: > From: Marcus Cooper > > Bypass the regmap cache when flushing or reading the i2s FIFOs. > > Signed-off-by: Marcus Cooper > Signed-off-by: Clément Péron Acked-by: Maxime Ripard Thanks Maxime signature.asc Description: PGP sig

Re: [PATCH v2] dmaengine: ioat setting ioat timeout as module parameter

2020-07-05 Thread Vinod Koul
On 01-07-20, 21:48, leonid.rav...@dell.com wrote: > From: Leonid Ravich > > DMA transaction time to completion is a function of > PCI bandwidth,transaction size and a queue depth. space after , pls > So hard coded value for timeouts might be wrong > for some scenarios. I ahve fixed above and

Re: [PATCH 05/16] ASoc: sun4i-i2s: Add 20 and 24 bit support

2020-07-05 Thread Maxime Ripard
On Sat, Jul 04, 2020 at 01:38:51PM +0200, Clément Péron wrote: > From: Marcus Cooper > > Extend the functionality of the driver to include support of 20 and > 24 bits per sample. > > Signed-off-by: Marcus Cooper > Signed-off-by: Clément Péron Acked-by: Maxime Ripard Thanks! Maxime signatu

RE: [PATCH v2] rtc: rtc-ds1374: wdt: Use watchdog core for watchdog part

2020-07-05 Thread 陳昭勳
Hi, Thanks for your good suggestions! > > diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index > > b54d87d45c89..5e2444af5657 100644 > > --- a/drivers/rtc/Kconfig > > +++ b/drivers/rtc/Kconfig > > @@ -282,6 +282,7 @@ config RTC_DRV_DS1374 config > RTC_DRV_DS1374_WDT > > bool "Dallas/

Re: [PATCH 04/16] ASoC: sun4i-i2s: Set sign extend sample

2020-07-05 Thread Maxime Ripard
On Sat, Jul 04, 2020 at 01:38:50PM +0200, Clément Péron wrote: > From: Marcus Cooper > > On the newer SoCs such as the H3 and A64 this is set by default > to transfer a 0 after each sample in each slot. However the A10 > and A20 SoCs that this driver was developed on had a default > setting where

回复: [PATCH] usb: gadget: function: fix missing spinlock in f_uac1_legacy

2020-07-05 Thread Zhang, Qiang
发件人: linux-kernel-ow...@vger.kernel.org 代表 qiang.zh...@windriver.com 发送时间: 2020年7月5日 9:59 收件人: ba...@kernel.org 抄送: gre...@linuxfoundation.org; colin.k...@canonical.com; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org 主题: [PATCH] usb: gadget: fu

Re: [PATCH 01/16] ASoC: sun4i-i2s: Add support for H6 I2S

2020-07-05 Thread Maxime Ripard
Hi, On Sat, Jul 04, 2020 at 01:38:47PM +0200, Clément Péron wrote: > From: Jernej Skrabec > > H6 I2S is very similar to that in H3, except it supports up to 16 > channels. > > Signed-off-by: Jernej Skrabec > Signed-off-by: Marcus Cooper > Signed-off-by: Clément Péron > --- > sound/soc/sunxi

Re: [PATCH 2/3] arm64: dts: allwinner: Add support for PinePhone revision 1.2

2020-07-05 Thread Maxime Ripard
Hi, On Fri, Jul 03, 2020 at 09:48:41PM +0200, Ondrej Jirman wrote: > Revision 1.2 should be the final production version of the PinePhone. > It has most of the known HW quirks fixed. > > Interrupt to the magnetometer is routed correctly, in this revision. > > The bulk of the changes are in how m

linux-next: manual merge of the pidfd tree with the csky tree

2020-07-05 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the pidfd tree got a conflict in: arch/csky/kernel/process.c between commit: 29adb883aa77 ("csky: remove unusued thread_saved_pc and *_segments functions/macros") from the csky tree and commit: 714acdbd1c94 ("arch: rename copy_thread_tls() back to co

drivers/hwspinlock/omap_hwspinlock.c:165:34: warning: unused variable 'omap_hwspinlock_of_match'

2020-07-05 Thread kernel test robot
Hi Baolin, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: dcb7fd82c75ee2d6e6f9d8cc71c52519ed52e258 commit: ffd0bbfb378ecd56eac22bf932ccdbf89ac7f725 hwspinlock: Allow drivers to be built with COMPILE_TEST date:

linux-next: manual merge of the pidfd tree with the csky tree

2020-07-05 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the pidfd tree got a conflict in: arch/csky/Kconfig between commit: f4dd2edafba0 ("csky: add support for SECCOMP and SECCOMP_FILTER") from the csky tree and commit: 140c8180eb7c ("arch: remove HAVE_COPY_THREAD_TLS") from the pidfd tree. I fixed it u

Re: [PATCH v1] dmaengine: fsl-edma-common: correct DSIZE_32BYTE

2020-07-05 Thread Vinod Koul
On 30-06-20, 00:59, Robin Gong wrote: > Correct EDMA_TCD_ATTR_DSIZE_32BYTE define since it's broken by the below: > '0x0005 --> BIT(3) | BIT(0))' Applied, thanks -- ~Vinod

[RFC v2 2/2] powerpc/powernv : Introduce capability for firmware-enabled-stop

2020-07-05 Thread Abhishek Goel
This patch introduces the capability for firmware to handle the stop states instead. A bit is set based on the discovery of the feature and correspondingly also the responsibility to handle the stop states. If Kernel does not know about stop version, it can fallback to opal for idle stop support i

[RFC v2 1/2] powerpc/powernv : Add support for pre-entry and post-exit of stop state using OPAL V4 OS services

2020-07-05 Thread Abhishek Goel
This patch provides kernel framework fro opal support of save restore of sprs in idle stop loop. Opal support for stop states is needed to selectively enable stop states or to introduce a quirk quickly in case a buggy stop state is present. We make a opal call from kernel if firmware-stop-support

Re: [PATCH] kbuild: make Clang build userprogs for target architecture

2020-07-05 Thread Miguel Ojeda
Hi Masahiro, On Sun, Jul 5, 2020 at 5:30 PM Masahiro Yamada wrote: > > Hmm, adding '#include ' did not make any difference. That should have worked, because POSIX defines it to be there. It sounds like you need --sysroot to point it to the proper ones. > If I add -std=c99, I get a different err

Re: [PATCH 01/17] Documentation/driver-api: dmaengine/provider: drop doubled word

2020-07-05 Thread Vinod Koul
On 03-07-20, 20:44, Randy Dunlap wrote: > Drop the doubled word "has". Applied, thanks > > Signed-off-by: Randy Dunlap > Cc: Jonathan Corbet > Cc: linux-...@vger.kernel.org > Cc: Vinod Koul > Cc: dmaeng...@vger.kernel.org > --- > Documentation/driver-api/dmaengine/provider.rst |2 +- > 1

Re: linux-next: manual merge of the dmaengine tree with the dmaengine-fixes tree

2020-07-05 Thread Vinod Koul
On 05-07-20, 21:23, Dave Jiang wrote: > > > On 7/5/2020 8:56 PM, Stephen Rothwell wrote: > > Hi all, > > > > Today's linux-next merge of the dmaengine tree got a conflict in: > > > >drivers/dma/idxd/sysfs.c > > > > between commit: > > > >da32b28c95a7 ("dmaengine: idxd: cleanup workque

Re: [PATCH 0/7] Add initial Keem Bay SoC / Board support

2020-07-05 Thread Jassi Brar
On Tue, Jun 16, 2020 at 10:56 AM Daniele Alessandrelli wrote: > > Hi, > > This patch-set adds initial support for a new Intel Movidius SoC code-named > Keem Bay. The SoC couples an ARM Cortex A53 CPU with an Intel Movidius VPU. > > This initial patch-set enables only the minimal set of components

[PATCH v3 6/6] powerpc/qspinlock: optimised atomic_try_cmpxchg_lock that adds the lock hint

2020-07-05 Thread Nicholas Piggin
This brings the behaviour of the uncontended fast path back to roughly equivalent to simple spinlocks -- a single atomic op with lock hint. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/atomic.h| 28 arch/powerpc/include/asm/qspinlock.h | 2 +- 2 f

[PATCH v3 5/6] powerpc/pseries: implement paravirt qspinlocks for SPLPAR

2020-07-05 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/paravirt.h | 28 arch/powerpc/include/asm/qspinlock.h | 66 +++ arch/powerpc/include/asm/qspinlock_paravirt.h | 7 ++ arch/powerpc/platforms/pseries/Kconfig| 5 ++ arch/powerpc/platfo

[PATCH v3 3/6] powerpc: move spinlock implementation to simple_spinlock

2020-07-05 Thread Nicholas Piggin
To prepare for queued spinlocks. This is a simple rename except to update preprocessor guard name and a file reference. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/simple_spinlock.h| 292 ++ .../include/asm/simple_spinlock_types.h | 21 ++ arch/powerpc/

[PATCH v3 4/6] powerpc/64s: implement queued spinlocks and rwlocks

2020-07-05 Thread Nicholas Piggin
These have shown significantly improved performance and fairness when spinlock contention is moderate to high on very large systems. [ Numbers hopefully forthcoming after more testing, but initial results look good ] Thanks to the fast path, single threaded performance is not noticably hurt.

[PATCH v3 2/6] powerpc/pseries: move some PAPR paravirt functions to their own file

2020-07-05 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/paravirt.h | 61 + arch/powerpc/include/asm/spinlock.h | 24 +--- arch/powerpc/lib/locks.c| 12 +++--- 3 files changed, 68 insertions(+), 29 deletions(-) create mode 100644 arch/powerpc/in

Re: [PATCH 0/2] PCI: dwc: Add support to handle prefetchable memory separately

2020-07-05 Thread Vidya Sagar
On 18-Jun-20 12:26 AM, Vidya Sagar wrote: On 02-Jun-20 10:37 PM, Gustavo Pimentel wrote: External email: Use caution opening links or attachments On Tue, Jun 2, 2020 at 11:9:38, Vidya Sagar wrote: In this patch series, Patch-1 adds required infrastructure to deal with prefetchable memo

[PATCH v3 1/6] powerpc/powernv: must include hvcall.h to get PAPR defines

2020-07-05 Thread Nicholas Piggin
An include goes away in future patches which breaks compilation without this. Signed-off-by: Nicholas Piggin --- arch/powerpc/platforms/powernv/pci-ioda-tce.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/platforms/powernv/pci-ioda-tce.c b/arch/powerpc/platforms/powernv/pci-i

[PATCH v3 0/6] powerpc: queued spinlocks and rwlocks

2020-07-05 Thread Nicholas Piggin
v3 is updated to use __pv_queued_spin_unlock, noticed by Waiman (thank you). Thanks, Nick Nicholas Piggin (6): powerpc/powernv: must include hvcall.h to get PAPR defines powerpc/pseries: move some PAPR paravirt functions to their own file powerpc: move spinlock implementation to simple_spin

[PATCH net-next v2 0/3] net: ethtool: Untangle PHYLIB dependency

2020-07-05 Thread Florian Fainelli
Hi all, This patch series untangles the ethtool netlink dependency with PHYLIB which exists because the cable test feature calls directly into PHY library functions. The approach taken here is to introduce ethtool_phy_ops function pointers which can be dynamically registered when PHYLIB loads. Fl

[PATCH net-next v2 2/3] net: phy: Register ethtool PHY operations

2020-07-05 Thread Florian Fainelli
Utilize ethtool_set_ethtool_phy_ops to register a suitable set of PHY ethtool operations in a dynamic fashion such that ethtool will no longer directy reference PHY library symbols. Signed-off-by: Florian Fainelli --- drivers/net/phy/phy_device.c | 7 +++ 1 file changed, 7 insertions(+) dif

[PATCH net-next v2 3/3] net: ethtool: Remove PHYLIB direct dependency

2020-07-05 Thread Florian Fainelli
Now that we have introduced ethtool_phy_ops and the PHY library dynamically registers its operations with that function pointer, we can remove the direct PHYLIB dependency in favor of using dynamic operations. Signed-off-by: Florian Fainelli --- net/Kconfig | 1 - net/ethtool/cablet

[PATCH net-next v2 1/3] net: ethtool: Introduce ethtool_phy_ops

2020-07-05 Thread Florian Fainelli
In order to decouple ethtool from its PHY library dependency, define an ethtool_phy_ops singleton which can be overriden by the PHY library when it loads with an appropriate set of function pointers. Signed-off-by: Florian Fainelli --- include/linux/ethtool.h | 25 + net/

Re: linux-next: manual merge of the dmaengine tree with the dmaengine-fixes tree

2020-07-05 Thread Dave Jiang
On 7/5/2020 8:56 PM, Stephen Rothwell wrote: Hi all, Today's linux-next merge of the dmaengine tree got a conflict in: drivers/dma/idxd/sysfs.c between commit: da32b28c95a7 ("dmaengine: idxd: cleanup workqueue config after disabling") from the dmaengine-fixes tree and commit: f5

Re: [tip: x86/urgent] x86/entry/32: Fix XEN_PV build dependency

2020-07-05 Thread Jürgen Groß
On 05.07.20 22:24, Andy Lutomirski wrote: On Jul 5, 2020, at 12:44 PM, tip-bot2 for Ingo Molnar wrote: The following commit has been merged into the x86/urgent branch of tip: Commit-ID: a4c0e91d1d65bc58f928b80ed824e10e165da22c Gitweb: https://git.kernel.org/tip/a4c0e91d1d65bc5

Re: [RFC V2 1/2] arm64/mm: Change THP helpers per generic memory semantics

2020-07-05 Thread Anshuman Khandual
On 07/02/2020 05:41 PM, Catalin Marinas wrote: > Hi Anshuman, Hi Catalin, > > On Mon, Jun 15, 2020 at 06:45:17PM +0530, Anshuman Khandual wrote: >> --- a/arch/arm64/include/asm/pgtable.h >> +++ b/arch/arm64/include/asm/pgtable.h >> @@ -353,15 +353,92 @@ static inline int pmd_protnone(pmd_t pm

linux-next: manual merge of the dmaengine tree with the dmaengine-fixes tree

2020-07-05 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the dmaengine tree got a conflict in: drivers/dma/idxd/sysfs.c between commit: da32b28c95a7 ("dmaengine: idxd: cleanup workqueue config after disabling") from the dmaengine-fixes tree and commit: f50b150e315e ("dmaengine: idxd: add work queue drain su

Re: [PATCH v2] phy: samsung: Use readl_poll_timeout function

2020-07-05 Thread Anand Moon
Hi Krzysztof, Thanks for your review comments. On Sun, 5 Jul 2020 at 23:32, Krzysztof Kozlowski wrote: > > On Sun, Jul 05, 2020 at 06:04:35AM +, Anand Moon wrote: > > User readl_poll_timeout function instead of open > > coded handling in crport_handshake function. > > Your change does not re

[PATCH] usb: gadget: function: fix missing spinlock in f_uac1_legacy

2020-07-05 Thread qiang.zhang
From: Zhang Qiang Signed-off-by: Zhang Qiang --- drivers/usb/gadget/function/f_uac1_legacy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/gadget/function/f_uac1_legacy.c b/drivers/usb/gadget/function/f_uac1_legacy.c index 349deae7cabd..e2d7f69128a0 100644 --- a/drivers/usb

Re: use-after-free in Bluetooth: 6lowpan (was Re: KASAN: use-after-free Write in refcount_warn_saturate)

2020-07-05 Thread Kees Cook
On Thu, Feb 27, 2020 at 11:50:11PM -0800, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:f8788d86 Linux 5.6-rc3 > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=13005fd9e0 > kernel config: https://syzkaller.appspot.co

[PATCH 1/1] ALSA: opl3: fix infoleak in opl3

2020-07-05 Thread Xidong Wang
From: xidongwang The stack object “info” in snd_opl3_ioctl() has a leaking problem. It has 2 padding bytes which are not initialized and leaked via “copy_to_user”. Signed-off-by: xidongwang --- sound/drivers/opl3/opl3_synth.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/drivers/

linux-next: manual merge of the driver-core tree with the devicetree tree

2020-07-05 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the driver-core tree got a conflict in: include/linux/device.h between commit: 7d34ca385484 ("driver core: Add device_is_dependent() to linux/device.h") from the devicetree tree and commit: 67dd07723969 ("device: remove 'extern' attribute from functio

Re: [PATCH 1/1] power: supply: axp20x_usb_power: fix spelling mistake

2020-07-05 Thread Chen-Yu Tsai
On Wed, Jun 24, 2020 at 4:41 PM Flavio Suligoi wrote: > > Fix typo: "triger" --> "trigger" > > Signed-off-by: Flavio Suligoi Acked-by: Chen-Yu Tsai

[PATCH v3] kthread: Work could not be queued when worker being destroyed

2020-07-05 Thread qiang.zhang
From: Zhang Qiang Before the work is put into the queue of the worker thread, the state of the worker thread needs to be detected,because the worker thread may be in the destruction state at this time. Signed-off-by: Zhang Qiang Suggested-by: Petr Mladek Reviewed-by: Petr Mladek --- v1->v2:

[PATCH v2] cpuidle: change enter_s2idle() prototype

2020-07-05 Thread Neal Liu
Control Flow Integrity(CFI) is a security mechanism that disallows changes to the original control flow graph of a compiled binary, making it significantly harder to perform such attacks. init_state_node() assign same function callback to different function pointer declarations. static int init_s

Re: [PATCH] CodingStyle: Inclusive Terminology

2020-07-05 Thread Daniel Palmer
Hi Willy, On Sun, 5 Jul 2020 at 13:55, Willy Tarreau wrote: > I'm personally thinking that for a non-native speaker it's already > difficult to find the best term to describe something, I'm a nobody in the kernel world but this point made me think. I'm a native English speaker but I don't live

[PATCH v2] cpuidle: Fix CFI failure

2020-07-05 Thread Neal Liu
changes since v1: - add more description in commit message. *** BLURB HERE *** Neal Liu (1): cpuidle: change enter_s2idle() prototype drivers/acpi/processor_idle.c | 6 -- drivers/cpuidle/cpuidle-tegra.c | 8 +--- drivers/idle/intel_idle.c | 6 -- include/linux/cpuidle.h

drivers/video/fbdev/geode/lxfb_ops.c:604:28: sparse: sparse: incorrect type in argument 2 (different address spaces)

2020-07-05 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: dcb7fd82c75ee2d6e6f9d8cc71c52519ed52e258 commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 2 weeks ago config: i386-randconfig-s002-20200706 (attached

[PATCH v2] mm/page_alloc: skip setting nodemask when we are in interrupt

2020-07-05 Thread Muchun Song
When we are in the interrupt context, it is irrelevant to the current task context. If we use current task's mems_allowed, we can fair to alloc pages in the fast path and fall back to slow path memory allocation when the current node(which is the current task mems_allowed) does not have enough memo

[PATCH V4 3/3] arm64/mm: Enable vmem_altmap support for vmemmap mappings

2020-07-05 Thread Anshuman Khandual
Device memory ranges when getting hot added into ZONE_DEVICE, might require their vmemmap mapping's backing memory to be allocated from their own range instead of consuming system memory. This prevents large system memory usage for potentially large device memory ranges. Device driver communicates

[PATCH V4 0/3] arm64: Enable vmemmap mapping from device memory

2020-07-05 Thread Anshuman Khandual
This series enables vmemmap backing memory allocation from device memory ranges on arm64. But before that, it enables vmemmap_populate_basepages() and vmemmap_alloc_block_buf() to accommodate struct vmem_altmap based alocation requests. This series applies on 5.8-rc4. Changes in V4: - Dropped 'f

[PATCH V4 2/3] mm/sparsemem: Enable vmem_altmap support in vmemmap_alloc_block_buf()

2020-07-05 Thread Anshuman Khandual
There are many instances where vmemap allocation is often switched between regular memory and device memory just based on whether altmap is available or not. vmemmap_alloc_block_buf() is used in various platforms to allocate vmemmap mappings. Lets also enable it to handle altmap based device memory

[PATCH V4 1/3] mm/sparsemem: Enable vmem_altmap support in vmemmap_populate_basepages()

2020-07-05 Thread Anshuman Khandual
vmemmap_populate_basepages() is used across platforms to allocate backing memory for vmemmap mapping. This is used as a standard default choice or as a fallback when intended huge pages allocation fails. This just creates entire vmemmap mapping with base pages (PAGE_SIZE). On arm64 platforms, vmem

sound/soc/codecs/zl38060.c:614:34: warning: unused variable 'zl38_dt_ids'

2020-07-05 Thread kernel test robot
Hi Sven, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: dcb7fd82c75ee2d6e6f9d8cc71c52519ed52e258 commit: 52e8a94baf9026276fcdc9ff21a50dc2ca0bc94b ASoC: Add initial ZL38060 driver date: 3 months ago config: x86_64

Re: [RFC PATCH] riscv: enable per-task stack canaries

2020-07-05 Thread Guo Ren
On Mon, Jul 6, 2020 at 9:21 AM Kees Cook wrote: > > On Mon, Jul 06, 2020 at 09:01:51AM +0800, Guo Ren wrote: > > Yeah! :) I just want to show you, how about the format: use tp in gpr > > to do that. The format is similar to arm64. > > > > tp is the task_struct point in riscv. > > Sounds good to me

Re: [mm] 4e2c82a409: ltp.overcommit_memory01.fail

2020-07-05 Thread Qian Cai
On Mon, Jul 06, 2020 at 09:43:13AM +0800, Feng Tang wrote: > On Sun, Jul 05, 2020 at 11:52:32AM -0400, Qian Cai wrote: > > On Sun, Jul 05, 2020 at 08:58:54PM +0800, Feng Tang wrote: > > > On Sun, Jul 05, 2020 at 08:15:03AM -0400, Qian Cai wrote: > > > > > > > > > > > > > On Jul 5, 2020, at 12:45

Re: [dm-devel] [PATCH v2] dm crypt: add flags to optionally bypass dm-crypt workqueues

2020-07-05 Thread Nobuto Murata
On 6/27/20 6:03 AM, Ignat Korchagin wrote: This is a follow up from [1]. Consider the following script: sudo modprobe brd rd_nr=1 rd_size=4194304 echo '0 8388608 crypt capi:ecb(cipher_null) - 0 /dev/ram0 0' | \ sudo dmsetup create eram0 echo '0 8388608 crypt capi:ecb(cipher_null) - 0 /dev/ram0

Re: [PATCH 5/5] nvme-pci: Use standard block status macro

2020-07-05 Thread Chaitanya Kulkarni
On 7/2/20 7:55 PM, Baolin Wang wrote: > Use standard block status macro. > > Signed-off-by: Baolin Wang Looks good. Reviewed-by: Chaitanya Kulkarni

Re: [PATCH 4/5] nvme-pci: Use the consistent return type of nvme_pci_iod_alloc_size()

2020-07-05 Thread Chaitanya Kulkarni
On 7/2/20 7:55 PM, Baolin Wang wrote: > The nvme_pci_iod_alloc_size() should return 'size_t' type to keep > consistent. > > Signed-off-by: Baolin Wang Looks good. Reviewed-by: Chaitanya Kulkarni

Re: [PATCH 3/5] nvme-pci: Remove redundant segment validation

2020-07-05 Thread Chaitanya Kulkarni
On 7/2/20 7:54 PM, Baolin Wang wrote: > We've validated the segment counts before calling nvme_map_data(), > so there is no need to validate again in nvme_pci_use_sgls() only > called from nvme_map_data(). > > Signed-off-by: Baolin Wang Indeed we do call blk_rq_nr_phys_segments() in nvme_queue_rq

[PATCH v2] kasan: fix KASAN unit tests for tag-based KASAN

2020-07-05 Thread Walter Wu
We use tag-based KASAN, then KASAN unit tests don't detect out-of-bounds memory access. They need to be fixed. With tag-based KASAN, the state of each 16 aligned bytes of memory is encoded in one shadow byte and the shadow value is tag of pointer, so we need to read next shadow byte, the shadow va

mainline/master bisection: baseline.dmesg.crit on qemu_arm-vexpress-a15

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

Re: [PATCH 1/5] nvme-pci: Fix some comments issues

2020-07-05 Thread Chaitanya Kulkarni
On 7/2/20 7:54 PM, Baolin Wang wrote: > Fix comments' typo and remove whitespaces before tabs to cleanup > checkpatch errors. > > Signed-off-by: Baolin Wang Looks good to me. Reviewed-by: Chaitanya Kulkarni

Re: [PATCH 2/5] nvme-pci: Add a blank line after declarations

2020-07-05 Thread Chaitanya Kulkarni
On 7/2/20 7:54 PM, Baolin Wang wrote: > Add a blank line after declarations to make code more readable. > > Signed-off-by: Baolin Wang > --- Looks good to me. Reviewed-by: Chaitanya Kulkarni

new binary algorithm

2020-07-05 Thread Andre Coelho
hey, for those who read my email, i upgraded tjhe algorithm here it is #include  // The algorithm works by first getting a base of , and change one bit at a time (0001,0010,etc); // Then it uess a base of and change one bit at a time (1110,1101,etc...) int main() {     char ze

Re: linux-next: manual merge of the drm-intel tree with the drm-intel-fixes tree

2020-07-05 Thread Stephen Rothwell
Hi all, On Tue, 30 Jun 2020 11:52:02 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the drm-intel tree got a conflict in: > > drivers/gpu/drm/i915/gvt/handlers.c > > between commit: > > fc1e3aa0337c ("drm/i915/gvt: Fix incorrect check of enabled bits in mask > registers")

RE: [PATCH v2 4/4] iommu/vt-d: Add page response ops support

2020-07-05 Thread Tian, Kevin
> From: Lu Baolu > Sent: Monday, July 6, 2020 8:26 AM > > After a page request is handled, software must response the device which > raised the page request with the handling result. This is done through 'response' is a noun. > the iommu ops.page_response if the request was reported to outside

Re: linux-next: manual merge of the bpf-next tree with the bpf tree

2020-07-05 Thread Stephen Rothwell
Hi all, On Fri, 26 Jun 2020 10:05:27 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the bpf-next tree got a conflict in: > > tools/testing/selftests/bpf/progs/bpf_iter_netlink.c > > between commits: > > 9c82a63cf370 ("libbpf: Fix CO-RE relocs against .text section") > 647

Re: [mm] 4e2c82a409: ltp.overcommit_memory01.fail

2020-07-05 Thread Feng Tang
On Sun, Jul 05, 2020 at 11:52:32AM -0400, Qian Cai wrote: > On Sun, Jul 05, 2020 at 08:58:54PM +0800, Feng Tang wrote: > > On Sun, Jul 05, 2020 at 08:15:03AM -0400, Qian Cai wrote: > > > > > > > > > > On Jul 5, 2020, at 12:45 AM, Feng Tang wrote: > > > > > > > > I did reproduce the problem, and

Re: [RFC 1/3] perf jevents: Add support for parsing perchip/percore events

2020-07-05 Thread Ian Rogers
On Thu, Jul 2, 2020 at 11:20 PM kajoljain wrote: > > On 6/25/20 7:38 PM, Ian Rogers wrote: > > On Thu, Jun 25, 2020 at 4:47 AM Kajol Jain wrote: > >> > >> Set up the "PerChip" field so that perf knows they are > >> per chip events. > >> > >> Set up the "PerCore" field so that perf knows they ar

RE: [PATCH v2 3/4] iommu/vt-d: Report page request faults for guest SVA

2020-07-05 Thread Tian, Kevin
> From: Tian, Kevin > Sent: Monday, July 6, 2020 9:30 AM > > > From: Lu Baolu > > Sent: Monday, July 6, 2020 8:26 AM > > > > A pasid might be bound to a page table from a VM guest via the iommu > > ops.sva_bind_gpasid. In this case, when a DMA page fault is detected > > on the physical IOMMU, we

Re: [PATCH] perf/tools/pmu-events/powerpc: Added nest imc metric events

2020-07-05 Thread Ian Rogers
On Thu, Jul 2, 2020 at 11:57 PM Kajol Jain wrote: > > Added nest imc metric events. Acked-by: Ian Rogers > Signed-off-by: Kajol Jain > --- > .../arch/powerpc/power9/nest_metrics.json | 35 +++ > 1 file changed, 35 insertions(+) > > diff --git a/tools/perf/pmu-events/arch/p

RE: [PATCH v2 3/4] iommu/vt-d: Report page request faults for guest SVA

2020-07-05 Thread Tian, Kevin
> From: Lu Baolu > Sent: Monday, July 6, 2020 8:26 AM > > A pasid might be bound to a page table from a VM guest via the iommu > ops.sva_bind_gpasid. In this case, when a DMA page fault is detected > on the physical IOMMU, we need to inject the page fault request into > the guest. After the guest

[PATCH v5 12/14] irqchip/riscv-intc: Fix potential resource leak

2020-07-05 Thread Tiezhu Yang
In the function riscv_intc_init(), system resource "intc_domain" was not released in an error case. Thus add a call of the function "irq_domain_remove" in the if branch. Fixes: 6b7ce8927b5a ("irqchip: RISC-V per-HART local interrupt controller driver") Signed-off-by: Tiezhu Yang Reviewed-by: Anu

  1   2   3   4   5   >