[PATCH] irqchip/tango: Fix possible null ptr reference in tangox_irq_init

2020-09-02 Thread Ye Bin
In tangox_irq_init allocate chip but not test. Signed-off-by: Ye Bin --- drivers/irqchip/irq-tango.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/irqchip/irq-tango.c b/drivers/irqchip/irq-tango.c index 34290f09b853..25da120230ad 100644 --- a/drivers/irqchip/irq-tango.c +++ b/dri

Re: [PATCH v5 00/21] kprobes: Unify kretprobe trampoline handlers and make kretprobe lockless

2020-09-02 Thread Masami Hiramatsu
On Thu, 3 Sep 2020 10:39:54 +0900 Masami Hiramatsu wrote: > OK, I've confirmed that the lockdep warns on kretprobe from INT3 > with your fix. Of course make it lockless then warning is gone. > But even without the lockless patch, this warning can be false-positive > because we prohibit nested kpr

Re: [f2fs-dev] [PATCH] f2fs: change i_compr_blocks of inode to atomic value

2020-09-02 Thread Chao Yu
On 2020/9/3 9:43, Daeho Jeong wrote: And how about this atomic64 to just atomic? As you mentioned before, we don't need a 64bit value for i_compr_blocks of inode. Yup, I think atomic type is enough for both f2fs_inode_info.i_compr_blocks and f2fs_sb_info.compr_blocks. Thanks, 2020년 9월 3일 (목

Re: [PATCH net-next v2 3/3] net: dp83869: Add speed optimization feature

2020-09-02 Thread Jakub Kicinski
On Wed, 2 Sep 2020 15:34:44 -0500 Dan Murphy wrote: > Set the speed optimization bit on the DP83869 PHY. > > Speed optimization, also known as link downshift, enables fallback to 100M > operation after multiple consecutive failed attempts at Gigabit link > establishment. Such a case could occur if

Re: [PATCH -v2] scipts/tags.sh: Add custom sort order

2020-09-02 Thread Masahiro Yamada
On Thu, Sep 3, 2020 at 1:26 AM wrote: > > On Thu, Sep 03, 2020 at 12:58:14AM +0900, Masahiro Yamada wrote: > > > Sorry for the long delay. > > > > First, this patch breaks 'make TAGS' > > if 'etags' is a symlink to exuberant ctags. > > > > > > masahiro@oscar:~/ref/linux$ etags --version > > Exuber

Re: [PATCH] kconfig: streamline_config.pl: check defined(ENV variable) before using it

2020-09-02 Thread Masahiro Yamada
On Thu, Sep 3, 2020 at 3:22 AM Nathan Royce wrote: > > Thanks, but I'd just as soon not be acknowledged/credited. All I did > was submit a report. > > On Wed, Sep 2, 2020 at 11:47 AM Masahiro Yamada wrote: > > > > Applied to linux-kbuild/fixes with Nathan's tag > > > > Reported-by: Nathan Royce

Re: [PATCH v2] scsi: ibmvfc: interface updates for future FPIN and MQ support

2020-09-02 Thread Martin K. Petersen
Tyrel, > Fixup complier errors from neglected commit --amend Bunch of formatting-related checkpatch warnings. Please fix. Thanks! -- Martin K. Petersen Oracle Linux Engineering

[PATCH] f2fs: ignore compress mount option on image w/o compression feature

2020-09-02 Thread Chao Yu
to keep consistent with behavior when passing compress mount option to kernel w/o compression feature, so that mount may not fail on such condition. Reported-by: Kyungmin Park Signed-off-by: Chao Yu --- fs/f2fs/super.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --g

[PATCH] f2fs: trace: fix typo

2020-09-02 Thread Chao Yu
Fixes a typo from 'compreesed' to 'compressed'. Signed-off-by: Chao Yu --- include/trace/events/f2fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/trace/events/f2fs.h b/include/trace/events/f2fs.h index 06c73f3f6dd2..f8f1e85ff130 100644 --- a/include/trace/events/

[PATCH] memory: tegra: Delete duplicated argument to '|' in function tegra210_emc_r21021_periodic_compensation

2020-09-02 Thread Ye Bin
In funtion tegra210_emc_r21021_periodic_compensation when calculate emc_cfg EMC_CFG_DRAM_CLKSTOP_PD is duplicated Signed-off-by: Ye Bin --- drivers/memory/tegra/tegra210-emc-cc-r21021.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/memory/tegra/tegra210-emc-cc-r21021.c b/drivers/me

Re: [PATCH v3] x86/asm: Replace __force_order with memory clobber

2020-09-02 Thread Kees Cook
On Wed, Sep 02, 2020 at 07:21:52PM -0400, Arvind Sankar wrote: > The CRn accessor functions use __force_order as a dummy operand to > prevent the compiler from reordering CRn reads/writes with respect to > each other. > > The fact that the asm is volatile should be enough to prevent this: > volati

Re: [PATCH] kconfig: streamline_config.pl: check defined(ENV variable) before using it

2020-09-02 Thread Nathan Royce
Heard, but all the same if it isn't important (which I'm assuming), I'd just as soon be left out of it. That's just the way I am in general, not wanting to be seen unless I have to be seen. Thanks though. On Wed, Sep 2, 2020 at 9:14 PM Masahiro Yamada wrote: > > Even if you do not write the code,

Re: [PATCH net-next] net: sch_generic: aviod concurrent reset and enqueue op for lockless qdisc

2020-09-02 Thread Yunsheng Lin
On 2020/9/3 9:48, Cong Wang wrote: > On Wed, Sep 2, 2020 at 6:22 PM Yunsheng Lin wrote: >> >> On 2020/9/3 8:35, Cong Wang wrote: >>> On Tue, Sep 1, 2020 at 11:35 PM Yunsheng Lin wrote: On 2020/9/2 12:41, Cong Wang wrote: > On Tue, Sep 1, 2020 at 6:42 PM Yunsheng Lin > wrote: >

Re: [linux-sunxi] [PATCH 05/16] ASoc: sun4i-i2s: Add 20 and 24 bit support

2020-09-02 Thread Samuel Holland
On 9/2/20 1:10 PM, Jernej Škrabec wrote: > Hi Samuel! > > Dne petek, 10. julij 2020 ob 07:44:51 CEST je Samuel Holland napisal(a): >> On 7/4/20 6:38 AM, Clément Péron wrote: >>> From: Marcus Cooper >>> >>> Extend the functionality of the driver to include support of 20 and >>> 24 bits per sample.

Re: [PATCH v3 2/6] perf tsc: Add rdtsc() for Arm64

2020-09-02 Thread Leo Yan
Hi Peter, On Wed, Sep 02, 2020 at 03:48:05PM +0200, Peter Zijlstra wrote: > On Wed, Sep 02, 2020 at 02:21:27PM +0100, Leo Yan wrote: > > The system register CNTVCT_EL0 can be used to retrieve the counter from > > user space. Add rdtsc() for Arm64. > > > +u64 rdtsc(void) > > +{ > > + u64 val; >

[PATCH v2 1/2] scsi: ufs: Abort tasks before clear them from doorbell

2020-09-02 Thread Can Guo
To recovery non-fatal errors, no full reset is required, err_handler only clears those pending TRs/TMRs so that scsi layer can re-issue them. In current err_handler, TRs are directly cleared from UFS host's doorbell but not aborted from device side. However, according to the UFSHCI JEDEC spec, the

[PATCH v2 2/2] scsi: ufs: Handle LINERESET indication in err handler

2020-09-02 Thread Can Guo
PA Layer issues a LINERESET to the PHY at the recovery step in the Power Mode change operation. If it happens during auto or mannual hibern8 enter, even if hibern8 enter succeeds, UFS power mode shall be set to PWM-G1 mode and kept in that mode after exit from hibern8, leading to bad performance. H

[PATCH] x86/cmdline: Disable jump tables for cmdline.c

2020-09-02 Thread Arvind Sankar
When CONFIG_RETPOLINE is disabled, Clang uses a jump table for the switch statement in cmdline_find_option (jump tables are disabled when CONFIG_RETPOLINE is enabled). This function is called very early in boot from sme_enable() if CONFIG_AMD_MEM_ENCRYPT is enabled. At this time, the kernel is stil

Re: [PATCH] lockdep: Fix "USED" <- "IN-NMI" inversions

2020-09-02 Thread Masami Hiramatsu
On Wed, 2 Sep 2020 18:03:23 +0200 pet...@infradead.org wrote: > > During the LPC RCU BoF Paul asked how come the "USED" <- "IN-NMI" > detector doesn't trip over rcu_read_lock()'s lockdep annotation. > > Looking into this I found a very embarrasing typo in > verify_lock_unused(): > > - if (!

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

2020-09-02 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: Caused by commit f670269a42bf ("x86: Fix early boot crash on gcc-10, next try") interacting with commit a9a3ed1eff36 ("x86: Fix early boot crash on gcc-10, third try") from Linus' tre

Re: [PATCH 0/2] docs: Add automatic cross-reference for C types

2020-09-02 Thread Randy Dunlap
On 9/2/20 5:58 PM, Nícolas F. R. A. Prado wrote: > In order to cross-reference C types in the documentation, Sphinx > requires the syntax :c:type:`type_name`, or even :c:type:`struct > type_name ` in order to have the link text different from the > target text. > This patch series removes the need

Re: [PATCH] kconfig: streamline_config.pl: check defined(ENV variable) before using it

2020-09-02 Thread Masahiro Yamada
On Thu, Sep 3, 2020 at 11:18 AM Nathan Royce wrote: > > Heard, but all the same if it isn't important (which I'm assuming), > I'd just as soon be left out of it. That's just the way I am in > general, not wanting to be seen unless I have to be seen. Thanks > though. OK, I will drop your tag. --

BUG: sleeping function called from invalid context in vdso_join_timens

2020-09-02 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:4d41ead6 Merge tag 'block-5.9-2020-08-28' of git://git.ker.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=174adf4990 kernel config: https://syzkaller.appspot.com/x/.config?x=891ca5711a9f1650 das

[PATCH v2 3/3] remoteproc: qcom: Add minidump id for sm8150 modem remoteproc

2020-09-02 Thread Gurbir Arora
Add minidump id for modem in sm8150 chipset. Signed-off-by: Rishabh Bhatnagar Signed-off-by: Gurbir Arora --- drivers/remoteproc/qcom_q6v5_pas.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index 19873d1..d35a502 10

[PATCH v2 1/3] remoteproc: core: Add multiple components to remoteproc ops

2020-09-02 Thread Gurbir Arora
Each remoteproc might have different requirements for coredumps and might want to choose the type of dumps it wants to collect. This change allows remoteproc drivers to specify their own custom dump function to be executed in place of rproc_coredump. If the coredump op is not specified by the remot

[PATCH v2 2/3] remoteproc: qcom: Add capability to collect minidumps

2020-09-02 Thread Gurbir Arora
This patch adds support for collecting minidump in the event of remoteproc crash. Parse the minidump table based on remoteproc's unique minidump-id, read all memory regions from the remoteproc's minidump table entry and expose the memory to userspace. The remoteproc platform driver can choose to co

[PATCH v2 0/3] Introduce mini-dump support for remoteproc.

2020-09-02 Thread Gurbir Arora
Sometimes firmware sizes can be in ten's of MB's and reading all the memory during coredump can consume lot of time and memory. Introducing support for mini-dumps. Mini-dump contains smallest amount of useful information, that could help to debug subsystem crashes. During bootup memory is allocated

Re: [PATCH net-next] net: sch_generic: aviod concurrent reset and enqueue op for lockless qdisc

2020-09-02 Thread Cong Wang
On Wed, Sep 2, 2020 at 7:22 PM Yunsheng Lin wrote: > > On 2020/9/3 9:48, Cong Wang wrote: > > On Wed, Sep 2, 2020 at 6:22 PM Yunsheng Lin wrote: > >> > >> On 2020/9/3 8:35, Cong Wang wrote: > >>> On Tue, Sep 1, 2020 at 11:35 PM Yunsheng Lin > >>> wrote: > > On 2020/9/2 12:41, Cong Wan

Re: [PATCH v11 6/9] x86/cet: Add PTRACE interface for CET

2020-09-02 Thread Yu, Yu-cheng
On 9/2/2020 4:50 PM, Andy Lutomirski wrote: On Sep 2, 2020, at 3:13 PM, Yu, Yu-cheng wrote: On 9/2/2020 1:03 PM, Jann Horn wrote: On Tue, Aug 25, 2020 at 2:30 AM Yu-cheng Yu wrote: Add REGSET_CET64/REGSET_CET32 to get/set CET MSRs: IA32_U_CET (user-mode CET settings) and IA32_P

Re: [PATCH v11 6/9] x86/cet: Add PTRACE interface for CET

2020-09-02 Thread Yu, Yu-cheng
On 9/2/2020 5:33 PM, Jann Horn wrote: On Thu, Sep 3, 2020 at 12:13 AM Yu, Yu-cheng wrote: On 9/2/2020 1:03 PM, Jann Horn wrote: On Tue, Aug 25, 2020 at 2:30 AM Yu-cheng Yu wrote: Add REGSET_CET64/REGSET_CET32 to get/set CET MSRs: IA32_U_CET (user-mode CET settings) and IA32_PL3_

Re: [PATCH] scsi: pm8001: Fix memleak in pm8001_exec_internal_task_abort

2020-09-02 Thread Martin K. Petersen
On Sun, 23 Aug 2020 17:14:53 +0800, Dinghao Liu wrote: > When pm8001_tag_alloc() fails, task should be freed just > like what we've done in the subsequent error paths. Applied to 5.9/scsi-fixes, thanks! [1/1] scsi: pm8001: Fix memleak in pm8001_exec_internal_task_abort https://git.kernel.o

Re: [PATCH v1] scsi: libsas: set data_dir as DMA_NONE if libata mark qc as NODATA

2020-09-02 Thread Martin K. Petersen
On Wed, 26 Aug 2020 15:24:26 +0800, Luo Jiaxing wrote: > We found that it will fail every time when set feature to SATA disk by > "sdparm -s WCE=0 /dev/sde". > > After checking protocol, we know that MODE SELECT is the SCSI command for > setting WCE, and it do not exist in the SATA protocol. Ther

[RFC PATCH] cma: make number of CMA areas dynamic, remove CONFIG_CMA_AREAS

2020-09-02 Thread Mike Kravetz
The number of distinct CMA areas is limited by the constant CONFIG_CMA_AREAS. In most environments, this was set to a default value of 7. Not too long ago, support was added to allocate hugetlb gigantic pages from CMA. More recent changes to make dma_alloc_coherent NUMA-aware on arm64 added more

[PATCH v2] f2fs: change i_compr_blocks of inode to atomic value

2020-09-02 Thread Daeho Jeong
From: Daeho Jeong writepages() can be concurrently invoked for the same file by different threads such as a thread fsyncing the file and a kworker kernel thread. So, changing i_compr_blocks without protection is racy and we need to protect it by changing it with atomic type value. Plus, we don't

[PATCH] power: supply: sbs-battery: keep error code when get_property() fails

2020-09-02 Thread Ikjoon Jang
Commit c4f382930145 (power: supply: sbs-battery: don't assume i2c errors as battery disconnect) overwrites the original error code returned from internal functions. On such a sporadic i2c error, a user will get a wrong value without errors. Fixes: c4f382930145 (power: supply: sbs-battery: don't as

cc1: error: '-mloongson-mmi' must be used with '-mhard-float'

2020-09-02 Thread kernel test robot
config: mips-randconfig-r033-20200902 (attached as .config) compiler: mips64el-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout

[PATCH] ASoC: fsl_sai: Set SAI Channel Mode to Output Mode

2020-09-02 Thread Shengjiu Wang
Transmit data pins will output zero when slots are masked or channels are disabled. In CHMOD TDM mode, transmit data pins are tri-stated when slots are masked or channels are disabled. When data pins are tri-stated, there is noise on some channels when FS clock value is high and data is read while

Re: [RFC PATCH 01/16] mm: add pagechain container for storing multiple pages.

2020-09-02 Thread Matthew Wilcox
On Wed, Sep 02, 2020 at 02:06:13PM -0400, Zi Yan wrote: > When depositing page table pages for 1GB THPs, we need 512 PTE pages + > 1 PMD page. Instead of counting and depositing 513 pages, we can use the > PMD page as a leader page and chain the rest 512 PTE pages with ->lru. > This, however, preve

Re: [PATCH 0/5] media: uvcvideo: Fix race conditions

2020-09-02 Thread Guenter Roeck
On Sun, Aug 30, 2020 at 05:10:10PM -0700, Guenter Roeck wrote: > On Mon, Aug 31, 2020 at 12:36:21AM +0300, Laurent Pinchart wrote: > > Hi Guenter, > > > [ ... ] > > > I'll try to prototype what I envision would be a good solution in the > > V4L2 core. If stars align, I may even try to push it one

[PATCH v3 2/9] dt-bindings: ARM: Mediatek: Document bindings for MT8192 Audio

2020-09-02 Thread Weiyi Lu
This patch adds the binding documentation of audsys and scp-adsp for Mediatek MT8192. Signed-off-by: Weiyi Lu --- .../bindings/arm/mediatek/mediatek,audsys.txt | 1 + .../bindings/arm/mediatek/mediatek,scp-adsp.yaml | 38 ++ 2 files changed, 39 insertions(+) create m

[PATCH v3 5/9] dt-bindings: ARM: Mediatek: Document bindings for MT8192 APU and GPU

2020-09-02 Thread Weiyi Lu
This patch adds the binding documentation of ipesys and mfgcfg for Mediatek MT8192. Signed-off-by: Weiyi Lu --- Documentation/devicetree/bindings/arm/mediatek/mediatek,ipesys.txt | 1 + Documentation/devicetree/bindings/arm/mediatek/mediatek,mfgcfg.txt | 1 + 2 files changed, 2 insertions(+) di

[PATCH v3 7/9] clk: mediatek: Fix asymmetrical PLL enable and disable control

2020-09-02 Thread Weiyi Lu
The en_mask actually is a combination of divider enable mask and pll enable bit(bit0). Before this patch, we enabled both divider mask and bit0 in prepare(), but only cleared the bit0 in unprepare(). Now, setting the enable register(CON0) in 2 steps: first divider mask, then bit0 during prepare(),

[PATCH v3 3/9] dt-bindings: ARM: Mediatek: Document bindings for MT8192 Multimedia

2020-09-02 Thread Weiyi Lu
This patch adds the binding documentation of mdpsys, mmsys, vdecsys-soc, vdecsys and vencsys for Mediatek MT8192. Signed-off-by: Weiyi Lu --- .../bindings/arm/mediatek/mediatek,mdpsys.yaml | 38 ++ .../bindings/arm/mediatek/mediatek,mmsys.txt | 1 + .../arm/mediate

[PATCH v3 0/9] Mediatek MT8192 clock support

2020-09-02 Thread Weiyi Lu
This series is based on v5.9-rc1 and MT8192 dts[1]. [1] https://patchwork.kernel.org/cover/11713555/ changes since v2: - update and split dt-binding documents by functionalities - add error checking in probe() function - fix incorrect clock relation and add critical clocks - update license identi

[PATCH v3 1/9] dt-bindings: ARM: Mediatek: Document bindings for MT8192 BSP

2020-09-02 Thread Weiyi Lu
This patch adds the binding documentation of apmixedsys, imp_iic_wrap, infracfg, msdc, pericfg and topckgen for Mediatek MT8192. Signed-off-by: Weiyi Lu --- .../bindings/arm/mediatek/mediatek,apmixedsys.txt | 1 + .../arm/mediatek/mediatek,imp_iic_wrap.yaml| 78 ++

[PATCH v3 8/9] clk: mediatek: Add configurable enable control to mtk_pll_data

2020-09-02 Thread Weiyi Lu
In all MediaTek PLL design, bit0 of CON0 register is always the enable bit. However, there's a special case of usbpll on MT8192. The enable bit of usbpll is moved to bit2 of other register. Add configurable en_reg and pll_en_bit for enable control or default 0 where pll data are static variables. H

[PATCH v3 6/9] clk: mediatek: Add dt-bindings for MT8192 clocks

2020-09-02 Thread Weiyi Lu
Add MT8192 clock dt-bindings, include topckgen, apmixedsys, infracfg, pericfg and subsystem clocks. Signed-off-by: Weiyi Lu --- include/dt-bindings/clock/mt8192-clk.h | 592 + 1 file changed, 592 insertions(+) create mode 100644 include/dt-bindings/clock/mt8192-c

[PATCH v3 4/9] dt-bindings: ARM: Mediatek: Document bindings for MT8192 Camera

2020-09-02 Thread Weiyi Lu
This patch adds the binding documentation of camsys-raw, camsys and imgsys for Mediatek MT8192. Signed-off-by: Weiyi Lu --- .../bindings/arm/mediatek/mediatek,camsys-raw.yaml | 54 ++ .../bindings/arm/mediatek/mediatek,camsys.txt | 1 + .../bindings/arm/mediatek/mediate

Re: [PATCH 0/2] dma-mapping: update default segment_boundary_mask

2020-09-02 Thread Nicolin Chen
On Wed, Sep 02, 2020 at 10:13:12AM +0200, Niklas Schnelle wrote: > On 9/2/20 12:16 AM, Nicolin Chen wrote: > > These two patches are to update default segment_boundary_mask. > > > > PATCH-1 fixes overflow issues in callers of dma_get_seg_boundary. > > Previous version was a series: https://lkml.or

[RFC PATCH 1/4] usb: xhci-mtk: improve bandwidth scheduling with multi-TT

2020-09-02 Thread Chunfeng Yun
From: Zhanyong Wang After inserted the usb type-c 3.5mm dongle with headset, dmesg showed: usb 1-1.1: new full-speed USB device number 5 using xhci-mtk usb 1-1.1: New USB device found, idVendor=05ac, idProduct=110a, bcdDevice=26.11 usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber

[RFC PATCH 2/4] usb: xhci-mtk: add mt8192 wakeup

2020-09-02 Thread Chunfeng Yun
From: Zhanyong Wang need to add wakeup solution as V3 since not support presently. Signed-off-by: Zhanyong Wang Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk.c | 9 + 1 file changed, 9 insertions(+) mode change 100644 => 100755 drivers/usb/host/xhci-mtk.c diff --git a/dr

[RFC PATCH 4/4] arm64: dts: mt8192: add SSUSB related nodes

2020-09-02 Thread Chunfeng Yun
From: Zhanyong Wang Add SSUSB related nodes for mt8192 Signed-off-by: Zhanyong Wang Signed-off-by: Chunfeng Yun --- Depends on: https://patchwork.kernel.org/patch/11713559/ [v4,1/3] arm64: dts: Add Mediatek SoC MT8192 and evaluation board dts and Makefile --- arch/arm64/boot/dts/mediatek/mt8

Re: [PATCH] ASoC: fsl_sai: Support multiple data channel enable bits

2020-09-02 Thread Nicolin Chen
On Tue, Sep 01, 2020 at 07:01:08PM +0800, Shengjiu Wang wrote: > One data channel is one data line. From imx7ulp, the SAI IP is > enhanced to support multiple data channels. > > If there is only two channels input and slots is 2, then enable one > data channel is enough for data transfer. So enabl

[RFC PATCH 3/4] usb: xhci-mtk: add support runtime pm

2020-09-02 Thread Chunfeng Yun
From: CK Hu add support runtime pm feature Signed-off-by: Zhanyong Wang Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk.c | 446 +++- drivers/usb/host/xhci-mtk.h | 14 ++ 2 files changed, 455 insertions(+), 5 deletions(-) mode change 100644

[RFC PATCH 2/4] usb: xhci-mtk: add mt8192 wakeup

2020-09-02 Thread Chunfeng Yun
From: Zhanyong Wang need to add wakeup solution as V3 since not support presently. Signed-off-by: Zhanyong Wang Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk.c | 9 + 1 file changed, 9 insertions(+) mode change 100644 => 100755 drivers/usb/host/xhci-mtk.c diff --git a/dr

[RFC PATCH 4/4] arm64: dts: mt8192: add SSUSB related nodes

2020-09-02 Thread Chunfeng Yun
From: Zhanyong Wang Add SSUSB related nodes for mt8192 Signed-off-by: Zhanyong Wang Signed-off-by: Chunfeng Yun --- Depends on: https://patchwork.kernel.org/patch/11713559/ [v4,1/3] arm64: dts: Add Mediatek SoC MT8192 and evaluation board dts and Makefile --- arch/arm64/boot/dts/mediatek/mt8

[RFC PATCH 3/4] usb: xhci-mtk: add support runtime pm

2020-09-02 Thread Chunfeng Yun
From: CK Hu add support runtime pm feature Signed-off-by: Zhanyong Wang Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk.c | 446 +++- drivers/usb/host/xhci-mtk.h | 14 ++ 2 files changed, 455 insertions(+), 5 deletions(-) mode change 100644

[RFC PATCH 1/4] usb: xhci-mtk: improve bandwidth scheduling with multi-TT

2020-09-02 Thread Chunfeng Yun
From: Zhanyong Wang After inserted the usb type-c 3.5mm dongle with headset, dmesg showed: usb 1-1.1: new full-speed USB device number 5 using xhci-mtk usb 1-1.1: New USB device found, idVendor=05ac, idProduct=110a, bcdDevice=26.11 usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber

Re: [PATCH] ASoC: fsl_sai: Set SAI Channel Mode to Output Mode

2020-09-02 Thread Nicolin Chen
On Thu, Sep 03, 2020 at 11:09:15AM +0800, Shengjiu Wang wrote: > Transmit data pins will output zero when slots are masked or channels > are disabled. In CHMOD TDM mode, transmit data pins are tri-stated when > slots are masked or channels are disabled. When data pins are tri-stated, > there is noi

[PATCH] mtd: mtdoops: Don't write panic data twice

2020-09-02 Thread Mark Tomlinson
If calling mtdoops_write, don't also schedule work to be done later. Although this appears to not be causing an issue, possibly because the scheduled work will never get done, it is confusing. Fixes: 016c1291ce70 ("mtd: mtdoops: do not use mtd->panic_write directly") Signed-off-by: Mark Tomlinson

[PATCH v4 3/3] scsi: 3w-9xxx: Fix endianness issues in command packets

2020-09-02 Thread Samuel Holland
The controller expects all data it sends/receives to be little-endian. Therefore, the packet struct definitions should use the __le16/32/64 types. Once those are correct, sparse reports several issues with the driver code, which are fixed here as well. The main issue observed was at the call to sc

[PATCH v4 1/3] scsi: 3w-9xxx: Use flexible array members to avoid struct padding

2020-09-02 Thread Samuel Holland
In preparation for removing the "#pragma pack(1)" from the driver, fix all instances where a trailing array member could be replaced by a flexible array member. Since a flexible array member has zero size, it introduces no padding, whether or not the struct is packed. Signed-off-by: Samuel Holland

[PATCH v4 2/3] scsi: 3w-9xxx: Reduce scope of structure packing

2020-09-02 Thread Samuel Holland
Currently, all command packet structs used by this driver are packed. However, only one (TW_SG_Entry) actually needs to be packed, because it uses 64-bit addresses at 32-bit alignment. To improve the quality of generated code, stop packing all of the other command packet structs. This requires adju

Re: [PATCH 1/2] dma-mapping: introduce dma_get_seg_boundary_nr_pages()

2020-09-02 Thread Michael Ellerman
Nicolin Chen writes: > diff --git a/arch/powerpc/kernel/iommu.c b/arch/powerpc/kernel/iommu.c > index 9704f3f76e63..cbc2e62db597 100644 > --- a/arch/powerpc/kernel/iommu.c > +++ b/arch/powerpc/kernel/iommu.c > @@ -236,15 +236,10 @@ static unsigned long iommu_range_alloc(struct device > *dev, >

Re: Boot failure on gru-scarlet-inx with 5.9-rc2

2020-09-02 Thread Samuel Dionne-Riel
On Wed, 2 Sep 2020 17:01:19 +0100 Lorenzo Pieralisi wrote: > On Tue, Sep 01, 2020 at 02:33:56PM -0400, Samuel Dionne-Riel wrote: > > Please print a pointer as a pointer and print both bus and > bus->parent. Hopefully pointer as a pointer is %px. Not sure what else, if that's wrong please tell.

Re: [PATCH v3] staging: qlge: fix build breakage with dumping enabled

2020-09-02 Thread Benjamin Poirier
On 2020-09-02 22:00 +0800, Coiby Xu wrote: > This fixes commit 0107635e15ac > ("staging: qlge: replace pr_err with netdev_err") which introduced an > build breakage of missing `struct ql_adapter *qdev` for some functions > and a warning of type mismatch with dumping enabled, i.e., > > $ make CFLAG

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

2020-09-02 Thread Ingo Molnar
* Stephen Rothwell wrote: > Hi all, > > After merging the tip tree, today's linux-next build (powerpc > ppc64_defconfig) failed like this: > > > Caused by commit > > f670269a42bf ("x86: Fix early boot crash on gcc-10, next try") > > interacting with commit > > a9a3ed1eff36 ("x86: Fix

Re: [PATCH 3/4] sh: Add SECCOMP_FILTER

2020-09-02 Thread Rich Felker
On Sat, Aug 29, 2020 at 01:09:43PM +0200, John Paul Adrian Glaubitz wrote: > Hi! > > On 8/29/20 2:49 AM, Rich Felker wrote: > > This restored my ability to use strace > > I can confirm that. However ... > > > and I've written and tested a minimal strace-like hack using > > SECCOMP_RET_USER_NOTIF

[PATCH RESEND 1/2] clk: Implement protected-clocks for all OF clock providers

2020-09-02 Thread Samuel Holland
This is a generic implementation of the "protected-clocks" property from the common clock binding. It allows firmware to inform the OS about clocks that must not be disabled while the OS is running. This implementation comes with some caveats: 1) Clocks that have CLK_IS_CRITICAL in their init dat

[PATCH RESEND 0/2] Common protected-clocks implementation

2020-09-02 Thread Samuel Holland
Stephen, Maxime, You previously asked me to implement the protected-clocks property in a driver-independent way: https://www.spinics.net/lists/arm-kernel/msg753832.html I provided an implementation 6 months ago, which I am resending now: https://patchwork.kernel.org/patch/11398629/ Do you have

[PATCH RESEND 2/2] Revert "clk: qcom: Support 'protected-clocks' property"

2020-09-02 Thread Samuel Holland
Now that protected-clocks is handled in the clk core, this driver-specific implementation is redundant. This reverts commit b181b3b801da8893c8eb706e448dd5111b02de60. Signed-off-by: Samuel Holland --- drivers/clk/qcom/common.c | 18 -- 1 file changed, 18 deletions(-) diff --git

Re: [PATCH net-next v2 3/3] net: dp83869: Add speed optimization feature

2020-09-02 Thread kernel test robot
dc1a9bf2c8169d9f607502162af1858a73a18cb8 config: i386-randconfig-m021-20200902 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot smatch warnings: drivers/net/phy/dp83869.c:669 dp83869_config_init() warn

Re: [PATCH v1 01/10] powerpc/pseries/iommu: Replace hard-coded page shift

2020-09-02 Thread Alexey Kardashevskiy
On 02/09/2020 07:38, Leonardo Bras wrote: On Mon, 2020-08-31 at 13:48 +1000, Alexey Kardashevskiy wrote: Well, I created this TCE_RPN_BITS = 52 because the previous mask was a hardcoded 40-bit mask (0xfful), for hard-coded 12-bit (4k) pagesize, and on PAPR+/LoPAR also defines TCE as h

Re: [RFC PATCH v7 17/23] kernel/entry: Add support for core-wide protection of kernel-mode

2020-09-02 Thread Joel Fernandes
On Wed, Sep 2, 2020 at 12:57 PM Dario Faggioli wrote: > > On Wed, 2020-09-02 at 09:53 +0200, Thomas Gleixner wrote: > > On Tue, Sep 01 2020 at 21:29, Joel Fernandes wrote: > > > On Tue, Sep 01, 2020 at 10:02:10PM +0200, Thomas Gleixner wrote: > > > > > > > Or, are you saying users may want 'core s

Re: [PATCH v11 6/9] x86/cet: Add PTRACE interface for CET

2020-09-02 Thread Andy Lutomirski
> On Sep 2, 2020, at 7:53 PM, Yu, Yu-cheng wrote: > > On 9/2/2020 4:50 PM, Andy Lutomirski wrote: On Sep 2, 2020, at 3:13 PM, Yu, Yu-cheng wrote: >>> >>> On 9/2/2020 1:03 PM, Jann Horn wrote: > On Tue, Aug 25, 2020 at 2:30 AM Yu-cheng Yu wrote: > Add REGSET_CET64/REGSET_CET32

Re: [PATCH v1 02/10] powerpc/kernel/iommu: Align size for IOMMU_PAGE_SIZE on iommu_*_coherent()

2020-09-02 Thread Alexey Kardashevskiy
On 02/09/2020 08:34, Leonardo Bras wrote: On Mon, 2020-08-31 at 10:47 +1000, Alexey Kardashevskiy wrote: Maybe testing with host 64k pagesize and IOMMU 16MB pagesize in qemu should be enough, is there any chance to get indirect mapping in qemu like this? (DDW but with smaller DMA window avai

[PATCH] HID: i2c-hid: Prefer asynchronous probe

2020-09-02 Thread Douglas Anderson
Adding printouts to the i2c_hid_probe() function shows that it takes quite some time. It used to take about 70 ms, but after commit eef4016243e9 ("HID: i2c-hid: Always sleep 60ms after I2C_HID_PWR_ON commands") it takes about 190 ms. This is not tons of time but it's not trivial. Because we have

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

2020-09-02 Thread Stephen Rothwell
Hi Ingo, On Thu, 3 Sep 2020 05:51:08 +0200 Ingo Molnar wrote: > > I've merged the old commit by mistake - it's removed now. Ah, OK, thanks. -- Cheers, Stephen Rothwell pgpqbzuw8G3mY.pgp Description: OpenPGP digital signature

Re: [PATCH] arm64: dts: qcom: sc7180: Add 'sustainable_power' for CPU thermal zones

2020-09-02 Thread Rajendra Nayak
On 9/2/2020 9:02 PM, Doug Anderson wrote: Hi, On Tue, Sep 1, 2020 at 10:36 PM Rajendra Nayak wrote: * In terms of the numbers here, I believe that you're claiming that we can dissipate 768 mW * 6 + 1202 mW * 2 = ~7 Watts of power. My memory of how much power we could dissipate in previou

Re: Packet gets stuck in NOLOCK pfifo_fast qdisc

2020-09-02 Thread Cong Wang
Hello, Kehuan Can you test the attached one-line fix? I think we are overthinking, probably all we need here is a busy wait. Thanks. diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h index d60e7c39d60c..fc1bacdb102b 100644 --- a/include/net/sch_generic.h +++ b/include/net/sch_gen

Re: [PATCH 4.4 00/61] 4.4.235-rc2 review

2020-09-02 Thread Naresh Kamboju
--- kernel: 4.4.235-rc2 git repo: https://git.linaro.org/lkft/arm64-stable-rc.git git branch: 4.4.235-rc2-hikey-20200902-803 git commit: 4e984a08e49b4aa772d7681bfaeb091bd7a7b4b9 git describe: 4.4.235-rc2-hikey-20200902-803 Test details: https://qa-reports.linaro.org/lkft/linaro-hikey-stab

Re: [RFC PATCH v7 06/23] bitops: Introduce find_next_or_bit

2020-09-02 Thread Randy Dunlap
On 8/28/20 12:51 PM, Julien Desfossez wrote: > +#ifndef find_next_or_bit > +/** > + * find_next_or_bit - find the next set bit in any memory regions > + * @addr1: The first address to base the search on > + * @addr2: The second address to base the search on > + * @offset: The bitnumber to start sea

Re: [Nouveau] [PATCH v4] drm/nouveau/kms/nv50-: Program notifier offset before requesting disp caps

2020-09-02 Thread Ben Skeggs
On Wed, 2 Sep 2020 at 09:43, Lyude Paul wrote: > > Not entirely sure why this never came up when I originally tested this > (maybe some BIOSes already have this setup?) but the ->caps_init vfunc > appears to cause the display engine to throw an exception on driver > init, at least on my ThinkPad P

Re: [Nouveau] [PATCH v2] nouveau: fix the start/end range for migration

2020-09-02 Thread Ben Skeggs
On Tue, 1 Sep 2020 at 06:31, Ralph Campbell wrote: > > The user level OpenCL code shouldn't have to align start and end > addresses to a page boundary. That is better handled in the nouveau > driver. The npages field is also redundant since it can be computed > from the start and end addresses. >

linux-next: manual merge of the scsi-mkp tree with Linus' tree

2020-09-02 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the scsi-mkp tree got a conflict in: drivers/scsi/ufs/ufshcd.c between commit: b10178ee7fa8 ("scsi: ufs: Clean up completed request without interrupt notification") from Linus' tree and commit: 307348f6ab14 ("scsi: ufs: Abort tasks before clearing th

Re: [PATCH 6/7] arm64: dts: ti: k3-*: Use generic adc for node names

2020-09-02 Thread Vignesh Raghavendra
Hi Nishanth, On 9/2/20 11:48 PM, Nishanth Menon wrote: > On 11:51-20200902, Suman Anna wrote: >> On 9/1/20 5:30 PM, Nishanth Menon wrote: >>> Use adc@ naming for nodes following standard conventions of device >>> tree (section 2.2.2 Generic Names recommendation

Re: [RFC PATCH] libbpf: Support setting map max_entries at runtime

2020-09-02 Thread Andrii Nakryiko
On Mon, Aug 31, 2020 at 4:03 PM Barret Rhoden wrote: > > The max_entries for a BPF map may depend on runtime parameters. > Currently, we need to know the maximum value at BPF compile time. For > instance, if you want an array map with NR_CPUS entries, you would hard > code your architecture's lar

Re: [PATCH v2] scsi: ibmvfc: interface updates for future FPIN and MQ support

2020-09-02 Thread Tyrel Datwyler
On 9/2/20 7:11 PM, Martin K. Petersen wrote: > > Tyrel, > >> Fixup complier errors from neglected commit --amend > > Bunch of formatting-related checkpatch warnings. Please fix. > > Thanks! > So, I stuck to the existing style already in that header. If I'm going to fixup to make checkpat

Re: [PATCH v3] x86/asm: Replace __force_order with memory clobber

2020-09-02 Thread Miguel Ojeda
On Thu, Sep 3, 2020 at 1:21 AM Arvind Sankar wrote: > > Changes from v2: > - Clarify commit log and source comment some more Much better now, thanks! Reviewed-by: Miguel Ojeda Cheers, Miguel

Re: [PATCH v2 2/2] mm/pageblock: remove false sharing in pageblock_flags

2020-09-02 Thread Alex Shi
在 2020/8/31 上午4:32, Alexander Duyck 写道: >> Right that the different level to fix this problem, but narrow the cmpxchg >> comparsion is still needed and helpful. > What I was getting at though is that I am not sure that is the case. > Normally I believe we are always holding the zone lock when up

Re: [PATCH] arm64: dts: qcom: sc7180: Add 'sustainable_power' for CPU thermal zones

2020-09-02 Thread Rajendra Nayak
On 9/3/2020 10:14 AM, Rajendra Nayak wrote: On 9/2/2020 9:02 PM, Doug Anderson wrote: Hi, On Tue, Sep 1, 2020 at 10:36 PM Rajendra Nayak wrote: * In terms of the numbers here, I believe that you're claiming that we can dissipate 768 mW * 6 + 1202 mW * 2 = ~7 Watts of power.  My memory o

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

2020-09-02 Thread Jie Deng
Add an I2C bus driver for virtio para-virtualization. The controller can be emulated by the backend driver in any device model software by following the virtio protocol. This driver communicates with the backend driver through a virtio I2C message structure which includes following parts: - Head

Re: [PATCH 6/9] i2c: imx: Simplify with dev_err_probe()

2020-09-02 Thread Oleksij Rempel
On Wed, Sep 02, 2020 at 05:06:40PM +0200, Krzysztof Kozlowski wrote: > Common pattern of handling deferred probe can be simplified with > dev_err_probe(). Less code and the error value gets printed. > > Signed-off-by: Krzysztof Kozlowski Acked-by: Oleksij Rempel > --- > drivers/i2c/busses/i2

Re: [RFC PATCH 0/7] Trace events to pstore

2020-09-02 Thread Sai Prakash Ranjan
On 2020-09-03 03:17, Joel Fernandes wrote: On Wed, Sep 2, 2020 at 4:01 PM Nachammai Karuppiah wrote: Hi, This patch series adds support to store trace events in pstore. Storing trace entries in persistent RAM would help in understanding what happened just before the system went down. The tr

Re: [PATCH] ASoC: fsl_sai: Set SAI Channel Mode to Output Mode

2020-09-02 Thread Shengjiu Wang
On Thu, Sep 3, 2020 at 11:42 AM Nicolin Chen wrote: > > On Thu, Sep 03, 2020 at 11:09:15AM +0800, Shengjiu Wang wrote: > > Transmit data pins will output zero when slots are masked or channels > > are disabled. In CHMOD TDM mode, transmit data pins are tri-stated when > > slots are masked or chann

Re: [PATCH v2] ARM: davinci: use simple i2c probe function

2020-09-02 Thread Sekhar Nori
On 10/08/20 3:07 PM, Wolfram Sang wrote: > On Sun, Aug 09, 2020 at 07:24:44PM +0200, Stephen Kitt wrote: >> The i2c probe functions here don't use the id information provided in >> their second argument, so the single-parameter i2c probe function >> ("probe_new") can be used instead. >> >> This avo

Re: [PATCH 11/11] mmc: host: Enable compile testing of multiple drivers

2020-09-02 Thread Krzysztof Kozlowski
On Wed, Sep 02, 2020 at 11:32:27PM +0200, Michał Mirosław wrote: > On Wed, Sep 02, 2020 at 09:36:58PM +0200, Krzysztof Kozlowski wrote: > > Multiple MMC host controller driver can be compile tested as they do not > > depend on architecture specific headers. > [...] > > --- a/drivers/mmc/host/Kconfi

Re: [PATCH 1/4] perf vendor events amd: Add L2 Prefetch events for zen1

2020-09-02 Thread Ian Rogers
On Tue, Sep 1, 2020 at 3:10 PM Kim Phillips wrote: > > Later revisions of PPRs that post-date the original Family 17h events > submission patch add these events. > > Specifically, they were not in this 2017 revision of the F17h PPR: > > Processor Programming Reference (PPR) for AMD Family 17h Mode

[PATCH 8/9] block: use bd_partno in bdevname

2020-09-02 Thread Christoph Hellwig
No need to go through the hd_struct to find the partition number. Signed-off-by: Christoph Hellwig --- block/genhd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/genhd.c b/block/genhd.c index 081f1039d9367f..771aa56b1a8c3d 100644 --- a/block/genhd.c +++ b/block/genhd

[PATCH 1/9] Documentation/hdio: fix up obscure bd_contains references

2020-09-02 Thread Christoph Hellwig
bd_contains is an implementation detail and should not be mentioned in a userspace API documentation. Signed-off-by: Christoph Hellwig --- Documentation/userspace-api/ioctl/hdio.rst | 24 +++--- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Documentation/userspa

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