Re: [PATCH v4 6/10] dt-bindings: pwm: update bindings for MT7628 SoC

2019-08-19 Thread Uwe Kleine-König
On Tue, Aug 20, 2019 at 09:40:21AM +0800, Sam Shih wrote: > From: sam shih > > This updates bindings for MT7628 pwm controller. > > Signed-off-by: Sam Shih Apart from different capitalisation in Author name and S-o-B, this patch looks fine. Best regards Uwe -- Pengutronix e.K.

Re: [PATCH v4 5/10] dt-bindings: pwm: add a property "num-pwms"

2019-08-19 Thread Uwe Kleine-König
On Tue, Aug 20, 2019 at 09:40:20AM +0800, Sam Shih wrote: > 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:

RE: [PATCH] pwm: mxs: use devm_platform_ioremap_resource() to simplify code

2019-08-19 Thread Anson Huang
Gentle ping... > > From: anson.hu...@nxp.com > > Sent: Thursday, July 18, 2019 9:32 AM > > > > Use the new helper devm_platform_ioremap_resource() which wraps the > > platform_get_resource() and devm_ioremap_resource() together, to > > simplify the code. > > > > Signed-off-by: Anson Huang > >

Re: [PATCH v4 4/10] pwm: mediatek: use pwm_mediatek as common prefix

2019-08-19 Thread Uwe Kleine-König
On Tue, Aug 20, 2019 at 09:40:19AM +0800, Sam Shih wrote: > From: 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 > --- > drivers/pwm/pwm-mediatek.c | 117

Re: [PATCH v4 3/10] pwm: mediatek: allocate the clks array dynamically and fix mt7628 pwm

2019-08-19 Thread Uwe Kleine-König
Hello, On Tue, Aug 20, 2019 at 09:40:18AM +0800, Sam Shih wrote: > From: Ryder Lee > > Instead of using fixed size of arrays, allocate the memory for them > based on the information we get from the chips. > > Also fix mt7628 pwm during configure from userspace. The SoC > is legacy MIPS and has

Re: [PATCH 20/21] ASoC: sun4i-i2s: Add support for TDM slots

2019-08-19 Thread Sergey Suloev
Hi, Maxime, On 8/19/19 10:25 PM, Maxime Ripard wrote: From: Maxime Ripard The i2s controller supports TDM, for up to 8 slots. Let's support the TDM API. Signed-off-by: Maxime Ripard --- sound/soc/sunxi/sun4i-i2s.c | 40 -- 1 file changed, 34

Re: [RFC 02/11] dt-bindings: power: amlogic, meson-gx-pwrc: Add SM1 bindings

2019-08-19 Thread Martin Blumenstingl
Hi Kevin, On Tue, Aug 20, 2019 at 2:06 AM Kevin Hilman wrote: [...] > >> +ao_sysctrl: sys-ctrl@0 { > >> + compatible = "amlogic,meson-gx-ao-sysctrl", "syscon", "simple-mfd"; > >> + reg = <0x0 0x0 0x0 0x100>; > >> + > >> + pwrc: power-controller { > >> +

Re: [PATCH v4 2/10] pwm: mediatek: droping the check for of_device_get_match_data

2019-08-19 Thread Uwe Kleine-König
Hello, On Tue, Aug 20, 2019 at 09:40:17AM +0800, Sam Shih wrote: > From: sam shih Your Signed-off-by and the mail's From uses capital letters. Can you please make them all match? > This patch drop the check for of_device_get_match_data. > Due to the only way call driver probe is compatible

Re: [PATCH v4] kasan: add memory corruption identification for software tag-based mode

2019-08-19 Thread Walter Wu
On Tue, 2019-08-06 at 13:43 +0800, Walter Wu wrote: > This patch adds memory corruption identification at bug report for > software tag-based mode, the report show whether it is "use-after-free" > or "out-of-bound" error instead of "invalid-access" error. This will make > it easier for programmers

Re: [RT PATCH v2] net/xfrm/xfrm_ipcomp: Protect scratch buffer with local_lock

2019-08-19 Thread kbuild test robot
Hi Juri, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [cannot apply to v5.3-rc5 next-20190819] [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/Juri

Re: [PATCH 1/1] netfilter: nf_tables: fib: Drop IPV6 packages if IPv6 is disabled on boot

2019-08-19 Thread Florian Westphal
Leonardo Bras wrote: > If IPv6 is disabled on boot (ipv6.disable=1), but nft_fib_inet ends up > dealing with a IPv6 package, it causes a kernel panic in > fib6_node_lookup_1(), crashing in bad_page_fault. > > The panic is caused by trying to deference a very low address (0x38 > in ppc64le), due

[PATCH] ecryptfs: fix a memory leak bug

2019-08-19 Thread Wenwen Wang
In ecryptfs_init_messaging(), if the allocation for 'ecryptfs_msg_ctx_arr' fails, the previously allocated 'ecryptfs_daemon_hash' is not deallocated, leading to a memory leak bug. To fix this issue, free 'ecryptfs_daemon_hash' before returning the error. Signed-off-by: Wenwen Wang ---

Re: [PATCH] nfc: st-nci: Fix an incorrect skb_buff size in 'st_nci_i2c_read()'

2019-08-19 Thread Christophe JAILLET
Le 12/08/2019 à 05:57, David Miller a écrit : From: Christophe JAILLET Date: Tue, 6 Aug 2019 16:16:40 +0200 In 'st_nci_i2c_read()', we allocate a sk_buff with a size of ST_NCI_I2C_MIN_SIZE + len. However, later on, we first 'skb_reserve()' ST_NCI_I2C_MIN_SIZE bytes, then we 'skb_put()'

Re: [PATCH v4 1/10] pwm: mediatek: add a property "num-pwms"

2019-08-19 Thread Uwe Kleine-König
Hello, On Tue, Aug 20, 2019 at 09:40:16AM +0800, Sam Shih wrote: > 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 > --- > Used: >

[PATCH] Add support for Macronix NAND randomizer

2019-08-19 Thread Mason Yang
Macronix NANDs support randomizer operation for user data scrambled, which can be enabled with a SET_FEATURE. User data written to the NAND device without randomizer is still readable after randomizer function enabled. The penalty of randomizer are NOP = 1 instead of NOP = 4 and more time period

[PATCH] ecryptfs: fix a memory leak bug

2019-08-19 Thread Wenwen Wang
In parse_tag_1_packet(), if tag 1 packet contains a key larger than ECRYPTFS_MAX_ENCRYPTED_KEY_BYTES, no cleanup is executed, leading to a memory leak on the allocated 'auth_tok_list_item'. To fix this issue, go to the label 'out_free' to perform the cleanup work. Signed-off-by: Wenwen Wang ---

[PATCH] iio: cros_ec: set calibscale for 3d MEMS to unit vector

2019-08-19 Thread Gwendal Grignou
By default, set the calibscale vector to unit vector. It prevents sending 0 as calibscale when not initialized. Signed-off-by: Gwendal Grignou --- drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

Re: [PATCH v1 05/10] powerpc/mm: Do early ioremaps from top to bottom on PPC64 too.

2019-08-19 Thread Christophe Leroy
Le 20/08/2019 à 02:20, Michael Ellerman a écrit : Nicholas Piggin writes: Christophe Leroy's on August 14, 2019 6:11 am: Until vmalloc system is up and running, ioremap basically allocates addresses at the border of the IOREMAP area. On PPC32, addresses are allocated down from the top of

[PATCH v3] rtw88: pci: Move a mass of jobs in hw IRQ to soft IRQ

2019-08-19 Thread Jian-Hong Pan
There is a mass of jobs between spin lock and unlock in the hardware IRQ which will occupy much time originally. To make system work more efficiently, this patch moves the jobs to the soft IRQ (bottom half) to reduce the time in hardware IRQ. Signed-off-by: Jian-Hong Pan --- v2: Change the

Re: [PATCH v2 4/4] clk: qcom: clk-rpmh: Add support for SM8150

2019-08-19 Thread Bjorn Andersson
On Mon 19 Aug 00:39 PDT 2019, Vinod Koul wrote: > Add support for rpmh clocks found in SM8150 > > Signed-off-by: Vinod Koul > --- > drivers/clk/qcom/clk-rpmh.c | 27 +++ > 1 file changed, 27 insertions(+) > > diff --git a/drivers/clk/qcom/clk-rpmh.c

Re: [PATCH v2 3/4] dt-bindings: clock: Document SM8150 rpmh-clock compatible

2019-08-19 Thread Bjorn Andersson
On Mon 19 Aug 00:39 PDT 2019, Vinod Koul wrote: > Document the SM8150 rpmh-clock compatible for rpmh clock controller > found on SM8150 platforms. > > Signed-off-by: Vinod Koul Reviewed-by: Bjorn Andersson > --- > Documentation/devicetree/bindings/clock/qcom,rpmh-clk.txt | 4 +++- > 1 file

Re: [PATCH v2 2/4] clk: qcom: clk-rpmh: Convert to parent data scheme

2019-08-19 Thread Bjorn Andersson
On Mon 19 Aug 00:39 PDT 2019, Vinod Koul wrote: > Convert the rpmh clock driver to use the new parent data scheme by > specifying the parent data for board clock. > > Signed-off-by: Vinod Koul > --- > drivers/clk/qcom/clk-rpmh.c | 10 -- > 1 file changed, 8 insertions(+), 2

Re: [PATCH v2 1/4] dt-bindings: clock: Document the parent clocks

2019-08-19 Thread Bjorn Andersson
On Mon 19 Aug 00:39 PDT 2019, Vinod Koul wrote: > With clock parent data scheme we must specify the parent clocks for the > rpmhcc nodes. So describe the parent clock for rpmhcc in the bindings. > Reviewed-by: Bjorn Andersson > Signed-off-by: Vinod Koul > --- >

[PATCH] ubifs: fix a memory leak bug

2019-08-19 Thread Wenwen Wang
In ubifs_mount(), 'c' is allocated through kzalloc() in alloc_ubifs_info(). However, it is not deallocated in the following execution if ubifs_fill_super() fails, leading to a memory leak bug. To fix this issue, free 'c' before going to the 'out_deact' label. Signed-off-by: Wenwen Wang ---

[PATCH] PCI: Add PCIE ACS quirk for IPROC PAXB

2019-08-19 Thread Srinath Mannam
From: Abhinav Ratna IPROC PAXB RC doesn't support ACS capabilities and control registers. Add quirk to have separate IOMMU groups for all EPs and functions connected to root port, by masking RR/CR/SV/UF bits. Signed-off-by: Abhinav Ratna Signed-off-by: Srinath Mannam --- drivers/pci/quirks.c

Re: [PATCH 1/4] resource: add a not device managed request_free_mem_region variant

2019-08-19 Thread Dan Williams
On Mon, Aug 19, 2019 at 7:26 PM Christoph Hellwig wrote: > > On Mon, Aug 19, 2019 at 06:28:30PM -0700, Dan Williams wrote: > > > > Previously we would loudly crash if someone passed NULL to > > devm_request_free_mem_region(), but now it will silently work and the > > result will leak. Perhaps

Re: [RFC PATCH] powerpc: Convert ____flush_dcache_icache_phys() to C

2019-08-19 Thread Alastair D'Silva
On Fri, 2019-08-16 at 15:52 +, Christophe Leroy wrote: > Resulting code (8xx with 16 bytes per cacheline and 16k pages) > > 016c <__flush_dcache_icache_phys>: > 16c: 54 63 00 22 rlwinm r3,r3,0,0,17 > 170: 7d 20 00 a6 mfmsr r9 > 174: 39 40 04 00 li r10,1024 > 178:

Re: [PATCH v7 1/7] driver core: Add support for linking devices during device addition

2019-08-19 Thread Frank Rowand
On 8/19/19 5:00 PM, Saravana Kannan wrote: > On Sun, Aug 18, 2019 at 8:38 PM Frank Rowand wrote: >> >> On 8/15/19 6:50 PM, Saravana Kannan wrote: >>> On Wed, Aug 7, 2019 at 7:04 PM Frank Rowand wrote: > Date: Tue, 23 Jul 2019 17:10:54 -0700 > Subject: [PATCH v7 1/7] driver core: Add

Re: linux-next: Tree for Aug 19 (drivers/net/netdevsim/dev.o)

2019-08-19 Thread Randy Dunlap
On 8/19/19 2:18 AM, Stephen Rothwell wrote: > Hi all, > > Changes since 20190816: > on x86_64: # CONFIG_INET is not set ld: drivers/net/netdevsim/dev.o: in function `nsim_dev_trap_report_work': dev.c:(.text+0x52f): undefined reference to `ip_send_check' Full randconfig file is attached. --

[PATCH] rpmsg: glink-smem: Name the edge based on parent remoteproc

2019-08-19 Thread Bjorn Andersson
Naming the glink edge device on the parent of_node short name causes collisions when multiple remoteproc instances with only different unit address are described on the platform_bus in DeviceTree. Base the edge's name on the parent remoteproc's name instead, to ensure that it's unique.

Re: [PATCH v3 0/3] genirq/vfio: Introduce update_irq_devid and optimize VFIO irq ops

2019-08-19 Thread luoben
在 2019/8/20 上午4:51, Alex Williamson 写道: On Thu, 15 Aug 2019 21:02:58 +0800 Ben Luo wrote: Currently, VFIO takes a lot of free-then-request-irq actions whenever a VM (with device passthru via VFIO) sets irq affinity or mask/unmask irq. Those actions only change the cookie data of irqaction

Re: [PATCH 10/22] arm64: dts: qcom: pm8150b: Add pon and adc nodes

2019-08-19 Thread Vinod Koul
On 19-08-19, 10:56, Stephen Boyd wrote: > Quoting Vinod Koul (2019-08-19 10:43:31) > > On 14-08-19, 10:08, Stephen Boyd wrote: > > > > > > > > > > > diff --git a/arch/arm64/boot/dts/qcom/pm8150b.dtsi > > > > b/arch/arm64/boot/dts/qcom/pm8150b.dtsi > > > > index c0a678b0f159..846197bd65cd 100644

Re: [v4, 7/8] cpufreq: mediatek: add opp notification for SVS support

2019-08-19 Thread Viresh Kumar
On 13-08-19, 21:31, Andrew-sh.Cheng wrote: > From: "Andrew-sh.Cheng" > > cpufreq should listen opp notification and do proper actions > when receiving disable and voltage adjustment events, > which are triggered when SVS is enabled. > > Signed-off-by: Andrew-sh.Cheng > --- >

Re: [RFC PATCH v2 00/19] RDMA/FS DAX truncate proposal V1,000,002 ;-)

2019-08-19 Thread Dave Chinner
On Mon, Aug 19, 2019 at 08:09:33PM -0700, John Hubbard wrote: > On 8/19/19 6:20 PM, Dave Chinner wrote: > > On Mon, Aug 19, 2019 at 05:05:53PM -0700, John Hubbard wrote: > > > On 8/19/19 2:24 AM, Dave Chinner wrote: > > > > On Mon, Aug 19, 2019 at 08:34:12AM +0200, Jan Kara wrote: > > > > > On Sat

[PATCH] ubifs: fix a memory leak bug

2019-08-19 Thread Wenwen Wang
In __ubifs_node_verify_hmac(), 'hmac' is allocated through kmalloc(). However, it is not deallocated in the following execution if ubifs_node_calc_hmac() fails, leading to a memory leak bug. To fix this issue, free 'hmac' before returning the error. Signed-off-by: Wenwen Wang ---

[PATCH v4 00/10] Allwinner sunxi message box support

2019-08-19 Thread Samuel Holland
This series adds support for the "hardware message box" in sun8i, sun9i, and sun50i SoCs, used for communication with the ARISC management processor (the platform's equivalent of the ARM SCP). The end goal is to use the arm_scpi driver as a client, communicating with firmware running on the AR100

[PATCH v4 02/10] clk: sunxi-ng: Mark AR100 clocks as critical

2019-08-19 Thread Samuel Holland
On sun8i, sun9i, and sun50i SoCs, system suspend/resume support requires firmware running on the AR100 coprocessor (the "SCP"). Such firmware can provide additional features, such as thermal monitoring and poweron/off support for boards without a PMIC. Since the AR100 may be running critical

[PATCH v4 06/10] ARM: dts: sunxi: a83t: Add msgbox node

2019-08-19 Thread Samuel Holland
The A83T SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sun8i-a83t.dtsi | 10 ++ 1 file changed, 10

[PATCH v4 09/10] arm64: dts: allwinner: h6: Add msgbox node

2019-08-19 Thread Samuel Holland
The H6 SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 10 ++ 1 file

[PATCH v4 05/10] ARM: dts: sunxi: a80: Add msgbox node

2019-08-19 Thread Samuel Holland
The A80 SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sun9i-a80.dtsi | 10 ++ 1 file changed, 10

[PATCH v4 01/10] clk: sunxi-ng: Mark msgbox clocks as critical

2019-08-19 Thread Samuel Holland
The msgbox clock is critical because the hardware it controls is shared between Linux and system firmware. The message box may be used by the EL3 secure monitor's PSCI implementation. On 64-bit sunxi SoCs, this is provided by ARM TF-A; 32-bit SoCs use a different implementation. The secure monitor

[PATCH v4 03/10] dt-bindings: mailbox: Add a sunxi message box binding

2019-08-19 Thread Samuel Holland
This mailbox hardware is present in Allwinner sun8i, sun9i, and sun50i SoCs. Add a device tree binding for it. Reviewed-by: Rob Herring Signed-off-by: Samuel Holland --- .../mailbox/allwinner,sunxi-msgbox.yaml | 79 +++ 1 file changed, 79 insertions(+) create mode 100644

[PATCH v4 10/10] [DO NOT MERGE] drivers: firmware: msgbox demo

2019-08-19 Thread Samuel Holland
This driver provides a trivial mailbox client that can be used with the mailbox-demo branch of https://github.com/crust-firmware/crust for verifying the functionality of the sunxi-msgbox driver. This is not a "real" driver, nor a "real" firmware protocol. This driver is not intended to be merged.

[PATCH v4 04/10] mailbox: sunxi-msgbox: Add a new mailbox driver

2019-08-19 Thread Samuel Holland
Allwinner sun8i, sun9i, and sun50i SoCs contain a hardware message box used for communication between the ARM CPUs and the ARISC management coprocessor. The hardware contains 8 unidirectional 4-message FIFOs. Add a driver for it, so it can be used for SCPI or other communication protocols.

[PATCH v4 08/10] arm64: dts: allwinner: a64: Add msgbox node

2019-08-19 Thread Samuel Holland
The A64 SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 10 ++ 1 file

[PATCH v4 07/10] ARM: dts: sunxi: h3/h5: Add msgbox node

2019-08-19 Thread Samuel Holland
The H3 and H5 SoCs contain a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 10 ++ 1 file

[PATCH] ARM: dts: vf610-zii-dev-rev-b: Drop redundant I2C properties

2019-08-19 Thread Andrey Smirnov
Drop redundant I2C properties that are already specified in vf610-zii-dev.dtsi Signed-off-by: Andrey Smirnov Cc: Shawn Guo Cc: Chris Healy Cc: Fabio Estevam Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- arch/arm/boot/dts/vf610-zii-dev-rev-b.dts | 10 --

Re: [PATCH] Input: hyperv-keyboard: Use in-place iterator API in the channel callback

2019-08-19 Thread dmitry.torok...@gmail.com
On Tue, Aug 20, 2019 at 03:01:23AM +, Dexuan Cui wrote: > Simplify the ring buffer handling with the in-place API. > > Also avoid the dynamic allocation and the memory leak in the channel > callback function. > > Signed-off-by: Dexuan Cui > --- > > Hi Dmitry, can this patch go through

Re: [PATCH v1 1/2] dt-bindings: phy: intel-emmc-phy: Add new compatible for LGM eMMC PHY

2019-08-19 Thread Ramuthevar, Vadivel MuruganX
On 20/8/2019 3:27 AM, Rob Herring wrote: On Sun, Aug 18, 2019 at 10:44 PM Ramuthevar,Vadivel MuruganX wrote: From: Ramuthevar Vadivel Murugan Add a new compatible to use the host controller driver with the eMMC PHY on Intel's Lightning Mountain SoC. Signed-off-by: Ramuthevar Vadivel Murugan

Re: [PATCH] powerpc: Don't add -mabi= flags when building with Clang

2019-08-19 Thread Nathan Chancellor
On Mon, Aug 19, 2019 at 04:19:31AM -0500, Segher Boessenkool wrote: > On Sun, Aug 18, 2019 at 12:13:21PM -0700, Nathan Chancellor wrote: > > When building pseries_defconfig, building vdso32 errors out: > > > > error: unknown target ABI 'elfv1' > > > > Commit 4dc831aa8813 ("powerpc: Fix

[PATCHv2 2/2] i915: do not leak module ref counter

2019-08-19 Thread Sergey Senozhatsky
Always put_filesystem() in i915_gemfs_init(). Signed-off-by: Sergey Senozhatsky --- - v2: rebased (i915 does not remount gemfs anymore) drivers/gpu/drm/i915/gem/i915_gemfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/gem/i915_gemfs.c

[PATCH] vsock: Fix a lockdep warning in __vsock_release()

2019-08-19 Thread Dexuan Cui
Lockdep is unhappy if two locks from the same class are held. Fix the below warning by making __vsock_release() non-recursive -- this patch is kind of ugly, but it looks to me there is not a better way to deal with the problem here. WARNING: possible

[PATCH] ARM: dts: vf610-zii-scu4-aib: Drop "rs485-rts-delay" property

2019-08-19 Thread Andrey Smirnov
LPUART driver does not support specifying "rs485-rts-delay" property. Drop it. Signed-off-by: Andrey Smirnov Cc: Shawn Guo Cc: Chris Healy Cc: Fabio Estevam Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- arch/arm/boot/dts/vf610-zii-scu4-aib.dts | 2 -- 1 file

Re: [RFC PATCH v2 00/19] RDMA/FS DAX truncate proposal V1,000,002 ;-)

2019-08-19 Thread John Hubbard
On 8/19/19 6:20 PM, Dave Chinner wrote: On Mon, Aug 19, 2019 at 05:05:53PM -0700, John Hubbard wrote: On 8/19/19 2:24 AM, Dave Chinner wrote: On Mon, Aug 19, 2019 at 08:34:12AM +0200, Jan Kara wrote: On Sat 17-08-19 12:26:03, Dave Chinner wrote: On Fri, Aug 16, 2019 at 12:05:28PM -0700, Ira

Re: [PATCH v1 2/2] phy: intel-lgm-emmc: Add support for eMMC PHY

2019-08-19 Thread Ramuthevar, Vadivel MuruganX
On 20/8/2019 12:06 AM, Andy Shevchenko wrote: On Mon, Aug 19, 2019 at 11:44:16AM +0800, Ramuthevar,Vadivel MuruganX wrote: From: Ramuthevar Vadivel Murugan Adds support for eMMC PHY on Intel's Lightning Mountain SoC. Adds -> Add. Thanks Andy, agreed. +/* eMMC phy register definitions */

[PATCH] ARM: dts: vf610-zii-cfu1: Slow I2C0 down to 100kHz

2019-08-19 Thread Andrey Smirnov
Fiber-optic module attached to the bus is only rated to work at 100kHz, so drop the bus frequncy to accomodate that. Signed-off-by: Andrey Smirnov Cc: Shawn Guo Cc: Chris Healy Cc: Fabio Estevam Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org ---

[PATCH] Drivers: hv: vmbus: Remove the unused "tsc_page" from struct hv_context

2019-08-19 Thread Dexuan Cui
This field is no longer used after the commit 63ed4e0c67df ("Drivers: hv: vmbus: Consolidate all Hyper-V specific clocksource code") , because it's replaced by the global variable "struct ms_hyperv_tsc_page *tsc_pg;" (now, the variable is in drivers/clocksource/hyperv_timer.c). Fixes:

Re: [v2 PATCH] RISC-V: Optimize tlb flush path.

2019-08-19 Thread h...@infradead.org
On Mon, Aug 19, 2019 at 05:47:35PM -0700, Atish Patra wrote: > In RISC-V, tlb flush happens via SBI which is expensive. > If the target cpumask contains a local hartid, some cost > can be saved by issuing a local tlb flush as we do that > in OpenSBI anyways. There is also no need of SBI call if >

[PATCH] clk: add include guard to clk-conf.h

2019-08-19 Thread Masahiro Yamada
Add a header include guard just in case. Signed-off-by: Masahiro Yamada --- include/linux/clk/clk-conf.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/linux/clk/clk-conf.h b/include/linux/clk/clk-conf.h index 85f8cf9d1226..eae9652c70cd 100644 ---

Re: regression in ath10k dma allocation

2019-08-19 Thread Christoph Hellwig
Tobias, plase try this patch: -- >From 88c590a2ecafc8279388f25bfbe1ead8ea3507a6 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Tue, 20 Aug 2019 11:45:49 +0900 Subject: dma-direct: fix zone selection after an unaddressable CMA allocation The new dma_alloc_contiguous hides if we allocate

Re: [PATCH v10 2/7] powerpc/mce: Fix MCE handling for huge pages

2019-08-19 Thread Nicholas Piggin
Santosh Sivaraj's on August 20, 2019 11:47 am: > Hi Nick, > > Nicholas Piggin writes: > >> Santosh Sivaraj's on August 15, 2019 10:39 am: >>> From: Balbir Singh >>> >>> The current code would fail on huge pages addresses, since the shift would >>> be incorrect. Use the correct page shift

[PATCH] ubifs: fix a memory leak bug

2019-08-19 Thread Wenwen Wang
In read_znode(), the indexing node 'idx' is allocated by kmalloc(). However, it is not deallocated in the following execution if ubifs_node_check_hash() fails, leading to a memory leak bug. To fix this issue, free 'idx' before returning the error. Signed-off-by: Wenwen Wang ---

[PATCH] Input: hyperv-keyboard: Use in-place iterator API in the channel callback

2019-08-19 Thread Dexuan Cui
Simplify the ring buffer handling with the in-place API. Also avoid the dynamic allocation and the memory leak in the channel callback function. Signed-off-by: Dexuan Cui --- Hi Dmitry, can this patch go through Sasha's hyperv tree:

Re: [PATCH v2 0/9] Exynos Adaptive Supply Voltage support

2019-08-19 Thread Viresh Kumar
On 19-08-19, 15:39, Sylwester Nawrocki wrote: > Unfortunately not, the patch set as I see it is another way of updating > an OPP after it was parsed from DT. OPP remove/add could work equally > well in our use case. Adding OPPs dynamically has limitations, you can't set many values which are

Re: [PATCH 2/2 v2] mm/zsmalloc.c: Fix race condition in zs_destroy_pool

2019-08-19 Thread Sergey Senozhatsky
On (08/09/19 11:17), Henry Burns wrote: > In zs_destroy_pool() we call flush_work(>free_work). However, we > have no guarantee that migration isn't happening in the background > at that time. > > Since migration can't directly free pages, it relies on free_work > being scheduled to free the

[PATCH] HID: hyperv: Use in-place iterator API in the channel callback

2019-08-19 Thread Dexuan Cui
Simplify the ring buffer handling with the in-place API. Also avoid the dynamic allocation and the memory leak in the channel callback function. Signed-off-by: Dexuan Cui --- Hi Jiri, Benjamin, can this patch go through Sasha's hyperv tree:

Re: [PATCH 1/2 v2] mm/zsmalloc.c: Migration can leave pages in ZS_EMPTY indefinitely

2019-08-19 Thread Sergey Senozhatsky
On (08/09/19 11:17), Henry Burns wrote: > In zs_page_migrate() we call putback_zspage() after we have finished > migrating all pages in this zspage. However, the return value is ignored. > If a zs_free() races in between zs_page_isolate() and zs_page_migrate(), > freeing the last object in the

Re: [PATCH v3 bpf-next 1/4] tracing/probe: Add PERF_EVENT_IOC_QUERY_PROBE ioctl

2019-08-19 Thread Alexei Starovoitov
On Mon, Aug 19, 2019 at 7:34 PM Daniel Xu wrote: > > Ah yes, sorry. Will add that. Also please fix build errors. It looks like buildbot is not happy about few things.

[PATCH] mtd: rawnand: sharpsl: add include guard to linux/mtd/sharpsl.h

2019-08-19 Thread Masahiro Yamada
Add a header include guard just in case. Signed-off-by: Masahiro Yamada --- include/linux/mtd/sharpsl.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/linux/mtd/sharpsl.h b/include/linux/mtd/sharpsl.h index 01306ebe266d..d2c3cf29e0d1 100644 --- a/include/linux/mtd/sharpsl.h

Re: [PATCH v4 2/2] rcuperf: Add kfree_rcu() performance Tests

2019-08-19 Thread Paul E. McKenney
On Mon, Aug 19, 2019 at 07:51:23PM -0400, Joel Fernandes wrote: > On Mon, Aug 19, 2019 at 03:23:30PM -0700, Paul E. McKenney wrote: > [snip] > > > [snip] > > > > > @@ -592,6 +593,175 @@ rcu_perf_shutdown(void *arg) > > > > > return -EINVAL; > > > > > } > > > > > > > > > > +/* > > > > > +

[PATCH v2 3/3] tools: hv: add vmbus testing tool

2019-08-19 Thread Branden Bonaby
This is a userspace tool to drive the testing. Currently it supports introducing user specified delay in the host to guest communication path on a per-channel basis. Signed-off-by: Branden Bonaby --- Changes in v2: - Move testing location to new location in debugfs. tools/hv/vmbus_testing |

[PATCH v2 2/3] drivers: hv: vmbus: add test attributes to debugfs

2019-08-19 Thread Branden Bonaby
Expose the test parameters as part of the debugfs channel attributes. We will control the testing state via these attributes. Signed-off-by: Branden Bonaby --- Changes in v2: - Move test attributes to debugfs. - Wrap test code under #ifdef statements. - Add new documentation file under

[PATCH v2 0/3] hv: vmbus: add fuzz testing to hv device

2019-08-19 Thread Branden Bonaby
This patchset introduces a testing framework for Hyper-V drivers. This framework allows us to introduce delays in the packet receive path on a per-device basis. While the current code only supports introducing arbitrary delays in the host/guest communication path, we intend to expand this to

[PATCH v2 1/3] drivers: hv: vmbus: Introduce latency testing

2019-08-19 Thread Branden Bonaby
Introduce user specified latency in the packet reception path. Signed-off-by: Branden Bonaby --- Changes in v2: - Add #ifdef in Kconfig file so test code will not interfere with non-test code. - Move test code functions for delay to hyperv_vmbus header file. - Wrap test code under

Re: [PATCH v2 1/1] arm64: dts: rockchip: Add support for TB-96AI board

2019-08-19 Thread Elon Zhang
Hi Mani, Thanks for your review. Please see comments inline. 在 8/5/2019 19:28, Manivannan Sadhasivam 写道: Hi Elon, Thanks for the v2. Still the DT needs to be cleaned up a bit. I have tested this patch on TB96-AI SOM/Carrier board and found that the USB ports are not working at all! Do we need

Re: [PATCH v3 bpf-next 1/4] tracing/probe: Add PERF_EVENT_IOC_QUERY_PROBE ioctl

2019-08-19 Thread Daniel Xu
On Mon Aug 19, 2019 at 6:26 PM Alexei Starovoitov wrote: > On Fri, Aug 16, 2019 at 3:33 PM Daniel Xu wrote: > > > > It's useful to know [uk]probe's nmissed and nhit stats. For example with > > tracing tools, it's important to know when events may have been lost. > > debugfs currently exposes a

Re: [RFC PATCH 08/15] drivers/acrn: add VM memory management for ACRN char device

2019-08-19 Thread Zhao, Yakui
On 2019年08月19日 15:39, Dan Carpenter wrote: On Mon, Aug 19, 2019 at 01:32:54PM +0800, Zhao, Yakui wrote: In fact as this driver is mainly used for embedded IOT usage, it doesn't handle the complex cleanup when such error is encountered. Instead the clean up is handled in free_guest_vm. A

RE: [EXT] Re: [PATCH net-next 0/1] net: fec: add C45 MDIO read/write support

2019-08-19 Thread Andy Duan
From: Andrew Lunn > On Mon, Aug 19, 2019 at 05:11:14PM +, Marco Hartmann wrote: > > As of yet, the Fast Ethernet Controller (FEC) driver only supports > > Clause 22 conform MDIO transactions. IEEE 802.3ae Clause 45 defines a > > modified MDIO protocol that uses a two staged access model in

Re: [RFC PATCH 15/15] drivers/acrn: add the support of offline SOS cpu

2019-08-19 Thread Zhao, Yakui
On 2019年08月19日 18:34, Dan Carpenter wrote: On Fri, Aug 16, 2019 at 10:25:56AM +0800, Zhao Yakui wrote: diff --git a/drivers/staging/acrn/acrn_dev.c b/drivers/staging/acrn/acrn_dev.c index 0602125..6868003 100644 --- a/drivers/staging/acrn/acrn_dev.c +++ b/drivers/staging/acrn/acrn_dev.c @@

Re: [PATCH V5 0/9] Fixes for vhost metadata acceleration

2019-08-19 Thread Jason Wang
On 2019/8/20 上午5:08, Michael S. Tsirkin wrote: On Tue, Aug 13, 2019 at 04:12:49PM +0800, Jason Wang wrote: On 2019/8/12 下午5:49, Michael S. Tsirkin wrote: On Mon, Aug 12, 2019 at 10:44:51AM +0800, Jason Wang wrote: On 2019/8/11 上午1:52, Michael S. Tsirkin wrote: On Fri, Aug 09, 2019 at

Re: [PATCH 1/4] resource: add a not device managed request_free_mem_region variant

2019-08-19 Thread Christoph Hellwig
On Mon, Aug 19, 2019 at 06:28:30PM -0700, Dan Williams wrote: > > Previously we would loudly crash if someone passed NULL to > devm_request_free_mem_region(), but now it will silently work and the > result will leak. Perhaps this wants a: We'd still instantly crash due to the dev_name

RE: [EXT] Re: [v2 2/3] clk: ls1028a: Add clock driver for Display output interface

2019-08-19 Thread Wen He
> -Original Message- > From: Stephen Boyd > Sent: 2019年8月20日 2:30 > To: devicet...@vger.kernel.org; linux-...@vger.kernel.org; > linux-de...@linux.nxdi.nxp.com; linux-kernel@vger.kernel.org; Mark Rutland > ; Michael Turquette ; > Rob Herring ; Shawn Guo ; Wen > He > Cc: Leo Li ;

Re: [PATCH] kbuild: enable unused-function warnings for W= build with Clang

2019-08-19 Thread Nathan Chancellor
On Tue, Aug 20, 2019 at 01:58:26AM +0900, Masahiro Yamada wrote: > Hi Nathan, > > On Tue, Aug 20, 2019 at 1:09 AM Nathan Chancellor > wrote: > > > > On Mon, Aug 19, 2019 at 07:51:38PM +0900, Masahiro Yamada wrote: > > > GCC and Clang have different policy for -Wunused-function; GCC does > > >

Re: [PATCH 4/4] memremap: provide a not device managed memremap_pages

2019-08-19 Thread Dan Williams
On Sun, Aug 18, 2019 at 2:12 AM Christoph Hellwig wrote: > > The kvmppc ultravisor code wants a device private memory pool that is > system wide and not attached to a device. Instead of faking up one > provide a low-level memremap_pages for it. > > Signed-off-by: Christoph Hellwig >

Re: [PATCH] scsi: lpfc: fix "NULL check before some freeing functions is not needed"

2019-08-19 Thread Martin K. Petersen
Hariprasad, > As dma_pool_destroy and mempool_destroy functions has NULL check. We may > not need NULL check before calling them. Applied to 5.4/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 3/4] memremap: don't use a separate devm action for devmap_managed_enable_get

2019-08-19 Thread Dan Williams
On Sun, Aug 18, 2019 at 2:12 AM Christoph Hellwig wrote: > > Just clean up for early failures and then piggy back on > devm_memremap_pages_release. This helps with a pending not device > managed version of devm_memremap_pages. > > Signed-off-by: Christoph Hellwig > Reviewed-by: Ira Weiny

Re: [patch 03/44] posix-timer: Use a callback for cancel synchronization

2019-08-19 Thread Christoph Hellwig
> + if (!WARN_ON_ONCE(kc->timer_wait_running)) > + kc->timer_wait_running(timer); This looks weird. The only place calling yor new method only does so after checking that it is not set and actually warns if it set?

Re: [patch 00/44] posix-cpu-timers: Cleanup and consolidation

2019-08-19 Thread Christoph Hellwig
On Mon, Aug 19, 2019 at 04:31:41PM +0200, Thomas Gleixner wrote: > The series applies on top of: > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers/core > > and is available from git as well: > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.timers/core

Re: [PATCH] ata: ahci: Lookup PCS register offset based on PCI device ID

2019-08-19 Thread Dan Williams
On Mon, Aug 19, 2019 at 9:30 AM Stephen Douthit wrote: > > On 8/14/19 1:17 PM, Dan Williams wrote: > >> Can you get someone from the controller design team to give us a clear > >> answer on a revision where this PCS change happened? > >> > >> It would be nice if we could just check

[PATCH] clk: imx: pll14xx: avoid glitch when set rate

2019-08-19 Thread Peng Fan
From: Peng Fan According to PLL1443XA and PLL1416X spec, "When BYPASS is 0 and RESETB is changed from 0 to 1, FOUT starts to output unstable clock until lock time passes. PLL1416X/PLL1443XA may generate a glitch at FOUT." So set BYPASS when RESETB is changed from 0 to 1 to avoid glitch. In the

[PATCH v4 16/16] powerpc/configs: Enable secure guest support in pseries and ppc64 defconfigs

2019-08-19 Thread Thiago Jung Bauermann
From: Ryan Grimm Enables running as a secure guest in platforms with an Ultravisor. Signed-off-by: Ryan Grimm Signed-off-by: Ram Pai Signed-off-by: Thiago Jung Bauermann --- arch/powerpc/configs/ppc64_defconfig | 1 + arch/powerpc/configs/pseries_defconfig | 1 + 2 files changed, 2

[PATCH v4 15/16] Documentation/powerpc: Ultravisor API

2019-08-19 Thread Thiago Jung Bauermann
From: Sukadev Bhattiprolu POWER9 processor includes support for Protected Execution Facility (PEF). Attached documentation provides an overview of PEF and defines the API for various interfaces that must be implemented in the Ultravisor firmware as well as in the KVM Hypervisor. Based on input

[RFC PATCH v4 11/16] powerpc/pseries/svm: Export guest SVM status to user space via sysfs

2019-08-19 Thread Thiago Jung Bauermann
From: Ryan Grimm User space might want to know it's running in a secure VM. It can't do a mfmsr because mfmsr is a privileged instruction. The solution here is to create a cpu attribute: /sys/devices/system/cpu/svm which will read 0 or 1 based on the S bit of the current CPU. Signed-off-by:

[PATCH v4 12/16] powerpc/pseries/svm: Disable doorbells in SVM guests

2019-08-19 Thread Thiago Jung Bauermann
From: Sukadev Bhattiprolu Normally, the HV emulates some instructions like MSGSNDP, MSGCLRP from a KVM guest. To emulate the instructions, it must first read the instruction from the guest's memory and decode its parameters. However for a secure guest (aka SVM), the page containing the

[PATCH v4 14/16] powerpc/pseries/svm: Force SWIOTLB for secure guests

2019-08-19 Thread Thiago Jung Bauermann
From: Anshuman Khandual SWIOTLB checks range of incoming CPU addresses to be bounced and sees if the device can access it through its DMA window without requiring bouncing. In such cases it just chooses to skip bouncing. But for cases like secure guests on powerpc platform all addresses need to

[PATCH v4 09/16] powerpc/pseries/svm: Use shared memory for Debug Trace Log (DTL)

2019-08-19 Thread Thiago Jung Bauermann
From: Anshuman Khandual Secure guests need to share the DTL buffers with the hypervisor. To that end, use a kmem_cache constructor which converts the underlying buddy allocated SLUB cache pages into shared memory. Signed-off-by: Anshuman Khandual Signed-off-by: Thiago Jung Bauermann ---

[PATCH v4 13/16] powerpc/pseries/iommu: Don't use dma_iommu_ops on secure guests

2019-08-19 Thread Thiago Jung Bauermann
Secure guest memory is inacessible to devices so regular DMA isn't possible. In that case set devices' dma_map_ops to NULL so that the generic DMA code path will use SWIOTLB to bounce buffers for DMA. Signed-off-by: Thiago Jung Bauermann --- arch/powerpc/platforms/pseries/iommu.c | 11

Re: [PATCH 4/4] arm64: implement KPROBES_ON_FTRACE

2019-08-19 Thread Jisheng Zhang
On Mon, 19 Aug 2019 22:22:12 +0530 "Naveen N. Rao" wrote: > > > Jisheng Zhang wrote: > > This patch implements KPROBES_ON_FTRACE for arm64. > > > > ~ # mount -t debugfs debugfs /sys/kernel/debug/ > > ~ # cd /sys/kernel/debug/ > > /sys/kernel/debug # echo 'p _do_fork' > tracing/kprobe_events >

[PATCH v4 01/16] powerpc/kernel: Add ucall_norets() ultravisor call handler

2019-08-19 Thread Thiago Jung Bauermann
From: Claudio Carvalho The ultracalls (ucalls for short) allow the Secure Virtual Machines (SVM)s and hypervisor to request services from the ultravisor such as accessing a register or memory region that can only be accessed when running in ultravisor-privileged mode. This patch adds the

[PATCH v4 08/16] powerpc/pseries/svm: Use shared memory for LPPACA structures

2019-08-19 Thread Thiago Jung Bauermann
From: Anshuman Khandual LPPACA structures need to be shared with the host. Hence they need to be in shared memory. Instead of allocating individual chunks of memory for a given structure from memblock, a contiguous chunk of memory is allocated and then converted into shared memory. Subsequent

  1   2   3   4   5   6   7   8   9   10   >