Re: [PATCH] nfc: fix typo

2021-01-26 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Sat, 23 Jan 2021 16:25:50 +0800 you wrote: > From: wengjianfeng > > change 'regster' to 'register' > > Signed-off-by: wengjianfeng > --- > drivers/nfc/trf7970a.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(

Re: [PATCH V4 0/3] scripts: dtc: Build fdtoverlay

2021-01-26 Thread Frank Rowand
Hi David, On 1/22/21 12:34 AM, David Gibson wrote: > On Wed, Jan 20, 2021 at 10:47:40AM +0530, Viresh Kumar wrote: >> +David. >> >> On 19-01-21, 11:12, Frank Rowand wrote: >>> On 1/12/21 2:28 AM, Viresh Kumar wrote: We will start building overlays for platforms soon in the kernel and wou

Re: [PATCH 5.10 119/199] x86/mmx: Use KFPU_387 for MMX string operations

2021-01-26 Thread Krzysztof Olędzki
Hi, I think for both 5.4-stable and 5.10-stable we also need https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e45122893a9870813f9bd7b4add4f613e6f29008 - "x86/fpu: Add kernel_fpu_begin_mask() to selectively initialize state" Without this, there is no kernel_fpu_beg

Re: [PATCH 4/4] net: l3mdev: use obj-$(CONFIG_NET_L3_MASTER_DEV) form in net/Makefile

2021-01-26 Thread David Ahern
On 1/25/21 4:16 PM, Masahiro Yamada wrote: > CONFIG_NET_L3_MASTER_DEV is a bool option. Change the ifeq conditional > to the standard obj-$(CONFIG_NET_L3_MASTER_DEV) form. > > Use obj-y in net/l3mdev/Makefile because Kbuild visits this Makefile > only when CONFIG_NET_L3_MASTER_DEV=y. > > Signed-o

Re: [BUG] copy_file_range with sysfs file as input

2021-01-26 Thread Nicolas Boichat
On Tue, Jan 26, 2021 at 9:34 AM Dave Chinner wrote: > > On Mon, Jan 25, 2021 at 03:54:31PM +0800, Nicolas Boichat wrote: > > Hi copy_file_range experts, > > > > We hit this interesting issue when upgrading Go compiler from 1.13 to > > 1.15 [1]. Basically we use Go's `io.Copy` to copy the content o

[PATCH net v6] net: lapb: Add locking to the lapb module

2021-01-26 Thread Xie He
In the lapb module, the timers may run concurrently with other code in this module, and there is currently no locking to prevent the code from racing on "struct lapb_cb". This patch adds locking to prevent racing. 1. Add "spinlock_t lock" to "struct lapb_cb"; Add "spin_lock_bh" and "spin_unlock_bh

Re: [PATCH 27/32] NFS: Refactor nfs_readpage() and nfs_readpage_async() to use nfs_readdesc

2021-01-26 Thread Matthew Wilcox
On Mon, Jan 25, 2021 at 09:36:13PM +, David Howells wrote: > +int nfs_readpage_async(void *data, struct inode *inode, > struct page *page) > { > + struct nfs_readdesc *desc = (struct nfs_readdesc *)data; You don't need a cast to cast from void. > @@ -440,17 +439,16 @

Re: [PATCH 1/1] scsi: sd: use max_xfer_blocks for set rw_max if max_xfer_blocks is available

2021-01-26 Thread Changheun Lee
> Damien, > > >> How about set larger valid value between sdkp->max_xfer_blocks, > >> and sdkp->opt_xfer_blocks to rw_max? > > > > Again, if your device reports an opt_xfer_blocks value that is too > > small for its own good, that is a problem with this device. > > Correct. It is very much intent

[PATCH] nvmem: qcom-spmi-sdam: Fix uninitialized pdev pointer

2021-01-26 Thread Subbaraman Narayanamurthy
"sdam->pdev" is uninitialized and it is used to print error logs. Fix it. Since device pointer can be used from sdam_config, use it directly thereby removing pdev pointer. Signed-off-by: Subbaraman Narayanamurthy --- --- drivers/nvmem/qcom-spmi-sdam.c | 7 +++ 1 file changed, 3 insertions(+)

Re: [PATCH v3] tracing: precise log info for kretprobe addr err

2021-01-26 Thread Masami Hiramatsu
On Mon, 25 Jan 2021 13:38:40 -0500 Steven Rostedt wrote: > On Mon, 25 Jan 2021 19:19:27 +0100 > Oleg Nesterov wrote: > > > On 01/26, Jianlin Lv wrote: > > > > > > When trying to create kretprobe with the wrong function symbol in tracefs; > > > The error is triggered in the register_trace_kprobe

Re: [PATCH v3 1/2] bio: limit bio max size

2021-01-26 Thread Damien Le Moal
On 2021/01/26 12:58, Ming Lei wrote: > On Tue, Jan 26, 2021 at 10:32:34AM +0900, Changheun Lee wrote: >> bio size can grow up to 4GB when muli-page bvec is enabled. >> but sometimes it would lead to inefficient behaviors. >> in case of large chunk direct I/O, - 32MB chunk read in user space - >> al

Re: [PATCH v3 1/2] bio: limit bio max size

2021-01-26 Thread Ming Lei
On Tue, Jan 26, 2021 at 10:32:34AM +0900, Changheun Lee wrote: > bio size can grow up to 4GB when muli-page bvec is enabled. > but sometimes it would lead to inefficient behaviors. > in case of large chunk direct I/O, - 32MB chunk read in user space - > all pages for 32MB would be merged to a bio s

Re: [PATCH 25/32] NFS: Clean up nfs_readpage() and nfs_readpages()

2021-01-26 Thread Matthew Wilcox
On Mon, Jan 25, 2021 at 09:35:49PM +, David Howells wrote: > -int nfs_readpage(struct file *file, struct page *page) > +int nfs_readpage(struct file *filp, struct page *page) I appreciate we're inconsistent between file and filp, but we're actually moving more towards file than filp.

[PATCH] crypto/ccree: fix spelling typo of allocated

2021-01-26 Thread dingsenjie
From: dingsenjie allocted -> allocated Signed-off-by: dingsenjie --- drivers/crypto/ccree/cc_cipher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/ccree/cc_cipher.c b/drivers/crypto/ccree/cc_cipher.c index cdfee50..78833491 100644 --- a/drivers/crypto/ccre

[PATCH v2 1/3] dt-bindings: pinctrl: qcom: Define common TLMM binding

2021-01-26 Thread Bjorn Andersson
Several properties are shared between all TLMM bindings. By providing a common binding to define these properties each platform's binding can be reduced to just listing which of these properties should be checked for - or further specified. Reviewed-by: Vinod Koul Signed-off-by: Bjorn Andersson

Re: [PATCH net-next 3/6] net: ipa: drop packet if status has valid tag

2021-01-26 Thread Alex Elder
On 1/25/21 9:27 PM, Jakub Kicinski wrote: On Mon, 25 Jan 2021 15:29:44 -0600 Alex Elder wrote: Introduce ipa_endpoint_status_tag(), which returns true if received status indicates its tag field is valid. The endpoint parameter is not yet used. Call this from ipa_status_drop_packet(), and drop

RE: [PATCH v2] usb: host: xhci-plat: fix support for XHCI_SKIP_PHY_INIT quirk

2021-01-26 Thread Yoshihiro Shimoda
Hi Pali, > From: Pali Rohár, Sent: Monday, January 25, 2021 11:20 PM > On Friday 15 January 2021 15:32:30 Mathias Nyman wrote: > > On 14.1.2021 1.20, Pali Rohár wrote: > > > On Thursday 24 December 2020 05:59:05 Peter Chen wrote: > > >> On 20-12-23 17:18:47, Pali Rohár wrote: > > >>> Currently ini

[PATCH v2 3/3] pinctrl: qcom: Add sc8180x TLMM driver

2021-01-26 Thread Bjorn Andersson
Add pinctrl driver for the sc8180x TLMM block. A noteworthy difference from previous TLMM blocks is that the registers for GPIO 177 through 189 are for some reason offset from the typical layout. Other than that the driver is same old... Signed-off-by: Bjorn Andersson --- drivers/pinctrl/qcom/K

[PATCH v2 2/3] dt-bindings: pinctrl: qcom: Add sc8180x binding

2021-01-26 Thread Bjorn Andersson
Add binding for the TLMM block in the Qualcomm SC8180X platform. Signed-off-by: Bjorn Andersson --- .../pinctrl/qcom,sc8180x-pinctrl.yaml | 152 ++ 1 file changed, 152 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,sc8180x-pinctrl.yaml

Re: [PATCH] mm: hugetlb: fix missing put_page in gather_surplus_pages()

2021-01-26 Thread Mike Kravetz
On 1/25/21 7:10 PM, Muchun Song wrote: > The VM_BUG_ON_PAGE avoids the generation of any code, even if that > expression has side-effects when !CONFIG_DEBUG_VM. > > Fixes: e5dfacebe4a4 ("mm/hugetlb.c: just use put_page_testzero() instead of > page_count()") > Signed-off-by: Muchun Song > Cc: >

Re: [PATCH v2 0/7] Generic RB-tree helpers

2021-01-26 Thread Davidlohr Bueso
On Mon, 25 Jan 2021, Peter Zijlstra wrote: Hai all, I found myself needing to write yet another rbtree and remembered I had these patches gathering dust. I've had them in a git tree pretty much ever since I posted them last and the robot is telling me they build/work/dance/sing fine. I'm propo

Re: [PATCH v3 1/2] bio: limit bio max size

2021-01-26 Thread Ming Lei
On Tue, Jan 26, 2021 at 04:06:06AM +, Damien Le Moal wrote: > On 2021/01/26 12:58, Ming Lei wrote: > > On Tue, Jan 26, 2021 at 10:32:34AM +0900, Changheun Lee wrote: > >> bio size can grow up to 4GB when muli-page bvec is enabled. > >> but sometimes it would lead to inefficient behaviors. > >>

Re: [PATCH V2 3/6] x86_32/sysenter: switch to the task stack without emptying the entry stack

2021-01-26 Thread Brian Gerst
On Mon, Jan 25, 2021 at 11:35 AM Lai Jiangshan wrote: > > From: Lai Jiangshan > > Like the way x86_64 uses the "old" stack, we can save the entry stack > pointer to a register and switch to the task stack. So that we have > space on the "old" stack to save more things or scratch registers. > > S

Re: UBSAN: shift-out-of-bounds in exfat_fill_super

2021-01-26 Thread Randy Dunlap
On 1/25/21 10:39 AM, Matthew Wilcox wrote: > On Mon, Jan 25, 2021 at 09:33:14AM -0800, syzbot wrote: >> UBSAN: shift-out-of-bounds in fs/exfat/super.c:471:28 >> shift exponent 4294967294 is too large for 32-bit type 'int' > > This is an integer underflow: > > sbi->dentries_per_clu = 1 <<

Re: [PATCH] bcache: dont reset bio opf in bch_data_insert_start

2021-01-26 Thread Dongsheng Yang
在 2021/1/25 星期一 下午 12:53, Coly Li 写道: On 1/25/21 12:29 PM, Dongsheng Yang wrote: commit ad0d9e76(bcache: use bio op accessors) makes the bi_opf modified by bio_set_op_attrs(). But there is a logical problem in this commit: trace_bcache_cache_insert(k); bch_ke

Re: [External] Re: [PATCH] mm: hugetlb: fix missing put_page in gather_surplus_pages()

2021-01-26 Thread Muchun Song
On Tue, Jan 26, 2021 at 12:31 PM Mike Kravetz wrote: > > On 1/25/21 7:10 PM, Muchun Song wrote: > > The VM_BUG_ON_PAGE avoids the generation of any code, even if that > > expression has side-effects when !CONFIG_DEBUG_VM. > > > > Fixes: e5dfacebe4a4 ("mm/hugetlb.c: just use put_page_testzero() ins

[PATCH v2 2/2] clk: qcom: gcc: Add global clock controller driver for SC8180x

2021-01-26 Thread Bjorn Andersson
Add clocks, resets and some of the GDSC provided by the global clock controller found in the Qualcomm SC8180x platform. Signed-off-by: Bjorn Andersson --- Changes since v1: - Fixes all gdsc addresses (missed to fold the fixup that subtracted gcc base in v1) drivers/clk/qcom/Kconfig |

Re: [PATCH 1/2] kcsan: Make test follow KUnit style recommendations

2021-01-26 Thread David Gow
On Thu, Jan 14, 2021 at 12:06 AM Marco Elver wrote: > > Per recently added KUnit style recommendations at > Documentation/dev-tools/kunit/style.rst, make the following changes to > the KCSAN test: > > 1. Rename 'kcsan-test.c' to 'kcsan_test.c'. > > 2. Rename suite name 'kcsan-test'

Re: [PATCH] mm: hugetlb: fix missing put_page in gather_surplus_pages()

2021-01-26 Thread Miaohe Lin
Hi: On 2021/1/26 11:10, Muchun Song wrote: > The VM_BUG_ON_PAGE avoids the generation of any code, even if that > expression has side-effects when !CONFIG_DEBUG_VM. > > Fixes: e5dfacebe4a4 ("mm/hugetlb.c: just use put_page_testzero() instead of > page_count()") > Signed-off-by: Muchun Song > Cc:

[PATCH v7 0/6] drm/imx: Introduce i.MX8qm/qxp DPU DRM

2021-01-26 Thread Liu Ying
Hi, This is the v7 series to introduce i.MX8qm/qxp Display Processing Unit(DPU) DRM support. DPU is comprised of a blit engine for 2D graphics, a display controller and a command sequencer. Outside of DPU, optional prefetch engines can fetch data from memory prior to some DPU fetchunits of blit

Re: [PATCH v3 1/2] bio: limit bio max size

2021-01-26 Thread Damien Le Moal
On 2021/01/26 15:07, Ming Lei wrote: > On Tue, Jan 26, 2021 at 04:06:06AM +, Damien Le Moal wrote: >> On 2021/01/26 12:58, Ming Lei wrote: >>> On Tue, Jan 26, 2021 at 10:32:34AM +0900, Changheun Lee wrote: bio size can grow up to 4GB when muli-page bvec is enabled. but sometimes it wo

[PATCH v7 3/6] dt-bindings: display: imx: Add i.MX8qxp/qm DPR channel binding

2021-01-26 Thread Liu Ying
This patch adds bindings for i.MX8qxp/qm Display Prefetch Resolve Channel. Reviewed-by: Rob Herring Signed-off-by: Liu Ying --- v6->v7: * No change. v5->v6: * No change. v4->v5: * No change. v3->v4: * Improve compatible property by using enum instead of oneOf+const. (Rob) * Add Rob's R-b tag.

Re: [PATCH v5] scripts: use pkg-config to locate libcrypto

2021-01-26 Thread Masahiro Yamada
On Tue, Jan 26, 2021 at 2:42 PM Rolf Eike Beer wrote: > > Am Mittwoch, 13. Januar 2021, 13:49:12 CET schrieb Rolf Eike Beer: > > Otherwise build fails if the headers are not in the default location. While > > at it also ask pkg-config for the libs, with fallback to the existing > > value. > > Can

Re: [PATCH 5/5] mm/vmalloc: improve allocation failure error messages

2021-01-26 Thread Christoph Hellwig
On Tue, Jan 26, 2021 at 02:54:04PM +1000, Nicholas Piggin wrote: > There are several reasons why a vmalloc can fail, virtual space > exhausted, page array allocation failure, page allocation failure, > and kernel page table allocation failure. > > Add distinct warning messages for the main causes

Re: [PATCH 4/5] mm/vmalloc: remove unmap_kernel_range

2021-01-26 Thread Christoph Hellwig
On Tue, Jan 26, 2021 at 02:54:03PM +1000, Nicholas Piggin wrote: > This is a shim around vunmap_range, get rid of it. > > Move the main API comment from the _noflush variant to the normal > variant, and make _noflush internal to mm/. Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH v2 0/3] isa: Make the remove callback for isa drivers return void

2021-01-26 Thread Takashi Iwai
On Fri, 22 Jan 2021 10:24:46 +0100, Uwe Kleine-König wrote: > > Hello, > > changes since v1 > (https://lore.kernel.org/r/20210121204812.402589-1-...@kleine-koenig.org): > - fix build failure, found by the kernel test robot >(my grep missed the struct isa_driver embedded in struct >radio_

Re: [PATCH v3 net-next] Remove buf_info from device accessible structures

2021-01-26 Thread Leon Romanovsky
On Mon, Jan 25, 2021 at 02:34:56PM -0800, Ronak Doshi wrote: > vmxnet3: Remove buf_info from device accessible structures This line should be part of the "Subject: ..." and not as separated line. Thanks > > buf_info structures in RX & TX queues are private driver data that > do not need to be vi

Re: [PATCH 1/5] mm/vmalloc: remove map_kernel_range

2021-01-26 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH 2/5] kernel/dma: remove unnecessary unmap_kernel_range

2021-01-26 Thread Christoph Hellwig
On Tue, Jan 26, 2021 at 02:54:01PM +1000, Nicholas Piggin wrote: > vunmap will remove ptes. Looks good, Reviewed-by: Christoph Hellwig

[PATCH v4] Resolve LRU page-pinning issue for file-backed pages

2021-01-26 Thread Chris Goldsworthy
It is possible for file-backed pages to end up in a contiguous memory area (CMA), such that the relevant page must be migrated using the .migratepage() callback when its backing physical memory is selected for use in an CMA allocation (through cma_alloc()). However, if a set of address space opera

Re: [PATCH v11 12/13] mm/vmalloc: Hugepage vmalloc mappings

2021-01-26 Thread Ding Tianhong
On 2021/1/26 12:45, Nicholas Piggin wrote: > Support huge page vmalloc mappings. Config option HAVE_ARCH_HUGE_VMALLOC > enables support on architectures that define HAVE_ARCH_HUGE_VMAP and > supports PMD sized vmap mappings. > > vmalloc will attempt to allocate PMD-sized pages if allocating PMD si

[PATCH v4] fs/buffer.c: Revoke LRU when trying to drop buffers

2021-01-26 Thread Chris Goldsworthy
From: Laura Abbott When a buffer is added to the LRU list, a reference is taken which is not dropped until the buffer is evicted from the LRU list. This is the correct behavior, however this LRU reference will prevent the buffer from being dropped. This means that the buffer can't actually be dro

[PATCH] habanalabs: add CS completion and timeout properties

2021-01-26 Thread Oded Gabbay
From: Ofir Bitton In order to support staged submission feature, we need to distinguish on which command submission we want to receive timeout and for which we want to receive completion. Signed-off-by: Ofir Bitton Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay --- .../habanalabs/common

Re: [PATCH] s390: allow reschedule on syscall restart

2021-01-26 Thread Christian Borntraeger
On 21.01.21 15:39, Sven Schnelle wrote: > Commit 845f44e8ef28 ("sched: Report local wake up on resched blind zone > within idle loop") from next-20210121 causes a warning because s390 > doesn't call sched_resched_local_allow() when restarting a syscall. > > Signed-off-by: Sven Schnelle > --- > a

Re: [PATCH v11 01/13] mm/vmalloc: fix HUGE_VMAP regression by enabling huge pages in vmalloc_to_page

2021-01-26 Thread Miaohe Lin
Hi: On 2021/1/26 12:44, Nicholas Piggin wrote: > vmalloc_to_page returns NULL for addresses mapped by larger pages[*]. > Whether or not a vmap is huge depends on the architecture details, > alignments, boot options, etc., which the caller can not be expected > to know. Therefore HUGE_VMAP is a regr

[PATCH v8] perf stat: Fix wrong skipping for per-die aggregation

2021-01-26 Thread Jin Yao
Uncore becomes die-scope on Xeon Cascade Lake-AP and perf has supported --per-die aggregation yet. One issue is found in check_per_pkg() for uncore events running on AP system. On cascade Lake-AP, we have: S0-D0 S0-D1 S1-D0 S1-D1 But in check_per_pkg(), S0-D1 and S1-D1 are skipped because the ma

[PATCH 01/12] docs: path-lookup: update follow_managed() part

2021-01-26 Thread Fox Chen
No follow_managed() anymore, handle_mounts(), traverse_mounts(), will do the job. see commit: 9deed3ebca244663530782631834e706a86a8c8f Signed-off-by: Fox Chen --- Documentation/filesystems/path-lookup.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/fil

Re: [PATCH v16 06/11] mm: introduce memfd_secret system call to create "secret" memory areas

2021-01-26 Thread Michal Hocko
On Mon 25-01-21 23:36:18, Mike Rapoport wrote: > On Mon, Jan 25, 2021 at 06:01:22PM +0100, Michal Hocko wrote: > > On Thu 21-01-21 14:27:18, Mike Rapoport wrote: > > > From: Mike Rapoport > > > > > > Introduce "memfd_secret" system call with the ability to create memory > > > areas visible only i

[PATCH RFC 1/2] dt: pci: designware-pcie.txt: convert it to yaml

2021-01-26 Thread Mauro Carvalho Chehab
Convert the file into a JSON description at the yaml format. Signed-off-by: Mauro Carvalho Chehab --- .../bindings/pci/amlogic,meson-pcie.txt | 4 +- .../bindings/pci/axis,artpec6-pcie.txt| 2 +- .../bindings/pci/designware,pcie.yaml | 194 ++ .../bindin

Re: [PATCH bpf-next v3 3/3] xsk: build skb by page

2021-01-26 Thread Magnus Karlsson
On Mon, Jan 25, 2021 at 4:22 PM Xuan Zhuo wrote: > > On Mon, 25 Jan 2021 14:16:16 +0100, Magnus Karlsson > wrote: > > On Mon, Jan 25, 2021 at 1:43 PM Xuan Zhuo > > wrote: > > > > > > On Mon, 25 Jan 2021 08:44:38 +0100, Magnus Karlsson > > > wrote: > > > > On Mon, Jan 25, 2021 at 3:27 AM Xuan

Re: [PATCH v3, 05/15] drm/mediatek: add component POSTMASK

2021-01-26 Thread Hsin-Yi Wang
On Mon, Jan 11, 2021 at 3:44 PM Yongqiang Niu wrote: > > This patch add component POSTMASK, > > Signed-off-by: Yongqiang Niu > --- > drivers/gpu/drm/mediatek/Makefile| 1 + > drivers/gpu/drm/mediatek/mtk_disp_postmask.c | 160 > +++ > drivers/gpu/drm/mediat

Re: [PATCH v4 4/5] dt-bindings: clock: Add SM8350 GCC clock bindings

2021-01-26 Thread Vinod Koul
On 25-01-21, 11:25, Bjorn Andersson wrote: > On Sun 17 Jan 22:43 CST 2021, Vinod Koul wrote: > > > Add device tree bindings for global clock controller on SM8350 SoCs. > > > > Reviewed-by: Rob Herring > > Signed-off-by: Vinod Koul > > --- > > .../bindings/clock/qcom,gcc-sm8350.yaml | 96

[PATCH V8 07/12] dt-bindings: interconnect: add MT6873 interconnect dt-bindings

2021-01-26 Thread Henry Chen
Add interconnect provider dt-bindings for MT6873. Signed-off-by: Henry Chen --- include/dt-bindings/interconnect/mtk,mt6873-emi.h | 41 +++ 1 file changed, 41 insertions(+) create mode 100644 include/dt-bindings/interconnect/mtk,mt6873-emi.h diff --git a/include/dt-bindings

RE: [PATCH v2 3/3] perf vendor events: Add Fujitsu A64FX V1.2 pmu event

2021-01-26 Thread nakamura.s...@fujitsu.com
Hi, John Thanks for the info. Best Regards Shunsuke > -Original Message- > From: John Garry > Sent: Monday, January 25, 2021 9:46 PM > To: Nakamura, Shunsuke/中村 俊介 > Cc: w...@kernel.org; mathieu.poir...@linaro.org; leo@linaro.org; > linux-arm-ker...@lists.infradead.org; linux-kernel

[PATCH V8 03/12] soc: mediatek: add driver for dvfsrc support

2021-01-26 Thread Henry Chen
Add dvfsrc driver for MT6873/MT8183/MT8192 Signed-off-by: Henry Chen --- drivers/soc/mediatek/Kconfig| 11 + drivers/soc/mediatek/Makefile | 1 + drivers/soc/mediatek/mtk-dvfsrc.c | 421 include/linux/soc/mediatek/mtk_dvfsrc.h | 35

[PATCH V8 08/12] interconnect: mediatek: Add interconnect provider driver

2021-01-26 Thread Henry Chen
Introduce Mediatek MT6873/MT8183/MT8192 specific provider driver using the interconnect framework. ICC provider ICC Nodes - |CPU | |--- |VPU | - | |- | |DRA

Re: [PATCH 3/5] powerpc/xive: remove unnecessary unmap_kernel_range

2021-01-26 Thread Cédric Le Goater
On 1/26/21 5:54 AM, Nicholas Piggin wrote: > iounmap will remove ptes. > > Cc: "Cédric Le Goater" > Cc: linuxppc-...@lists.ozlabs.org > Signed-off-by: Nicholas Piggin Looks good. Acked-by: Cédric Le Goater Thanks, C. > --- > arch/powerpc/sysdev/xive/common.c | 4 > 1 file changed,

linux-next: Signed-off-by missing for commit in the raspberrypi tree

2021-01-26 Thread Stephen Rothwell
Hi all, Commits 7a5936445053 ("ARM: dts: bcm2711: Add the BSC interrupt controller") 69894e0baa0c ("ARM: bcm: Select BRCMSTB_L2_IRQ for bcm2835") are missing a Signed-off-by from their committer. -- Cheers, Stephen Rothwell pgpUEIdPDH5GE.pgp Description: OpenPGP digital signature

Re: [PATCH] mfd: max8997: Replace 8998 with 8997

2021-01-26 Thread Lee Jones
On Mon, 25 Jan 2021, Timon Baetz wrote: > On Mon, 25 Jan 2021 08:43:47 +, Lee Jones wrote: > > On Sun, 24 Jan 2021, Timon Baetz wrote: > > > > > Replace occurrences of 8998 with 8997. > > > > Because ... > > ... it is the max8997 header. Do you want me to extend the commit > message? Yes

[PATCH v3 2/4] KVM: SVM: Add emulation support for #GP triggered by SVM instructions

2021-01-26 Thread Wei Huang
From: Bandan Das While running SVM related instructions (VMRUN/VMSAVE/VMLOAD), some AMD CPUs check EAX against reserved memory regions (e.g. SMM memory on host) before checking VMCB's instruction intercept. If EAX falls into such memory areas, #GP is triggered before VMEXIT. This causes problem u

[PATCH v3 1/4] KVM: x86: Factor out x86 instruction emulation with decoding

2021-01-26 Thread Wei Huang
Move the instruction decode part out of x86_emulate_instruction() for it to be used in other places. Also kvm_clear_exception_queue() is moved inside the if-statement as it doesn't apply when KVM are coming back from userspace. Co-developed-by: Bandan Das Signed-off-by: Bandan Das Signed-off-by:

[PATCH v3 4/4] KVM: SVM: Support #GP handling for the case of nested on nested

2021-01-26 Thread Wei Huang
Under the case of nested on nested (L0->L1->L2->L3), #GP triggered by SVM instructions can be hided from L1. Instead the hypervisor can inject the proper #VMEXIT to inform L1 of what is happening. Thus L1 can avoid invoking the #GP workaround. For this reason we turns on guest VM's X86_FEATURE_SVME

[PATCH v3 3/4] KVM: SVM: Add support for SVM instruction address check change

2021-01-26 Thread Wei Huang
New AMD CPUs have a change that checks #VMEXIT intercept on special SVM instructions before checking their EAX against reserved memory region. This change is indicated by CPUID_0x800A_EDX[28]. If it is 1, #VMEXIT is triggered before #GP. KVM doesn't need to intercept and emulate #GP faults as #

Re: [PATCH v1 00/10] mfd, x86: remove msic driver and leftovers

2021-01-26 Thread Lee Jones
On Mon, 25 Jan 2021, Andy Shevchenko wrote: > This is a second part of the Intel MID outdated platforms removal. > First part is available as immutable branch [1]. The series has functional > and build dependencies, so the mentioned branch should be used as a base > for these changes. > > Note, t

[PATCH] bpf: Fix integer overflow in argument calculation for bpf_map_area_alloc

2021-01-26 Thread Bui Quang Minh
In 32-bit architecture, the result of sizeof() is a 32-bit integer so the expression becomes the multiplication between 2 32-bit integer which can potentially leads to integer overflow. As a result, bpf_map_area_alloc() allocates less memory than needed. Fix this by casting 1 operand to u64. Sign

[PATCH v3] rtlwifi: Simplify bool comparison

2021-01-26 Thread Jiapeng Zhong
Fix the following coccicheck warning: ./drivers/net/wireless/realtek/rtlwifi/ps.c:798:7-21: WARNING: Comparison to bool ./drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c:3848:7-17: WARNING: Comparison of 0/1 to bool variable Reported-by: Abaci Robot Signed-off-by: Jiapeng Zhong --- Changes

Re: [PATCH v3 3/5] hugetlb: only set HPageMigratable for migratable hstates

2021-01-26 Thread Oscar Salvador
On Fri, Jan 22, 2021 at 11:52:29AM -0800, Mike Kravetz wrote: > The HP_Migratable flag indicates a page is a candidate for migration. > Only set the flag if the page's hstate supports migration. This allows > the migration paths to detect non-migratable pages earlier. If migration > is not suppor

Re: [PATCH 1/8] dt-binding: watchdog: add more Rockchip compatibles to snps,dw-wdt.yaml

2021-01-26 Thread Heiko Stübner
Hi Guenter, Am Dienstag, 26. Januar 2021, 05:55:59 CET schrieb Guenter Roeck: > On 1/25/21 3:40 PM, Heiko Stuebner wrote: > > Am Samstag, 23. Januar 2021, 18:34:01 CET schrieb Guenter Roeck: > >> On Fri, Dec 18, 2020 at 01:05:27PM +0100, Johan Jonker wrote: > >>> The watchdog compatible strings ar

[PATCH 1/3] soundwire: bus: clear bus clash interrupt before the mask is enabled

2021-01-26 Thread Bard Liao
The SoundWire specification allows a Slave device to report a bus clash with the in-band interrupt mechanism when it detects a conflict while driving a bitSlot it owns. This can be a symptom of an electrical conflict or a programming error, and it's vital to detect reliably. Unfortunately, on some

[PATCH 0/3] soundwire: clear bus clash/parity interrupt before the mask is enabled

2021-01-26 Thread Bard Liao
The SoundWire specification allows a Slave device to report a bus clash or parity error with the in-band interrupt mechanism. Unfortunately, on some platforms, these errors are randomly reported and don't seem to be valid. This series suggests the addition of a Master level quirk to discard such in

[PATCH 2/3] soundwire: intel: add SDW_MASTER_QUIRKS_CLEAR_INITIAL_CLASH quirk

2021-01-26 Thread Bard Liao
There is nothing we can do to handle the bus clash interrupt before interrupt mask is enabled. Signed-off-by: Bard Liao Reviewed-by: Rander Wang Reviewed-by: Pierre-Louis Bossart --- drivers/soundwire/intel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/soundwire/intel.c b/dri

[PATCH 3/3] soundwire: bus: clear parity interrupt before the mask is enabled

2021-01-26 Thread Bard Liao
From: Pierre-Louis Bossart We recently added the ability to discard bus clash interrupts reported on startup. These bus clash interrupts can happen randomly on some platforms and don't seem to be valid. A master-level quirk helped squelch those spurious errors. Additional tests on a new platform

Re: [PATCH 3/3] media: mtk-vcodec: Separating mtk encoder driver

2021-01-26 Thread Tiffany Lin
On Thu, 2021-01-21 at 14:18 +0800, Irui Wang wrote: > MTK H264 Encoder(VENC_SYS) and VP8 Encoder(VENC_LT_SYS) are two > independent hardware instance. They have their owner interrupt, > register mapping, and special clocks. > > This patch seperates them into two drivers: > User Call "VIDIOC_QUERYC

[PATCH 2/3] dt-bindings: connector: Add SVDM VDO properties

2021-01-26 Thread Kyle Tso
Add bindings of VDO properties of USB PD SVDM so that they can be defined in device tree. Signed-off-by: Kyle Tso --- include/dt-bindings/usb/pd.h | 53 +++- 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/include/dt-bindings/usb/pd.h b/include/dt-bi

[PATCH 1/3] usb: typec: Determine common SVDM Versions

2021-01-26 Thread Kyle Tso
PD Spec Revision 3.0 Version 2.0 + ECNs 2020-12-10 6.4.4.2.3 Structured VDM Version "The Structured VDM Version field of the Discover Identity Command sent and received during VDM discovery Shall be used to determine the lowest common Structured VDM Version supported by the Port Partners or

Re: [PATCH 4.19 46/58] net: dsa: mv88e6xxx: also read STU state in mv88e6250_g1_vtu_getnext

2021-01-26 Thread Greg Kroah-Hartman
On Mon, Jan 25, 2021 at 08:59:54PM +0100, Rasmus Villemoes wrote: > On 25/01/2021 20.40, Rasmus Villemoes wrote: > > On 25/01/2021 19.39, Greg Kroah-Hartman wrote: > >> From: Rasmus Villemoes > >> > >> commit 87fe04367d842c4d97a77303242d4dd4ac351e46 upstream. > >> > > > > Greg, please drop this f

Re: [PATCH] misc/vmw_vmci: fix typo

2021-01-26 Thread Greg KH
On Tue, Jan 26, 2021 at 04:40:10PM +0800, mateng wrote: > From: mateng > > change 'addres' to 'address' > > Signed-off-by: mateng > --- > drivers/misc/vmw_vmci/vmci_queue_pair.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/misc/vmw_vmci/vmci_queue_pair.h >

Re: [PATCH] PCI: dwc: layerscape: convert to builtin_platform_driver()

2021-01-26 Thread Geert Uytterhoeven
Hi Saravana, On Mon, Jan 25, 2021 at 11:42 PM Saravana Kannan wrote: > On Mon, Jan 25, 2021 at 11:49 AM Michael Walle wrote: > > Am 2021-01-21 12:01, schrieb Geert Uytterhoeven: > > > On Thu, Jan 21, 2021 at 1:05 AM Saravana Kannan > > > wrote: > > >> On Wed, Jan 20, 2021 at 3:53 PM Michael Wal

Re: [PATCH v2 11/14] dt-bindings: display: bridge: Add i.MX8qm/qxp LVDS display bridge binding

2021-01-26 Thread Liu Ying
On Mon, 2021-01-25 at 15:19 -0600, Rob Herring wrote: > On Thu, Jan 14, 2021 at 05:22:09PM +0800, Liu Ying wrote: > > This patch adds bindings for i.MX8qm/qxp LVDS display bridge(LDB). > > > > Signed-off-by: Liu Ying > > --- > > v1->v2: > > * Use graph schema. (Laurent) > > * Side note i.MX8qxp L

[PATCH v2 05/14] clk: stm32mp1: move RCC reset controller into RCC clock driver

2021-01-26 Thread gabriel.fernandez
From: Gabriel Fernandez RCC clock and reset controller shared same memory mapping. As RCC clock driver is now a module, the best way to register clock and reset controller is to do it in same driver. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 157

Re: [PATCH v2] usb: host: xhci-plat: fix support for XHCI_SKIP_PHY_INIT quirk

2021-01-26 Thread Pali Rohár
On Tuesday 26 January 2021 04:27:37 Yoshihiro Shimoda wrote: > Hi Pali, > > > From: Pali Rohár, Sent: Monday, January 25, 2021 11:20 PM > > On Friday 15 January 2021 15:32:30 Mathias Nyman wrote: > > > On 14.1.2021 1.20, Pali Rohár wrote: > > > > On Thursday 24 December 2020 05:59:05 Peter Chen wr

Re: [PATCH] optee: simplify i2c access

2021-01-26 Thread Arnd Bergmann
On Tue, Jan 26, 2021 at 9:08 AM Jorge Ramirez-Ortiz, Foundries wrote: > > On 25/01/21, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > Storing a bogus i2c_client structure on the stack adds overhead and > > causes a compile-time warning: > > > > drivers/tee/optee/rpc.c:493:6: error: stack fr

Re: [PATCH v16 08/11] secretmem: add memcg accounting

2021-01-26 Thread Michal Hocko
On Tue 26-01-21 10:56:54, Mike Rapoport wrote: > On Tue, Jan 26, 2021 at 08:31:42AM +0100, Michal Hocko wrote: > > On Mon 25-01-21 23:38:17, Mike Rapoport wrote: > > > On Mon, Jan 25, 2021 at 05:54:51PM +0100, Michal Hocko wrote: > > > > On Thu 21-01-21 14:27:20, Mike Rapoport wrote: > > > > > From

Re: [RFC PATCH v0] mm/slub: Let number of online CPUs determine the slub page order

2021-01-26 Thread Michal Hocko
On Thu 21-01-21 19:19:21, Vlastimil Babka wrote: [...] > We could also start questioning the very assumption that number of cpus should > affect slab page size in the first place. Should it? After all, each CPU will > have one or more slab pages privately cached, as we discuss in the other > thread

[PATCH net-next 1/1] stmmac: intel: Add ADL-S 1Gbps PCI IDs

2021-01-26 Thread Wong Vee Khee
From: "Wong, Vee Khee" Added PCI IDs for both Ethernet TSN Controllers on the ADL-S. Also, skip SerDes programming sequences as these are being carried out at the BIOS level for ADL-S. Signed-off-by: Wong, Vee Khee --- .../net/ethernet/stmicro/stmmac/dwmac-intel.c | 19 +++ 1

Re: [PATCH v2 0/1] AMD EPYC: fix schedutil perf regression (freq-invariance)

2021-01-26 Thread Giovanni Gherdovich
On Mon, 2021-01-25 at 09:34 +0100, Peter Zijlstra wrote: > On Sun, Jan 24, 2021 at 04:30:57PM -0600, Michael Larabel wrote: > > From ongoing tests of this patch, it still certainly shows to address most > > of the Linux 5.11 performance regression previously encountered when using > > Schedutil. Ad

Re: [PATCH v16 06/11] mm: introduce memfd_secret system call to create "secret" memory areas

2021-01-26 Thread Mike Rapoport
On Tue, Jan 26, 2021 at 10:00:13AM +0100, Michal Hocko wrote: > On Tue 26-01-21 10:33:11, Mike Rapoport wrote: > > On Tue, Jan 26, 2021 at 08:16:14AM +0100, Michal Hocko wrote: > > > On Mon 25-01-21 23:36:18, Mike Rapoport wrote: > > > > On Mon, Jan 25, 2021 at 06:01:22PM +0100, Michal Hocko wrote:

Re: [PATCH 1/2] arm64: boot: dts: add new dts for hellcat & petra

2021-01-26 Thread Michal Simek
On 1/25/21 10:04 PM, Daniel Walker (danielwa) wrote: > On Mon, Jan 25, 2021 at 08:52:01AM +0100, Michal Simek wrote: >>> Long time ago we said that we are not going to push any PL related configurations. It means all below can't be merged. And there are also coding style issu

Re: [PATCH v16 06/11] mm: introduce memfd_secret system call to create "secret" memory areas

2021-01-26 Thread Michal Hocko
On Tue 26-01-21 10:00:14, Michal Hocko wrote: > On Tue 26-01-21 10:33:11, Mike Rapoport wrote: > > On Tue, Jan 26, 2021 at 08:16:14AM +0100, Michal Hocko wrote: > > > On Mon 25-01-21 23:36:18, Mike Rapoport wrote: > > > > On Mon, Jan 25, 2021 at 06:01:22PM +0100, Michal Hocko wrote: > > > > > On Th

Re: [PATCH v13 05/12] mm: hugetlb: allocate the vmemmap pages associated with each HugeTLB page

2021-01-26 Thread Oscar Salvador
On Sun, Jan 17, 2021 at 11:10:46PM +0800, Muchun Song wrote: > When we free a HugeTLB page to the buddy allocator, we should allocate the > vmemmap pages associated with it. We can do that in the __free_hugepage() > before freeing it to buddy. > > Signed-off-by: Muchun Song This series has grown

Re: [RESEND v13 09/10] KVM: vmx/pmu: Expose LBR_FMT in the MSR_IA32_PERF_CAPABILITIES

2021-01-26 Thread Paolo Bonzini
On 08/01/21 02:37, Like Xu wrote: Userspace could enable guest LBR feature when the exactly supported LBR format value is initialized to the MSR_IA32_PERF_CAPABILITIES and the LBR is also compatible with vPMU version and host cpu model. Signed-off-by: Like Xu Reviewed-by: Andi Kleen --- arch

Re: [PATCH] bpf: Fix integer overflow in argument calculation for bpf_map_area_alloc

2021-01-26 Thread Lorenz Bauer
On Tue, 26 Jan 2021 at 08:26, Bui Quang Minh wrote: > > In 32-bit architecture, the result of sizeof() is a 32-bit integer so > the expression becomes the multiplication between 2 32-bit integer which > can potentially leads to integer overflow. As a result, > bpf_map_area_alloc() allocates less m

[PATCH v2 1/7] drivers: soc: atmel: add spdx license identifier

2021-01-26 Thread Claudiu Beznea
Add SPDX-License-Identifier. Signed-off-by: Claudiu Beznea --- drivers/soc/atmel/soc.c | 1 + drivers/soc/atmel/soc.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/soc/atmel/soc.c b/drivers/soc/atmel/soc.c index 2dc86728b132..755a82502ef4 100644 --- a/drivers/soc/atmel/soc.c +++

[PATCH v2 6/7] dt-bindings: atmel-sysreg: add "microchip,sama7g5-chipid"

2021-01-26 Thread Claudiu Beznea
Add DT binding for SAMA7G5's CHIPID. Signed-off-by: Claudiu Beznea --- Documentation/devicetree/bindings/arm/atmel-sysregs.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/arm/atmel-sysregs.txt b/Documentation/devicetree/bindings/arm/atme

Re: [PATCH v2 5/7] rbtree, uprobes: Use rbtree helpers

2021-01-26 Thread Peter Zijlstra
On Mon, Jan 25, 2021 at 09:59:49PM -0800, Davidlohr Bueso wrote: > On Mon, 25 Jan 2021, Peter Zijlstra wrote: > > > Reduce rbtree boilerplate by using the new helpers. > > This reminds me of: > > https://lore.kernel.org/lkml/20200207180305.11092-6-d...@stgolabs.net/ > > Would a walk optimizatio

[PATCH v2 7/7] drivers: soc: atmel: add support for sama7g5

2021-01-26 Thread Claudiu Beznea
Add support for SAMA7G5 SoCs. Signed-off-by: Claudiu Beznea --- drivers/soc/atmel/soc.c | 18 ++ drivers/soc/atmel/soc.h | 6 ++ 2 files changed, 24 insertions(+) diff --git a/drivers/soc/atmel/soc.c b/drivers/soc/atmel/soc.c index 813052dc9fce..e7c873134f59 100644 --- a/dr

[PATCH v2 5/7] drivers: soc: atmel: add per soc id and version match masks

2021-01-26 Thread Claudiu Beznea
SAMA7G5 has different masks for chip ID and chip version on CIDR register compared to previous AT91 SoCs. For this the commit adapts the code for SAMA7G5 addition by introducing 2 new members in struct at91_soc and fill them properly and also preparing the parsing of proper DT binding. Signed-off-

[PATCH v2 4/7] drivers: soc: atmel: add null entry at the end of at91_soc_allowed_list[]

2021-01-26 Thread Claudiu Beznea
of_match_node() calls __of_match_node() which loops though the entries of matches array. It stops when condition: (matches->name[0] || matches->type[0] || matches->compatible[0]) is false. Thus, add a null entry at the end of at91_soc_allowed_list[] array. Fixes: 960ddf70cc11 ("drivers: soc: atmel

Re: [PATCH v17 11/26] x86/mm: Update ptep_set_wrprotect() and pmdp_set_wrprotect() for transition from _PAGE_DIRTY to _PAGE_COW

2021-01-26 Thread Peter Zijlstra
On Tue, Jan 26, 2021 at 09:46:36AM +0100, Peter Zijlstra wrote: > On Mon, Jan 25, 2021 at 07:27:09PM +0100, Borislav Petkov wrote: > > > > + pte_t old_pte, new_pte; > > > + > > > + do { > > > + old_pte = READ_ONCE(*ptep); > > > + new_pte = pte_wrprot

Re: [PATCH v16 06/11] mm: introduce memfd_secret system call to create "secret" memory areas

2021-01-26 Thread Michal Hocko
On Tue 26-01-21 11:20:11, Mike Rapoport wrote: > On Tue, Jan 26, 2021 at 10:00:13AM +0100, Michal Hocko wrote: > > On Tue 26-01-21 10:33:11, Mike Rapoport wrote: > > > On Tue, Jan 26, 2021 at 08:16:14AM +0100, Michal Hocko wrote: > > > > On Mon 25-01-21 23:36:18, Mike Rapoport wrote: > > > > > On M

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