Sparse improvements & regressions for Linux v5.8-rc1 -> v5.9-rc1

2020-08-16 Thread Luc Van Oostenryck
Hi, Here is a comparison of Sparse's unique warnings between v5.8-rc1 & v5.9-rc1 on x86-64 (defconfig + allyesconfig). Note that the differences are be caused by changes in the kernel and in Sparse. The raw logs as well as the result of the processing giving the 'unique warnings' are available a

Re: [PATCH 1/2] ceph: Use generic debugging facility

2020-08-16 Thread kernel test robot
Hi Joe, I love your patch! Yet something to improve: [auto build test ERROR on ceph-client/for-linus] [also build test ERROR on v5.9-rc1 next-20200814] [cannot apply to sage-ceph/for-linus] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we sugge

AKZEPTIEREN SIE IM GUTEN GLAUBEN

2020-08-16 Thread Sophie Rizavas
-- Hallo Mein Mann und ich haben uns freiwillig für eine Spende entschieden, daher werden wir uns mit Ihnen in Verbindung setzen. Mit dieser Spende können Sie Wohltätigkeitsprojekte in Ihrer Nähe durchführen. Wenn Sie diese Nachricht erhalten haben: "Wir würden uns über eine schnelle Antwo

[PATCH 1/2] kernel/sys: only take tasklist_lock for get/setpriority(PRIO_PGRP)

2020-08-16 Thread Davidlohr Bueso
PRIO_PGRP needs the tasklist_lock mainly to serialize vs setpgid(2), to protect against any concurrent change_pid(PIDTYPE_PGID) that can move the task from one hlist to another while iterating. However, the remaining can only rely only on RCU: PRIO_PROCESS only does the task lookup and never iter

[PATCH 2/2] block: fix ioprio_get/set(IOPRIO_WHO_PGRP) vs setuid(2)

2020-08-16 Thread Davidlohr Bueso
do_each_pid_thread(PIDTYPE_PGID) can race with a concurrent change_pid(PIDTYPE_PGID) that can move the task from one hlist to another while iterating. Serialize ioprio_get/set to take the tasklist_lock in this case. Fixes: d69b78ba1de (ioprio: grab rcu_read_lock in sys_ioprio_{set,get}()) Cc: Greg

[PATCH -next 0/2] tasklist_lock vs get/set priority syscalls

2020-08-16 Thread Davidlohr Bueso
Hi, This is a (late) update on trying to reduce some of the scope of the tasklist_lock for get/setpriority(2) as well as the block io equivalent. This version addresses Oleg's previous concerns and incorporates his feedback. Changes from v1: https://lore.kernel.org/lkml/20200512000353.23653-1-d

drivers/message/fusion/mptbase.c:3754:9: sparse: sparse: cast removes address space '__iomem' of expression

2020-08-16 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5 commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 8 weeks ago config: riscv-randconfig-s031-20200817 (attached

[PATCH] ata: ahci: use ata_link_info() instead of ata_link_printk()

2020-08-16 Thread Xu Wang
Using ata_link_info() instead of ata_link_printk(). Signed-off-by: Xu Wang --- drivers/ata/ahci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 0c0a736eb861..9d72d907b4ee 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c

[PATCH V2 0/6] ceph: Use more generic logging

2020-08-16 Thread Joe Perches
Convert the dout macro to the normal pr_debug. Convert embedded function names in these changes to %s, __func__ Remove the dout macro definitions Joe Perches (6): ceph: Use generic debugging facility ceph: Remove embedded function names from pr_debug uses net: ceph: Use generic debugging fa

[PATCH V2 2/6] ceph: Remove embedded function names from pr_debug uses

2020-08-16 Thread Joe Perches
Use "%s: " ..., __func__ so function renaming changes the logging too. Signed-off-by: Joe Perches --- fs/ceph/addr.c | 57 +- fs/ceph/caps.c | 92 ++ fs/ceph/debugfs.c| 2 +- fs/ceph/dir.c| 16 fs/c

[PATCH V2 5/6] rbd: Use generic debugging facility

2020-08-16 Thread Joe Perches
The dout macro duplicates the generic features of pr_debug with __FILE__ and __func__ output capability when using dynamic_debug. Convert dout to pr_debug and remove the "pretty" print feature of dout. Miscellanea: o Realign arguments Signed-off-by: Joe Perches --- drivers/block/rbd.c | 231 +

[PATCH V2 4/6] net: ceph: Remove embedded function names from pr_debug uses

2020-08-16 Thread Joe Perches
Use "%s: " ..., __func__ so function renaming changes the logging too. Signed-off-by: Joe Perches --- net/ceph/auth_none.c | 2 +- net/ceph/auth_x.c | 26 ++-- net/ceph/ceph_common.c | 4 +- net/ceph/debugfs.c | 2 +- net/ceph/messenger.c | 91 +---

[PATCH V2 3/6] net: ceph: Use generic debugging facility

2020-08-16 Thread Joe Perches
The dout macro duplicates the generic features of pr_debug with __FILE__ and __func__ output capability when using dynamic_debug. Convert dout to pr_debug and remove the "pretty" print feature of dout. Miscellanea: o Realign arguments Signed-off-by: Joe Perches --- net/ceph/auth.c

[PATCH V2 6/6] ceph_debug: Remove now unused dout macro definitions

2020-08-16 Thread Joe Perches
All the uses have be converted to pr_debug, so remove these. Signed-off-by: Joe Perches --- include/linux/ceph/ceph_debug.h | 30 -- 1 file changed, 30 deletions(-) diff --git a/include/linux/ceph/ceph_debug.h b/include/linux/ceph/ceph_debug.h index d5a5da838caf..81c

Re: Linux 5.9-rc1 (sparse? kernel/time/timekeeping.c)

2020-08-16 Thread Randy Dunlap
On 8/16/20 1:50 PM, Linus Torvalds wrote: > This merge window felt a lot more normal than 5.8, and all the stats > confirm thar it seems to be the usual size. > on x86_64, allmodconfig: $ gcc --version gcc (SUSE Linux) 7.5.0 $ sparse --version 0.6.2 I seem to be having some problems with kern

[RFC v2 0/2] add bus lock VM exit support

2020-08-16 Thread Chenyi Qiang
Add the support for bus lock VM exit in KVM. It is a sub-feature of bus lock detection. Another sub-feature named bus lock debug exception is blocked due to requirement to rework the HW design: https://lore.kernel.org/lkml/87r1stmi1x@nanos.tec.linutronix.de/ In this patch series, the first pat

[RFC v2 1/2] KVM: VMX: Convert vcpu_vmx.exit_reason to a union

2020-08-16 Thread Chenyi Qiang
From: Sean Christopherson Convert vcpu_vmx.exit_reason from a u32 to a union (of size u32). The full VM_EXIT_REASON field is comprised of a 16-bit basic exit reason in bits 15:0, and single-bit modifiers in bits 31:16. Historically, KVM has only had to worry about handling the "failed VM-Entry"

[RFC v2 2/2] KVM: VMX: Enable bus lock VM exit

2020-08-16 Thread Chenyi Qiang
Virtual Machine can exploit bus locks to degrade the performance of system. Bus lock can be caused by split locked access to writeback(WB) memory or by using locks on uncacheable(UC) memory. The bus lock is typically >1000 cycles slower than an atomic operation within a cache line. It also disrupts

Re: [PATCH v2 0/9] Audio graph card updates and usage with Tegra210 audio

2020-08-16 Thread Kuninori Morimoto
Hi Sameer Cc Mark > This series proposes following enhancements to audio-graph card driver. > * Support multiple instances of a component. > * Support open platforms with empty Codec endpoint. > * Identify no-pcm DPCM DAI links which can be used in BE<->BE connections. > * Add new compatible

Re: [RFC][PATCH 0/4] arm64:kvm: teach guest sched that VCPUs can be preempted

2020-08-16 Thread Sergey Senozhatsky
On (20/07/21 13:17), Sergey Senozhatsky wrote: > Hello, > > RFC > > We noticed that in a number of cases when we wake_up_process() > on arm64 guest we end up enqueuing that task on a preempted VCPU. The culprit > appears to be the fact that arm64 guests are not aware of VCPU preemptio

Re: [PATCH RFC 01/12] irq_work: Add support to detect if work is pending

2020-08-16 Thread Joel Fernandes
On Sat, Aug 15, 2020 at 10:13:30AM +0200, pet...@infradead.org wrote: > On Fri, Aug 14, 2020 at 11:18:57PM -0400, Joel Fernandes (Google) wrote: > > https://lkml.kernel.org/r/20200722153017.024407...@infradead.org Thank you, so that means I can drop this patch then. - Joel

[PATCH] otx2_common: Use devm_kcalloc() in otx2_config_npa()

2020-08-16 Thread Xu Wang
A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "devm_kcalloc". Signed-off-by: Xu Wang --- drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c | 4 ++-- 1 file changed, 2 inser

Re: [PATCH RESEND] device_cgroup: Fix RCU list debugging warning

2020-08-16 Thread Stephen Rothwell
Hi all, On Sun, 7 Jun 2020 23:17:34 -0500 "Serge E. Hallyn" wrote: > On Sun, Jun 07, 2020 at 12:08:40PM -0700, Paul E. McKenney wrote: > > On Sun, Jun 07, 2020 at 06:23:40AM +1000, Stephen Rothwell wrote: > > > > > > On Mon, 6 Apr 2020 16:29:50 +0530 Amol Grover > > > wrote: > > > > > > >

RE: [PATCH RFC v2 00/18] Add VFIO mediated device support and DEV-MSI support for the idxd driver

2020-08-16 Thread Tian, Kevin
> From: Jason Gunthorpe > Sent: Friday, August 14, 2020 9:35 PM > > On Mon, Aug 10, 2020 at 07:32:24AM +, Tian, Kevin wrote: > > > > I would prefer to see that the existing userspace interface have the > > > extra needed bits for virtualization (eg by having appropriate > > > internal kernel

linux-next: Tree for Aug 17

2020-08-16 Thread Stephen Rothwell
Hi all, Changes since 20200814: New tree: memblock-fixes My fixes tree contains: 73c7adb54169 ("device_cgroup: Fix RCU list debugging warning") Non-merge commits (relative to Linus' tree): 664 760 files changed, 22791 insertions(+), 6127 deletions(-) ---

Re: Linux 5.9-rc1 (sparse? kernel/time/timekeeping.c)

2020-08-16 Thread Luc Van Oostenryck
On Sun, Aug 16, 2020 at 06:35:26PM -0700, Randy Dunlap wrote: > > on x86_64, allmodconfig: > > $ gcc --version > gcc (SUSE Linux) 7.5.0 > > $ sparse --version > 0.6.2 > > > I seem to be having some problems with kernel/time/timekeeping.c, > including a segfault. > > a. Is it sparse that segfa

Re: [PATCH RFC 02/12] entry/idle: Add a common function for activites during idle entry/exit

2020-08-16 Thread Joel Fernandes
Hello Peter, On Sat, Aug 15, 2020 at 10:14:41AM +0200, pet...@infradead.org wrote: > On Fri, Aug 14, 2020 at 11:18:58PM -0400, Joel Fernandes (Google) wrote: > > Currently only RCU hooks for idle entry/exit are called. In later > > patches, kernel-entry protection functionality will be added. > >

[PATCH] bsg-lib: convert comma to semicolon

2020-08-16 Thread Xu Wang
Replace a comma between expression statements by a semicolon. Signed-off-by: Xu Wang --- block/bsg-lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/bsg-lib.c b/block/bsg-lib.c index fb7b347f8010..d185396d88bb 100644 --- a/block/bsg-lib.c +++ b/block/bsg-lib.c @@ -3

Re: Linux 5.9-rc1 (sparse? kernel/time/timekeeping.c)

2020-08-16 Thread Randy Dunlap
On 8/16/20 7:15 PM, Luc Van Oostenryck wrote: > On Sun, Aug 16, 2020 at 06:35:26PM -0700, Randy Dunlap wrote: >> >> on x86_64, allmodconfig: >> >> $ gcc --version >> gcc (SUSE Linux) 7.5.0 >> >> $ sparse --version >> 0.6.2 >> >> >> I seem to be having some problems with kernel/time/timekeeping.c, >

include/linux/spinlock.h:393:9: sparse: sparse: context imbalance in 'ext4_trim_extent' - wrong count at exit

2020-08-16 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5 commit: ebc00dde8a975a543f5e1a7cdac93fef89fefe58 riscv: Add jump-label implementation date: 2 weeks ago config: riscv-randconfig-s031-20200817 (attached as .config)

RE: [PATCH RFC v2 00/18] Add VFIO mediated device support and DEV-MSI support for the idxd driver

2020-08-16 Thread Tian, Kevin
> From: Jason Gunthorpe > Sent: Friday, August 14, 2020 9:24 PM > > The same basic argument goes for all the points - the issue is really > the only uAPI we have for this stuff is under VFIO, and the better > solution is to disagregate that uAPI, not to try and make everything > pretend to be a V

[PATCHv2] serial: 8250: change lock order in serial8250_do_startup()

2020-08-16 Thread Sergey Senozhatsky
We have a number of "uart.port->desc.lock vs desc.lock->uart.port" lockdep reports coming from 8250 driver; this causes a bit of trouble to people, so let's fix it. The problem is reverse lock order in two different call paths: chain #1: serial8250_do_startup() spin_lock_irqsave(&port->lock);

Re: [PATCH] net: handle the return value of pskb_carve_frag_list() correctly

2020-08-16 Thread linmiaohe
David Miller wrote: >> +/* split line is in frag list */ >> +if (k == 0 && pskb_carve_frag_list(skb, shinfo, off - pos, gfp_mask)) { >> +/* skb_frag_unref() is not needed here as shinfo->nr_frags = 0. >> */ >> +if (skb_has_frag_list(skb)) >> +kf

[PATCH] ARM: dts: vfxxx: Add syscon compatible with ocotp

2020-08-16 Thread Chris Healy
From: Chris Healy Add syscon compatibility with Vybrid ocotp node. This is required to access the UID. Signed-off-by: Chris Healy --- arch/arm/boot/dts/vfxxx.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi ind

Re: [PATCH v3] perf parse-events: Set exclude_guest=1 for user-space counting

2020-08-16 Thread Jin, Yao
Hi Arnaldo, On 8/14/2020 8:47 PM, Arnaldo Carvalho de Melo wrote: Em Fri, Aug 14, 2020 at 09:21:20AM +0800, Jin Yao escreveu: Currently if we run 'perf record -e cycles:u', exclude_guest=0. But it doesn't make sense in most cases that we request for user-space counting but we also get the gues

Re: [PATCH v2] ACPI / APEI: do memory failure on the physical address reported by ARM processor error section

2020-08-16 Thread Xiaofei Tan
@James, Could you help to check if i have fixed your review comments? thanks. On 2020/8/5 17:12, Xiaofei Tan wrote: > After the commit 8fcc4ae6faf8 ("arm64: acpi: Make apei_claim_sea() > synchronise with APEI's irq work") applied, user-mode SEA is > preferentially processed by APEI. Do memory fail

[v3,1/4] dt-binding: reset-controller: ti: add reset-duration-us property

2020-08-16 Thread Crystal Guo
introduce 'reset' method to allow device do serialized assert and deassert operations in a single step, which needs a minimum delay to be waited between assert and deassert. Signed-off-by: Crystal Guo --- Documentation/devicetree/bindings/reset/ti-syscon-reset.txt | 5 + 1 file changed, 5 in

[v3,3/4] reset-controller: ti: introduce a new reset handler

2020-08-16 Thread Crystal Guo
Introduce ti_syscon_reset() to integrate assert and deassert together. If some modules need do serialized assert and deassert operations to reset itself, reset_control_reset can be called for convenience. Such as reset-qcom-aoss.c, it integrates assert and deassert together by 'reset' method. MTK

[v4,4/4] arm64: dts: mt8192: add infracfg_rst node

2020-08-16 Thread Crystal Guo
add infracfg_rst node which is for MT8192 platform Signed-off-by: Crystal Guo --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi index 93

[v3,2/4] dt-binding: reset-controller: ti: add 'mediatek,infra-reset' to compatible

2020-08-16 Thread Crystal Guo
The TI syscon reset controller provides a common reset management, and is suitable for MTK SoCs. Add compatible 'mediatek,infra-reset', which denotes to use ti reset-controller driver directly. Signed-off-by: Crystal Guo --- Documentation/devicetree/bindings/reset/ti-syscon-reset.txt | 1 + 1 fi

[v3,0/6] introduce TI reset controller for MT8192 SoC

2020-08-16 Thread Crystal Guo
v3: 1. revert v2 changes. 2. add 'reset-duration-us' property to declare a minimum delay, which needs to be waited between assert and deassert. 3. add 'mediatek,infra-reset' to compatible. v2 changes: https://patchwork.kernel.org/patch/11697371/ 1. add 'assert-deassert-together' property to introd

[PATCHv2] selftests: rtnetlink: load fou module for kci_test_encap_fou()

2020-08-16 Thread Po-Hsu Lin
The kci_test_encap_fou() test from kci_test_encap() in rtnetlink.sh needs the fou module to work. Otherwise it will fail with: $ ip netns exec "$testns" ip fou add port ipproto 47 RTNETLINK answers: No such file or directory Error talking to the kernel Add the CONFIG_NET_FOU into the c

Re: [PATCH] selftests: rtnetlink: load fou module for kci_test_encap_fou()

2020-08-16 Thread Po-Hsu Lin
On Sat, Aug 15, 2020 at 7:43 AM David Miller wrote: > > From: Po-Hsu Lin > Date: Thu, 13 Aug 2020 12:44:22 +0800 > > > diff --git a/tools/testing/selftests/net/config > > b/tools/testing/selftests/net/config > > index 3b42c06b..96d2763 100644 > > --- a/tools/testing/selftests/net/config > > +++

[PATCH] ARM: dts: imx7d-zii-rmu2: fix rgmii phy-mode for ksz9031 phy

2020-08-16 Thread Chris Healy
From: Chris Healy Since commit bcf3440c6dd7 ("net: phy: micrel: add phy-mode support for the KSZ9031 PHY") the networking is broken on the imx7d-zii-rmu2 board. Fix it by switching to phy-mode = "rgmii-id". Fixes: bcf3440c6dd7 ("net: phy: micrel: add phy-mode support for the KSZ9031 PHY") Sign

Re: [PATCH 10/10] mm/hugetlb: not necessary to abuse temporary page to workaround the nasty free_huge_page

2020-08-16 Thread Wei Yang
On Thu, Aug 13, 2020 at 01:46:38PM +0200, Michal Hocko wrote: >On Tue 11-08-20 14:43:28, Mike Kravetz wrote: >> On 8/10/20 11:54 PM, Michal Hocko wrote: >> > >> > I have managed to forgot all the juicy details since I have made that >> > change. All that remains is that the surplus pages accountin

[v4,0/4] introduce TI reset controller for MT8192 SoC

2020-08-16 Thread Crystal Guo
v4: fix typos on v3 commit message. v3: 1. revert v2 changes. 2. add 'reset-duration-us' property to declare a minimum delay, which needs to be waited between assert and deassert. 3. add 'mediatek,infra-reset' to compatible. v2 changes: https://patchwork.kernel.org/patch/11697371/ 1. add 'assert

[v4,3/4] reset-controller: ti: introduce a new reset handler

2020-08-16 Thread Crystal Guo
Introduce ti_syscon_reset() to integrate assert and deassert together. If some modules need do serialized assert and deassert operations to reset itself, reset_control_reset can be called for convenience. Such as reset-qcom-aoss.c, it integrates assert and deassert together by 'reset' method. MTK

[v4,4/4] arm64: dts: mt8192: add infracfg_rst node

2020-08-16 Thread Crystal Guo
add infracfg_rst node which is for MT8192 platform Signed-off-by: Crystal Guo --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi index 93

[v4,1/4] dt-binding: reset-controller: ti: add reset-duration-us property

2020-08-16 Thread Crystal Guo
introduce 'reset' method to allow device do serialized assert and deassert operations in a single step, which needs a minimum delay to be waited between assert and deassert. Signed-off-by: Crystal Guo --- Documentation/devicetree/bindings/reset/ti-syscon-reset.txt | 5 + 1 file changed, 5 in

[v4,2/4] dt-binding: reset-controller: ti: add 'mediatek,infra-reset' to compatible

2020-08-16 Thread Crystal Guo
The TI syscon reset controller provides a common reset management, and is suitable for MTK SoCs. Add compatible 'mediatek,infra-reset', which denotes to use ti reset-controller driver directly. Signed-off-by: Crystal Guo --- Documentation/devicetree/bindings/reset/ti-syscon-reset.txt | 1 + 1 fi

Re: [PATCH] serial: sh-sci: Make sure status register SCxSR is read in correct sequence

2020-08-16 Thread Rob Landley
On 8/16/20 11:22 AM, Prabhakar Mahadev Lad wrote: >> FTR, I gave it a try on the SH7751R-based I-O DATA USL-5P aka Landisk: >> SCIF is affected, and fixed by commit 3dc4db3662366306 ("serial: sh-sci: >> Make sure status register SCxSR is read in correct sequence"). >> > Thank you Geert. > > Cheers

Re: [PATCH] bsg-lib: convert comma to semicolon

2020-08-16 Thread Jens Axboe
On 8/16/20 7:16 PM, Xu Wang wrote: > Replace a comma between expression statements by a semicolon. Thanks, applied. -- Jens Axboe

Re: [PATCH] ata: ahci: use ata_link_info() instead of ata_link_printk()

2020-08-16 Thread Jens Axboe
On 8/16/20 6:18 PM, Xu Wang wrote: > Using ata_link_info() instead of ata_link_printk(). > > Signed-off-by: Xu Wang > --- > drivers/ata/ahci.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c > index 0c0a736eb861..9d72d907b4ee 1006

[PATCH v8 2/2] phy: Add USB3 PHY support for Intel LGM SoC

2020-08-16 Thread Ramuthevar,Vadivel MuruganX
From: Ramuthevar Vadivel Murugan Add support for USB PHY on Intel LGM SoC. Signed-off-by: Ramuthevar Vadivel Murugan Reviewed-by: Philipp Zabel --- drivers/phy/Kconfig | 11 ++ drivers/phy/Makefile | 3 +- drivers/phy/phy-lgm-usb.c | 278

[PATCH v8 1/2] dt-bindings: phy: Add USB PHY support for Intel LGM SoC

2020-08-16 Thread Ramuthevar,Vadivel MuruganX
From: Ramuthevar Vadivel Murugan Add the dt-schema to support USB PHY on Intel LGM SoC Signed-off-by: Ramuthevar Vadivel Murugan Reviewed-by: Rob Herring --- .../devicetree/bindings/phy/intel,lgm-usb-phy.yaml | 58 ++ 1 file changed, 58 insertions(+) create mode 100644 D

[PATCH v8 0/2] phy: Add USB PHY support on Intel LGM SoC

2020-08-16 Thread Ramuthevar,Vadivel MuruganX
The USB PHY provides the optimized for low power dissipation while active, idle, or on standby. Requires minimal external components, a single resistor, for best operation. Supports 10/5-Gbps high-speed data transmission rates through 3-m USB 3.x cable --- v8: - Rebase to V5.9-rc1 v7: - No Cha

[PATCH] upcall: Remove unneeded variable insize

2020-08-16 Thread Xu Wang
Remove unneeded variable insize in venus_pioctl(). Signed-off-by: Xu Wang --- fs/coda/upcall.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/coda/upcall.c b/fs/coda/upcall.c index eb3b1898da46..903bd7a4ee16 100644 --- a/fs/coda/upcall.c +++ b/fs/coda/upcall.c @@ -477,1

[PATCH] ata: ahci: use ata_link_info() instead of ata_link_printk()

2020-08-16 Thread Xu Wang
Using ata_link_info() instead of ata_link_printk(). Signed-off-by: Xu Wang --- drivers/ata/ahci.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 0c0a736eb861..fbd8eaa32d32 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.

[RESEND RFC v2 1/2] KVM: VMX: Convert vcpu_vmx.exit_reason to a union

2020-08-16 Thread Chenyi Qiang
From: Sean Christopherson Convert vcpu_vmx.exit_reason from a u32 to a union (of size u32). The full VM_EXIT_REASON field is comprised of a 16-bit basic exit reason in bits 15:0, and single-bit modifiers in bits 31:16. Historically, KVM has only had to worry about handling the "failed VM-Entry"

[RESEND RFC v2 0/2] add bus lock VM exit support

2020-08-16 Thread Chenyi Qiang
Resend to rebase on 5.9-rc1. --- Add the support for bus lock VM exit in KVM. It is a sub-feature of bus lock detection. Another sub-feature named bus lock debug exception is blocked due to requirement to rework the HW design: https://lore.kernel.org/lkml/87r1stmi1x@nanos.tec.linutronix.de/

[RESEND RFC v2 2/2] KVM: VMX: Enable bus lock VM exit

2020-08-16 Thread Chenyi Qiang
Virtual Machine can exploit bus locks to degrade the performance of system. Bus lock can be caused by split locked access to writeback(WB) memory or by using locks on uncacheable(UC) memory. The bus lock is typically >1000 cycles slower than an atomic operation within a cache line. It also disrupts

[PATCH 0/3] KVM: arm64: Some fixes and code adjustments for pvtime ST

2020-08-16 Thread Keqian Zhu
During picking up pvtime LPT support for arm64, I do some trivial fixes for pvtime ST. Keqian Zhu (3): KVM: arm64: Some fixes of PV-time interface document KVM: uapi: Remove KVM_DEV_TYPE_ARM_PV_TIME in kvm_device_type KVM: arm64: Use kvm_write_guest_lock when init stolen time Documentation

[PATCH 3/3] KVM: arm64: Use kvm_write_guest_lock when init stolen time

2020-08-16 Thread Keqian Zhu
There is a lock version kvm_write_guest. Use it to simplify code. Signed-off-by: Keqian Zhu --- arch/arm64/kvm/pvtime.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/arm64/kvm/pvtime.c b/arch/arm64/kvm/pvtime.c index f7b52ce..2b24e7f 100644 --- a/arch/arm64/kvm/pv

[PATCH 2/3] KVM: uapi: Remove KVM_DEV_TYPE_ARM_PV_TIME in kvm_device_type

2020-08-16 Thread Keqian Zhu
ARM64 PV-time ST is configured by userspace through vCPU attribute, and KVM_DEV_TYPE_ARM_PV_TIME is unused. Signed-off-by: Keqian Zhu --- include/uapi/linux/kvm.h | 2 -- tools/include/uapi/linux/kvm.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/include/uapi/linux/kvm.h b/include

Re: [PATCH] Makefile: Yes. Finally remove '-Wdeclaration-after-statement'

2020-08-16 Thread Michael Witten
Joe Perches (Sun, 16 Aug 2020 10:56:53 -0700): > I rather prefer block declarations instead of > sprinkling declarations around with code. Hey, we all have our guilty pleasures. Fortunately, even with this patch, you'd still be able to indulge in your preferred style, or even enforce it among co

[PATCH 1/3] KVM: arm64: Some fixes of PV-time interface document

2020-08-16 Thread Keqian Zhu
Rename PV_FEATURES tp PV_TIME_FEATURES Signed-off-by: Keqian Zhu --- Documentation/virt/kvm/arm/pvtime.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/virt/kvm/arm/pvtime.rst b/Documentation/virt/kvm/arm/pvtime.rst index 687b60d..94bffe2 100644 --- a/

Re: [PATCH] ata: ahci: use ata_link_info() instead of ata_link_printk()

2020-08-16 Thread Jens Axboe
On 8/16/20 8:29 PM, Xu Wang wrote: > Using ata_link_info() instead of ata_link_printk(). Applied, thanks. -- Jens Axboe

[PATCH 0/7] R4000 clock enhancements for Loongson

2020-08-16 Thread Jiaxun Yang
Jiaxun Yang (7): MIPS: sync-r4k: Rework to be many cores firendly MIPS: time: Use CPUHUP to handle r4k timer MIPS: Kconfig: Always select SYNC_R4K if both SMP and r4k timer is enabled MIPS: Loongson64: Remove custom count sync procudure MIPS: cevt-r4k: Don't handle IRQ if clockevent i

[PATCH 2/7] MIPS: time: Use CPUHUP to handle r4k timer

2020-08-16 Thread Jiaxun Yang
There is no need to hijack initialization procudre to take care of r4k timer we have CPUHP framework to deal with the CPU plug sequence. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/time.h | 28 +++- arch/mips/kernel/cevt-r4k.c | 30 ++

[PATCH 3/7] MIPS: Kconfig: Always select SYNC_R4K if both SMP and r4k timer is enabled

2020-08-16 Thread Jiaxun Yang
Now all platforms are sharing sync-r4k procdure, there is no need to let platform to select it. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 880680c0df31..7674f4379d39 1

[PATCH 4/7] MIPS: Loongson64: Remove custom count sync procudure

2020-08-16 Thread Jiaxun Yang
Now we have hotplug aware reliable sync-r4k, we can simply use that instead of our IPI based implementation. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/smp.h | 1 - arch/mips/loongson64/smp.c | 32 ++-- 2 files changed, 2 insertions(+), 31 deletions(-) di

[PATCH 1/7] MIPS: sync-r4k: Rework to be many cores firendly

2020-08-16 Thread Jiaxun Yang
The original sync-r4k did a good job on reducing jitter by determine the "next time value", but it has a limitation that when we have lots of cores, the timewrap on CPU0 will become unaccpetable. That will also happen when CPU Hotplug is enabled and the counter needs to be synchronised at every plu

[PATCH 5/7] MIPS: cevt-r4k: Don't handle IRQ if clockevent is not enabled

2020-08-16 Thread Jiaxun Yang
Some platforms may have shared Cause.TI, bailing out in IRQ handler when clock event is not enabled can give another clock device a chance. Signed-off-by: Jiaxun Yang --- arch/mips/kernel/cevt-r4k.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/mips/kernel/ce

[PATCH 7/7] MIPS: KVM: Don't use htimer when INTIMER is disabled

2020-08-16 Thread Jiaxun Yang
When INTIMER is disabled by host, the GT compare interrupt will be ignored. Signed-off-by: Jiaxun Yang --- arch/mips/kvm/vz.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/mips/kvm/vz.c b/arch/mips/kvm/vz.c index 9d03bd0a604a..1d2140f7461a 100644 --- a/arch/mips/kvm/vz.c +++ b/a

[PATCH 6/7] MIPS: cevt-r4k: Enable intimer for Loongson CPUs with extimer

2020-08-16 Thread Jiaxun Yang
Loongson64C and Loongson64G have extimer feature, which is sharing Cause.TI with intimer (which is cevt-r4k). To ensure the cevt-r4k's usability, we need to add a callback for clock device to ensure intimer is enabled when cevt-r4k is enabled. Signed-off-by: Jiaxun Yang --- arch/mips/include/as

Re: [PATCH] net: handle the return value of pskb_carve_frag_list() correctly

2020-08-16 Thread David Miller
From: linmiaohe Date: Mon, 17 Aug 2020 02:27:23 + > David Miller wrote: >>> + /* split line is in frag list */ >>> + if (k == 0 && pskb_carve_frag_list(skb, shinfo, off - pos, gfp_mask)) { >>> + /* skb_frag_unref() is not needed here as shinfo->nr_frags = 0. >>> */ >>> +

Re: [PATCH v6 2/2] soc: mediatek: add mt6779 devapc driver

2020-08-16 Thread Neal Liu
Hi Chun-Kuang, On Sat, 2020-08-15 at 11:03 +0800, Chun-Kuang Hu wrote: > Hi, Neal: > > Neal Liu 於 2020年8月13日 週四 上午11:33寫道: > > > > MediaTek bus fabric provides TrustZone security support and data > > protection to prevent slaves from being accessed by unexpected > > masters. > > The security vio

[PATCH] arm64: dts: qcom: sc7180: Fix the LLCC base register size

2020-08-16 Thread Sai Prakash Ranjan
There is only one LLCC logical bank on SC7180 SoC of size 0x5(320KB) not 2MB, so correct the size and fix copy paste mistake from SDM845 which had 4 logical banks. Fixes: 7cee5c742899 ("arm64: dts: qcom: sc7180: Fix node order") Fixes: c831fa26 ("arm64: dts: qcom: sc7180: Add Last level ca

[PATCH RESEND 0/5] Some clean-ups for bio merge

2020-08-16 Thread Baolin Wang
Hi, There are some duplicated code when trying to merge bio from pluged list and software queue, thus this patch set did some clean-ups when merging a bio. Any comments are welcome. Thanks. Baolin Wang (5): block: Move bio merge related functions into blk-merge.c block: Remove redundant blk_m

[PATCH RESEND 2/5] block: Remove redundant blk_mq_sched_allow_merge() validation

2020-08-16 Thread Baolin Wang
Only software queue and kyber IO scheduler will call blk_mq_bio_list_merge() to merge a bio, and kyber IO scheduler did not implement the ops->allow_merge(). Thus we can remove the redundant blk_mq_sched_allow_merge() in blk_mq_bio_list_merge() function. Signed-off-by: Baolin Wang --- block/blk-

[PATCH RESEND 1/5] block: Move bio merge related functions into blk-merge.c

2020-08-16 Thread Baolin Wang
It's better to move bio merge related functions into blk-merge.c, which contains all merge related functions. Signed-off-by: Baolin Wang --- block/blk-core.c | 156 - block/blk-merge.c | 157

[PATCH RESEND 5/5] block: Remove __blk_mq_sched_bio_merge() helper

2020-08-16 Thread Baolin Wang
The blk_mq_sched_bio_merge() just wrap the __blk_mq_sched_bio_merge(), and no other places will use __blk_mq_sched_bio_merge(). Thus we can combine these 2 similar functions into one function. Signed-off-by: Baolin Wang --- block/blk-mq-sched.c | 5 - block/blk-mq-sched.h | 13 ++---

[PATCH RESEND 4/5] block: Remove blk_mq_attempt_merge() function

2020-08-16 Thread Baolin Wang
The small blk_mq_attempt_merge() function is only called by __blk_mq_sched_bio_merge(), just open code it. Signed-off-by: Baolin Wang --- block/blk-mq-sched.c | 33 ++--- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/block/blk-mq-sched.c b/block/blk-

[PATCH RESEND 3/5] block: Add a new helper to attempt to merge a bio

2020-08-16 Thread Baolin Wang
There are lots of duplicated code when trying to merge a bio from plug list and sw queue, we can introduce a new helper to attempt to merge a bio, which can simplify the blk_mq_bio_list_merge() and blk_attempt_plug_merge(). Signed-off-by: Baolin Wang --- block/blk-merge.c| 47 +++

Re: [PATCH] phylink: : fix function prototype kernel-doc warning

2020-08-16 Thread David Miller
From: Randy Dunlap Date: Sun, 16 Aug 2020 15:25:49 -0700 > Fix a kernel-doc warning for the pcs_config() function prototype: > > ../include/linux/phylink.h:406: warning: Excess function parameter > 'permit_pause_to_mac' description in 'pcs_config' > > Fixes: 7137e18f6f88 ("net: phylink: add st

Re: [PATCH] Makefile: Yes. Finally remove '-Wdeclaration-after-statement'

2020-08-16 Thread Joe Perches
On Mon, 2020-08-17 at 03:37 +, Michael Witten wrote: > Matters of style should probably not be enforced by the build > infrastructure; style is a matter for the maintainer to enforce: I rather doubt style advice should be taken from someone who right justifies fixed pitch block text. chee

[PATCH] lib: Convert test_printf.c to KUnit

2020-08-16 Thread Arpitha Raghunandan
Converts test lib/test_printf.c to KUnit. More information about KUnit can be found at https://www.kernel.org/doc/html/latest/dev-tools/kunit/index.html. KUnit provides a common framework for unit tests in the kernel. Signed-off-by: Arpitha Raghunandan <98.a...@gmail.com> --- lib/Kconfig.debug

[PATCH] ALSA: hda/realtek: Add model alc298-samsung-headphone

2020-08-16 Thread Mike Pozulp
The very quiet and distorted headphone output bug that afflicted my Samsung Notebook 9 is appearing in many other Samsung laptops. Expose the quirk which fixed my laptop as a model so other users can try it. BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=207423 Signed-off-by: Mike Pozulp --

[PATCH v4] kthread: Add debugobject support

2020-08-16 Thread Qianli Zhao
From: Qianli Zhao Add debugobject support to track the life time of kthread_work which is used to detect reinitialization/free active object problems Add kthread_init_work_onstack()/kthread_init_delayed_work_onstack() for kthread onstack support If we reinitialize a kthread_work that has been ac

Re: [PATCH] dmaengine: acpi: Put the CSRT table after using it

2020-08-16 Thread Vinod Koul
On 22-07-20, 17:54, Hanjun Guo wrote: > The acpi_get_table() should be coupled with acpi_put_table() if > the mapped table is not used at runtime to release the table > mapping, put the CSRT table buf after using it. Applied, thanks -- ~Vinod

Re: [PATCH v1] dmaengine: pch_dma: use generic power management

2020-08-16 Thread Vinod Koul
On 27-07-20, 14:19, Andy Shevchenko wrote: > On Mon, Jul 27, 2020 at 1:16 PM Vinod Koul wrote: > > On 20-07-20, 17:07, Vaibhav Gupta wrote: > > > Drivers using legacy PM have to manage PCI states and device's PM states > > > themselves. They also need to take care of configuration registers. > > >

Re: [PATCH] upcall: Remove unneeded variable insize

2020-08-16 Thread kernel test robot
Hi Xu, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.9-rc1 next-20200814] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https:

Re: [PATCH 2/4] opp: Track device's resources configuration status

2020-08-16 Thread Viresh Kumar
On 15-08-20, 01:03, Stephen Boyd wrote: > Quoting Viresh Kumar (2020-08-12 21:28:59) > > The OPP core needs to track if the resources of devices are enabled or > > configured or not, as it disables the resources when target_freq is set > > to 0. > > > > Handle that with a separate variable to make

Re: [RFC 0/5] Introduce NMI aware serial drivers

2020-08-16 Thread Sumit Garg
On Fri, 14 Aug 2020 at 19:48, Daniel Thompson wrote: > > On Fri, Aug 14, 2020 at 05:36:36PM +0530, Sumit Garg wrote: > > On Thu, 13 Aug 2020 at 15:47, Daniel Thompson > > wrote: > > > > > > On Thu, Aug 13, 2020 at 02:55:12PM +0530, Sumit Garg wrote: > > > > On Thu, 13 Aug 2020 at 05:38, Doug Ande

Re: [PATCH] dmaengine: ti: omap-dma: Drop of_match_ptr to fix -Wunused-const-variable

2020-08-16 Thread Vinod Koul
On 28-07-20, 19:09, Krzysztof Kozlowski wrote: > The of_device_id is included unconditionally by of.h header and used > in the driver as well. Remove of_match_ptr to fix W=1 compile test > warning with !CONFIG_OF: > > drivers/dma/ti/omap-dma.c:1892:34: warning: 'omap_dma_match' defined but >

Re: [PATCH] dmaengine: at_hdmac: do exception handling appropriately in at_dma_xlate()

2020-08-16 Thread Vinod Koul
On 29-07-20, 20:29, Yu Kuai wrote: > Do several things for exception handing: > > a. check return value of of_find_device_by_node(). > b. call put_device() if memory allocation for 'atslave' failed. > c. if dma_request_channel() failed, call put_device() and kfree(). One patch per change please

Re: [PATCH V2] dmaengine: bcm-sba-raid: add missing put_device() call in sba_probe()

2020-08-16 Thread Vinod Koul
On 29-07-20, 20:49, Yu Kuai wrote: > if of_find_device_by_node() succeed, sba_probe() doesn't have a > corresponding put_device(). Thus add a jump target to fix the > exception handling for this function implementation. Applied, thanks -- ~Vinod

Re: [PATCH v2 0/2] dmaengine: ti: k3-psil: Add support for j7200

2020-08-16 Thread Vinod Koul
On 03-08-20, 15:57, Peter Ujfalusi wrote: > Hi, > > Changes since v1: > - Drop unrelated empty line change in patch 1 (k3-psil.c) > > j7200 uses the same DMA hardware but have different set of peripherals, > needing > different PSI-L thread map compared to j721e. > > To simplify the runtime PSI

Re: [PATCH v4 1/2] ASoC: mediatek: mt6359: add codec driver

2020-08-16 Thread Tzung-Bi Shih
On Sun, Aug 16, 2020 at 1:20 AM Jiaxin Yu wrote: > > +static int mt6359_platform_driver_probe(struct platform_device *pdev) [snip] > + > + return devm_snd_soc_register_component(&pdev->dev, > + &mt6359_soc_component_driver, > +

[PATCH V3 2/3] x86/entry: directly switch to kernel stack when .Lerror_bad_iret

2020-08-16 Thread Lai Jiangshan
From: Lai Jiangshan Directly copy pt_regs to kernel stack when .Lerror_bad_iret. Directly switch to kernel stack when .Lerror_bad_iret. We can see that entry_64.S do the following things back to back when .Lerror_bad_iret: call fixup_bad_iret(), switch to sp0 stack with pt_regs copied call s

  1   2   3   4   5   >