Re: [RFC PATCH 2/4] mdev: introduce helper to set per device dma ops

2019-09-17 Thread Jason Wang
On 2019/9/18 上午3:00, Alex Williamson wrote: On Tue, 10 Sep 2019 16:19:33 +0800 Jason Wang wrote: This patch introduces mdev_set_dma_ops() which allows parent to set per device DMA ops. This help for the kernel driver to setup a correct DMA mappings. Signed-off-by: Jason Wang ---

Re: [PATCH v1 2/2] spi: cadence-qspi: Add QSPI support for Intel LGM SoC

2019-09-17 Thread Ramuthevar, Vadivel MuruganX
Hi Mark,    Thank you for the review comments. On 17/9/2019 11:36 PM, Mark Brown wrote: On Tue, Sep 17, 2019 at 10:11:28AM +0800, Ramuthevar, Vadivel MuruganX wrote: *    spi-cadence.c* in *drivers/spi/*, which supports very old legacy cadence-spi based devices(normal) *   

Re: [PATCH] ionic: Remove unnecessary ternary operator in ionic_debugfs_add_ident

2019-09-17 Thread Greg Kroah-Hartman
On Tue, Sep 17, 2019 at 04:26:16PM -0700, Nathan Chancellor wrote: > clang warns: > > ../drivers/net/ethernet/pensando/ionic/ionic_debugfs.c:60:37: warning: > expression result unused [-Wunused-value] > ionic, _fops) ? 0 : -EOPNOTSUPP; >

[PATCH] ARM: zx: Use devm_platform_ioremap_resource() in zx296702_pd_probe()

2019-09-17 Thread Markus Elfring
From: Markus Elfring Date: Wed, 18 Sep 2019 07:40:26 +0200 Simplify this function implementation by using a known wrapper function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- arch/arm/mach-zx/zx296702-pm-domain.c | 10 +- 1 file

RE: [PATCH V3 0/4] clk: imx8m: fix glitch/mux

2019-09-17 Thread Stephen Boyd
Quoting Peng Fan (2019-09-17 22:45:20) > Hi Stephen, > > > Subject: RE: [PATCH V3 0/4] clk: imx8m: fix glitch/mux > > > > Quoting Peng Fan (2019-09-16 23:20:15) > > > Hi Stephen, Shawn, > > > > > > > Subject: [PATCH V3 0/4] clk: imx8m: fix glitch/mux > > > > > > Sorry to ping early. Is there a

[RESEND, PATCH v7 10/11] dt-bindings: pwm: update bindings for MT7629 SoC

2019-09-17 Thread Sam Shih
From: Ryder Lee This updates bindings for MT7629 pwm controller. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih Reviewed-by: Rob Herring Reviewed-by: Matthias Brugger --- Changes since v7: - add a missed Reviewed-by tag back from v1: https://patchwork.kernel.org/patch/10769381/ Changes

[RESEND, PATCH v7 11/11] arm: dts: mediatek: add mt7629 pwm support

2019-09-17 Thread Sam Shih
This adds pwm support for MT7629. Signed-off-by: Sam Shih --- arch/arm/boot/dts/mt7629.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/mt7629.dtsi b/arch/arm/boot/dts/mt7629.dtsi index 9608bc2ccb3f..493be9a9453b 100644 ---

[RESEND, PATCH v7 07/11] dt-bindings: pwm: pwm-mediatek: add a property "num-pwms"

2019-09-17 Thread Sam Shih
From: Ryder Lee This adds a property "num-pwms" in example so that we could specify the number of PWM channels via device tree. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih Reviewed-by: Matthias Brugger Acked-by: Uwe Kleine-König --- Changes since v6: Follow reviewers's comments: - The

[RESEND, PATCH v7 08/11] arm64: dts: mt7622: add a property "num-pwms" for PWM

2019-09-17 Thread Sam Shih
From: Ryder Lee This adds a property "num-pwms" for PWM controller. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi

Re: [PATCH v2 1/8] powerpc/32: Add VDSO version of getcpu

2019-09-17 Thread Michael Ellerman
Hi Christophe, Sorry I'm late replying to this. Christophe Leroy writes: > Commit 18ad51dd342a ("powerpc: Add VDSO version of getcpu") added > getcpu() for PPC64 only, by making use of a user readable general > purpose SPR. > > PPC32 doesn't have any such SPR, a full system call can still be >

Re: [RFC v4 0/3] vhost: introduce mdev based hardware backend

2019-09-17 Thread Jason Wang
On 2019/9/17 下午6:58, Tiwei Bie wrote: On Tue, Sep 17, 2019 at 11:32:03AM +0800, Jason Wang wrote: On 2019/9/17 上午9:02, Tiwei Bie wrote: This RFC is to demonstrate below ideas, a) Build vhost-mdev on top of the same abstraction defined in the virtio-mdev series [1]; b) Introduce

[RESEND, PATCH v7 09/11] arm: dts: mt7623: add a property "num-pwms" for PWM

2019-09-17 Thread Sam Shih
From: Ryder Lee This adds a property "num-pwms" for PWM controller. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih --- arch/arm/boot/dts/mt7623.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index

Re: [PATCH] staging: tracing/kprobe: filter kprobe based perf event

2019-09-17 Thread Yonghong Song
Adding cc to b...@vger.kernel.org mailing list since this is really bpf related. On 9/17/19 10:24 PM, jinshan.xi...@gmail.com wrote: > From: Jinshan Xiong > > Invoking bpf program only if kprobe based perf_event has been added into > the percpu list. This is essential to make event tracing for

[RESEND, PATCH v7 05/11] pwm: mediatek: use pwm_mediatek as common prefix

2019-09-17 Thread Sam Shih
Use pwm_mediatek as common prefix to match the filename. No functional change intended. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih Acked-by: Uwe Kleine-König --- Changes since v6: Add an Acked-by tag Changes since v5: - Follow reviewers's comments The license stuff is a separate change

[RESEND, PATCH v7 0/11] Add mt7629 and fix mt7628 pwm

2019-09-17 Thread Sam Shih
A gentle ping on this whole patch series Changes since v7: 1. PATCH v7 10/11: Add a missed Reviewed-by tag Changes since v6: 1. Due to we can use fixed-clock in DT We removed has_clks and fixed-clock properties Changes since v5: - Follow reviewer's comments: 1. the license stuff is

[RESEND, PATCH v7 06/11] pwm: mediatek: update license and switch to SPDX tag

2019-09-17 Thread Sam Shih
Add SPDX identifiers to pwm-mediatek.c Update license to GNU General Public License v2.0 Signed-off-by: Ryder Lee Signed-off-by: Sam Shih Reviewed-by: Uwe Kleine-König --- Changes since v6: Add a Reviewed-by tag Changes since v5: - Follow reviewers's comments The license stuff is a separate

[RESEND, PATCH v7 03/11] pwm: mediatek: remove a property "has-clks"

2019-09-17 Thread Sam Shih
We can use fixed-clock to repair mt7628 pwm during configure from userspace. The SoC is legacy MIPS and has no complex clock tree. Due to we can get clock frequency for period calculation from DT fixed-clock, so we can remove has-clock property, and directly use devm_clk_get and clk_get_rate.

[RESEND, PATCH v7 02/11] pwm: mediatek: droping the check for of_device_get_match_data

2019-09-17 Thread Sam Shih
This patch drop the check for of_device_get_match_data. Due to the only way call driver probe is compatible match. The .data pointer which point to the SoC specify data is directly set by driver, and it should not be NULL in our case. We can safety remove the check for of_device_get_match_data.

[RESEND, PATCH v7 01/11] pwm: mediatek: add a property "num-pwms"

2019-09-17 Thread Sam Shih
From: Ryder Lee This adds a property "num-pwms" to avoid having an endless list of compatibles with no differences for the same driver. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih Reviewed-by: Uwe Kleine-König --- Changes since v6: Add a Reviewed-by tag Changes since v5: Check num-pwms

[RESEND, PATCH v7 04/11] pwm: mediatek: allocate the clks array dynamically

2019-09-17 Thread Sam Shih
Instead of using fixed size of arrays, allocate the memory for them based on the information we get from the DT. Also remove the check for num_pwms, due to dynamically allocate pwm should not cause array index out of bound. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih Reviewed-by: Uwe

Re: [linux-sunxi] [PATCH] clk: sunxi-ng: h6: Use sigma-delta modulation for audio PLL

2019-09-17 Thread Chen-Yu Tsai
On Wed, Sep 18, 2019 at 1:21 PM Jernej Škrabec wrote: > > Dne torek, 17. september 2019 ob 08:54:08 CEST je Chen-Yu Tsai napisal(a): > > On Sat, Sep 14, 2019 at 9:51 PM Jernej Skrabec > wrote: > > > Audio devices needs exact clock rates in order to correctly reproduce > > > the sound. Until now,

RE: [PATCH V3 0/4] clk: imx8m: fix glitch/mux

2019-09-17 Thread Peng Fan
Hi Stephen, > Subject: RE: [PATCH V3 0/4] clk: imx8m: fix glitch/mux > > Quoting Peng Fan (2019-09-16 23:20:15) > > Hi Stephen, Shawn, > > > > > Subject: [PATCH V3 0/4] clk: imx8m: fix glitch/mux > > > > Sorry to ping early. Is there a chance to land this patchset in 5.3 release? > > > > No, it

Re: [PATCH v7 5/6] powerpc/64: Make COMPAT user-selectable disabled on littleendian by default.

2019-09-17 Thread Michael Ellerman
Michal Suchánek writes: > On Tue, 03 Sep 2019 10:00:57 +1000 > Michael Ellerman wrote: >> Michal Suchánek writes: >> > On Mon, 02 Sep 2019 12:03:12 +1000 >> > Michael Ellerman wrote: >> > >> >> Michal Suchanek writes: >> >> > On bigendian ppc64 it is common to have 32bit legacy binaries

Re: [PATCH v3 bpf-next 00/14] samples: bpf: improve/fix cross-compilation

2019-09-17 Thread Andrii Nakryiko
On Mon, Sep 16, 2019 at 4:02 AM Ivan Khoronzhuk wrote: > Thanks for these changes, they look good overall. It would be great if someone else could test and validate that cross-compilation works not just in your environment and generated binaries successfully run on target machines, though...

Re: [PATCH V6 1/2] dt-bindings: mailbox: add binding doc for the ARM SMC/HVC mailbox

2019-09-17 Thread Jassi Brar
On Tue, Sep 17, 2019 at 12:31 PM Andre Przywara wrote: > > On Mon, 16 Sep 2019 09:44:37 + > Peng Fan wrote: > > Hi, > > > From: Peng Fan > > > > The ARM SMC/HVC mailbox binding describes a firmware interface to trigger > > actions in software layers running in the EL2 or EL3 exception

[PATCH] staging: tracing/kprobe: filter kprobe based perf event

2019-09-17 Thread jinshan . xiong
From: Jinshan Xiong Invoking bpf program only if kprobe based perf_event has been added into the percpu list. This is essential to make event tracing for cgroup to work properly. Signed-off-by: Jinshan Xiong --- kernel/trace/trace_kprobe.c | 13 - 1 file changed, 8 insertions(+),

Re: [PATCH v3 bpf-next 13/14] samples: bpf: makefile: add sysroot support

2019-09-17 Thread Andrii Nakryiko
On Mon, Sep 16, 2019 at 4:00 AM Ivan Khoronzhuk wrote: > > Basically it only enables that was added by previous couple fixes. > Sysroot contains correct libs installed and its headers ofc. Useful Please, let's not use unnecessary abbreviations/slang. "Of course" is not too long and is a proper

[PATCH v3 5/5] powerpc: Don't flush caches when adding memory

2019-09-17 Thread Alastair D'Silva
From: Alastair D'Silva This operation takes a significant amount of time when hotplugging large amounts of memory (~50 seconds with 890GB of persistent memory). This was orignally in commit fb5924fddf9e ("powerpc/mm: Flush cache on memory hot(un)plug") to support memtrace, but the flush on add

[PATCH v3 3/5] powerpc: Convert flush_icache_range & friends to C

2019-09-17 Thread Alastair D'Silva
From: Alastair D'Silva Similar to commit 22e9c88d486a ("powerpc/64: reuse PPC32 static inline flush_dcache_range()") this patch converts the following ASM symbols to C: flush_icache_range() __flush_dcache_icache() __flush_dcache_icache_phys() This was done as we discovered a

[PATCH v3 4/5] powerpc: Chunk calls to flush_dcache_range in arch_*_memory

2019-09-17 Thread Alastair D'Silva
From: Alastair D'Silva When presented with large amounts of memory being hotplugged (in my test case, ~890GB), the call to flush_dcache_range takes a while (~50 seconds), triggering RCU stalls. This patch breaks up the call into 1GB chunks, calling cond_resched() inbetween to allow the

[PATCH v3 2/5] powerpc: define helpers to get L1 icache sizes

2019-09-17 Thread Alastair D'Silva
From: Alastair D'Silva This patch adds helpers to retrieve icache sizes, and renames the existing helpers to make it clear that they are for dcache. Signed-off-by: Alastair D'Silva --- arch/powerpc/include/asm/cache.h | 29 +++

[PATCH v3 0/5] powerpc: convert cache asm to C

2019-09-17 Thread Alastair D'Silva
From: Alastair D'Silva This series addresses a few issues discovered in how we flush caches: 1. Flushes were truncated at 4GB, so larger flushes were incorrect. 2. Flushing the dcache in arch_add_memory was unnecessary This series also converts much of the cache assembler to C, with the aim of

[PATCH v3 1/5] powerpc: Allow flush_icache_range to work across ranges >4GB

2019-09-17 Thread Alastair D'Silva
From: Alastair D'Silva When calling flush_icache_range with a size >4GB, we were masking off the upper 32 bits, so we would incorrectly flush a range smaller than intended. __kernel_sync_dicache in the 64 bit VDSO has the same bug. This patch replaces the 32 bit shifts with 64 bit ones, so

Re: [PATCH v3 bpf-next 12/14] samples: bpf: makefile: provide C/CXX/LD flags to libbpf

2019-09-17 Thread Andrii Nakryiko
On Mon, Sep 16, 2019 at 3:58 AM Ivan Khoronzhuk wrote: > > In order to build libs using C/CXX/LD flags of target arch, > provide them to libbpf make. > > Signed-off-by: Ivan Khoronzhuk > --- > samples/bpf/Makefile | 14 +++--- > 1 file changed, 11 insertions(+), 3 deletions(-) > > diff

Re: [linux-sunxi] [PATCH] clk: sunxi-ng: h6: Use sigma-delta modulation for audio PLL

2019-09-17 Thread Jernej Škrabec
Dne torek, 17. september 2019 ob 08:54:08 CEST je Chen-Yu Tsai napisal(a): > On Sat, Sep 14, 2019 at 9:51 PM Jernej Skrabec wrote: > > Audio devices needs exact clock rates in order to correctly reproduce > > the sound. Until now, only integer factors were used to configure H6 > > audio PLL

Re: [PATCH v3 bpf-next 11/14] libbpf: makefile: add C/CXX/LDFLAGS to libbpf.so and test_libpf targets

2019-09-17 Thread Andrii Nakryiko
On Mon, Sep 16, 2019 at 4:00 AM Ivan Khoronzhuk wrote: > > In case of LDFLAGS and EXTRA_CC/CXX flags there is no way to pass them > correctly to build command, for instance when --sysroot is used or > external libraries are used, like -lelf, wich can be absent in > toolchain. This can be used for

Re: printk meeting at LPC

2019-09-17 Thread Sergey Senozhatsky
On (09/18/19 11:36), Sergey Senozhatsky wrote: [..] > For instance, tty/sysrq must be able to switch printk emergency on/off. > That already means that printk emergency knob should be visible to the > rest of the kernel. A long time ago, we had printk_emergency_begin_sync() > and

[PATCH] RDMA: release allocated skb

2019-09-17 Thread Navid Emamdoost
In create_cq, the allocated skb buffer needs to be released on error path. Signed-off-by: Navid Emamdoost --- drivers/infiniband/hw/cxgb4/cq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/infiniband/hw/cxgb4/cq.c b/drivers/infiniband/hw/cxgb4/cq.c index b1bb61c65f4f..841a395d9896

Re: [PATCH 0/2] pseries/hotplug: Change the default behaviour of cede_offline

2019-09-17 Thread Michael Ellerman
Nathan Lynch writes: > Gautham R Shenoy writes: >> On Thu, Sep 12, 2019 at 10:39:45AM -0500, Nathan Lynch wrote: >>> "Gautham R. Shenoy" writes: >>> > The patchset also defines a new sysfs attribute >>> > "/sys/device/system/cpu/cede_offline_enabled" on PSeries Linux guests >>> > to allow

Re: [PATCH 0/2] pseries/hotplug: Change the default behaviour of cede_offline

2019-09-17 Thread Michael Ellerman
"Gautham R. Shenoy" writes: > From: "Gautham R. Shenoy" > > Currently on Pseries Linux Guests, the offlined CPU can be put to one > of the following two states: >- Long term processor cede (also called extended cede) >- Returned to the Hypervisor via RTAS "stop-self" call. > > This is

Re: [PATCH V2 2/2] mm/pgtable/debug: Add test validating architecture page table helpers

2019-09-17 Thread Anshuman Khandual
On 09/13/2019 03:31 PM, Christophe Leroy wrote: > > > Le 13/09/2019 à 11:02, Anshuman Khandual a écrit : >> +#if !defined(__PAGETABLE_PMD_FOLDED) && !defined(__ARCH_HAS_4LEVEL_HACK) >>> >>> #ifdefs have to be avoided as much as possible, see below >> >> Yeah but it has been bit difficult

Re: [PATCH] clk: sprd: add missing kfree

2019-09-17 Thread Stephen Boyd
Quoting Chunyan Zhang (2019-09-05 03:30:09) > From: Chunyan Zhang > > The number of config registers for different pll clocks probably are not > same, so we have to use malloc, and should free the memory before return. > > Fixes: 3e37b005580b ("clk: sprd: add adjustable pll support") >

Re: [PATCH] clk: at91: allow 24 Mhz clock as input for PLL

2019-09-17 Thread Stephen Boyd
Quoting eugen.hris...@microchip.com (2019-09-10 23:39:20) > From: Eugen Hristev > > The PLL input range needs to be able to allow 24 Mhz crystal as input > Update the range accordingly in plla characteristics struct > > Signed-off-by: Eugen Hristev > --- Applied to clk-next

Re: [PATCH 2/2] clk: socfpga: agilex: add clock driver for the Agilex platform

2019-09-17 Thread Stephen Boyd
Quoting Dinh Nguyen (2019-09-17 18:34:59) > diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile > index 0cad76021297..ef2c96c0f1e0 100644 > --- a/drivers/clk/Makefile > +++ b/drivers/clk/Makefile > @@ -18,6 +18,7 @@ endif > > # hardware specific clock types > # please keep this section

Re: [PATCH 1/2] dt-bindings: documentation: add clock bindings information for Agilex

2019-09-17 Thread Stephen Boyd
Quoting Dinh Nguyen (2019-09-17 18:34:58) > From: Dinh Nguyen > > Document the Agilex clock bindings, and add the clock header file. The > clock header is an enumeration of all the different clocks on the Agilex > platform. > > Signed-off-by: Dinh Nguyen This needs a signed-off-by from your

Re: [PATCH v5 7/8] clk: Add common clock driver for BM1880 SoC

2019-09-17 Thread Stephen Boyd
Quoting Manivannan Sadhasivam (2019-09-16 09:14:46) > diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig > index 801fa1cd0321..e70c64e43ff9 100644 > --- a/drivers/clk/Kconfig > +++ b/drivers/clk/Kconfig > @@ -139,6 +139,13 @@ config COMMON_CLK_SI570 > This driver supports Silicon

[PATCH] drivers/net: release skb on failure

2019-09-17 Thread Navid Emamdoost
In ql_run_loopback_test, ql_lb_send does not release skb when fails. So it must be released before returning. Signed-off-by: Navid Emamdoost --- drivers/net/ethernet/qlogic/qlge/qlge_ethtool.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH] libnvdimm/nfit_test: Fix acpi_handle redefinition

2019-09-17 Thread Nathan Chancellor
After commit 62974fc389b3 ("libnvdimm: Enable unit test infrastructure compile checks"), clang warns: In file included from ../drivers/nvdimm/../../tools/testing/nvdimm/test/iomap.c:15: ../drivers/nvdimm/../../tools/testing/nvdimm/test/nfit_test.h:206:15: warning: redefinition of typedef

[PATCH] mm: Support memblock alloc on the exact node for sparse_buffer_init()

2019-09-17 Thread Yunfeng Ye
Currently, when memblock_find_in_range_node() fail on the exact node, it will use %NUMA_NO_NODE to find memblock from other nodes. At present, the work is good, but when the large memory is insufficient and the small memory is enough, we want to allocate the small memory of this node first, and do

Re: [PATCH v3 bpf-next 10/14] samples: bpf: makefile: use target CC environment for HDR_PROBE

2019-09-17 Thread Andrii Nakryiko
On Mon, Sep 16, 2019 at 3:59 AM Ivan Khoronzhuk wrote: > > No need in hacking HOSTCC to be cross-compiler any more, so drop > this trick and use target CC for HDR_PROBE. > > Signed-off-by: Ivan Khoronzhuk > --- Acked-by: Andrii Nakryiko [...]

[PATCH v2 1/2] powerpc/irq: bring back ksp_limit management in C functions.

2019-09-17 Thread Christophe Leroy
Commit cbc9565ee826 ("powerpc: Remove ksp_limit on ppc64") moved PPC32 ksp_limit handling in assembly functions call_do_softirq() and call_do_irq() as they are different for PPC32 and PPC64. In preparation of replacing these functions by inline assembly, partialy revert that commit to bring back

[PATCH v2 2/2] powerpc/irq: inline call_do_irq() and call_do_softirq()

2019-09-17 Thread Christophe Leroy
call_do_irq() and call_do_softirq() are quite similar on PPC32 and PPC64 and are simple enough to be worth inlining. Inlining them avoids an mflr/mtlr pair plus a save/reload on stack. This is inspired from S390 arch. Several other arches do more or less the same. The way sparc arch does seems

Re: [PATCH 3/6] Timer: expose monotonic clock and counter value

2019-09-17 Thread Richard Cochran
On Tue, Sep 17, 2019 at 07:24:27AM -0400, Jianyong Wu wrote: > A number of PTP drivers (such as ptp-kvm) are assuming what the > current clock source is, which could lead to interesting effects on > systems where the clocksource can change depending on external events. > > For this purpose, add a

Re: [PATCH] [RFC] vmscan.c: add a sysctl entry for controlling memory reclaim IO congestion_wait length

2019-09-17 Thread Lin Feng
On 9/17/19 20:06, Matthew Wilcox wrote: On Tue, Sep 17, 2019 at 07:58:24PM +0800, Lin Feng wrote: In direct and background(kswapd) pages reclaim paths both may fall into calling msleep(100) or congestion_wait(HZ/10) or wait_iff_congested(HZ/10) while under IO pressure, and the sleep length

RE: [PATCH v3 09/11] PCI: layerscape: Add EP mode support for ls1088a and ls2088a

2019-09-17 Thread Xiaowei Bao
> -Original Message- > From: Andrew Murray > Sent: 2019年9月16日 22:38 > To: Xiaowei Bao ; robh...@kernel.org > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; Leo > Li ; kis...@ti.com; lorenzo.pieral...@arm.com; M.h. > Lian ; Mingkai Hu ; Roy > Zang ;

[PATCH] arm:unwind: fix incorrect backtrace with unwind_table

2019-09-17 Thread chenzefeng
For arm, if the CONFIG_ARM_UNWIND is open, when insmod a module, the init section add to the unwind_table, the code path as follow: load_module --->post_relocation --->module_finalize --->maps[ARM_SEC_INIT].txt_sec = s

[PATCH 2/2] dt-bindings: iio: light: add veml6030 ALS bindings

2019-09-17 Thread Rishi Gupta
This commit adds device tree bindings for veml6030 ambient light sensor. Signed-off-by: Rishi Gupta --- .../devicetree/bindings/iio/light/veml6030.yaml| 62 ++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/light/veml6030.yaml

Add driver for veml6030 ambient light sensor

2019-09-17 Thread Rishi Gupta
The veml6030 is an ambient light sensor from vishay and is a different hardware from an existing hardware for which driver currently exist, therefore this driver submission. * All features; ALS, white channel & power management is supported. * All configurable parameters are supported through

[PATCH 1/2] iio: light: add driver for veml6030 ambient light sensor

2019-09-17 Thread Rishi Gupta
veml6030 is an ambient light sensor from Vishay semiconductors. It has 16-bit resolution, supports both ambient light measurement and white channel which is more responsive to wider wavelength spectrum. It has flexible power saving, integration time and gain options. Communication with host is

Add driver for veml6030 ambient light sensor

2019-09-17 Thread Rishi Gupta
The veml6030 is an ambient light sensor from vishay and is a different hardware from an existing hardware for which driver currently exist, therefore this driver submission. * All features; ALS, white channel and power management is supported. * All configurable parameters are supported

Re: [PATCH 2/3] ASoC: fsl_asrc: update supported sample format

2019-09-17 Thread S.j. Wang
Hi > > On Fri, Sep 13, 2019 at 05:48:40AM +, S.j. Wang wrote: > > Hi > > > > > > > > On Tue, Sep 10, 2019 at 02:07:25AM +, S.j. Wang wrote: > > > > > On Mon, Sep 09, 2019 at 06:33:20PM -0400, Shengjiu Wang wrote: > > > > > > The ASRC support 24bit/16bit/8bit input width, so S20_3LE > > >

Re: [GIT PULL] Device properties framework updates for v5.4-rc1

2019-09-17 Thread pr-tracker-bot
The pull request you sent on Tue, 17 Sep 2019 12:27:16 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git > devprop-5.4-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/35f7a95266153b1cf0caca3aa9661cb721864527 Thank you! -- Deet-doot-dot,

Re: [GIT PULL] Power management updates for v5.4-rc1

2019-09-17 Thread pr-tracker-bot
The pull request you sent on Tue, 17 Sep 2019 12:23:15 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git pm-5.4-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/77dcfe2b9edc98286cf18e03c243c9b999f955d9 Thank you! -- Deet-doot-dot, I am a

Re: [GIT PULL] ACPI updates for v5.4-rc1

2019-09-17 Thread pr-tracker-bot
The pull request you sent on Tue, 17 Sep 2019 12:25:05 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git acpi-5.4-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/d2aaa49e281959828370667edbc1cdcc7fc4026a Thank you! -- Deet-doot-dot, I am

RE: [PATCH 3/6] Timer: expose monotonic clock and counter value

2019-09-17 Thread Jianyong Wu (Arm Technology China)
Hi Marc, > -Original Message- > From: Marc Zyngier > Sent: Wednesday, September 18, 2019 1:10 AM > To: Jianyong Wu (Arm Technology China) ; > net...@vger.kernel.org; pbonz...@redhat.com; > sean.j.christopher...@intel.com; richardcoch...@gmail.com; Mark Rutland > ; Will Deacon ; Suzuki >

Re: [PATCH net-next] ixgbe: Use memzero_explicit directly in crypto cases

2019-09-17 Thread zhong jiang
On 2019/9/18 10:36, zhong jiang wrote: > In general, Use kzfree() to replace memset() + kfree() is feasible and > resonable. But It's btter to use memzero_explicit() to replace memset() > in crypto cases. s/btter/better/, will repost. sorry for that. Thanks, zhong jiang > Signed-off-by: zhong

Re: [RFC PATCH v2] mm: initialize struct pages reserved by ZONE_DEVICE driver.

2019-09-17 Thread Toshiki Fukasawa
On 2019/09/18 2:04, Waiman Long wrote: > On 9/17/19 12:21 PM, Qian Cai wrote: >> On Tue, 2019-09-17 at 11:49 -0400, Waiman Long wrote: >>> On 9/17/19 3:13 AM, David Hildenbrand wrote: On 17.09.19 04:34, Toshiki Fukasawa wrote: > On 2019/09/09 16:46, David Hildenbrand wrote: >> Let's

Re: [RFC PATCH v2] mm: initialize struct pages reserved by ZONE_DEVICE driver.

2019-09-17 Thread Toshiki Fukasawa
On 2019/09/17 19:20, David Hildenbrand wrote: > On 17.09.19 11:32, Toshiki Fukasawa wrote: >> On 2019/09/17 16:13, David Hildenbrand wrote: >>> On 17.09.19 04:34, Toshiki Fukasawa wrote: On 2019/09/09 16:46, David Hildenbrand wrote: > Let's take a step back here to understand the issues I

Re: [PATCH v5 1/5] pinctrl: mediatek: Check gpio pin number and use binary search in mtk_hw_pin_field_lookup()

2019-09-17 Thread Light Hsieh
Dear reviewer, Due to my operation error, one file (pinctrl-paris.h) is missed in patch seriers 5/5 of v4. v5 is sent to correct this error. On Wed, 2019-09-18 at 10:39 +0800, Light Hsieh wrote: > 1. Check if gpio pin number is in valid range to prevent from get invalid >pointer 'desc' in

[RESENT PATCH net-next] ixgbe: Use memzero_explicit directly in crypto cases

2019-09-17 Thread zhong jiang
In general, Use kzfree() to replace memset() + kfree() is feasible and resonable. But It's better to use memzero_explicit() to replace memset() in crypto cases. Signed-off-by: zhong jiang --- drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c | 9 ++--- 1 file changed, 6 insertions(+), 3

[PATCH net-next] ixgbe: Use memzero_explicit directly in crypto cases

2019-09-17 Thread zhong jiang
In general, Use kzfree() to replace memset() + kfree() is feasible and resonable. But It's btter to use memzero_explicit() to replace memset() in crypto cases. Signed-off-by: zhong jiang --- drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c | 9 ++--- 1 file changed, 6 insertions(+), 3

[PATCH v5 5/5] pinctrl: mediatek: Add support for pin configuration dump via debugfs.

2019-09-17 Thread Light Hsieh
Add support for pin configuration dump via catting /sys/kernel/debug/pinctrl/$platform_dependent_path/pinconf-pins. pinctrl framework had already support such dump. This patch implement the operation function pointer to fullfill this dump. --- drivers/pinctrl/mediatek/pinctrl-paris.c | 88

[PATCH v5 1/5] pinctrl: mediatek: Check gpio pin number and use binary search in mtk_hw_pin_field_lookup()

2019-09-17 Thread Light Hsieh
1. Check if gpio pin number is in valid range to prevent from get invalid pointer 'desc' in the following code: desc = (const struct mtk_pin_desc *)>soc->pins[gpio]; 2. Use binary search in mtk_hw_pin_field_lookup() Modify mtk_hw_pin_field_lookup() to use binary search for

[PATCH v5 3/5] pinctrl: mediatek: Refine mtk_pinconf_get() and mtk_pinconf_set()

2019-09-17 Thread Light Hsieh
1.Refine mtk_pinconf_get(): 1.1 Use only one occurrence of return at end of this function. 1.2 Correct cases for PIN_CONFIG_SLEW_RATE, PIN_CONFIG_INPUT_SCHMITT_ENABLE, and PIN_CONFIG_OUTPUT_ENABLE - Use variable ret to receive value in mtk_hw_get_value() (instead of variable val) since

[PATCH v5 4/5] pinctrl: mediatek: Backward compatible to previous Mediatek's bias-pull usage

2019-09-17 Thread Light Hsieh
Refine mtk_pinconf_set()/mtk_pinconf_get() for backward compatibility to previous Mediatek's bias-pull usage. In PINCTRL_MTK that use pinctrl-mtk-common.c, bias-pull setting for pins with 2 pull resistors can be specified as value for bias-pull-up and bias-pull-down. For example: bias-pull-up

[PATCH v5 2/5] pinctrl: mediatek: Supporting driving setting without mapping current to register value

2019-09-17 Thread Light Hsieh
Mediatek's smarphone project actual usage does need to know current value (in mA) in procedure of finding the best driving setting. The steps in the procedure is like as follow: 1. set driving setting field in setting register as 0, measure waveform, perform test, and etc. 2. set driving

Re: printk meeting at LPC

2019-09-17 Thread Sergey Senozhatsky
On (09/17/19 22:08), Steven Rostedt wrote: > > On (09/13/19 15:26), John Ogness wrote: > > > 2. A kernel thread will be created for each registered console, each > > > responsible for being the sole printers to their respective > > > consoles. With this, console printing is _fully_ decoupled from

RE: [PATCH] staging: exfat: add exfat filesystem code to

2019-09-17 Thread Namjae Jeon
I've summarized some of the big differences between sdfat and exfat in linux-next. 1. sdfat has been refactored to improve compatibility, readability and to be linux friendly.(included support mass storages larger than 2TB.) 2. sdfat has been optimized for the performance of SD-cards. -

Re: [PATCH v3 1/2] dt-bindings: phy: intel-sdxc-phy: Add YAML schema for LGM SDXC PHY

2019-09-17 Thread Ramuthevar, Vadivel MuruganX
Hi Rob,     Thank you for the review comments. On 18/9/2019 4:24 AM, Rob Herring wrote: On Wed, Sep 04, 2019 at 02:27:18PM +0800, Ramuthevar,Vadivel MuruganX wrote: From: Ramuthevar Vadivel Murugan Add a YAML schema to use the host controller driver with the SDXC PHY on Intel's Lightning

Re: [PATCH v5 1/2] dt-bindings: phy: intel-emmc-phy: Add YAML schema for LGM eMMC PHY

2019-09-17 Thread Ramuthevar, Vadivel MuruganX
Hi Rob, Thank you for the review comments. On 17/9/2019 10:23 PM, Rob Herring wrote: On Wed, Sep 04, 2019 at 01:53:43PM +0800, Ramuthevar,Vadivel MuruganX wrote: From: Ramuthevar Vadivel Murugan Add a YAML schema to use the host controller driver with the eMMC PHY on Intel's Lightning

[PATCH 5/5] leds: lm3692x: Use flags from LM3692X_BRT_CTRL

2019-09-17 Thread Guido Günther
Use LM3692X_RAMP_EN instead of LM3692X_PWM_HYSTER_4LSB since the later is a flag for the PWM register. The actual register value remains unchanged. Signed-off-by: Guido Günther --- drivers/leds/leds-lm3692x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 2/5] leds: lm3692x: Don't overwrite return value in error path

2019-09-17 Thread Guido Günther
The driver currently reports successful initialization on every failure as long as it's able to power off the regulator. Don't check the return value of regulator_disable to avoid that. Signed-off-by: Guido Günther --- drivers/leds/leds-lm3692x.c | 9 +++-- 1 file changed, 3 insertions(+),

[PATCH 4/5] leds: lm3692x: Use flags from LM3692X_BOOST_CTRL

2019-09-17 Thread Guido Günther
The current setup of LM3692X_BOOST_CTRL uses flags from LM3692X_BRT_CTRL. Use flags from LM3692X_BOOST_CTRL but leave the resulting register value unchanged. Signed-off-by: Guido Günther --- drivers/leds/leds-lm3692x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 0/5] leds: lm3692x: Probing and flag fixes

2019-09-17 Thread Guido Günther
The driver currently returns success on init although probing fails and register setup uses flag values from other registers which is confusing when reading the driver. This series cleans this up. Guido Günther (5): leds: lm3692x: Print error value on dev_err leds: lm3692x: Don't overwrite

[PATCH 3/5] leds: lm3692x: Handle failure to probe the regulator

2019-09-17 Thread Guido Günther
Instead use devm_regulator_get_optional since the regulator is optional and check for errors. Signed-off-by: Guido Günther --- drivers/leds/leds-lm3692x.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/leds/leds-lm3692x.c b/drivers/leds/leds-lm3692x.c

[PATCH 1/5] leds: lm3692x: Print error value on dev_err

2019-09-17 Thread Guido Günther
This gives a way better idea what is going on. Signed-off-by: Guido Günther --- drivers/leds/leds-lm3692x.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers/leds/leds-lm3692x.c b/drivers/leds/leds-lm3692x.c index 3d381f2f73d0..487228c2bed2 100644

Re: [GIT PULL] dmaengine updates for v5.4-rc1

2019-09-17 Thread pr-tracker-bot
The pull request you sent on Tue, 17 Sep 2019 15:02:29 +0530: > git://git.infradead.org/users/vkoul/slave-dma.git tags/dmaengine-5.4-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/04cbfba6208592999d7bfe6609ec01dc3fde73f5 Thank you! -- Deet-doot-dot, I am a bot.

Re: [GIT PULL] LED updates for 5.4-rc1

2019-09-17 Thread pr-tracker-bot
The pull request you sent on Tue, 17 Sep 2019 00:21:33 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds.git > tags/leds-for-5.4-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/4feaab05dc1eda3dbb57b097377766002e7a7cb9 Thank you! --

Re: [GIT PULL for v5.4-rc1] media updates

2019-09-17 Thread pr-tracker-bot
The pull request you sent on Mon, 16 Sep 2019 09:25:15 -0300: > git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media media/v5.4-1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/e7345f92c27af003f219ad026d0e629a50b41e5c Thank you! -- Deet-doot-dot, I am

Re: [Lkcamp] [PATCH v2] media: vimc: fla: Add virtual flash subdevice

2019-09-17 Thread Guilherme Alcarde Gallo
Hi Lucas! How are you? I just have one comment about the strobe thread. Please check it below. On Sun, Sep 15, 2019 at 3:44 PM Lucas A. M. Magalhães wrote: > > From: Lucas A. M. Magalhaes > > Add a virtual subdevice to simulate the flash control API. > Those are the supported controls: >

Re: printk meeting at LPC

2019-09-17 Thread Steven Rostedt
On Wed, 18 Sep 2019 10:25:46 +0900 Sergey Senozhatsky wrote: > On (09/13/19 15:26), John Ogness wrote: > > 2. A kernel thread will be created for each registered console, each > > responsible for being the sole printers to their respective > > consoles. With this, console printing is _fully_

[PATCH] reset: build simple reset controller driver for Agilex

2019-09-17 Thread Dinh Nguyen
The Intel SoCFPGA Agilex platform shares the same reset controller that is on the Stratix10. Signed-off-by: Dinh Nguyen --- drivers/reset/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig index 21efb7d39d62..280e69fbf86d

Re: [GIT PULL] LED updates for 5.4-rc1

2019-09-17 Thread Linus Torvalds
On Tue, Sep 17, 2019 at 6:14 PM Linus Torvalds wrote: > > Famous last words. I now get a new warning: > > drivers/i2c/i2c-core-acpi.c:347:12: warning: > ‘i2c_acpi_find_match_adapter’ defined but not used [-Wunused-function] Commit 00500147cbd3 ("drivers: Introduce device lookup variants by

[PATCH 2/2] clk: socfpga: agilex: add clock driver for the Agilex platform

2019-09-17 Thread Dinh Nguyen
For the most part the Agilex clock structure is very similar to Stratix10, so we re-use most of the Stratix10 clock driver. Signed-off-by: Dinh Nguyen --- drivers/clk/Makefile| 1 + drivers/clk/socfpga/Makefile| 2 + drivers/clk/socfpga/clk-agilex.c| 332

[PATCH 1/2] dt-bindings: documentation: add clock bindings information for Agilex

2019-09-17 Thread Dinh Nguyen
From: Dinh Nguyen Document the Agilex clock bindings, and add the clock header file. The clock header is an enumeration of all the different clocks on the Agilex platform. Signed-off-by: Dinh Nguyen --- .../devicetree/bindings/clock/intc_agilex.txt | 20 ++

Re: [RESENT PATCH v2] ixgbe: Use memzero_explicit directly in crypto cases

2019-09-17 Thread zhong jiang
On 2019/9/18 2:11, Jakub Kicinski wrote: > On Tue, 17 Sep 2019 22:44:22 +0800, zhong jiang wrote: >> It's better to use memzero_explicit() to replace memset() in crypto cases. >> >> Signed-off-by: zhong jiang > Thank you for the follow up! Your previous patch to use kzfree() > has been applied

Re: [RFC PATCH v3 00/16] Core scheduling v3

2019-09-17 Thread Aubrey Li
On Sun, Sep 15, 2019 at 10:14 PM Aaron Lu wrote: > > On Fri, Sep 13, 2019 at 07:12:52AM +0800, Aubrey Li wrote: > > On Thu, Sep 12, 2019 at 8:04 PM Aaron Lu wrote: > > > > > > On Wed, Sep 11, 2019 at 09:19:02AM -0700, Tim Chen wrote: > > > > On 9/11/19 7:02 AM, Aaron Lu wrote: > > > > I think

Re: Regression in fd5f7cde1b85 ("printk: Never set console_may_schedule in console_trylock()")

2019-09-17 Thread Sergey Senozhatsky
On (09/17/19 16:10), Uwe Kleine-König wrote: > Hello, > > Today it saw sysrq on an UART driven by drivers/tty/serial/imx.c report > a lockdep issue. Bisecting pointed to > > fd5f7cde1b85 ("printk: Never set console_may_schedule in > console_trylock()") Hmmm... I don't see how this patch

Re: printk meeting at LPC

2019-09-17 Thread Sergey Senozhatsky
On (09/13/19 15:26), John Ogness wrote: > 2. A kernel thread will be created for each registered console, each > responsible for being the sole printers to their respective > consoles. With this, console printing is _fully_ decoupled from printk() > callers. sysrq over serial? What we currently

Re: [PATCH] ethernet/intel: release the local packet buffer

2019-09-17 Thread kbuild test robot
Hi Navid, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [cannot apply to v5.3 next-20190917] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits

  1   2   3   4   5   6   7   8   9   10   >