[PATCH] drm/meson: pm resume add return errno branch

2020-04-28 Thread Bernard Zhao
pm_resump api did not handle drm_mode_config_helper_resume error. This change add handle to return drm_mode_config_helper_resume`s error number. This code logic is aligned with api pm_suspend. After this change, the code maybe a bit readable. Signed-off-by: Bernard Zhao --- drivers/gpu/drm/meson

[PATCH v8 4/8] powerpc/processor: Move cpu_relax() into asm/vdso/processor.h

2020-04-28 Thread Christophe Leroy
cpu_relax() need to be in asm/vdso/processor.h to be used by the C VDSO generic library. Move it there. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/processor.h | 10 ++ arch/powerpc/include/asm/vdso/processor.h | 23 +++ 2 files changed, 25 inse

[PATCH v8 3/8] powerpc/vdso: Remove unused \tmp param in __get_datapage()

2020-04-28 Thread Christophe Leroy
The \tmp param is not used anymore, remove it. Signed-off-by: Christophe Leroy --- v7: New patch, splitted out of preceding patch --- arch/powerpc/include/asm/vdso_datapage.h | 2 +- arch/powerpc/kernel/vdso32/cacheflush.S | 2 +- arch/powerpc/kernel/vdso32/datapage.S | 4 ++-- arch/power

KMSAN: uninit-value in sctp_rcv

2020-04-28 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:bfa90a4a kmsan: remove __GFP_NO_KMSAN_SHADOW git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=11d13ca7e0 kernel config: https://syzkaller.appspot.com/x/.config?x=a5

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

2020-04-28 Thread Guenter Roeck
On 4/27/20 11:36 PM, Stephen Rothwell wrote: > Hi all, > > After merging the hwmon-staging tree, today's linux-next build (powerpc > allyesconfig) failed like this: > > drivers/hwmon/lm70.c: In function 'lm70_probe': > drivers/hwmon/lm70.c:186:34: error: 'lm70_acpi_ids' undeclared (first use in

Re: [PATCH -next] tools lib traceevent: Remove unneeded semicolon

2020-04-28 Thread Steven Rostedt
On Tue, 28 Apr 2020 17:12:01 +0800 Zou Wei wrote: > Fixes coccicheck warning: > > tools/lib/traceevent/kbuffer-parse.c:441:2-3: Unneeded semicolon > > Reported-by: Hulk Robot > Signed-off-by: Zou Wei > --- > tools/lib/traceevent/kbuffer-parse.c | 2 +- > 1 file changed, 1 insertion(+), 1 de

[RFC 13/17] drm: virtio: fix sg_table nents vs. orig_nents misuse

2020-04-28 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that dma_map_sg returns the numer of the created entries in the DMA address space. However the subsequent calls to dma_sync_sg_for_{device,cpu} and dma_unmap_sg must be called with the original number of entries passed to dma_map_sg. The sg_table->nents in

[RFC 11/17] drm: rockchip: fix sg_table nents vs. orig_nents misuse

2020-04-28 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that dma_map_sg returns the numer of the created entries in the DMA address space. However the subsequent calls to dma_sync_sg_for_{device,cpu} and dma_unmap_sg must be called with the original number of entries passed to dma_map_sg. The sg_table->nents in

[RFC 10/17] drm: radeon: fix sg_table nents vs. orig_nents misuse

2020-04-28 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that dma_map_sg returns the numer of the created entries in the DMA address space. However the subsequent calls to dma_sync_sg_for_{device,cpu} and dma_unmap_sg must be called with the original number of entries passed to dma_map_sg. The sg_table->nents in

[RFC 06/17] drm: i915: fix sg_table nents vs. orig_nents misuse

2020-04-28 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that dma_map_sg returns the numer of the created entries in the DMA address space. However the subsequent calls to dma_sync_sg_for_{device,cpu} and dma_unmap_sg must be called with the original number of entries passed to dma_map_sg. The sg_table->nents in

[RFC 17/17] dmabuf: fix sg_table nents vs. orig_nents misuse

2020-04-28 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that dma_map_sg returns the numer of the created entries in the DMA address space. However the subsequent calls to dma_sync_sg_for_{device,cpu} and dma_unmap_sg must be called with the original number of entries passed to dma_map_sg. The sg_table->nents in

[RFC 15/17] drm: xen: fix sg_table nents vs. orig_nents misuse

2020-04-28 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that dma_map_sg returns the numer of the created entries in the DMA address space. However the subsequent calls to dma_sync_sg_for_{device,cpu} and dma_unmap_sg must be called with the original number of entries passed to dma_map_sg. The sg_table->nents in

[RFC 16/17] drm: host1x: fix sg_table nents vs. orig_nents misuse

2020-04-28 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that dma_map_sg returns the numer of the created entries in the DMA address space. However the subsequent calls to dma_sync_sg_for_{device,cpu} and dma_unmap_sg must be called with the original number of entries passed to dma_map_sg. The sg_table->nents in

[RFC 05/17] drm: exynos: fix sg_table nents vs. orig_nents misuse

2020-04-28 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that dma_map_sg returns the numer of the created entries in the DMA address space. However the subsequent calls to dma_sync_sg_for_{device,cpu} and dma_unmap_sg must be called with the original number of entries passed to dma_map_sg. The sg_table->nents in

[RFC 01/17] drm: core: fix sg_table nents vs. orig_nents misuse

2020-04-28 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that dma_map_sg returns the numer of the created entries in the DMA address space. However the subsequent calls to dma_sync_sg_for_{device,cpu} and dma_unmap_sg must be called with the original number of entries passed to dma_map_sg. The sg_table->nents in

[RFC 03/17] drm: armada: fix sg_table nents vs. orig_nents misuse

2020-04-28 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that dma_map_sg returns the numer of the created entries in the DMA address space. However the subsequent calls to dma_sync_sg_for_{device,cpu} and dma_unmap_sg must be called with the original number of entries passed to dma_map_sg. The sg_table->nents in

[RFC 04/17] drm: etnaviv: fix sg_table nents vs. orig_nents misuse

2020-04-28 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that dma_map_sg returns the numer of the created entries in the DMA address space. However the subsequent calls to dma_sync_sg_for_{device,cpu} and dma_unmap_sg must be called with the original number of entries passed to dma_map_sg. The sg_table->nents in

[RFC 09/17] drm: panfrost: fix sg_table nents vs. orig_nents misuse

2020-04-28 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that dma_map_sg returns the numer of the created entries in the DMA address space. However the subsequent calls to dma_sync_sg_for_{device,cpu} and dma_unmap_sg must be called with the original number of entries passed to dma_map_sg. The sg_table->nents in

[RFC 14/17] drm: vmwgfx: fix sg_table nents vs. orig_nents misuse

2020-04-28 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that dma_map_sg returns the numer of the created entries in the DMA address space. However the subsequent calls to dma_sync_sg_for_{device,cpu} and dma_unmap_sg must be called with the original number of entries passed to dma_map_sg. The sg_table->nents in

[RFC 07/17] drm: lima: fix sg_table nents vs. orig_nents misuse

2020-04-28 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that dma_map_sg returns the numer of the created entries in the DMA address space. However the subsequent calls to dma_sync_sg_for_{device,cpu} and dma_unmap_sg must be called with the original number of entries passed to dma_map_sg. The sg_table->nents in

[PATCH 2/2] Discard .note.gnu.property sections in generic NOTES

2020-04-28 Thread H.J. Lu
With the command-line option, -mx86-used-note=yes, the x86 assembler in binutils 2.32 and above generates a program property note in a note section, .note.gnu.property, to encode used x86 ISAs and features. But kernel linker script only contains a single NOTE segment: PHDRS { text PT_LOAD FLAGS(

[RFC 00/17] DRM: fix struct sg_table nents vs. orig_nents misuse

2020-04-28 Thread Marek Szyprowski
adapt current code to it 2. rename nents and orig_nents to nr_pages, nr_dmas to clearly state which one refers to which part of the scatterlist; I'm open for other names for those entries I will appreciate your comments. Patches are based on top of Linux next-20200428. I've reduc

[RFC 12/17] drm: tegra: fix sg_table nents vs. orig_nents misuse

2020-04-28 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that dma_map_sg returns the numer of the created entries in the DMA address space. However the subsequent calls to dma_sync_sg_for_{device,cpu} and dma_unmap_sg must be called with the original number of entries passed to dma_map_sg. The sg_table->nents in

[RFC 08/17] drm: msm: fix sg_table nents vs. orig_nents misuse

2020-04-28 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that dma_map_sg returns the numer of the created entries in the DMA address space. However the subsequent calls to dma_sync_sg_for_{device,cpu} and dma_unmap_sg must be called with the original number of entries passed to dma_map_sg. The sg_table->nents in

[RFC 02/17] drm: amdgpu: fix sg_table nents vs. orig_nents misuse

2020-04-28 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that dma_map_sg returns the numer of the created entries in the DMA address space. However the subsequent calls to dma_sync_sg_for_{device,cpu} and dma_unmap_sg must be called with the original number of entries passed to dma_map_sg. The sg_table->nents in

[PATCH 1/2] powerpc: Keep .rela* sections when CONFIG_RELOCATABLE is defined

2020-04-28 Thread H.J. Lu
arch/powerpc/kernel/vmlinux.lds.S has #ifdef CONFIG_RELOCATABLE ... .rela.dyn : AT(ADDR(.rela.dyn) - LOAD_OFFSET) { __rela_dyn_start = .; *(.rela*) } #endif ... DISCARDS /DISCARD/ : { *(*.EMB.apuinfo)

Re: [PATCH 7/7] perf record: Introduce --switch-output-event

2020-04-28 Thread Jiri Olsa
On Tue, Apr 28, 2020 at 09:16:01AM -0300, Arnaldo Carvalho de Melo wrote: SNIP > > > + pr_err("Couldn't create side band evlist.\n."); > > > + goto out_child; > > > + } > > > } > > > > > > if (evlist__add_bpf_sb

Re: Re: [PATCH v9 00/15] Introduce Data Access MONitor (DAMON)

2020-04-28 Thread SeongJae Park
On Tue, 28 Apr 2020 13:27:04 +0100 Jonathan Cameron wrote: > On Mon, 27 Apr 2020 14:04:27 +0200 > SeongJae Park wrote: > > > From: SeongJae Park > > > > Introduction > > > > > > Memory management decisions can be improved if finer data access > > information is > > available.

[PATCH 1/2] x86, sched: Prevent divisions by zero in frequency invariant accounting

2020-04-28 Thread Giovanni Gherdovich
The product mcnt * arch_max_freq_ratio could be zero if it overflows u64. For context, a large value for arch_max_freq_ratio would be 5000, corresponding to a turbo_freq/base_freq ratio of 5 (normally it's more like 1500-2000). A large increment frequency for the MPERF counter would be 5GHz (the b

[PATCH 2/2] x86, sched: Bail out of frequency invariance if turbo frequency is unknown

2020-04-28 Thread Giovanni Gherdovich
There may be CPUs that support turbo boost but don't declare any turbo ratio, i.e. their MSR_TURBO_RATIO_LIMIT is all zeroes. In that condition scale-invariant calculations can't be performed. Signed-off-by: Giovanni Gherdovich Suggested-by: Ricardo Neri Fixes: 1567c3e3467c ("x86, sched: Add sup

[PATCH 0/2] More frequency invariance fixes for x86

2020-04-28 Thread Giovanni Gherdovich
Patch 1/2 prevents a division by zero in case the product "delta_MPERF * arch_max_freq_ratio" overflows u64, as suggested by Linus at [1]. This patch supersedes the version at [2], as it also disables frequency invariance when that overflow happens. Patch 2/2 implements the recommendation by Ricar

Re: [RFC PATCH 0/3] newidle_balance() latency mitigation

2020-04-28 Thread Steven Rostedt
On Tue, 28 Apr 2020 00:02:39 -0500 Scott Wood wrote: > There was a note at the end about wanting further discussion on the matter -- > does anyone remember if that ever happened and what the conclusion was? > Are there any other issues with enabling interrupts here and/or moving > the newidle_bal

Re: [PATCH v10 00/13] arm64: Branch Target Identification support

2020-04-28 Thread Will Deacon
On Wed, Apr 22, 2020 at 05:29:54PM +0100, Catalin Marinas wrote: > On Wed, Apr 22, 2020 at 04:44:36PM +0100, Mark Brown wrote: > > On Mon, Mar 16, 2020 at 04:50:42PM +, Mark Brown wrote: > > > This patch series implements support for ARMv8.5-A Branch Target > > > Identification (BTI), which is

[PATCH] staging: rtl8723bs: os_dep: remove rtw_spt_band_free()

2020-04-28 Thread Jason Yan
Now that rtw_spt_band_free() is only a direct wrapper of kfree, we can remove it and just use kfree(). Signed-off-by: Jason Yan --- drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_c

[PATCH] Documentation: x86: fix space instead of tab in uefi doc

2020-04-28 Thread Flavio Suligoi
Signed-off-by: Flavio Suligoi --- Documentation/x86/x86_64/uefi.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/x86/x86_64/uefi.rst b/Documentation/x86/x86_64/uefi.rst index 88c3ba3..3b89410 100644 --- a/Documentation/x86/x86_64/uefi.rst +++ b/Documentation/

[PATCH v3 05/17] drm/msm/dpu: Use OPP API to set clk/perf state

2020-04-28 Thread Rajendra Nayak
On some qualcomm platforms DPU needs to express a perforamnce state requirement on a power domain depennding on the clock rates. Use OPP table from DT to register with OPP framework and use dev_pm_opp_set_rate() to set the clk/perf state. Signed-off-by: Rajendra Nayak Cc: Rob Clark Cc: Sean Paul

[PATCH v3 02/17] spi: spi-geni-qcom: Use OPP API to set clk/perf state

2020-04-28 Thread Rajendra Nayak
geni spi needs to express a perforamnce state requirement on CX depending on the frequency of the clock rates. Use OPP table from DT to register with OPP framework and use dev_pm_opp_set_rate() to set the clk/perf state. Signed-off-by: Rajendra Nayak Cc: Mark Brown Cc: Alok Chauhan Cc: Akash As

[PATCH v3 03/17] arm64: dts: sdm845: Add OPP table for all qup devices

2020-04-28 Thread Rajendra Nayak
qup has a requirement to vote on the performance state of the CX domain in sdm845 devices. Add OPP tables for these and also add power-domains property for all qup instances. Signed-off-by: Rajendra Nayak Signed-off-by: Stephen Boyd --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 115 +++

[PATCH v3 01/17] tty: serial: qcom_geni_serial: Use OPP API to set clk/perf state

2020-04-28 Thread Rajendra Nayak
geni serial needs to express a perforamnce state requirement on CX powerdomain depending on the frequency of the clock rates. Use OPP table from DT to register with OPP framework and use dev_pm_opp_set_rate() to set the clk/perf state. Signed-off-by: Rajendra Nayak Cc: Greg Kroah-Hartman Cc: Aka

[PATCH v3 00/17] DVFS for IO devices on sdm845 and sc7180

2020-04-28 Thread Rajendra Nayak
Changes in v3: 1. Added better error handling for dev_pm_opp_of_add_table() 2. Some minor changes and fixes in PATCH 12/17 as compared to v2 3. Dropped the mmc patch since its picked up by Ulf 1. Added error handling for dev_pm_opp_set_clkname() and dev_pm_opp_of_add_table() 2. Used dev_pm_opp_put

[PATCH v3 04/17] arm64: dts: sc7180: Add OPP table for all qup devices

2020-04-28 Thread Rajendra Nayak
qup has a requirement to vote on the performance state of the CX domain in sc7180 devices. Add OPP tables for these and also add power-domains property for all qup instances. Signed-off-by: Rajendra Nayak --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 79 1 file

[PATCH v3 09/17] mmc: sdhci-msm: Fix error handling for dev_pm_opp_of_add_table()

2020-04-28 Thread Rajendra Nayak
Even though specifying OPP's in device tree is optional, ignoring all errors reported by dev_pm_opp_of_add_table() means we can't distinguish between a missing OPP table and a wrong/buggy OPP table. While missing OPP table (dev_pm_opp_of_add_table() returns a -ENODEV in such case) can be ignored, a

Re: [PATCH v11 7/9] KVM: X86: Add userspace access interface for CET MSRs

2020-04-28 Thread Yang Weijiang
On Mon, Apr 27, 2020 at 04:04:28PM +0200, Paolo Bonzini wrote: > On 26/04/20 17:23, Yang Weijiang wrote: > > What's the purpose of the selftest? Is it just for Shadow Stack SSP > > state transitions in various cases? e.g., L0 SSP<--->L3 SSP, > > L0 SSP1<--->L0 SSP2? > > No, it checks that the whol

[PATCH v3 08/17] arm64: dts: sc7180: Add DSI and MDP OPP tables and power-domains

2020-04-28 Thread Rajendra Nayak
Add the OPP tables for DSI and MDP based on the perf state/clk requirements, and add the power-domains property to specify the scalable power domain. Signed-off-by: Rajendra Nayak --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 48 1 file changed, 48 insertions(+)

[PATCH v3 11/17] arm64: dts: sc7180: Add sdhc opps and power-domains

2020-04-28 Thread Rajendra Nayak
Add the power domain supporting performance state and the corresponding OPP tables for the sdhc device on sdm845. Signed-off-by: Rajendra Nayak --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/a

[PATCH v3 12/17] media: venus: core: Add support for opp tables/perf voting

2020-04-28 Thread Rajendra Nayak
Add support to add OPP tables and perf voting on the OPP powerdomain. This is needed so venus votes on the corresponding performance state for the OPP powerdomain along with setting the core clock rate. Signed-off-by: Rajendra Nayak Cc: Stanimir Varbanov Cc: linux-me...@vger.kernel.org --- driv

[PATCH v3 15/17] spi: spi-qcom-qspi: Use OPP API to set clk/perf state

2020-04-28 Thread Rajendra Nayak
QSPI needs to vote on a performance state of a power domain depending on the clock rate. Add support for it by specifying the perf state/clock rate as an OPP table in device tree. Signed-off-by: Rajendra Nayak Cc: Mark Brown Cc: Alok Chauhan Cc: Akash Asthana Cc: linux-...@vger.kernel.org ---

Re: [PATCH] Staging: mt7621-dma: mtk-hsdma.c: Fix Missing a blank line after declarations

2020-04-28 Thread John Oldman
(this time sent as plain text) I was not so happy about this one, even though I went and committed it. Without the blank line checkpatch reports: WARNING: Missing a blank line after declarations #160: FILE: drivers/staging/mt7621-dma/mtk-hsdma.c:160: + struct tasklet_struct task; + volatile unsi

[PATCH v3 06/17] drm/msm: dsi: Use OPP API to set clk/perf state

2020-04-28 Thread Rajendra Nayak
On SDM845 DSI needs to express a perforamnce state requirement on a power domain depending on the clock rates. Use OPP table from DT to register with OPP framework and use dev_pm_opp_set_rate() to set the clk/perf state. Signed-off-by: Rajendra Nayak Cc: Rob Clark Cc: Sean Paul Cc: dri-de...@li

[PATCH v3 16/17] arm64: dts: sdm845: Add qspi opps and power-domains

2020-04-28 Thread Rajendra Nayak
Add the power domain supporting performance state and the corresponding OPP tables for the qspi device on sdm845 Signed-off-by: Rajendra Nayak --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.

[PATCH v3 07/17] arm64: dts: sdm845: Add DSI and MDP OPP tables and power-domains

2020-04-28 Thread Rajendra Nayak
Add the OPP tables for DSI and MDP based on the perf state/clk requirements, and add the power-domains property to specify the scalable power domain. Signed-off-by: Rajendra Nayak --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 59 1 file changed, 59 insertions(+)

[PATCH v3 14/17] arm64: dts: sc7180: Add OPP tables and power-domains for venus

2020-04-28 Thread Rajendra Nayak
Add the OPP tables in order to be able to vote on the performance state of a power-domain Signed-off-by: Rajendra Nayak --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 35 +-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc718

[PATCH v3 13/17] arm64: dts: sdm845: Add OPP tables and power-domains for venus

2020-04-28 Thread Rajendra Nayak
Add the OPP tables in order to be able to vote on the performance state of a power-domain. Signed-off-by: Rajendra Nayak --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 40 ++-- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm

[PATCH v3 17/17] arm64: dts: sc7180: Add qspi opps and power-domains

2020-04-28 Thread Rajendra Nayak
Add the power domain supporting performance state and the corresponding OPP tables for the qspi device on sc7180 Signed-off-by: Rajendra Nayak --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi

[PATCH v3 10/17] arm64: dts: sdm845: Add sdhc opps and power-domains

2020-04-28 Thread Rajendra Nayak
Add the power domain supporting performance state and the corresponding OPP tables for the sdhc device on sdm845. Signed-off-by: Rajendra Nayak --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845

Re: [PATCH] Staging: mt7621-dma: mtk-hsdma.c: Fix Missing a blank line after declarations

2020-04-28 Thread Greg KH
On Tue, Apr 28, 2020 at 02:21:25PM +0100, John Oldman wrote: > I was not so happy about this one, even though I went and committed it. > > Without the blank line checkpatch reports: > > WARNING: Missing a blank line after declarations > #160: FILE: drivers/staging/mt7621-dma/mtk-hsdma.c:160: > +

Re: [PATCH v2 1/2] Changes in w1_therm.c and adding w1_therm.h

2020-04-28 Thread Akira shimahara
Le mardi 28 avril 2020 à 14:44 +0200, Greg KH a écrit : > On Sun, Apr 26, 2020 at 07:20:30PM +0200, Akira shimahara wrote: > > Le dimanche 26 avril 2020 à 19:09 +0200, Greg KH a écrit : > > > On Sun, Apr 26, 2020 at 02:36:52PM +0200, Akira shimahara wrote: > > > > Le dimanche 26 avril 2020 à 09:51

Re: [PATCH] fs/ceph:fix double unlock in handle_cap_export()

2020-04-28 Thread Yan, Zheng
On Tue, Apr 28, 2020 at 8:50 PM Wu Bo wrote: > > If the ceph_mdsc_open_export_target_session() return fails, > should add a lock to avoid twice unlocking. > Because the lock will be released at the retry or out_unlock tag. > at retry label, i_ceph_lock get locked. I don't see how i_ceph_lock can

Re: [PATCH RT 10/30] hrtimer: Prevent using hrtimer_grab_expiry_lock() on migration_base

2020-04-28 Thread Tom Zanussi
On Tue, 2020-04-28 at 15:07 +0200, Rasmus Villemoes wrote: > On 28/04/2020 14.59, Tom Zanussi wrote: > > On Tue, 2020-04-28 at 09:03 +0200, Rasmus Villemoes wrote: > > > Hold on a second. This patch (hrtimer: Prevent using > > > hrtimer_grab_expiry_lock() on migration_base) indeed seems to > > > im

Re: [PATCH v2 1/2] i2c: tegra: Better handle case where CPU0 is busy for a long time

2020-04-28 Thread Dmitry Osipenko
20.04.2020 22:53, Jon Hunter пишет: > Hi Dmitry, > > On 24/03/2020 19:12, Dmitry Osipenko wrote: >> Boot CPU0 always handle I2C interrupt and under some rare circumstances >> (like running KASAN + NFS root) it may stuck in uninterruptible state for >> a significant time. In this case we will get t

Re: [PATCH] mm/gup.c: Updating the documentation

2020-04-28 Thread Jonathan Corbet
On Mon, 27 Apr 2020 12:26:06 -0700 Andrew Morton wrote: > On Tue, 28 Apr 2020 00:23:50 +0530 Souptick Joarder > wrote: > > > This patch is an attempt to update the documentation. > > > > * Adding / removing extra * based on type of function > > static / global. > > I don't think so, unless

[PATCH -next] stm class: stm_heartbeat: fix error return code

2020-04-28 Thread Wei Yongjun
Fix to return error code -ENOMEM from the error handling case instead of 0(ret can be overwritted to 0 in for loop). Signed-off-by: Wei Yongjun --- drivers/hwtracing/stm/heartbeat.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/hwtracing/stm/heartbeat.c b/dri

Re: [PATCH v3 00/10] livepatch,module: Remove .klp.arch and module_disable_ro()

2020-04-28 Thread Miroslav Benes
On Sat, 25 Apr 2020, Josh Poimboeuf wrote: > v3: > - klp: split klp_write_relocations() into object/section specific > functions [joe] > - s390: fix plt/got writes [joe] > - s390: remove text_mutex usage [mbenes] > - x86: do text_poke_sync() before releasing text_mutex [peterz] > - split x86 tex

Re: [PATCH] gpiolib: Improve kernel messages

2020-04-28 Thread Linus Walleij
On Fri, Apr 24, 2020 at 4:14 PM Geert Uytterhoeven wrote: > Simplify the printing of kernel messages and make the messages more > accurate by using the most appropriate {dev,chip,gpiod}_*() helpers. > > Sample impact: > > -gpiochip_setup_dev: registered GPIOs 496 to 511 on device: gpiochip0

[PATCH -next] stm class: dummy_stm: fix error return code in dummy_stm_init()

2020-04-28 Thread Wei Yongjun
Fix to return error code -ENOMEM from the error handling case instead of 0(ret can be overwritted to 0 in for loop). Signed-off-by: Wei Yongjun --- drivers/hwtracing/stm/dummy_stm.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/hwtracing/stm/dummy_stm.c b/dri

Re: [PATCH] gpiolib: Rename "chip" variables to "gc" in core header file

2020-04-28 Thread Linus Walleij
On Fri, Apr 24, 2020 at 4:15 PM Geert Uytterhoeven wrote: > Consistently use "gc" for "struct gpio *" variables. > > This follows the spirit of commit a0b66a73785ccc8f ("gpio: Rename > variable in core APIs"). > > Signed-off-by: Geert Uytterhoeven Patch applied. Yours, Linus Walleij

Re: [PATCH v2 1/2] gpio: ftgpio010: Fix small typo

2020-04-28 Thread Linus Walleij
On Fri, Apr 24, 2020 at 5:41 PM Dejin Zheng wrote: > Fix a spelling typo in gpio-ftgpio010.c by codespell > s/desireable/desirable/ > > Cc: Andy Shevchenko > Signed-off-by: Dejin Zheng > --- > v1 -> v2: > - split patch v1 (only one patch) into patches for each driver > by Bart

Re: [PATCH v2 04/91] firmware: rpi: Only create clocks device if we don't have a node for it

2020-04-28 Thread Maxime Ripard
Hi Nicolas, On Mon, Apr 27, 2020 at 01:24:14PM +0200, Nicolas Saenz Julienne wrote: > Hi Maxime, > > On Fri, 2020-04-24 at 17:33 +0200, Maxime Ripard wrote: > > The firmware clocks driver was previously probed through a platform_device > > created by the firmware driver. > > > > Since we will no

[PATCH v6 RESEND 2/2] buffer: record blockdev write errors in super_block that it backs

2020-04-28 Thread Jeff Layton
From: Jeff Layton When syncing out a block device (a'la __sync_blockdev), any error encountered will only be recorded in the bd_inode's mapping. When the blockdev contains a filesystem however, we'd like to also record the error in the super_block that's stored there. Make mark_buffer_write_io_e

[PATCH v6 RESEND 0/2] vfs: have syncfs() return error when there are writeback errors

2020-04-28 Thread Jeff Layton
Just a resend since this hasn't been picked up yet. No real changes from the last set (other than adding Jan's Reviewed-bys). Latest cover letter follows: --8< v6: - use READ_ONCE to ensure that compiler doesn't optimize away local var The only

[PATCH v6 RESEND 1/2] vfs: track per-sb writeback errors and report them to syncfs

2020-04-28 Thread Jeff Layton
From: Jeff Layton Usually we suggest that applications call fsync when they want to ensure that all data written to the file has made it to the backing store, but that can be inefficient when there are a lot of open files. Calling syncfs on the filesystem can be more efficient in some situations

Re: [PATCH] powerpc/spufs: Add rcu_read_lock() around fcheck()

2020-04-28 Thread Christoph Hellwig
On Tue, Apr 28, 2020 at 09:48:11PM +1000, Michael Ellerman wrote: > > This comes from fcheck_files() via fcheck(). > > It's pretty clearly documented that fcheck() must be wrapped with > rcu_read_lock(), so fix it. But for this to actually be useful you'd need the rcu read lock until your are do

Re: [PATCH v2 2/2] gpio: mm-lantiq: Fix small typo

2020-04-28 Thread Linus Walleij
On Fri, Apr 24, 2020 at 5:41 PM Dejin Zheng wrote: > Fix a spelling typo in gpio-mm-lantiq.c by codespell > s/dont/don't/ > > Cc: Andy Shevchenko > Signed-off-by: Dejin Zheng > --- > v1 -> v2: > - split patch v1 (only one patch) into patches for each driver > by Bartosz's sugg

Re: [RFC PATCH] powerpc/spufs: fix copy_to_user while atomic

2020-04-28 Thread Christoph Hellwig
On Tue, Apr 28, 2020 at 08:02:07PM +0800, Jeremy Kerr wrote: > Currently, we may perform a copy_to_user (through > simple_read_from_buffer()) while holding a context's register_lock, > while accessing the context save area. > > This change uses a temporary buffers for the context save area data, >

Re: [PATCH] fs/ceph:fix double unlock in handle_cap_export()

2020-04-28 Thread Wu Bo
On 2020/4/28 21:41, Yan, Zheng wrote: On Tue, Apr 28, 2020 at 8:50 PM Wu Bo wrote: If the ceph_mdsc_open_export_target_session() return fails, should add a lock to avoid twice unlocking. Because the lock will be released at the retry or out_unlock tag. at retry label, i_ceph_lock get locked

Re: [PATCH] serial: amba-pl011: Support earlycon_kgdboc

2020-04-28 Thread Daniel Thompson
On Fri, Apr 24, 2020 at 01:43:51PM +0530, Sumit Garg wrote: > Implement the read() function in the early console driver. With > recently added earlycon_kgdboc feature, this allows you to use kgdb > to debug fairly early into the system boot. > > We only bother implementing this if polling is enabl

Re: [PATCH v4] Add new uio device for PCI with dynamic memory allocation

2020-04-28 Thread gregkh @ linuxfoundation . org
On Thu, Apr 16, 2020 at 06:38:30PM +0200, Manuel Stahl wrote: > This device combines the uio_pci_generic driver and the uio_dmem_genirq > driver since PCI uses a slightly different API for interrupts. > A fixed number of DMA capable memory regions can be defined using the > module parameter "dmem_s

Re: linux-next boot error: WARNING: suspicious RCU usage in ipmr_get_table

2020-04-28 Thread Qian Cai
>> >> rcu_scheduler_active = 2, debug_locks = 1 >> 1 lock held by swapper/0/1: >> #0: 8a5a6330 (pernet_ops_rwsem){+.+.}-{3:3}, at: >> register_pernet_subsys+0x16/0x40 net/core/net_namespace.c:1257 >> >> stack backtrace: >> CPU: 0 PID: 1

Re: [PATCH] firmware: stratix10-svc: Drop unnecessary checking for and populating /firmware/ node

2020-04-28 Thread Richard Gong
Hi, On 4/28/20 3:32 AM, Sudeep Holla wrote: On Mon, Apr 27, 2020 at 02:12:56PM -0500, Richard Gong wrote: Hi Sudeep, In our dts, firmware is not under root node. You can refer to arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi for details. This is why we need check and populate firmware nod

Re: [RFC PATCH v1 3/5] media: tegra-video: Move PM runtime handle to streaming

2020-04-28 Thread Dmitry Osipenko
28.04.2020 07:20, Sowjanya Komatineni пишет: > diff --git a/drivers/staging/media/tegra-video/csi.c > b/drivers/staging/media/tegra-video/csi.c > index b3dd0c3..29ccdae 100644 > --- a/drivers/staging/media/tegra-video/csi.c > +++ b/drivers/staging/media/tegra-video/csi.c > @@ -272,8 +272,25 @@ sta

Re: [PATCH] gpio: of: Build fails if CONFIG_OF_DYNAMIC enabled without CONFIG_OF_GPIO

2020-04-28 Thread Linus Walleij
On Sat, Apr 25, 2020 at 6:46 AM David Gow wrote: > The symbol 'gpio_of_notifier' doesn't exist without both CONFIG_OF_GPIO > and CONFIG_OF_DYNAMIC enabled, but is referenced when only > CONFIG_OF_DYNAMIC is enabled. > > This broke building with 'make ARCH=um allyesconfig': > --- > /us

Re: [PATCH] power: supply: ab8500_fg: remove comparison to bool

2020-04-28 Thread Linus Walleij
On Sun, Apr 26, 2020 at 11:43 AM Jason Yan wrote: > Fix the following coccicheck warning: > > drivers/power/supply/ab8500_fg.c:2402:5-24: WARNING: Comparison to bool > > Signed-off-by: Jason Yan Reviewed-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH] usb: chipidea: usb2: remove unneeded semicolon

2020-04-28 Thread Michał Mirosław
On Tue, Apr 28, 2020 at 02:33:59PM +0800, Jason Yan wrote: > Fix the following coccicheck warning: > > drivers/usb/chipidea/ci_hdrc_usb2.c:75:28-29: Unneeded semicolon > > Signed-off-by: Jason Yan > --- > drivers/usb/chipidea/ci_hdrc_usb2.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-

Re: [RFC 00/17] DRM: fix struct sg_table nents vs. orig_nents misuse

2020-04-28 Thread Christoph Hellwig
On Tue, Apr 28, 2020 at 03:19:48PM +0200, Marek Szyprowski wrote: > 1. introduce a dma_{map,sync,unmap}_sgtable() wrappers, which will use >a proper sg_table entries and call respective DMA-mapping functions >and adapt current code to it That sounds reasonable to me. Those could be pretty

Re: [PATCH net v1] net: macb: fix an issue about leak related system resources

2020-04-28 Thread Andy Shevchenko
On Tue, Apr 28, 2020 at 4:12 PM Dejin Zheng wrote: > On Tue, Apr 28, 2020 at 10:42:56AM +0200, Nicolas Ferre wrote: > > On 28/04/2020 at 05:24, Dejin Zheng wrote: > > > On Mon, Apr 27, 2020 at 01:33:41PM +0300, Andy Shevchenko wrote: > > > > On Sat, Apr 25, 2020 at 3:57 PM Dejin Zheng > > > > wr

Re: [PATCH 1/2] dt-bindings: mfd: Document QTI I2C PMIC controller

2020-04-28 Thread Rob Herring
On Mon, 27 Apr 2020 19:18:01 -0700, Guru Das Srinagesh wrote: > The Qualcomm Technologies, Inc. I2C PMIC Controller is used by > multi-function PMIC devices which communicate over the I2C bus. The > controller enumerates all child nodes as platform devices, and > instantiates a regmap interface fo

Re: [RFC PATCH v1 3/5] media: tegra-video: Move PM runtime handle to streaming

2020-04-28 Thread Dmitry Osipenko
28.04.2020 07:20, Sowjanya Komatineni пишет: > + ret = csi->ops->csi_streaming(csi_chan, chan->pg_mode, enable); > > - return csi->ops->csi_streaming(csi_chan, chan->pg_mode, enable); > + if ((ret < 0 || !enable) && atomic_dec_and_test(&csi->clk_refcnt)) > + pm_runtime_put

[PATCH v6 2/4] dt-bindings: phy: qcom,qmp-usb3-dp: Add dt bindings for USB3 DP PHY

2020-04-28 Thread Sandeep Maheswaram
Split out the dt bindings for USB3 DP PHY from qcom,qmp bindings for modularity. Signed-off-by: Sandeep Maheswaram --- .../bindings/phy/qcom,qmp-usb3-dp-phy.yaml | 135 + 1 file changed, 135 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/qcom

[PATCH v6 0/4] Add QMP V3 USB3 PHY support for SC7180

2020-04-28 Thread Sandeep Maheswaram
Add QMP V3 USB3 PHY entries for SC7180 in phy driver and device tree bindings. changes in v6: *Added separate yaml file for USB3 DP PHY bindings. changes in v5: *Addressed comments from Matthias in yaml file. *Dropped PATCH 4/4 as it is landed in linux-next. changes in v4: *Addressed comments f

Re: [PATCH 2/4] media: place CEC menu before MEDIA_SUPPORT

2020-04-28 Thread Geert Uytterhoeven
Hi Mauro, On Wed, 15 Apr 2020, Mauro Carvalho Chehab wrote: The only item that opens at the CEC Kconfig menu is related to Remote Controller. Also, its support should not depend on media support, so it makes sense to keep both RC and CEC together. After this change, the main media menus

[PATCH v6 3/4] dt-bindings: phy: qcom,qmp-usb3-dp: Add support for SC7180

2020-04-28 Thread Sandeep Maheswaram
Add compatible for SC7180 in QMP USB3 DP PHY bindings. Signed-off-by: Sandeep Maheswaram --- Documentation/devicetree/bindings/phy/qcom,qmp-usb3-dp-phy.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-usb3-dp-phy.yaml b

[PATCH v6 1/4] dt-bindings: phy: qcom,qmp: Convert QMP PHY bindings to yaml

2020-04-28 Thread Sandeep Maheswaram
Convert QMP PHY bindings to DT schema format using json-schema. Signed-off-by: Sandeep Maheswaram Reviewed-by: Rob Herring --- .../devicetree/bindings/phy/qcom,qmp-phy.yaml | 311 + .../devicetree/bindings/phy/qcom-qmp-phy.txt | 242 2 files chang

[PATCH v6 4/4] phy: qcom-qmp: Add QMP V3 USB3 PHY support for SC7180

2020-04-28 Thread Sandeep Maheswaram
Adding QMP v3 USB3 PHY support for SC7180. Adding only usb phy reset in the list to avoid reset of DP block. Signed-off-by: Sandeep Maheswaram Reviewed-by: Matthias Kaehlcke Reviewed-by: Stephen Boyd --- drivers/phy/qualcomm/phy-qcom-qmp.c | 38 + 1 file cha

Re: [PATCH v2 4/4] mm/slub: Fix sysfs shrink circular locking dependency

2020-04-28 Thread Waiman Long
On 4/27/20 10:11 PM, Qian Cai wrote: On Apr 27, 2020, at 9:39 PM, Waiman Long wrote: The sequence that was prevented by this patch is "kn->count --> mem_hotplug_lock.rwsem". This sequence isn't directly in the splat. Once this link is broken, the 3-lock circular loop cannot be formed. Maybe

Re: [PATCH v3] checkpatch: add dedicated checker for 'Fixes:' tag

2020-04-28 Thread Wang YanQing
On Tue, Apr 28, 2020 at 08:21:37AM +0200, Markus Elfring wrote: > > ... > > Do not split the tag across multiple > > lines, tags are exempt from the "wrap at 75 columns" rule in order to > > simplify > > parsing scripts > > ... > > I suggest to reformat the quotation. > > “… > Do not split the t

Re: [PATCH 1/3] KVM: x86/mmu: Tweak PSE hugepage handling to avoid 2M vs 4M conundrum

2020-04-28 Thread Barret Rhoden
On 4/27/20 8:54 PM, Sean Christopherson wrote: Change the PSE hugepage handling in walk_addr_generic() to fire on any page level greater than PT_PAGE_TABLE_LEVEL, a.k.a. PG_LEVEL_4K. PSE paging only has two levels, so "== 2" and "> 1" are functionally the seam, i.e. this is a nop. ^ s/seam/sa

Re: [PATCH 1/6] iio: chemical: scd30: add core driver

2020-04-28 Thread Tomasz Duszynski
On Tue, Apr 28, 2020 at 01:16:47PM +0300, Andy Shevchenko wrote: > On Tue, Apr 28, 2020 at 10:57 AM Tomasz Duszynski > wrote: > > > > On Sat, Apr 25, 2020 at 09:52:25PM +0300, Andy Shevchenko wrote: > > > On Sat, Apr 25, 2020 at 9:42 PM Tomasz Duszynski > > > wrote: > > > > On Sat, Apr 25, 2020 a

Re: [PATCH v4 10/10] dt-bindings: input: touchscreen: elants_i2c: convert to YAML

2020-04-28 Thread Michał Mirosław
On Mon, Apr 27, 2020 at 04:14:15PM -0500, Rob Herring wrote: > On Sun, Apr 26, 2020 at 11:11 AM Michał Mirosław > wrote: > > > > From: David Heidelberg > > > > Convert elants_i2c.txt DT binding to YAML and put into correct directory. > > Resend to the DT list or this won't be in my review queue.

Re: [PATCH 0/2] Add support for StorageD3Enable _DSD property

2020-04-28 Thread David E. Box
On Tue, 2020-04-28 at 07:13 +0200, Christoph Hellwig wrote: > On Mon, Apr 27, 2020 at 05:32:12PM -0700, David E. Box wrote: > > NVMe storage power management during suspend-to-idle, particularly > > on > > laptops, has been inconsistent with some devices working with D3 > > while > > others must re

Re: [PATCH 2/8] dt-bindings: intc: Convert ingenic,intc.txt to YAML

2020-04-28 Thread Paul Cercueil
Hi Sergei, Le lun. 27 avril 2020 à 12:11, Sergei Shtylyov a écrit : Hello! On 26.04.2020 21:58, Paul Cercueil wrote: Convert the ingenic,intc.txt doc file to ingenic,intc.yaml. Some compatible strings now require a fallback, as the controller generally works the same across the SoCs famili

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