[PATCH 1/7] pinctrl: mediatek: update pinmux definitions for mt6779

2020-07-14 Thread Hanks Chen
Add devicetree bindings for Mediatek mt6779 SoC Pin Controller. Acked-by: Sean Wang Signed-off-by: Mars Cheng Signed-off-by: Andy Teng Signed-off-by: Hanks Chen --- include/dt-bindings/pinctrl/mt6779-pinfunc.h | 1242 ++ 1 file changed, 1242 insertions(+) create mode

[PATCH 4/7] pinctrl: mediatek: add pinctrl support for MT6779 SoC

2020-07-14 Thread Hanks Chen
This adds MT6779 pinctrl driver based on MediaTek pinctrl-paris core. Acked-by: Sean Wang Signed-off-by: Mars Cheng Signed-off-by: Andy Teng Signed-off-by: Hanks Chen --- drivers/pinctrl/mediatek/Kconfig | 12 + drivers/pinctrl/mediatek/Makefile |1 + drivers/pi

[PATCH v11 04/15] perf evlist: introduce control file descriptors

2020-07-14 Thread Alexey Budankov
Define and initialize control file descriptors. Signed-off-by: Alexey Budankov --- tools/perf/util/evlist.c | 3 +++ tools/perf/util/evlist.h | 5 + 2 files changed, 8 insertions(+) diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c index bcbe0cb8482e..36eb50aba1f5 100644 --

[PATCH v11 05/15] perf evlist: implement control command handling functions

2020-07-14 Thread Alexey Budankov
Implement functions of initialization, finalization and processing of control command messages coming from control file descriptors. Allocate control file descriptor as descriptor at struct pollfd object of evsel_list for atomic poll() operation. Signed-off-by: Alexey Budankov --- tools/perf/u

[PATCH] net: neterion: s2io: switch from 'pci_' to 'dma_' API

2020-07-14 Thread Christophe JAILLET
The wrappers in include/linux/pci-dma-compat.h should go away. The patch has been generated with the coccinelle script below and has been hand modified to replace GPF_ with a correct flag. It has been compile tested. When memory is allocated in 'init_shared_mem()' GFP_KERNEL can be used because t

[PATCH v11 06/15] perf stat: factor out body of event handling loop for system wide

2020-07-14 Thread Alexey Budankov
Introduce handle_interval() function that factors out body of event handling loop for attach and system wide monitoring use cases. Signed-off-by: Alexey Budankov --- tools/perf/builtin-stat.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/tools/perf/buil

[PATCH 1/2] doc: filesystems: proc: Remove stray '-' preventing table output

2020-07-14 Thread Chris Packham
When processing proc.rst sphinx complained Documentation/filesystems/proc.rst:548: WARNING: Malformed table. Text in column margin in table line 29. This caused the entire table to be dropped. Removing the stray '-' resolves the error and produces the desired table. Signed-off-by: Chris Pack

[PATCH 2/2] doc: filesystems: proc: Fix literal blocks

2020-07-14 Thread Chris Packham
Sphinx complains Documentation/filesystems/proc.rst:2194: WARNING: Inconsistent literal block quoting. Update the command line snippets to be properly formed literal blocks. Signed-off-by: Chris Packham --- Documentation/filesystems/proc.rst | 38 +- 1 file chang

[PATCH v11 07/15] perf stat: move target check to loop control statement

2020-07-14 Thread Alexey Budankov
Check for target existence in loop control statement jointly external asynchronous 'done' signal. Signed-off-by: Alexey Budankov --- tools/perf/builtin-stat.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index 80ae

[PATCH v11 08/15] perf stat: factor out body of event handling loop for fork case

2020-07-14 Thread Alexey Budankov
Factor out body of event handling loop for fork case reusing handle_interval() function. Signed-off-by: Alexey Budankov --- tools/perf/builtin-stat.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index 87eebf3f55ae

[PATCH v11 09/15] perf stat: factor out event handling loop into dispatch_events()

2020-07-14 Thread Alexey Budankov
Consolidate event dispatching loops for fork, attach and system wide monitoring use cases into common dispatch_events() function. Signed-off-by: Alexey Budankov --- tools/perf/builtin-stat.c | 36 1 file changed, 24 insertions(+), 12 deletions(-) diff --gi

[PATCH 0/3] ASoC: fsl-asoc-card: Support hp and mic detection

2020-07-14 Thread Shengjiu Wang
Support hp and mic detection. Add a parameter for asoc_simple_init_jack. Shengjiu Wang (3): ASoC: simple-card-utils: Support configure pin_name for asoc_simple_init_jack ASoC: bindings: fsl-asoc-card: Support hp-det-gpio and mic-det-gpio ASoC: fsl-asoc-card: Support Headphone and Microph

[PATCH v11 10/15] perf stat: extend -D,--delay option with -1 value

2020-07-14 Thread Alexey Budankov
Extend -D,--delay option with -1 value to start monitoring with events disabled to be enabled later by enable command provided via control file descriptor. Signed-off-by: Alexey Budankov --- tools/perf/Documentation/perf-stat.txt | 5 +++-- tools/perf/builtin-stat.c | 18

[PATCH] spi: Use clk_prepare_enable and clk_disable_unprepare

2020-07-14 Thread Qing Zhang
Convert clk_enable/clk_disable to clk_prepare_enable/clk_disable_unprepare calls as required by common clock framework. Signed-off-by: Qing Zhang --- drivers/spi/spi-coldfire-qspi.c | 4 ++-- drivers/spi/spi-omap-uwire.c| 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a

[PATCH 2/3] ASoC: bindings: fsl-asoc-card: Support hp-det-gpio and mic-det-gpio

2020-07-14 Thread Shengjiu Wang
Add headphone and microphone detection GPIO support. Signed-off-by: Shengjiu Wang --- Documentation/devicetree/bindings/sound/fsl-asoc-card.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/fsl-asoc-card.txt b/Documentation/devicetree/bindings/so

[PATCH 1/3] ASoC: simple-card-utils: Support configure pin_name for asoc_simple_init_jack

2020-07-14 Thread Shengjiu Wang
Currently the pin_name is fixed in asoc_simple_init_jack, but some driver may use a different pin_name. So add a new parameter in asoc_simple_init_jack for configuring pin_name. If this parameter is NULL, then the default pin_name is used. Signed-off-by: Shengjiu Wang --- include/sound/simple_c

[PATCH v11 11/15] perf stat: implement control commands handling

2020-07-14 Thread Alexey Budankov
Implement handling of 'enable' and 'disable' control commands coming from control file descriptor. If poll event splits initiated timeout interval then the reminder is calculated and still waited in the following evlist__poll() call. Signed-off-by: Alexey Budankov --- tools/perf/builtin-stat.c

Re: [RFC v2 1/5] perf/pmu-events/jevents: Add enum to store aggregation like PerPkg

2020-07-14 Thread kajoljain
On 7/13/20 12:25 AM, Jiri Olsa wrote: > On Tue, Jul 07, 2020 at 05:53:10PM +0530, Kajol Jain wrote: > > SNIP > >> } >> >> diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c >> index 93fe72a9dc0b..3cafbb320d68 100644 >> --- a/tools/perf/util/pmu.c >> +++ b/tools/p

[PATCH 3/3] ASoC: fsl-asoc-card: Support Headphone and Microphone Jack detection

2020-07-14 Thread Shengjiu Wang
Use asoc_simple_init_jack function from simple card to implement the Headphone and Microphone detection. Register notifier to disable Speaker when Headphone is plugged in and enable Speaker when Headphone is unplugged. Register notifier to disable Digital Microphone when Analog Microphone is plugge

[PATCH v2] selftests/livepatch: adopt to newer sysctl error format

2020-07-14 Thread Petr Mladek
With procfs v3.3.16, the sysctl command doesn't print the set key and value on error. This change breaks livepatch selftest test-ftrace.sh, that tests the interaction of sysctl ftrace_enabled: Make it work with all sysctl versions using '-q' option. Explicitly print the final status on success s

[PATCH v11 13/15] perf record: extend -D,--delay option with -1 value

2020-07-14 Thread Alexey Budankov
Extend -D,--delay option with -1 to start collection with events disabled to be enabled later by 'enable' command provided via control file descriptor. Signed-off-by: Alexey Budankov --- tools/perf/Documentation/perf-record.txt | 5 +++-- tools/perf/builtin-record.c | 12

Re: [PATCH v2 2/2] phy: socionext: Add UniPhier AHCI PHY driver support

2020-07-14 Thread Kunihiko Hayashi
Hi Vinod, On 2020/07/13 14:05, Vinod Koul wrote: On 30-06-20, 17:59, Kunihiko Hayashi wrote: +++ b/drivers/phy/socionext/phy-uniphier-ahci.c @@ -0,0 +1,335 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * phy-uniphier-ahci.c - PHY driver for UniPhier AHCI controller + * Copyright 2016-2018, Soc

[PATCH v11 12/15] perf stat: introduce --control fd:ctl-fd[,ack-fd] options

2020-07-14 Thread Alexey Budankov
Introduce --control fd:ctl-fd[,ack-fd] options to pass open file descriptors numbers from command line. Extend perf-stat.txt file with --control fd:ctl-fd[,ack-fd] options description. Document possible usage model introduced by --control fd:ctl-fd[,ack-fd] options by providing example bash shell

[PATCH v11 14/15] perf record: implement control commands handling

2020-07-14 Thread Alexey Budankov
Implement handling of 'enable' and 'disable' control commands coming from control file descriptor. Signed-off-by: Alexey Budankov --- tools/perf/builtin-record.c | 16 1 file changed, 16 insertions(+) diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c inde

[PATCH v1] clk: intel: Address pending review concerns

2020-07-14 Thread Rahul Tanwar
Use devm_clk_hw_register() instead of clk_hw_register(). Remove unnecessary locking. Avoid memset by improving code. Signed-off-by: Rahul Tanwar --- drivers/clk/x86/clk-cgu-pll.c | 2 +- drivers/clk/x86/clk-cgu.c | 32 2 files changed, 13 insertions(+), 21 d

[PATCH v11 15/15] perf record: introduce --control fd:ctl-fd[,ack-fd] options

2020-07-14 Thread Alexey Budankov
Introduce --control fd:ctl-fd[,ack-fd] options to pass open file descriptors numbers from command line. Extend perf-record.txt file with --control fd:ctl-fd[,ack-fd] options description. Document possible usage model introduced by --control fd:ctl-fd[,ack-fd] options by providing example bash she

Re: [RFC v2 3/5] perf jevents: Add support for parsing perchip/percore events

2020-07-14 Thread kajoljain
On 7/13/20 12:25 AM, Jiri Olsa wrote: > On Tue, Jul 07, 2020 at 05:53:12PM +0530, Kajol Jain wrote: >> Added the "PerChip" field in enum so that perf knows they are >> per chip events. >> >> Added the "PerCore" field in enum so that perf knows they are >> per core events and add these fields to

Re: [PATCH v2 4/4] scsi: ufs: Fix up and simplify error recovery mechanism

2020-07-14 Thread Can Guo
Hi Bart, On 2020-07-14 12:26, Can Guo wrote: Hi Bart, On 2020-07-14 11:52, Bart Van Assche wrote: On 2020-07-13 19:28, Can Guo wrote: o Queue eh_work on a single threaded workqueue to avoid concurrency between eh_works. Please use another approach (mutex?) to serialize error handling. T

Re: [PATCH 2/9] timer: Add comments about calc_index() ceiling work

2020-07-14 Thread Thomas Gleixner
Frederic Weisbecker writes: > static inline unsigned calc_index(unsigned expires, unsigned lvl) > { > + /* > + * Time may have past since the clock last reached an index of > + * this @lvl. And that time, below LVL_GRAN(@lvl), is going to > + * be substracted from the delta un

Re: [PATCH] mm/hugetlb: hide nr_nodes in the internal of for_each_node_mask_to_[alloc|free]

2020-07-14 Thread Vlastimil Babka
On 7/14/20 9:34 AM, Wei Yang wrote: > The second parameter of for_each_node_mask_to_[alloc|free] is a loop > variant, which is not used outside of loop iteration. > > Let's hide this. > > Signed-off-by: Wei Yang > --- > mm/hugetlb.c | 38 -- > 1 file changed,

[PATCH] net: neterion: vxge: switch from 'pci_' to 'dma_' API

2020-07-14 Thread Christophe JAILLET
The wrappers in include/linux/pci-dma-compat.h should go away. The patch has been generated with the coccinelle script below. No GFP_ flag needs to be corrected. It has been compile tested. @@ @@ -PCI_DMA_BIDIRECTIONAL +DMA_BIDIRECTIONAL @@ @@ -PCI_DMA_TODEVICE +DMA_TO_DEVICE @

Re: [PATCH v2 4/4] dt-bindings: clk: versaclock5: convert to yaml

2020-07-14 Thread Luca Ceresoli
Hi Rob, thanks for you review! On 14/07/20 05:11, Rob Herring wrote: > On Wed, Jul 08, 2020 at 09:40:35AM +0200, Luca Ceresoli wrote: >> Convert to yaml the VersaClock bindings document. The mapping between >> clock specifier and physical pins cannot be described formally in yaml >> schema, then

[PATCH v2] mlxbf-tmfifo: use wrappers for config access

2020-07-14 Thread Michael S. Tsirkin
mlxbf-tmfifo.c seems to access virtio net config directly. E.g.: if (ntohs(hdr.len) > config->mtu + MLXBF_TMFIFO_NET_L2_OVERHEAD) return; This is not incorrect in that the specific device is at the moment always

Re: [PATCH v1 1/2] scsi: ufs: Simplify completion timestamp for SCSI and query commands

2020-07-14 Thread Can Guo
On 2020-07-06 14:07, Stanley Chu wrote: Simplify recording command completion time in __ufshcd_transfer_req_compl() by assigning lrbp->compl_time_stamp in an unified location. Signed-off-by: Stanley Chu Reviewed-by: Can Guo --- drivers/scsi/ufs/ufshcd.c | 3 +-- 1 file changed, 1 insertio

Re: [PATCH 1/2] usb: tegra: Fix allocation for the FPCI context

2020-07-14 Thread Thierry Reding
On Sun, Jul 12, 2020 at 11:28:36AM +0100, Jon Hunter wrote: > Commit 5c4e8d3781bc ("usb: host: xhci-tegra: Add support for XUSB > context save/restore") is using the IPFS 'num_offsets' value when > allocating memory for FPCI context instead of the FPCI 'num_offsets'. > We have not observed any spec

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

2020-07-14 Thread Geert Uytterhoeven
Hi Jiri, On Tue, Jul 14, 2020 at 10:33 AM Jiri Olsa wrote: > On Tue, Jul 14, 2020 at 08:16:54AM +0200, Jiri Olsa wrote: > > On Tue, Jul 14, 2020 at 12:22:47PM +1000, Stephen Rothwell wrote: > > > After merging the bpf-next tree, today's linux-next build (arm > > > multi_v7_defconfig) failed like

Re: [PATCH v1 2/2] scsi: ufs: Fix and simplify setup_xfer_req variant operation

2020-07-14 Thread Can Guo
On 2020-07-06 14:07, Stanley Chu wrote: Add missing "setup_xfer_req" call in ufshcd_issue_devman_upiu_cmd() by ufs-bsg path, and collect all "setup_xfer_req" calls to an unified place, i.e., ufshcd_send_command(), to simplify the driver. Signed-off-by: Stanley Chu Reviewed-by: Can Guo ---

[PATCH v8 0/7] Add basic SoC Support for Mediatek MT6779 SoC

2020-07-14 Thread Hanks Chen
Change since v8: Commit "dt-bindings: pinctrl: add bindings for MediaTek" -- update the format Commit "arm64: dts: add dts nodes for MT6779" -- fix the typo in uart node Change since v7: Commit "dt-bindings: pinctrl: add bindings for MediaTek" -- fix typo and change order of patch Commit "clk: m

[PATCH v8 6/7] arm64: dts: add dts nodes for MT6779

2020-07-14 Thread Hanks Chen
this adds initial MT6779 dts settings for board support, including cpu, gic, timer, ccf, pinctrl, uart, sysirq...etc. Signed-off-by: Hanks Chen --- arch/arm64/boot/dts/mediatek/Makefile | 1 + arch/arm64/boot/dts/mediatek/mt6779-evb.dts | 31 +++ arch/arm64/boot/dts/mediatek/mt6779.dtsi

[PATCH v8 7/7] clk: mediatek: add UART0 clock support

2020-07-14 Thread Hanks Chen
Add MT6779 UART0 clock support. Fixes: 710774e04861 ("clk: mediatek: Add MT6779 clock support") Signed-off-by: Wendell Lin Signed-off-by: Hanks Chen Reviewed-by: Matthias Brugger --- drivers/clk/mediatek/clk-mt6779.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/mediatek/cl

[PATCH v8 5/7] pinctrl: mediatek: add mt6779 eint support

2020-07-14 Thread Hanks Chen
add driver setting to support mt6779 eint Acked-by: Sean Wang Signed-off-by: Mars Cheng Signed-off-by: Hanks Chen --- drivers/pinctrl/mediatek/pinctrl-mt6779.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/pinctrl/mediatek/pinctrl-mt6779.c b/drivers/pinctrl/mediatek/pinc

[PATCH v8 1/7] pinctrl: mediatek: update pinmux definitions for mt6779

2020-07-14 Thread Hanks Chen
Add devicetree bindings for Mediatek mt6779 SoC Pin Controller. Acked-by: Sean Wang Signed-off-by: Mars Cheng Signed-off-by: Andy Teng Signed-off-by: Hanks Chen --- include/dt-bindings/pinctrl/mt6779-pinfunc.h | 1242 ++ 1 file changed, 1242 insertions(+) create mode 100644 i

[PATCH v8 3/7] pinctrl: mediatek: avoid virtual gpio trying to set reg

2020-07-14 Thread Hanks Chen
for virtual gpios, they should not do reg setting and should behave as expected for eint function. Signed-off-by: Mars Cheng Signed-off-by: Hanks Chen --- .../pinctrl/mediatek/pinctrl-mtk-common-v2.c | 25 +++ .../pinctrl/mediatek/pinctrl-mtk-common-v2.h | 1 + drivers/pinctr

[PATCH v8 2/7] dt-bindings: pinctrl: add bindings for MediaTek MT6779 SoC

2020-07-14 Thread Hanks Chen
From: Andy Teng Add devicetree bindings for MediaTek MT6779 pinctrl driver. Signed-off-by: Andy Teng Signed-off-by: Hanks Chen --- .../pinctrl/mediatek,mt6779-pinctrl.yaml | 203 ++ 1 file changed, 203 insertions(+) create mode 100644 Documentation/devicetree/bindings/p

[PATCH v8 4/7] pinctrl: mediatek: add pinctrl support for MT6779 SoC

2020-07-14 Thread Hanks Chen
This adds MT6779 pinctrl driver based on MediaTek pinctrl-paris core. Acked-by: Sean Wang Signed-off-by: Mars Cheng Signed-off-by: Andy Teng Signed-off-by: Hanks Chen --- drivers/pinctrl/mediatek/Kconfig | 12 + drivers/pinctrl/mediatek/Makefile |1 + drivers/pi

Re: [PATCH v3 2/7] x86/boot/compressed: Force hidden visibility for all symbol references

2020-07-14 Thread Sedat Dilek
On Mon, Jun 29, 2020 at 4:09 PM Arvind Sankar wrote: > > From: Ard Biesheuvel > > Eliminate all GOT entries in the decompressor binary, by forcing hidden > visibility for all symbol references, which informs the compiler that > such references will be resolved at link time without the need for >

Re: [PATCH] mm/hugetlb: hide nr_nodes in the internal of for_each_node_mask_to_[alloc|free]

2020-07-14 Thread Vlastimil Babka
On 7/14/20 11:13 AM, Vlastimil Babka wrote: > On 7/14/20 9:34 AM, Wei Yang wrote: >> The second parameter of for_each_node_mask_to_[alloc|free] is a loop >> variant, which is not used outside of loop iteration. >> >> Let's hide this. >> >> Signed-off-by: Wei Yang >> --- >> mm/hugetlb.c | 38 +++

[PATCH v14] Add matrix keypad driver support Mediatek SoCs

2020-07-14 Thread Fengping Yu
Change since v13: - remove defconfig and mtk-kpd.yaml files reviewed-by tag fengping.yu (3): dt-bindings: Add keypad devicetree documentation drivers: input: keyboard: Add mtk keypad driver configs: defconfig: Add CONFIG_KEYBOARD_MTK_KPD=m .../devicetree/bindings/input/mtk-kpd.yaml|

Re: [PATCH v3 2/4] dt-bindings: mfd: lp87565: convert to yaml

2020-07-14 Thread Luca Ceresoli
Hi Rob, On 13/07/20 21:01, Rob Herring wrote: > On Mon, Jun 22, 2020 at 10:43:27PM +0200, Luca Ceresoli wrote: >> The definition of "xxx-in-supply" was generic, thus define in detail the >> possible cases for each chip variant. >> >> Also document that the only possible I2C slave address is 0x60 a

[PATCH v2 2/9] dmaengine: fsl-edma-common: add condition check for fsl_edma_chan_mux

2020-07-14 Thread Robin Gong
Since next edma3 don't have dmamux, add condition check in the common fsl_edma_free_chan_resources(). Signed-off-by: Robin Gong --- drivers/dma/fsl-edma-common.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/dma/fsl-edma-common.c b/drivers/dma/fsl-edma-common.c

[PATCH v2 0/9] add fsl-edma3 support

2020-07-14 Thread Robin Gong
This patchset enable fsl-edma3 which is used on i.mx8qxp/i.mx8qm. There are big changes on fsl-edma so that add indepent fsl-edma3 here: 1. split memory address for per channel, while all channels share the same memory address and the same control registers CR/INT..etc. 2. all TCD registers of

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

2020-07-14 Thread Geert Uytterhoeven
On Tue, Jul 14, 2020 at 11:02 AM Jiri Olsa wrote: > On Tue, Jul 14, 2020 at 12:16:08PM +1000, Stephen Rothwell wrote: > > After merging the bpf-next tree, today's linux-next build (powerpc > > ppc64_defconfig) produced this warning: > > > > ld: warning: orphan section `.BTF_ids' from `kernel/trace

[PATCH v2 1/9] dmaengine: fsl-edma: move edma_request functions into drvdata

2020-07-14 Thread Robin Gong
Move fsl_edma_enable_request/fsl_edma_disable_request into drvdata so that later edma3 could easily be added. Signed-off-by: Robin Gong --- drivers/dma/fsl-edma-common.c | 13 +++-- drivers/dma/fsl-edma-common.h | 3 +++ drivers/dma/fsl-edma.c| 10 -- drivers/dma/mcf-edm

[PATCH v2 4/9] dmaengine: fsl-edma-common: export fsl_edma_set_tcd_regs

2020-07-14 Thread Robin Gong
Preparing for edma3 since it need to be called in fsl-edma3.c Signed-off-by: Robin Gong --- drivers/dma/fsl-edma-common.c | 3 ++- drivers/dma/fsl-edma-common.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/dma/fsl-edma-common.c b/drivers/dma/fsl-edma-common.c ind

[PATCH v2 9/9] arm64: defconfig: add CONFIG_FSL_EDMA3

2020-07-14 Thread Robin Gong
Add CONFIG_FSL_EDMA3 for i.mx8qxp/i.mx8qm. Signed-off-by: Robin Gong --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index ae76fae..d786bd9 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/

[PATCH v2 8/9] arm64: dts: imx8qxp: add edma2

2020-07-14 Thread Robin Gong
add edma2 on i.mx8qxp. Signed-off-by: Robin Gong --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 38 ++ 1 file changed, 38 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi index e46faac..3f4fa59d 100

[PATCH v2 6/9] dt-bindings: dma: add fsl-edma3 yaml

2020-07-14 Thread Robin Gong
Add device binding doc for fsl-edma3 driver. Signed-off-by: Robin Gong --- .../devicetree/bindings/dma/nxp,fsl-edma3.yaml | 134 + 1 file changed, 134 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/nxp,fsl-edma3.yaml diff --git a/Documentation/de

[PATCH v2 7/9] firmware: imx: scu-pd: correct dma resource

2020-07-14 Thread Robin Gong
enlarge dma0/dma1 channel resource to 32 and split two parts of dma2 since their resource id are not continouse. Signed-off-by: Robin Gong --- drivers/firmware/imx/scu-pd.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/firmware/imx/scu-pd.c b/drivers/firmware

[PATCH v2 5/9] dmaengine: fsl-edma3: add fsl-edma3 driver

2020-07-14 Thread Robin Gong
add fsl-edma3 driver since there are big differences with legacy fsl-edma including below major items: 1. split memory address for per channel, while all channels share the same memory address and the same control registers CR/INT..etc. 2. all TCD registers of channels are continuous on legacy e

Re: [PATCH v5 2/6] PCI: uniphier: Add misc interrupt handler to invoke PME and AER

2020-07-14 Thread Kunihiko Hayashi
Hi Lorenzo, On 2020/07/11 1:14, Lorenzo Pieralisi wrote: On Wed, Jul 01, 2020 at 11:18:29AM +0900, Kunihiko Hayashi wrote: [...]   -static void uniphier_pcie_irq_handler(struct irq_desc *desc) +static void uniphier_pcie_misc_isr(struct pcie_port *pp, bool is_msi)   { -    struct pcie_port *

[PATCH v2 3/9] dmaengine: fsl-edma-common: add fsl_chan into fsl_edma_fill_tcd

2020-07-14 Thread Robin Gong
For preparing for next edma3 merged so that any member of 'struct fsl_chan' could be used in fsl_edma_fill_tcd. Signed-off-by: Robin Gong --- drivers/dma/fsl-edma-common.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/drivers/dma/fsl-edma-common.

[PATCH] scripts/spelling.txt: add more spellings to spelling.txt

2020-07-14 Thread Colin King
From: Colin Ian King Here are some of the more common spelling mistakes and typos that I've found while fixing up spelling mistakes in the kernel since April 2020. Signed-off-by: Colin Ian King --- scripts/spelling.txt | 19 +++ 1 file changed, 19 insertions(+) diff --git a/sc

RE: [PATCH v3] scsi: ufs: Cleanup completed request without interrupt notification

2020-07-14 Thread Avri Altman
> > > > > +cleanup: > > > > > + spin_lock_irqsave(host->host_lock, flags); > > > > > + if (!test_bit(tag, &hba->outstanding_reqs)) { > > Is this needed? it was already checked in line 6439. > > > > I am worried about the case that interrupt comes very lately. scsi timeout is 30sec -

Re: [PATCH 2/2] usb: tegra: Fix zero length memory allocation

2020-07-14 Thread Thierry Reding
On Sun, Jul 12, 2020 at 11:28:37AM +0100, Jon Hunter wrote: > After commit cad064f1bd52 ("devres: handle zero size in devm_kmalloc()") > was added system suspend started failing on Tegra186. The kernel log > showed that the Tegra XHCI driver was crashing on entry to suspend when > attemptin the sav

Re: [PATCH] arm64: Make TSK_STACK_CANARY more accurate defined

2020-07-14 Thread Guo Ren
On 2020/7/14 下午4:37, Will Deacon wrote: On Mon, Jul 13, 2020 at 04:03:33AM +, guo...@kernel.org wrote: From: Guo Ren TSK_STACK_CANARY only used in arm64/Makefile with CONFIG_STACKPROTECTOR_PER_TASK wrap. So use the same policy in asm-offset.c. Signed-off-by: Guo Ren Co-developed-by: K

Re: [PATCH v2 2/2] memory: samsung: exynos5422-dmc: Add module param to control IRQ mode

2020-07-14 Thread Willy Wolff
Hi Lukasz and Bartek, On 2020-07-14-10-01-16, Lukasz Luba wrote: Hi Bartek, On 7/14/20 8:42 AM, Bartlomiej Zolnierkiewicz wrote: Hi, On 7/10/20 9:11 PM, Lukasz Luba wrote: The driver can operate in two modes relaying on devfreq monitoring mechanism which periodically checks the device statu

Re: [PATCH 5.8 regression fix] platform/x86: thinkpad_acpi: Revert: Use strndup_user() in dispatch_proc_write()

2020-07-14 Thread Hans de Goede
Hi, On 7/14/20 10:27 AM, Andy Shevchenko wrote: On Tue, Jul 14, 2020 at 11:21 AM Andy Shevchenko wrote: On Tue, Jul 14, 2020 at 11:15 AM Hans de Goede wrote: Commit 35d13c7a0512 ("platform/x86: thinkpad_acpi: Use strndup_user() in dispatch_proc_write()") cleaned up dispatch_proc_write() by

Re: [PATCH] x86/entry: add compatibility with IAS

2020-07-14 Thread Sedat Dilek
On Tue, Jul 14, 2020 at 12:40 AM Jian Cai wrote: > > Clang's integrated assembler does not allow symbols with non-absolute > values to be reassigned. This patch allows the affected code to be > compatible with IAS. > > Link: https://github.com/ClangBuiltLinux/linux/issues/1043 > Reported-by: Nick

Re: [PATCH] tty: Add MOXA NPort Real TTY Driver

2020-07-14 Thread Jiri Slaby
On 14. 07. 20, 8:24, Johnson CH Chen (陳昭勳) wrote: > This driver supports tty functions for all of MOXA's NPort series > with v5.0. Using this driver, host part can use tty to connect NPort > device server by ethernet. ... > Signed-off-by: Johnson Chen > Signed-off-by: Jason Chen > Signed-off-by:

Re: [PATCH 11/21] iommu/mediatek: Add power-domain operation

2020-07-14 Thread Yong Wu
On Mon, 2020-07-13 at 15:03 +0800, Pi-Hsun Shih wrote: > On Sat, Jul 11, 2020 at 2:51 PM Yong Wu wrote: > > > > In the previous SoC, the M4U HW is in the EMI power domain which is > > always on. the latest M4U is in the display power domain which may be > > turned on/off, thus we have to add pm_ru

Re: [PATCH 12/21] iommu/mediatek: Add iova reserved function

2020-07-14 Thread Yong Wu
On Mon, 2020-07-13 at 15:33 +0800, Pi-Hsun Shih wrote: > On Sat, Jul 11, 2020 at 2:51 PM Yong Wu wrote: > > > > For multiple iommu_domains, we need to reserve some iova regions, so we > > will add mtk_iommu_iova_region structure. It includes the base address > > and size of the range. > > This is

Re: KASAN: use-after-free Read in devlink_health_reporter_destroy

2020-07-14 Thread Ido Schimmel
On Mon, Jul 13, 2020 at 03:55:21PM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:71930d61 Merge git://git.kernel.org/pub/scm/linux/kernel/g.. > git tree: net-next > console output: https://syzkaller.appspot.com/x/log.txt?x=10c8d15710 > kernel

Re: [PATCH v4] clk: tegra: pll: Improve PLLM enable-state detection

2020-07-14 Thread Dmitry Osipenko
14.07.2020 11:20, Jon Hunter пишет: > > On 09/07/2020 18:20, Dmitry Osipenko wrote: >> Power Management Controller (PMC) can override the PLLM clock settings, >> including the enable-state. Although PMC could only act as a second level >> gate, meaning that PLLM needs to be enabled by the Clock an

Re: KASAN: slab-out-of-bounds Read in __xfrm6_tunnel_spi_lookup

2020-07-14 Thread Steffen Klassert
Xin, this looks a bit like it was introduced with one of your recent patches. Can you please look into that? Thanks! On Mon, Jul 13, 2020 at 03:04:16PM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:be978f8f Add linux-next specific files for 20200713

Re: [PATCH] brcmfmac: expose firmware config files through modinfo

2020-07-14 Thread Kalle Valo
matthias@kernel.org wrote: > From: Matthias Brugger > > Apart from a firmware binary the chip needs a config file used by the > FW. Add the config files to modinfo so that they can be read by > userspace. > > Signed-off-by: Matthias Brugger I agree with Hans, this does not look a good sol

[PATCH] checkpatch.pl: Allow '+' in compatible strings

2020-07-14 Thread Thierry Reding
From: Thierry Reding The current checks will interpret a '+' character as special because they use regular expression matching. Escape the '+' character if it appears in a compatible string. Signed-off-by: Thierry Reding --- scripts/checkpatch.pl | 1 + 1 file changed, 1 insertion(+) diff --g

Re: [PATCH] mm: thp: Replace HTTP links with HTTPS ones

2020-07-14 Thread Vlastimil Babka
On 7/13/20 6:43 PM, Alexander A. Klimov wrote: > Rationale: > Reduces attack surface on kernel devs opening the links for MITM > as HTTPS traffic is much harder to manipulate. > > Deterministic algorithm: > For each file: > If not .svg: > For each line: > If doesn't contain `\bxmlns\b`

Re: [PATCH] brcmfmac: set timeout value when configuring power save

2020-07-14 Thread Kalle Valo
Nicolas Saenz Julienne writes: > Set the timeout value as per cfg80211's set_power_mgmt() request. If the > requested value value is left undefined we set it to 2 seconds, the > maximum supported value. > > Signed-off-by: Nicolas Saenz Julienne > --- > > Note: I got the 2 seconds value from the

Re: [PATCH] net: xilinx: fix potential NULL dereference in temac_probe()

2020-07-14 Thread Markus Elfring
> If you use devm_ioremap_resource() you can remove the !res check > entirely which would be equally acceptable as a fix. Would you like to use the wrapper function “devm_platform_get_and_ioremap_resource” then? https://elixir.bootlin.com/linux/v5.8-rc4/source/drivers/base/platform.c#L66 https://

Re: [PATCH 00/22] add support for Clang LTO

2020-07-14 Thread Sedat Dilek
On Sun, Jul 12, 2020 at 8:40 PM Nathan Chancellor wrote: > > On Sun, Jul 12, 2020 at 10:59:17AM +0200, Sedat Dilek wrote: > > On Sat, Jul 11, 2020 at 6:32 PM Paul Menzel wrote: > > > > > > Dear Sami, > > > > > > > > > Am 24.06.20 um 22:31 schrieb Sami Tolvanen: > > > > This patch series adds supp

Re: [PATCH] spi: Use clk_prepare_enable and clk_disable_unprepare

2020-07-14 Thread Mark Brown
On Tue, Jul 14, 2020 at 05:09:14PM +0800, Qing Zhang wrote: > Convert clk_enable/clk_disable to clk_prepare_enable/clk_disable_unprepare > calls as required by common clock framework. > > Signed-off-by: Qing Zhang > --- > drivers/spi/spi-coldfire-qspi.c | 4 ++-- Are you sure that ColdFire uses

Re: [PATCH] mm : fix pte _PAGE_DIRTY bit when fallback migrate page

2020-07-14 Thread Vlastimil Babka
On 7/13/20 3:57 AM, Robbie Ko wrote: > > Vlastimil Babka 於 2020/7/10 下午11:31 寫道: >> On 7/9/20 4:48 AM, robbieko wrote: >>> From: Robbie Ko >>> >>> When a migrate page occurs, we first create a migration entry >>> to replace the original pte, and then go to fallback_migrate_page >>> to execute a w

Re: [PATCH v3 2/7] x86/boot/compressed: Force hidden visibility for all symbol references

2020-07-14 Thread Ard Biesheuvel
On Tue, 14 Jul 2020 at 12:21, Sedat Dilek wrote: > > On Mon, Jun 29, 2020 at 4:09 PM Arvind Sankar wrote: > > > > From: Ard Biesheuvel > > > > Eliminate all GOT entries in the decompressor binary, by forcing hidden > > visibility for all symbol references, which informs the compiler that > > suc

[PATCH v2 3/3] kprobes: Flag out CONFIG_MODULES dependent code

2020-07-14 Thread Jarkko Sakkinen
Remove CONFIG_MODULES dependency by flagging out the dependent code. This allows to use kprobes in a kernel without support for loadable modules, which could be useful for a test kernel or perhaps an embedded kernel. Cc: Andi Kleen Signed-off-by: Jarkko Sakkinen --- arch/Kconfig

Re: [PATCH v2 2/2] memory: samsung: exynos5422-dmc: Add module param to control IRQ mode

2020-07-14 Thread Lukasz Luba
Hi Willy, On 7/14/20 10:32 AM, Willy Wolff wrote: Hi Lukasz and Bartek, On 2020-07-14-10-01-16, Lukasz Luba wrote: Hi Bartek, On 7/14/20 8:42 AM, Bartlomiej Zolnierkiewicz wrote: Hi, On 7/10/20 9:11 PM, Lukasz Luba wrote: The driver can operate in two modes relaying on devfreq monitoring

[PATCH v2 2/3] module: Add lock_modules() and unlock_modules()

2020-07-14 Thread Jarkko Sakkinen
Add wrappers to take the modules "big lock" in order to encapsulate conditional compilation (CONFIG_MODULES) inside the wrapper. Cc: Andi Kleen Suggested-by: Masami Hiramatsu Signed-off-by: Jarkko Sakkinen --- include/linux/module.h | 15 ++ kernel/kprobes.c| 4 +-- k

Re: [PATCH] mm/hugetlb: hide nr_nodes in the internal of for_each_node_mask_to_[alloc|free]

2020-07-14 Thread Wei Yang
On Tue, Jul 14, 2020 at 11:22:03AM +0200, Vlastimil Babka wrote: >On 7/14/20 11:13 AM, Vlastimil Babka wrote: >> On 7/14/20 9:34 AM, Wei Yang wrote: >>> The second parameter of for_each_node_mask_to_[alloc|free] is a loop >>> variant, which is not used outside of loop iteration. >>> >>> Let's hide

Re: [PATCH v3] brcmfmac: Transform compatible string for FW loading

2020-07-14 Thread Kalle Valo
matthias@kernel.org wrote: > From: Matthias Brugger > > The driver relies on the compatible string from DT to determine which > FW configuration file it should load. The DTS spec allows for '/' as > part of the compatible string. We change this to '-' so that we will > still be able to load

Re: [PATCH v6 15/17] static_call: Allow early init

2020-07-14 Thread Peter Zijlstra
On Mon, Jul 13, 2020 at 04:24:19PM -0400, Steven Rostedt wrote: > On Sat, 11 Jul 2020 07:08:31 +0200 > Peter Zijlstra wrote: > > > On Fri, Jul 10, 2020 at 09:14:26PM -0400, Steven Rostedt wrote: > > > On Fri, 10 Jul 2020 15:38:46 +0200 > > > Peter Zijlstra wrote: > > > > > > > In order to use

Re: [PATCH v2] dt-bindings: ASoC: Convert UniPhier EVEA codec to json-schema

2020-07-14 Thread Mark Brown
On Tue, Jul 14, 2020 at 03:13:26PM +0900, Masahiro Yamada wrote: > What do you mean by Reviewed-by ? > Do you expect this to go to the asoc tree? > I just thought the schema conversion > would go through the dt tree. No, bindings changes usually go through the subsystem - if there's any other wo

[PATCH 3/3] soc: mediatek: pwrap: add pwrap driver for MT6873/8192 SoCs

2020-07-14 Thread Hsin-Hsiung Wang
MT6873/8192 are highly integrated SoCs and use PMIC_MT6359 for power management. This patch adds pwrap master driver to access PMIC_MT6359. Signed-off-by: Hsin-Hsiung Wang --- drivers/soc/mediatek/mtk-pmic-wrap.c | 98 1 file changed, 87 insertions(+), 11 del

[PATCH 1/3] soc: mediatek: pwrap: use BIT() macro

2020-07-14 Thread Hsin-Hsiung Wang
Use a better BIT() marco for the bit definition. No functional changes, cleanup only. Signed-off-by: Hsin-Hsiung Wang --- drivers/soc/mediatek/mtk-pmic-wrap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-

[PATCH 2/3] dt-bindings: mediatek: add compatible for MT6873/8192 pwrap

2020-07-14 Thread Hsin-Hsiung Wang
This adds dt-binding documentation of pwrap for Mediatek MT6873/8192 SoCs Platform. Signed-off-by: Hsin-Hsiung Wang --- Documentation/devicetree/bindings/soc/mediatek/pwrap.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/soc/mediatek/pwrap.txt b/Documen

Re: [PATCH v6 13/17] static_call: Add static_call_cond()

2020-07-14 Thread Peter Zijlstra
On Mon, Jul 13, 2020 at 04:32:39PM -0400, Steven Rostedt wrote: > On Sat, 11 Jul 2020 12:49:30 +0200 > Peter Zijlstra wrote: > > > > Something like so (on top of the next patch) ? > > > > I'm not convinced it actually helps much, but if it makes you feel > > better :-) > > After you have bricke

[PATCH 0/3] Add PMIC wrapper support for Mediatek MT6873/8192 SoC IC

2020-07-14 Thread Hsin-Hsiung Wang
This series adds support for new SoC MT6873/8192 to the pmic-wrap driver. Hsin-Hsiung Wang (3): soc: mediatek: pwrap: use BIT() macro dt-bindings: mediatek: add compatible for MT6873/8192 pwrap soc: mediatek: pwrap: add pwrap driver for MT6873/8192 SoCs .../devicetree/bindings/soc/mediatek

Re: [PATCH] drivers/net/wan/x25_asy: Fix to make it work

2020-07-14 Thread Xie He
On Tue, Jul 14, 2020 at 1:07 AM -0700 Martin Schiller wrote: > > It really seems very strange that this driver seems to contain such > fundamental errors. I have never used it. > > But the explanations and fixes look plausible to me. Thank you for reviewing this patch, Martin! Yes, this situatio

Re: [PATCH] USB: serial: sierra: clean up special-interface handling

2020-07-14 Thread Johan Hovold
On Mon, Jul 13, 2020 at 05:51:27PM +0200, Greg Kroah-Hartman wrote: > On Mon, Jul 13, 2020 at 05:39:36PM +0200, Johan Hovold wrote: > > Clean up the handling of special interfaces that either should be > > ignored or that need a larger number of URBs. > > > > Commit 66f092ed3b94 ("USB: serial: sie

Re: [PATCH v35 21/24] x86/vdso: Implement a vDSO for Intel SGX enclave call

2020-07-14 Thread Jarkko Sakkinen
On Tue, Jul 14, 2020 at 09:30:03AM +0200, Jethro Beekman wrote: > On 2020-07-07 05:37, Jarkko Sakkinen wrote: > > From: Sean Christopherson > > > > An SGX runtime must be aware of the exceptions, which happen inside an > > enclave. Introduce a vDSO call that wraps EENTER/ERESUME cycle and returns

Re: [PATCH] mm/hugetlb: hide nr_nodes in the internal of for_each_node_mask_to_[alloc|free]

2020-07-14 Thread Wei Yang
On Tue, Jul 14, 2020 at 11:22:03AM +0200, Vlastimil Babka wrote: >On 7/14/20 11:13 AM, Vlastimil Babka wrote: >> On 7/14/20 9:34 AM, Wei Yang wrote: >>> The second parameter of for_each_node_mask_to_[alloc|free] is a loop >>> variant, which is not used outside of loop iteration. >>> >>> Let's hide

Re: [PATCH 1/2] doc: filesystems: proc: Remove stray '-' preventing table output

2020-07-14 Thread Mike Rapoport
On Tue, Jul 14, 2020 at 09:06:43PM +1200, Chris Packham wrote: > When processing proc.rst sphinx complained > > Documentation/filesystems/proc.rst:548: WARNING: Malformed table. > Text in column margin in table line 29. > > This caused the entire table to be dropped. Removing the stray '-' >

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