[PATCH] opp: Prevent memory leak in dev_pm_opp_attach_genpd()

2020-08-30 Thread Viresh Kumar
If dev_pm_opp_attach_genpd() is called multiple times (once for each CPU sharing the table), then it would result in unwanted behavior like memory leak, attaching the domain multiple times, etc. Handle that by checking and returning earlier if the domains are already attached. Now that

Re: [PATCH] arm64: dts: imx8mq-librem5-devkit: Add missing clock-cells to PMIC

2020-08-30 Thread Shawn Guo
On Fri, Aug 28, 2020 at 09:22:28PM +0200, Krzysztof Kozlowski wrote: > The PMIC node can be a clock provider (for its 32 kHz clock) and authors > of imx8mq-librem5-devkit.dts apparently wanted this because they added > input clock and clock-output-names. > > Add necessary clock-cells to the PMIC

Re: [PATCH 04/10] arm64: dts: freescale: Fix SP805 clock-names

2020-08-30 Thread Shawn Guo
On Fri, Aug 28, 2020 at 02:05:56PM +0100, Andre Przywara wrote: > The SP805 binding sets the order of the clock-names to be: "wdog_clk", > "apb_pclk" (in exactly that order). > > Change the order in the DTs for Freescale platforms to match that. The > two clocks given in all nodes are actually

Re: [PATCH] opp: Drop unnecessary check frmo dev_pm_opp_attach_genpd()

2020-08-30 Thread Viresh Kumar
On 27-08-20, 14:14, Stephan Gerhold wrote: > Only partially related to this patch, but actually I noticed that > dev_pm_opp_attach_genpd() does not work correctly if it is called > multiple times. > > For example, qcom-cpufreq-nvmem calls this for every CPU because it is > not aware that the OPP

Re: [RFC PATCH v3 0/2] Add Krait Cache Scaling support

2020-08-30 Thread Sibi Sankar
On 2020-08-24 16:10, Viresh Kumar wrote: +Vincent/Saravana/Sibi On 21-08-20, 16:00, Ansuel Smith wrote: This adds Krait Cache scaling support using the cpufreq notifier. I have some doubt about where this should be actually placed (clk or cpufreq)? Also the original idea was to create a

Re: [PATCH] scripts: Add intended executable mode and SPDX license

2020-08-30 Thread Lukas Bulwahn
On Sun, 30 Aug 2020, Andrew Morton wrote: > On Thu, 27 Aug 2020 14:54:05 +0530 Mrinal Pandey wrote: > > > commit b72231eb7084 ("scripts: add spdxcheck.py self test") added the file > > spdxcheck-test.sh to the repository without the executable flag and license > > information. > > The x bit

Re: [PATCH v4] dt-bindings: nvmem: Add syscon to Vybrid OCOTP driver

2020-08-30 Thread Shawn Guo
On Mon, Aug 24, 2020 at 08:04:06PM -0700, Chris Healy wrote: > From: Chris Healy > > Add syscon compatibility with Vybrid OCOTP driver binding. This is > required to access the UID. > > Fixes: 623069946952 ("nvmem: Add DT binding documentation for Vybrid > OCOTP driver") > Cc:

Re: [PATCH v4 1/4] dt-bindings: arm: fsl: Add binding for Variscite VAR-SOM-MX8MM module

2020-08-30 Thread Shawn Guo
On Mon, Aug 24, 2020 at 09:18:16PM +0200, Krzysztof Kozlowski wrote: > Add a binding for the Variscite VAR-SOM-MX8MM System on Module. > > Signed-off-by: Krzysztof Kozlowski Applied all, thanks.

Re: [PATCH v6] arm64: dts: qcom: Add support for Xiaomi Poco F1 (Beryllium)

2020-08-30 Thread Amit Pundir
Hi Konrad, I couldn't find answer to your question around missing (regulatorname)-supply properties. Need help in figuring out that part. Regards, Amit Pundir On Mon, 31 Aug 2020 at 10:54, Amit Pundir wrote: > > Add initial dts support for Xiaomi Poco F1 (Beryllium). > > This initial support

Re: nouveau PUSHBUFFER_ERR on 5.9.0-rc2-next-20200824

2020-08-30 Thread Alexander Kapshuk
On Mon, Aug 31, 2020 at 7:30 AM Ben Skeggs wrote: > > On Tue, 25 Aug 2020 at 17:21, Alexander Kapshuk > wrote: > > > > Since upgrading to linux-next based on 5.9.0-rc1 and 5.9.0-rc2 I have > > had my mouse pointer disappear soon after logging in, and I have > > observed the system freezing

Re: [PATCH] usb: gadget: net2272: assert for a valid dma request

2020-08-30 Thread Greg KH
On Sun, Aug 30, 2020 at 11:36:46AM -0700, t...@redhat.com wrote: > From: Tom Rix > > clang static analysis flags this representive problem > > net2272.c:1541:8: warning: Dereference of null pointer > if ((req->req.length % ep->ep.maxpacket != 0) || > ^~~ > This is

Re: [PATCH v2 08/19] arm64: dts: imx8mm-evk: Add 32.768 kHz clock to PMIC

2020-08-30 Thread Vaittinen, Matti
On Fri, 2020-08-28 at 18:47 +0200, Krzysztof Kozlowski wrote: > The ROHM BD71847 PMIC has a 32.768 kHz clock. Adding necessary > parent > allows to probe the bd718x7 clock driver fixing boot errors: > > bd718xx-clk bd71847-clk.1.auto: No parent clk found > bd718xx-clk: probe of

Re: [PATCH 01/10] dt-bindings: watchdog: sp-805: Convert to Json-schema

2020-08-30 Thread Viresh Kumar
On 28-08-20, 14:05, Andre Przywara wrote: > Convert the ARM SP-805 watchdog IP DT binding over to Json-schema. > > A straight-forward conversion, but the requirement for providing two > clocks got strengthened from "should" to "must". > > Signed-off-by: Andre Przywara > --- >

Re: [PATCH v2 1/2] cper, apei, mce: Pass x86 CPER through the MCA handling chain

2020-08-30 Thread Punit Agrawal
Hi Smita, A couple of comments below - Smita Koralahalli writes: > Linux Kernel uses ACPI Boot Error Record Table (BERT) to report fatal > errors that occurred in a previous boot. The MCA errors in the BERT are > reported using the x86 Processor Error Common Platform Error Record (CPER) >

Re: [PATCH v2 11/19] arm64: dts: imx8mn-ddr4-evk: Align regulator names with schema

2020-08-30 Thread Vaittinen, Matti
On Fri, 2020-08-28 at 18:47 +0200, Krzysztof Kozlowski wrote: > Device tree schema expects regulator names to be lowercase. Changing > to > lowercase has multiple effects: > 1. LDO6 supply is now properly configured, because regulator driver >looks for supplies by lowercase name, > 2.

[PATCH v6] arm64: dts: qcom: Add support for Xiaomi Poco F1 (Beryllium)

2020-08-30 Thread Amit Pundir
Add initial dts support for Xiaomi Poco F1 (Beryllium). This initial support is based on upstream Dragonboard 845c (sdm845) device. With this dts, Beryllium boots AOSP up to ADB shell over USB-C. Supported functionality includes UFS, USB-C (peripheral), microSD card and Vol+/Vol-/power keys.

[tip:x86/urgent] BUILD SUCCESS 784a0830377d0761834e385975bc46861fea9fa0

2020-08-30 Thread kernel test robot
allmodconfig powerpc defconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a002-20200830 x86_64 randconfig-a005-20200830 x86_64

Re: [PATCH v2] Documentation: submit-checklist: add clean builds for new Documentation

2020-08-30 Thread Mike Rapoport
On Sun, Aug 30, 2020 at 05:43:54PM -0700, Randy Dunlap wrote: > From: Randy Dunlap > > Add to Documentation/process/submit-checklist.rst that patch > submitters should run "make htmldocs" and verify that any > Documentation/ changes (patches) are clean (no new warnings/errors). > >

Re: [PATCH] mmc: sdhci-msm: When dev_pm_opp_of_add_table() returns 0 it's not an error

2020-08-30 Thread Viresh Kumar
On 28-08-20, 07:56, Doug Anderson wrote: > I've confirmed that the current mmc/next (with Viresh's new patch) no > longer breaks me. :-) > > $ git show --format=fuller linux_mmc/next | head -8 > commit 174e889d08aa54219b841464458f81d13fafec93 > Merge: c282fdb49b18 8048822bac01 > Author: Ulf

Re: Kernel panic : Unable to handle kernel paging request at virtual address - dead address between user and kernel address ranges

2020-08-30 Thread Viresh Kumar
On 28-08-20, 14:23, Ulf Hansson wrote: > Anders, Naresh - thanks for testing and reporting. I am dropping the > patch from my tree. > > Viresh, I suggest to keep Anders/Naresh in the cc, for the next > version. Then I can wait for their tested-by tag before I apply again. Sorry for the trouble,

[PATCH v2 02/12] clk: tegra: don't enable PLLE HW sequencer at init

2020-08-30 Thread JC Kuo
PLLE hardware power sequencer references PEX/SATA UPHY PLL hardware power sequencers' output to enable/disable PLLE. PLLE hardware power sequencer has to be enabled only after PEX/SATA UPHY PLL's sequencers are enabled. Signed-off-by: JC Kuo --- drivers/clk/tegra/clk-pll.c | 12 1

[PATCH v2 07/12] arm64: tegra210: XUSB PADCTL add "nvidia,pmc" prop

2020-08-30 Thread JC Kuo
PMC driver provides USB sleepwalk registers access to XUSB PADCTL driver. This commit adds a "nvidia,pmc" property which points to PMC node to XUSB PADCTL device node. Signed-off-by: JC Kuo --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v2 06/12] soc/tegra: pmc: provide usb sleepwalk register map

2020-08-30 Thread JC Kuo
This commit implements a register map which grants USB (UTMI and HSIC) sleepwalk registers access to USB phy drivers. The USB sleepwalk logic is in PMC hardware block but USB phy drivers have the best knowledge of proper programming sequence. This approach prevents using custom pmc APIs.

[PATCH v2 03/12] phy: tegra: xusb: t210: rearrange UPHY init

2020-08-30 Thread JC Kuo
This commit is a preparation for enabling XUSB SC7 support. It rearranges Tegra210 XUSB PADCTL UPHY initialization sequence, for the following reasons: 1. PLLE hardware power sequencer has to be enabled only after both PEX UPHY PLL and SATA UPHY PLL are initialized. tegra210_uphy_init() ->

Re: WARNING: at drivers/opp/core.c:678 dev_pm_opp_set_rate+0x4cc/0x5d4 - on arm x15

2020-08-30 Thread Viresh Kumar
On 28-08-20, 15:42, Naresh Kamboju wrote: > Viresh, > I have applied the v2 patch series on top of linux next-20200824. > and tested again the reported kernel warning is fixed [1] > > [1] https://lkft.validation.linaro.org/scheduler/job/1717615#L1881 Hi Naresh, You meant this one ? [PATCH V2

[PATCH v2 11/12] usb: host: xhci-tegra: unlink power domain devices

2020-08-30 Thread JC Kuo
This commit unlinks xhci-tegra platform device with ss/host power domain devices. Reasons for this change is - at elpg entry, phy sleepwalk and wake configuration need to be done before powering down ss/host partitions, and phy need be powered off after powering down ss/host partitions. Sequence

[PATCH v2 09/12] phy: tegra: xusb: t186: support wake and sleepwalk

2020-08-30 Thread JC Kuo
This commit implements Tegra186/Tegra194 XUSB PADCTL/AO wake and sleepwalk operations. Signed-off-by: JC Kuo --- drivers/phy/tegra/xusb-tegra186.c | 656 ++ 1 file changed, 656 insertions(+) diff --git a/drivers/phy/tegra/xusb-tegra186.c

[PATCH v2 05/12] phy: tegra: xusb: add sleepwalk and suspend/resume

2020-08-30 Thread JC Kuo
This commit adds sleepwalk/wake and suspend/resume interfaces to Tegra XUSB PHY driver. Tegra XUSB host controller driver makes use of sleepwalk functions to enable/disable sleepwalk circuit which is in always-on partition can respond to USB resume signals when controller is not powered.

[PATCH v2 12/12] xhci: tegra: enable ELPG for runtime/system PM

2020-08-30 Thread JC Kuo
This commit implements the complete programming sequence for ELPG entry and exit. 1. At ELPG entry, invokes tegra_xusb_padctl_enable_phy_sleepwalk() and tegra_xusb_padctl_enable_phy_wake() to configure XUSB PADCTL sleepwalk and wake detection circuits to maintain USB lines level and

[PATCH v2 08/12] phy: tegra: xusb: t210: support wake and sleepwalk

2020-08-30 Thread JC Kuo
This commit implements Tegra210 XUSB PADCTL wake and sleepwalk routines. Sleepwalk logic is in PMC (always-on) hardware block. PMC driver provides managed access to the sleepwalk registers via regmap framework. Signed-off-by: JC Kuo --- drivers/phy/tegra/xusb-tegra210.c | 1094

[PATCH v2 01/12] clk: tegra: Add PLLE HW power sequencer control

2020-08-30 Thread JC Kuo
PLLE has a hardware power sequencer logic which is a state machine that can power on/off PLLE without any software intervention. The sequencer has two inputs, one from XUSB UPHY PLL and the other from SATA UPHY PLL. PLLE provides reference clock to XUSB and SATA UPHY PLLs. When both of the

[PATCH v2 10/12] arm64: tegra210/tegra186/tegra194: XUSB PADCTL irq

2020-08-30 Thread JC Kuo
This commit adds "interrupts" property to Tegra210/Tegra186/Tegra194 XUSB PADCTL node. XUSB PADCTL interrupt will be raised when USB wake event happens. This is required for supporting XUSB host controller ELPG. Signed-off-by: JC Kuo --- arch/arm64/boot/dts/nvidia/tegra186.dtsi | 1 +

[PATCH v2 04/12] phy: tegra: xusb: t210: add lane_iddq operations

2020-08-30 Thread JC Kuo
As per Tegra210 TRM, before changing lane assignments, driver should keep lanes in IDDQ and sleep state; after changing lane assignments, driver should bring lanes out of IDDQ. This commit implements the required operations. Signed-off-by: JC Kuo --- drivers/phy/tegra/xusb-tegra210.c | 94

[PATCH v2 00/12] Tegra XHCI controller ELPG support

2020-08-30 Thread JC Kuo
Tegra XHCI controler can be placed in ELPG (Engine Level PowerGated) state for power saving when all of the connected USB devices are in suspended state. This patch series includes clk, phy and pmc changes that are required for properly place controller in ELPG and bring controller out of ELPG.

Re: [PATCH 3/3] ARM: tegra: Pass multiple versions in opp-supported-hw property

2020-08-30 Thread Viresh Kumar
On 28-08-20, 10:37, Dmitry Osipenko wrote: > 26.08.2020 14:50, Viresh Kumar пишет: > > We can now pass multiple versions in "opp-supported-hw" property, lets > > do that and simplify the tables a bit. > > > > Signed-off-by: Viresh Kumar > > > > --- > > Dmitry, I think there is further scope of

Re: ..and its built and boot without fuss!! Linux 5.9-rc3

2020-08-30 Thread Bhaskar Chowdhury
On 16:56 Sun 30 Aug 2020, Linus Torvalds wrote: On Sun, Aug 30, 2020 at 4:47 PM Sasha Levin wrote: Is it possible you've forgotten to push? I don't see the tag/5.9-rc3 commit in your repo. Indeed. Thanks for noticing. Fixed, Linus Something trivial for your eyes!! [

Re: [PATCH v1 09/10] powerpc/pseries/iommu: Make use of DDW even if it does not map the partition

2020-08-30 Thread Alexey Kardashevskiy
On 29/08/2020 04:36, Leonardo Bras wrote: > On Mon, 2020-08-24 at 15:17 +1000, Alexey Kardashevskiy wrote: >> >> On 18/08/2020 09:40, Leonardo Bras wrote: >>> As of today, if the biggest DDW that can be created can't map the whole >>> partition, it's creation is skipped and the default DMA

Re: [PATCH v1 08/10] powerpc/pseries/iommu: Add ddw_property_create() and refactor enable_ddw()

2020-08-30 Thread Alexey Kardashevskiy
On 29/08/2020 01:25, Leonardo Bras wrote: > On Mon, 2020-08-24 at 15:07 +1000, Alexey Kardashevskiy wrote: >> >> On 18/08/2020 09:40, Leonardo Bras wrote: >>> Code used to create a ddw property that was previously scattered in >>> enable_ddw() is now gathered in ddw_property_create(), which

Re: nouveau PUSHBUFFER_ERR on 5.9.0-rc2-next-20200824

2020-08-30 Thread Ben Skeggs
On Tue, 25 Aug 2020 at 17:21, Alexander Kapshuk wrote: > > Since upgrading to linux-next based on 5.9.0-rc1 and 5.9.0-rc2 I have > had my mouse pointer disappear soon after logging in, and I have > observed the system freezing temporarily when clicking on objects and > when typing text. > I have

Re: [PATCH 2/2] cpufreq: s5pv210: Use dev_err instead of pr_err in probe

2020-08-30 Thread Viresh Kumar
On 26-08-20, 18:00, Krzysztof Kozlowski wrote: > dev_err() allows easily to identify the device printing the message so > no need for __func__. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/cpufreq/s5pv210-cpufreq.c | 14 +- > 1 file changed, 5 insertions(+), 9 deletions(-)

Re: [Nouveau] [PATCH 1/2] drm/nouveau/kms/nv50-: Program notifier offset before requesting disp caps

2020-08-30 Thread Ben Skeggs
On Wed, 26 Aug 2020 at 02:52, Lyude Paul wrote: > > On Tue, 2020-08-25 at 08:28 +1000, Ben Skeggs wrote: > > On Tue, 25 Aug 2020 at 04:33, Lyude Paul wrote: > > > Not entirely sure why this never came up when I originally tested this > > > (maybe some BIOSes already have this setup?) but the

[PATCH] dma-buf: fix kernel-doc warning in

2020-08-30 Thread Randy Dunlap
Fix kernel-doc warning in : ../include/linux/dma-buf.h:330: warning: Function parameter or member 'name_lock' not described in 'dma_buf' Signed-off-by: Randy Dunlap Cc: Sumit Semwal Cc: Gustavo Padovan Cc: Christian König Cc: linux-me...@vger.kernel.org Cc: dri-de...@lists.freedesktop.org

[PATCH] dma-buf: fix kernel-doc warning in dma-fence.c

2020-08-30 Thread Randy Dunlap
Add @cookie to dma_fence_end_signalling() to prevent kernel-doc warning in drivers/dma-buf/dma-fence.c: ../drivers/dma-buf/dma-fence.c:291: warning: Function parameter or member 'cookie' not described in 'dma_fence_end_signalling' Signed-off-by: Randy Dunlap Cc: Sumit Semwal Cc: Gustavo

[PATCH] MAINTAINERS: step down as maintainer of UniPhier SoCs and Denali driver

2020-08-30 Thread Masahiro Yamada
I am leaving Socionext. Orphan the UniPhier platform and Denali NAND driver until somebody takes the role. Signed-off-by: Masahiro Yamada --- I hope this can be applied to the ARM-SOC tree. MAINTAINERS | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/MAINTAINERS

Re: [PATCH] iomap: Fix the write_count in iomap_add_to_ioend().

2020-08-30 Thread Ming Lei
On Tue, Aug 25, 2020 at 10:49:17AM -0400, Brian Foster wrote: > cc Ming > > On Tue, Aug 25, 2020 at 10:42:03AM +1000, Dave Chinner wrote: > > On Mon, Aug 24, 2020 at 11:48:41AM -0400, Brian Foster wrote: > > > On Mon, Aug 24, 2020 at 04:04:17PM +0100, Christoph Hellwig wrote: > > > > On Mon, Aug

Re: [PATCH 08/10] ARM: dts: Cygnus: Fix SP805 clocks

2020-08-30 Thread Florian Fainelli
On 8/30/2020 8:55 PM, Florian Fainelli wrote: On Fri, 28 Aug 2020 14:06:00 +0100, Andre Przywara wrote: The SP805 DT binding requires two clocks to be specified, but the Broadcom Cygnus DT currently only specifies one clock. In practice, Linux would pick a clock named "apb_pclk" for the

Re: [PATCH 03/10] arm64: dts: broadcom: Fix SP805 clock-names

2020-08-30 Thread Florian Fainelli
On Fri, 28 Aug 2020 14:05:55 +0100, Andre Przywara wrote: > The SP805 binding sets the name for the actual watchdog clock to > "wdog_clk" (with an underscore). > > Change the name in the DTs for Broadcom platforms to match that. The > Linux and U-Boot driver use the *first* clock for this

Re: [PATCH 09/10] ARM: dts: NSP: Fix SP805 clock-names

2020-08-30 Thread Florian Fainelli
On Fri, 28 Aug 2020 14:06:01 +0100, Andre Przywara wrote: > The SP805 binding sets the name for the actual watchdog clock to > "wdog_clk" (with an underscore). > > Change the name in the DTs for the Broadcom NSP platform to match that. > The Linux and U-Boot driver use the *first* clock for

Re: [f2fs-dev] [PATCH] f2fs: prevent compressed file from being disabled after releasing cblocks

2020-08-30 Thread Daeho Jeong
> - open(O_RDWR) > - ioctl(FS_IOC_SETFLAGS, F2FS_COMPR_FL) > - write() > - ioctl(RELEASE_COMPRESS_BLOCKS) -- inode is immutable now > - ioctl(FS_IOC_SETFLAGS, ~F2FS_COMPR_FL) -- Should we allow to update > immutable inode? > as we know, normally, immutable inode should deny open(O_WRONLY or

Re: [PATCH 08/10] ARM: dts: Cygnus: Fix SP805 clocks

2020-08-30 Thread Florian Fainelli
On Fri, 28 Aug 2020 14:06:00 +0100, Andre Przywara wrote: > The SP805 DT binding requires two clocks to be specified, but the > Broadcom Cygnus DT currently only specifies one clock. > > In practice, Linux would pick a clock named "apb_pclk" for the bus > clock, and the Linux and U-Boot SP805

[PATCH 8/9] ASoC: sun8i-codec: Attach the bus clock to the regmap

2020-08-30 Thread Samuel Holland
When attached to the regmap, the bus clock is automatically enabled as needed to access device registers. This avoids needing code to manage it separately in the driver. Signed-off-by: Samuel Holland --- sound/soc/sunxi/sun8i-codec.c | 21 ++--- 1 file changed, 2 insertions(+),

[PATCH 6/9] ASoC: sun8i-codec: Fix field bit number indentation

2020-08-30 Thread Samuel Holland
Several fields have inconsistent indentation, presumably because the patch "looked correct" due to the additional "+" character at the beginning of the line. Acked-by: Chen-Yu Tsai Signed-off-by: Samuel Holland --- sound/soc/sunxi/sun8i-codec.c | 14 +++--- 1 file changed, 7

[PATCH 9/9] ASoC: sun8i-codec: Manage module clock via DAPM

2020-08-30 Thread Samuel Holland
By representing the module clock as a DAPM widget, we ensure that the clock is only enabled when the module is actually in use, without additional code in runtime PM hooks. Signed-off-by: Samuel Holland --- sound/soc/sunxi/sun8i-codec.c | 19 +-- 1 file changed, 5 insertions(+),

[PATCH 2/9] ASoC: sun8i-codec: Fix AIF1 MODCLK widget name

2020-08-30 Thread Samuel Holland
The name should reference "AIF1", not "AFI1". Acked-by: Chen-Yu Tsai Signed-off-by: Samuel Holland --- sound/soc/sunxi/sun8i-codec.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sound/soc/sunxi/sun8i-codec.c b/sound/soc/sunxi/sun8i-codec.c index

[PATCH 3/9] ASoC: sun8i-codec: Fix AIF1_ADCDAT_CTRL field names

2020-08-30 Thread Samuel Holland
They are controlling "AD0" (AIF1 slot 0 ADC), not "DA0". Acked-by: Chen-Yu Tsai Signed-off-by: Samuel Holland --- sound/soc/sunxi/sun8i-codec.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/sunxi/sun8i-codec.c b/sound/soc/sunxi/sun8i-codec.c index

Re: memory leak in do_seccomp

2020-08-30 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:dcc5c6f0 Merge tag 'x86-urgent-2020-08-30' of git://git.ke.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=10b297d590 kernel config:

[PATCH 1/9] ASoC: sun8i-codec: Remove extraneous widgets

2020-08-30 Thread Samuel Holland
This driver is for the digital part of the codec only. The analog part, including the microphone inputs, is managed by a separate driver. These widgets look like they were copied from sun4i-codec. Since they do not perform any function in this driver, remove them. Reviewed-by: Chen-Yu Tsai

[PATCH 4/9] ASoC: sun8i-codec: Fix AIF1_MXR_SRC field names

2020-08-30 Thread Samuel Holland
Even though they are for the left channel mixer, they are documented as "MXR_SRC". This matches the naming scheme used for the main DAC. The "R" is part of the abbreviation for "mixer", not a reference to the channel. Acked-by: Chen-Yu Tsai Signed-off-by: Samuel Holland ---

[PATCH 5/9] ASoC: sun8i-codec: Fix ADC_DIG_CTRL field name

2020-08-30 Thread Samuel Holland
This is the enable bit for the "AD"C, not the "DA"C. Acked-by: Chen-Yu Tsai Signed-off-by: Samuel Holland --- sound/soc/sunxi/sun8i-codec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/sunxi/sun8i-codec.c b/sound/soc/sunxi/sun8i-codec.c index

[PATCH 7/9] ASoC: sun8i-codec: Sort masks in a consistent order

2020-08-30 Thread Samuel Holland
All other definitions are sorted from largest to smallest bit number. This makes the AIF1CLK_CTRL mask constants consistent with them. Acked-by: Chen-Yu Tsai Signed-off-by: Samuel Holland --- sound/soc/sunxi/sun8i-codec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 0/9] ASoC: sun8i-codec driver cleanup

2020-08-30 Thread Samuel Holland
Now that the fixes series is merged, here is a series of small cleanups to the sun8i-codec driver. These help shorten the patch stack for the next series, which will add support for the other two DAIs in this codec: AIF2 and AIF3. Samuel Holland (9): ASoC: sun8i-codec: Remove extraneous widgets

Re: [PATCH v1 01/10] powerpc/pseries/iommu: Replace hard-coded page shift

2020-08-30 Thread Alexey Kardashevskiy
On 31/08/2020 11:41, Oliver O'Halloran wrote: > On Mon, Aug 31, 2020 at 10:08 AM Alexey Kardashevskiy wrote: >> >> On 29/08/2020 05:55, Leonardo Bras wrote: >>> On Fri, 2020-08-28 at 12:27 +1000, Alexey Kardashevskiy wrote: On 28/08/2020 01:32, Leonardo Bras wrote: > Hello

Re: [PATCH v3] i2c: npcm7xx: Fix timeout calculation

2020-08-30 Thread Joel Stanley
On Sun, 30 Aug 2020 at 21:31, Tali Perry wrote: > > timeout_usec value calculation was wrong, the calculated value > was in msec instead of usec. > > Signed-off-by: Tali Perry > Reviewed-by: Avi Fishman Fixes: 56a1485b102e ("i2c: npcm7xx: Add Nuvoton NPCM I2C controller driver") Reviewed-by:

[PATCH v6 19/20] tools: gpio: add multi-line monitoring to gpio-event-mon

2020-08-30 Thread Kent Gibson
Extend gpio-event-mon to support monitoring multiple lines. This would require multiple lineevent requests to implement using uAPI v1, but can be performed with a single line request using uAPI v2. Signed-off-by: Kent Gibson --- tools/gpio/gpio-event-mon.c | 45

[PATCH v6 20/20] tools: gpio: add debounce support to gpio-event-mon

2020-08-30 Thread Kent Gibson
Add support for debouncing monitored lines to gpio-event-mon. Signed-off-by: Kent Gibson --- tools/gpio/gpio-event-mon.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/tools/gpio/gpio-event-mon.c b/tools/gpio/gpio-event-mon.c index

Re: [PATCH v3 19/19] arm64: dts: imx8mq-zii-ultra: Add hog suffixes to GPIO hogs

2020-08-30 Thread Shawn Guo
On Tue, Aug 25, 2020 at 09:35:36PM +0200, Krzysztof Kozlowski wrote: > According to device tree specification, device node names should be > somewhat generic and reflecting the function of the device so add the > "hog" suffixes to all GPIO hog nodes. > > Signed-off-by: Krzysztof Kozlowski

Re: [PATCH v3 18/19] arm64: dts: imx8mq-evk: Add hog suffix to wl-reg-on

2020-08-30 Thread Shawn Guo
On Tue, Aug 25, 2020 at 09:35:35PM +0200, Krzysztof Kozlowski wrote: > According to device tree specification, device node names should be > somewhat generic and reflecting the function of the device so add the > "hog" suffix to wl-reg-on GPIO hog. > > Signed-off-by: Krzysztof Kozlowski

[PATCH v6 18/20] tools: gpio: port gpio-event-mon to v2 uAPI

2020-08-30 Thread Kent Gibson
Port the gpio-event-mon tool to the latest GPIO uAPI. Signed-off-by: Kent Gibson --- tools/gpio/gpio-event-mon.c | 91 +++-- 1 file changed, 47 insertions(+), 44 deletions(-) diff --git a/tools/gpio/gpio-event-mon.c b/tools/gpio/gpio-event-mon.c index

[PATCH v6 16/20] tools: gpio: rename nlines to num_lines

2020-08-30 Thread Kent Gibson
Rename nlines to num_lines to be consistent with other usage for fields describing the number of entries in an array. Signed-off-by: Kent Gibson --- tools/gpio/gpio-hammer.c | 26 +- tools/gpio/gpio-utils.c | 20 ++-- tools/gpio/gpio-utils.h | 6 +++---

[PATCH v6 14/20] tools: gpio: port lsgpio to v2 uAPI

2020-08-30 Thread Kent Gibson
Port the lsgpio tool to the latest GPIO uAPI. Signed-off-by: Kent Gibson --- tools/gpio/lsgpio.c | 60 - 1 file changed, 38 insertions(+), 22 deletions(-) diff --git a/tools/gpio/lsgpio.c b/tools/gpio/lsgpio.c index b08d7a5e779b..deda38244026 100644

[PATCH v6 15/20] tools: gpio: port gpio-watch to v2 uAPI

2020-08-30 Thread Kent Gibson
Port the gpio-watch tool to the latest GPIO uAPI. Signed-off-by: Kent Gibson --- tools/gpio/gpio-watch.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/gpio/gpio-watch.c b/tools/gpio/gpio-watch.c index 5cea24fddfa7..6f048350a27e 100644 ---

[PATCH v6 17/20] tools: gpio: port gpio-hammer to v2 uAPI

2020-08-30 Thread Kent Gibson
Port the gpio-hammer tool to the latest GPIO uAPI. Signed-off-by: Kent Gibson --- tools/gpio/gpio-hammer.c | 32 +++ tools/gpio/gpio-utils.c | 119 ++- tools/gpio/gpio-utils.h | 50 +--- 3 files changed, 128 insertions(+), 73

[PATCH v6 13/20] gpio: uapi: document uAPI v1 as deprecated

2020-08-30 Thread Kent Gibson
Update uAPI documentation to deprecate v1 structs and ioctls. Signed-off-by: Kent Gibson --- include/uapi/linux/gpio.h | 26 ++ 1 file changed, 26 insertions(+) diff --git a/include/uapi/linux/gpio.h b/include/uapi/linux/gpio.h index 0eb1f53b47e0..4af67415d73e 100644

[PATCH v6 12/20] gpiolib: cdev: support setting debounce

2020-08-30 Thread Kent Gibson
Add support for setting debounce on a line via the GPIO uAPI. Where debounce is not supported by hardware, a software debounce is provided. The implementation of the software debouncer waits for the line to be stable for the debounce period before determining if a level change, and a

[PATCH v6 10/20] gpiolib: cdev: support GPIO_V2_LINE_SET_CONFIG_IOCTL

2020-08-30 Thread Kent Gibson
Add support for GPIO_V2_LINE_SET_CONFIG_IOCTL, the uAPI v2 line set config ioctl. Signed-off-by: Kent Gibson --- drivers/gpio/gpiolib-cdev.c | 88 + 1 file changed, 88 insertions(+) diff --git a/drivers/gpio/gpiolib-cdev.c b/drivers/gpio/gpiolib-cdev.c index

Re: [PATCH v3 15/19] dt-bindings: arm: fsl: Add ZII Ultra boards binding

2020-08-30 Thread Shawn Guo
On Tue, Aug 25, 2020 at 09:35:32PM +0200, Krzysztof Kozlowski wrote: > Document the binding for Zodiac Inflight Innovations Ultra Boards. > > Signed-off-by: Krzysztof Kozlowski > Reviewed-by: Rob Herring Applied, thanks.

[PATCH v6 09/20] gpiolib: cdev: support edge detection for uAPI v2

2020-08-30 Thread Kent Gibson
Add support for edge detection to lines requested using GPIO_V2_GET_LINE_IOCTL. The edge_detector implementation is based on the v1 lineevent implementation. Signed-off-by: Kent Gibson --- drivers/gpio/gpiolib-cdev.c | 262 drivers/gpio/gpiolib.c | 2

[PATCH v6 08/20] gpiolib: cdev: support GPIO_V2_GET_LINEINFO_IOCTL and GPIO_V2_GET_LINEINFO_WATCH_IOCTL

2020-08-30 Thread Kent Gibson
Add support for GPIO_V2_GET_LINEINFO_IOCTL and GPIO_V2_GET_LINEINFO_WATCH_IOCTL. The core of this change is the event kfifo switching to contain struct gpioline_info_changed_v2, instead of v1 as v2 is richer. The two uAPI versions are mostly independent - other than where they both provide line

[PATCH v6 11/20] gpiolib: cdev: support GPIO_V2_LINE_SET_VALUES_IOCTL

2020-08-30 Thread Kent Gibson
Add support for the GPIO_V2_LINE_SET_VALUES_IOCTL. Signed-off-by: Kent Gibson --- drivers/gpio/gpiolib-cdev.c | 59 + 1 file changed, 59 insertions(+) diff --git a/drivers/gpio/gpiolib-cdev.c b/drivers/gpio/gpiolib-cdev.c index 936b8c9958dd..9f05bbd2161e

Re: [PATCH v3 14/19] dt-bindings: arm: fsl: Fix Toradex Colibri i.MX 8 binding

2020-08-30 Thread Shawn Guo
On Tue, Aug 25, 2020 at 09:35:31PM +0200, Krzysztof Kozlowski wrote: > The Toradex Colibri i.MX 8 Evaluation board has two Toradex compatibles > so it needs separate entry. This fixes dtbs_check warning: > > arch/arm64/boot/dts/freescale/imx8qxp-colibri-eval-v3.dt.yaml: /: > compatible:

[PATCH v6 07/20] gpiolib: cdev: support GPIO_V2_GET_LINE_IOCTL and GPIO_V2_LINE_GET_VALUES_IOCTL

2020-08-30 Thread Kent Gibson
Add support for requesting lines using the GPIO_V2_GET_LINE_IOCTL, and returning their current values using GPIO_V2_LINE_GET_VALUES_IOCTL. The struct linereq implementation is based on the v1 struct linehandle implementation. Signed-off-by: Kent Gibson --- The linereq_ioctl() is a simple

[PATCH v6 03/20] gpio: uapi: define GPIO_MAX_NAME_SIZE for array sizes

2020-08-30 Thread Kent Gibson
Replace constant array sizes with a macro constant to clarify the source of array sizes, provide a place to document any constraints on the size, and to simplify array sizing in userspace if constructing structs from their composite fields. Signed-off-by: Kent Gibson ---

[PATCH v6 02/20] gpiolib: cdev: replace strncpy with strscpy

2020-08-30 Thread Kent Gibson
Replace usage of strncpy with strscpy to remove -Wstringop-truncation warnings. The structs being populated are zeroed, to prevent stack leakage as they are returned to userspace, so strscpy performs the equivalent function without the warnings. Reported-by: kernel test robot Signed-off-by:

[PATCH v6 05/20] gpiolib: make cdev a build option

2020-08-30 Thread Kent Gibson
Make the gpiolib-cdev module a build option. This allows the CDEV interface to be removed from the kernel to reduce kernel size in applications where is it not required, and provides the parent for other other CDEV interface specific build options to follow. Suggested-by: Bartosz Golaszewski

[PATCH v6 06/20] gpiolib: add build option for CDEV v1 ABI

2020-08-30 Thread Kent Gibson
Add a build option to allow the removal of the CDEV v1 ABI. Suggested-by: Bartosz Golaszewski Signed-off-by: Kent Gibson --- This patch is before the v2 implementation, and is non-functional until that patch, as some parts of that patch would be written slightly differently if removing v1 was

[PATCH v6 04/20] gpio: uapi: define uAPI v2

2020-08-30 Thread Kent Gibson
Add a new version of the uAPI to address existing 32/64-bit alignment issues, add support for debounce and event sequence numbers, allow requested lines with different configurations, and provide some future proofing by adding padding reserved for future use. The alignment issue relates to the

[PATCH v6 01/20] gpiolib: cdev: desc_to_lineinfo should set info offset

2020-08-30 Thread Kent Gibson
Set the value of the line info offset in desc_to_lineinfo, rather than relying on it being passed in the info. This makes the function behave as you would expect from the name - it generates the line info corresponding to a given GPIO desc. Signed-off-by: Kent Gibson --- There are some

Re: [NAK] Re: [PATCH] fs: Optimized fget to improve performance

2020-08-30 Thread Al Viro
On Mon, Aug 31, 2020 at 09:43:31AM +0800, Shaokun Zhang wrote: > How about this? We try to replace atomic_cmpxchg with atomic_add to improve > performance. The atomic_add does not check the current f_count value. > Therefore, the number of online CPUs is reserved to prevent multi-core >

[PATCH v6 00/20] gpio: cdev: add uAPI v2

2020-08-30 Thread Kent Gibson
This patchset defines and implements a new version of the GPIO CDEV uAPI to address existing 32/64-bit alignment issues, add support for debounce, event sequence numbers, and allow for requested lines with different configurations. It provides some future proofing by adding optional configuration

Re: [PATCH 2/5] KVM: nVMX: Verify the VMX controls MSRs with the global capability when setting VMX MSRs

2020-08-30 Thread Chenyi Qiang
On 8/29/2020 2:23 AM, Jim Mattson wrote: On Fri, Aug 28, 2020 at 1:54 AM Chenyi Qiang wrote: When setting the nested VMX MSRs, verify it with the values in vmcs_config.nested_vmx_msrs, which reflects the global capability of VMX controls MSRs. Signed-off-by: Chenyi Qiang You seem to

[PATCH 2/6] ftrace: use fls() to get the bits for dup_hash()

2020-08-30 Thread Wei Yang
The effect here is to get the number of bits, lets use fls() to do this job. Signed-off-by: Wei Yang --- kernel/trace/ftrace.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 12cb535769bc..9021e16fa079 100644 ---

[PATCH 1/6] ftrace: define seq_file only for FMODE_READ

2020-08-30 Thread Wei Yang
The purpose of the operation is to get ftrace_iterator, which is embedded in file or seq_file for FMODE_WRITE/FMODE_READ respectively. Since we don't have a seq_file for FMODE_WRITE case, it is meaningless to cast file->private_data to seq_file. Let's move the definition when there is a valid

[PATCH 3/6] ftrace: simplify the dyn_ftrace->flags macro

2020-08-30 Thread Wei Yang
All the three macro are defined to be used for ftrace_rec_count(). This can be achieved by (flags & FTRACE_REF_MAX) directly. Since no other places would use those macros, remove them for clarity. Also it fixes a typo in the comment. Signed-off-by: Wei Yang --- include/linux/ftrace.h | 7

[PATCH 4/6] ftrace: simplify the calculation of page number for ftrace_page->records

2020-08-30 Thread Wei Yang
Based on the following two reasones, we could simplify the calculation: - If the number after roundup count is not power of 2, we would definitely have more than 1 empty page with a higher order. - get_count_order() just return current order, so one lower order could meet the

[PATCH 5/6] ftrace: replace do_for_each_ftrace_rec() with for_ftrace_rec_iter()

2020-08-30 Thread Wei Yang
Now we have two similar infrastructure to iterate ftrace_page and dyn_ftrace: * do_for_each_ftrace_rec() * for_ftrace_rec_iter() The 2nd one, for_ftrace_rec_iter(), looks more generic, so preserve it and replace do_for_each_ftrace_rec() with it. Signed-off-by: Wei Yang ---

[PATCH 6/6] ftrace: ftrace_global_list is renamed to ftrace_ops_list

2020-08-30 Thread Wei Yang
Fix the comment to comply with the code. Signed-off-by: Wei Yang --- include/linux/ftrace.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 23c4d6526998..8e1fd97343c6 100644 --- a/include/linux/ftrace.h +++

[PATCH 0/6] ftrace: trivial cleanup

2020-08-30 Thread Wei Yang
Trivial cleanups relates to ftrace. Wei Yang (6): ftrace: define seq_file only for FMODE_READ ftrace: use fls() to get the bits for dup_hash() ftrace: simplify the dyn_ftrace->flags macro ftrace: simplify the calculation of page number for ftrace_page->records ftrace: replace

[PATCH] bus: arm: Add of_node_put() before break statement

2020-08-30 Thread Sumera Priyadarsini
Every iteration of for_each_available_child_of_node() decrements the reference count of the previous node, however when control is transferred from the middle of the loop, as in the case of a return or break or goto, there is no decrement thus ultimately resulting in a memory leak. Fix a

Re: [PATCH v4 2/2] usb typec: mt6360: Add MT6360 Type-C DT binding documentation

2020-08-30 Thread Chunfeng Yun
On Sat, 2020-08-29 at 10:49 +0800, ChiYuan Huang wrote: > ChiYuan Huang 於 2020年8月29日 週六 上午8:32寫道: > > > > Rob Herring 於 2020年8月29日 週六 上午6:05寫道: > > > > > > On Fri, Aug 28, 2020 at 06:30:36PM +0800, cy_huang wrote: > > > > From: ChiYuan Huang > > > > > > > > Add a devicetree binding

Re: [PATCH v2] kprobes: Fix kill kprobe which has been marked as gone

2020-08-30 Thread Muchun Song
Cc Andrew and Steven. Any other comments or someone can add this to the queue for the merge window? It's worth fixing it. On Sat, Aug 22, 2020 at 11:01 AM Muchun Song wrote: > > If a kprobe is marked as gone, we should not kill it again. Otherwise, > we can disarm the kprobe more than once. In

  1   2   3   4   5   6   >