Re: [RFC] Limiting charge current on Droid 4 (and N900)

2020-08-19 Thread Pavel Machek
Hi! > > > Droid 4 has same problem as N900: it is often neccessary to manually > > > tweak current draw from USB, for example when using thin charging cable. > > > > > > N900 creates unique attribute by hand, but I believe > > > POWER_SUPPLY_PROP_INPUT_CURRENT_LIMIT looks suitable. (Should N900 b

Re: [PATCH 2/2] nvme: add emulation for zone-append

2020-08-19 Thread Christoph Hellwig
On Thu, Aug 20, 2020 at 08:37:19AM +0200, Javier Gonzalez wrote: > We will stop pushing for this emulation. We have a couple of SSDs where > we disabled Append, we implemented support for them, and we wanted to > push the changes upstream. That's it. This is no politics not a > conspiracy against t

Re: [PATCH v2] lib: Verify array index is correct before using it

2020-08-19 Thread Herbert Xu
On Tue, Jul 28, 2020 at 08:21:57AM -0400, Huang Guobin wrote: > This code reads from the array before verifying that "c" is a valid > index. Move test array offset code before use to fix it. > > Fixes: 2da572c959dd ("lib: add software 842 compression/decompression") > Signed-off-by: Huang Guobin

[PATCH] net: phy: mscc: Fix a couple of spelling mistakes "spcified" -> "specified"

2020-08-19 Thread Kaige Li
There are a couple of spelling mistakes in comment text. Fix these. Signed-off-by: Kaige Li --- drivers/net/phy/mscc/mscc_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/mscc/mscc_main.c b/drivers/net/phy/mscc/mscc_main.c index a4fbf3a..6bc7406 1006

Re: [PATCH 2/2] nvme: add emulation for zone-append

2020-08-19 Thread Javier Gonzalez
On 19.08.2020 12:43, Christoph Hellwig wrote: On Wed, Aug 19, 2020 at 09:14:13AM +, Damien Le Moal wrote: While defining a zone append command for SCSI/ZBC is possible (using sense data for returning the written offset), there is no way to define zone append for SATA/ZAC without entirely bre

Re: [PATCH 00/49] DRM driver for Hikey 970

2020-08-19 Thread Mauro Carvalho Chehab
Em Wed, 19 Aug 2020 23:25:51 +0200 Sam Ravnborg escreveu: > Hi John. > > > > So, IMO, the best is to keep it on staging for a while, until those > > > remaining bugs gets solved. > > > > I'm not sure I see all of these as compelling for pushing it in via > > staging. And I suspect in the proc

Re: [PATCH 2/2] nvme: add emulation for zone-append

2020-08-19 Thread Javier Gonzalez
On 19.08.2020 13:25, Jens Axboe wrote: On 8/19/20 12:11 PM, David Fugate wrote: On Tue, 2020-08-18 at 07:12 +, Christoph Hellwig wrote: On Tue, Aug 18, 2020 at 10:59:36AM +0530, Kanchan Joshi wrote: If drive does not support zone-append natively, enable emulation using regular write. Make

Re: Re: Re: [PATCH] video: backlight: sky81452-backlight: Fix reference count imbalance on error

2020-08-19 Thread dinghao . liu
> On Thu, 20 Aug 2020, dinghao@zju.edu.cn wrote: > > > > On Wed, 19 Aug 2020, Markus Elfring wrote: > > > > > > > > When of_property_read_u32_array() returns an error code, > > > > > a pairing refcount decrement is needed to keep np's refcount balanced. > > > > > > > > Can another imperative

Re: [PATCH] scsi: ufs: Remove an unpaired ufshcd_scsi_unblock_requests() in err_handler()

2020-08-19 Thread Can Guo
On 2020-08-20 14:24, Avri Altman wrote: Commit 5586dd8ea250a ("scsi: ufs: Fix a race condition between error handler and runtime PM ops") moves the ufshcd_scsi_block_requests() inside err_handler(), but forgets to remove the ufshcd_scsi_unblock_requests() in the early return path. Correct the

Re: [RFC PATCH bpf-next 3/4] bpf: add bpf_trace_btf helper

2020-08-19 Thread Andrii Nakryiko
On Thu, Aug 6, 2020 at 1:24 PM Alan Maguire wrote: > > A helper is added to support tracing kernel type information in BPF > using the BPF Type Format (BTF). Its signature is > > long bpf_trace_btf(struct btf_ptr *ptr, u32 btf_ptr_size, u32 trace_id, >u64 flags); > > struct bt

[PATCH] kbuild: Run syncconfig with -s

2020-08-19 Thread Ingo Molnar
On every kernel build that runs --syncconfig, there's an output of the following line: scripts/kconfig/conf --syncconfig Kconfig This is the only non-platform build message the kbuild system emits that isn't prefixed by at least a space, or is a build warning. Run it under -s - if there's an

Re: [PATCH 00/49] DRM driver for Hikey 970

2020-08-19 Thread Mauro Carvalho Chehab
Em Wed, 19 Aug 2020 14:13:05 -0700 John Stultz escreveu: > On Wed, Aug 19, 2020 at 4:46 AM Mauro Carvalho Chehab > wrote: > > Yet, I'm submitting it via staging due to the following reasons: > > > > - It depends on the LDO3 power supply, which is provided by > > a regulator driver that it is c

[tip: x86/build] x86/build: Declutter the build output

2020-08-19 Thread tip-bot2 for Ingo Molnar
The following commit has been merged into the x86/build branch of tip: Commit-ID: 642d94cf336fe57675e63a91d11f53d74b9a3f9f Gitweb: https://git.kernel.org/tip/642d94cf336fe57675e63a91d11f53d74b9a3f9f Author:Ingo Molnar AuthorDate:Thu, 20 Aug 2020 08:17:40 +02:00 Committer:

RE: [PATCH] scsi: ufs: Remove an unpaired ufshcd_scsi_unblock_requests() in err_handler()

2020-08-19 Thread Avri Altman
> > Commit 5586dd8ea250a ("scsi: ufs: Fix a race condition between error > handler and runtime PM ops") moves the ufshcd_scsi_block_requests() inside > err_handler(), but forgets to remove the ufshcd_scsi_unblock_requests() in > the early return path. Correct the coding mistake. "fixes" tag ple

Re: Re: [PATCH] video: backlight: sky81452-backlight: Fix reference count imbalance on error

2020-08-19 Thread Lee Jones
On Thu, 20 Aug 2020, dinghao@zju.edu.cn wrote: > > On Wed, 19 Aug 2020, Markus Elfring wrote: > > > > > > When of_property_read_u32_array() returns an error code, > > > > a pairing refcount decrement is needed to keep np's refcount balanced. > > > > > > Can another imperative wording be help

RE: [PATCH V2 2/2] arm64: imx: Select TPM driver by default

2020-08-19 Thread Anson Huang
Gentle ping... > -Original Message- > From: Anson Huang > Sent: 2020年7月8日 11:16 > To: catalin.mari...@arm.com; w...@kernel.org; daniel.lezc...@linaro.org; > t...@linutronix.de; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org > Cc: dl-linux-imx > Subject: [PATCH V2 2/

Re: [RFC][PATCH v2 08/10] smp,irq_work: Use the new irq_work API

2020-08-19 Thread Christoph Hellwig
On Wed, Aug 19, 2020 at 11:50:55AM -0700, Linus Torvalds wrote: > On Wed, Aug 19, 2020 at 12:22 AM wrote: > > > > That is, the external serialization comes from the non-atomic > > test-and-set they both have. This works nicely when there is external > > state that already serializes things, but to

Re: [RFC][PATCH v2 08/10] smp,irq_work: Use the new irq_work API

2020-08-19 Thread Christoph Hellwig
On Tue, Aug 18, 2020 at 12:51:10PM +0200, Peter Zijlstra wrote: > if (blk_mq_complete_need_ipi(rq)) { > - INIT_CSD(&rq->csd, __blk_mq_complete_request_remote, rq); > - smp_call_function_single_async(rq->mq_ctx->cpu, &rq->csd); > + rq->work = IRQ_WORK_INIT_H

Re: [PATCH 1/2] Revert "drivers: qcom: rpmh-rsc: Use rcuidle tracepoints for rpmh"

2020-08-19 Thread Sai Prakash Ranjan
On 2020-08-19 15:37, Maulik Shah wrote: This change was done based on an test results of unmerged series of adding RSC power domain and using .power_off callback of genpd to invoke rpmh_flush(). Call trace: dump_backtrace+0x0/0x174 show_stack+0x20/0x2c dump_stack+0xc8/0x12

Re: [PATCH v2 3/3] mm: remove superfluous __ClearPageWaiters()

2020-08-19 Thread Michal Hocko
On Tue 18-08-20 12:47:04, Yu Zhao wrote: > Presumably __ClearPageWaiters() was added to follow the previously > removed __ClearPageActive() pattern. I do not think so. Please have a look at 62906027091f ("mm: add PageWaiters indicating tasks are waiting for a page bit") and a discussion when the p

Re: BUG: corrupted list in kobject_add_internal

2020-08-19 Thread Dmitry Vyukov
On Thu, Aug 20, 2020 at 8:07 AM Coiby Xu wrote: > > On Fri, Aug 07, 2020 at 09:47:20AM -0700, syzbot wrote: > >Hello, > > > >syzbot found the following issue on: > > > >HEAD commit:5a30a789 Merge tag 'x86-urgent-2020-08-02' of git://git.ke.. > >git tree: upstream > >console output: https

linux-next: Fixes tag needs some work in the tip tree

2020-08-19 Thread Stephen Rothwell
Hi all, In commit 71aefb9a89d4 ("RAS/CEC: Fix cec_init() prototype") Fixes tag Fixes: 9554bfe403nd ("x86/mce: Convert the CEC to use the MCE notifier") has these problem(s): - The SHA1 is not all hex Presumably Fixes: 9554bfe403bd ("x86/mce: Convert the CEC to use the MCE notifier")

Re: [RFC PATCH 0/8] memcg: Enable fine-grained per process memory control

2020-08-19 Thread Dave Chinner
On Tue, Aug 18, 2020 at 01:55:59PM +0100, Matthew Wilcox wrote: > On Tue, Aug 18, 2020 at 12:04:44PM +0200, pet...@infradead.org wrote: > > On Tue, Aug 18, 2020 at 10:27:37AM +0100, Chris Down wrote: > > > pet...@infradead.org writes: > > > > On Mon, Aug 17, 2020 at 10:08:23AM -0400, Waiman Long wr

Re: BUG: corrupted list in kobject_add_internal

2020-08-19 Thread Coiby Xu
On Fri, Aug 07, 2020 at 09:47:20AM -0700, syzbot wrote: Hello, syzbot found the following issue on: HEAD commit:5a30a789 Merge tag 'x86-urgent-2020-08-02' of git://git.ke.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1660c85890 kernel config: http

[PATCH v1 05/21] mtk-mmsys: add ovl mout on support

2020-08-19 Thread Yongqiang Niu
add ovl mout on support Signed-off-by: Yongqiang Niu --- drivers/soc/mediatek/mmsys/mt8192-mmsys.c | 23 +++ drivers/soc/mediatek/mtk-mmsys.c | 8 include/linux/soc/mediatek/mtk-mmsys.h| 3 +++ 3 files changed, 34 insertions(+) diff --git a/drivers/so

[PATCH v1 21/21] arm64: dts: mt8192: add display node

2020-08-19 Thread Yongqiang Niu
add display node Signed-off-by: Yongqiang Niu --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 126 +++ 1 file changed, 126 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi index 931e1ca..d2a814d 100644 ---

[PATCH v1 11/21] drm/mediatek: fix gamma size config

2020-08-19 Thread Yongqiang Niu
fix gamma size config Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c index becd72d..1d8dc6a 100644 --- a/dr

[PATCH v1 06/21] drm/mediatek: add disp config and mm 26mhz clock into mutex device

2020-08-19 Thread Yongqiang Niu
there are 2 more clock need enable for display. parser these clock when mutex device probe, enable and disable when mutex on/off Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 49 -- 1 file changed, 41 insertions(+), 8 deletions(-) diff

[PATCH v1 15/21] drm/mediatek: add color bypass shadow register function

2020-08-19 Thread Yongqiang Niu
add color bypass shadow register function Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_disp_color.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_disp_color.c b/drivers/gpu/drm/mediatek/mtk_disp_color.c index 31918fa..83b075a

[PATCH v1 10/21] drm/mediatek: fix dither size config

2020-08-19 Thread Yongqiang Niu
fix dither size config Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c index fe76387..becd72d 100644 --- a/d

[PATCH v1 04/21] mtk-mmsys: add mt8192 mmsys support

2020-08-19 Thread Yongqiang Niu
add mt8192 mmsys support Signed-off-by: Yongqiang Niu --- drivers/soc/mediatek/mmsys/Makefile | 1 + drivers/soc/mediatek/mmsys/mt8192-mmsys.c | 159 ++ 2 files changed, 160 insertions(+) create mode 100644 drivers/soc/mediatek/mmsys/mt8192-mmsys.c diff --gi

[PATCH v1 03/21] drm/mediatek: add component RDMA4

2020-08-19 Thread Yongqiang Niu
This patch add component RDMA4 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 1 + include/linux/soc/mediatek/mtk-mmsys.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp

[PATCH v1 18/21] drm/mediatek: add dither bypass shadow register function

2020-08-19 Thread Yongqiang Niu
add dither bypass shadow register function Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c index 0c81253..315bd

[PATCH v1 08/21] drm/mediatek: check if fb is null

2020-08-19 Thread Yongqiang Niu
It's possible that state->base.fb is null. Add a check before access its format. Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_disp_ovl.c b/drivers/gpu/drm/mediatek/mtk_di

[PATCH v1 09/21] drm/mediatek: fix aal size config

2020-08-19 Thread Yongqiang Niu
fix aal size config Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c index c90d2ee..fe76387 10064

[PATCH v1 07/21] drm/mediatek: enable OVL_LAYER_SMI_ID_EN for multi-layer usecase

2020-08-19 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_disp_ovl.c b/drivers/gpu/drm/mediatek/mtk_disp_ovl.c index 8cf9f3b..427fe7f 100644 ---

[PATCH v1 00/21] add drm support for MT8192

2020-08-19 Thread Yongqiang Niu
Changes in v1: - add some more ddp component - add mt8192 mmsys support - add ovl mount on support - add 2 more clock into mutex device - fix ovl smi_id_en and fb null software bug - fix ddp compoent size config bug - add mt8192 drm support - add ddp bypass shadow register function - add 8192 dts d

[PATCH v1 13/21] drm/mediatek: add support for mediatek SOC MT8192

2020-08-19 Thread Yongqiang Niu
add support for mediatek SOC MT8192 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_disp_color.c | 7 + drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 20 + drivers/gpu/drm/mediatek/mtk_disp_rdma.c | 7 + drivers/gpu/drm/mediatek/mtk_drm_ddp.c| 35 ++

[PATCH v1 14/21] drm/mediatek: add bypass shadow register function call for ddp component

2020-08-19 Thread Yongqiang Niu
the shadow register for mt8192 ddp component is enable, we need disable it before enable ddp component Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 3 +++ drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 7 +++ 2 files changed, 10 insertions(+) diff --git a/dr

[PATCH v1 17/21] drm/mediatek: add rdma bypass shadow register function

2020-08-19 Thread Yongqiang Niu
add rdma bypass shadow register function Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_disp_rdma.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_disp_rdma.c b/drivers/gpu/drm/mediatek/mtk_disp_rdma.c index 0683bef..91ed6c6

[PATCH v1 19/21] drm/mediatek: add aal bypass shadow register function

2020-08-19 Thread Yongqiang Niu
add aal bypass shadow register function Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c index 31

[PATCH v1 20/21] drm/mediatek: add ccorr bypass shadow register function

2020-08-19 Thread Yongqiang Niu
add ccorr bypass shadow register function Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c index b4a6df5..ff23a94

[PATCH v1 01/21] drm/mediatek: add component OVL_2L2

2020-08-19 Thread Yongqiang Niu
This patch add component OVL_2L2 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 1 + include/linux/soc/mediatek/mtk-mmsys.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c b/drivers/gpu/drm/mediatek/mtk_drm_d

[PATCH v1 02/21] drm/mediatek: add component POSTMASK

2020-08-19 Thread Yongqiang Niu
This patch add component POSTMASK Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 31 + drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 1 + include/linux/soc/mediatek/mtk-mmsys.h | 1 + 3 files changed, 33 insertions(+) diff --git

[PATCH v1 12/21] drm/mediatek: fix ccorr size config

2020-08-19 Thread Yongqiang Niu
fix ccorr size config Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c index 1d8dc6a..0c81253 100644 --- a/dr

[PATCH v1 16/21] drm/mediatek: add ovl bypass shadow register function

2020-08-19 Thread Yongqiang Niu
add ovl bypass shadow register function Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_disp_ovl.c b/drivers/gpu/drm/mediatek/mtk_disp_ovl.c index 03eaadb..fb0fe59 100644

RE: [PATCH] scsi: ufs-mediatek: Modify the minimum RX/TX lane count to 2

2020-08-19 Thread Avri Altman
> > From: Andy Teng > > MediaTek UFS host starts to support 2 lanes, thus modify the > minimum lane count to 2. > > This modification shall not impact old 1-lane host because > PA_CONNECTEDRXDATALANES and PA_CONNECTEDTXDATALANES will limit > the > target lanes properly during power mode chang

Re: [PATCH] [v2] wilc1000: Fix memleak in wilc_bus_probe

2020-08-19 Thread Ajay.Kathat
On 20/08/20 11:22 am, Dinghao Liu wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > When devm_clk_get() returns -EPROBE_DEFER, spi_priv > should be freed just like when wilc_cfg80211_init() > fails. > > Fixes: 854d66df74aed ("staging: wil

Re: [PATCH] [v2] wilc1000: Fix memleak in wilc_sdio_probe

2020-08-19 Thread Ajay.Kathat
On 20/08/20 11:18 am, Dinghao Liu wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > When devm_clk_get() returns -EPROBE_DEFER, sdio_priv > should be freed just like when wilc_cfg80211_init() > fails. > > Fixes: 8692b047e86cf ("staging: wil

Re: [PATCH 1/1] mm, oom_adj: don't loop through tasks in __set_oom_adj when not necessary

2020-08-19 Thread Michal Hocko
On Wed 19-08-20 17:20:53, Suren Baghdasaryan wrote: > Currently __set_oom_adj loops through all processes in the system to > keep oom_score_adj and oom_score_adj_min in sync between processes > sharing their mm. This is done for any task with more that one mm_users, > which includes processes with

linux-next: Tree for Aug 20

2020-08-19 Thread Stephen Rothwell
Hi all, Changes since 20200819: New tree: ti-k3-new My fixes tree contains: 73c7adb54169 ("device_cgroup: Fix RCU list debugging warning") The dma-mapping tree caused my qemu test boot to fail so I reverted a commit. I applied a supplied patch for a runtime fault to the selinux

[PATCH] [v2] wilc1000: Fix memleak in wilc_bus_probe

2020-08-19 Thread Dinghao Liu
When devm_clk_get() returns -EPROBE_DEFER, spi_priv should be freed just like when wilc_cfg80211_init() fails. Fixes: 854d66df74aed ("staging: wilc1000: look for rtc_clk clock in spi mode") Signed-off-by: Dinghao Liu --- Changelog: v2: - Remove 'staging' prefix in subject. --- drivers/net/wire

[PATCH v9 11/24] coresight: etb: allow etb to be built as a module

2020-08-19 Thread Tingwei Zhang
From: Kim Phillips Allow to build coresight-etb10 as a module, for ease of development. - Kconfig becomes a tristate, to allow =m - add an etb_remove function, for module unload - add a MODULE_DEVICE_TABLE for autoloading on boot Cc: Mathieu Poirier Cc: Leo Yan Cc: Alexander Shishkin Cc: Ran

[PATCH v9 24/24] coresight: allow the coresight core driver to be built as a module

2020-08-19 Thread Tingwei Zhang
Enhance coresight developer's efficiency to debug coresight drivers. - Kconfig becomes a tristate, to allow =m - append -core to source file name to allow module to be called coresight by the Makefile - modules can have only one init/exit, so we add the etm_perf register/unregister function cal

linux-next: boot failure after merge of the dma-mapping tree

2020-08-19 Thread Stephen Rothwell
Hi all, After merging the dma-mapping tree, today's linux-next build (powerpc pseries_le_defconfig) failed like this: [1.829053][T1] [ cut here ] [1.829629][T1] kernel BUG at include/linux/iommu-helper.h:21! [1.830182][T1] Oops: Exception in kernel

[PATCH v9 23/24] coresight: catu: allow catu drivers to be built as modules

2020-08-19 Thread Tingwei Zhang
Allow to build coresight-catu as modules, for ease of development. - Kconfig becomes a tristate, to allow =m - add catu_remove functions, for module unload - add a MODULE_DEVICE_TABLE for autoloading on boot Signed-off-by: Tingwei Zhang Reviewed-by: Mike Leach Reviewed-by: Suzuki K Poulose Revi

[PATCH v9 20/24] coresight: cti: increase reference count when enabling cti

2020-08-19 Thread Tingwei Zhang
CTI device is enabled when associated coresight device is enabled. Increase the module and device reference count for CTI device when it's enabled. This can prevent CTI device be removed or module be unloaded when CTI device is enabled by an active trace session. Signed-off-by: Mike Leach Signed-

[PATCH v9 16/24] coresight: cti: add function to register cti associate ops

2020-08-19 Thread Tingwei Zhang
Add static cti_assoc_ops to coresight core driver. Let cti driver register the add_assoc and remove_assoc call back. Avoid coresight core driver to depend on cti driver. Signed-off-by: Tingwei Zhang Tested-by: Mike Leach Reviewed-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-ct

[PATCH v9 22/24] coresight: tmc-etr: add function to register catu ops

2020-08-19 Thread Tingwei Zhang
From: Mian Yousaf Kaukab Make etr_catu_buf_ops static. Instead of directly accessing it in etr_buf_ops[], add a function to let catu driver register the ops at runtime. Break circular dependency between tmc-etr and catu drivers. Signed-off-by: Mian Yousaf Kaukab Signed-off-by: Tingwei Zhang Re

[PATCH v9 21/24] coresight: cti: allow cti to be built as a module

2020-08-19 Thread Tingwei Zhang
Allow to build coresight-cti as a module, for ease of development. - Kconfig becomes a tristate, to allow =m - append -core to source file name to allow module to be called coresight-cti by the Makefile - add an cti_remove function, for module unload - move cti_remove_conn_xrefs to cti_remove -

Re: [PATCH 2/2] nvme: add emulation for zone-append

2020-08-19 Thread Christoph Hellwig
On Wed, Aug 19, 2020 at 05:43:29PM -0600, David Fugate wrote: > There were queries? My key takeaways were a maintainer NAK followed by > instructions to make the Intel drive align with the driver by > implementing NOIOB. While I disagree with the rejection as it appeared > to be based entirely on p

[PATCH v9 12/24] coresight: tpiu: allow tpiu to be built as a module

2020-08-19 Thread Tingwei Zhang
From: Kim Phillips Allow to build coresight-tpiu as a module, for ease of development. - Kconfig becomes a tristate, to allow =m - add a tpiu_remove function, for module unload - add a MODULE_DEVICE_TABLE for autoloading on boot Cc: Mathieu Poirier Cc: Leo Yan Cc: Alexander Shishkin Cc: Rand

[PATCH v9 15/24] coresight: allow replicator driver to be built as module

2020-08-19 Thread Tingwei Zhang
From: Kim Phillips Allow to build coresight-replicator as modules, for ease of development. - Kconfig becomes a tristate, to allow =m - combine static and dynamic replicator init into single module_init/exit call - add replicator_remove functions, for module unload - add a MODULE_DEVICE_TABLE

[PATCH v9 19/24] coresight: cti: don't disable ect device if it's not enabled

2020-08-19 Thread Tingwei Zhang
If associated ect device is not enabled at first place, disable routine should not be called. Add ect_enabled flag to check whether ect device is enabled. Fix the issue in below case. Ect device is not available when associated coresight device enabled and the association is established after core

[PATCH v9 18/24] coresight: cti: Fix bug clearing sysfs links on callback

2020-08-19 Thread Tingwei Zhang
From: Mike Leach During module unload, a coresight driver module will call back into the CTI driver to remove any links between the two devices. The current code has 2 issues:- 1) in the CTI driver the matching code is matching to the wrong device so misses all the links. 2) The callback is call

[PATCH v9 13/24] coresight: tmc: allow tmc to be built as a module

2020-08-19 Thread Tingwei Zhang
From: Kim Phillips Allow to build coresight-tmc as a module, for ease of development. - Kconfig becomes a tristate, to allow =m - append -core to source file name to allow module to be called coresight-tmc by the Makefile - add an tmc_remove function, for module unload - add a MODULE_DEVICE_TA

[PATCH v9 17/24] coresight: cti: Fix remove sysfs link error

2020-08-19 Thread Tingwei Zhang
From: Mike Leach CTI code to remove sysfs link to other devices on shutdown, incorrectly tries to remove a single ended link when these are all double ended. This implementation leaves elements in the link info structure undefined which results in a crash in recent tests for driver module unload.

[PATCH v9 14/24] coresight: allow funnel driver to be built as module

2020-08-19 Thread Tingwei Zhang
From: Kim Phillips Allow to build coresight-funnel as module, for ease of development. - combine static and dynamic funnel init into single module_init/exit call - add funnel_remove functions, for module unload - add a MODULE_DEVICE_TABLE for autoloading on boot Cc: Mathieu Poirier Cc: Leo Y

[PATCH v9 10/24] coresight: etm4x: allow etm4x to be built as a module

2020-08-19 Thread Tingwei Zhang
From: Kim Phillips Allow to build coresight-etm4x as a module, for ease of development. - Kconfig becomes a tristate, to allow =m - append -core to source file name to allow module to be called coresight-etm4x by the Makefile - add an etm4_remove function, for module unload - add a MODULE_DEVI

[PATCH v9 09/24] coresight: etm3x: allow etm3x to be built as a module

2020-08-19 Thread Tingwei Zhang
From: Kim Phillips Allow to build coresight-etm3x as a module, for ease of development. - Kconfig becomes a tristate, to allow =m - append -core to source file name to allow module to be called coresight-etm3x by the Makefile - add an etm_remove function, for module unload - add a MODULE_DEVIC

[PATCH v9 06/24] coresight: add try_get_module() in coresight_grab_device()

2020-08-19 Thread Tingwei Zhang
When coresight device is in an active session, driver module of that device should not be removed. Use try_get_module() in coresight_grab_device() to prevent module to be unloaded. Use get_device()/put_device() to protect device data in the middle of active session. Signed-off-by: Tingwei Zhang T

[PATCH v9 03/24] coresight: use IS_ENABLED for CONFIGs that may be modules

2020-08-19 Thread Tingwei Zhang
From: Kim Phillips Checking for ifdef CONFIG_x fails if CONFIG_x=m. Use IS_ENABLED that is true for both built-ins and modules, instead. Required when building coresight components as modules. Cc: Mathieu Poirier Cc: Leo Yan Cc: Alexander Shishkin Cc: Randy Dunlap Cc: Suzuki K Poulose Cc:

[PATCH v9 08/24] coresight: etm: perf: Fix warning caused by etm_setup_aux failure

2020-08-19 Thread Tingwei Zhang
When coresight_build_path() fails on all the cpus, etm_setup_aux calls etm_free_aux() to free allocated event_data. WARN_ON(cpumask_empty(mask) will be triggered since cpu mask is empty. Check event_data->snk_config is not NULL first to avoid this warning. Signed-off-by: Tingwei Zhang Reviewed-by

[PATCH v9 02/24] coresight: cpu_debug: define MODULE_DEVICE_TABLE

2020-08-19 Thread Tingwei Zhang
Define a MODULE_DEVICE_TABLE for cpu_debug so module can be auto loaded on boot. Signed-off-by: Tingwei Zhang Reviewed-by: Suzuki K Poulose Reviewed-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-cpu-debug.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/hwtracing

[PATCH v9 05/24] coresight: export global symbols

2020-08-19 Thread Tingwei Zhang
From: Mian Yousaf Kaukab Export symbols used among coresight modules. Signed-off-by: Mian Yousaf Kaukab Signed-off-by: Tingwei Zhang Tested-by: Mike Leach Reviewed-by: Suzuki K Poulose Reviewed-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etm-perf.c | 1 + drivers/hwtracin

[PATCH v9 04/24] coresight: add coresight prefix to barrier_pkt

2020-08-19 Thread Tingwei Zhang
Add coresight prefix to make it specific. It will be a export symbol. Signed-off-by: Mian Yousaf Kaukab Signed-off-by: Tingwei Zhang Reviewed-by: Suzuki K Poulose Reviewed-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etb10.c | 2 +- drivers/hwtracing/coresight/coresight-pri

[PATCH v2 02/11] usb: early: ehci-dbgp: convert to readl_poll_timeout_atomic()

2020-08-19 Thread Chunfeng Yun
Use readl_poll_timeout_atomic() to simplify code Cc: "Eric W. Biederman" Cc: Petr Mladek Signed-off-by: Chunfeng Yun --- v2: no changes --- drivers/usb/early/ehci-dbgp.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/usb/early/ehci-dbgp.c b/drivers

[PATCH v9 07/24] coresight: stm: allow to build coresight-stm as a module

2020-08-19 Thread Tingwei Zhang
- Kconfig becomes a tristate, to allow =m - add a stm_remove function, for module unload - add a MODULE_DEVICE_TABLE for autoloading on boot Cc: Mathieu Poirier Cc: Leo Yan Cc: Alexander Shishkin Cc: Randy Dunlap Cc: Suzuki K Poulose Cc: Greg Kroah-Hartman Cc: Russell King Signed-off-by: Ki

[PATCH] [v2] wilc1000: Fix memleak in wilc_sdio_probe

2020-08-19 Thread Dinghao Liu
When devm_clk_get() returns -EPROBE_DEFER, sdio_priv should be freed just like when wilc_cfg80211_init() fails. Fixes: 8692b047e86cf ("staging: wilc1000: look for rtc_clk clock") Signed-off-by: Dinghao Liu --- Changelog: v2: - Remove 'staging' prefix in subject. --- drivers/net/wireless/microc

[PATCH v2 07/11] usb: isp1760-hcd: convert to readl_poll_timeout_atomic()

2020-08-19 Thread Chunfeng Yun
Use readl_poll_timeout_atomic() to simplify code Signed-off-by: Chunfeng Yun --- v2: no changes --- drivers/usb/isp1760/isp1760-hcd.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/drivers/usb/isp1760/isp1760-hcd.c b/drivers/usb/isp1760/isp1760-hcd.c i

[PATCH v9 00/24] coresight: allow to build coresight as modules

2020-08-19 Thread Tingwei Zhang
Allow to build coresight as modules. This gives developers the feasibility to test their code without reboot. This series is based on below two series. - "coresight: allow to build components as modules" https://lkml.org/lkml/2018/6/5/989 - "coresight: make drivers modular" https://lkml.o

[PATCH v2 08/11] usb: phy-ulpi-viewport: convert to readl_poll_timeout_atomic()

2020-08-19 Thread Chunfeng Yun
Use readl_poll_timeout_atomic() to simplify code Signed-off-by: Chunfeng Yun --- v2: no changes --- drivers/usb/phy/phy-ulpi-viewport.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/usb/phy/phy-ulpi-viewport.c b/drivers/usb/phy/phy-ulpi-viewport.c inde

[PATCH v2 11/11] iopoll: update kerneldoc of read_poll_timeout_atomic()

2020-08-19 Thread Chunfeng Yun
Arguments description of read_poll_timeout_atomic() if out of date, update it. Cc: Alan Stern Signed-off-by: Chunfeng Yun --- v2: new patch, suggested by Alan --- include/linux/iopoll.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/iopoll.h b/include/linu

[PATCH v9 01/24] coresight: cpu_debug: add module name in Kconfig

2020-08-19 Thread Tingwei Zhang
Provide name of cpu_debug module in Kconfig help section. Signed-off-by: Tingwei Zhang Tested-by: Mike Leach Reviewed-by: Suzuki K Poulose Reviewed-by: Mathieu Poirier --- drivers/hwtracing/coresight/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/hwtracing/coresight/Kc

[PATCH v2 05/11] usb: oxu210hp-hcd: convert to readl_poll_timeout_atomic()

2020-08-19 Thread Chunfeng Yun
Use readl_poll_timeout_atomic() to simplify code Signed-off-by: Chunfeng Yun --- v2: no changes --- drivers/usb/host/oxu210hp-hcd.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/usb/host/oxu210hp-hcd.c b/drivers/usb/host/oxu210hp-hcd.c index

[PATCH v2 04/11] usb: xhci-rcar: convert to readl_poll_timeout_atomic()

2020-08-19 Thread Chunfeng Yun
Use readl_poll_timeout_atomic() to simplify code Cc: Mathias Nyman Cc: Yoshihiro Shimoda Signed-off-by: Chunfeng Yun --- v2: no changes --- drivers/usb/host/xhci-rcar.c | 43 --- 1 file changed, 12 insertions(+), 31 deletions(-) diff --git a/drivers/usb

[PATCH v2 01/11] usb: early: convert to readl_poll_timeout_atomic()

2020-08-19 Thread Chunfeng Yun
Use readl_poll_timeout_atomic() to simplify code Cc: Lu Baolu Cc: Mathias Nyman Signed-off-by: Chunfeng Yun --- v2: no changes --- drivers/usb/early/xhci-dbc.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/usb/early/xhci-dbc.c b/drivers/usb/early/x

[PATCH v2 10/11] usb: udc: net2280: convert to readl_poll_timeout_atomic()

2020-08-19 Thread Chunfeng Yun
Use readl_poll_timeout_atomic() to simplify code Cc: Alan Stern Cc: Felipe Balbi Signed-off-by: Chunfeng Yun Acked-by: Alan Stern --- v2: add Acked-by Alan --- drivers/usb/gadget/udc/net2280.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/

[PATCH v2 09/11] usb: phy: phy-mv-usb: convert to readl_poll_timeout_atomic()

2020-08-19 Thread Chunfeng Yun
Use readl_poll_timeout_atomic() to simplify code Signed-off-by: Chunfeng Yun --- v2: udelay 10us instead of 20us according to kerneldoc --- drivers/usb/phy/phy-mv-usb.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/drivers/usb/phy/phy-mv-usb.c b/drivers/usb

[PATCH v2 06/11] usb: fotg210-hcd: convert to readl_poll_timeout_atomic()

2020-08-19 Thread Chunfeng Yun
Use readl_poll_timeout_atomic() to simplify code Signed-off-by: Chunfeng Yun --- v2: no changes --- drivers/usb/host/fotg210-hcd.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c index 194df

[PATCH v2 03/11] usb: pci-quirks: convert to readl_poll_timeout_atomic()

2020-08-19 Thread Chunfeng Yun
Use readl_poll_timeout_atomic() to simplify code Cc: Mathias Nyman Signed-off-by: Chunfeng Yun --- v2: no changes --- drivers/usb/host/pci-quirks.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers/usb/host/pci-quirks.c b/drivers/usb/host/pci-quirks.c ind

Re: Re: [PATCH] staging: wilc1000: Fix memleak in wilc_sdio_probe

2020-08-19 Thread dinghao . liu
ajay.kat...@microchip.com写道: > Thanks for submitting the patch. The code changes looks okay to me. > > The driver is now moved out of staging so 'staging' prefix is not > required in subject. For future patches on wilc driver, the 'staging' > prefix can be removed. > > For this patch, I am not

Re: [Patch] cpufreq: replace cpu_logical_map with read_cpuid_mpir

2020-08-19 Thread Viresh Kumar
On 12-08-20, 01:13, Sumit Gupta wrote: > Commit eaecca9e7710 ("arm64: Fix __cpu_logical_map undefined issue") > fixes the issue with building tegra194 cpufreq driver as module. But > the fix might cause problem while supporting physical cpu hotplug[1]. > > This patch fixes the original problem by

INFO: task can't die in netdev_run_todo

2020-08-19 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:4993e4fe Add linux-next specific files for 20200814 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1181e1a690 kernel config: https://syzkaller.appspot.com/x/.config?x=2055bd0d83d5ee16 dashboard

KASAN: global-out-of-bounds Read in fbcon_resize

2020-08-19 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:8eb858df Add linux-next specific files for 20200819 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1158a00e90 kernel config: https://syzkaller.appspot.com/x/.config?x=cd187ef624ef7f02 dashboard

Re: [PATCH 2/2] nvme: add emulation for zone-append

2020-08-19 Thread Christoph Hellwig
On Wed, Aug 19, 2020 at 01:11:58PM -0600, David Fugate wrote: > On Tue, 2020-08-18 at 07:12 +, Christoph Hellwig wrote: > > On Tue, Aug 18, 2020 at 10:59:36AM +0530, Kanchan Joshi wrote: > > > If drive does not support zone-append natively, enable emulation > > > using > > > regular write. > >

Re: [PATCH] staging: wilc1000: Fix memleak in wilc_sdio_probe

2020-08-19 Thread Ajay.Kathat
Thanks for submitting the patch. The code changes looks okay to me. The driver is now moved out of staging so 'staging' prefix is not required in subject. For future patches on wilc driver, the 'staging' prefix can be removed. For this patch, I am not sure if Kalle can apply as is otherwise pleas

[PATCH] dt-bindings: spi: Convert spi-mtk-nor to json-schema

2020-08-19 Thread Ikjoon Jang
Convert Mediatek ARM SOC's serial NOR flash controller binding to json-schema format. Signed-off-by: Ikjoon Jang --- .../bindings/spi/mediatek,spi-mtk-nor.yaml| 82 +++ .../devicetree/bindings/spi/spi-mtk-nor.txt | 47 --- 2 files changed, 82 insertions(+), 47 delet

[PATCH] drivers: gpu: amd: Initialize amdgpu_dm_backlight_caps object to 0 in amdgpu_dm_update_backlight_caps

2020-08-19 Thread Furquan Shaikh
In `amdgpu_dm_update_backlight_caps()`, there is a local `amdgpu_dm_backlight_caps` object that is filled in by `amdgpu_acpi_get_backlight_caps()`. However, this object is uninitialized before the call and hence the subsequent check for aux_support can fail since it is not initialized by `amdgpu_ac

Re: [PATCH 05/28] media/v4l2: remove V4L2-FLAG-MEMORY-NON-CONSISTENT

2020-08-19 Thread Christoph Hellwig
On Thu, Aug 20, 2020 at 06:43:47AM +0200, Christoph Hellwig wrote: > On Wed, Aug 19, 2020 at 03:57:53PM +0200, Tomasz Figa wrote: > > > > Could you explain what makes you think it's unused? It's a feature of > > > > the UAPI generally supported by the videobuf2 framework and relied on > > > > by Ch

  1   2   3   4   5   6   7   8   9   10   >