[PATCH 3/8] scripts: insert-sys-cert: change name to insert-symbol

2021-04-15 Thread Daniel Walker
Since the tool is used to update the command line and/or to update the certificates, I think it makes sense to changes the name of this tool. Update the name of the tool to better reflect it's new use. Cc: xe-linux-exter...@cisco.com Signed-off-by: Daniel Walker --- scripts/Makefile

[PATCH 2/8] scripts: insert-sys-cert: add command line insert capability

2021-04-15 Thread Daniel Walker
This adds changes to the insert-sys-cert tool to allow updating the cmdline_prepend and cmdline_append symbols in addition to adding certificates. Updating the cmdline symbols was tested on a PVH virtual machine with a vmlinux, and with a bzImage which was repackaged on x86. This commit intention

[PATCH 0/8] generic command line v4

2021-04-15 Thread Daniel Walker
v4 release changes * Updated insert-sys-cert tool to change command line symbols after compilation. This tool is used to release binary kernels internally to companies and then later insert certificates for each product by consumers of the binary kernel. Cisco uses thi

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

2021-04-15 Thread Stephen Rothwell
Hi, On Fri, 16 Apr 2021 03:12:12 + "Liang, Prike" wrote: > > Hi, Rothwell (Stephen, actually :-)) > This fix solution hasn't locked down and still being discussed and > roll-updated in the NVMe mail group. > Will update the patch once it refined done. In which case, this patch should not

[PATCH 2/2] scsi: arcmsr: update driver version to v1.50.00.04-20210414

2021-04-15 Thread ching Huang
From: ching Huang Update driver version to v1.50.00.04-20210414. Signed-off-by: ching Huang --- diff --git a/drivers/scsi/arcmsr/arcmsr.h b/drivers/scsi/arcmsr/arcmsr.h index 0f6abd2..eb0ef73 100644 --- a/drivers/scsi/arcmsr/arcmsr.h +++ b/drivers/scsi/arcmsr/arcmsr.h @@ -49,7 +49,7 @@ struct

Re: [PATCH v2 4/7] dt-bindings: soc: mediatek: apusys: Add new document for APU power domain

2021-04-15 Thread Flora Fu
On Thu, 2021-04-15 at 10:25 -0500, Rob Herring wrote: > On Thu, Apr 15, 2021 at 01:52:37PM +0800, Flora Fu wrote: > > Document the bindings for APU power domain on MediaTek SoC. > > > > Signed-off-by: Flora Fu > > --- > > Note: > > This patch depends on MT8192 clock[1] patches which haven't yet b

[PATH 2/2] scsi: arcmsr: update driver version to v1.50.00.04-20210414

2021-04-15 Thread ching Huang
From: ching Huang Update driver version to v1.50.00.04-20210414. Signed-off-by: ching Huang --- diff --git a/drivers/scsi/arcmsr/arcmsr.h b/drivers/scsi/arcmsr/arcmsr.h index 0f6abd2..eb0ef73 100644 --- a/drivers/scsi/arcmsr/arcmsr.h +++ b/drivers/scsi/arcmsr/arcmsr.h @@ -49,7 +49,7 @@ struct

Re: linux-next: build failure after merge of the mmc tree

2021-04-15 Thread Stephen Rothwell
Hi all, This is actually just a warning. On Fri, 16 Apr 2021 13:48:27 +1000 Stephen Rothwell wrote: > > Hi all, > > After merging the mmc tree, today's linux-next build (x86_64 allmodconfig) > failed like this: > > In file included from drivers/memstick/host/r592.h:13, > from

linux-next: build failure after merge of the mmc tree

2021-04-15 Thread Stephen Rothwell
Hi all, After merging the mmc tree, today's linux-next build (x86_64 allmodconfig) failed like this: In file included from drivers/memstick/host/r592.h:13, from drivers/memstick/host/r592.c:21: drivers/memstick/host/r592.c: In function 'r592_flush_fifo_write': include/linux/kfifo

[PATCH] regulator: mt6360: Fix missing IRQF_ONESHOT as only threaded handler

2021-04-15 Thread zhuguangqing83
From: Guangqing Zhu Coccinelle noticed: drivers/regulator/mt6360-regulator.c:386:8-33: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT Signed-off-by: Guangqing Zhu --- drivers/regulator/mt6360-regulator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) dif

Re: [PATCH net-next v4 2/2] of: net: fix of_get_mac_addr_nvmem() for non-platform devices

2021-04-15 Thread Benjamin Herrenschmidt
On Mon, 2021-04-12 at 19:47 +0200, Michael Walle wrote: > > /** > * of_get_phy_mode - Get phy mode for given device_node > @@ -59,15 +60,39 @@ static int of_get_mac_addr(struct device_node *np, const > char *name, u8 *addr) > static int of_get_mac_addr_nvmem(struct device_node *np, u8 *addr)

[PATCH 1/2] scsi: arcmsr: fixed the wrong cdb payload report to IOP

2021-04-15 Thread ching Huang
From: ching Huang This patch fixed the wrong cdb payload report to IOP. Signed-off-by: ching Huang --- diff --git a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c index 4b79661..930972c 100644 --- a/drivers/scsi/arcmsr/arcmsr_hba.c +++ b/drivers/scsi/arcmsr/arcmsr_hba.c @@

[PATCH] Documentation: kunit: Update kunit_tool page

2021-04-15 Thread David Gow
The kunit_tool documentation page was pretty minimal, and a bit outdated. Update it and flesh it out a bit. In particular, - Mention that .kunitconfig is now in the build directory - Describe the use of --kunitconfig to specify a different config framgent - Mention the split functionality (i.e.,

Re: [PATCH 5.4 00/18] 5.4.113-rc1 review

2021-04-15 Thread Samuel Zou
On 2021/4/15 22:47, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.4.113 release. There are 18 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be ma

[PATCH] drivers: ipa: Fix missing IRQF_ONESHOT as only threaded handler

2021-04-15 Thread zhuguangqing83
From: Guangqing Zhu Coccinelle noticed: drivers/net/ipa/ipa_smp2p.c:186:7-27: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT Signed-off-by: Guangqing Zhu --- drivers/net/ipa/ipa_smp2p.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/ne

[PATCH 0/2] scsi: arcmsr: fix SCSI command timeout on ARC-1886

2021-04-15 Thread ching Huang
This patch is against to mkp's 5.13/scsi-staging. This patch fixed the wrong cdb payload report to IOP, that cause scsi command timeout when scatter-gather count is large than some number. ---

Re: [PATCH] fs: split receive_fd_replace from __receive_fd

2021-04-15 Thread Al Viro
On Thu, Mar 25, 2021 at 09:22:09AM +0100, Christoph Hellwig wrote: > receive_fd_replace shares almost no code with the general case, so split > it out. Also remove the "Bump the sock usage counts" comment from > both copies, as that is now what __receive_sock actually does. Nice, except that you'

[PATCH] Input: goodix - Fix missing IRQF_ONESHOT as only threaded handler

2021-04-15 Thread zhuguangqing83
From: Guangqing Zhu Coccinelle noticed: drivers/input/touchscreen/goodix.c:497:8-33: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT Signed-off-by: Guangqing Zhu --- drivers/input/touchscreen/goodix.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff -

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

2021-04-15 Thread Liang, Prike
[AMD Public Use] Hi, Rothwell This fix solution hasn't locked down and still being discussed and roll-updated in the NVMe mail group. Will update the patch once it refined done. Thanks, Prike > -Original Message- > From: Stephen Rothwell > Sent: Friday, April 16, 2021 10:41 AM > To: Al

[PATCH] KVM: Boost vCPU candidiate in user mode which is delivering interrupt

2021-04-15 Thread Wanpeng Li
From: Wanpeng Li Both lock holder vCPU and IPI receiver that has halted are condidate for boost. However, the PLE handler was originally designed to deal with the lock holder preemption problem. The Intel PLE occurs when the spinlock waiter is in kernel mode. This assumption doesn't hold for I

Re: [PATCH v1] ARM: dts: Fix 64MiB OpenBMC flash layout and aspeed-ast2600-evb.dts

2021-04-15 Thread Joel Stanley
On Tue, 16 Mar 2021 at 08:59, Troy Lee wrote: > > Aspeed AST2600 u-boot requires 600KiB+ flash space. Sharing the same > openbmc-flash-layout-64.dtsi requires to resize the flash partition. > > The updated flash layout as follows: > - u-boot: 896 KiB > - u-boot-env: 128 KiB > - kernel: 9MiB > - ro

Re: [PATCH 4/8] dt-bindings: arm: mediatek: Add new document bindings for APU

2021-04-15 Thread Flora Fu
On Thu, 2021-04-15 at 16:24 -0500, Rob Herring wrote: > On Mon, Apr 12, 2021 at 1:45 AM Flora Fu wrote: > > > > On Fri, 2021-04-09 at 13:25 -0500, Rob Herring wrote: > > > On Wed, Apr 07, 2021 at 11:28:02AM +0800, Flora Fu wrote: > > > > Document the apusys bindings. > > > > > > > > Signed-off-by:

[PATCH v4] kernel/resource: Fix locking in request_free_mem_region

2021-04-15 Thread Alistair Popple
request_free_mem_region() is used to find an empty range of physical addresses for hotplugging ZONE_DEVICE memory. It does this by iterating over the range of possible addresses using region_intersects() to see if the range is free. region_intersects() obtains a read lock before walking the resour

[PATCH] Input: twl4030_keypad - Fix missing IRQF_ONESHOT as only threaded handler

2021-04-15 Thread zhuguangqing83
From: Guangqing Zhu Coccinelle noticed: drivers/input/keyboard/twl4030_keypad.c:413:9-34: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT Signed-off-by: Guangqing Zhu --- drivers/input/keyboard/twl4030_keypad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) d

Re: [PATCH] arm: dts: aspeed: tiogapass: add hotplug controller

2021-04-15 Thread Joel Stanley
On Thu, 15 Apr 2021 at 14:05, Paul Fertser wrote: > > The ADM1278 IC is accessible on I2C bus and on both Wiwynn and Quanta > Tioga Pass implementations a pair of parallel 0.5 mOhm resistors is used > for current measurement. > > Signed-off-by: Paul Fertser Thanks, applied. > --- > arch/arm/bo

Re: [PATCH] ARM: dts: aspeed: amd-ethanolx: Enable all used I2C busses

2021-04-15 Thread Joel Stanley
On Thu, 15 Apr 2021 at 15:53, Konstantin Aladyshev wrote: > > Enable all I2C busses that are used in AMD EthanolX CRB: > i2c0 - APML P0 > i2c1 - APML P1 > i2c2 - FPGA > i2c3 - 24LC128 EEPROM > i2c4 - P0 Power regulators > i2c5 - P1 Power regulators > i2c6 - P0/P1 Thermal diode > i2c7 - The

Re: [PATCH] clk: uniphier: Fix potential infinite loop

2021-04-15 Thread Masahiro Yamada
On Fri, Apr 16, 2021 at 3:19 AM Dan Carpenter wrote: > > On Fri, Apr 09, 2021 at 03:46:47PM +0900, Masahiro Yamada wrote: > > On Thu, Apr 8, 2021 at 12:25 AM Colin King wrote: > > > > > > From: Colin Ian King > > > > > > The for-loop iterates with a u8 loop counter i and compares this > > > with

Re: [External] : Re: [PATCH v14 4/6] locking/qspinlock: Introduce starvation avoidance into CNA

2021-04-15 Thread Alex Kogan
> On Apr 13, 2021, at 8:03 AM, Peter Zijlstra wrote: > > On Thu, Apr 01, 2021 at 11:31:54AM -0400, Alex Kogan wrote: > >> @@ -49,13 +55,33 @@ struct cna_node { >> u16 real_numa_node; >> u32 encoded_tail; /* self */ >> u32

Re: [PATCH] ibmvfc: Fix invalid state machine BUG_ON

2021-04-15 Thread Martin K. Petersen
On Mon, 12 Apr 2021 18:10:09 -0600, Tyrel Datwyler wrote: > This fixes an issue hitting the BUG_ON in ibmvfc_do_work. When > going through a host action of IBMVFC_HOST_ACTION_RESET, > we change the action to IBMVFC_HOST_ACTION_TGT_DEL, > then drop the host lock, and reset the CRQ, which changes >

Re: [PATCH -next] scsi: qla2xxx: remove unneeded if-null-free check

2021-04-15 Thread Martin K. Petersen
On Fri, 9 Apr 2021 20:09:25 +0800, Qiheng Lin wrote: > Eliminate the following coccicheck warning: > > drivers/scsi/qla2xxx/qla_os.c:4622:2-7: > WARNING: NULL check before some freeing functions is not needed. > drivers/scsi/qla2xxx/qla_os.c:4637:3-8: > WARNING: NULL check before some freeing f

Re: [PATCH v3 0/2] scsi: pm8001: tiny clean up patches

2021-04-15 Thread Martin K. Petersen
On Thu, 8 Apr 2021 20:56:31 +0800, Luo Jiaxing wrote: > Several error is reported by checkpatch.pl, here are two patches to clean > them up. Applied to 5.13/scsi-queue, thanks! [1/2] scsi: pm8001: clean up for white space https://git.kernel.org/mkp/scsi/c/8a23dbc60089 [2/2] scsi: pm8001: c

Re: [PATCH -next] scsi: qla4xxx: remove unneeded if-null-free check

2021-04-15 Thread Martin K. Petersen
On Fri, 9 Apr 2021 20:03:45 +0800, Qiheng Lin wrote: > Eliminate the following coccicheck warning: > > drivers/scsi/qla4xxx/ql4_os.c:4175:2-7: WARNING: > NULL check before some freeing functions is not needed. > drivers/scsi/qla4xxx/ql4_os.c:4196:2-7: WARNING: > NULL check before some freeing f

Re: [PATCH] scsi: isci/phy.h: Remove unnecessary struct declaration

2021-04-15 Thread Martin K. Petersen
On Tue, 6 Apr 2021 18:59:13 +0800, Wan Jiabing wrote: > struct sci_phy_proto is defined at 142nd line. > The declaration here is unnecessary. Remove it. Applied to 5.13/scsi-queue, thanks! [1/1] scsi: isci/phy.h: Remove unnecessary struct declaration https://git.kernel.org/mkp/scsi/c/8350e

Re: [PATCH 0/3] scsi: mptfusion: Clear the warnings indicating that the variable is not used

2021-04-15 Thread Martin K. Petersen
On Thu, 8 Apr 2021 14:18:48 +0800, Zhen Lei wrote: > Fix below warnings: > drivers/message/fusion/mptctl.c: In function ‘mptctl_do_taskmgmt’: > drivers/message/fusion/mptctl.c:324:17: warning: variable ‘time_count’ set > but not used [-Wunused-but-set-variable] > 324 | unsigned long time_coun

Re: [PATCH][next] scsi: mpt3sas: Fix out-of-bounds warnings in _ctl_addnl_diag_query

2021-04-15 Thread Martin K. Petersen
On Thu, 1 Apr 2021 11:20:54 -0500, Gustavo A. R. Silva wrote: > Fix the following out-of-bounds warnings by embedding existing > struct htb_rel_query into struct mpt3_addnl_diag_query, instead > of duplicating its members: > > include/linux/fortify-string.h:20:29: warning: '__builtin_memcpy' offs

Re: [PATCH] scsi: message: fusion: remove useless variable

2021-04-15 Thread Martin K. Petersen
On Mon, 12 Apr 2021 13:59:06 +0800, Jiapeng Chong wrote: > Fix the following gcc warning: > > drivers/message/fusion/mptsas.c:783:14: warning: variable ‘vtarget’ set > but not used [-Wunused-but-set-variable]. Applied to 5.13/scsi-queue, thanks! [1/1] scsi: message: fusion: remove useless varia

Re: [PATCH][next] scsi: pm80xx: Fix potential infinite loop

2021-04-15 Thread Martin K. Petersen
On Wed, 7 Apr 2021 14:58:40 +0100, Colin King wrote: > The for-loop iterates with a u8 loop counter i and compares this > with the loop upper limit of pm8001_ha->max_q_num which is a u32 > type. There is a potential infinite loop if pm8001_ha->max_q_num > is larger than the u8 loop counter. Fix t

Re: [PATCH] scsi: snic: Convert to DEFINE_SHOW_ATTRIBUTE

2021-04-15 Thread Martin K. Petersen
On Wed, 31 Mar 2021 14:53:25 +0800, dingsen...@163.com wrote: > Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Applied to 5.13/scsi-queue, thanks! [1/1] scsi: snic: Convert to DEFINE_SHOW_ATTRIBUTE https://git.kernel.org/mkp/scsi/c/54300bfd738b -- Martin K. Petersen Oracle Li

Re: [PATCH] scsi: qla2xxx: Re-use existing error handling path

2021-04-15 Thread Martin K. Petersen
On Sun, 11 Apr 2021 11:21:40 +0200, Christophe JAILLET wrote: > There is no need to duplicate some code, use the existing error handling > path to free some resources. > This is more future-proof. Applied to 5.13/scsi-queue, thanks! [1/1] scsi: qla2xxx: Re-use existing error handling path

[PATCH v2] cxl/mem: Fix register block offset calculation

2021-04-15 Thread Ben Widawsky
The offset for the register block should be a 64K aligned value, and therefore FIELD_GET (which will shift) is not correct for the calculation. >From 8.1.9.1 of the CXL 2.0 spec: A[31:16] of offset from the address contained by one of the Function's Base Address Registers to point to the base

Re: [RFC PATCH] USB:XHCI:skip hub registration

2021-04-15 Thread liulongfang
On 2021/4/15 20:34, Greg KH wrote: > On Thu, Apr 15, 2021 at 08:22:38PM +0800, Longfang Liu wrote: >> When the number of ports on the USB hub is 0, skip the registration >> operation of the USB hub. > > That's crazy. Why not fix the hardware? How has this hub passed the > USB certification proce

Re: [PATCH V2 2/3] vDPA/ifcvf: enable Intel C5000X-PL virtio-block for vDPA

2021-04-15 Thread Zhu Lingshan
On 4/15/2021 9:41 PM, Stefano Garzarella wrote: On Thu, Apr 15, 2021 at 05:53:35PM +0800, Zhu Lingshan wrote: This commit enabled Intel FPGA SmartNIC C5000X-PL virtio-block for vDPA. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_base.h |  8 +++- drivers/vdpa/ifcvf/ifcvf_main.

Re: [PATCH V2 3/3] vDPA/ifcvf: get_config_size should return dev specific config size

2021-04-15 Thread Zhu Lingshan
On 4/15/2021 9:48 PM, Stefano Garzarella wrote: On Thu, Apr 15, 2021 at 05:53:36PM +0800, Zhu Lingshan wrote: get_config_size() should return the size based on the decected device type. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_main.c | 18 +- 1 file changed, 1

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

2021-04-15 Thread Stephen Rothwell
Hi all, After merging the amdgpu tree, today's linux-next build (powerpc ppc64_defconfig) produced this warning: drivers/pci/quirks.c: In function 'quirk_amd_nvme_fixup': drivers/pci/quirks.c:312:18: warning: unused variable 'rdev' [-Wunused-variable] 312 | struct pci_dev *rdev; |

[RFC] mm/vmscan.c: avoid possible long latency caused by too_many_isolated()

2021-04-15 Thread zhengjun . xing
From: Zhengjun Xing In the system with very few file pages, it is easy to reproduce "nr_isolated_file > nr_inactive_file", then too_many_isolated return true, shrink_inactive_list enter "msleep(100)", the long latency will happen. The test case to reproduce it is very simple, allocate a lot of h

Re: [PATCH 1/5] mm/swapfile: add percpu_ref support for swap

2021-04-15 Thread Miaohe Lin
On 2021/4/15 22:31, Dennis Zhou wrote: > On Thu, Apr 15, 2021 at 01:24:31PM +0800, Huang, Ying wrote: >> Dennis Zhou writes: >> >>> On Wed, Apr 14, 2021 at 01:44:58PM +0800, Huang, Ying wrote: Dennis Zhou writes: > On Wed, Apr 14, 2021 at 11:59:03AM +0800, Huang, Ying wrote: >>

Re: [PATCH 00/13] [RFC] Rust support

2021-04-15 Thread Wedson Almeida Filho
On Thu, Apr 15, 2021 at 08:58:16PM +0200, Peter Zijlstra wrote: > On Wed, Apr 14, 2021 at 08:45:51PM +0200, oj...@kernel.org wrote: > > > Rust is a systems programming language that brings several key > > advantages over C in the context of the Linux kernel: > > > > - No undefined behavior in t

[PATCH] rtc: Fix missing IRQF_ONESHOT as only threaded handler

2021-04-15 Thread zhuguangqing83
From: Guangqing Zhu Coccinelle noticed: 1. drivers/rtc/rtc-s5m.c:810:7-32: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT 2. drivers/rtc/rtc-rk808.c:441:7-32: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT 3. drivers/rtc/rtc-max77686.c

Re: [PATCH] direct-io: use read lock for DIO_LOCKING flag

2021-04-15 Thread Chao Yu
On 2021/4/16 8:43, Al Viro wrote: On Thu, Apr 15, 2021 at 12:24:13PM +0200, Jan Kara wrote: On Thu 15-04-21 17:43:32, Chao Yu wrote: 9902af79c01a ("parallel lookups: actual switch to rwsem") changes inode lock from mutex to rwsem, however, we forgot to adjust lock for DIO_LOCKING flag in do_blo

Re: [Regression] amdgpu driver broken on AMD HD7770 GHz edition.

2021-04-15 Thread David Niklas
Hey, I forgot to give you a bug tracker in case you want one. Here: https://bugzilla.kernel.org/show_bug.cgi?id=212691 Thanks, David

Re: [RFC PATCH 2/2] bfq/mq-deadline: remove redundant check for passthrough request

2021-04-15 Thread Ming Lei
On Thu, Apr 15, 2021 at 11:43:26AM +0800, Lin Feng wrote: > Since commit 01e99aeca39796003 'blk-mq: insert passthrough request into > hctx->dispatch directly', passthrough request should not appear in > IO-scheduler any more, so blk_rq_is_passthrough checking in addon IO > schedulers is redundant.

[PATCH v2] watchdog: aspeed: fix integer overflow in set_timeout handler

2021-04-15 Thread rentao . bupt
From: Tao Ren Fix the time comparison (timeout vs. max_hw_heartbeat_ms) in set_timeout handler to avoid potential integer overflow when the supplied timeout is greater than aspeed's maximum allowed timeout (4294 seconds). Fixes: efa859f7d786 ("watchdog: Add Aspeed watchdog driver") Reported-by:

Re: [PATCH v18 1/2] scsi: ufs: Enable power management for wlun

2021-04-15 Thread Martin K. Petersen
Hi Bart! > Patches sent to the SCSI mailing list should not have a "scsi: " prefix > in the subject. That prefix is inserted before any SCSI patches go into > Martin's tree. This doesn't actually matter. My script will add the prefix if it's not present. -- Martin K. Petersen Oracle Linu

Re: [PATCH 1/2] blk-mq: bypass IO scheduler's limit_depth for passthrough request

2021-04-15 Thread Ming Lei
On Thu, Apr 15, 2021 at 11:39:20AM +0800, Lin Feng wrote: > Commit 01e99aeca39796003 ("blk-mq: insert passthrough request into > hctx->dispatch directly") gives high priority to passthrough requests and > bypass underlying IO scheduler. But as we allocate tag for such request it > still runs io-sch

Re: [PATCH 1/5] scsi: BusLogic: Fix missing `pr_cont' use

2021-04-15 Thread Joe Perches
On Thu, 2021-04-15 at 00:39 +0200, Maciej W. Rozycki wrote: > Update BusLogic driver's messaging system to use `pr_cont' for > continuation lines, bringing messy output: > > pci :00:13.0: PCI->APIC IRQ transform: INT A -> IRQ 17 > scsi: * BusLogic SCSI Driver Version 2.1.17 of 12 Septembe

Re: [PATCH 1/1] char: hpet: Remove unused local variable 'm' in hpet_interrupt()

2021-04-15 Thread Leizhen (ThunderTown)
On 2021/4/15 22:53, Greg Kroah-Hartman wrote: > On Thu, Apr 15, 2021 at 10:24:04PM +0800, Zhen Lei wrote: >> Commit 273ef9509b79 ("drivers/char/hpet.c: fix periodic-emulation for >> delayed interrupt") removed the reference to local variable 'm', but >> forgot to remove the definition and assign

Re: [RFC PATCH] USB:XHCI:skip hub registration

2021-04-15 Thread liulongfang
On 2021/4/15 22:43, Alan Stern wrote: > On Thu, Apr 15, 2021 at 08:22:38PM +0800, Longfang Liu wrote: >> When the number of ports on the USB hub is 0, skip the registration >> operation of the USB hub. >> >> The current Kunpeng930's XHCI hardware controller is defective. The number >> of ports on i

Re: [PATCH v3 12/27] perf parse-events: Support no alias assigned event inside hybrid PMU

2021-04-15 Thread Jin, Yao
Hi Jiri, On 4/16/2021 3:39 AM, Jiri Olsa wrote: On Thu, Apr 15, 2021 at 10:53:33PM +0800, Jin, Yao wrote: SNIP With my current code, static int parse_events__with_hybrid_pmu(struct parse_events_state *parse_state, const char *str, char *pmu_name,

[PATCH] bonding: 3ad: update slave arr after initialize

2021-04-15 Thread jinyiting
From: jin yiting The bond works in mode 4, and performs down/up operations on the bond that is normally negotiated. The probability of bond-> slave_arr is NULL Test commands: ifconfig bond1 down ifconfig bond1 up The conflict occurs in the following process: __dev_open (CPU A) --bond_

Re: [PATCH] watchdog: aspeed: fix integer overflow in set_timeout handler

2021-04-15 Thread Guenter Roeck
On Thu, Apr 15, 2021 at 06:04:45PM -0700, Tao Ren wrote: > On Thu, Apr 15, 2021 at 05:50:32PM -0700, Guenter Roeck wrote: > > On 4/15/21 5:12 PM, rentao.b...@gmail.com wrote: > > > From: Tao Ren > > > > > > Fix the time comparison (timeout vs. max_hw_heartbeat_ms) in set_timeout > > > handler to

[Regression] amdgpu driver broken on AMD HD7770 GHz edition.

2021-04-15 Thread David Niklas
Hello, I have tested and found this bug to occur on the specified bisected commit through Linux Kernel version 5.11.12. I am running Devuan (Debian) Linux with a hand created kernel config. I'm attaching it. I've bisected the kernel and found the broken commit. Here's how I got there in case you'r

Re: [PATCH v3] USB: Don't set USB_PORT_FEAT_SUSPEND on WD19's Realtek Hub

2021-04-15 Thread Chris Chiu
On Fri, Apr 16, 2021 at 2:46 AM Alan Stern wrote: > > On Fri, Apr 16, 2021 at 12:13:43AM +0800, Chris Chiu wrote: > > One thing worth mentioning here, I never hit the hub_ext_port_status -71 > > problem if I resume by waking up from the keyboard connected to the hub. > > I thought you said earlier

[PATCH RESEND v5] proc: Allow pid_revalidate() during LOOKUP_RCU

2021-04-15 Thread Stephen Brennan
The pid_revalidate() function drops from RCU into REF lookup mode. When many threads are resolving paths within /proc in parallel, this can result in heavy spinlock contention on d_lockref as each thread tries to grab a reference to the /proc dentry (and drop it shortly thereafter). Investigation

[PATCH net v4 1/2] net: sched: fix packet stuck problem for lockless qdisc

2021-04-15 Thread Yunsheng Lin
Lockless qdisc has below concurrent problem: cpu0 cpu1 . . q->enqueue . . . qdisc_run_begin() . . . dequeue_skb() . . . sch_direct_xmit()

[PATCH net v4 2/2] net: sched: fix endless tx action reschedule during deactivation

2021-04-15 Thread Yunsheng Lin
Currently qdisc_run() checks the STATE_DEACTIVATED of lockless qdisc before calling __qdisc_run(), which ultimately clear the STATE_MISSED when all the skb is dequeued. If STATE_DEACTIVATED is set before clearing STATE_MISSED, there may be endless rescheduling of net_tx_action() at the end of qdisc

[PATCH net v4 0/2] fix packet stuck problem for lockless qdisc

2021-04-15 Thread Yunsheng Lin
This patchset fixes the packet stuck problem mentioned in [1]. Patch 1: Add STATE_MISSED flag to fix packet stuck problem. Patch 2: Fix a tx_action rescheduling problem after STATE_MISSED flag is added in patch 1. V4: Change STATE_NEED_RESCHEDULE to STATE_MISSED and add patch 2. [1]. ht

Re: [RFC] ITS fails to allocate on rk3568/rk3566

2021-04-15 Thread Kever Yang
Hi Marc, On 2021/4/15 下午4:11, Marc Zyngier wrote: Hi Kever, On Thu, 15 Apr 2021 08:24:33 +0100, Kever Yang wrote: Hi Marc, Peter,     RK356x GIC has two issues: 1. GIC only support 32bit address while rk356x supports 8GB DDR SDRAM, so we use ZONE_DMA32 to fix this issue; What transactions

[PATCH net v4 0/2] fix packet stuck problem for lockless qdisc

2021-04-15 Thread Yunsheng Lin
This patchset fixes the packet stuck problem mentioned in [1]. Patch 1: Add STATE_MISSED flag to fix packet stuck problem. Patch 2: Fix a tx_action rescheduling problem after STATE_MISSED flag is added in patch 1. V4: Change STATE_NEED_RESCHEDULE to STATE_MISSED and add patch 2. [1]. ht

Re: [PATCH v2 0/5] kvfree_rcu() miscellaneous fixes

2021-04-15 Thread Paul E. McKenney
On Thu, Apr 15, 2021 at 07:19:55PM +0200, Uladzislau Rezki (Sony) wrote: > This is a v2 of a small series. See the changelog below: > > V1 -> V2: > - document the rcu_delay_page_cache_fill_msec parameter; > - drop the "kvfree_rcu: introduce "flags" variable" patch; > - reword commit messages; > -

Loan Offer

2021-04-15 Thread Shell Federal
We give out loan as low as 2% interest kindly provide this info if you are interested Loan Amount: Duration of Loan: Contact Phone Number: Country: Sex:

Re: [PATCH] watchdog: aspeed: fix integer overflow in set_timeout handler

2021-04-15 Thread Tao Ren
On Thu, Apr 15, 2021 at 05:50:32PM -0700, Guenter Roeck wrote: > On 4/15/21 5:12 PM, rentao.b...@gmail.com wrote: > > From: Tao Ren > > > > Fix the time comparison (timeout vs. max_hw_heartbeat_ms) in set_timeout > > handler to avoid potential integer overflow when the supplied timeout is > > gre

Re: [PATCH 5.11 00/23] 5.11.15-rc1 review

2021-04-15 Thread Naresh Kamboju
On Thu, 15 Apr 2021 at 20:34, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.11.15 release. > There are 23 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Res

Re: [PATCH V2] dt-bindings: mailbox: ti,secure-proxy: Convert to yaml

2021-04-15 Thread Nishanth Menon
On 16:17-20210415, Rob Herring wrote: > > diff --git a/Documentation/devicetree/bindings/mailbox/ti,secure-proxy.yaml > > b/Documentation/devicetree/bindings/mailbox/ti,secure-proxy.yaml > > new file mode 100644 > > index ..08a4837fdfcc > > --- /de

[PATCH V3] dt-bindings: mailbox: ti,secure-proxy: Convert to json schema

2021-04-15 Thread Nishanth Menon
Convert the ti,secure-proxy to yaml for better checks and documentation. Differences being mostly in the examples: - Dropped the example usage of mailbox client, it is better done in tisci node definition. - Switched reg usage for address-cells and size-cells 1 - aligned with schema checks as w

Re: [PATCH 4.9 00/47] 4.9.267-rc1 review

2021-04-15 Thread Florian Fainelli
On 4/15/2021 7:46 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.267 release. > There are 47 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

[gustavoars-linux:testing/warray-bounds 1/13] arch/alpha/include/asm/string.h:22:16: warning: '__builtin_memcpy' offset [3, 7] from the object at 'cmd' is out of the bounds of referenced subobject 'fe

2021-04-15 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/warray-bounds head: 8bd0f043b3e94069930bec5cb3fbb5c857748c80 commit: 5f8bd90197ff7ab1cf9f06dd9c594f3636c71297 [1/13] Makefile: Enable -Warray-bounds config: alpha-randconfig-r013-20210415 (attached as .config

Re: [PATCH 1/5] mm/swapfile: add percpu_ref support for swap

2021-04-15 Thread Huang, Ying
Dennis Zhou writes: > On Thu, Apr 15, 2021 at 01:24:31PM +0800, Huang, Ying wrote: >> Dennis Zhou writes: >> >> > On Wed, Apr 14, 2021 at 01:44:58PM +0800, Huang, Ying wrote: >> >> Dennis Zhou writes: >> >> >> >> > On Wed, Apr 14, 2021 at 11:59:03AM +0800, Huang, Ying wrote: >> >> >> Dennis Z

Re: [PATCH 5.10 00/25] 5.10.31-rc1 review

2021-04-15 Thread Florian Fainelli
On 4/15/2021 7:47 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.10.31 release. > There are 25 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

Re: [PATCH] watchdog: aspeed: fix integer overflow in set_timeout handler

2021-04-15 Thread Guenter Roeck
On 4/15/21 5:12 PM, rentao.b...@gmail.com wrote: > From: Tao Ren > > Fix the time comparison (timeout vs. max_hw_heartbeat_ms) in set_timeout > handler to avoid potential integer overflow when the supplied timeout is > greater than aspeed's maximum allowed timeout (4294 seconds). > > Fixes: efa8

[PATCH 4/5] spi: spi-zynqmp-gqspi: fix use-after-free in zynqmp_qspi_exec_op

2021-04-15 Thread quanyang . wang
From: Quanyang Wang When handling op->addr, it is using the buffer "tmpbuf" which has been freed. This will trigger a use-after-free KASAN warning. Let's use temporary variables to store op->addr.val and op->cmd.opcode to fix this issue. Fixes: 1c26372e5aa9 ("spi: spi-zynqmp-gqspi: Update driver

[PATCH 5/5] spi: spi-zynqmp-gqspi: return -ENOMEM if dma_map_single fails

2021-04-15 Thread quanyang . wang
From: Quanyang Wang The spi controller supports 44-bit address space on AXI in DMA mode, so set dma_addr_t width to 44-bit to avoid using a swiotlb mapping. In addition, if dma_map_single fails, it should return immediately instead of continuing doing the DMA operation which bases on invalid addr

[PATCH 1/5] spi: spi-zynqmp-gqspi: fix clk_enable/disable imbalance issue

2021-04-15 Thread quanyang . wang
From: Quanyang Wang The clks "pclk" and "ref_clk" are enabled twice during the probe. The first time is in the function zynqmp_qspi_probe and the second time is in zynqmp_qspi_setup_op which is called by devm_spi_register_controller. Then calling zynqmp_qspi_remove (rmmod this module) to disable

[PATCH 3/5] spi: spi-zynqmp-gqspi: Resolved slab-out-of-bounds bug

2021-04-15 Thread quanyang . wang
From: Amit Kumar Mahapatra During a transfer the driver filled the fifo with 4bytes, even if the data that needs to be transfer is less that 4bytes. This resulted in slab-out-of-bounds bug in KernelAddressSanitizer. This patch resolves slab-out-of-bounds bug by filling the fifo with the number o

[PATCH 2/5] spi: spi-zynqmp-gqspi: fix hang issue when suspend/resume

2021-04-15 Thread quanyang . wang
From: Quanyang Wang After calling platform_set_drvdata(pdev, xqspi) in probe, the return value of dev_get_drvdata(dev) is a pointer to struct zynqmp_qspi but not struct spi_controller. A wrong structure type passing to the functions spi_controller_suspend/resume will hang the system. And we shou

[PATCH 0/5] spi: spi-zynqmp-gqspi: fix spi issues

2021-04-15 Thread quanyang . wang
From: Quanyang Wang Hi all, This series fix some issues that occurs in spi-zynqmp-gqspi.c. Thanks, Quanyang Amit Kumar Mahapatra (1): spi: spi-zynqmp-gqspi: Resolved slab-out-of-bounds bug Quanyang Wang (4): spi: spi-zynqmp-gqspi: fix clk_enable/disable imbalance issue spi: spi-zynqmp-g

Re: [PATCH 5.4 00/18] 5.4.113-rc1 review

2021-04-15 Thread Florian Fainelli
On 4/15/2021 7:47 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.4.113 release. > There are 18 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

Re: [PATCH] direct-io: use read lock for DIO_LOCKING flag

2021-04-15 Thread Al Viro
On Thu, Apr 15, 2021 at 12:24:13PM +0200, Jan Kara wrote: > On Thu 15-04-21 17:43:32, Chao Yu wrote: > > 9902af79c01a ("parallel lookups: actual switch to rwsem") changes inode > > lock from mutex to rwsem, however, we forgot to adjust lock for > > DIO_LOCKING flag in do_blockdev_direct_IO(), The

[gustavoars-linux:testing/warray-bounds 1/13] net/sctp/sm_make_chunk.c:3150:4: warning: 'memcpy' offset [17, 28] from the object at 'addr' is out of the bounds of referenced subobject 'v4' with type '

2021-04-15 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/warray-bounds head: 8bd0f043b3e94069930bec5cb3fbb5c857748c80 commit: 5f8bd90197ff7ab1cf9f06dd9c594f3636c71297 [1/13] Makefile: Enable -Warray-bounds config: parisc-randconfig-r016-20210415 (attached as .config

[PATCH net-next,v3] net: ethernet: mediatek: ppe: fix busy wait loop

2021-04-15 Thread Ilya Lipnitskiy
The intention is for the loop to timeout if the body does not succeed. The current logic calls time_is_before_jiffies(timeout) which is false until after the timeout, so the loop body never executes. Fix by using readl_poll_timeout as a more standard and less error-prone solution. Fixes: ba37b7ca

Re: [PATCH] watchdog: aspeed: fix integer overflow in set_timeout handler

2021-04-15 Thread Joel Stanley
On Fri, 16 Apr 2021 at 00:12, wrote: > > From: Tao Ren > > Fix the time comparison (timeout vs. max_hw_heartbeat_ms) in set_timeout > handler to avoid potential integer overflow when the supplied timeout is > greater than aspeed's maximum allowed timeout (4294 seconds). > > Fixes: efa859f7d786 ("

Re: [PATCH 3/3] cxl/mem: Demarcate vendor specific capability IDs

2021-04-15 Thread Dan Williams
On Thu, Apr 15, 2021 at 4:26 PM Ben Widawsky wrote: > > Vendor capabilities occupy 0x8000 to 0x according to CXL 2.0 spec > 8.2.8.2.1 CXL Device Capabilities. While they are not defined by the > spec, they are allowed and not "unknown". Call this detail out in the > logs to let users easily di

Re: [PATCH v2 0/8] ccp: KVM: SVM: Use stack for SEV command buffers

2021-04-15 Thread Herbert Xu
On Thu, Apr 15, 2021 at 01:15:59PM -0500, Tom Lendacky wrote: > On 4/15/21 11:09 AM, Paolo Bonzini wrote: > > On 07/04/21 20:00, Tom Lendacky wrote: > >> For the series: > >> > >> Acked-by: Tom Lendacky > > > > Shall I take this as a request (or permission, whatever :)) to merge it > > through the

Re: [PATCH net-next,v2] net: ethernet: mediatek: ppe: fix busy wait loop

2021-04-15 Thread Andrew Lunn
On Thu, Apr 15, 2021 at 05:11:48PM -0700, Ilya Lipnitskiy wrote: > The intention is for the loop to timeout if the body does not succeed. > The current logic calls time_is_before_jiffies(timeout) which is false > until after the timeout, so the loop body never executes. > > Fix by using readl_poll

Re: [PATCH v2 0/2] Fix binfmt_flat loader for RISC-V

2021-04-15 Thread Damien Le Moal
On 2021/04/16 9:22, Al Viro wrote: > On Thu, Apr 15, 2021 at 07:56:05AM +0200, Christoph Hellwig wrote: >> binfmt_flat tends to go through Greg's uclinux tree, adding him and >> the list. > > FWIW, my involvement with binfmt_flat had been pretty much nil - > the least trivial had been "binfm

Re: [PATCH 7/7] cxl: Add HDM decoder capbilities

2021-04-15 Thread Dan Williams
On Thu, Apr 15, 2021 at 4:50 PM Ben Widawsky wrote: > > Thanks for looking. Mostly trivial agreements or disagreements which I don't > care much about, but I'd really like you to focus on the last point, please. > > On 21-04-15 16:27:14, Dan Williams wrote: > > On Wed, Apr 7, 2021 at 3:26 PM Ben W

Re: [PATCH v2 0/2] Fix binfmt_flat loader for RISC-V

2021-04-15 Thread Al Viro
On Thu, Apr 15, 2021 at 07:56:05AM +0200, Christoph Hellwig wrote: > binfmt_flat tends to go through Greg's uclinux tree, adding him and > the list. FWIW, my involvement with binfmt_flat had been pretty much nil - the least trivial had been "binfmt_flat: flat_{get,put}_addr_from_rp() shoul

[PATCH] watchdog: aspeed: fix integer overflow in set_timeout handler

2021-04-15 Thread rentao . bupt
From: Tao Ren Fix the time comparison (timeout vs. max_hw_heartbeat_ms) in set_timeout handler to avoid potential integer overflow when the supplied timeout is greater than aspeed's maximum allowed timeout (4294 seconds). Fixes: efa859f7d786 ("watchdog: Add Aspeed watchdog driver") Reported-by:

[PATCH net-next,v2] net: ethernet: mediatek: ppe: fix busy wait loop

2021-04-15 Thread Ilya Lipnitskiy
The intention is for the loop to timeout if the body does not succeed. The current logic calls time_is_before_jiffies(timeout) which is false until after the timeout, so the loop body never executes. Fix by using readl_poll_timeout as a more standard and less error-prone solution. Fixes: ba37b7ca

Re: [PATCH v2] serial: stm32: optimize spin lock usage

2021-04-15 Thread Hua Dillon
Hi Erwan, Erwan LE RAY 于2021年4月16日周五 上午1:10写道: > > Hi Dillon, > > STM32MP151 is mono-core, but both STM32MP153 and STM32MP157 are > dual-core (see > https://www.st.com/content/st_com/en/products/microcontrollers-microprocessors/stm32-arm-cortex-mpus.html). > So your point is fully relevant, thank

Re: [PATCH 5.10 12/25] radix tree test suite: Fix compilation

2021-04-15 Thread Sasha Levin
On Thu, Apr 15, 2021 at 04:12:36PM +0100, Matthew Wilcox wrote: On Thu, Apr 15, 2021 at 04:48:06PM +0200, Greg Kroah-Hartman wrote: From: Matthew Wilcox (Oracle) [ Upstream commit 7487de534dcbe143e6f41da751dd3ffcf93b00ee ] Commit 4bba4c4bb09a added tools/include/linux/compiler_types.h which i

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