[PATCH v2 3/9] ARM: oabi-compat: add epoll_pwait handler

2020-09-18 Thread Arnd Bergmann
The epoll_wait() syscall has a special version for OABI compat mode to convert the arguments to the EABI structure layout of the kernel. However, the later epoll_pwait() syscall was added in arch/arm in linux-2.6.32 without this conversion. Use the same kind of handler for both. Fixes: 369842658a

[PATCH v2 7/9] ARM: oabi-compat: rework fcntl64() emulation

2020-09-18 Thread Arnd Bergmann
This is one of the last users of get_fs(), and this is fairly easy to change, since the infrastructure for it is already there. The replacement here is essentially a copy of the existing fcntl64() syscall entry function. Signed-off-by: Arnd Bergmann --- arch/arm/kernel/sys_oabi-compat.c | 93 ++

[PATCH v2 5/9] ARM: oabi-compat: rework epoll_wait/epoll_pwait emulation

2020-09-18 Thread Arnd Bergmann
The epoll_wait() system call wrapper is one of the remaining users of the set_fs() infrasturcture for Arm. Changing it to not require set_fs() is rather complex unfortunately. The approach I'm taking here is to allow architectures to override the code that copies the output to user space, and let

[PATCH v2 0/9] ARM: remove set_fs callers and implementation

2020-09-18 Thread Arnd Bergmann
Hi Christoph, Russell, Here is an updated series for removing set_fs() from arch/arm, based on the previous feedback. I have tested the oabi-compat changes using the LTP tests for the three modified syscalls using an Armv7 kernel and a Debian 5 OABI user space, and I have lightly tested the get_k

[PATCH v2 8/9] ARM: uaccess: add __{get,put}_kernel_nofault

2020-09-18 Thread Arnd Bergmann
These mimic the behavior of get_user and put_user, except for domain switching, address limit checking and handling of mismatched sizes, none of which are relevant here. To work with pre-Armv6 kernels, this has to avoid TUSER() inside of the new macros, the new approach passes the "t" string along

[PATCH v2 1/9] mm/maccess: fix unaligned copy_{from,to}_kernel_nofault

2020-09-18 Thread Arnd Bergmann
On machines such as ARMv5 that trap unaligned accesses, these two functions can be slow when each access needs to be emulated, or they might not work at all. Change them so that each loop is only used when both the src and dst pointers are naturally aligned. Reviewed-by: Christoph Hellwig Signed

Re: [PATCH 0/3] fbdev: stop using compat_alloc_user_space

2020-09-18 Thread Daniel Vetter
On Fri, Sep 18, 2020 at 12:08:10PM +0200, Arnd Bergmann wrote: > The fbdev code uses compat_alloc_user_space in a few of its > compat_ioctl handlers, which tends to be a bit more complicated > and error-prone than calling the underlying handlers directly, > so I would like to remove it completely.

[PATCH -next] open: Fix some kernel-doc warnings in open.c

2020-09-18 Thread Wang Hai
Fixes the following W=1 kernel build warning(s): fs/open.c:887: warning: Excess function parameter 'opened' description in 'finish_open' fs/open.c:929: warning: Excess function parameter 'cred' description in 'vfs_open' @opened and @cred are not in used, remove them. Signed-off-by: Wang Hai -

[PATCH v2 9/9] ARM: uaccess: remove set_fs() implementation

2020-09-18 Thread Arnd Bergmann
There are no remaining callers of set_fs(), so just remove it along with all associated code that operates on thread_info->addr_limit. There are still further optimizations that can be done: - In get_user(), the address check could be moved entirely into the out of line code, rather than passin

[PATCH 2/9] compat.h: fix a spelling error in

2020-09-18 Thread Christoph Hellwig
We only have not compat_sys_readv64v2 syscall, only a compat_sys_preadv64v2 syscall one. This probably worked given that the syscall was not referenced from anywhere but the x86 syscall table. Signed-off-by: Christoph Hellwig --- include/linux/compat.h | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH] dmabuf: fix NULL pointer dereference in dma_buf_release()

2020-09-18 Thread Daniel Vetter
On Fri, Sep 18, 2020 at 01:16:16PM +0200, Christian König wrote: > Am 18.09.20 um 12:32 schrieb Charan Teja Reddy: > > NULL pointer dereference is observed while exporting the dmabuf but > > failed to allocate the 'struct file' which results into the dropping of > > the allocated dentry correspondi

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Jason Gunthorpe
On Fri, Sep 18, 2020 at 03:34:54PM +0300, Oded Gabbay wrote: > > > Another example is that the submission of WQ is done through our QMAN > > > mechanism and is NOT mapped to userspace (due to the restrictions you > > > mentioned above and other restrictions). > > > > Sure, other RDMA drivers also r

Re: [PATCH] drm/panel: otm8009a: remove hack to force commands in HS

2020-09-18 Thread Daniel Vetter
On Fri, Sep 18, 2020 at 01:47:18PM +0200, Yannick Fertre wrote: > From: Antonio Borneo > > The panel is able to receive commands in LP. The current hack to > force backlight commands in HS was due to workaround an incorrect > settings on DSI controller that prevents sending LP commands while > vi

Re: [PATCH v2 33/37] kasan, arm64: implement HW_TAGS runtime

2020-09-18 Thread Marco Elver
[ Sorry for the additional email on this patch; trying to consolidate comments now. ] On Tue, Sep 15, 2020 at 11:16PM +0200, Andrey Konovalov wrote: > Provide implementation of KASAN functions required for the hardware > tag-based mode. Those include core functions for memory and pointer > taggi

[PATCH -next] fs/proc/vmcore: Fix 'sizez' kernel-doc warning in vmcore.c

2020-09-18 Thread Wang Hai
Fixes the following W=1 kernel build warning(s): fs/proc/vmcore.c:458: warning: Excess function parameter 'sizez' description in 'vmcore_alloc_buf' Rename sizez to size. Signed-off-by: Wang Hai --- fs/proc/vmcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/proc/vm

Re: [PATCH 3/9] fs: explicitly check for CHECK_IOVEC_ONLY in rw_copy_check_uvector

2020-09-18 Thread Matthew Wilcox
On Fri, Sep 18, 2020 at 02:45:27PM +0200, Christoph Hellwig wrote: > } > - if (type >= 0 > - && unlikely(!access_ok(buf, len))) { > + if (type != CHECK_IOVEC_ONLY && unlikely(!access_ok(buf, len))) > { drop the unlikely() at the same time? if

[PATCH net-next] net/appletalk: Supply missing net/Space.h include file

2020-09-18 Thread Wang Hai
If the header file containing a function's prototype isn't included by the sourcefile containing the associated function, the build system complains of missing prototypes. Fixes the following W=1 kernel build warning(s): drivers/net/appletalk/cops.c:213:28: warning: no previous prototype for ‘co

Re: [PATCH v5] iio: adc: ad7768-1: Add channel label example

2020-09-18 Thread kernel test robot
Hi Cristian, Thank you for the patch! Yet something to improve: [auto build test ERROR on iio/togreg] [also build test ERROR on linux/master linus/master v5.9-rc5 next-20200918] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use

Re: [PATCH] vhost-vdpa: fix memory leak in error path

2020-09-18 Thread Li Qiang
Any status update? Thanks, Li Qiang Li Qiang 于2020年9月9日周三 下午11:42写道: > > Free the 'page_list' when the 'npages' is zero. > > Signed-off-by: Li Qiang > --- > drivers/vhost/vdpa.c | 8 ++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/drivers/vhost/vdpa.c b/drivers/vhos

Re: [PATCH v2 23/37] arm64: kasan: Add arch layer for memory tagging helpers

2020-09-18 Thread Marco Elver
On Tue, Sep 15, 2020 at 11:16PM +0200, 'Andrey Konovalov' via kasan-dev wrote: > This patch add a set of arch_*() memory tagging helpers currently only > defined for arm64 when hardware tag-based KASAN is enabled. These helpers > will be used by KASAN runtime to implement the hardware tag-based mod

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Oded Gabbay
On Fri, Sep 18, 2020 at 3:50 PM Jason Gunthorpe wrote: > > On Fri, Sep 18, 2020 at 03:34:54PM +0300, Oded Gabbay wrote: > > > > Another example is that the submission of WQ is done through our QMAN > > > > mechanism and is NOT mapped to userspace (due to the restrictions you > > > > mentioned abov

Re: [PATCH] vhost-vdpa: fix memory leak in error path

2020-09-18 Thread Tianjia Zhang
LGTM. Reviewed-by: Tianjia Zhang Thanks. On 9/9/20 11:41 PM, Li Qiang wrote: Free the 'page_list' when the 'npages' is zero. Signed-off-by: Li Qiang --- drivers/vhost/vdpa.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/vhost/vdpa.c b/drivers/vhost/v

[PATCH v2 2/2] Input: atmel_mxt_ts - wake mXT1386 from deep-sleep mode

2020-09-18 Thread Jiada Wang
According to datasheet, mXT1386 chip has a WAKE line, it is used to wake the chip up from deep sleep mode before communicating with it via the I2C-compatible interface. if the WAKE line is connected to a GPIO line, the line must be asserted 25 ms before the host attempts to communicate with the mX

[PATCH v1 1/2] dt-bindings: input: atmel: add compatible for mXT1386

2020-09-18 Thread Jiada Wang
Document the mXT1386 compatible string. Signed-off-by: Jiada Wang --- Documentation/devicetree/bindings/input/atmel,maxtouch.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/input/atmel,maxtouch.txt b/Documentation/devicetree/bindings/input/atmel,maxtou

[PATCH net-next] liquidio: Fix -Wmissing-prototypes warnings for liquidio

2020-09-18 Thread Wang Hai
If the header file containing a function's prototype isn't included by the sourcefile containing the associated function, the build system complains of missing prototypes. Fixes the following W=1 kernel build warning(s): drivers/net/ethernet/cavium/liquidio/cn68xx_device.c:124:5: warning: no pre

Re: [PATCH -next] nilfs2: Fix some kernel-doc warnings for nilfs2

2020-09-18 Thread Ryusuke Konishi
Hi Wang, The patch looks correct. Will apply, thank you. Ryusuke Konishi On Fri, Sep 18, 2020 at 9:40 PM Wang Hai wrote: > > Fixes the following W=1 kernel build warning(s): > > fs/nilfs2/bmap.c:378: warning: Excess function parameter 'bhp' description in > 'nilfs_bmap_assign' > fs/nilfs2/cpf

Re: [RFC PATCH] Add bridge driver to connect sensors to CIO2 device via software nodes on ACPI platforms

2020-09-18 Thread Andy Shevchenko
On Fri, Sep 18, 2020 at 10:51:57AM +0300, Sakari Ailus wrote: > On Thu, Sep 17, 2020 at 03:45:14PM +0300, Andy Shevchenko wrote: > > On Thu, Sep 17, 2020 at 11:52:28AM +0100, Dan Scally wrote: > > > On 17/09/2020 11:33, Sakari Ailus wrote: > > > > a module and not enlarge everyone's kernel, and the

Re: [PATCH leds v1 10/10] leds: ns2: refactor and use struct led_init_data

2020-09-18 Thread Simon Guinot
On Thu, Sep 17, 2020 at 01:16:50AM +0200, Marek Behún wrote: Hi Marek, > By using struct led_init_data when registering we do not need to parse > `label` DT property nor `linux,default-trigger` property. > > Also, move forward from platform data to device tree only: > since commit c7896490dd1a (

Re: [RFC PATCH] locking/percpu-rwsem: use this_cpu_{inc|dec}() for read_count

2020-09-18 Thread Oleg Nesterov
On 09/18, Peter Zijlstra wrote: > > On Fri, Sep 18, 2020 at 12:48:24PM +0200, Oleg Nesterov wrote: > > > Of course, this assumes that atomic_t->counter underflows "correctly", just > > like "unsigned int". > > We're documented that we do. Lots of code relies on that. > > See Documentation/atomic_t.

Re: [PATCH v2 2/5] spi: spi-mtk-nor: fix mishandled logics in checking SPI memory operation

2020-09-18 Thread Chuanhong Guo
Hi! On Fri, Sep 18, 2020 at 4:34 PM Ikjoon Jang wrote: > > Fix a simple bug which can limits its transfer size, > and add a simple helper function for code cleanups. > > Fixes: a59b2c7c56bf ("spi: spi-mtk-nor: support standard spi properties") > Signed-off-by: Ikjoon Jang > > --- > > (no changes

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Leon Romanovsky
On Fri, Sep 18, 2020 at 03:31:51PM +0300, Oded Gabbay wrote: > On Fri, Sep 18, 2020 at 3:19 PM Leon Romanovsky wrote: > > > > On Fri, Sep 18, 2020 at 03:07:19PM +0300, Oded Gabbay wrote: > > > On Fri, Sep 18, 2020 at 3:03 PM Leon Romanovsky wrote: > > > > > > > > On Fri, Sep 18, 2020 at 02:56:09P

[PATCH net-next] net: hns3: Supply missing hclge_dcb.h include file

2020-09-18 Thread Wang Hai
If the header file containing a function's prototype isn't included by the sourcefile containing the associated function, the build system complains of missing prototypes. Fixes the following W=1 kernel build warning(s): drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c:453:6: warning: no p

Re: [PATCH v35 01/13] Linux Random Number Generator

2020-09-18 Thread kernel test robot
Hi "Stephan, Thank you for the patch! Yet something to improve: [auto build test ERROR on char-misc/char-misc-testing] [also build test ERROR on cryptodev/master crypto/master v5.9-rc5 next-20200918] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submi

[PATCH] ath11k: Remove unused function ath11k_htc_restore_tx_skb()

2020-09-18 Thread YueHaibing
There is no caller in tree, so can remove it. Signed-off-by: YueHaibing --- drivers/net/wireless/ath/ath11k/htc.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/htc.c b/drivers/net/wireless/ath/ath11k/htc.c index e9e354fc11fa..4de2350dfbf3 100644 ---

[PATCH 2/5] wlcore: Remove unused function no_write_handler()

2020-09-18 Thread YueHaibing
There is no caller in tree, so can remove it. Signed-off-by: YueHaibing --- drivers/net/wireless/ti/wlcore/debugfs.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/net/wireless/ti/wlcore/debugfs.c b/drivers/net/wireless/ti/wlcore/debugfs.c index 48adb1876ab9..cce8d75d8b81 100

Re: the "read" syscall sees partial effects of the "write" syscall

2020-09-18 Thread Jan Kara
On Fri 18-09-20 08:25:28, Mikulas Patocka wrote: > I'd like to ask about this problem: when we write to a file, the kernel > takes the write inode lock. When we read from a file, no lock is taken - > thus the read syscall can read data that are halfway modified by the write > syscall. > > The s

[PATCH] ASoC: fix kconfig dependency warnings for SND_SOC_WM8731

2020-09-18 Thread Necip Fazil Yildiran
SND_SOC_WM8731 was made visible and dependent on other symbols with commit 1291e14175e6 ("ASoC: codecs: Make OF supported CODECs visible in Kconfig"). To this respect, the symbols selecting SND_SOC_WM8731 turned out to be overlooking its dependencies. For example, enabling SND_SOC_DB1200 and disab

Re: [PATCH][next] regmap: fix return of unintialized value in variable ret

2020-09-18 Thread Mark Brown
On Fri, Sep 18, 2020 at 02:11:58PM +0100, Colin King wrote: > From: Colin Ian King > > A recent commit removed the intialization of ret and now the !config > error return path returns a bogus uninitialized value in ret. Fix > this by explicitly setting ret to -EINVAL for this error exit path. I

[PATCH net-next] tipc: Remove unused macro CF_SERVER

2020-09-18 Thread YueHaibing
It is no used any more, so can remove it. Signed-off-by: YueHaibing --- net/tipc/topsrv.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/tipc/topsrv.c b/net/tipc/topsrv.c index 1489cfb941d8..5f6f86051c83 100644 --- a/net/tipc/topsrv.c +++ b/net/tipc/topsrv.c @@ -48,7 +48,6 @@ #define MA

[PATCH net-next] ipvs: Remove unused macros

2020-09-18 Thread YueHaibing
They are not used since commit e4ff67513096 ("ipvs: add sync_maxlen parameter for the sync daemon") Signed-off-by: YueHaibing --- net/netfilter/ipvs/ip_vs_sync.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_sync.c b/net/netfilter/ipvs/ip_vs_sync.c index 2b8abbfe

[PATCH v3] arm64: dts: qcom: sc7180: Add lpass cpu node for I2S driver

2020-09-18 Thread Srinivasa Rao Mandadapu
From: Ajit Pandey Add the I2S controller node to sc7180 dtsi. Add pinmux for primary and secondary I2S. Signed-off-by: Ajit Pandey Signed-off-by: Cheng-Yi Chiang Signed-off-by: Srinivasa Rao Mandadapu Signed-off-by: V Sujith Kumar Reddy --- Changes since v1: -- Updated I2S pin control nod

[PATCH net-next] netfilter: nf_tables_offload: Remove unused macro FLOW_SETUP_BLOCK

2020-09-18 Thread YueHaibing
commit 9a32669fecfb ("netfilter: nf_tables_offload: support indr block call") left behind this. Signed-off-by: YueHaibing --- net/netfilter/nf_tables_offload.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/netfilter/nf_tables_offload.c b/net/netfilter/nf_tables_offload.c index 9ef37c

[PATCH net-next] net: tipc: Supply missing udp_media.h include file

2020-09-18 Thread Wang Hai
If the header file containing a function's prototype isn't included by the sourcefile containing the associated function, the build system complains of missing prototypes. Fixes the following W=1 kernel build warning(s): net/tipc/udp_media.c:446:5: warning: no previous prototype for ‘tipc_udp_nl

I WANT TO INVEST IN YOUR COUNTRY

2020-09-18 Thread Dr. Aisha Gaddafi
I WANT TO INVEST IN YOUR COUNTRY Dear Friend (Assalamu Alaikum), Please after reading this mail try and make sure you reply and contact me with this my private email address: {aaisihagadd...@gmail.com} I came across your e-mail contact prior a private search while in need of your assistance

Re: [PATCH net-next] net: phy: realtek: enable ALDPS to save power for RTL8211F

2020-09-18 Thread Andrew Lunn
On Fri, Sep 18, 2020 at 10:47:56AM +0800, Jisheng Zhang wrote: > Enable ALDPS function to save power when link down. Hi Jisheng It would be nice to give a hint what ALDPS means. It is not one of the standard acronyms i know of, so it could be Realtek specific. > > Signed-off-by: Jisheng Zhang

[PATCH v3 4/9] clocksource: sp804: remove a mismatched comment

2020-09-18 Thread Zhen Lei
writel(0, base + TIMER_CTRL); ... ... writel(xxx | TIMER_CTRL_PERIODIC, base + TIMER_CTRL); The timer is just temporarily disabled, and it will be set to periodic mode later. The description of the field TimerMode of the register TimerXControl as shown below: 0 = Timer module is in free-running m

[PATCH v3 7/9] clocksource: sp804: add support for Hisilicon sp804 timer

2020-09-18 Thread Zhen Lei
The ARM SP804 supports a maximum of 32-bit counter, but Hisilicon extends it to 64-bit. That means, the registers: TimerXload, TimerXValue and TimerXBGLoad are 64bits, all other registers are the same as those in the SP804. The driver code can be completely reused except that the register offset is

[PATCH v3 8/9] clocksource: sp804: enable Hisilicon sp804 timer 64bit mode

2020-09-18 Thread Zhen Lei
A 100MHZ 32-bit timer will be wrapped up less than 43s. Although the kernel maintains a software high 32-bit count in the tick IRQ. But it's not applicable to the user mode APPs. Note: The kernel still uses the lower 32 bits of the timer. Signed-off-by: Zhen Lei --- drivers/clocksource/timer-sp

[PATCH v3 9/9] dt-bindings: sp804: add support for Hisilicon sp804 timer

2020-09-18 Thread Zhen Lei
Some Hisilicon SoCs, such as Hi1212, use the Hisilicon extended sp804 timer. Signed-off-by: Zhen Lei --- Documentation/devicetree/bindings/timer/arm,sp804.yaml | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/timer/arm,sp804.yaml b/Docu

[PATCH v3 6/9] clocksource: sp804: support non-standard register offset

2020-09-18 Thread Zhen Lei
The ARM SP804 supports a maximum of 32-bit counter, but Hisilicon extends it to 64-bit. That means, the registers: TimerXload, TimerXValue and TimerXBGLoad are 64bits, all other registers are the same as those in the SP804. The driver code can be completely reused except that the register offset is

[PATCH v2 1/2] dt-bindings: clock: mediatek: add bindings for MT8167 clocks

2020-09-18 Thread Fabien Parent
Add binding documentation for topckgen, apmixedsys, infracfg, audsys, imgsys, mfgcfg, vdecsys on MT8167 SoC. Signed-off-by: Fabien Parent Reviewed-by: Rob Herring --- ChangeLog: V2: no changes .../arm/mediatek/mediatek,apmixedsys.txt | 1 + .../bindings/arm/mediatek/mediatek,au

[PATCH v2 2/2] clk: mediatek: Add MT8167 clock support

2020-09-18 Thread Fabien Parent
Add the following clock support for MT8167 SoC: topckgen, apmixedsys, infracfg, audsys, imgsys, mfgcfg, vdecsys. Signed-off-by: Fabien Parent --- ChangeLog: V2: removed unused variable reported by kernel test robot drivers/clk/mediatek/Kconfig | 48 + drivers/clk/mediatek

[PATCH v3 1/9] clocksource: sp804: cleanup clk_get_sys()

2020-09-18 Thread Zhen Lei
From: Kefeng Wang Move the clk_get_sys() part into sp804_get_clock_rate(), cleanup the same code. Signed-off-by: Kefeng Wang Signed-off-by: Zhen Lei --- drivers/clocksource/timer-sp804.c | 30 ++ 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/drive

[PATCH v3 3/9] clocksource: sp804: delete the leading "__" of some functions

2020-09-18 Thread Zhen Lei
Delete the leading "__" of __sp804_clocksource_and_sched_clock_init() and __sp804_clockevents_init(), make it looks a little more comfortable. Signed-off-by: Zhen Lei --- drivers/clocksource/timer-sp804.c | 27 +++ 1 file changed, 15 insertions(+), 12 deletions(-) diff -

[PATCH v3 5/9] clocksource: sp804: prepare for support non-standard register offset

2020-09-18 Thread Zhen Lei
Add two local variables: timer1_base and timer2_base in sp804_of_init(), to avoid repeatedly calculate the base address of timer2, and make it easier to recognize timer1. Hope to make the next patch looks more clear. No functional change. Signed-off-by: Zhen Lei --- drivers/clocksource/timer-sp

[PATCH v3 2/9] clocksource: sp804: remove unused sp804_timer_disable() and timer-sp804.h

2020-09-18 Thread Zhen Lei
Since commit 7484c727b636 ("ARM: realview: delete the RealView board files") and commit 16956fed35fe ("ARM: versatile: switch to DT only booting and remove legacy code"), there's no one to use the functions defined or declared in include/clocksource/timer-sp804.h. Delete it. Signed-off-by: Zhen Le

[PATCH v3 0/9] clocksource: sp804: add support for Hisilicon sp804 timer

2020-09-18 Thread Zhen Lei
v2 --> v3: 1. Move the marcos of Hisilicon 64-bit timer, such as HISI_TIMER_LOAD, from "drivers/clocksource/timer-sp.h" into "drivers/clocksource/timer-sp804.c", involved Patch7-8. 2. Because the DT binding of ARM SP-804 has been converted to json-schema recently, so rewrote Patch9, it ba

[PATCH 0/4] syscalls: remove compat_alloc_user_space callers

2020-09-18 Thread Arnd Bergmann
Going through compat_alloc_user_space() to convert indirect system call arguments tends to add complexity compared to handling the native and compat logic in the same code. I have patches for all other uses of compat_alloc_user_space() as well, and would expect that we can subsequently remove the

[PATCH 1/4] x86: add __X32_COND_SYSCALL() macro

2020-09-18 Thread Arnd Bergmann
sys_move_pages() is an optional syscall, and once we remove the compat version of it in favor of the native one with an in_compat_syscall() check, the x32 syscall table refers to a __x32_sys_move_pages symbol that may not exist when the syscall is disabled. Change the COND_SYSCALL() definition on

[PATCH 2/4] kexec: remove compat_sys_kexec_load syscall

2020-09-18 Thread Arnd Bergmann
The compat version of sys_kexec_load() uses compat_alloc_user_space to convert the user-provided arguments into the native format. Move the conversion into the regular implementation with an in_compat_syscall() check to simplify it and avoid the compat_alloc_user_space() call. Signed-off-by: Arnd

Re: [PATCH v3] doc: zh_CN: index files in arm64 subdirectory

2020-09-18 Thread Will Deacon
On Fri, Sep 18, 2020 at 01:11:26AM -0700, Bailu Lin wrote: > Add arm64 subdirectory into the table of Contents for zh_CN, > then add other translations in arm64 conveniently. > > Signed-off-by: Bailu Lin > --- > Changes in v3: > - Correct email encoding format. > Changes in v2: > - Fix patch de

[PATCH 3/4] mm: remove compat_sys_move_pages

2020-09-18 Thread Arnd Bergmann
The compat move_pages() implementation uses compat_alloc_user_space() for converting the pointer array. Moving the compat handling into the function itself is a bit simpler and lets us avoid the compat_alloc_user_space() call. Signed-off-by: Arnd Bergmann --- arch/arm64/include/asm/unistd32.h

Re: [PATCH v2 3/5] spi: spi-mtk-nor: use dma_alloc_coherent() for bounce buffer

2020-09-18 Thread Chuanhong Guo
Hi! On Fri, Sep 18, 2020 at 4:35 PM Ikjoon Jang wrote: > > Use dma_alloc_coherent() for bounce buffer instead of kmalloc. The commit message should explain why such a change is needed. (i.e. why using dma_alloc_coherent here is better than kmalloc.) And if there's no benefit for this change I'd

[PATCH 4/4] mm: remove compat numa syscalls

2020-09-18 Thread Arnd Bergmann
The compat implementations for mbind, get_mempolicy, set_mempolicy and migrate_pages are just there to handle the subtly different layout of bitmaps on 32-bit hosts. The compat implementation however lacks some of the checks that are present in the native one, in particular for checking that the e

Re: [RFC PATCH] locking/percpu-rwsem: use this_cpu_{inc|dec}() for read_count

2020-09-18 Thread Jan Kara
On Fri 18-09-20 15:09:14, Oleg Nesterov wrote: > On 09/18, Peter Zijlstra wrote: > > > But again, do we really want this? > > > > I like the two counters better, avoids atomics entirely, some archs > > hare horridly expensive atomics (*cough* power *cough*). > > I meant... do we really want to int

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Jason Gunthorpe
On Fri, Sep 18, 2020 at 04:02:24PM +0300, Oded Gabbay wrote: > The problem with MR is that the API doesn't let us return a new VA. It > forces us to use the original VA that the Host OS allocated. If using the common MR API you'd have to assign a unique linear range in the single device address

Re: [PATCH v2] Documentation: Chinese translation of Documentation/arm64/amu.rst

2020-09-18 Thread Will Deacon
On Fri, Sep 18, 2020 at 02:21:36AM -0700, Bailu Lin wrote: > This is a Chinese translated version of Documentation/arm64/amu.rst > > Signed-off-by: Bailu Lin > --- > Changes in v2: > - Add index to arm64 directoy. > - Fix a document format error. > - Correct email encoding format. > --- > Doc

[PATCH][next] regmap: fix return of unintialized value in variable ret

2020-09-18 Thread Colin King
From: Colin Ian King A recent commit removed the intialization of ret and now the !config error return path returns a bogus uninitialized value in ret. Fix this by explicitly setting ret to -EINVAL for this error exit path. Addresses-Coverity: ("Uninitialized scalar value") Fixes: 94cc89eb8fa5 (

Re: [PATCH v3] KVM: arm64: fix doc warnings in mmu code

2020-09-18 Thread Will Deacon
On Thu, Sep 17, 2020 at 09:47:49AM +0800, Xiaofei Tan wrote: > Fix following warnings caused by mismatch bewteen function parameters > and comments. > arch/arm64/kvm/mmu.c:128: warning: Function parameter or member 'mmu' not > described in '__unmap_stage2_range' > arch/arm64/kvm/mmu.c:128: warning

Re: [PATCH v2] EDAC/mc_sysfs: Add missing newlines when printing {max,dimm}_location

2020-09-18 Thread Joe Perches
On Fri, 2020-09-18 at 09:12 +0200, Borislav Petkov wrote: > On Fri, Sep 18, 2020 at 10:37:28AM +0800, Xiongfeng Wang wrote: > > Thansk a lot. I will send another version. Also I will change the > > 'snprintf' in 'dimmdev_location_show()' to 'scnprintf' > > No need to send another one - I have ever

Re: [PATCH 1/4] perf evsel: Add evsel__clone() function

2020-09-18 Thread Jiri Olsa
On Wed, Sep 16, 2020 at 03:31:26PM +0900, Namhyung Kim wrote: SNIP > +struct evsel *evsel__clone(struct evsel *orig) > +{ > + struct evsel *evsel; > + struct evsel_config_term *pos, *tmp; > + > + BUG_ON(orig->core.fd); > + BUG_ON(orig->counts); > + BUG_ON(orig->priv); > +

Re: [PATCH v2 2/2] Input: atmel_mxt_ts - wake mXT1386 from deep-sleep mode

2020-09-18 Thread Dmitry Osipenko
18.09.2020 15:56, Jiada Wang пишет: > According to datasheet, mXT1386 chip has a WAKE line, it is used > to wake the chip up from deep sleep mode before communicating with > it via the I2C-compatible interface. > > if the WAKE line is connected to a GPIO line, the line must be > asserted 25 ms bef

Re: [PATCH] ASoC: fix kconfig dependency warnings for SND_SOC_WM8731

2020-09-18 Thread Mark Brown
On Fri, Sep 18, 2020 at 04:12:58PM +0300, Necip Fazil Yildiran wrote: > SND_SOC_WM8731 was made visible and dependent on other symbols with commit > 1291e14175e6 ("ASoC: codecs: Make OF supported CODECs visible in Kconfig"). > To this respect, the symbols selecting SND_SOC_WM8731 turned out to be >

Re: [PATCH v2 2/5] spi: spi-mtk-nor: fix mishandled logics in checking SPI memory operation

2020-09-18 Thread Chuanhong Guo
Hi! On Fri, Sep 18, 2020 at 9:09 PM Chuanhong Guo wrote: > On Fri, Sep 18, 2020 at 4:34 PM Ikjoon Jang wrote: > > [...] > > + switch (op->data.dir) { > > + case SPI_MEM_DATA_IN: > > + if (!mtk_nor_match_read(op)) > > +

Re: [PATCH 2/4] perf stat: Add --for-each-cgroup option

2020-09-18 Thread Jiri Olsa
On Wed, Sep 16, 2020 at 03:31:27PM +0900, Namhyung Kim wrote: SNIP > +int evlist__expand_cgroup(struct evlist *evlist, const char *str) > +{ > + struct evlist *orig_list, *tmp_list; > + struct evsel *pos, *evsel, *leader; > + struct cgroup *cgrp = NULL; > + const char *p, *e, *eos

Re: [PATCH v6 5/8] crypto: testmgr - support test with different ciphertext per encryption

2020-09-18 Thread Tianjia Zhang
On 9/18/20 2:47 PM, Herbert Xu wrote: On Thu, Sep 03, 2020 at 09:12:39PM +0800, Tianjia Zhang wrote: Some asymmetric algorithms will get different ciphertext after each encryption, such as SM2, and let testmgr support the testing of such algorithms. In struct akcipher_testvec, set c and c_si

Re: [PATCH v2] media: cedrus: Propagate OUTPUT resolution to CAPTURE

2020-09-18 Thread Ezequiel Garcia
Hi Nicolas, On Thu, 2020-09-17 at 20:43 -0400, Nicolas Dufresne wrote: > Le jeudi 17 septembre 2020 à 20:27 -0400, Nicolas Dufresne a écrit : > > As per spec, the CAPTURE resolution should be automatically set based on > > the OTUPUT resolution. This patch properly propagate width/height to the >

[tip: ras/core] x86/mce: Annotate mce_rd/wrmsrl() with noinstr

2020-09-18 Thread tip-bot2 for Borislav Petkov
The following commit has been merged into the ras/core branch of tip: Commit-ID: e100777016fdf6ec3a9d7c1773b15a2b5eca6c55 Gitweb: https://git.kernel.org/tip/e100777016fdf6ec3a9d7c1773b15a2b5eca6c55 Author:Borislav Petkov AuthorDate:Mon, 14 Sep 2020 19:21:28 +02:00 Committe

[PATCH] ubsan: introducing CONFIG_UBSAN_BOUNDS_LOCAL for Clang

2020-09-18 Thread George-Aurelian Popescu
From: George Popescu When the kernel is compiled with Clang, -fsanitize=bounds expands to -fsanitize=array-bounds and -fsanitize=local-bounds. Enabling -fsanitize=local-bounds with Clang has the unfortunate side-effect of inserting traps; this goes back to its original intent, which was as a har

[PATCH v5 bpf-next 1/6] bpf: provide function to get vmlinux BTF information

2020-09-18 Thread Alan Maguire
It will be used later for BPF structure display support Signed-off-by: Alan Maguire --- include/linux/bpf.h | 2 ++ kernel/bpf/verifier.c | 18 -- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/include/linux/bpf.h b/include/linux/bpf.h index c6d9f2c..c0ad5d8 1

[PATCH v5 bpf-next 5/6] bpf: add bpf_seq_btf_write helper

2020-09-18 Thread Alan Maguire
A helper is added to allow seq file writing of kernel data structures using vmlinux BTF. Its signature is long bpf_seq_btf_write(struct seq_file *m, struct btf_ptr *ptr, u32 btf_ptr_size, u64 flags); Flags and struct btf_ptr definitions/use are identical to the bpf_btf_snp

[PATCH v5 bpf-next 3/6] bpf: add bpf_btf_snprintf helper

2020-09-18 Thread Alan Maguire
A helper is added to support tracing kernel type information in BPF using the BPF Type Format (BTF). Its signature is long bpf_btf_snprintf(char *str, u32 str_size, struct btf_ptr *ptr, u32 btf_ptr_size, u64 flags); struct btf_ptr * specifies - a pointer to the data to be

[PATCH v5 bpf-next 0/6] bpf: add helpers to support BTF-based kernel data display

2020-09-18 Thread Alan Maguire
This series attempts to provide a simple way for BPF programs (and in future other consumers) to utilize BPF Type Format (BTF) information to display kernel data structures in-kernel. The use case this functionality is applied to here is to support a snprintf()-like helper to copy a BTF representa

[PATCH v5 bpf-next 6/6] selftests/bpf: add test for bpf_seq_btf_write helper

2020-09-18 Thread Alan Maguire
Add a test verifying iterating over tasks and displaying BTF representation of data succeeds. Note here that we do not display the task_struct itself, as it will overflow the PAGE_SIZE limit on seq data; instead we write task->fs (a struct fs_struct). Suggested-by: Alexei Starovoitov Signed-off-

[PATCH v5 bpf-next 2/6] bpf: move to generic BTF show support, apply it to seq files/strings

2020-09-18 Thread Alan Maguire
generalize the "seq_show" seq file support in btf.c to support a generic show callback of which we support two instances; the current seq file show, and a show with snprintf() behaviour which instead writes the type data to a supplied string. Both classes of show function call btf_type_show() with

[PATCH v5 bpf-next 4/6] selftests/bpf: add bpf_btf_snprintf helper tests

2020-09-18 Thread Alan Maguire
Tests verifying snprintf()ing of various data structures, flags combinations using a tp_btf program. Signed-off-by: Alan Maguire --- .../selftests/bpf/prog_tests/btf_snprintf.c| 55 + .../selftests/bpf/progs/netif_receive_skb.c| 260 + 2 files changed, 31

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-18 Thread Al Viro
On Fri, Sep 18, 2020 at 02:45:25PM +0200, Christoph Hellwig wrote: > Add a flag to force processing a syscall as a compat syscall. This is > required so that in_compat_syscall() works for I/O submitted by io_uring > helper threads on behalf of compat syscalls. > > Signed-off-by: Christoph Hellwig

Re: [PATCH 2/9] compat.h: fix a spelling error in

2020-09-18 Thread Johannes Thumshirn
On 18/09/2020 14:48, Christoph Hellwig wrote: > We only have not compat_sys_readv64v2 syscall, only a We have no?

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-18 Thread Christoph Hellwig
On Fri, Sep 18, 2020 at 02:40:12PM +0100, Al Viro wrote: > > /* Vector 0x110 is LINUX_32BIT_SYSCALL_TRAP */ > > - return pt_regs_trap_type(current_pt_regs()) == 0x110; > > + return pt_regs_trap_type(current_pt_regs()) == 0x110 || > > + (current->flags & PF_FORCE_COMPAT); > > Can'

Re: [PATCH 3/4] perf tools: Copy metric events properly when expand cgroups

2020-09-18 Thread Jiri Olsa
On Wed, Sep 16, 2020 at 03:31:28PM +0900, Namhyung Kim wrote: SNIP > + free(new_expr); > + return -ENOMEM; > + } > + > + memcpy(new_expr->metric_refs, > old_expr->metri

Re: [PATCH 3/9] fs: explicitly check for CHECK_IOVEC_ONLY in rw_copy_check_uvector

2020-09-18 Thread Johannes Thumshirn
Looks good, Reviewed-by: Johannes Thumshirn

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Oded Gabbay
On Fri, Sep 18, 2020 at 4:26 PM Jason Gunthorpe wrote: > > On Fri, Sep 18, 2020 at 04:02:24PM +0300, Oded Gabbay wrote: > > > The problem with MR is that the API doesn't let us return a new VA. It > > forces us to use the original VA that the Host OS allocated. > > If using the common MR API you'd

Re: [PATCH 8/9] mm: remove compat_process_vm_{readv,writev}

2020-09-18 Thread Arnd Bergmann
On Fri, Sep 18, 2020 at 2:45 PM Christoph Hellwig wrote: > > Now that import_iovec handles compat iovecs, the native syscalls > can be used for the compat case as well. > > diff --git a/arch/x86/entry/syscall_x32.c b/arch/x86/entry/syscall_x32.c > index a4840b9d50ad14..f2fe0a33bcfdd5 100644 > ---

Re: [PATCH] Handle init_iova_flush_queue failure in dma-iommu path

2020-09-18 Thread Robin Murphy
On 2020-09-18 09:55, Joerg Roedel wrote: On Thu, Sep 10, 2020 at 01:25:38PM +0100, Tom Murphy wrote: init_iova_flush_queue can fail if we run out of memory. Fall back to noflush queue if it fails. Signed-off-by: Tom Murphy --- drivers/iommu/dma-iommu.c | 7 +-- 1 file changed, 5 inser

Re: [PATCH 4/4] perf test: Add expand cgroup event test

2020-09-18 Thread Jiri Olsa
On Wed, Sep 16, 2020 at 03:31:29PM +0900, Namhyung Kim wrote: SNIP > +++ b/tools/perf/tests/tests.h > @@ -123,6 +123,7 @@ const char *test__pfm_subtest_get_desc(int subtest); > int test__pfm_subtest_get_nr(void); > int test__parse_metric(struct test *test, int subtest); > int test__pe_file_par

Re: [PATCH] net: phy: realtek: fix rtl8211e rx/tx delay config

2020-09-18 Thread Andrew Lunn
On Fri, Sep 18, 2020 at 06:55:16AM +, 劉偉權 wrote: > Hi Serge, > Thanks for your reply. There is a confidential issue that realtek > doesn't offer the detail of a full register layout for configuration > register. ... > > * 0xa4 extension page (0x7) layout. It can be used to disable/enabl

[PATCH 1/4] erofs: avoid unnecessary variable `err'

2020-09-18 Thread Gao Xiang
variable `err' in z_erofs_submit_queue() isn't useful here, remove it instead. Signed-off-by: Gao Xiang --- fs/erofs/zdata.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/erofs/zdata.c b/fs/erofs/zdata.c index 6c939def00f9..df6fa691097f 100644 --- a/fs/erofs/zdata.c +

[PATCH 3/4] erofs: specify accurate nr_iovecs for compressed bios

2020-09-18 Thread Gao Xiang
Use more accurate compressed page count instead of BIO_MAX_PAGES unconditionally. Signed-off-by: Gao Xiang --- fs/erofs/zdata.c | 24 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/fs/erofs/zdata.c b/fs/erofs/zdata.c index d483e9fee41c..bb20f73f10e0 10064

[PATCH 2/4] erofs: fold in should_decompress_synchronously()

2020-09-18 Thread Gao Xiang
should_decompress_synchronously() has one single condition for now, so fold it instead. Signed-off-by: Gao Xiang --- fs/erofs/zdata.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/fs/erofs/zdata.c b/fs/erofs/zdata.c index df6fa691097f..d483e9fee41c 100644 --- a

[PATCH 4/4] erofs: add REQ_RAHEAD flag to readahead requests

2020-09-18 Thread Gao Xiang
Let's add REQ_RAHEAD flag so it'd be easier to identify readahead I/O requests in blktrace. Signed-off-by: Gao Xiang --- fs/erofs/data.c | 2 +- fs/erofs/zdata.c | 4 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/fs/erofs/data.c b/fs/erofs/data.c index 459ecb42cbd3..347be14

<    1   2   3   4   5   6   7   8   9   10   >