[PATCH v4 04/13] mm/mempolicy: allow preferred code to take a nodemask

2021-03-16 Thread Feng Tang
From: Dave Hansen Create a helper function (mpol_new_preferred_many()) which is usable both by the old, single-node MPOL_PREFERRED and the new MPOL_PREFERRED_MANY. Enforce the old single-node MPOL_PREFERRED behavior in the "new" version of mpol_new_preferred() which calls mpol_new_preferred_many

[PATCH v4 05/13] mm/mempolicy: refactor rebind code for PREFERRED_MANY

2021-03-16 Thread Feng Tang
From: Dave Hansen Again, this extracts the "only one node must be set" behavior of MPOL_PREFERRED. It retains virtually all of the existing code so it can be used by MPOL_PREFERRED_MANY as well. v2: Fixed typos in commit message. (Ben) Merged bits from other patches. (Ben) annotate mpol_rebind_

[PATCH v4 02/13] mm/mempolicy: convert single preferred_node to full nodemask

2021-03-16 Thread Feng Tang
From: Dave Hansen The NUMA APIs currently allow passing in a "preferred node" as a single bit set in a nodemask. If more than one bit it set, bits after the first are ignored. Internally, this is implemented as a single integer: mempolicy->preferred_node. This single node is generally OK for l

[PATCH v4 00/13] Introduced multi-preference mempolicy

2021-03-16 Thread Feng Tang
This patch series introduces the concept of the MPOL_PREFERRED_MANY mempolicy. This mempolicy mode can be used with either the set_mempolicy(2) or mbind(2) interfaces. Like the MPOL_PREFERRED interface, it allows an application to set a preference for nodes which will fulfil memory allocation reque

[PATCH v4 01/13] mm/mempolicy: Add comment for missing LOCAL

2021-03-16 Thread Feng Tang
From: Ben Widawsky MPOL_LOCAL is a bit weird because it is simply a different name for an existing behavior (preferred policy with no node mask). It has been this way since it was added here: commit 479e2802d09f ("mm: mempolicy: Make MPOL_LOCAL a real policy") It is so similar to MPOL_PREFERRED

Re: [PATCH] scsi: ufs-pci: Add support for Intel LKF

2021-03-16 Thread Martin K. Petersen
Adrian, > Add PCI ID and callbacks to support Intel LKF. Applied to 5.13/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering

[PATCH] rxrpc: rxkad: replace if (cond) BUG() with BUG_ON()

2021-03-16 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./net/rxrpc/rxkad.c:1140:2-5: WARNING: Use BUG_ON instead of if condition followed by BUG. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- net/rxrpc/rxkad.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/net/rxrpc/rxkad

Re: [PATCH] powerpc: arch/powerpc/kernel/setup_64.c - cleanup warnings

2021-03-16 Thread heying (H)
Thank you for your reply. 在 2021/3/17 11:04, Daniel Axtens 写道: Hi He Ying, Thank you for this patch. I'm not sure what the precise rules for Fixes are, but I wonder if this should have: Fixes: 9a32a7e78bd0 ("powerpc/64s: flush L1D after user accesses") Fixes: f79643787e0a ("powerpc/64s: flus

Re: [PATCH v1 09/14] mm: multigenerational lru: mm_struct list

2021-03-16 Thread Huang, Ying
Yu Zhao writes: > On Tue, Mar 16, 2021 at 02:44:31PM +0800, Huang, Ying wrote: >> Yu Zhao writes: >> >> > On Tue, Mar 16, 2021 at 10:07:36AM +0800, Huang, Ying wrote: >> >> Rik van Riel writes: >> >> >> >> > On Sat, 2021-03-13 at 00:57 -0700, Yu Zhao wrote: >> >> > >> >> >> +/* >> >> >> + * A

Re: [PATCH 2/4] clocksource: riscv: Using CPUHP_AP_ONLINE_DYN

2021-03-16 Thread Palmer Dabbelt
On Mon, 01 Mar 2021 06:28:20 PST (-0800), guo...@kernel.org wrote: From: Guo Ren Remove RISC-V clocksource custom definitions in hotplug.h: - CPUHP_AP_RISCV_TIMER_STARTING For coding convention. Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Arnd Bergmann Cc: Linus Torvalds Cc: Anup Patel C

Re: [PATCH 1/4] irqchip: riscv: Using CPUHP_AP_ONLINE_DYN

2021-03-16 Thread Palmer Dabbelt
On Mon, 01 Mar 2021 06:28:19 PST (-0800), guo...@kernel.org wrote: From: Guo Ren Remove RISC-V irqchip custom definitions in hotplug.h: - CPUHP_AP_IRQ_RISCV_STARTING - CPUHP_AP_IRQ_SIFIVE_PLIC_STARTING For coding convention. Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Arnd Bergmann Cc: Li

Re: [PATCH] riscv: fix bugon.cocci warnings

2021-03-16 Thread Palmer Dabbelt
On Sun, 28 Feb 2021 03:10:22 PST (-0800), julia.law...@inria.fr wrote: From: kernel test robot Use BUG_ON instead of a if condition followed by BUG. Generated by: scripts/coccinelle/misc/bugon.cocci Fixes: c22b0bcb1dd0 ("riscv: Add kprobes supported") CC: Guo Ren Reported-by: kernel test rob

[PATCH] mm: Typo fix in the file util.c

2021-03-16 Thread Bhaskar Chowdhury
s/condtion/condition/ Signed-off-by: Bhaskar Chowdhury --- mm/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/util.c b/mm/util.c index 54870226cea6..f85da35b50eb 100644 --- a/mm/util.c +++ b/mm/util.c @@ -775,7 +775,7 @@ int overcommit_policy_handler(struct ctl_t

Re: [PATCH 5/9] objtool: Rework rebuild_reloc logic

2021-03-16 Thread Josh Poimboeuf
On Fri, Mar 12, 2021 at 06:16:18PM +0100, Peter Zijlstra wrote: > --- a/tools/objtool/elf.c > +++ b/tools/objtool/elf.c > @@ -479,6 +479,8 @@ void elf_add_reloc(struct elf *elf, stru > > list_add_tail(&reloc->list, &sec->reloc_list); > elf_hash_add(elf->reloc_hash, &reloc->hash, reloc

Re: [PATCH][next] scsi: mpt3sas: Replace unnecessary dynamic allocation with a static one

2021-03-16 Thread Martin K. Petersen
Gustavo, > Dynamic memory allocation isn't actually needed and it can be replaced > by statically allocating memory for struct object io_unit_pg3 with 36 > hardcoded entries for its GPIOVal array. Applied to 5.13/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering

[PATCH v3] Staging: rtl8192u: fixed a whitespace coding style issue

2021-03-16 Thread zhaoxiao
Removed additional whitespaces in the r8192U_wx.c file. Signed-off-by: zhaoxiao --- v3: add the specify a description of why the patch is needed. drivers/staging/rtl8192u/r8192U_wx.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_wx.c b/drivers/staging/r

[PATCH] scsi: ufs: Add selector to ufshcd_query_flag* APIs

2021-03-16 Thread Daejun Park
Unlike other query APIs in UFS, ufshcd_query_flag has a fixed selector as 0. This patch allows ufshcd_query_flag API to choose selector value by parameter. Signed-off-by: Daejun Park --- drivers/scsi/ufs/ufs-sysfs.c | 2 +- drivers/scsi/ufs/ufshcd.c| 29 + driver

Re: [PATCH v2] scsi: ufs: sysfs: Print string descriptors as raw data

2021-03-16 Thread Bart Van Assche
On 2/15/21 9:40 AM, Arthur Simchaev wrote: > -#define UFS_STRING_DESCRIPTOR(_name, _pname) \ > +#define UFS_STRING_DESCRIPTOR(_name, _pname, _is_ascii) \ > static ssize_t _name##_show(struct device *dev, > \ > struct device_a

[PATCH v2] sched: replace if (cond) BUG() with BUG_ON()

2021-03-16 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./kernel/sched/core.c:8039:2-5: WARNING: Use BUG_ON instead of if condition followed by BUG. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- Changes in v2: - Replace BUG with BUG_ON. kernel/sched/core.c | 3 +-- 1 file changed, 1 insertion(+)

Re: [PATCH 0/3] AM64: Add SERDES DT bindings

2021-03-16 Thread Kishon Vijay Abraham I
Hi Vinod, On 10/03/21 4:57 pm, Kishon Vijay Abraham I wrote: > Patch series adds device tree bindings to support SERDES in AM64 > platform. > > This is split from [1] since this binding is also required for AM64 > USB DT patches to be merged. > > Vinod, > > Once the 1st patch of the series is r

[PATCH] kernel: Fix a typo in the file up.c

2021-03-16 Thread Bhaskar Chowdhury
s/condtions/conditions/ Signed-off-by: Bhaskar Chowdhury --- Adding Andrew in the to list, becasue this file has no maintainer attached kernel/up.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/up.c b/kernel/up.c index c6f323dcd45b..1b9b135e77dd 100644 --- a/kern

Re: v3: scsi: ufshcd: use a macro for UFS versions

2021-03-16 Thread Martin K. Petersen
Caleb, > When using a device with UFS > 2.1 the error "invalid UFS version" is > misleadingly printed. There was a patch for this almost a year > ago to which this solution was suggested. Applied to 5.13/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 4/9] objtool: Fix static_call list generation

2021-03-16 Thread Josh Poimboeuf
On Fri, Mar 12, 2021 at 06:16:17PM +0100, Peter Zijlstra wrote: > @@ -1701,6 +1706,9 @@ static int decode_sections(struct objtoo > if (ret) > return ret; > > + /* > + * Must be before add_{jump_call}_desetination. > + */ s/desetination/destination/ -- Josh

A problem of Intel IOMMU hardware ?

2021-03-16 Thread Longpeng (Mike, Cloud Infrastructure Service Product Dept.)
Hi guys, We find the Intel iommu cache (i.e. iotlb) maybe works wrong in a special situation, it would cause DMA fails or get wrong data. The reproducer (based on Alex's vfio testsuite[1]) is in attachment, it can reproduce the problem with high probability (~50%). The machine we used is: proces

[PATCH v2] sparc64: replace if (cond) BUG() with BUG_ON()

2021-03-16 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./arch/sparc/kernel/traps_64.c:419:2-5: WARNING: Use BUG_ON instead of if condition followed by BUG. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- Changes in v2: - Replace BUG with BUG_ON. arch/sparc/kernel/traps_64.c | 3 +-- 1 file change

[PATCH] ia64: hp: common: A typo fix in the file sba_iommu.c

2021-03-16 Thread Bhaskar Chowdhury
s/minium/minimum/ Signed-off-by: Bhaskar Chowdhury --- arch/ia64/hp/common/sba_iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/ia64/hp/common/sba_iommu.c b/arch/ia64/hp/common/sba_iommu.c index 9148ddbf02e5..3dcb8c35faad 100644 --- a/arch/ia64/hp/common/sba_i

Re: [PATCH v3 06/15] media: mtk-vcodec: vdec: support stateless H.264 decoding

2021-03-16 Thread Alexandre Courbot
On Tue, Mar 16, 2021 at 12:21 AM Nicolas Dufresne wrote: > > Le lundi 15 mars 2021 à 20:28 +0900, Alexandre Courbot a écrit : > > Hi Ezequiel, > > > > On Thu, Mar 4, 2021 at 6:47 AM Ezequiel Garcia > > wrote: > > > > > > Hi Alex, > > > > > > Thanks for the patch. > > > > > > On Fri, 26 Feb 2021

Re: [PATCH v3 06/15] media: mtk-vcodec: vdec: support stateless H.264 decoding

2021-03-16 Thread Alexandre Courbot
On Tue, Mar 16, 2021 at 7:08 AM Ezequiel Garcia wrote: > > Hi Alex, > > On Mon, 15 Mar 2021 at 08:28, Alexandre Courbot wrote: > > > > Hi Ezequiel, > > > > On Thu, Mar 4, 2021 at 6:47 AM Ezequiel Garcia > > wrote: > > > > > > Hi Alex, > > > > > > Thanks for the patch. > > > > > > On Fri, 26 Fe

Re: [PATCH v3 05/15] media: mtk-vcodec: vdec: support stateless API

2021-03-16 Thread Alexandre Courbot
On Tue, Mar 16, 2021 at 6:45 AM Ezequiel Garcia wrote: > > Hi Alexandre, > > On Mon, 15 Mar 2021 at 08:28, Alexandre Courbot wrote: > > > > Hi Ezequiel, thanks for the feedback! > > > > On Thu, Mar 4, 2021 at 6:30 AM Ezequiel Garcia > > wrote: > > > > > > Hello Alex, > > > > > > Thanks for the p

Re: [PATCH v2 04/11] iommu/arm-smmu-v3: Split block descriptor when start dirty log

2021-03-16 Thread Yi Sun
On 21-03-16 19:39:47, Keqian Zhu wrote: > Hi Yi, > > On 2021/3/16 17:17, Yi Sun wrote: > > On 21-03-10 17:06:07, Keqian Zhu wrote: > >> From: jiangkunkun > >> > >> Block descriptor is not a proper granule for dirty log tracking. > >> Take an extreme example, if DMA writes one byte, under 1G mappi

[PATCH v3] bpf: Fix memory leak in copy_process()

2021-03-16 Thread qiang . zhang
From: Zqiang The syzbot report a memleak follow: BUG: memory leak unreferenced object 0x888101b41d00 (size 120): comm "kworker/u4:0", pid 8, jiffies 4294944270 (age 12.780s) backtrace: [] alloc_pid+0x66/0x560 [] copy_process+0x1465/0x25e0 [] kernel_clone+0xf3/0x670 [] kern

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

2021-03-16 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-intel tree got a conflict in: drivers/gpu/drm/i915/display/intel_sprite.c between commit: 92f1d09ca4ed ("drm: Switch to %p4cc format modifier") from the drm tree and commit: 46d12f911821 ("drm/i915: migrate skl planes code new file (v5)") fro

[PATCH] media/pci: Assign value when defining variables

2021-03-16 Thread zuoqilin1
From: zuoqilin When defining variables and assigning values can be done at the same time. Signed-off-by: zuoqilin --- drivers/media/pci/pt1/pt1.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/media/pci/pt1/pt1.c b/drivers/media/pci/pt1/pt1.c index 72b191c..f

[PATCH] xen/evtchn: replace if (cond) BUG() with BUG_ON()

2021-03-16 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./drivers/xen/evtchn.c:412:2-5: WARNING: Use BUG_ON instead of if condition followed by BUG. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/xen/evtchn.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/xen/e

Re: [PATCH] powerpc: arch/powerpc/kernel/setup_64.c - cleanup warnings

2021-03-16 Thread Daniel Axtens
Hi He Ying, Thank you for this patch. I'm not sure what the precise rules for Fixes are, but I wonder if this should have: Fixes: 9a32a7e78bd0 ("powerpc/64s: flush L1D after user accesses") Fixes: f79643787e0a ("powerpc/64s: flush L1D on kernel entry") Those are the commits that added the entry

Re: [PATCH v7 2/3] block: add bdev_interposer

2021-03-16 Thread Ming Lei
On Tue, Mar 16, 2021 at 07:35:44PM +0300, Sergei Shtepa wrote: > The 03/16/2021 11:09, Ming Lei wrote: > > On Fri, Mar 12, 2021 at 06:44:54PM +0300, Sergei Shtepa wrote: > > > bdev_interposer allows to redirect bio requests to another devices. > > > > > > Signed-off-by: Sergei Shtepa > > > --- >

Re: [PATCH 5.11 000/306] 5.11.7-rc1 review

2021-03-16 Thread Ross Schmidt
On Mon, Mar 15, 2021 at 02:51:03PM +0100, gre...@linuxfoundation.org wrote: > From: Greg Kroah-Hartman > > This is the start of the stable review cycle for the 5.11.7 release. > There are 306 patches in this series, all will be posted as a response > to this one. If anyone has any issues with th

Re: [PATCH 3/4] locking/ww_mutex: Treat ww_mutex_lock() like a trylock

2021-03-16 Thread Davidlohr Bueso
On Tue, 16 Mar 2021, Waiman Long wrote: It was found that running the ww_mutex_lock-torture test produced the following lockdep splat almost immediately: [ 103.892638] == [ 103.892639] WARNING: possible circular locking dependency detected [

Re: [PATCH 5.10 000/290] 5.10.24-rc1 review

2021-03-16 Thread Ross Schmidt
On Mon, Mar 15, 2021 at 02:51:33PM +0100, gre...@linuxfoundation.org wrote: > From: Greg Kroah-Hartman > > This is the start of the stable review cycle for the 5.10.24 release. > There are 290 patches in this series, all will be posted as a response > to this one. If anyone has any issues with t

Re: [PATCH] drm: xlnx: call pm_runtime_get_sync before setting pixel clock

2021-03-16 Thread quanyang.wang
Hi Laurent, On 3/17/21 4:32 AM, Laurent Pinchart wrote: Hi Quanyang, Thank you for the patch. On Wed, Mar 10, 2021 at 12:59:45PM +0800, quanyang.w...@windriver.com wrote: From: Quanyang Wang The Runtime PM subsystem will force the device "fd4a.zynqmp-display" to enter suspend state whil

Re: [PATCH 1/2] perf/x86/intel: Fix a crash caused by zero PEBS status

2021-03-16 Thread Namhyung Kim
On Fri, Mar 12, 2021 at 05:21:37AM -0800, kan.li...@linux.intel.com wrote: > From: Kan Liang > > A repeatable crash can be triggered by the perf_fuzzer on some Haswell > system. > https://lore.kernel.org/lkml/7170d3b-c17f-1ded-52aa-cc6d9ae99...@maine.edu/ > > For some old CPUs (HSW and earlier),

Re: [PATCH v2] scsi: ufs: sysfs: Print string descriptors as raw data

2021-03-16 Thread Martin K. Petersen
Hi Arthur! > Could you please consider to take this patch? The patch needs some reviews. I suggest you repost. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 5.4 000/168] 5.4.106-rc1 review

2021-03-16 Thread Ross Schmidt
On Mon, Mar 15, 2021 at 02:53:52PM +0100, gre...@linuxfoundation.org wrote: > From: Greg Kroah-Hartman > > This is the start of the stable review cycle for the 5.4.106 release. > There are 168 patches in this series, all will be posted as a response > to this one. If anyone has any issues with t

Re: [question] Panic in dax_writeback_one

2021-03-16 Thread chenjun (AM)
在 2021/3/12 1:25, Dan Williams 写道: > On Thu, Mar 11, 2021 at 4:20 AM Matthew Wilcox wrote: >> >> On Thu, Mar 11, 2021 at 07:48:25AM +, chenjun (AM) wrote: >>> static int dax_writeback_one(struct xa_state *xas, struct dax_device >>> *dax_dev, struct address_space *mapping, void *entry) >>>

Re: [PATCH 4.19 000/120] 4.19.181-rc1 review

2021-03-16 Thread Ross Schmidt
On Mon, Mar 15, 2021 at 02:55:51PM +0100, gre...@linuxfoundation.org wrote: > From: Greg Kroah-Hartman > > This is the start of the stable review cycle for the 4.19.181 release. > There are 120 patches in this series, all will be posted as a response > to this one. If anyone has any issues with

[PATCH] drm/msm: Remove need for reiterating the compatibles

2021-03-16 Thread Bjorn Andersson
After spending a non-negligible time trying to figure out why dpu_kms_init() would dereference a NULL dpu_kms->pdev, it turns out that in addition to adding the new compatible to the msm_drv of_match_table one also need to teach add_display_components() to register the child nodes - which includes

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

2021-03-16 Thread Stephen Rothwell
Hi all, After merging the drm tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: drivers/gpu/drm/rockchip/rockchip_drm_vop.c: In function 'vop_plane_atomic_update': drivers/gpu/drm/rockchip/rockchip_drm_vop.c:882:26: warning: unused variable 'old_state' [-Wunused-var

[PATCH] sparc64: replace if (cond) BUG() with BUG_ON()

2021-03-16 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./arch/sparc/kernel/traps_64.c:419:2-5: WARNING: Use BUG_ON instead of if condition followed by BUG. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- arch/sparc/kernel/traps_64.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH v1 0/3] soc: rockchip: power-domain: add rk3568 powerdomains

2021-03-16 Thread Elaine Zhang
Support power domain function for RK3568 Soc. Elaine Zhang (3): dt-bindings: add power-domain header for RK3568 SoCs dt-bindings: Convert the rockchip power_domain to YAML and extend soc: rockchip: power-domain: add rk3568 powerdomains .../bindings/soc/rockchip/power_domain.txt| 136 --

[PATCH v1 1/3] dt-bindings: add power-domain header for RK3568 SoCs

2021-03-16 Thread Elaine Zhang
According to a description from TRM, add all the power domains Signed-off-by: Elaine Zhang --- include/dt-bindings/power/rk3568-power.h | 32 1 file changed, 32 insertions(+) create mode 100644 include/dt-bindings/power/rk3568-power.h diff --git a/include/dt-bindings/p

[PATCH v1 2/3] dt-bindings: Convert the rockchip power_domain to YAML and extend

2021-03-16 Thread Elaine Zhang
This converts the rockchip power domain family bindings to YAML schema, and add binding documentation for the power domains found on Rockchip RK3568 SoCs. Signed-off-by: Elaine Zhang --- .../bindings/soc/rockchip/power_domain.txt| 136 .../rockchip/rockchip,power-controller.yaml

[PATCH v1 3/3] soc: rockchip: power-domain: add rk3568 powerdomains

2021-03-16 Thread Elaine Zhang
Add power-domains found on rk3568 socs. Signed-off-by: Elaine Zhang --- drivers/soc/rockchip/pm_domains.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/drivers/soc/rockchip/pm_domains.c b/drivers/soc/rockchip/pm_domains.c index 54eb6cfc5d5b..a2c19c845cf2 1

Re: [PATCH][RESEND] Revert "PM: ACPI: reboot: Use S5 for reboot"

2021-03-16 Thread Kai-Heng Feng
Hi, On Wed, Mar 17, 2021 at 10:17 AM Josef Bacik wrote: > > This reverts commit d60cd06331a3566d3305b3c7b566e79edf4e2095. > > This patch causes a panic when rebooting my Dell Poweredge r440. I do > not have the full panic log as it's lost at that stage of the reboot and > I do not have a serial

RE: RE: [PATCH v5 05/10] scsi: ufshpb: Region inactivation in host mode

2021-03-16 Thread Daejun Park
>> >> --- >> >> drivers/scsi/ufs/ufshpb.c | 14 ++ >> >> drivers/scsi/ufs/ufshpb.h | 1 + >> >> 2 files changed, 15 insertions(+) >> >> >> >> diff --git a/drivers/scsi/ufs/ufshpb.c b/drivers/scsi/ufs/ufshpb.c >> >> index 6f4fd22eaf2f..0744feb4d484 100644 >> >> --- a/drivers/scsi/ufs/u

[PATCH] sched: replace if (cond) BUG() with BUG_ON()

2021-03-16 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./kernel/sched/core.c:8039:2-5: WARNING: Use BUG_ON instead of if condition followed by BUG. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- kernel/sched/core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/sched/c

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

2021-03-16 Thread Can Guo
On 2021-03-17 09:42, Daejun Park wrote: On 2021-03-15 15:23, Can Guo wrote: On 2021-03-15 15:07, Daejun Park wrote: 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

[PATCH 2/2] platform_x86: intel_pmt_crashlog: Fix incorrect macros

2021-03-16 Thread David E. Box
Fixes off-by-one bugs in the macro assignments for the crashlog control bits. Was initially tested on emulation but bug revealed after testing on silicon. Fixes: 5ef9998c96b0 ("platform/x86: Intel PMT Crashlog capability driver") Signed-off-by: David E. Box --- drivers/platform/x86/intel_pmt_cra

Re: [PATCH v5 07/10] scsi: ufshpb: Add "Cold" regions timer

2021-03-16 Thread Can Guo
On 2021-03-16 17:21, Avri Altman wrote: > +static void ufshpb_read_to_handler(struct work_struct *work) > +{ > + struct delayed_work *dwork = to_delayed_work(work); > + struct ufshpb_lu *hpb; > + struct victim_select_info *lru_info; > + struct ufshpb_region *rgn; > + unsigned

[PATCH 1/2] platform/x86: intel_pmt_class: Initial resource to 0

2021-03-16 Thread David E. Box
Initialize the struct resource in intel_pmt_dev_register to zero to avoid a fault should the char *name field be non-zero. Signed-off-by: David E. Box --- Base commit is v5.12-rc3. drivers/platform/x86/intel_pmt_class.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver

[PATCH] iio:imu:mpu6050: Modify matricies to matrices

2021-03-16 Thread Guoqing chi
From: Guoqing Chi The complex number of "matrix" is "matrices". Signed-off-by: Guoqing Chi --- include/linux/platform_data/invensense_mpu6050.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/platform_data/invensense_mpu6050.h b/include/linux/platform_data/in

[tip:irq/core] BUILD SUCCESS 5c982c58752118b6c1f295024d3fda5ff22d3c52

2021-03-16 Thread kernel test robot
allnoconfig i386 randconfig-a001-20210316 i386 randconfig-a005-20210316 i386 randconfig-a002-20210316 i386 randconfig-a003-20210316 i386 randconfig-a004-20210316 i386 randconfig-a006-20210316 x86_64

Re: [PATCH v4 02/28] mm: Add an unlock function for PG_private_2/PG_fscache

2021-03-16 Thread Linus Torvalds
On Tue, Mar 16, 2021 at 7:12 PM Josef Bacik wrote: > > > Yeah it's just a flag, we use it to tell that the page is part of a range that > has been allocated for IO. The lifetime of the page is independent of the > page, > but is generally either dirty or under writeback, so either it goes throug

RE: [PATCH] x86/kaslr: try process e820 entries if can not get suitable regions from efi

2021-03-16 Thread linfeng (M)
On Wed, 17 Mar 09:54, Lin Feng wrote: After more than one month testing, we find that it is not suitable to process e820 directly in kexec to place the kernel code. Some regions, like tmplog and memattr tables, are not marked as reserved in e820. Take tmplog, for example, the memory of table is m

Re: [PATCH] hpsa: fix boot on ia64 (atomic_t alignment)

2021-03-16 Thread Martin K. Petersen
Arnd, > Actually that still feels wrong: the annotation of the struct is to > pack every member, which causes the access to be done in byte units on > architectures that do not have hardware unaligned load/store > instructions, at least for things like atomic_read() that does not go > through a

[PATCH v6 21/21] selftests/resctrl: Create .gitignore to include resctrl_tests

2021-03-16 Thread Fenghua Yu
Create .gitignore to hold the test file resctrl_tests generated after compiling. Suggested-by: Shuah Khan Tested-by: Babu Moger Signed-off-by: Fenghua Yu --- Change Log: v5: - Add this patch (Shuah) tools/testing/selftests/resctrl/.gitignore | 2 ++ 1 file changed, 2 insertions(+) create mod

[PATCH v6 16/21] selftests/resctrl: Modularize resctrl test suite main() function

2021-03-16 Thread Fenghua Yu
Resctrl test suite main() function does the following things 1. Parses command line arguments passed by user 2. Some setup checks 3. Logic that calls into each unit test 4. Print result and clean up after running each unit test Introduce wrapper functions for steps 3 and 4 to modularize the main()

[PATCH v6 20/21] selftests/resctrl: Fix checking for < 0 for unsigned values

2021-03-16 Thread Fenghua Yu
Dan reported following static checker warnings tools/testing/selftests/resctrl/resctrl_val.c:545 measure_vals() warn: 'bw_imc' unsigned <= 0 tools/testing/selftests/resctrl/resctrl_val.c:549 measure_vals() warn: 'bw_resc_end' unsigned <= 0 These warnings are reported because 1. measure_vals() de

[PATCH v6 15/21] selftests/resctrl: Don't hard code value of "no_of_bits" variable

2021-03-16 Thread Fenghua Yu
Cache related tests (like CAT and CMT) depend on a variable called no_of_bits to run. no_of_bits defines the number of contiguous bits that should be set in the CBM mask and a user can pass a value for no_of_bits using -n command line argument. If a user hasn't passed any value, it defaults to 5 (r

[PATCH v6 14/21] selftests/resctrl: Fix MBA/MBM results reporting format

2021-03-16 Thread Fenghua Yu
MBM unit test starts fill_buf (default built-in benchmark) in a new con_mon group (c1, m1) and records resctrl reported mbm values and iMC (Integrated Memory Controller) values every second. It does this for five seconds (randomly chosen value) in total. It then calculates average of resctrl_mbm va

[PATCH v6 17/21] selftests/resctrl: Skip the test if requested resctrl feature is not supported

2021-03-16 Thread Fenghua Yu
There could be two reasons why a resctrl feature might not be enabled on the platform 1. H/W might not support the feature 2. Even if the H/W supports it, the user might have disabled the feature through kernel command line arguments Hence, any resctrl unit test (like cmt, cat, mbm and mba) bef

[PATCH v6 03/21] selftests/resctrl: Fix compilation issues for other global variables

2021-03-16 Thread Fenghua Yu
Reinette reported following compilation issue on Fedora 32, gcc version 10.1.1 /usr/bin/ld: resctrl_tests.o:/resctrl.h:65: multiple definition of `bm_pid'; cache.o:/resctrl.h:65: first defined here Other variables are ppid, tests_run, llc_occup_path, is_amd. Compiler isn't happy because these var

[PATCH v6 19/21] selftests/resctrl: Fix incorrect parsing of iMC counters

2021-03-16 Thread Fenghua Yu
iMC (Integrated Memory Controller) counters are usually at "/sys/bus/event_source/devices/" and are named as "uncore_imc_". num_of_imcs() function tries to count number of such iMC counters so that it could appropriately initialize required number of perf_attr structures that could be used to read

[PATCH v6 18/21] selftests/resctrl: Fix unmount resctrl FS

2021-03-16 Thread Fenghua Yu
umount_resctrlfs() directly attempts to unmount resctrl file system without checking if resctrl FS is already mounted or not. It returns 0 on success and on failure it prints an error message and returns an error status. Calling umount_resctrlfs() when resctrl FS isn't mounted will return an error

[PATCH v6 02/21] selftests/resctrl: Fix compilation issues for global variables

2021-03-16 Thread Fenghua Yu
Reinette reported following compilation issue on Fedora 32, gcc version 10.1.1 /usr/bin/ld: cqm_test.o:/cqm_test.c:22: multiple definition of `cache_size'; cat_test.o:/cat_test.c:23: first defined here The same issue is reported for long_mask, cbm_mask, count_of_bits etc variables as well. Compil

[PATCH v6 05/21] selftests/resctrl: Ensure sibling CPU is not same as original CPU

2021-03-16 Thread Fenghua Yu
From: Reinette Chatre The resctrl tests can accept a CPU on which the tests are run and use default of CPU #1 if it is not provided. In the CAT test a "sibling CPU" is determined that is from the same package where another thread will be run. The current algorithm with which a "sibling CPU" is d

[PATCH v6 06/21] selftests/resctrl: Fix missing options "-n" and "-p"

2021-03-16 Thread Fenghua Yu
resctrl test suite accepts command line arguments (like -b, -t, -n and -p) as documented in the help. But passing -n and -p throws an invalid option error. This happens because -n and -p are missing in the list of characters that getopt() recognizes as valid arguments. Hence, they are treated as in

[PATCH v6 04/21] selftests/resctrl: Clean up resctrl features check

2021-03-16 Thread Fenghua Yu
Checking resctrl features call strcmp() to compare feature strings (e.g. "mba", "cat" etc). The checkings are error prone and don't have good coding style. Define the constant strings in macros and call strncmp() to solve the potential issues. Suggested-by: Shuah Khan Tested-by: Babu Moger Signe

[PATCH v6 11/21] selftests/resctrl: Add config dependencies

2021-03-16 Thread Fenghua Yu
Add the config file for test dependencies. Suggested-by: Shuah Khan Tested-by: Babu Moger Signed-off-by: Fenghua Yu --- Change Log: v5: - Add this patch (Shuah) tools/testing/selftests/resctrl/config | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tools/testing/selftests/resctrl/c

[PATCH v6 07/21] selftests/resctrl: Rename CQM test as CMT test

2021-03-16 Thread Fenghua Yu
CMT (Cache Monitoring Technology) [1] is a H/W feature that reports cache occupancy of a process. resctrl selftest suite has a unit test to test CMT for LLC but the test is named as CQM (Cache Quality Monitoring). Furthermore, the unit test source file is named as cqm_test.c and several functions,

[PATCH v6 09/21] selftests/resctrl: Share show_cache_info() by CAT and CMT tests

2021-03-16 Thread Fenghua Yu
show_cache_info() functions are defined separately in CAT and CMT tests. But the functions are same for the tests and unnecessary to be defined separately. Share the function by the tests. Suggested-by: Shuah Khan Tested-by: Babu Moger Signed-off-by: Fenghua Yu --- Change Log: v5: - Add this pa

[PATCH v6 12/21] selftests/resctrl: Check for resctrl mount point only if resctrl FS is supported

2021-03-16 Thread Fenghua Yu
check_resctrlfs_support() does the following 1. Checks if the platform supports resctrl file system or not by looking for resctrl in /proc/filesystems 2. Calls opendir() on default resctrl file system path (i.e. /sys/fs/resctrl) 3. Checks if resctrl file system is mounted or not by looking at

[PATCH v6 08/21] selftests/resctrl: Call kselftest APIs to log test results

2021-03-16 Thread Fenghua Yu
Call kselftest APIs instead of using printf() to log test results for cleaner code and better future extension. Suggested-by: Shuah Khan Tested-by: Babu Moger Signed-off-by: Fenghua Yu --- Change Log: v6: - Capitalize the first letter in printed msg (Babu). v5: - Add this patch (Shuah) tools

[PATCH v6 01/21] selftests/resctrl: Enable gcc checks to detect buffer overflows

2021-03-16 Thread Fenghua Yu
David reported a buffer overflow error in the check_results() function of the cmt unit test and he suggested enabling _FORTIFY_SOURCE gcc compiler option to automatically detect any such errors. Feature Test Macros man page describes_FORTIFY_SOURCE as below "Defining this macro causes some lightw

[PATCH v6 10/21] selftests/resctrl: Fix a printed message

2021-03-16 Thread Fenghua Yu
From: Reinette Chatre Add a missing newline to the printed help text to improve readability. Tested-by: Babu Moger Signed-off-by: Reinette Chatre Signed-off-by: Fenghua Yu --- Change Log: v5: - Remove the "notok" fix part because the API change fixes it already. tools/testing/selftests/resc

[PATCH v6 00/21] Miscellaneous fixes for resctrl selftests

2021-03-16 Thread Fenghua Yu
This patch set has several miscellaneous fixes to resctrl selftest tool that are easily visible to user. V1 had fixes to CAT test and CMT test but they were dropped in V2 because having them here made the patchset humongous. So, changes to CAT test and CMT test will be posted in another patchset.

[PATCH v6 13/21] selftests/resctrl: Use resctrl/info for feature detection

2021-03-16 Thread Fenghua Yu
Resctrl test suite before running any unit test (like cmt, cat, mbm and mba) should first check if the feature is enabled (by kernel and not just supported by H/W) on the platform or not. validate_resctrl_feature_request() is supposed to do that. This function intends to grep for relevant flags in

Re: [PATCH] btrfs: Use immediate assignment when referencing cc-option

2021-03-16 Thread Anand Jain
On 17/03/2021 06:46, Victor Erminpour wrote: Calling cc-option will use KBUILD_CFLAGS, which when lazy setting subdir-ccflags-y produces the following build error: scripts/Makefile.lib:10: *** Recursive variable `KBUILD_CFLAGS' \ references itself (eventually). Stop. Use := assignment

Re: [PATCH v2 1/6] mm/huge_memory.c: rework the function vma_adjust_trans_huge()

2021-03-16 Thread Miaohe Lin
Hi: On 2021/3/17 4:40, Peter Xu wrote: > On Tue, Mar 16, 2021 at 08:40:02AM -0400, Miaohe Lin wrote: >> +static inline void split_huge_pmd_if_needed(struct vm_area_struct *vma, >> unsigned long address) >> +{ >> +/* >> + * If the new address isn't hpage aligned and it could previously >> +

[PATCH][RESEND] Revert "PM: ACPI: reboot: Use S5 for reboot"

2021-03-16 Thread Josef Bacik
This reverts commit d60cd06331a3566d3305b3c7b566e79edf4e2095. This patch causes a panic when rebooting my Dell Poweredge r440. I do not have the full panic log as it's lost at that stage of the reboot and I do not have a serial console. Reverting this patch makes my system able to reboot again.

Re: [PATCH v4 02/28] mm: Add an unlock function for PG_private_2/PG_fscache

2021-03-16 Thread Josef Bacik
On 3/16/21 8:43 PM, Linus Torvalds wrote: [ Adding btrfs people explicitly, maybe they see this on the fs-devel list, but maybe they don't react .. ] On Tue, Mar 16, 2021 at 12:07 PM Matthew Wilcox wrote: This isn't a problem with this patch per se, but I'm concerned about private2 and expect

Re: [PATCH v2 11/27] perf parse-events: Support hardware events inside PMU

2021-03-16 Thread Jin, Yao
On 3/16/2021 10:04 PM, Jiri Olsa wrote: On Tue, Mar 16, 2021 at 09:49:42AM +0800, Jin, Yao wrote: SNIP Performance counter stats for 'system wide': 136,655,302 cpu_core/branch-instructions/ 1.003171561 seconds time elapsed So we need special rules for both cycles

Re: [PATCH] mm: Move mem_init_print_info() into mm_init()

2021-03-16 Thread Kefeng Wang
please use v2, sorry for the wrong version. On 2021/3/17 2:01, kernel test robot wrote: Hi Kefeng, Thank you for the patch! Yet something to improve: [auto build test ERROR on tip/x86/mm] [also build test ERROR on linus/master v5.12-rc3 next-20210316] [cannot apply to hnaz-linux-mm/master

Re: [PATCH 4/7] crypto: qce: Add support for AEAD algorithms

2021-03-16 Thread Thara Gopinath
On 3/12/21 8:01 AM, Herbert Xu wrote: On Thu, Feb 25, 2021 at 01:27:13PM -0500, Thara Gopinath wrote: +static int +qce_aead_async_req_handle(struct crypto_async_request *async_req) +{ + struct aead_request *req = aead_request_cast(async_req); + struct qce_aead_reqctx *rctx = aead

Re: [PATCH 0/7] Add support for AEAD algorithms in Qualcomm Crypto Engine driver

2021-03-16 Thread Thara Gopinath
On 3/12/21 8:02 AM, Herbert Xu wrote: On Thu, Mar 04, 2021 at 01:41:15PM -0500, Thara Gopinath wrote: Yes it did. The last patch adds fallback for unsupported cases and this will make it pass the fuzz tests. Please include this information in the next round. I will. Thanks! Thanks,

Re: [PATCH v5 07/14] dt-bindings: mfd: Add i.MX8qm/qxp Control and Status Registers module binding

2021-03-16 Thread Liu Ying
On Tue, 2021-03-16 at 16:38 -0600, Rob Herring wrote: > On Wed, Mar 10, 2021 at 05:55:31PM +0800, Liu Ying wrote: > > This patch adds bindings for i.MX8qm/qxp Control and Status Registers > > module. > > > > Signed-off-by: Liu Ying > > --- > > v4->v5: > > * Newly introduced in v5. (Rob) > > > >

Re: [PATCH] Revert "perf/x86: Allow zero PEBS status with only single active event"

2021-03-16 Thread Namhyung Kim
On Tue, Mar 16, 2021 at 9:28 PM Liang, Kan wrote: > > > > On 3/16/2021 3:22 AM, Namhyung Kim wrote: > > Hi Peter and Kan, > > > > On Thu, Mar 4, 2021 at 5:22 AM Peter Zijlstra wrote: > >> > >> On Wed, Mar 03, 2021 at 02:53:00PM -0500, Liang, Kan wrote: > >>> On 3/3/2021 1:59 PM, Peter Zijlstra wr

Re: [PATCHv2 3/3] media: uvcvideo: add UVC 1.5 ROI control

2021-03-16 Thread Sergey Senozhatsky
On (21/03/16 19:46), Ricardo Ribalda Delgado wrote: > > -static int uvc_ioctl_g_selection(struct file *file, void *fh, > > -struct v4l2_selection *sel) > > +/* UVC 1.5 ROI rectangle is half the size of v4l2_rect */ > > +struct uvc_roi_rect { > > + __u16

Re: [PATCH v2 3/3] hwmon: (pmbus): Add driver for BluTek BPA-RS600

2021-03-16 Thread Guenter Roeck
On 3/16/21 1:30 PM, Chris Packham wrote: > The BPA-RS600 is a compact 600W AC to DC removable power supply module. > > Signed-off-by: Chris Packham > --- > > Notes: > Changes in v2: > - Whitespace and line length cleanup > - Add comments about commands that return data but shouldn't

Re: [PATCH] scsi: libsas: Reset num_scatter if libata mark qc as NODATA

2021-03-16 Thread Jason Yan
在 2021/3/17 3:39, Jolly Shah 写道: When the cache_type for the scsi device is changed, the scsi layer issues a MODE_SELECT command. The caching mode details are communicated via a request buffer associated with the scsi command with data direction set as DMA_TO_DEVICE (scsi_mode_select). When thi

[PATCH v2] mm: Move mem_init_print_info() into mm_init()

2021-03-16 Thread Kefeng Wang
mem_init_print_info() is called in mem_init() on each architecture, and pass NULL argument, so using void argument and move it into mm_init(). Acked-by: Dave Hansen Signed-off-by: Kefeng Wang --- v2: - Cleanup 'str' line suggested by Christophe and ACK arch/alpha/mm/init.c | 1 -

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