Re: [PATCH 3/5] cifsd: add file operations

2021-03-21 Thread Al Viro
On Mon, Mar 22, 2021 at 02:13:42PM +0900, Namjae Jeon wrote: > This adds file operations and buffer pool for cifsd. Some random notes: > +static void rollback_path_modification(char *filename) > +{ > + if (filename) { > + filename--; > + *filename = '/'; What an odd wa

Re: [PATCH v5] RISC-V: enable XIP

2021-03-21 Thread Alex Ghiti
Le 3/21/21 à 2:06 PM, Vitaly Wool a écrit : Hey Alex, On Sun, Mar 21, 2021 at 4:11 PM Alex Ghiti wrote: Hi Vitaly, Le 3/10/21 à 4:22 AM, Vitaly Wool a écrit : Introduce XIP (eXecute In Place) support for RISC-V platforms. It allows code to be executed directly from non-volatile storage dire

[PATCH v31 4/4] scsi: ufs: Add HPB 2.0 support

2021-03-21 Thread Daejun Park
This patch supports the HPB 2.0. The HPB 2.0 supports read of varying sizes from 4KB to 512KB. In the case of Read (<= 32KB) is supported as single HPB read. In the case of Read (36KB ~ 512KB) is supported by as a combination of write buffer command and HPB read command to deliver more PPN. The wr

[PATCH v31 3/4] scsi: ufs: Prepare HPB read for cached sub-region

2021-03-21 Thread Daejun Park
This patch changes the read I/O to the HPB read I/O. If the logical address of the read I/O belongs to active sub-region, the HPB driver modifies the read I/O command to HPB read. It modifies the UPIU command of UFS instead of modifying the existing SCSI command. In the HPB version 1.0, the maxim

[PATCH v31 2/4] scsi: ufs: L2P map management for HPB read

2021-03-21 Thread Daejun Park
This is a patch for managing L2P map in HPB module. The HPB divides logical addresses into several regions. A region consists of several sub-regions. The sub-region is a basic unit where L2P mapping is managed. The driver loads L2P mapping data of each sub-region. The loaded sub-region is called a

[PATCH v31 1/4] scsi: ufs: Introduce HPB feature

2021-03-21 Thread Daejun Park
This is a patch for the HPB initialization and adds HPB function calls to UFS core driver. NAND flash-based storage devices, including UFS, have mechanisms to translate logical addresses of IO requests to the corresponding physical addresses of the flash storage. In UFS, Logical-address-to-Physica

[PATCH] watchdog: fix syntactic kernel-doc issues

2021-03-21 Thread Lukas Bulwahn
The command 'find drivers/watchdog | xargs ./scripts/kernel-doc -none' reports a number of kernel-doc warnings in the watchdog subsystem. Address the kernel-doc warnings that were purely syntactic issues with kernel-doc comments. The remaining kernel-doc warnings are of type "Excess function para

[PATCH] ASoC: Intel: Fix a typo

2021-03-21 Thread Bhaskar Chowdhury
s/struture/structure/ Signed-off-by: Bhaskar Chowdhury --- sound/soc/intel/atom/sst-mfld-dsp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/atom/sst-mfld-dsp.h b/sound/soc/intel/atom/sst-mfld-dsp.h index 102b0e7eafb0..8d9e29b16e57 100644 --- a/sound/soc/

[PATCH v31 0/4] scsi: ufs: Add Host Performance Booster Support

2021-03-21 Thread Daejun Park
Changelog: v30 -> v31 Delete debug unnecessary debug message. v29 -> v30 1. Add support to reuse bio of pre-request. 2. Delete unreached code in the ufshpb_issue_map_req. v28 -> v29 1. Remove unused variable that reported by kernel test robot. v27 -> v28 1. Fix wrong return value of ufshpb_prep

Re: [PATCH] s390/kernel: Fix a typo

2021-03-21 Thread Heiko Carstens
On Mon, Mar 22, 2021 at 11:55:00AM +0530, Bhaskar Chowdhury wrote: > > s/struture/structure/ > > Signed-off-by: Bhaskar Chowdhury > --- > arch/s390/kernel/os_info.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/s390/kernel/os_info.c b/arch/s390/kernel/os_info.c

[PATCH] ASoC: Intel: Fix a typo

2021-03-21 Thread Bhaskar Chowdhury
s/struture/structure/ Signed-off-by: Bhaskar Chowdhury --- sound/soc/intel/atom/sst/sst.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/atom/sst/sst.h b/sound/soc/intel/atom/sst/sst.h index 4d37d39fd8f4..978bf4255888 100644 --- a/sound/soc/intel/atom/sst/sst

Re: [PATCH 2/5] cifsd: add server-side procedures for SMB3

2021-03-21 Thread Christoph Hellwig
On Mon, Mar 22, 2021 at 09:47:13AM +0300, Dan Carpenter wrote: > On Mon, Mar 22, 2021 at 02:13:41PM +0900, Namjae Jeon wrote: > > +static unsigned char > > +asn1_octet_decode(struct asn1_ctx *ctx, unsigned char *ch) > > +{ > > + if (ctx->pointer >= ctx->end) { > > + ctx->error = ASN1_ER

[PATCH] ASoC: Intel: Fix a typo

2021-03-21 Thread Bhaskar Chowdhury
s/struture/structure/ Signed-off-by: Bhaskar Chowdhury --- sound/soc/intel/atom/sst-mfld-dsp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/atom/sst-mfld-dsp.h b/sound/soc/intel/atom/sst-mfld-dsp.h index 5795f98e04d4..102b0e7eafb0 100644 --- a/sound/soc/

Re: [PATCH 2/5] cifsd: add server-side procedures for SMB3

2021-03-21 Thread Dan Carpenter
On Mon, Mar 22, 2021 at 02:13:41PM +0900, Namjae Jeon wrote: > +static unsigned char > +asn1_octet_decode(struct asn1_ctx *ctx, unsigned char *ch) > +{ > + if (ctx->pointer >= ctx->end) { > + ctx->error = ASN1_ERR_DEC_EMPTY; > + return 0; > + } > + *ch = *(ctx->p

[PATCH] scsi: scsi_dh: Fix a typo

2021-03-21 Thread Bhaskar Chowdhury
s/infrastruture/infrastructure/ Signed-off-by: Bhaskar Chowdhury --- drivers/scsi/scsi_dh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/scsi_dh.c b/drivers/scsi/scsi_dh.c index 6f41e4b5a2b8..7b56e00c7df6 100644 --- a/drivers/scsi/scsi_dh.c +++ b/drivers/scs

Re: [RFC PATCH v4 6/9] KVM: selftests: Add a helper to get system default hugetlb page size

2021-03-21 Thread wangyanan (Y)
On 2021/3/12 19:40, Andrew Jones wrote: On Tue, Mar 02, 2021 at 08:57:48PM +0800, Yanan Wang wrote: If HUGETLB is configured in the host kernel, then we can know the system default hugetlb page size through *cat /proc/meminfo*. Otherwise, we will not see the information of hugetlb pages in fil

[PATCH] scsi_dh: Fix a typo

2021-03-21 Thread Bhaskar Chowdhury
s/infrastruture/infrastructure/ Signed-off-by: Bhaskar Chowdhury --- include/scsi/scsi_dh.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/scsi/scsi_dh.h b/include/scsi/scsi_dh.h index 2852e470a8ed..a9f782fe732a 100644 --- a/include/scsi/scsi_dh.h +++ b/include/scs

[PATCH v30 4/4] scsi: ufs: Add HPB 2.0 support

2021-03-21 Thread Daejun Park
This patch supports the HPB 2.0. The HPB 2.0 supports read of varying sizes from 4KB to 512KB. In the case of Read (<= 32KB) is supported as single HPB read. In the case of Read (36KB ~ 512KB) is supported by as a combination of write buffer command and HPB read command to deliver more PPN. The wr

Re: [PATCH] tools: include: nolibc: Fix a typo occured to occurred in the file nolibc.h

2021-03-21 Thread Willy Tarreau
On Sat, Feb 27, 2021 at 02:58:18PM -0800, Randy Dunlap wrote: > On 2/27/21 2:44 PM, Bhaskar Chowdhury wrote: > > > > s/occured/occurred/ > > > > Signed-off-by: Bhaskar Chowdhury > > Acked-by: Randy Dunlap Oops, seems like I missed this one, now queued, thanks to you both! Willy

[PATCH v30 3/4] scsi: ufs: Prepare HPB read for cached sub-region

2021-03-21 Thread Daejun Park
This patch changes the read I/O to the HPB read I/O. If the logical address of the read I/O belongs to active sub-region, the HPB driver modifies the read I/O command to HPB read. It modifies the UPIU command of UFS instead of modifying the existing SCSI command. In the HPB version 1.0, the maxim

[PATCH v30 2/4] scsi: ufs: L2P map management for HPB read

2021-03-21 Thread Daejun Park
This is a patch for managing L2P map in HPB module. The HPB divides logical addresses into several regions. A region consists of several sub-regions. The sub-region is a basic unit where L2P mapping is managed. The driver loads L2P mapping data of each sub-region. The loaded sub-region is called a

[PATCH] RDMA: Fix a typo

2021-03-21 Thread Bhaskar Chowdhury
s/struture/structure/ Signed-off-by: Bhaskar Chowdhury --- include/rdma/rdma_vt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rdma/rdma_vt.h b/include/rdma/rdma_vt.h index 9fd217b24916..d6611f2dd6a5 100644 --- a/include/rdma/rdma_vt.h +++ b/include/rdma/rdma_vt.

Re: [PATCH -tip v3 00/12] kprobes: Fix stacktrace with kretprobes on x86

2021-03-21 Thread Masami Hiramatsu
Oops, please ignore this. I missed updating the version. Thanks, On Mon, 22 Mar 2021 15:36:46 +0900 Masami Hiramatsu wrote: > Hello, > > Here is the 4th version of the series to fix the stacktrace with kretprobe > on x86. After merging this, I'll fix other architectures. > > The previous vers

[PATCH v30 1/4] scsi: ufs: Introduce HPB feature

2021-03-21 Thread Daejun Park
This is a patch for the HPB initialization and adds HPB function calls to UFS core driver. NAND flash-based storage devices, including UFS, have mechanisms to translate logical addresses of IO requests to the corresponding physical addresses of the flash storage. In UFS, Logical-address-to-Physica

Re: [RFC PATCH v4 5/9] KVM: selftests: Add a helper to get system configured THP page size

2021-03-21 Thread wangyanan (Y)
Hi Drew, Thanks for your attention to this series! On 2021/3/12 19:31, Andrew Jones wrote: On Tue, Mar 02, 2021 at 08:57:47PM +0800, Yanan Wang wrote: If we want to have some tests about transparent hugepages, the system configured THP hugepage size should better be known by the tests, which ca

[PATCH -tip v4 11/12] x86/unwind: Recover kretprobe trampoline entry

2021-03-21 Thread Masami Hiramatsu
Since the kretprobe replaces the function return address with the kretprobe_trampoline on the stack, x86 unwinders can not continue the stack unwinding at that point, or record kretprobe_trampoline instead of correct return address. To fix this issue, find the correct return address from task's kr

[PATCH v30 0/4] scsi: ufs: Add Host Performance Booster Support

2021-03-21 Thread Daejun Park
Changelog: v29 -> v30 1. Add support to reuse bio of pre-request. 2. Delete unreached code in the ufshpb_issue_map_req. v28 -> v29 1. Remove unused variable that reported by kernel test robot. v27 -> v28 1. Fix wrong return value of ufshpb_prep. v26 -> v27 1. Fix wrong refernce of sense buffer

Re: [PATCH] prctl: fix overwrite last but one entry in auxv vector

2021-03-21 Thread Cyrill Gorcunov
On Sun, Mar 21, 2021 at 11:36:42PM +0300, Cyrill Gorcunov wrote: > Alexey reported that current PR_SET_MM_AUXV (and PR_SET_MM_MAP) overwrite > too many entries on non 64bit kernels. This is because auxv is defined > as an array of longs and in result access to AT_VECTOR_SIZE - 2 entry > is not a ty

[PATCH -tip v4 12/12] tracing: Show kretprobe unknown indicator only for kretprobe_trampoline

2021-03-21 Thread Masami Hiramatsu
ftrace shows "[unknown/kretprobe'd]" indicator all addresses in the kretprobe_trampoline, but the modified address by kretprobe should be only kretprobe_trampoline+0. Signed-off-by: Masami Hiramatsu --- kernel/trace/trace_output.c | 17 - 1 file changed, 4 insertions(+), 13 del

Re: [PATCH v9] i2c: virtio: add a virtio i2c frontend driver

2021-03-21 Thread Viresh Kumar
On 22-03-21, 21:35, Jie Deng wrote: > diff --git a/drivers/i2c/busses/i2c-virtio.c b/drivers/i2c/busses/i2c-virtio.c > new file mode 100644 > index 000..316986e > --- /dev/null > +++ b/drivers/i2c/busses/i2c-virtio.c > @@ -0,0 +1,286 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later > +/* > +

[PATCH -tip v4 09/12] kprobes: Setup instruction pointer in __kretprobe_trampoline_handler

2021-03-21 Thread Masami Hiramatsu
To simplify the stacktrace with pt_regs from kretprobe handler, set the correct return address to the instruction pointer in the pt_regs before calling kretprobe handlers. Suggested-by: Josh Poimboeuf Signed-off-by: Masami Hiramatsu --- Changes in v3: - Cast the correct_ret_addr to unsigned l

[PATCH -tip v4 10/12] x86/kprobes: Push a fake return address at kretprobe_trampoline

2021-03-21 Thread Masami Hiramatsu
This changes x86/kretprobe stack frame on kretprobe_trampoline a bit, which now push the kretprobe_trampoline as a fake return address at the bottom of the stack frame. With this fix, the ORC unwinder will see the kretprobe_trampoline as a return address. Signed-off-by: Masami Hiramatsu Suggested

[PATCH -tip v4 08/12] arm: kprobes: Make a space for regs->ARM_pc at kretprobe_trampoline

2021-03-21 Thread Masami Hiramatsu
Change kretprobe_trampoline to make a space for regs->ARM_pc so that kretprobe_trampoline_handler can call instruction_pointer_set() safely. Signed-off-by: Masami Hiramatsu --- arch/arm/probes/kprobes/core.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/probes/kprobes/core.c

Re: [PATCH v7 1/3] dmaengine: ptdma: Initial driver for the AMD PTDMA

2021-03-21 Thread Sanjay R Mehta
On 3/22/2021 11:34 AM, Vinod Koul wrote: > [CAUTION: External Email] > > On 18-03-21, 16:16, Sanjay R Mehta wrote: +#include +#include +#include +#include +#include +#include +#include +#include +#include >>> >>> why do you need sched.h here

[PATCH -tip v4 07/12] ia64: Add instruction_pointer_set() API

2021-03-21 Thread Masami Hiramatsu
Add instruction_pointer_set() API for ia64. Signed-off-by: Masami Hiramatsu --- Changes in v4: - Make the API macro for avoiding a build error. --- arch/ia64/include/asm/ptrace.h |5 + 1 file changed, 5 insertions(+) diff --git a/arch/ia64/include/asm/ptrace.h b/arch/ia64/include/a

[PATCH -tip v4 06/12] ARC: Add instruction_pointer_set() API

2021-03-21 Thread Masami Hiramatsu
Add instruction_pointer_set() API for arc. Signed-off-by: Masami Hiramatsu --- arch/arc/include/asm/ptrace.h |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arc/include/asm/ptrace.h b/arch/arc/include/asm/ptrace.h index 4c3c9be5bd16..cca8d6583e31 100644 --- a/arch/arc/include/as

[PATCH -tip v4 05/12] x86/kprobes: Add UNWIND_HINT_FUNC on kretprobe_trampoline code

2021-03-21 Thread Masami Hiramatsu
From: Josh Poimboeuf Add UNWIND_HINT_FUNC on kretporbe_trampoline code so that ORC information is generated on the kretprobe_trampoline correctly. Note that when the CONFIG_FRAME_POINTER=y, since the kretprobe_trampoline skips updating frame pointer, the stack frame of the kretprobe_trampoline s

Re: [Linuxarm] Re: [PATCH v14 07/13] iommu/smmuv3: Implement cache_invalidate

2021-03-21 Thread chenxiang (M)
Hi Eric, 在 2021/3/20 1:36, Auger Eric 写道: Hi Chenxiang, On 3/4/21 8:55 AM, chenxiang (M) wrote: Hi Eric, 在 2021/2/24 4:56, Eric Auger 写道: Implement domain-selective, pasid selective and page-selective IOTLB invalidations. Signed-off-by: Eric Auger --- v13 -> v14: - Add domain invalidat

[PATCH -tip v4 04/12] kprobes: Add kretprobe_find_ret_addr() for searching return address

2021-03-21 Thread Masami Hiramatsu
Add kretprobe_find_ret_addr() for searching correct return address from kretprobe instance list. Signed-off-by: Masami Hiramatsu --- Changes in v3: - Remove generic stacktrace fixup. Instead, it should be solved in each unwinder. This just provide the generic interface. Changes in v2: -

linux-next: manual merge of the akpm tree with the arm64 tree

2021-03-21 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm tree got a conflict in: arch/arm64/mm/mmu.c between commit: 87143f404f33 ("arm64: mm: use XN table mapping attributes for the linear region") from the arm64 tree and commit: 0a2634348ef8 ("set_memory: allow querying whether set_direct_map_*(

[PATCH -tip v4 03/12] kprobes: treewide: Remove trampoline_address from kretprobe_trampoline_handler()

2021-03-21 Thread Masami Hiramatsu
Remove trampoline_address from kretprobe_trampoline_handler(). Instead of passing the address, kretprobe_trampoline_handler() can use new kretprobe_trampoline_addr(). Signed-off-by: Masami Hiramatsu --- Changes in v3: - Remove wrong kretprobe_trampoline declaration from arch/x86/include/

Re: [PATCH net-next v2 2/2] net: ipa: fix IPA validation

2021-03-21 Thread Leon Romanovsky
On Sun, Mar 21, 2021 at 12:19:02PM -0500, Alex Elder wrote: > On 3/21/21 8:49 AM, Leon Romanovsky wrote: > > On Sun, Mar 21, 2021 at 08:21:24AM -0500, Alex Elder wrote: > >> On 3/21/21 3:21 AM, Leon Romanovsky wrote: > >>> On Sat, Mar 20, 2021 at 09:17:29AM -0500, Alex Elder wrote: > There are

[PATCH -tip v4 02/12] kprobes: treewide: Replace arch_deref_entry_point() with dereference_function_descriptor()

2021-03-21 Thread Masami Hiramatsu
Replace arch_deref_entry_point() with dereference_function_descriptor() because those are doing same thing. Signed-off-by: Masami Hiramatsu --- arch/ia64/kernel/kprobes.c|5 - arch/powerpc/kernel/kprobes.c | 11 --- include/linux/kprobes.h |1 - kernel/kprobes.c

[PATCH -tip v4 00/12] kprobes: Fix stacktrace with kretprobes on x86

2021-03-21 Thread Masami Hiramatsu
Hello, Here is the 4th version of the series to fix the stacktrace with kretprobe on x86. After merging this, I'll fix other architectures. The previous version is; https://lore.kernel.org/bpf/161615650355.306069.17260992641363840330.stgit@devnote2/ This version fixes some build warnings/errors

[PATCH -tip v4 01/12] ia64: kprobes: Fix to pass correct trampoline address to the handler

2021-03-21 Thread Masami Hiramatsu
Commit e792ff804f49 ("ia64: kprobes: Use generic kretprobe trampoline handler") missed to pass the wrong trampoline address (it passes the descriptor address instead of function entry address). This fixes it to pass correct trampoline address to __kretprobe_trampoline_handler(). This also changes

[PATCH] xfs: Fix a typo

2021-03-21 Thread Bhaskar Chowdhury
s/strutures/structures/ Signed-off-by: Bhaskar Chowdhury --- fs/xfs/xfs_aops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c index b4186d666157..1cc7c36d98e9 100644 --- a/fs/xfs/xfs_aops.c +++ b/fs/xfs/xfs_aops.c @@ -158,7 +158,7 @@ x

[PATCH -tip v3 00/12] kprobes: Fix stacktrace with kretprobes on x86

2021-03-21 Thread Masami Hiramatsu
Hello, Here is the 4th version of the series to fix the stacktrace with kretprobe on x86. After merging this, I'll fix other architectures. The previous version is; https://lore.kernel.org/bpf/161615650355.306069.17260992641363840330.stgit@devnote2/ This version fixes some build warnings/errors

[PATCH] scsi: bnx2fc: Fix a typo

2021-03-21 Thread Bhaskar Chowdhury
s/struture/structure/ Signed-off-by: Bhaskar Chowdhury --- drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c index 16bb6d2f98de..8863a74e6c57 100644 --- a/drivers/scsi/bnx

[PATCH] net: ethernet: Fix a typo

2021-03-21 Thread Bhaskar Chowdhury
s/datastruture/"data structure"/ Signed-off-by: Bhaskar Chowdhury --- drivers/net/ethernet/mediatek/mtk_eth_soc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.h b/drivers/net/ethernet/mediatek/mtk_eth_soc.h index fd3cec8f06ba..7

[PATCH] liquidio: Fix a typo

2021-03-21 Thread Bhaskar Chowdhury
s/struture/structure/ Signed-off-by: Bhaskar Chowdhury --- drivers/net/ethernet/cavium/liquidio/octeon_device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cavium/liquidio/octeon_device.h b/drivers/net/ethernet/cavium/liquidio/octeon_device.h index

[PATCH] IB/hfi1: Fix a typo

2021-03-21 Thread Bhaskar Chowdhury
s/struture/structure/ Signed-off-by: Bhaskar Chowdhury --- drivers/infiniband/hw/hfi1/iowait.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/hfi1/iowait.h b/drivers/infiniband/hw/hfi1/iowait.h index d580aa17ae37..377e00a109c2 100644 --- a/drivers/in

[PATCH] drm/msm/dpu: Fix a typo

2021-03-21 Thread Bhaskar Chowdhury
s/struture/structure/ Signed-off-by: Bhaskar Chowdhury --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_mdss.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_mdss.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_mdss.h index 09a3fb3e89f5..bb9ceadeb0bb

[RFC PATCH] arm64: dts: allwinner: a64/h5: Add CPU idle states

2021-03-21 Thread Samuel Holland
Powering off idle CPUs saves about 33 mW compared to using WFI only. Additional power savings are possible by idling the L2 and downclocking the cluster when all CPUs are idle. Entry and exit latency were measured using a logic analyzer, with GPIO pins toggled in Linux after the calls to trace_cpu

[PATCH] s390/kernel: Fix a typo

2021-03-21 Thread Bhaskar Chowdhury
s/struture/structure/ Signed-off-by: Bhaskar Chowdhury --- arch/s390/kernel/os_info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/s390/kernel/os_info.c b/arch/s390/kernel/os_info.c index 0a5e4bafb6ad..5a7420b23aa8 100644 --- a/arch/s390/kernel/os_info.c +++ b/arch/

Re: [PATCH v14 05/13] iommu/smmuv3: Implement attach/detach_pasid_table

2021-03-21 Thread Keqian Zhu
Hi Eric, On 2021/3/19 21:15, Auger Eric wrote: > Hi Keqian, > > On 3/2/21 9:35 AM, Keqian Zhu wrote: >> Hi Eric, >> >> On 2021/2/24 4:56, Eric Auger wrote: >>> On attach_pasid_table() we program STE S1 related info set >>> by the guest into the actual physical STEs. At minimum >>> we need to prog

linux-next: build warnings after merge of the cifsd tree

2021-03-21 Thread Stephen Rothwell
Hi all, After merging the cifsd tree, today's linux-next build (htmldocs) produced these warnings: Documentation/filesystems/cifs/cifsd.rst:13: WARNING: Inline substitution_reference start-string without end-string. Documentation/filesystems/cifs/cifsd.rst:14: WARNING: Block quote ends without

[PATCH] docs: powerpc: Fix a typo

2021-03-21 Thread Bhaskar Chowdhury
s/struture/structure/ Signed-off-by: Bhaskar Chowdhury --- Documentation/powerpc/firmware-assisted-dump.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/powerpc/firmware-assisted-dump.rst b/Documentation/powerpc/firmware-assisted-dump.rst index 20ea8cdee0a

Re: [PATCH v4 00/11] KVM: x86/pmu: Guest Architectural LBR Enabling

2021-03-21 Thread Xu, Like
Hi, do we have any comments on this patch set? On 2021/3/14 23:52, Like Xu wrote: Hi geniuses, Please help review the new version of Arch LBR enabling patch set. The Architectural Last Branch Records (LBRs) is publiced in the 319433-040 release of Intel Architecture Instruction Set Extensions

Re: [PATCH 5.10 267/290] powerpc: Fix missing declaration of [en/dis]able_kernel_vsx()

2021-03-21 Thread Christophe Leroy
Le 15/03/2021 à 15:15, Geert Uytterhoeven a écrit : On Mon, Mar 15, 2021 at 3:04 PM wrote: From: Greg Kroah-Hartman From: Christophe Leroy commit bd73758803c2eedc037c2268b65a19542a832594 upstream. Add stub instances of enable_kernel_vsx() and disable_kernel_vsx() when CONFIG_VSX is not

[PATCH v4 RESEND 5/5] perf/x86: Move ARCH_LBR_CTL_MASK definition to include/asm/msr-index.h

2021-03-21 Thread Like Xu
The ARCH_LBR_CTL_MASK will be reused for Arch LBR emulation in the KVM. Signed-off-by: Like Xu --- arch/x86/events/intel/lbr.c | 2 -- arch/x86/include/asm/msr-index.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/events/intel/lbr.c b/arch/x86/events/intel/lb

[PATCH v4 RESEND 0/5] x86: The perf/x86 changes to support guest Arch LBR

2021-03-21 Thread Like Xu
Hi Peter, Please help review these minor perf/x86 changes in this patch set, and we need some of them to support Guest Architectural LBR in KVM. If you are interested in the KVM emulation, please check https://lore.kernel.org/kvm/20210314155225.206661-1-like...@linux.intel.com/ Please check more

[PATCH v4 RESEND 1/5] perf/x86/intel: Fix the comment about guest LBR support on KVM

2021-03-21 Thread Like Xu
Starting from v5.12, KVM reports guest LBR and extra_regs support when the host has relevant support. Just delete this part of the comment and fix a typo incidentally. Signed-off-by: Like Xu Reviewed-by: Kan Liang Reviewed-by: Andi Kleen --- arch/x86/events/intel/core.c | 3 +-- 1 file changed

[PATCH v4 RESEND 4/5] perf/x86/lbr: Skip checking for the existence of LBR_TOS for Arch LBR

2021-03-21 Thread Like Xu
The Architecture LBR does not have MSR_LBR_TOS (0x01c9). KVM will generate #GP for this MSR access, thereby preventing the initialization of the guest LBR. Fixes: 47125db27e47 ("perf/x86/intel/lbr: Support Architectural LBR") Signed-off-by: Like Xu Reviewed-by: Kan Liang Reviewed-by: Andi Kl

[PATCH v4 RESEND 2/5] perf/x86/lbr: Simplify the exposure check for the LBR_INFO registers

2021-03-21 Thread Like Xu
If the platform supports LBR_INFO register, the x86_pmu.lbr_info will be assigned in intel_pmu_?_lbr_init_?() and it's safe to expose LBR_INFO in the x86_perf_get_lbr() directly, instead of relying on lbr_format check. Also Architectural LBR has IA32_LBR_x_INFO instead of LBR_FORMAT_INFO_x to hold

[PATCH v4 RESEND 3/5] perf/x86/lbr: Move cpuc->lbr_xsave allocation out of sleeping region

2021-03-21 Thread Like Xu
If the kernel is compiled with the CONFIG_LOCKDEP option, the conditional might_sleep_if() deep in kmem_cache_alloc() will generate the following trace, and potentially cause a deadlock when another LBR event is added: [ 243.115549] BUG: sleeping function called from invalid context at include/l

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

2021-03-21 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: arch/x86/mm/init_64.c between commit: d9f6e12fb0b7 ("x86: Fix various typos in comments") from the tip tree and commit: 68f7bf6e7e98 ("x86/vmemmap: drop handling of 4K unaligned vmemmap range") from the akpm-c

Re: [PATCH v1 14/14] mm: multigenerational lru: documentation

2021-03-21 Thread Yu Zhao
On Fri, Mar 19, 2021 at 05:31:20PM +0800, Alex Shi wrote: > > > 在 2021/3/13 下午3:57, Yu Zhao 写道: > > +Recipes > > +--- > > +:Android on ARMv8.1+: ``X=4``, ``N=0`` > > + > > +:Android on pre-ARMv8.1 CPUs: Not recommended due to the lack of > > + ``ARM64_HW_AFDBM`` > > + > > +:Laptops running Ch

[PATCH] usb: cdnsp: Fixes issue with Configure Endpoint command

2021-03-21 Thread Pawel Laszczak
From: Pawel Laszczak Patch adds flag EP_UNCONFIGURED to detect whether endpoint was unconfigured. This flag is set in cdnsp_reset_device after Reset Device command. Among others this command disables all non control endpoints. Flag is used in cdnsp_gadget_ep_disable to protect controller against

Re: [PATCH v4 3/5] RISC-V: Initial DTS for Microchip ICICLE board

2021-03-21 Thread Bin Meng
On Thu, Mar 4, 2021 at 8:48 PM Atish Patra wrote: > > Add initial DTS for Microchip ICICLE board having only > essential devices (clocks, sdhci, ethernet, serial, etc). > The device tree is based on the U-Boot patch. > > https://patchwork.ozlabs.org/project/uboot/patch/20201110103414.10142-6-padma

linux-next: build warning after merge of the net-next tree

2021-03-21 Thread Stephen Rothwell
Hi all, After merging the net-next tree, today's linux-next build (htmldocs) produced this warning: include/linux/netdevice.h:2191: warning: Function parameter or member 'dev_refcnt' not described in 'net_device' Introduced by commit 919067cc845f ("net: add CONFIG_PCPU_DEV_REFCNT") -- Chee

Re: [PATCH v7 1/3] dmaengine: ptdma: Initial driver for the AMD PTDMA

2021-03-21 Thread Vinod Koul
On 18-03-21, 16:16, Sanjay R Mehta wrote: > >> +#include > >> +#include > >> +#include > >> +#include > >> +#include > >> +#include > >> +#include > >> +#include > >> +#include > > > > why do you need sched.h here? > > > >> + > >> +#include "ptdma.h" > >> + > >> +/* Ever-increasing value

[PATCH V2] KVM: x86: A typo fix

2021-03-21 Thread Bhaskar Chowdhury
s/resued/reused/ Signed-off-by: Bhaskar Chowdhury --- Changes from V1: As Ingo found the correct word for replacement, so incorporating. arch/x86/include/asm/kvm_host.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/as

Re: BUG: Out of bounds read in hci_le_ext_adv_report_evt()

2021-03-21 Thread Luiz Augusto von Dentz
Hi Emil, On Sun, Mar 21, 2021 at 4:23 PM Emil Lenngren wrote: > > Hi, > > Den mån 22 mars 2021 kl 00:01 skrev Luiz Augusto von Dentz > : > > Or we do something like > > https://lore.kernel.org/linux-bluetooth/20201024002251.1389267-1-luiz.de...@gmail.com/, > > that said the reason we didn't appli

[PATCH] Bluetooth: verify AMP hci_chan before amp_destroy

2021-03-21 Thread Archie Pusaka
From: Archie Pusaka hci_chan can be created in 2 places: hci_loglink_complete_evt() if it is an AMP hci_chan, or l2cap_conn_add() otherwise. In theory, Only AMP hci_chan should be removed by a call to hci_disconn_loglink_complete_evt(). However, the controller might mess up, call that function, a

[PATCH v5 6/6] KVM: arm64: GICv4.1: Give a chance to save VLPI state

2021-03-21 Thread Shenming Lu
Before GICv4.1, we don't have direct access to the VLPI state. So we simply let it fail early when encountering any VLPI in saving. But now we don't have to return -EACCES directly if on GICv4.1. Let’s change the hard code and give a chance to save the VLPI state (and preserve the UAPI). Signed-o

[PATCH v5 2/6] irqchip/gic-v3-its: Drop the setting of PTZ altogether

2021-03-21 Thread Shenming Lu
GICv4.1 gives a way to get the VLPI state, which needs to map the vPE first, and after the state read, we may remap the vPE back while the VPT is not empty. So we can't assume that the VPT is empty at the first map. Besides, the optimization of PTZ is probably limited since the HW should be fairly

[PATCH v5 4/6] KVM: arm64: GICv4.1: Try to save VLPI state in save_pending_tables

2021-03-21 Thread Shenming Lu
After pausing all vCPUs and devices capable of interrupting, in order to save the states of all interrupts, besides flushing the states in kvm’s vgic, we also try to flush the states of VLPIs in the virtual pending tables into guest RAM, but we need to have GICv4.1 and safely unmap the vPEs first.

[PATCH v5 3/6] KVM: arm64: GICv4.1: Add function to get VLPI state

2021-03-21 Thread Shenming Lu
With GICv4.1 and the vPE unmapped, which indicates the invalidation of any VPT caches associated with the vPE, we can get the VLPI state by peeking at the VPT. So we add a function for this. Signed-off-by: Shenming Lu --- arch/arm64/kvm/vgic/vgic-v4.c | 19 +++ arch/arm64/kvm/vgi

[PATCH v5 1/6] irqchip/gic-v3-its: Add a cache invalidation right after vPE unmapping

2021-03-21 Thread Shenming Lu
From: Marc Zyngier Since there may be a direct read from the CPU side to the VPT after unmapping the vPE, we add a cache coherency maintenance at the end of its_vpe_irq_domain_deactivate() to ensure the validity of the VPT read later. Signed-off-by: Marc Zyngier Signed-off-by: Shenming Lu ---

[PATCH v5 5/6] KVM: arm64: GICv4.1: Restore VLPI pending state to physical side

2021-03-21 Thread Shenming Lu
From: Zenghui Yu When setting the forwarding path of a VLPI (switch to the HW mode), we can also transfer the pending state from irq->pending_latch to VPT (especially in migration, the pending states of VLPIs are restored into kvm’s vgic first). And we currently send "INT+VSYNC" to trigger a VLPI

RE: linux-next: Fixes tag needs some work in the usb-chipidea-fixes tree

2021-03-21 Thread Pawel Laszczak
Hi Stephen, I've send the new version Thanks, > >Hi all, > >In commit > > 67a788c7c3e7 ("usb: cdnsp: Fixes issue with dequeuing requests after > disabling endpoint") > >Fixes tag > > Fixes: commit 3d82904559f4 ("usb: cdnsp: cdns3 Add main part of Cadence > USBSSP DRD Driver") > >has these pr

[PATCH v5 0/6] KVM: arm64: Add VLPI migration support on GICv4.1

2021-03-21 Thread Shenming Lu
Hi, In GICv4.1, migration has been supported except for (directly-injected) VLPI. And GICv4.1 Spec explicitly gives a way to get the VLPI's pending state (which was crucially missing in GICv4.0). So we make VLPI migration capable on GICv4.1 in this series. In order to support VLPI migration, we n

[PATCH] Bluetooth: Set CONF_NOT_COMPLETE as l2cap_chan default

2021-03-21 Thread Archie Pusaka
From: Archie Pusaka Currently l2cap_chan_set_defaults() reset chan->conf_state to zero. However, there is a flag CONF_NOT_COMPLETE which is set when creating the l2cap_chan. It is suggested that the flag should be cleared when l2cap_chan is ready, but when l2cap_chan_set_defaults() is called, l2c

Re: [PATCH 2/3] arm64: dts: qcom: sm8150: add iommus to qups

2021-03-21 Thread Vinod Koul
On 20-03-21, 17:16, Caleb Connolly wrote: > Hi Vinod, > > On 16/03/2021 6:15 am, Vinod Koul wrote: > > On 10-03-21, 16:31, Caleb Connolly wrote: > >> Hook up the SMMU for doing DMA over i2c. Some peripherals like > >> touchscreens easily exceed 32-bytes per transfer, causing errors and > >> lockup

[PATCH] Bluetooth: check for zapped sk before connecting

2021-03-21 Thread Archie Pusaka
From: Archie Pusaka There is a possibility of receiving a zapped sock on l2cap_sock_connect(). This could lead to interesting crashes, one such case is tearing down an already tore l2cap_sock as is happened with this call trace: __dump_stack lib/dump_stack.c:15 [inline] dump_stack+0xc4/0x118 lib

Re: GTE - The hardware timestamping engine

2021-03-21 Thread Kent Gibson
On Sat, Mar 20, 2021 at 12:56:36PM +0100, Linus Walleij wrote: > Hi Dipen, > > thanks for your mail! > > I involved some other kernel people to get some discussion. > I think Kent Gibson can be of great help because he is using > GPIOs with high precision. > Actually I just extended the cdev uA

linux-next: build warning after merge of the amdgpu tree

2021-03-21 Thread Stephen Rothwell
Hi all, After merging the amdgpu tree, today's linux-next build (htmldocs) produced this warning: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h:405: warning: Function parameter or member 'dmcub_trace_event_en' not described in 'amdgpu_display_manager' Introduced by commit 4057828a1283 (

Re: [PATCH v4 0/3] Fix pinctrl-single pcs_pin_dbg_show()

2021-03-21 Thread Drew Fustini
On Fri, Mar 19, 2021 at 05:21:30PM +0200, Hanna Hawa wrote: > These patches fix the pcs_pin_dbg_show() function for the scenario where > a single register controls multiple pins (i.e. bits_per_mux is not zero) > Additionally, the common formula is moved to a separate function to > allow reuse. > >

[PATCH 3/4] spi: mediatek: add mtk_spi_compatible support

2021-03-21 Thread Leilk Liu
this patch adds max_fifo_size and must_rx compat support. Signed-off-by: Leilk Liu --- drivers/spi/spi-slave-mt27xx.c | 28 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/drivers/spi/spi-slave-mt27xx.c b/drivers/spi/spi-slave-mt27xx.c index 44edaa3604

[PATCH 4/4] spi: mediatek: add mt8195 spi slave support

2021-03-21 Thread Leilk Liu
this patch adds mt8195 spi slave compatible support. Signed-off-by: Leilk Liu --- drivers/spi/spi-slave-mt27xx.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/spi/spi-slave-mt27xx.c b/drivers/spi/spi-slave-mt27xx.c index 7e6fadc88cef..f199a6c4738a 100644 --- a/drivers/spi/s

[PATCH 0/4] Add Mediatek MT8195 SPI driver support

2021-03-21 Thread Leilk Liu
This series are based on spi/for-next, and provide 4 patches to add MT8195 spi support. Leilk Liu (4): spi: update spi master bindings for MT8195 SoC spi: update spi slave bindings for MT8195 SoC spi: mediatek: add mtk_spi_compatible support spi: mediatek: add mt8195 spi slave support .

[PATCH 2/4] spi: update spi slave bindings for MT8195 SoC

2021-03-21 Thread Leilk Liu
Add a DT binding documentation for the MT8195 soc. Signed-off-by: Leilk Liu --- Documentation/devicetree/bindings/spi/spi-slave-mt27xx.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/spi-slave-mt27xx.txt b/Documentation/devicetree/bindings/spi/spi-s

[PATCH 1/4] spi: update spi master bindings for MT8195 SoC

2021-03-21 Thread Leilk Liu
Add a DT binding documentation for the MT8195 soc. Signed-off-by: leilk.liu --- Documentation/devicetree/bindings/spi/spi-mt65xx.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/spi-mt65xx.txt b/Documentation/devicetree/bindings/spi/spi-mt65xx.txt in

RE: [PATCH v3] exfat: speed up iterate/lookup by fixing start point of traversing cluster chain

2021-03-21 Thread Sungjong Seo
> When directory iterate and lookup is called, there's a buggy rewinding of > start point for traversing cluster chain to the parent directory entry's > first cluster. This caused repeated cluster chain traversing from the > first entry of the parent directory that would show worse performance if >

Re: [PATCH v11 6/6] powerpc: Book3S 64-bit outline-only KASAN support

2021-03-21 Thread Daniel Axtens
Balbir Singh writes: > On Mon, Mar 22, 2021 at 11:55:08AM +1100, Daniel Axtens wrote: >> Hi Balbir, >> >> > Could you highlight the changes from >> > https://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170729140901.5887-1-bsinghar...@gmail.com/? >> > >> > Feel free to use my signed-off-by

[PATCH v2] usb: cdnsp: Fixes issue with dequeuing requests after disabling endpoint

2021-03-21 Thread Pawel Laszczak
From: Pawel Laszczak Patch fixes the bug: BUG: kernel NULL pointer dereference, address: 0050 PGD 0 P4D 0 Oops: 0002 [#1] SMP PTI CPU: 0 PID: 4137 Comm: uvc-gadget Tainted: G OE 5.10.0-next-20201214+ #3 Hardware name: ASUS All Series/Q87T, BIOS 0908 07/22/2014 RIP: 0010

Re: [RFC PATCH v2 00/11] bfq: introduce bfq.ioprio for cgroup

2021-03-21 Thread brookxu
Paolo Valente wrote on 2021/3/21 19:04: > > >> Il giorno 12 mar 2021, alle ore 12:08, brookxu ha >> scritto: >> >> From: Chunguang Xu >> > > Hi Chunguang, > >> Tasks in the production environment can be roughly divided into >> three categories: emergency tasks, ordinary tasks and offline

Re: [selftests] e48d82b67a: BUG_TestSlub_RZ_alloc(Not_tainted):Redzone_overwritten

2021-03-21 Thread Oliver Sang
Hi Vlastimil, On Wed, Mar 17, 2021 at 12:29:40PM +0100, Vlastimil Babka wrote: > On 3/17/21 9:36 AM, kernel test robot wrote: > > > > > > Greeting, > > > > FYI, we noticed the following commit (built with gcc-9): > > > > commit: e48d82b67a2b760eedf7b95ca15f41267496386c ("[PATCH 1/2] selftests:

[PATCH] drm/imx: ipuv3-plane: Remove two unnecessary export symbols

2021-03-21 Thread Liu Ying
The ipu_plane_disable_deferred() and ipu_plane_assign_pre() functions have not been used by any other modules but only imxdrm itself internally since imxdrm and imx-ipuv3-crtc were merged in one module. So, this patch removes export symbols for the two functions. Fixes: 3d1df96ad468 (drm/imx: merg

[PATCH v9] i2c: virtio: add a virtio i2c frontend driver

2021-03-21 Thread Jie Deng
Add an I2C bus driver for virtio para-virtualization. The controller can be emulated by the backend driver in any device model software by following the virtio protocol. The device specification can be found on https://lists.oasis-open.org/archives/virtio-comment/202101/msg8.html. By followi

  1   2   3   4   5   6   7   >