Re: [PATCH v2 5/6] mm: tlb: Provide flush_*_tlb_range wrappers

2020-05-22 Thread Catalin Marinas
On Thu, Apr 23, 2020 at 09:56:55PM +0800, Zhenyu Ye wrote: > diff --git a/mm/pgtable-generic.c b/mm/pgtable-generic.c > index 3d7c01e76efc..3eff199d3507 100644 > --- a/mm/pgtable-generic.c > +++ b/mm/pgtable-generic.c > @@ -101,6 +101,28 @@ pte_t ptep_clear_flush(struct vm_area_struct *vma, >

Re: [PATCH V5 3/5] iio: adc: Add support for PMIC7 ADC

2020-05-22 Thread Andy Shevchenko
On Fri, May 22, 2020 at 6:37 PM Andy Shevchenko wrote: > > On Fri, May 22, 2020 at 5:25 PM Jishnu Prakash > wrote: > > > > The ADC architecture on PMIC7 is changed as compared to PMIC5. The > > major change from PMIC5 is that all SW communication to ADC goes through > > PMK8350, which

Re: [PATCH v3 2/2] mm, memcg: Decouple e{low,min} state mutations from protection checks

2020-05-22 Thread Naresh Kamboju
On Fri, 22 May 2020 at 17:15, Chris Down wrote: > > Naresh Kamboju writes: > >This patch is causing oom-killer while running mkfs -t ext4 on i386 kernel > >running on x86_64 machine version linux-next 5.7.0-rc6-next-20200521. > > I think I see what's wrong here -- if we bail out early,

Re: [PATCH v5 0/8] clocksource: Fix MIPS GIC and DW APB Timer for Baikal-T1 SoC support

2020-05-22 Thread Serge Semin
On Fri, May 22, 2020 at 05:28:42PM +0200, Daniel Lezcano wrote: > On 21/05/2020 22:48, Serge Semin wrote: > > As for all Baikal-T1 SoC related patchsets, which need this, we replaced > > the DW APB Timer legacy plain text-based dt-binding file with DT schema. > > Similarly the MIPS GIC bindings

Re: [PATCH V5 5/5] iio: adc: Clean up ADC code common to PMIC5 and PMIC7

2020-05-22 Thread Andy Shevchenko
On Fri, May 22, 2020 at 5:25 PM Jishnu Prakash wrote: > > This commit includes the following changes: > > Add a common function used for read_raw callback for both PMIC5 > and PMIC7 ADCs. > > Add exit function for ADC. > > Add info_property under adc_data to more efficiently distinguish > PMIC5

Re: drivers/ide/ide-ioctls.c:15:24: sparse: sparse: incorrect type in initializer (different address spaces)

2020-05-22 Thread Al Viro
363edd539d411de5 > > commit: 1df23c6fe5b0654ece219985a0c32e40b100bd9a compat_ioctl: move HDIO > > ioctl handling into drivers/ide > > date: 5 months ago > > config: xtensa-randconfig-s002-20200522 (attached as .config) > > compiler: xtensa-linux-gcc (GCC) 9.3.0 > > repro

Re: [PATCH V5 4/5] iio: adc: Update debug prints

2020-05-22 Thread Andy Shevchenko
On Fri, May 22, 2020 at 5:25 PM Jishnu Prakash wrote: > > Change pr_err/pr_debug statements to dev_err/dev_dbg for > increased clarity. > Reviewed-by: Andy Shevchenko In the same way you should have patch with removal of ' < 0' parts. > Signed-off-by: Jishnu Prakash > --- >

Re: [PATCH v4 5/5] mtd: rawnand: brcmnand: support v2.1-v2.2 controllers

2020-05-22 Thread Florian Fainelli
On 5/22/2020 5:15 AM, Álvaro Fernández Rojas wrote: > v2.1: tested on Netgear DGND3700v1 (BCM6368) > v2.2: tested on Netgear DGND3700v2 (BCM6362) > > Signed-off-by: Álvaro Fernández Rojas Acked-by: Florian Fainelli -- Florian

Re: [PATCH v8 3/3] PM / AVS: SVS: Introduce SVS engine

2020-05-22 Thread Matthias Brugger
On 22/05/2020 11:40, Roger Lu wrote: > > Hi Enric, > > On Tue, 2020-05-19 at 17:30 +0200, Enric Balletbo Serra wrote: >> Hi Roger, >> >> Thank you for your patch. I have the feeling that this driver is >> complex and difficult to follow and I am wondering if it wouldn't be >> better if you

Re: [PATCH V5 3/5] iio: adc: Add support for PMIC7 ADC

2020-05-22 Thread Andy Shevchenko
On Fri, May 22, 2020 at 5:25 PM Jishnu Prakash wrote: > > The ADC architecture on PMIC7 is changed as compared to PMIC5. The > major change from PMIC5 is that all SW communication to ADC goes through > PMK8350, which communicates with other PMICs through PBS when the ADC > on PMK8350 works in

[PATCH] drm/panfrost: Fix inbalance of devfreq record_busy/idle()

2020-05-22 Thread Steven Price
The calls to panfrost_devfreq_record_busy() and panfrost_devfreq_record_idle() must be balanced to ensure that the devfreq utilisation is correctly reported. But there are two cases where this doesn't work correctly. In panfrost_job_hw_submit() if pm_runtime_get_sync() fails or the WARN_ON()

Re: [v4,7/7] thermal: mediatek: use spinlock to protect PTPCORESEL

2020-05-22 Thread Daniel Lezcano
On 23/03/2020 13:15, Michael Kao wrote: > From: "michael.kao" > > The driver of thermal and svs will use the > same register for the project which should select > bank before reading sensor value. Here there is a design problem AFAICT. The sensor should not be using external locks. >

Re: [PATCH] [v3] usb: musb: Fix runtime PM imbalance on error

2020-05-22 Thread Bin Liu
On Fri, May 22, 2020 at 01:42:35PM +0800, Dinghao Liu wrote: > When copy_from_user() returns an error code, there > is a runtime PM usage counter imbalance. > > Fix this by moving copy_from_user() to the beginning > of this function. > > Signed-off-by: Dinghao Liu > --- > > Changelog: > > v2:

Re: [PATCH net-next] net: phy: mscc: fix initialization of the MACsec protocol mode

2020-05-22 Thread Antoine Tenart
Quoting David Miller (2020-05-22 02:31:05) > From: Antoine Tenart > Date: Wed, 20 May 2020 12:03:55 +0200 > > > What's the best way to handle this? I can provide all the patches. > > Resubmit this against 'net' please, then I'll deal with the fallout > when I merge net into net-next. OK, I'll

Re: Writeback bug causing writeback stalls

2020-05-22 Thread Jan Kara
On Fri 22-05-20 17:23:30, Martijn Coenen wrote: > [ dropped android-storage-c...@google.com from CC: since that list > can't receive emails from outside google.com - sorry about that ] > > Hi Jan, > > On Fri, May 22, 2020 at 4:41 PM Jan Kara wrote: > > > The easiest way to fix this, I think, is

Re: [PATCH v4 4/5] dt: bindings: brcmnand: add v2.1 and v2.2 support

2020-05-22 Thread Florian Fainelli
On 5/22/2020 5:15 AM, Álvaro Fernández Rojas wrote: > Added brcm,brcmnand-v2.1 and brcm,brcmnand-v2.2 as possible compatible > strings to support brcmnand controllers v2.1 and v2.2. > > Signed-off-by: Álvaro Fernández Rojas Acked-by: Florian Fainelli -- Florian

Re: [PATCH v4 3/5] mtd: rawnand: brcmnand: rename page sizes

2020-05-22 Thread Florian Fainelli
On 5/22/2020 5:15 AM, Álvaro Fernández Rojas wrote: > Current pages sizes apply to controllers after v3.4 > > Signed-off-by: Álvaro Fernández Rojas Acked-by: Florian Fainelli -- Florian

Re: [PATCH v5 06/11] net: ethernet: mtk-star-emac: new driver

2020-05-22 Thread Bartosz Golaszewski
pt., 22 maj 2020 o 17:06 Matthias Brugger napisał(a): > > > > On 22/05/2020 14:06, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > This adds the driver for the MediaTek STAR Ethernet MAC currently used > > on the MT8* SoC family. For now we only support full-duplex. > > MT85**

Re: [PATCH v4 2/5] mtd: rawnand: brcmnand: fix CS0 layout

2020-05-22 Thread Florian Fainelli
On 5/22/2020 5:15 AM, Álvaro Fernández Rojas wrote: > Only v3.3-v5.0 have a different CS0 layout. > Controllers before v3.3 use the same layout for every CS. > > Fixes: 27c5b17cd1b1 ("mtd: nand: add NAND driver "library" for Broadcom STB > NAND controller") > Signed-off-by: Álvaro Fernández

Re: [v4,5/7] thermal: mediatek: mt8183: fix bank number settings

2020-05-22 Thread Daniel Lezcano
On 23/03/2020 13:15, Michael Kao wrote: > MT8183_NUM_ZONES should be set to 1 > because MT8183 doesn't have multiple banks. Apparently this is a hot fix. Can you confirm and explain what is the procedure to hit the bug? I'll pick it for the next -rc if possible > Fixes: a4ffe6b52d27 ("thermal:

Re: [PATCH v4 1/5] mtd: rawnand: brcmnand: rename v4 registers

2020-05-22 Thread Florian Fainelli
On 5/22/2020 5:15 AM, Álvaro Fernández Rojas wrote: > These registers are also used on v3.3. > > Signed-off-by: Álvaro Fernández Rojas > Reviewed-by: Miquel Raynal Acked-by: Florian Fainelli -- Florian

Re: [PATCH v7 02/20] spi: spi-mem: allow specifying a command's extension

2020-05-22 Thread Boris Brezillon
On Fri, 22 May 2020 15:42:43 +0530 Pratyush Yadav wrote: > In xSPI mode, flashes expect 2-byte opcodes. The second byte is called > the "command extension". There can be 3 types of extensions in xSPI: > repeat, invert, and hex. When the extension type is "repeat", the same > opcode is sent

Re: [v4,6/7] thermal: mediatek: add another get_temp ops for thermal sensors

2020-05-22 Thread Daniel Lezcano
On 23/03/2020 13:15, Michael Kao wrote: > Provide thermal zone to read thermal sensor > in the SoC. We can read all the thermal sensors > value in the SoC by the node /sys/class/thermal/ > > In mtk_thermal_bank_temperature, return -EAGAIN instead of -EACCESS > on the first read of sensor that

Re: [PATCH V4 3/5] iio: adc: Add support for PMIC7 ADC

2020-05-22 Thread Andy Shevchenko
On Fri, May 22, 2020 at 2:58 PM Jishnu Prakash wrote: > On 5/13/2020 3:18 PM, Andy Shevchenko wrote: > > On Wed, May 13, 2020 at 12:23 PM Jishnu Prakash > > wrote: ... > >> +static int qcom_vadc7_scale_hw_calib_die_temp( > >> + const struct vadc_prescale_ratio

[PATCH] net: stmmac: don't attach interface until resume finishes

2020-05-22 Thread Leon Yu
Commit 14b41a2959fb ("net: stmmac: Delete txtimer in suspend") was the first attempt to fix a race between mod_timer() and setup_timer() during stmmac_resume(). However the issue still exists as the commit only addressed half of the issue. Same race can still happen as stmmac_resume() re-attaches

Re: [PATCH v2] serial: kgdboc: Allow earlycon initialization to be deferred

2020-05-22 Thread Daniel Thompson
On Thu, May 21, 2020 at 10:18:10AM -0700, Doug Anderson wrote: > Hi, > > On Thu, Apr 30, 2020 at 9:47 AM Doug Anderson wrote: > > > > Hi, > > > > On Thu, Apr 30, 2020 at 9:18 AM Daniel Thompson > > wrote: > > > > > > Currently there is no guarantee that an earlycon will be initialized > > >

Re: [PATCH] csky: Fixup calltrace panic

2020-05-22 Thread Guo Ren
Hi, On Thu, May 21, 2020 at 10:46 PM Guenter Roeck wrote: > > We tested it with https://github.com/c-sky/gcc (gcc-6.3) > > > > That won't work for me. You really might want to consider > supporting upstream gcc. I'll try disabling CONFIG_STACKTRACE > for csky build tests. If that doesn't work, I

Re: [PATCH v5 0/8] clocksource: Fix MIPS GIC and DW APB Timer for Baikal-T1 SoC support

2020-05-22 Thread Daniel Lezcano
On 21/05/2020 22:48, Serge Semin wrote: > As for all Baikal-T1 SoC related patchsets, which need this, we replaced > the DW APB Timer legacy plain text-based dt-binding file with DT schema. > Similarly the MIPS GIC bindings file is also converted to DT schema seeing > it also defines the MIPS GIC

Re: [PATCH v5 06/11] net: ethernet: mtk-star-emac: new driver

2020-05-22 Thread Bartosz Golaszewski
pt., 22 maj 2020 o 17:06 Matthias Brugger napisał(a): > > On 22/05/2020 14:06, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > This adds the driver for the MediaTek STAR Ethernet MAC currently used > > on the MT8* SoC family. For now we only support full-duplex. > > MT85** SoC

Re: [PATCH v2] i2c: cadence: Add an error handling for platform_get_irq()

2020-05-22 Thread Michal Simek
On 22. 05. 20 17:14, Wolfram Sang wrote: > >> The change is valid but the question is if make sense to do it in this >> way. Some drivers are using devm_request_irq to do do job. >> >> For example: >> id->irq = platform_get_irq(pdev, 0); >> ret = devm_request_irq(>dev, id->irq,

Re: [PATCH v1] sdhci: tegra: Remove warnings about missing device-tree properties

2020-05-22 Thread Thierry Reding
On Fri, May 22, 2020 at 08:22:47AM -0700, Sowjanya Komatineni wrote: > > On 5/22/20 5:34 AM, Thierry Reding wrote: > > On Fri, May 22, 2020 at 03:18:40PM +0300, Dmitry Osipenko wrote: > > > 22.05.2020 15:13, Thierry Reding пишет: > > > > On Wed, May 20, 2020 at 09:09:33AM -0700, Sowjanya

Re: Writeback bug causing writeback stalls

2020-05-22 Thread Martijn Coenen
[ dropped android-storage-c...@google.com from CC: since that list can't receive emails from outside google.com - sorry about that ] Hi Jan, On Fri, May 22, 2020 at 4:41 PM Jan Kara wrote: > > The easiest way to fix this, I think, is to call requeue_inode() at the end > > of > >

Re: [PATCH 2/2] docs: lzo: fix incorrect statement about distance zero for EOS

2020-05-22 Thread Dave Rodgman
Looks good to me, thanks Dave On 22/05/2020, 15:11, "C. Masloch" wrote: The encoded distance bits are zero, but the distance that is calculated from this is actually equal to 16384. So correct this statement to read that the 0001HLLL instruction means EOS when a distance of

Re: [PATCH v4 01/16] spi: dw: Add Tx/Rx finish wait methods to the MID DMA

2020-05-22 Thread Mark Brown
On Fri, May 22, 2020 at 05:45:42PM +0300, Serge Semin wrote: > On Fri, May 22, 2020 at 05:36:39PM +0300, Andy Shevchenko wrote: > > My point is: let's warn and see if anybody comes with a bug report. We will > > solve an issue when it appears. > In my environment the stack trace happened

Re: [PATCH v1] sdhci: tegra: Remove warnings about missing device-tree properties

2020-05-22 Thread Sowjanya Komatineni
On 5/22/20 5:34 AM, Thierry Reding wrote: On Fri, May 22, 2020 at 03:18:40PM +0300, Dmitry Osipenko wrote: 22.05.2020 15:13, Thierry Reding пишет: On Wed, May 20, 2020 at 09:09:33AM -0700, Sowjanya Komatineni wrote: On 5/20/20 4:26 AM, Ulf Hansson wrote: On Wed, 20 May 2020 at 04:00,

Re: [PATCH 1/2] docs: lzo: fix first byte interpretation off-by-one

2020-05-22 Thread Dave Rodgman
Your update looks correct to me, thanks. Dave On 22/05/2020, 15:11, "C. Masloch" wrote: There was an error in the description of the initial byte's interpretation. While "18..21" was listed as "copy 0..3 literals", it should actually be interpreted as "copy 1..4 literals".

Re: Re: [PATCH] spi: tegra20-slink: Fix runtime PM imbalance on error

2020-05-22 Thread Andy Shevchenko
On Fri, May 22, 2020 at 6:20 PM Andy Shevchenko wrote: > On Fri, May 22, 2020 at 10:46 AM wrote: ... > Moreover, consider below case > > CPU1: ...somewhere in the code... > pm_runtime_get() // with success! > ...see below... > pm_runtime_put() > > CPU2: ...on parallel thread... > ret =

Re: [PATCH v10 5/5] MIPS: Loongson64: Switch to generic PCI driver

2020-05-22 Thread Lorenzo Pieralisi
On Fri, May 22, 2020 at 04:25:50PM +0200, Thomas Bogendoerfer wrote: > On Thu, May 14, 2020 at 09:16:41PM +0800, Jiaxun Yang wrote: > > We can now enable generic PCI driver in Kconfig, and remove legacy > > PCI driver code. > > > > Radeon vbios quirk is moved to the platform folder to fit the > >

Re: Re: [PATCH] spi: tegra20-slink: Fix runtime PM imbalance on error

2020-05-22 Thread Andy Shevchenko
On Fri, May 22, 2020 at 10:46 AM wrote: > > Hi Andy, > > Thank you for your advice! You are welcome, but please, stop top-posting. > Your suggestion is to use pm_runtime_put_noidle(), right? > The only difference between pm_runtime_put() and this function > is that pm_runtime_put() will run an

Re: [PATCH v1 02/25] mm/swap: Don't abuse the seqcount latching API

2020-05-22 Thread Sebastian A. Siewior
On 2020-05-22 16:57:07 [+0200], Peter Zijlstra wrote: > > @@ -725,21 +735,48 @@ void lru_add_drain_all(void) > > if (WARN_ON(!mm_percpu_wq)) > > return; > > > > > + this_gen = READ_ONCE(lru_drain_gen); > > + smp_rmb(); > > this_gen = smp_load_acquire(_drain_gen); > >

Re: [PATCH] i2c: nvidia-gpu: Use PTR_ERR_OR_ZERO() to simplify code

2020-05-22 Thread Wolfram Sang
On Tue, May 05, 2020 at 08:22:30PM +0530, Aishwarya Ramakrishnan wrote: > PTR_ERR_OR_ZERO contains if(IS_ERR(...)) + PTR_ERR. > > Generated by: scripts/coccinelle/api/ptr_ret.cocci > > Signed-off-by: Aishwarya Ramakrishnan Waiting for the Rev-by from Ajay (driver maintainer). > --- >

Re: [PATCH 3/3] selftests: vdso: Add a selftest for vDSO getcpu()

2020-05-22 Thread shuah
On 5/22/20 9:12 AM, Mark Brown wrote: On Fri, May 22, 2020 at 08:55:50AM -0600, shuah wrote: On 5/19/20 11:44 AM, Mark Brown wrote: WARNING: Missing a blank line after declarations WARNING: Missing a blank line after declarations #135: FILE:

Re: [PATCH v5 0/5] Nvidia Arm SMMUv2 Implementation

2020-05-22 Thread Thierry Reding
On Thu, May 21, 2020 at 04:31:02PM -0700, Krishna Reddy wrote: > Changes in v5: > Rebased on top of > git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git next > > v4 - https://lkml.org/lkml/2019/10/30/1054 > v3 - https://lkml.org/lkml/2019/10/18/1601 > v2 -

Re: [PATCH v2] i2c: cadence: Add an error handling for platform_get_irq()

2020-05-22 Thread Wolfram Sang
> The change is valid but the question is if make sense to do it in this > way. Some drivers are using devm_request_irq to do do job. > > For example: > id->irq = platform_get_irq(pdev, 0); > ret = devm_request_irq(>dev, id->irq, cdns_i2c_isr, 0, >

Re: [PATCH 1/4] clk: sunxi-ng: add support for the Allwinner A100 CCU

2020-05-22 Thread Maxime Ripard
Hi, On Fri, May 22, 2020 at 11:07:40AM +0800, Frank Lee wrote: > Add support for a100 in the sunxi-ng CCU framework. > > Signed-off-by: Frank Lee > --- > drivers/clk/sunxi-ng/Kconfig | 10 + > drivers/clk/sunxi-ng/Makefile |2 + >

Re: [PATCH 3/8] srcu: Use local_lock() for per-CPU struct srcu_data access

2020-05-22 Thread Sebastian Andrzej Siewior
On 2020-05-20 11:43:45 [-0700], Paul E. McKenney wrote: > > Yes, that CPU's rcu_segcblist structure does need mutual exclusion in > this case. This is because rcu_segcblist_pend_cbs() looks not just > at the ->tails[] pointer, but also at the pointer referenced by the > ->tails[] pointer. This

Re: [PATCH] sdhci: tegra: Avoid reading autocal timeout values when not applicable

2020-05-22 Thread Sowjanya Komatineni
On 5/22/20 5:52 AM, Thierry Reding wrote: On Fri, May 22, 2020 at 03:42:18PM +0300, Dmitry Osipenko wrote: 22.05.2020 15:26, Thierry Reding пишет: On Wed, May 20, 2020 at 01:08:57PM -0700, Sowjanya Komatineni wrote: When auto calibration timeouts, calibration is disabled and fail-safe drive

Re: [PATCH 3/3] selftests: vdso: Add a selftest for vDSO getcpu()

2020-05-22 Thread Mark Brown
On Fri, May 22, 2020 at 08:55:50AM -0600, shuah wrote: > On 5/19/20 11:44 AM, Mark Brown wrote: > > > WARNING: Missing a blank line after declarations > > > WARNING: Missing a blank line after declarations > > > #135: FILE: tools/testing/selftests/vDSO/vdso_test_getcpu.c:27: > > > + unsigned long

Re: [RFC PATCH 5/5] selftest/x86: Add CET quick test

2020-05-22 Thread Yu-cheng Yu
On Fri, 2020-05-22 at 11:28 +0200, Peter Zijlstra wrote: > On Thu, May 21, 2020 at 02:17:20PM -0700, Yu-cheng Yu wrote: > > > +#pragma GCC push_options > > +#pragma GCC optimize ("O0") > > +void ibt_violation(void) > > +{ > > +#ifdef __i386__ > > + asm volatile("lea 1f, %eax"); > > + asm

Re: [PATCH] i2c: drivers: Omit superfluous error message in efm32_i2c_probe()

2020-05-22 Thread Wolfram Sang
On Fri, May 22, 2020 at 05:04:18PM +0200, Wolfram Sang wrote: > On Wed, Apr 15, 2020 at 09:57:34PM +0800, Tang Bin wrote: > > In the function efm32_i2c_probe(),when get irq failed,the function > > platform_get_irq() logs an error message,so remove redundant message > > here. > > > >

Re: [PATCH] i2c: drivers: Avoid unnecessary check in efm32_i2c_probe()

2020-05-22 Thread Wolfram Sang
On Wed, Apr 15, 2020 at 10:06:40PM +0800, Tang Bin wrote: > The function efm32_i2c_probe() is only called with an > openfirmware platform device.Therefore there is no need > to check that it has an openfirmware node. > > Signed-off-by: Tang Bin > Signed-off-by: Shengju Zhang Applied to

Re: [PATCH v5 06/11] net: ethernet: mtk-star-emac: new driver

2020-05-22 Thread Matthias Brugger
On 22/05/2020 14:06, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > This adds the driver for the MediaTek STAR Ethernet MAC currently used > on the MT8* SoC family. For now we only support full-duplex. MT85** SoC family, AFAIU it's not used on MT81** devices. Correct? > >

Re: [PATCH] i2c: drivers: Omit superfluous error message in efm32_i2c_probe()

2020-05-22 Thread Wolfram Sang
On Wed, Apr 15, 2020 at 09:57:34PM +0800, Tang Bin wrote: > In the function efm32_i2c_probe(),when get irq failed,the function > platform_get_irq() logs an error message,so remove redundant message > here. > > Signed-off-by: Tang Bin > Signed-off-by: Shengju Zhang Applied to for-next, thanks!

Re: [PATCH] gpio: gpio-max730x: bring gpiochip_add_data after port config

2020-05-22 Thread Bartosz Golaszewski
czw., 14 maj 2020 o 15:00 Rodrigo Alencar <455.rodrigo.alen...@gmail.com> napisał(a): > > gpiochip_add_data being called before might cause premature calls of > the gpiochip operations before the port_config values are initialized, > which would possibily write zeros to port gonfiguration

Re: [PATCH 0/4] Allwinner A100 Initial support

2020-05-22 Thread Maxime Ripard
Hi, On Fri, May 22, 2020 at 11:07:39AM +0800, Frank Lee wrote: > This patch set adds initial support for allwinner a100 soc, > which is a 64-bit tablet chip. The patches are mostly good for a first iteration, thanks! Could you provide a bit more context on what that SoC is and if the user

Re: [PATCH 05/11] mmc: sdio: Move SDIO IDs from btmtksdio driver to common include file

2020-05-22 Thread Matthias Brugger
On 22/05/2020 16:44, Pali Rohár wrote: > Define appropriate macro names for consistency with other macros. > > Signed-off-by: Pali Rohár Reviewed-by: Matthias Brugger > --- > drivers/bluetooth/btmtksdio.c | 4 ++-- > include/linux/mmc/sdio_ids.h | 2 ++ > 2 files changed, 4

Re: [PATCH] selftests:mptcp: fix empty optstring

2020-05-22 Thread shuah
On 5/10/20 10:47 PM, Li Zhijian wrote: ping On 4/2/20 2:52 PM, Li Zhijian wrote: From: Li Zhijian Signed-off-by: Li Zhijian ---   tools/testing/selftests/net/mptcp/pm_netlink.sh | 3 +--   1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH AUTOSEL 5.6 02/41] ARM: dts: rockchip: fix phy nodename for rk3228-evb

2020-05-22 Thread Sasha Levin
From: Johan Jonker [ Upstream commit 287e0d538fcec2f6e8eb1e565bf0749f3b90186d ] A test with the command below gives for example this error: arch/arm/boot/dts/rk3228-evb.dt.yaml: phy@0: '#phy-cells' is a required property The phy nodename is normally used by a phy-handle. This node is however

[PATCH AUTOSEL 5.6 07/41] ARM: dts: rockchip: fix pinctrl sub nodename for spi in rk322x.dtsi

2020-05-22 Thread Sasha Levin
From: Johan Jonker [ Upstream commit 855bdca1781c79eb661f89c8944c4a719ce720e8 ] A test with the command below gives these errors: arch/arm/boot/dts/rk3229-evb.dt.yaml: spi-0: '#address-cells' is a required property arch/arm/boot/dts/rk3229-evb.dt.yaml: spi-1: '#address-cells' is a required

[PATCH AUTOSEL 5.6 05/41] arm64: dts: rockchip: swap interrupts interrupt-names rk3399 gpu node

2020-05-22 Thread Sasha Levin
From: Johan Jonker [ Upstream commit c604fd810bda667bdc20b2c041917baa7803e0fb ] Dts files with Rockchip rk3399 'gpu' nodes were manually verified. In order to automate this process arm,mali-midgard.txt has been converted to yaml. In the new setup dtbs_check with arm,mali-midgard.yaml expects

[PATCH AUTOSEL 5.6 18/41] drm/amd/powerplay: perform PG ungate prior to CG ungate

2020-05-22 Thread Sasha Levin
From: Evan Quan [ Upstream commit f4fcfa4282c1a1bf51475ebb0ffda623eebf1191 ] Since gfxoff should be disabled first before trying to access those GC registers. Signed-off-by: Evan Quan Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 5.6 20/41] Revert "gfs2: Don't demote a glock until its revokes are written"

2020-05-22 Thread Sasha Levin
From: Bob Peterson [ Upstream commit b14c94908b1b884276a6608dea3d0b1b510338b7 ] This reverts commit df5db5f9ee112e76b5202fbc331f990a0fc316d6. This patch fixes a regression: patch df5db5f9ee112 allowed function run_queue() to bypass its call to do_xmote() if revokes were queued for the glock.

[PATCH AUTOSEL 5.6 16/41] gfs2: Grab glock reference sooner in gfs2_add_revoke

2020-05-22 Thread Sasha Levin
From: Andreas Gruenbacher [ Upstream commit f4e2f5e1a527ce58fc9f85145b03704779a3123e ] This patch rearranges gfs2_add_revoke so that the extra glock reference is added earlier on in the function to avoid races in which the glock is freed before the new reference is taken. Signed-off-by:

[PATCH AUTOSEL 5.6 10/41] ARM: dts: omap4-droid4: Fix flakey wlan by disabling internal pull for gpio

2020-05-22 Thread Sasha Levin
From: Tony Lindgren [ Upstream commit 30fa60c678eaa27b8f2a531920d77f7184658f73 ] The wlan on droid4 is flakey on some devices, and experiments have shown this gets fixed if we disable the internal pull for wlan gpio interrupt line. The symptoms are that the wlan connection is very slow and

[PATCH AUTOSEL 5.6 09/41] ALSA: usb-audio: add mapping for ASRock TRX40 Creator

2020-05-22 Thread Sasha Levin
From: Andrew Oakley [ Upstream commit da7a8f1a8fc3e14c6dcc52b4098bddb8f20390be ] This is another TRX40 based motherboard with ALC1220-VB USB-audio that requires a static mapping table. This motherboard also has a PCI device which advertises no codecs. The PCI ID is 1022:1487 and PCI SSID is

Re: [PATCH v3 3/5] sched/deadline: Improve admission control for asymmetric CPU capacities

2020-05-22 Thread Juri Lelli
On 20/05/20 15:42, Dietmar Eggemann wrote: > From: Luca Abeni > > The current SCHED_DEADLINE (DL) admission control ensures that > > sum of reserved CPU bandwidth < x * M > > where > > x = /proc/sys/kernel/sched_rt_{runtime,period}_us > M = # CPUs in root domain. > > DL admission

Re: [PATCH v2 1/4] dt-bindings: iio: imu: bmi160: convert txt format to yaml

2020-05-22 Thread Daniel Baluta
On 22.05.2020 17:26, Jonathan Albrieux wrote: On Fri, May 22, 2020 at 01:47:21PM +0300, Daniel Baluta wrote: + +maintainers: + - can't find a mantainer, author is Daniel Baluta Daniel is still active in the kernel, just not at Intel any more. +CC Oh ok thank you! Daniel are you still

Re: [PATCH v3 5/5] sched/deadline: Implement fallback mechanism for !fit case

2020-05-22 Thread Juri Lelli
On 20/05/20 15:42, Dietmar Eggemann wrote: > From: Luca Abeni > > When a task has a runtime that cannot be served within the scheduling > deadline by any of the idle CPU (later_mask) the task is doomed to miss > its deadline. > > This can happen since the SCHED_DEADLINE admission control

Re: [PATCH v3 4/5] sched/deadline: Make DL capacity-aware

2020-05-22 Thread Juri Lelli
On 20/05/20 15:42, Dietmar Eggemann wrote: > From: Luca Abeni > > The current SCHED_DEADLINE (DL) scheduler uses a global EDF scheduling > algorithm w/o considering CPU capacity or task utilization. > This works well on homogeneous systems where DL tasks are guaranteed > to have a bounded

[PATCH AUTOSEL 5.6 15/41] gfs2: don't call quota_unhold if quotas are not locked

2020-05-22 Thread Sasha Levin
From: Bob Peterson [ Upstream commit c9cb9e381985bbbe8acd2695bbe6bd24bf06b81c ] Before this patch, function gfs2_quota_unlock checked if quotas are turned off, and if so, it branched to label out, which called gfs2_quota_unhold. With the new system of gfs2_qa_get and put, we no longer want to

[PATCH AUTOSEL 5.6 08/41] gpio: tegra: mask GPIO IRQs during IRQ shutdown

2020-05-22 Thread Sasha Levin
From: Stephen Warren [ Upstream commit 0cf253eed5d2bdf7bb3152457b38f39b012955f7 ] The driver currently leaves GPIO IRQs unmasked even when the GPIO IRQ client has released the GPIO IRQ. This allows the HW to raise IRQs, and SW to process them, after shutdown. Fix this by masking the IRQ when

[PATCH AUTOSEL 5.6 12/41] net: microchip: encx24j600: add missed kthread_stop

2020-05-22 Thread Sasha Levin
From: Chuhong Yuan [ Upstream commit ff8ce319e9c25e920d994cc35236f0bb32dfc8f3 ] This driver calls kthread_run() in probe, but forgets to call kthread_stop() in probe failure and remove. Add the missed kthread_stop() to fix it. Signed-off-by: Chuhong Yuan Signed-off-by: David S. Miller

[PATCH AUTOSEL 5.6 14/41] gfs2: move privileged user check to gfs2_quota_lock_check

2020-05-22 Thread Sasha Levin
From: Bob Peterson [ Upstream commit 4ed0c30811cb4d30ef89850b787a53a84d5d2bcb ] Before this patch, function gfs2_quota_lock checked if it was called from a privileged user, and if so, it bypassed the quota check: superuser can operate outside the quotas. That's the wrong place for the check

[PATCH AUTOSEL 5.6 21/41] cachefiles: Fix race between read_waiter and read_copier involving op->to_do

2020-05-22 Thread Sasha Levin
From: Lei Xue [ Upstream commit 7bb0c5338436dae953622470d52689265867f032 ] There is a potential race in fscache operation enqueuing for reading and copying multiple pages from cachefiles to netfs. The problem can be seen easily on a heavy loaded system (for example many processes reading files

[PATCH AUTOSEL 5.6 26/41] drm/amd/amdgpu: Update update_config() logic

2020-05-22 Thread Sasha Levin
From: "Leo (Hanghong) Ma" [ Upstream commit 650e723cecf2738dee828564396f3239829aba83 ] [Why] For MST case: when update_config is called to disable a stream, this clears the settings for all the streams on that link. We should only clear the settings for the stream that was disabled. [How]

[PATCH AUTOSEL 5.6 24/41] usb: gadget: legacy: fix redundant initialization warnings

2020-05-22 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit d13cce757954fa663c69845611957396843ed87a ] Fix the following cppcheck warnings: drivers/usb/gadget/legacy/inode.c:1364:8: style: Redundant initialization for 'value'. The initialized value is overwritten$ value = -EOPNOTSUPP; ^

[PATCH AUTOSEL 5.6 27/41] IB/i40iw: Remove bogus call to netdev_master_upper_dev_get()

2020-05-22 Thread Sasha Levin
From: "Denis V. Lunev" [ Upstream commit 856ec7f64688387b100b7083cdf480ce3ac41227 ] Local variable netdev is not used in these calls. It should be noted, that this change is required to work in bonded mode. Otherwise we would get the following assert: "RTNL: assertion failed at

[PATCH AUTOSEL 5.6 25/41] net: freescale: select CONFIG_FIXED_PHY where needed

2020-05-22 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 99352c79af3e5f2e4724abf37fa5a2a3299b1c81 ] I ran into a randconfig build failure with CONFIG_FIXED_PHY=m and CONFIG_GIANFAR=y: x86_64-linux-ld: drivers/net/ethernet/freescale/gianfar.o:(.rodata+0x418): undefined reference to `fixed_phy_change_carrier' It

Re: [PATCH v3 2/5] sched/deadline: Add dl_bw_capacity()

2020-05-22 Thread Juri Lelli
On 20/05/20 15:42, Dietmar Eggemann wrote: > Capacity-aware SCHED_DEADLINE Admission Control (AC) needs root domain > (rd) CPU capacity sum. > > Introduce dl_bw_capacity() which for a symmetric rd w/ a CPU capacity > of SCHED_CAPACITY_SCALE simply relies on dl_bw_cpus() to return #CPUs >

[PATCH AUTOSEL 5.6 35/41] drm/meson: pm resume add return errno branch

2020-05-22 Thread Sasha Levin
From: Bernard Zhao [ Upstream commit c54a8f1f329197d83d941ad84c4aa38bf282cbbd ] pm_resump api did not handle drm_mode_config_helper_resume error. This change add handle to return drm_mode_config_helper_resume`s error number. This code logic is aligned with api pm_suspend. After this change, the

[PATCH AUTOSEL 5.6 22/41] usb: dwc3: pci: Enable extcon driver for Intel Merrifield

2020-05-22 Thread Sasha Levin
From: Andy Shevchenko [ Upstream commit 066c09593454e89bc605ffdff1c9810061f9b1e1 ] Intel Merrifield provides a DR support via PMIC which has its own extcon driver. Add a property string to link to that driver. Signed-off-by: Andy Shevchenko Signed-off-by: Felipe Balbi Signed-off-by: Sasha

[PATCH AUTOSEL 5.6 34/41] csky: Fixup remove duplicate irq_disable

2020-05-22 Thread Sasha Levin
From: Liu Yibin [ Upstream commit 6633a5aa8eb6bda70eb3a9837efd28a67ccc6e0a ] Interrupt has been disabled in __schedule() with local_irq_disable() and enabled in finish_task_switch->finish_lock_switch() with local_irq_enabled(), So needn't to disable irq here. Signed-off-by: Liu Yibin

[PATCH AUTOSEL 5.6 23/41] usb: phy: twl6030-usb: Fix a resource leak in an error handling path in 'twl6030_usb_probe()'

2020-05-22 Thread Sasha Levin
From: Christophe JAILLET [ Upstream commit f058764d19000d98aef72010468db1f69faf9fa0 ] A call to 'regulator_get()' is hidden in 'twl6030_usb_ldo_init()'. A corresponding put must be performed in the error handling path, as already done in the remove function. While at it, also move a

[PATCH AUTOSEL 5.6 31/41] clk: ti: am33xx: fix RTC clock parent

2020-05-22 Thread Sasha Levin
From: Tero Kristo [ Upstream commit dc6dbd51009fc412729c307161f442c0a08618f4 ] Right now, trying to use RTC purely with the ti-sysc / clkctrl framework fails to enable the RTC module properly. Based on experimentation, this appears to be because RTC is sourced from the clkdiv32k optional clock.

Re: [PATCH v4 3/8] spi: stm32: Add 'SPI_SIMPLEX_RX', 'SPI_3WIRE_RX' support for stm32f4

2020-05-22 Thread dillon min
hi Mark, Thanks for reviewing. On Fri, May 22, 2020 at 7:36 PM Mark Brown wrote: > > On Mon, May 18, 2020 at 07:09:20PM +0800, dillon.min...@gmail.com wrote: > > > 2, use stm32 spi's "In full-duplex (BIDIMODE=0 and RXONLY=0)", as tx_buf is > > null, we must add dummy data sent out before read

[PATCH AUTOSEL 5.6 32/41] csky: Fixup msa highest 3 bits mask

2020-05-22 Thread Sasha Levin
From: Liu Yibin [ Upstream commit 165f2d2858013253042809df082b8df7e34e86d7 ] Just as comment mentioned, the msa format: cr<30/31, 15> MSA register format: 31 - 29 | 28 - 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 BA Reserved SH WA B SO SEC C D V So we should shift 29 bits not 28

Re: [PATCH v1 02/25] mm/swap: Don't abuse the seqcount latching API

2020-05-22 Thread Peter Zijlstra
On Tue, May 19, 2020 at 11:45:24PM +0200, Ahmed S. Darwish wrote: > @@ -713,10 +713,20 @@ static void lru_add_drain_per_cpu(struct work_struct > *dummy) > */ > void lru_add_drain_all(void) > { > + static unsigned int lru_drain_gen; > static struct cpumask has_work; > + static

[PATCH AUTOSEL 5.4 08/32] ALSA: usb-audio: add mapping for ASRock TRX40 Creator

2020-05-22 Thread Sasha Levin
From: Andrew Oakley [ Upstream commit da7a8f1a8fc3e14c6dcc52b4098bddb8f20390be ] This is another TRX40 based motherboard with ALC1220-VB USB-audio that requires a static mapping table. This motherboard also has a PCI device which advertises no codecs. The PCI ID is 1022:1487 and PCI SSID is

[PATCH AUTOSEL 5.6 40/41] samples: bpf: Fix build error

2020-05-22 Thread Sasha Levin
From: Matteo Croce [ Upstream commit 23ad04669f81f958e9a4121b0266228d2eb3c357 ] GCC 10 is very strict about symbol clash, and lwt_len_hist_user contains a symbol which clashes with libbpf: /usr/bin/ld: samples/bpf/lwt_len_hist_user.o:(.bss+0x0): multiple definition of `bpf_log_buf';

Re: [PATCH v3 1/5] sched/deadline: Optimize dl_bw_cpus()

2020-05-22 Thread Juri Lelli
On 20/05/20 15:42, Dietmar Eggemann wrote: > Return the weight of the root domain (rd) span in case it is a subset > of the cpu_active_mask. > > Continue to compute the number of CPUs over rd span and cpu_active_mask > when in hotplug. > > Signed-off-by: Dietmar Eggemann > --- >

[PATCH AUTOSEL 5.6 38/41] cifs: Fix null pointer check in cifs_read

2020-05-22 Thread Sasha Levin
From: Steve French [ Upstream commit 9bd21d4b1a767c3abebec203342f3820dcb84662 ] Coverity scan noted a redundant null check Coverity-id: 728517 Reported-by: Coverity Signed-off-by: Steve French Reviewed-by: Shyam Prasad N Signed-off-by: Sasha Levin --- fs/cifs/file.c | 2 +- 1 file

[PATCH AUTOSEL 5.4 03/32] arm64: dts: rockchip: fix status for in rk3328-evb.dts

2020-05-22 Thread Sasha Levin
From: Johan Jonker [ Upstream commit c617ed88502d0b05149e7f32f3b3fd8a0663f7e2 ] The status was removed of the '' node with the apply of a patch long time ago, so fix status for '' in 'rk3328-evb.dts'. Signed-off-by: Johan Jonker Link:

[PATCH AUTOSEL 5.6 37/41] riscv: pgtable: Fix __kernel_map_pages build error if NOMMU

2020-05-22 Thread Sasha Levin
From: Kefeng Wang [ Upstream commit 9a6630aef93394ac54494c7e273e9bc026509375 ] riscv64-none-linux-gnu-ld: mm/page_alloc.o: in function `.L0 ': page_alloc.c:(.text+0xd34): undefined reference to `__kernel_map_pages' riscv64-none-linux-gnu-ld: page_alloc.c:(.text+0x104a): undefined reference to

[PATCH AUTOSEL 5.4 06/32] ARM: dts: rockchip: fix pinctrl sub nodename for spi in rk322x.dtsi

2020-05-22 Thread Sasha Levin
From: Johan Jonker [ Upstream commit 855bdca1781c79eb661f89c8944c4a719ce720e8 ] A test with the command below gives these errors: arch/arm/boot/dts/rk3229-evb.dt.yaml: spi-0: '#address-cells' is a required property arch/arm/boot/dts/rk3229-evb.dt.yaml: spi-1: '#address-cells' is a required

[PATCH AUTOSEL 5.4 05/32] ARM: dts: rockchip: swap clock-names of gpu nodes

2020-05-22 Thread Sasha Levin
From: Johan Jonker [ Upstream commit b14f3898d2c25a9b47a61fb879d0b1f3af92c59b ] Dts files with Rockchip 'gpu' nodes were manually verified. In order to automate this process arm,mali-utgard.txt has been converted to yaml. In the new setup dtbs_check with arm,mali-utgard.yaml expects clock-names

[PATCH AUTOSEL 5.4 13/32] drm/amdgpu: drop unnecessary cancel_delayed_work_sync on PG ungate

2020-05-22 Thread Sasha Levin
From: Evan Quan [ Upstream commit 1fe48ec08d9f2e26d893a6c05bd6c99a3490f9ef ] As this is already properly handled in amdgpu_gfx_off_ctrl(). In fact, this unnecessary cancel_delayed_work_sync may leave a small time window for race condition and is dangerous. Signed-off-by: Evan Quan

[PATCH AUTOSEL 5.4 09/32] net: microchip: encx24j600: add missed kthread_stop

2020-05-22 Thread Sasha Levin
From: Chuhong Yuan [ Upstream commit ff8ce319e9c25e920d994cc35236f0bb32dfc8f3 ] This driver calls kthread_run() in probe, but forgets to call kthread_stop() in probe failure and remove. Add the missed kthread_stop() to fix it. Signed-off-by: Chuhong Yuan Signed-off-by: David S. Miller

[PATCH AUTOSEL 5.4 04/32] arm64: dts: rockchip: swap interrupts interrupt-names rk3399 gpu node

2020-05-22 Thread Sasha Levin
From: Johan Jonker [ Upstream commit c604fd810bda667bdc20b2c041917baa7803e0fb ] Dts files with Rockchip rk3399 'gpu' nodes were manually verified. In order to automate this process arm,mali-midgard.txt has been converted to yaml. In the new setup dtbs_check with arm,mali-midgard.yaml expects

[PATCH AUTOSEL 5.6 39/41] csky: Fixup raw_copy_from_user()

2020-05-22 Thread Sasha Levin
From: Al Viro [ Upstream commit 51bb38cb78363fdad1f89e87357b7bc73e39ba88 ] If raw_copy_from_user(to, from, N) returns K, callers expect the first N - K bytes starting at to to have been replaced with the contents of corresponding area starting at from and the last K bytes of destination *left*

[PATCH AUTOSEL 5.4 14/32] drm/amd/powerplay: perform PG ungate prior to CG ungate

2020-05-22 Thread Sasha Levin
From: Evan Quan [ Upstream commit f4fcfa4282c1a1bf51475ebb0ffda623eebf1191 ] Since gfxoff should be disabled first before trying to access those GC registers. Signed-off-by: Evan Quan Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin ---

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