[PATCH] pkt_sched: rate overflow fix

2013-07-02 Thread Yang Yingliang
lat 50.0ms iperf -c host -t 30 -i 10 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.0 sec 764 MBytes 641 Mbits/sec [ 3] 10.0-20.0 sec 730 MBytes 612 Mbits/sec Signed-off-by: Yang Yingliang --- include/uapi/linux/pkt_sched.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH] arm64: fix a migrating irq bug when hotplug cpu

2015-08-29 Thread Yang Yingliang
From: Yang Yingliang When cpu is disabled, all irqs will be migratged to another cpu. In some cases, a new affinity is different, it needed to be coppied to irq's affinity. But if the type of irq is LPI, it's affinity will not be coppied because of irq_set_affinity's return val

[PATCH] ARM: fix a migrating irq bug when hotplug cpu

2015-08-29 Thread Yang Yingliang
From: Yang Yingliang When cpu is disabled, all irqs will be migratged to another cpu. In some cases, a new affinity is different, it needed to be coppied to irq's affinity. But if the type of irq is LPI, it's affinity will not be coppied because of irq_set_affinity's return val

Re: [PATCH] arm64: fix a migrating irq bug when hotplug cpu

2015-09-01 Thread Yang Yingliang
在 2015/8/31 20:20, Marc Zyngier 写道: On Sun, 30 Aug 2015 21:15:56 +0800 Hanjun Guo wrote: On 08/30/2015 02:12 AM, Marc Zyngier wrote: On 2015-08-29 16:12, Jiang Liu wrote: On 2015/8/29 21:00, Yang Yingliang wrote: From: Yang Yingliang When cpu is disabled, all irqs will be migratged to

[RFC PATCH v1 0/4] arm/arm64: fix a migrating irq bug when hotplug cpu

2015-09-05 Thread Yang Yingliang
Deacon Cc: Russell King - ARM Linux Cc: Hanjun Guo Yang Yingliang (4): genirq: Introduce irq_settings_set_move_pcntxt() helper irqchip: GICv3: set non-percpu irqs status with _IRQ_MOVE_PCNTXT genirq: rename config GENERIC_PENDING_IRQ to GENERIC_IRQ_MIGRATION arm/arm64: fix a migrating

[RFC PATCH v1 1/4] genirq: Introduce irq_settings_set_move_pcntxt() helper

2015-09-05 Thread Yang Yingliang
It's expected to use the helper when interrupt can be moved in process. Cc: Jiang Liu Cc: Thomas Gleixner Cc: Marc Zyngier Cc: Mark Rutland Cc: Will Deacon Cc: Russell King - ARM Linux Cc: Hanjun Guo Signed-off-by: Yang Yingliang --- include/linux/irq.h | 1 + kernel/irq/irqd

[RFC PATCH v1 4/4] arm/arm64: fix a migrating irq bug when hotplug cpu

2015-09-05 Thread Yang Yingliang
sell King - ARM Linux Cc: Hanjun Guo Signed-off-by: Yang Yingliang --- arch/arm/Kconfig | 1 + arch/arm/include/asm/irq.h | 1 - arch/arm/kernel/irq.c| 62 arch/arm64/Kconfig | 1 + arch/arm64/include/asm/irq.h | 1 - ar

[RFC PATCH v1 2/4] irqchip: GICv3: set non-percpu irqs status with _IRQ_MOVE_PCNTXT

2015-09-05 Thread Yang Yingliang
: Yang Yingliang --- drivers/irqchip/irq-gic-v3.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c index e406bc5..9108387 100644 --- a/drivers/irqchip/irq-gic-v3.c +++ b/drivers/irqchip/irq-gic-v3.c @@ -688,6 +688,7 @@ static int

[RFC PATCH v1 3/4] genirq: rename config GENERIC_PENDING_IRQ to GENERIC_IRQ_MIGRATION

2015-09-05 Thread Yang Yingliang
Make the config name more general for moving other migration interrupts code into kernel/irq/migration.c Cc: Jiang Liu Cc: Thomas Gleixner Cc: Marc Zyngier Cc: Mark Rutland Cc: Will Deacon Cc: Russell King - ARM Linux Cc: Hanjun Guo Signed-off-by: Yang Yingliang --- arch/arc/Kconfig

Re: [RFC PATCH v1 1/4] genirq: Introduce irq_settings_set_move_pcntxt() helper

2015-09-06 Thread Yang Yingliang
On 2015/9/7 6:08, Thomas Gleixner wrote: On Sun, 6 Sep 2015, Yang Yingliang wrote: It's expected to use the helper when interrupt can be moved in process. What's wrong with using the existing helper? irq_set_status_flags(irq, IRQ_MOVE_PCNTXT); It looks OK. I will u

Re: [RFC PATCH v1 2/4] irqchip: GICv3: set non-percpu irqs status with _IRQ_MOVE_PCNTXT

2015-09-06 Thread Yang Yingliang
On 2015/9/6 13:56, Jiang Liu wrote: On 2015/9/6 12:23, Yang Yingliang wrote: Use irq_settings_set_move_pcntxt() helper irqs status with _IRQ_MOVE_PCNTXT. So that it can do set affinity when calling irq_set_affinity_locked(). Hi Yingliang, We could only set _IRQ_MOVE_PCNTCT flag to

Re: [RFC PATCH v1 4/4] arm/arm64: fix a migrating irq bug when hotplug cpu

2015-09-06 Thread Yang Yingliang
On 2015/9/6 13:55, Jiang Liu wrote: On 2015/9/6 12:23, Yang Yingliang wrote: When cpu is disabled, all irqs will be migratged to another cpu. In some cases, a new affinity is different, it needed to be coppied to irq's affinity. But if the type of irq is LPI, it's affinity w

Re: [RFC PATCH v1 0/4] arm/arm64: fix a migrating irq bug when hotplug cpu

2015-09-06 Thread Yang Yingliang
On 2015/9/6 16:07, Jiang Liu wrote: On 2015/9/6 12:23, Yang Yingliang wrote: Hi All, There is a bug: When cpu is disabled, all irqs will be migratged to another cpu. In some cases, a new affinity is different, it needed to be coppied to irq's affinity. But if the type of irq is LPI,

Problem about CPU stalling in hrtimer_intterrupts()

2015-10-21 Thread Yang Yingliang
Hi Thomas, I got the following call trace when I called some set time syscalls in userspace. ---start--- Jan 01 00:02:29 Linux kernel: INFO: rcu_sched detected stalls on CPUs/tasks: Jan 01 00:02:29 Linux kernel: 0: (2 GPs behind) idle=913/1/0 softirq=59289/59291 fqs=488 Jan 01 00:02:2

Re: [RFC PATCH v6 3/3] arm: fix a migrating irq bug when hotplug cpu

2015-10-22 Thread Yang Yingliang
On 2015/10/22 17:26, Russell King - ARM Linux wrote: On Wed, Oct 21, 2015 at 09:29:08PM +0100, Russell King - ARM Linux wrote: On Wed, Oct 21, 2015 at 01:47:49PM +0200, Geert Uytterhoeven wrote: On Thu, Sep 24, 2015 at 11:32 AM, Yang Yingliang wrote: When cpu is disabled, all irqs will be

Re: Problem about CPU stalling in hrtimer_intterrupts()

2015-10-22 Thread Yang Yingliang
On 2015/10/22 18:25, Thomas Gleixner wrote: On Thu, 22 Oct 2015, Ding Tianhong wrote: On 2015/10/22 15:43, Thomas Gleixner wrote: Jan 01 00:03:32 Linux kernel: i:0 basenow.tv64:4809284991830 hrtimer_get_softexpires_tv64(timer):444012000 ccpu0 timer:ffdffdec6138, timer->function:ffc

Supporting more IRQs than NR_IRQS + 8196 on ARM64 server

2018-06-22 Thread Yang Yingliang
Hi, Marc Current system only supports (NR_IRQS + 8196) interrupts. It's not enough on ARM64 server, on D06 we have several pcie devices and each device supports 256 VMs and each VM uses 64 interrupts. Can we set NR_IRQS to a bigger value to support more interrupts ? Thanks, Yang

[RFC PATCH 3/4] irqchip/gic-v3-its: change prop_page to per-cpu type to support CommonLPIAff field

2018-03-11 Thread Yang Yingliang
. 11 All Redistributors with the same Aff3.Aff2.Aff1 value must share an LPI Configuration table. Signed-off-by: Yang Yingliang --- drivers/irqchip/irq-gic-v3-its.c | 81 -- include/linux/irqchip/arm-gic-v3.h | 6 ++- 2 files changed, 65 insertions

[RFC PATCH 2/4] irqchip/gic-v3-its: replace alloc_pages() with alloc_pages_node()

2018-03-11 Thread Yang Yingliang
Use alloc_pages_node() to allocate pages on current node. Signed-off-by: Yang Yingliang --- drivers/irqchip/irq-gic-v3-its.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index a03e18e..4ebe131

[RFC PATCH 0/4] add support for CommonLPIAff field

2018-03-11 Thread Yang Yingliang
same Aff3 value must share an LPI Configurationt table. 10 All Redistributors 11 All Redistributors with the same Aff3.Aff2.Aff1 value must share an LPI Configuration table. Yang Yingliang (4): irqchip/gic-v3: add common_aff_lpi field in struct rdists irqchip/gic-v3-its: replace alloc_pages

[RFC PATCH 4/4] irqchip/gic-v3-its: sync config of LPIs if there are more than one prop_page

2018-03-11 Thread Yang Yingliang
The config of LPIs need to be same in each prop_page. So if one prop_page is modified, other prop_page should be updated too. Signed-off-by: Yang Yingliang --- drivers/irqchip/irq-gic-v3-its.c | 39 ++- 1 file changed, 30 insertions(+), 9 deletions(-) diff

[RFC PATCH 1/4] irqchip/gic-v3: add common_aff_lpi field in struct rdists

2018-03-11 Thread Yang Yingliang
Read CommonLPIAff from GICR_TYPER and check whether the values are same in each register. If they are different, prints warning message and set CommonLPIAff to zero. Signed-off-by: Yang Yingliang --- drivers/irqchip/irq-gic-v3.c | 20 include/linux/irqchip/arm-gic-v3

Re: [RFC PATCH 0/4] add support for CommonLPIAff field

2018-03-12 Thread Yang Yingliang
On 2018/3/12 17:55, Marc Zyngier wrote: On 12/03/18 06:49, Yang Yingliang wrote: This patch set adjust struct rdists to support CommonLPIAff field. This field is described in spec: CommonLPIAff, bits [25:24] The affinity level at which Redistributors share a LPI Configuration table. 00 All

[RFC PATCH] irqchip/gic-v3-its: handle wrapped case in its_wait_for_range_completion()

2018-03-05 Thread Yang Yingliang
From: Yang Yingliang While cpus posting a bunch of ITS commands, the cmd_queue and rd_idx will be wrapped easily. And current way of handling wrapped case is not quite right. Such as, in direct case, rd_idx will wrap if other cpus post commands that make rd_idx increase. When rd_idx wrapped

[PATCH 3/4] irqchip/mbigen: add support for a MBIGEN generating SPIs

2018-10-16 Thread Yang Yingliang
erate SPIs. Signed-off-by: Yang Yingliang --- drivers/irqchip/irq-mbigen.c | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-mbigen.c b/drivers/irqchip/irq-mbigen.c index f05998f..37c1932 100644 --- a/drivers/irqchip/irq-mbigen.c +++

[PATCH 1/4] irqchip/gic-v3-mbi: fix uninitialized mbi_lock

2018-10-16 Thread Yang Yingliang
mbi_lock is uninitialized, use marco DEFINE_MUTEX to initialize it. Signed-off-by: Yang Yingliang --- drivers/irqchip/irq-gic-v3-mbi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-gic-v3-mbi.c b/drivers/irqchip/irq-gic-v3-mbi.c index ad70e7c..fbfa7ff

[PATCH 0/4] add support for MBIGEN generating message based SPIs

2018-10-16 Thread Yang Yingliang
SPIs and a bugfix for MBI driver. Patch #1 is a bugfix for MBI driver. Pathc #2 ~ #4 is support for MBIGEN generating message based SPIs. Yang Yingliang (4): irqchip/gic-v3-mbi: fix uninitialized mbi_lock irqchip/mbigen: rename register marcros irqchip/mbigen: add support for a MBIGEN gener

[PATCH 4/4] dt-bindings/irqchip/mbigen: add example of MBIGEN generate SPIs

2018-10-16 Thread Yang Yingliang
Now MBIGEN can support to generate SPIs by writing GICD_SETSPIR. Add dt example to help document. Signed-off-by: Yang Yingliang --- .../interrupt-controller/hisilicon,mbigen-v2.txt| 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Documentation

[PATCH 2/4] irqchip/mbigen: rename register marcros

2018-10-16 Thread Yang Yingliang
A MBIGEN can also be used for generating SPIs, so let's rename register macros to make them more resonable. The first 64-pins of MBIGEN is used by SPIs, so rename RESERVED_IRQ_PER_MBIGEN_CHIP to SPI_NUM_PER_MBIGEN_CHIP and change the comment for this marcro. Signed-off-by: Yang Ying

Re: [PATCH 3/4] irqchip/mbigen: add support for a MBIGEN generating SPIs

2018-10-17 Thread Yang Yingliang
Hi, Marc On 2018/10/18 0:30, Marc Zyngier wrote: On 16/10/18 10:15, Yang Yingliang wrote: Now with 5052875 ("irqchip/gic-v3: Add support for Message Based Interrupts as an MSI controller"), we can support MBIGEN to generate message based SPIs by writing GICD_SETSPIR. The first

[PATCH v2 3/4] irqchip/mbigen: add support for a MBIGEN generating SPIs

2018-10-26 Thread Yang Yingliang
erate SPIs. Signed-off-by: Yang Yingliang --- drivers/irqchip/irq-mbigen.c | 29 - 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/drivers/irqchip/irq-mbigen.c b/drivers/irqchip/irq-mbigen.c index f05998f..72db969 100644 --- a/drivers/irqchip/irq-mbig

[PATCH v2 1/4] irqchip/gic-v3-mbi: fix uninitialized mbi_lock

2018-10-26 Thread Yang Yingliang
mbi_lock is uninitialized, use marco DEFINE_MUTEX to initialize it. Signed-off-by: Yang Yingliang --- drivers/irqchip/irq-gic-v3-mbi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-gic-v3-mbi.c b/drivers/irqchip/irq-gic-v3-mbi.c index ad70e7c..fbfa7ff

[PATCH v2 4/4] dt-bindings/irqchip/mbigen: add example of MBIGEN generate SPIs

2018-10-26 Thread Yang Yingliang
Now MBIGEN can support to generate SPIs by writing GICD_SETSPIR. Add dt example to help document. Signed-off-by: Yang Yingliang --- .../interrupt-controller/hisilicon,mbigen-v2.txt| 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Documentation

[PATCH v2 0/4] add support for MBIGEN generating message based SPIs

2018-10-26 Thread Yang Yingliang
SPIs and a bugfix for MBI driver. Patch #1 is a bugfix for MBI driver. Pathc #2 ~ #4 is support for MBIGEN generating message based SPIs. v2: Move the doorbell address comments to the top. Yang Yingliang (4): irqchip/gic-v3-mbi: fix uninitialized mbi_lock irqchip/mbigen: rename regist

[PATCH v2 2/4] irqchip/mbigen: rename register marcros

2018-10-26 Thread Yang Yingliang
A MBIGEN can also be used for generating SPIs, so let's rename register macros to make them more resonable. The first 64-pins of MBIGEN is used by SPIs, so rename RESERVED_IRQ_PER_MBIGEN_CHIP to SPI_NUM_PER_MBIGEN_CHIP and change the comment for this marcro. Signed-off-by: Yang Ying

[PATCH -next] soc/tegra: fuse: add missing iounmap() on error in tegra_init_fuse()

2021-04-08 Thread Yang Yingliang
Add the missing iounmap() before return from tegra_init_fuse() in the error handling case. Fixes: 9f94fadd75d3 ("soc/tegra: fuse: Register cell lookups for compatibility") Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/soc/tegra/fuse/fuse-tegra.c | 4 +++- 1 file

[PATCH -next] clocksource/drivers/qcom: add missing iounmap() on error in msm_dt_timer_init()

2021-04-08 Thread Yang Yingliang
base and cpu0_base are not unmapped on error path, add the missing iounmap() before return msm_dt_timer_init() in the error handling cases. Fixes: 6e3321631ac2 ("ARM: msm: Add DT support to msm_timer") Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/clocksource/ti

[PATCH -next] media: camss: ispif: Remove redundant dev_err call in msm_ispif_subdev_init()

2021-04-08 Thread Yang Yingliang
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/media/platform/qcom/camss/camss-ispif.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions

[PATCH -next v2] clocksource/drivers/qcom: add missing iounmap() on error in msm_dt_timer_init()

2021-04-08 Thread Yang Yingliang
base and cpu0_base are not unmapped on error path, add the missing iounmap() before return msm_dt_timer_init() in the error handling cases. Fixes: 6e3321631ac2 ("ARM: msm: Add DT support to msm_timer") Reported-by: Hulk Robot Signed-off-by: Yang Yingliang Reviewed-by: Manivannan

[RFC PATCH] arm64: Image: Allow the appending of a device tree binary

2015-06-04 Thread Yang Yingliang
This patch provides the ability to boot using a device tree that is appended to the raw binary Image (e.g. cat Image .dtb > Image_w_dtb). Both BE and LE conditions are tested. Got references from e2a6a3aa ("ARM: zImage: Allow the appending of a device tree binary"). Signed

Re: [PATCH] irqchip/gic-v3-its: handle rd_idx wrapping in its_wait_for_range_completion()

2018-02-28 Thread Yang Yingliang
On 2018/2/12 2:45, Marc Zyngier wrote: Hi, Marc Sorry for replying so late. On Sun, 11 Feb 2018 03:42:01 +, Yang Yingliang wrote: Hi Yang, In direct case, rd_idx will wrap if other cpus post commands that make rd_idx increase. When rd_idx wrapped, the driver prints timeout messages but

[PATCH] irqchip/gic-v3-its: fix ITS queue timeout

2018-06-04 Thread Yang Yingliang
s no online cpu in cpu_mask. Signed-off-by: Yang Yingliang --- drivers/irqchip/irq-gic-v3-its.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index 5416f2b..edd92a9 100644 --- a/drivers/irqchip/irq-gic-v3-i

Re: [PATCH] irqchip/gic-v3-its: fix ITS queue timeout

2018-06-05 Thread Yang Yingliang
Hi, Julien On 2018/6/5 18:16, Julien Thierry wrote: Hi Yang, On 05/06/18 07:30, Yang Yingliang wrote: When the kernel booted with maxcpus=x, 'x' is smaller than actual cpu numbers, the TAs of offline cpus won't be set to its->collection. If LPI is bind to offline cpu, sync

[PATCH v2] irqchip/gic-v3-its: fix ITS queue timeout

2018-06-05 Thread Yang Yingliang
s no online cpu in cpu_mask. Signed-off-by: Yang Yingliang --- drivers/irqchip/irq-gic-v3-its.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index 5416f2b..d8b9539 100644 --- a/drivers/irqchip/irq-gic-v3-i

Re: kernel BUG at kernel/cred.c:434!

2019-04-17 Thread Yang Yingliang
Hi, Casey On 2019/4/18 8:24, Casey Schaufler wrote: On 4/17/2019 4:39 PM, Paul Moore wrote: On Wed, Apr 17, 2019 at 12:27 PM Oleg Nesterov wrote: On 04/17, Paul Moore wrote: On Wed, Apr 17, 2019 at 10:57 AM Oleg Nesterov wrote: On 04/17, Paul Moore wrote: I'm tempted to simply return an e

Re: [PATCH] ipmi_si: fix use-after-free of resource->name

2019-01-25 Thread Yang Yingliang
On 2019/1/26 4:35, Corey Minyard wrote: On Fri, Jan 25, 2019 at 10:30:59AM +0800, Yang Yingliang wrote: When we excute the following commands, we got oops rmmod ipmi_si cat /proc/ioports snip... If io_setup is called successful in try_smi_init() but try_smi_init() goes out_err before

[PATCH v2] ipmi_si: fix use-after-free of resource->name

2019-01-26 Thread Yang Yingliang
ested-by: Corey Minyard Signed-off-by: Yang Yingliang --- drivers/char/ipmi/ipmi_si_intf.c| 5 + drivers/char/ipmi/ipmi_si_port_io.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c index dc8603d..f1b9fda 10064

Re: [Openipmi-developer] [PATCH v2] ipmi_si: fix use-after-free of resource->name

2019-01-27 Thread Yang Yingliang
On 2019/1/26 23:08, Corey Minyard wrote: On Sat, Jan 26, 2019 at 05:14:54PM +0800, Yang Yingliang wrote: When we excute the following commands, we got oops rmmod ipmi_si cat /proc/ioports snip.. If io_setup is called successful in try_smi_init() but try_smi_init() goes out_err before

[PATCH v3] ipmi_si: fix use-after-free of resource->name

2019-01-27 Thread Yang Yingliang
o Suggested-by: Corey Minyard Signed-off-by: Yang Yingliang --- drivers/char/ipmi/ipmi_si_intf.c| 5 + drivers/char/ipmi/ipmi_si_mem_io.c | 5 +++-- drivers/char/ipmi/ipmi_si_port_io.c | 5 +++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/drivers/char/ipmi/ipmi_si_intf.c

Re: [PATCH] vgacon: Fix an out-of-bounds in vgacon_scrollback_update()

2020-07-30 Thread Yang Yingliang
On 2020/7/30 19:04, Jiri Slaby wrote: On 13. 07. 20, 12:57, Yang Yingliang wrote: I got a slab-out-of-bounds report when I doing fuzz test. [ 334.989515] == [ 334.989577] BUG: KASAN: slab-out-of-bounds in vgacon_scroll+0x57a

[PATCH -next] crypto: hisilicon/hpre: fix link error

2021-03-23 Thread Yang Yingliang
ot;crypto_ecdh_decode_key" [drivers/crypto/hisilicon/hpre/hisi_hpre.ko] undefined! Fixes: 90274769cf79 ("crypto: hisilicon/hpre - add 'CURVE25519' algorithm") Fixes: 05e7b906aa7c ("crypto: hisilicon/hpre - add 'ECDH' algorithm") Signed-off-by: Yang Ying

[PATCH 0/3] arm64: lib: improve copy performance

2021-03-23 Thread Yang Yingliang
This patchset reduce instructions in copy_template.S to improve the performance of copy memory, when size is ge 64 bytes. Yang Yingliang (3): arm64: lib: introduce ldp2/stp2 macro arm64: lib: improve copy performance when size is ge 128 bytes arm64: lib: improve copy performance when size

[PATCH 1/3] arm64: lib: introduce ldp2/stp2 macro

2021-03-23 Thread Yang Yingliang
Introduce ldp2/stp2 to load/store without add src/dst. Signed-off-by: Yang Yingliang --- arch/arm64/include/asm/asm-uaccess.h | 16 arch/arm64/lib/copy_from_user.S | 8 arch/arm64/lib/copy_in_user.S| 8 arch/arm64/lib/copy_to_user.S| 8

[PATCH 2/3] arm64: lib: improve copy performance when size is ge 128 bytes

2021-03-23 Thread Yang Yingliang
patch: memcpy: 107.12 copy_from_user: 157.50 copy_to_user: 198.85 It's about 25% improvement in memcpy(). Signed-off-by: Yang Yingliang --- arch/arm64/lib/copy_template.S | 36 +++--- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/arch/arm6

[PATCH 3/3] arm64: lib: improve copy performance when size is less than 128 and ge 64 bytes

2021-03-23 Thread Yang Yingliang
: 13.84 It's about 5.27% improvement in memcpy(). Signed-off-by: Yang Yingliang --- arch/arm64/lib/copy_template.S | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/arch/arm64/lib/copy_template.S b/arch/arm64/lib/copy_template.S index c3cd6f84c9c0..a9cbd47

[PATCH -next] scsi: fnic: remove unnecessary spin_lock_init() and INIT_LIST_HEAD()

2021-03-30 Thread Yang Yingliang
The spinlock and list head of fnic_list is initialized statically. It is unnecessary to initialize by spin_lock_init() and INIT_LIST_HEAD(). Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/scsi/fnic/fnic_main.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers

[PATCH -next] USB: gadget: udc: fix wrong pointer passed to IS_ERR() and PTR_ERR()

2021-03-30 Thread Yang Yingliang
IS_ERR() and PTR_ERR() use wrong pointer, it should be udc->virt_addr, fix it. Fixes: 1b9f35adb0ff ("usb: gadget: udc: Add Synopsys UDC Platform driver") Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/usb/gadget/udc/snps_udc_plat.c | 4 ++-- 1 file changed,

[PATCH -next] media: i2c: ov5648: fix wrong pointer passed to IS_ERR() and PTR_ERR()

2021-03-30 Thread Yang Yingliang
IS_ERR() and PTR_ERR() use wrong pointer, it should be sensor->dovdd, fix it. Fixes: e43ccb0a045f ("media: i2c: Add support for the OV5648 image sensor") Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/media/i2c/ov5648.c | 4 ++-- 1 file changed, 2 insertions(+)

[PATCH -next] fs: 9p: fix wrong pointer passed to IS_ERR() and PTR_ERR()

2021-03-30 Thread Yang Yingliang
IS_ERR() and PTR_ERR() use wrong pointer, it should be writeback_fid, fix it. Fixes: 5bfe97d7382b ("9p: Fix writeback fid incorrectly being attached to dentry") Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- fs/9p/vfs_file.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH -next] PCI: endpoint: fix missing destroy_workqueue()

2021-03-31 Thread Yang Yingliang
Add the missing destroy_workqueue() before return from pci_epf_test_init() in the error handling case and add destroy_workqueue() in pci_epf_test_exit(). Fixes: 349e7a85b25fa ("PCI: endpoint: functions: Add an EP function to test PCI") Reported-by: Hulk Robot Signed-off-by: Yang

[PATCH -next] staging: rtl8723bs: os_dep: remove unused variable 'ret'

2021-03-31 Thread Yang Yingliang
: de69e2b3f105 ("staging: rtl8723bs: remove DBG_COUNTER calls from os_dep/recv_linux.c") Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/staging/rtl8723bs/os_dep/recv_linux.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl872

[PATCH -next] staging: greybus: camera: Switch to memdup_user_nul()

2021-03-31 Thread Yang Yingliang
Use memdup_user_nul() helper instead of open-coding to simplify the code. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/staging/greybus/camera.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/staging/greybus/camera.c b/drivers/staging

[PATCH -next] soc: ixp4xx: qmgr: Use DEFINE_SPINLOCK() for spinlock

2021-03-31 Thread Yang Yingliang
spinlock can be initialized automatically with DEFINE_SPINLOCK() rather than explicitly calling spin_lock_init(). Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/soc/ixp4xx/ixp4xx-qmgr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/soc/ixp4xx

[PATCH -next] fs: dlm: fix missing unlock on error in accept_from_sock()

2021-03-27 Thread Yang Yingliang
Add the missing unlock before return from accept_from_sock() in the error handling case. Fixes: 6cde210a9758 ("fs: dlm: add helper for init connection") Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- fs/dlm/lowcomms.c | 1 + 1 file changed, 1 insertion(+) diff --gi

[PATCH -next] soc/tegra: fuse: don't return -ENOMEM when allocate lookups failed

2021-04-12 Thread Yang Yingliang
Signed-off-by: Yang Yingliang --- drivers/soc/tegra/fuse/fuse-tegra.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/soc/tegra/fuse/fuse-tegra.c b/drivers/soc/tegra/fuse/fuse-tegra.c index 94b60a692b51..a0def1219501 100644 --- a/drivers/soc/tegra/fus

[PATCH -next] leds: tlc591xx: fix return value check in tlc591xx_probe()

2021-04-06 Thread Yang Yingliang
After device_get_match_data(), tlc591xx is not checked, add check for it and also check np after dev_of_node. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/leds/leds-tlc591xx.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/leds/leds

[PATCH -next] media: tc358743: fix possible use-after-free in tc358743_remove()

2021-04-06 Thread Yang Yingliang
by calling cancel_delayed_work_sync(), which ensures that the work is properly cancelled, no longer running, and unable to re-schedule itself. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/media/i2c/tc358743.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH -next] media: adv7604: fix possible use-after-free in adv76xx_remove()

2021-04-06 Thread Yang Yingliang
by calling cancel_delayed_work_sync(), which ensures that the work is properly cancelled, no longer running, and unable to re-schedule itself. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/media/i2c/adv7604.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH -next] media: i2c: adv7511-v4l2: fix possible use-after-free in adv7511_remove()

2021-04-06 Thread Yang Yingliang
by calling cancel_delayed_work_sync(), which ensures that the work is properly cancelled, no longer running, and unable to re-schedule itself. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/media/i2c/adv7511-v4l2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dri

[PATCH -next] media: i2c: tda1997: Fix possible use-after-free in tda1997x_remove()

2021-04-06 Thread Yang Yingliang
by calling cancel_delayed_work_sync(), which ensures that the work is properly cancelled, no longer running, and unable to re-schedule itself. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/media/i2c/tda1997x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH -next] media: i2c: adv7842: fix possible use-after-free in adv7842_remove()

2021-04-06 Thread Yang Yingliang
by calling cancel_delayed_work_sync(), which ensures that the work is properly cancelled, no longer running, and unable to re-schedule itself. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/media/i2c/adv7842.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH -next] power: supply: generic-adc-battery: fix possible use-after-free in gab_remove()

2021-04-07 Thread Yang Yingliang
by calling cancel_delayed_work_sync(), which ensures that the work is properly cancelled, no longer running, and unable to re-schedule itself. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/power/supply/generic-adc-battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[PATCH -next] power: supply: s3c_adc_battery: fix possible use-after-free in s3c_adc_bat_remove()

2021-04-07 Thread Yang Yingliang
by calling cancel_delayed_work_sync(), which ensures that the work is properly cancelled, no longer running, and unable to re-schedule itself. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/power/supply/s3c_adc_battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH -next] phy: phy-twl4030-usb: Fix possible use-after-free in twl4030_usb_remove()

2021-04-07 Thread Yang Yingliang
by calling cancel_delayed_work_sync(), which ensures that the work is properly cancelled, no longer running, and unable to re-schedule itself. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/phy/ti/phy-twl4030-usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d

[PATCH -next] usb: gadget: tegra-xudc: Fix possible use-after-free in tegra_xudc_remove()

2021-04-07 Thread Yang Yingliang
by calling cancel_delayed_work_sync(), which ensures that the work is properly cancelled, no longer running, and unable to re-schedule itself. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/usb/gadget/udc/tegra-xudc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH -next] staging: rtl8723bs: os_dep: remove unused variable 'ret'

2021-03-31 Thread Yang Yingliang
Hi, On 2021/3/31 18:27, Greg KH wrote: On Wed, Mar 31, 2021 at 05:42:47PM +0800, Yang Yingliang wrote: GCC reports the following warning with W=1: drivers/staging/rtl8723bs/os_dep/recv_linux.c:101:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] 101 | int ret

Re: [PATCH -next] staging: greybus: camera: Switch to memdup_user_nul()

2021-03-31 Thread Yang Yingliang
Hi, On 2021/3/31 18:24, Dan Carpenter wrote: On Wed, Mar 31, 2021 at 05:52:01PM +0800, Yang Yingliang wrote: Use memdup_user_nul() helper instead of open-coding to simplify the code. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/staging/greybus/camera.c | 10

[PATCH -next v2] staging: greybus: camera: Switch to memdup_user_nul()

2021-03-31 Thread Yang Yingliang
Use memdup_user_nul() helper instead of open-coding to simplify the code. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/staging/greybus/camera.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/staging/greybus/camera.c b/drivers

Re: [PATCH -next v2] staging: greybus: camera: Switch to memdup_user_nul()

2021-04-01 Thread Yang Yingliang
On 2021/4/1 13:59, Greg KH wrote: On Thu, Apr 01, 2021 at 11:17:52AM +0800, Yang Yingliang wrote: Use memdup_user_nul() helper instead of open-coding to simplify the code. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/staging/greybus/camera.c | 13 +++-- 1

Re: [PATCH -next v2] staging: greybus: camera: Switch to memdup_user_nul()

2021-04-01 Thread Yang Yingliang
On 2021/4/1 15:43, Dan Carpenter wrote: On Thu, Apr 01, 2021 at 11:17:52AM +0800, Yang Yingliang wrote: Use memdup_user_nul() helper instead of open-coding to simplify the code. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/staging/greybus/camera.c | 13

Re: [PATCH -next v2] staging: greybus: camera: Switch to memdup_user_nul()

2021-04-01 Thread Yang Yingliang
On 2021/4/1 15:47, Dan Carpenter wrote: On Thu, Apr 01, 2021 at 10:43:32AM +0300, Dan Carpenter wrote: On Thu, Apr 01, 2021 at 11:17:52AM +0800, Yang Yingliang wrote: Use memdup_user_nul() helper instead of open-coding to simplify the code. Reported-by: Hulk Robot Signed-off-by: Yang

[PATCH -next] locking/ww_mutex: fix missing destroy_workqueue() on error in test_ww_mutex_init()

2021-04-01 Thread Yang Yingliang
t;) Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- kernel/locking/test-ww_mutex.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/kernel/locking/test-ww_mutex.c b/kernel/locking/test-ww_mutex.c index 3e82f449b4ff..6e4faa853e56 100644 --- a/kern

[PATCH -next] media: ti-vpe: sc: remove redundant dev_err call in sc_create()

2021-04-01 Thread Yang Yingliang
There is an error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/media/platform/ti-vpe/sc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a

[PATCH -next] media: camss: csiphy: Remove redundant dev_err call in msm_csiphy_subdev_init()

2021-04-01 Thread Yang Yingliang
There is an error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/media/platform/qcom/camss/camss-csiphy.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions

[PATCH -next v3] staging: greybus: camera: Switch to memdup_user_nul()

2021-04-01 Thread Yang Yingliang
Use memdup_user_nul() helper instead of open-coding to simplify the code. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- v3: remove duplicate ';' v2: delete unnecessary blank line use return PTR_ERR(kbuf) instead --- drivers/staging/greybus/camera.c | 13 +++

[PATCH -next] media: ti-vpe: csc: remove redundant dev_err call in csc_create()

2021-04-01 Thread Yang Yingliang
There is an error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/media/platform/ti-vpe/csc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a

[PATCH -next] media: imx-pxp: remove redundant dev_err call in pxp_probe()

2021-04-01 Thread Yang Yingliang
There is an error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/media/platform/imx-pxp.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a

[PATCH -next] spi: fsl: add missing iounmap() on error in of_fsl_spi_probe()

2021-04-01 Thread Yang Yingliang
Add the missing iounmap() before return from of_fsl_spi_probe() in the error handling case. Fixes: 0f0581b24bd0 ("spi: fsl: Convert to use CS GPIO descriptors") Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/spi/spi-fsl-spi.c | 23 ++- 1 file c

[PATCH -next] drm/nouveau/gem: remove redundant semi-colon

2021-04-01 Thread Yang Yingliang
Signed-off-by: Yang Yingliang --- drivers/gpu/drm/nouveau/nouveau_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_gem.c b/drivers/gpu/drm/nouveau/nouveau_gem.c index c88cbb85f101..492e6794c5e6 100644 --- a/drivers/gpu/drm/nouveau

[PATCH -next] lan743x: remove redundant semi-colon

2021-04-01 Thread Yang Yingliang
Signed-off-by: Yang Yingliang --- drivers/net/ethernet/microchip/lan743x_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/microchip/lan743x_main.c b/drivers/net/ethernet/microchip/lan743x_main.c index 1c3e204d727c..e7ab5f3f73fd 100644 --- a/drivers

[PATCH -next] libbpf: remove redundant semi-colon

2021-04-01 Thread Yang Yingliang
Signed-off-by: Yang Yingliang --- tools/lib/bpf/linker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/bpf/linker.c b/tools/lib/bpf/linker.c index 46b16cbdcda3..4e08bc07e635 100644 --- a/tools/lib/bpf/linker.c +++ b/tools/lib/bpf/linker.c @@ -1895,7 +1895,7

[PATCH -next] KVM: selftests: remove redundant semi-colon

2021-04-01 Thread Yang Yingliang
Signed-off-by: Yang Yingliang --- tools/testing/selftests/kvm/x86_64/xen_shinfo_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kvm/x86_64/xen_shinfo_test.c b/tools/testing/selftests/kvm/x86_64/xen_shinfo_test.c index 804ff5ff022d..1f4a0599683c

[PATCH -next] iocost: remove redundant semi-colon

2021-04-01 Thread Yang Yingliang
Signed-off-by: Yang Yingliang --- include/trace/events/iocost.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/trace/events/iocost.h b/include/trace/events/iocost.h index e282ce02fa2d..6d1626e7a4ce 100644 --- a/include/trace/events/iocost.h +++ b/include/trace/events

[PATCH -next v2] libbpf: remove redundant semi-colon

2021-04-01 Thread Yang Yingliang
Remove redundant semi-colon in infinalize_btf_ext(). Signed-off-by: Yang Yingliang --- v2: add commit log --- tools/lib/bpf/linker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/bpf/linker.c b/tools/lib/bpf/linker.c index 46b16cbdcda3..4e08bc07e635 100644

[PATCH -next] staging/speakup: Switch to kmemdup_nul()

2021-04-02 Thread Yang Yingliang
Use kmemdup_nul() helper instead of open-coding to simplify the code. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/accessibility/speakup/i18n.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/accessibility/speakup/i18n.c b/drivers

[PATCH -next] KEYS: trusted: Switch to kmemdup_nul()

2021-04-02 Thread Yang Yingliang
Use kmemdup_nul() helper instead of open-coding to simplify the code. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- security/keys/trusted-keys/trusted_tpm1.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/security/keys/trusted-keys/trusted_tpm1.c b/security

[PATCH -next] scsi: target: iscsi: Switch to kmemdup_nul()

2021-04-02 Thread Yang Yingliang
Use kmemdup_nul() helper instead of open-coding to simplify the code. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/target/iscsi/iscsi_target_nego.c | 4 +--- drivers/target/iscsi/iscsi_target_parameters.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions

[PATCH -next] media: camss: csid: Remove redundant dev_err call in msm_csid_subdev_init()

2021-04-02 Thread Yang Yingliang
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/media/platform/qcom/camss/camss-csid.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff

Re: [PATCH -next] staging/speakup: Switch to kmemdup_nul()

2021-04-05 Thread Yang Yingliang
Hi, On 2021/4/2 21:13, Greg KH wrote: On Fri, Apr 02, 2021 at 05:21:11PM +0800, Yang Yingliang wrote: Use kmemdup_nul() helper instead of open-coding to simplify the code. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/accessibility/speakup/i18n.c | 4 +--- 1 file

[PATCH -next v2] speakup: i18n: Switch to kmemdup_nul() in spk_msg_set()

2021-04-05 Thread Yang Yingliang
Use kmemdup_nul() helper instead of open-coding to simplify the code in spk_msg_set(). Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- V2: change the tile and commit log. --- drivers/accessibility/speakup/i18n.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

  1   2   3   >