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

2021-01-10 Thread Chao Yu
Hi Jonathan, On 2021/1/11 7:35, Jonathan Corbet wrote: On Mon, 11 Jan 2021 07:33:54 +1100 Stephen Rothwell wrote: On Thu, 7 Jan 2021 19:28:19 +0800 Chao Yu wrote: On 2021/1/7 11:11, Stephen Rothwell wrote: After merging the f2fs tree, today's linux-next build (htmldocs) produced this

Re: [PATCH 0/5] Optimize iommu_map_sg() performance

2021-01-10 Thread Sai Prakash Ranjan
On 2021-01-11 11:52, Sai Prakash Ranjan wrote: Hi Isaac, I gave this series a go on chromebook and saw these warnings and several device probe failures, logs attached below: WARN corresponds to this code in arm_lpae_map_by_pgsize() if (WARN_ON(iaext || (paddr + size) >> cfg->oas))

Re: [PATCH 3/3] arm64: dts: rockchip: rk3328: Add Radxa ROCK Pi E

2021-01-10 Thread Heiko Stübner
Am Montag, 11. Januar 2021, 04:27:47 CET schrieb Chen-Yu Tsai: > On Mon, Jan 11, 2021 at 4:06 AM Heiko Stübner wrote: > > > > Hi, > > > > Am Sonntag, 10. Januar 2021, 16:37:15 CET schrieb Chen-Yu Tsai: > > > > > + vcc_sd: sdmmc-regulator { > > > > > + compatible =

[PATCH v4 5/5] f2fs: introduce sb_status sysfs node

2021-01-10 Thread Chao Yu
Introduce /sys/fs/f2fs//stat/sb_status to show superblock status in real time as a hexadecimal value. value sb status macro description 0x1 SBI_IS_DIRTY, /* dirty flag for checkpoint */ 0x2 SBI_IS_CLOSE, /*

Re: [PATCH v2 01/11] perf c2c: Add dimensions for total load hit

2021-01-10 Thread Leo Yan
Hi Namhyung, On Wed, Jan 06, 2021 at 04:38:01PM +0900, Namhyung Kim wrote: > Hi, > > On Sun, Dec 13, 2020 at 10:39 PM Leo Yan wrote: > > > > Arm SPE trace data doesn't support HITM, but we still want to explore > > "perf c2c" tool to analyze cache false sharing. If without HITM tag, > > the

Re: [PATCH v2 2/2] platform/chrome: cros_ec_sysfs: Add cold-ap-off to sysfs reboot.

2021-01-10 Thread Pi-Hsun Shih
gentle ping on these two patches for EC_REBOOT_COLD_AP_OFF. On Mon, Dec 21, 2020 at 12:12 PM Pi-Hsun Shih wrote: > > Add cold-ap-off to ChromeOS EC sysfs reboot file option, corresponds to > the EC_REBOOT_COLD_AP_OFF flag, that will reset EC and keep AP off. > > Signed-off-by: Pi-Hsun Shih >

Re: [PATCH] drm/hisilicon: Use drm_crtc_mask()

2021-01-10 Thread Thomas Zimmermann
Hi Am 11.01.21 um 04:30 schrieb Tian Tao: Use drm_crtc_mask() where appropriate. Signed-off-by: Tian Tao Looks like the right thing to do. Acked-by: Thomas Zimmermann Best regards Thomas --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c | 3 ++- 1 file changed, 2 insertions(+), 1

[PATCH v3, 13/15] drm/mediatek: add matrix bits private data for ccorr

2021-01-10 Thread Yongqiang Niu
matrix bits of mt8183 is 12 matrix bits of mt8192 is 13 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_disp_ccorr.c | 23 --- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_disp_ccorr.c

[PATCH v3, 01/15] dt-bindings: mediatek: add description for postmask

2021-01-10 Thread Yongqiang Niu
add description for postmask postmask is used control round corner for display frame Signed-off-by: Yongqiang Niu --- Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v3, 12/15] drm/mediatek: separate ccorr module

2021-01-10 Thread Yongqiang Niu
ccorr ctm matrix bits will be different in mt8192 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/Makefile | 3 +- drivers/gpu/drm/mediatek/mtk_disp_ccorr.c | 222 drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 92 +---

[PATCH v3, 14/15] drm/mediatek: add DDP support for MT8192

2021-01-10 Thread Yongqiang Niu
Add DDP support for MT8192 SoC. Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 35 ++ 1 file changed, 35 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index 1308046..7aa7fc3

[PATCH v3, 15/15] drm/mediatek: add support for mediatek SOC MT8192

2021-01-10 Thread Yongqiang Niu
add support for mediatek SOC MT8192 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_disp_ccorr.c| 6 drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 20 + drivers/gpu/drm/mediatek/mtk_disp_postmask.c | 1 + drivers/gpu/drm/mediatek/mtk_disp_rdma.c | 6

[PATCH v3, 10/15] drm/mediatek: Add pm runtime support for color

2021-01-10 Thread Yongqiang Niu
color power domain need controled in the device. Signed-off-by: Yongqiang Niu Signed-off-by: Yidi Lin --- drivers/gpu/drm/mediatek/mtk_disp_color.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_disp_color.c b/drivers/gpu/drm/mediatek/mtk_disp_color.c

[PATCH v3, 11/15] drm/mediatek: fix aal size config

2021-01-10 Thread Yongqiang Niu
the orginal setting is not correct, fix it follow hardware data sheet. if keep this error setting, mt8173/mt8183 display ok but mt8192 display abnormal. Fixes: 0664d1392c26 (drm/mediatek: Add AAL engine basic function) Signed-off-by: Yongqiang Niu ---

[PATCH v3, 07/15] drm/mediatek: enable OVL_LAYER_SMI_ID_EN for multi-layer usecase

2021-01-10 Thread Yongqiang Niu
enable OVL_LAYER_SMI_ID_EN for multi-layer usecase Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_disp_ovl.c b/drivers/gpu/drm/mediatek/mtk_disp_ovl.c index b47c238..4934bee

[PATCH v3, 03/15] arm64: dts: mt8192: add display node

2021-01-10 Thread Yongqiang Niu
add display node Signed-off-by: Yongqiang Niu --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 134 +++ 1 file changed, 134 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi index e12e024..dcf9fdf 100644

[PATCH v3, 06/15] drm/mediatek: add component RDMA4

2021-01-10 Thread Yongqiang Niu
This patch add component RDMA4 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c index bc6b10a..fc01fea 100644 ---

[PATCH v3, 05/15] drm/mediatek: add component POSTMASK

2021-01-10 Thread Yongqiang Niu
This patch add component POSTMASK, Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/Makefile| 1 + drivers/gpu/drm/mediatek/mtk_disp_postmask.c | 160 +++ drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 2 +

Re: [PATCH] drm/ast: Disable fast reset after DRAM initial

2021-01-10 Thread Thomas Zimmermann
Hi Am 11.01.21 um 07:43 schrieb KuoHsiang Chou: [Bug][AST2500] When AST2500 acts as stand-alone VGA so that DRAM and DVO initialization have to be achieved by VGA driver with P2A (PCI to AHB) enabling. However, HW suggests disable Fast reset mode after DRAM initializaton, because fast reset

[PATCH v3, 09/15] drm/mediatek: Add pm runtime support for gamma

2021-01-10 Thread Yongqiang Niu
gamma power domain need controled in the device. Signed-off-by: Yongqiang Niu Signed-off-by: Yidi Lin --- drivers/gpu/drm/mediatek/mtk_disp_gamma.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_disp_gamma.c b/drivers/gpu/drm/mediatek/mtk_disp_gamma.c

[PATCH v3, 08/15] drm/mediatek: check if fb is null

2021-01-10 Thread Yongqiang Niu
It's possible that state->base.fb is null. Add a check before access its format. Fixes: b6b1bb980ec4 ( drm/mediatek: Turn off Alpha bit when plane format has no alpha) Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH v3, 00/15] drm/mediatek: add support for mediatek SOC MT8192

2021-01-10 Thread Yongqiang Niu
This series are based on 5.11-rc1 and SoC MT8183, and provide 15 patch to support mediatek SOC MT8192 Changes since v2: - fix review comment in v2 - add pm runtime for gamma and color - move ddp path select patch to mmsys series - remove some useless patch Yongqiang Niu (15): dt-bindings:

[PATCH v3, 04/15] drm/mediatek: add component OVL_2L2

2021-01-10 Thread Yongqiang Niu
This patch add component OVL_2L2 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c index 81ed076..a715127 100644 ---

[PATCH v3, 02/15] dt-bindings: mediatek: add description for mt8192 display

2021-01-10 Thread Yongqiang Niu
add description for mt8192 display Signed-off-by: Yongqiang Niu Reviewed-by: Chun-Kuang Hu Acked-by: Rob Herring --- Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 2/2][v2] cpufreq: intel_pstate: Get percpu max freq via HWP MSR register if available

2021-01-10 Thread Chen Yu
Currently when turbo is disabled(either by BIOS or by the user), the intel_pstate driver reads the max frequency from the package-wide MSR_PLATFORM_INFO(0xce) register. However on asymmetric platforms it is possible in theory that small and big core with HWP enabled might have different max cpu

[PATCH 1/2][v2] cpufreq: intel_pstate: Add parameter to get guarantee frequency

2021-01-10 Thread Chen Yu
Add input parameter to receive guarantee pstate from intel_pstate_get_hwp_max() for later use. No functional change intended. Signed-off-by: Chen Yu --- drivers/cpufreq/intel_pstate.c | 23 --- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git

[PATCH 2/3] arm64: dtsi: ls1028a: Update flexcan properties

2021-01-10 Thread Kuldeep Singh
LS1028A supports two flexcan controllers similar to LX2160A. There's already a compatible entry defined i.e "fsl,lx2160ar1-flexcan" which can be further reused for LS1028A. Please note, "fsl,ls1028ar1-flexcan" compatible entry doesn't exists and can be safely removed. LS1028A has a single

[PATCH 0/2][v2] Get percpu max freq via HWP MSR register

2021-01-10 Thread Chen Yu
Asymmetric platforms might have different max cpu frequency between small and big cores. Currently the intel_pstate driver uses package wide MSR register that can not distinguish max cpu frequency between small and big cores when turbo is disabled, which causes inconsistency compared to the

[PATCH 1/3] arm64: dts: lx2160a: Add flexcan support

2021-01-10 Thread Kuldeep Singh
LX2160A supports two flexcan controllers. Add the support. Enable support further for LX2160A-RDB/QDS. Signed-off-by: Kuldeep Singh --- arch/arm64/boot/dts/freescale/fsl-lx2160a-qds.dts | 8 arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts | 16

[PATCH 0/3] Enable flexcan support in LS1028A/LX2160A

2021-01-10 Thread Kuldeep Singh
This patch set adds device-tree support for LX2160A-RDB/QDS. Also, update flexcan entry for LS1028A and enable support further for LS1028A-RDB/QDS. Patch1: Add dtsi and dts properties for LX2160A Patch2: Update dtsi properties for LS1028A Patch3: Add dts properties for LS1028A. Kuldeep Singh

[PATCH 3/3] arm64: dts: ls1028a: Enable flexcan support for LS1028A-RDB/QDS

2021-01-10 Thread Kuldeep Singh
LS1028A-RDB/QDS provides support for flexcan. Add the properties. Signed-off-by: Kuldeep Singh --- arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts | 8 arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts | 16 2 files changed, 24 insertions(+) diff --git

Re: [PATCH v1 3/7] perf cs-etm: Calculate per CPU metadata array size

2021-01-10 Thread Suzuki K Poulose
On 1/9/21 7:44 AM, Leo Yan wrote: The metadata array can be extended over time and the tool, if using the predefined macro (like CS_ETMV4_PRIV_MAX for ETMv4) as metadata array size to copy data, it can cause compatible issue within different versions of perf tool. E.g. we recorded a data file

Re: [PATCH] usb/gadget: f_midi: Replace tasklet with work

2021-01-10 Thread Felipe Balbi
Hi, Davidlohr Bueso writes: > Currently a tasklet is used to transmit input substream buffer > data. However, tasklets have long been deprecated as being too > heavy on the system by running in irq context - and this is not > a performance critical path. If a higher priority process wants > to

Re: [PATCH v4 0/5] imx8mq: updates for the interconnect fabric

2021-01-10 Thread Martin Kepplinger
On 11.01.21 05:51, Shawn Guo wrote: On Thu, Jan 07, 2021 at 01:17:49PM +0100, Martin Kepplinger wrote: revision history: v4: (thanks Shawn, Georgi and Greg) * reorder to have dt-bindings doc before code addition * add newline between dt nodes * removed "interconnect: imx8mq: Use

Re: [PATCH 09/15] gpio: support ROHM BD71815 GPOs

2021-01-10 Thread Vaittinen, Matti
On Mon, 2021-01-11 at 08:15 +0200, Matti Vaittinen wrote: > On Sat, 2021-01-09 at 01:45 +0100, Linus Walleij wrote: > > On Fri, Jan 8, 2021 at 2:39 PM Matti Vaittinen > > wrote: > > > > > Support GPO(s) found from ROHM BD71815 power management IC. The > > > IC > > > has two > > > GPO pins but

Re: [PATCH 0/1] mm: restore full accuracy in COW page reuse

2021-01-10 Thread John Hubbard
On 1/10/21 11:30 AM, Linus Torvalds wrote: On Sat, Jan 9, 2021 at 7:51 PM Linus Torvalds wrote: Just having a bit in the page flags for "I already made this exclusive, and fork() will keep it so" is I feel the best option. In a way, "page is writable" right now _is_ that bit. By definition, if

Re: linux-next: manual merge of the char-misc tree with the drivers-x86 tree

2021-01-10 Thread Greg KH
On Mon, Jan 11, 2021 at 01:08:51PM +1100, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the char-misc tree got conflicts in: > > include/linux/mod_devicetable.h > scripts/mod/devicetable-offsets.c > scripts/mod/file2alias.c > > between commit: > > eb0e90a82098

Re: [PATCH] USB: otg: Fix error 32 when enable hardware flow control.

2021-01-10 Thread gre...@linuxfoundation.org
On Mon, Jan 11, 2021 at 04:55:22AM +, Pho Tran wrote: > When hardware flow control is enabled, > don't allow host send MHS command to cp210x. > > Signed-off-by: Pho Tran Nit, you need a ' ' before the '<' character. And why didn't you send this to the maintainer of this file as described by

Re: [PATCHv2] perf tools: Detect when pipe is passed as perf data

2021-01-10 Thread Stephane Eranian
On Wed, Jan 6, 2021 at 1:49 AM Jiri Olsa wrote: > > On Tue, Jan 05, 2021 at 05:33:38PM -0800, Stephane Eranian wrote: > > Hi, > > > > On Wed, Dec 30, 2020 at 3:09 AM Jiri Olsa wrote: > > > > > > Currently we allow pipe input/output only through '-' string > > > being passed to '-o' or '-i'

Re: [PATCH] blk-mq-debugfs: Add decode for BLK_MQ_F_TAG_HCTX_SHARED

2021-01-10 Thread Hannes Reinecke
On 1/8/21 9:55 AM, John Garry wrote: Showing the hctx flags for when BLK_MQ_F_TAG_HCTX_SHARED is set gives something like: root@debian:/home/john# more /sys/kernel/debug/block/sda/hctx0/flags alloc_policy=FIFO SHOULD_MERGE|TAG_QUEUE_SHARED|3 Add the decoding for that flag. Fixes:

Re: linux-next: manual merge of the usb tree with the usb.current tree

2021-01-10 Thread Greg KH
On Wed, Jan 06, 2021 at 11:50:14AM +1100, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the usb tree got a conflict in: > > drivers/usb/dwc3/gadget.c > > between commit: > > a1383b3537a7 ("usb: dwc3: gadget: Restart DWC3 gadget when enabling pullup") > > from the

Re: [PATCH 1/2] soc: mediatek: Add regulator control for MT8192 MFG power domain

2021-01-10 Thread Hsin-Yi Wang
On Mon, Jan 4, 2021 at 10:44 AM Weiyi Lu wrote: > > Add regulator control support and specific power domain name of > MT8192 MFG power domain for regulator lookup. > Also power domain name can fix the debugfs warning. > (e.g. debugfs: Directory 'power-domain' with parent 'pm_genpd' > already

Re: [PATCH v2] powerpc: fix alignment bug whithin the init sections

2021-01-10 Thread Christophe Leroy
Le 02/01/2021 à 21:11, Ariel Marcovitch a écrit : This is a bug that causes early crashes in builds with a .exit.text section smaller than a page and a .init.text section that ends in the beginning of a physical page (this is kinda random, which might explain why this wasn't really

Re: [PATCH v1 06/15] powerpc: Remove address and errorcode arguments from do_break()

2021-01-10 Thread Christophe Leroy
Le 27/12/2020 à 04:25, Nicholas Piggin a écrit : Excerpts from Christophe Leroy's message of December 22, 2020 11:28 pm: Let do_break() retrieve address and errorcode from regs. This simplifies the code and shouldn't impeed performance as address and errorcode are likely still hot in the

Re: [PATCH 0/8] FPGA DFL Changes for 5.12

2021-01-10 Thread Greg KH
On Sun, Jan 10, 2021 at 11:43:54AM -0800, Tom Rix wrote: > > On 1/10/21 9:05 AM, Moritz Fischer wrote: > > Tom, > > > > On Sun, Jan 10, 2021 at 07:46:29AM -0800, Tom Rix wrote: > >> On 1/7/21 8:09 AM, Tom Rix wrote: > >>> On 1/6/21 8:37 PM, Moritz Fischer wrote: > This is a resend of the

Re: [PATCH] block/rnbd-clt: improve find_or_create_sess() return check

2021-01-10 Thread Jinpu Wang
On Sun, Jan 10, 2021 at 10:58 PM wrote: > > From: Tom Rix > > clang static analysis reports this problem > > rnbd-clt.c:1212:11: warning: Branch condition evaluates to a > garbage value > else if (!first) > ^~ > > This is triggered in the

Re: Reply to [RFC PATCH v2 0/1] Adding support for IIO SCMI based sensors

2021-01-10 Thread Jyoti Bhayana
Hi Jonathan, In section 4.7.2.5.1 of the specification, the following exponent is the scale value uint32 axis_attributes_high Bits[15:11] Exponent: The power-of-10 multiplier in two’s-complement format that is applied to the sensor unit specified by the SensorType field. and the resolution is

Re: [PATCH 3/5] af_vsock: send/receive loops for SOCK_SEQPACKET.

2021-01-10 Thread Arseny Krasnov
> Hmm, are you sure you need to convert > "err" to the pointer, just to return true/false > as the return value? > How about still returning "err" itself? In this case i need to reserve some value for "err" as success, because both 0 and negative values are passed to caller when this function

[PATCH] drm/ast: Disable fast reset after DRAM initial

2021-01-10 Thread KuoHsiang Chou
[Bug][AST2500] When AST2500 acts as stand-alone VGA so that DRAM and DVO initialization have to be achieved by VGA driver with P2A (PCI to AHB) enabling. However, HW suggests disable Fast reset mode after DRAM initializaton, because fast reset mode is mainly designed for ARM ICE debugger. Once

Re: [PATCH v5 0/2] UIO support for dfl devices

2021-01-10 Thread Xu Yilun
On Sun, Jan 10, 2021 at 11:58:44AM -0800, Moritz Fischer wrote: > Hi Xu, > > On Sat, Jan 02, 2021 at 11:13:00AM +0800, Xu Yilun wrote: > > This patchset supports some dfl device drivers written in userspace. > > > > In the patchset v1, the "driver_override" interface should be used to bind > >

perf does not resolve plt symbols from libstdc++ right (.plt.sec problem)

2021-01-10 Thread Jiri Slaby
Hi, this e-mails is a follow-up of my report at: https://bugzilla.suse.com/show_bug.cgi?id=1180681 There is a problem with *@plt symbols in some libraries, they are unresolved by perf (memcmp@plt in this case): > 0.26% main2/usr/lib64/libstdc++.so.6.0.280xa51a0

Re: [PATCH 5/5] Input: omap4-keypad - implement errata check for lost key-up events

2021-01-10 Thread Dmitry Torokhov
On Mon, Jan 11, 2021 at 08:10:18AM +0200, Tony Lindgren wrote: > * Tony Lindgren [210110 19:08]: > > --- a/drivers/input/keyboard/omap4-keypad.c > > +++ b/drivers/input/keyboard/omap4-keypad.c > > +/* > > + * Errata ID i689 "1.32 Keyboard Key Up Event Can Be Missed". > > + * Interrupt may not

Re: [PATCH 4/5] Input: omap4-keypad - use PM runtime autosuspend

2021-01-10 Thread Dmitry Torokhov
On Mon, Jan 11, 2021 at 08:02:50AM +0200, Tony Lindgren wrote: > * Tony Lindgren [210111 05:13]: > > * Dmitry Torokhov [210111 05:01]: > > > Hi Tony, > > > > > > On Sun, Jan 10, 2021 at 09:05:28PM +0200, Tony Lindgren wrote: > > > > @@ -350,15 +379,12 @@ static int omap4_keypad_probe(struct >

Re: [PATCH bpf-next 1/4] bpf: enable task local storage for tracing programs

2021-01-10 Thread Yonghong Song
On 1/8/21 3:19 PM, Song Liu wrote: To access per-task data, BPF program typically creates a hash table with pid as the key. This is not ideal because: 1. The use need to estimate requires size of the hash table, with may be inaccurate; 2. Big hash tables are slow; 3. To clean up

Re: [PATCH 3/5] Input: omap4-keypad - move rest of key scanning to a separate function

2021-01-10 Thread Dmitry Torokhov
On Mon, Jan 11, 2021 at 07:57:39AM +0200, Tony Lindgren wrote: > * Dmitry Torokhov [210111 04:50]: > > On Sun, Jan 10, 2021 at 09:05:27PM +0200, Tony Lindgren wrote: > > > Let's move rest of the key scanning code to omap4_keypad_scan_keys(). > > > We will use omap4_keypad_scan_keys() also for

Re: [PATCH 2/5] Input: omap4-keypad - scan keys in two phases and simplify with bitmask

2021-01-10 Thread Dmitry Torokhov
On Mon, Jan 11, 2021 at 07:56:54AM +0200, Tony Lindgren wrote: > * Dmitry Torokhov [210111 04:48]: > > Technically speaking, userspace is free to accumulate the events until > > it receives EV_SYN/SYN_REPORT event and process the events in the event > > packet in order it sees fit. So to achieve

Re: [RFC PATCH v2] selinux: security: Move selinux_state to a separate page

2021-01-10 Thread pnagar
On 2021-01-08 20:55, Miguel Ojeda wrote: On Fri, Jan 8, 2021 at 10:52 AM Preeti Nagar wrote: We want to seek your suggestions and comments on the idea and the changes in the patch. Not sure why I was Cc'd, but I have a quick comment nevertheless. +#ifdef CONFIG_SECURITY_RTIC +struct

Re: [PATCH 1/5] Input: omap4-keypad - disable unused long interrupts

2021-01-10 Thread Dmitry Torokhov
On Sun, Jan 10, 2021 at 09:05:25PM +0200, Tony Lindgren wrote: > We are not using the long events and they produce extra interrupts. > Let's not enable them at all. > > Note that also the v3.0.8 Linux Android kernel has long interrupts > disabled. > > Cc: Arthur Demchenkov > Cc: Carl Philipp

Re: [PATCH 0/5] Optimize iommu_map_sg() performance

2021-01-10 Thread Sai Prakash Ranjan
Hi Isaac, On 2021-01-09 07:20, Isaac J. Manjarres wrote: > The iommu_map_sg() code currently iterates through the given > scatter-gather list, and in the worst case, invokes iommu_map() > for each element in the scatter-gather list, which calls into > the IOMMU driver through an indirect call.

Re: [PATCH v5 1/2] fpga: dfl: add the userspace I/O device support for DFL devices

2021-01-10 Thread Xu Yilun
On Sun, Jan 10, 2021 at 12:11:17PM -0800, Moritz Fischer wrote: > On Sat, Jan 02, 2021 at 11:13:01AM +0800, Xu Yilun wrote: > > This patch supports the DFL drivers be written in userspace. This is > > realized by exposing the userspace I/O device interfaces. > > > > The driver leverages the

Re: [PATCH 09/15] gpio: support ROHM BD71815 GPOs

2021-01-10 Thread Vaittinen, Matti
Hi Linus, Thanks a lot for review! On Sat, 2021-01-09 at 01:45 +0100, Linus Walleij wrote: > On Fri, Jan 8, 2021 at 2:39 PM Matti Vaittinen > wrote: > > > Support GPO(s) found from ROHM BD71815 power management IC. The IC > > has two > > GPO pins but only one is properly documented in

Re: [PATCH 5/5] Input: omap4-keypad - implement errata check for lost key-up events

2021-01-10 Thread Tony Lindgren
* Tony Lindgren [210110 19:08]: > --- a/drivers/input/keyboard/omap4-keypad.c > +++ b/drivers/input/keyboard/omap4-keypad.c > +/* > + * Errata ID i689 "1.32 Keyboard Key Up Event Can Be Missed". > + * Interrupt may not happen for key-up events. We must clear stuck > + * key-up events after the

Re: [PATCH 4/5] Input: omap4-keypad - use PM runtime autosuspend

2021-01-10 Thread Tony Lindgren
* Tony Lindgren [210111 05:13]: > * Dmitry Torokhov [210111 05:01]: > > Hi Tony, > > > > On Sun, Jan 10, 2021 at 09:05:28PM +0200, Tony Lindgren wrote: > > > @@ -350,15 +379,12 @@ static int omap4_keypad_probe(struct > > > platform_device *pdev) > > > > > > error =

Re: [PATCH] scsi: ufs: should not override buffer lengh

2021-01-10 Thread Can Guo
Sorry, typo corrected. Hi Jaegeuk, I think the problem is that func ufshcd_read_desc_param() is not expecting one access unsupported descriptors on RPMB LU. If we can get the right buf_len from func ufshcd_map_desc_id_to_length(), the issue won't happen. -

[PATCH V1 resend] dcookies: Make dcookies depend on CONFIG_OPROFILE

2021-01-10 Thread Viresh Kumar
From: Arnd Bergmann The dcookies stuff is used only with OPROFILE and there is no need to build it if CONFIG_OPROFILE isn't enabled. Build it depending on CONFIG_OPROFILE instead of CONFIG_PROFILING. Reviewed-by: Christoph Hellwig Signed-off-by: Arnd Bergmann [ Viresh: Update the name in

Re: [PATCH 2/5] Input: omap4-keypad - scan keys in two phases and simplify with bitmask

2021-01-10 Thread Tony Lindgren
* Dmitry Torokhov [210111 04:48]: > Technically speaking, userspace is free to accumulate the events until > it receives EV_SYN/SYN_REPORT event and process the events in the event > packet in order it sees fit. So to achieve what you want, I think we > should issue 2 input_sync()s, one for the

Re: [PATCH 3/5] Input: omap4-keypad - move rest of key scanning to a separate function

2021-01-10 Thread Tony Lindgren
* Dmitry Torokhov [210111 04:50]: > On Sun, Jan 10, 2021 at 09:05:27PM +0200, Tony Lindgren wrote: > > Let's move rest of the key scanning code to omap4_keypad_scan_keys(). > > We will use omap4_keypad_scan_keys() also for implementing errata > > handling to clear the stuck last key in the

Re: [PATCH] scsi: ufs: should not override buffer lengh

2021-01-10 Thread Can Guo
Hi Jaegeuk, I think the problem is that func ufshcd_read_desc_param() is not expecting one access unsupported descriptors on all W-LUs, not just RPMB LU. If we can get the right buf_len from func ufshcd_map_desc_id_to_length(), the issue won't happen. -

[PATCH net-next 0/2] dsa: add MT7530 GPIO support

2021-01-10 Thread DENG Qingfang
MT7530's LED controller can be used as GPIO controller. Add support for it. DENG Qingfang (2): dt-bindings: net: dsa: add MT7530 GPIO controller binding drivers: net: dsa: mt7530: MT7530 optional GPIO support .../devicetree/bindings/net/dsa/mt7530.txt| 6 ++ drivers/net/dsa/mt7530.c

[PATCH net-next 2/2] drivers: net: dsa: mt7530: MT7530 optional GPIO support

2021-01-10 Thread DENG Qingfang
MT7530's LED controller can drive up to 15 LED/GPIOs. Add support for GPIO control and allow users to use its GPIOs by setting gpio-controller property in device tree. Signed-off-by: DENG Qingfang --- drivers/net/dsa/mt7530.c | 96

[PATCH net-next 1/2] dt-bindings: net: dsa: add MT7530 GPIO controller binding

2021-01-10 Thread DENG Qingfang
Add device tree binding to support MT7530 GPIO controller. Signed-off-by: DENG Qingfang --- Documentation/devicetree/bindings/net/dsa/mt7530.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/net/dsa/mt7530.txt

[PATCH v3 1/4] ASoC: rt5645: Introduce mapping for ACPI-defined GPIO

2021-01-10 Thread Chris Chiu
On at least one laptop (ECS EF20EA) the 'hp-detect' GPIO is defined in the DSDT table by the ACPI GpioIo resources in _CRS. The GPIO related information should be mapped to the rt5645 driver to enable the jack detection also on non-DT platforms. Signed-off-by: Chris Chiu --- v2 -> v3:

[PATCH v3 3/4] ASoC: rt5645: add inv_hp_det flag

2021-01-10 Thread Chris Chiu
The ECS EF20EA laptop use gpio for jack detection instead of rt5645 rt5645 JD. However, the GPIO polarity is inverse for hp-detect based on the _DSD property of the RTK2 device. Name (_DSD, Package () { ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), Package () { Package ()

[PATCH v3 2/4] ASoC: rt5645: Add ACPI-defined GPIO for ECS EF20 series

2021-01-10 Thread Chris Chiu
Add the hp-detect gpio for ECS EF20 series laptops based on the _CRS defined in DSDT table. Method (_CRS, 0, NotSerialized) { Name (SBUF, ResourceTemplate () { I2cSerialBusV2 (0x001A, ControllerInitiated, 0x00061A80, AddressingMode7Bit, "\\_SB.PCI0.I2C2", 0x00,

[PATCH v3 4/4] ASoC: rt5645: Enable internal microphone and JD on ECS EF20

2021-01-10 Thread Chris Chiu
On ECS EF20 series laptops, the internal mic is on DMIC2/IN2P. And they need the inv_hp_det to make jack detection to work as exoected. Signed-off-by: Chris Chiu --- v2 -> v3: - restore the terminator {} of the dmi_platform_data[] v1 -> v2: - none sound/soc/codecs/rt5645.c

[PATCH v3 0/4] ASoC: rt5645: Enable internal mic and headset on ECS EF20

2021-01-10 Thread Chris Chiu
These patches are trying to fix the jack detection and internal microphone problems on ECS EF20 series laptops which are empowered by Intel Atom x5-Z8350 CPU (CherryTrail) with Realtek rt5645 audio codec. --- v2 -> v3: Restore the accidentally removed terminator of the

Re: [PATCH v2] HID: Add Wireless Radio Control feature for Chicony devices

2021-01-10 Thread Jian-Hong Pan
Jiri Kosina 於 2021年1月7日 週四 下午5:23寫道: > > On Wed, 23 Dec 2020, Jian-Hong Pan wrote: > > > Some Chicony's keyboards support airplane mode hotkey (Fn+F2) with > > "Wireless Radio Control" feature. For example, the wireless keyboard > > [04f2:1236] shipped with ASUS all-in-one desktop. > > > > After

Re: [PATCH] target/file: don't zero iter before iov_iter_bvec

2021-01-10 Thread Pavel Begunkov
On 11/01/2021 05:23, Chaitanya Kulkarni wrote: > On 1/10/21 18:32, Pavel Begunkov wrote: >> On 11/01/2021 02:06, Chaitanya Kulkarni wrote: >>> On 1/9/21 13:29, Pavel Begunkov wrote: On 09/01/2021 20:52, Chaitanya Kulkarni wrote: > On 1/9/21 12:40, Pavel Begunkov wrote: >> I expect you

Re: [PATCH] target/file: don't zero iter before iov_iter_bvec

2021-01-10 Thread Chaitanya Kulkarni
On 1/10/21 18:32, Pavel Begunkov wrote: > On 11/01/2021 02:06, Chaitanya Kulkarni wrote: >> On 1/9/21 13:29, Pavel Begunkov wrote: >>> On 09/01/2021 20:52, Chaitanya Kulkarni wrote: On 1/9/21 12:40, Pavel Begunkov wrote: > I expect you won't find any, but such little things can pile up

Re: [PATCH mips-fixes] MIPS: relocatable: fix possible boot hangup with KASLR enabled

2021-01-10 Thread Nathan Chancellor
On Sun, Jan 10, 2021 at 02:21:05PM +, Alexander Lobakin wrote: > LLVM-built Linux triggered a boot hangup with KASLR enabled. > > arch/mips/kernel/relocate.c:get_random_boot() uses linux_banner, > which is a string constant, as a random seed, but accesses it > as an array of unsigned long (in

Re: INFO: trying to register non-static key in l2cap_sock_teardown_cb

2021-01-10 Thread syzbot
syzbot has bisected this issue to: commit 4680a7ee5db27772af40d83393fa0fb955b745b7 Author: Miklos Szeredi Date: Sat Oct 1 05:32:33 2016 + fuse: remove duplicate cs->offset assignment bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=11fc80e750 start commit: 73b7a604

[PATCH 1/2] f2fs: introduce checkpoint=merge mount option

2021-01-10 Thread Daeho Jeong
From: Daeho Jeong We've added a new mount option "checkpoint=merge", which creates a kernel daemon and makes it to merge concurrent checkpoint requests as much as possible to eliminate redundant checkpoint issues. Plus, we can eliminate the sluggish issue caused by slow checkpoint operation when

[PATCH 2/2] f2fs: add ckpt_thread_ioprio sysfs node

2021-01-10 Thread Daeho Jeong
From: Daeho Jeong Added "ckpt_thread_ioprio" sysfs node to give a way to change checkpoint merge daemon's io priority. Its default value is "be,3", which means "BE" I/O class and I/O priority "3". We can select the class between "rt" and "be", and set the I/O priority within valid range of it.

Re: [PATCH] block/rnbd-clt: improve find_or_create_sess() return check

2021-01-10 Thread Nathan Chancellor
On Sun, Jan 10, 2021 at 01:57:26PM -0800, t...@redhat.com wrote: > From: Tom Rix > > clang static analysis reports this problem > > rnbd-clt.c:1212:11: warning: Branch condition evaluates to a > garbage value > else if (!first) > ^~ Ah, is it complaining that the

Re: [PATCH 4/5] Input: omap4-keypad - use PM runtime autosuspend

2021-01-10 Thread Tony Lindgren
* Dmitry Torokhov [210111 05:01]: > Hi Tony, > > On Sun, Jan 10, 2021 at 09:05:28PM +0200, Tony Lindgren wrote: > > @@ -350,15 +379,12 @@ static int omap4_keypad_probe(struct platform_device > > *pdev) > > > > error = omap4_keypad_check_revision(>dev, > >

Re: [RFC PATCH 5/8] entry: Explicitly flush pending rcuog wakeup before last rescheduling points

2021-01-10 Thread Paul E. McKenney
On Mon, Jan 11, 2021 at 01:40:14AM +0100, Frederic Weisbecker wrote: > On Sat, Jan 09, 2021 at 03:05:33AM +0100, Frederic Weisbecker wrote: > > Following the idle loop model, cleanly check for pending rcuog wakeup > > before the last rescheduling point on resuming to user mode. This > > way we can

Re: [PATCH 4/5] Input: omap4-keypad - use PM runtime autosuspend

2021-01-10 Thread Dmitry Torokhov
Hi Tony, On Sun, Jan 10, 2021 at 09:05:28PM +0200, Tony Lindgren wrote: > @@ -350,15 +379,12 @@ static int omap4_keypad_probe(struct platform_device > *pdev) > > error = omap4_keypad_check_revision(>dev, > keypad_data); > - if (!error) { > -

Re: [PATCH] iommu/io-pgtable-arm: Allow non-coherent masters to use system cache

2021-01-10 Thread Sai Prakash Ranjan
On 2021-01-08 23:48, Will Deacon wrote: On Fri, Jan 08, 2021 at 11:17:25AM +0530, Sai Prakash Ranjan wrote: On 2021-01-07 22:27, isa...@codeaurora.org wrote: > On 2021-01-06 03:56, Will Deacon wrote: > > On Thu, Dec 24, 2020 at 12:10:07PM +0530, Sai Prakash Ranjan wrote: > > > commit

[PATCH] USB: otg: Fix error 32 when enable hardware flow control.

2021-01-10 Thread Pho Tran
When hardware flow control is enabled, don't allow host send MHS command to cp210x. Signed-off-by: Pho Tran --- drivers/usb/serial/cp210x.c | 32 +++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/drivers/usb/serial/cp210x.c

Re: [PATCH v4 0/5] imx8mq: updates for the interconnect fabric

2021-01-10 Thread Shawn Guo
On Thu, Jan 07, 2021 at 01:17:49PM +0100, Martin Kepplinger wrote: > revision history: > v4: (thanks Shawn, Georgi and Greg) > * reorder to have dt-bindings doc before code addition > * add newline between dt nodes > * removed "interconnect: imx8mq: Use icc_sync_state" from the patchset >

Re: [PATCH 3/5] Input: omap4-keypad - move rest of key scanning to a separate function

2021-01-10 Thread Dmitry Torokhov
On Sun, Jan 10, 2021 at 09:05:27PM +0200, Tony Lindgren wrote: > Let's move rest of the key scanning code to omap4_keypad_scan_keys(). > We will use omap4_keypad_scan_keys() also for implementing errata > handling to clear the stuck last key in the following patch. And this one will become

Re: [PATCH 2/5] Input: omap4-keypad - scan keys in two phases and simplify with bitmask

2021-01-10 Thread Dmitry Torokhov
Hi Tony, On Sun, Jan 10, 2021 at 09:05:26PM +0200, Tony Lindgren wrote: > Because of errata i689 the keyboard can idle with state where no key > up interrupts are seen until after the next key press. > > This means we need to first check for any lost key up events before > scanning for new down

Re: [PATCH] ASoC: audio-graph-card: Drop remote-endpoint as required property

2021-01-10 Thread Sameer Pujar
Hi Rob, On 12/10/2020 8:14 PM, Sameer Pujar wrote: Hi Rob, The remote-endpoint may not be available if it is part of some pluggable module. One such example would be an audio card, the Codec endpoint will not be available until it is plugged in. Hence drop 'remote-endpoint' as a required

Re: [PATCH V4 0/3] arm64: topology: improvements

2021-01-10 Thread Viresh Kumar
On 08-01-21, 15:53, Ionela Voinescu wrote: > On Friday 08 Jan 2021 at 16:46:50 (+0530), Viresh Kumar wrote: > > Hi, > > > > Here is the V4 with the general improvements for topology stuff. This > > cleans up the code and makes it work with cpufreq modules. > > > > V4: > > - Added Rby from

linux-next: Tree for Jan 11

2021-01-10 Thread Stephen Rothwell
Hi all, Changes since 20210108: The btrfs tree gained a conflict against the btrfs-fixes tree. The drm tree still had its build failure so I used the version from next-20210107. The amdgpu tree lost its build failure. The drm-intel tree gained a build failure from merging the drm tree, so I

[PATCH] scsi: ufs: should not override buffer lengh

2021-01-10 Thread Jaegeuk Kim
From: Jaegeuk Kim Kernel stack violation when getting unit_descriptor/wb_buf_alloc_units from rpmb lun. The reason is the unit descriptor length is different per LU. The lengh of Normal LU is 45, while the one of rpmb LU is 35. int ufshcd_read_desc_param(struct ufs_hba *hba, ...) {

5.11-rc device reordering breaks ThinkPad rmi4 suspend

2021-01-10 Thread Hugh Dickins
Hi Rafael, Synaptics RMI4 SMBus touchpad on ThinkPad X1 Carbon (5th generation) fails to suspend when running 5.11-rc kernels: bisected to 5b6164d3465f ("driver core: Reorder devices on successful probe"), and reverting that fixes it. dmesg.xz attached, but go ahead and ask me to switch on a

Re: [PATCH 4/6] hugetlb: avoid allocation failed when page reporting is on going

2021-01-10 Thread Liang Li
> > > Please don't use this email address for me anymore. Either use > > > alexander.du...@gmail.com or alexanderdu...@fb.com. I am getting > > > bounces when I reply to this thread because of the old address. > > > > No problem. > > > > > > diff --git a/mm/hugetlb.c b/mm/hugetlb.c > > > > index

[PATCH] usb/c67x00: Replace tasklet with work

2021-01-10 Thread Davidlohr Bueso
Tasklets have long been deprecated as being too heavy on the system by running in irq context - and this is not a performance critical path. If a higher priority process wants to run, it must wait for the tasklet to finish before doing so. c67x00_do_work() will now run in process context and have

Re: [PATCH] iommu/io-pgtable-arm: Allow non-coherent masters to use system cache

2021-01-10 Thread Sai Prakash Ranjan
On 2021-01-08 23:39, isa...@codeaurora.org wrote: On 2021-01-07 21:47, Sai Prakash Ranjan wrote: On 2021-01-07 22:27, isa...@codeaurora.org wrote: On 2021-01-06 03:56, Will Deacon wrote: On Thu, Dec 24, 2020 at 12:10:07PM +0530, Sai Prakash Ranjan wrote: commit ecd7274fb4cd ("iommu: Remove

  1   2   3   4   5   6   >