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 > multiplie

[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 Le

[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 Signed-of

[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 beca

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 tardine

[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 ca

[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 it'

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 guarant

[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 Signed-

[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 10

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 maint

[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: Andreas

[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 int

[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 prop

[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 --- drivers/gpu/drm/amd/p

[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. Th

[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 almo

[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 c

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 a/tools/testing/selftests/net/mptcp/pm_netli

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 insertions(+),

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 manual

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 registers

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! P

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? > > Signed

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 for-next

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. > > > > Signed-off-by:

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 volat

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: [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 l

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 + > drivers/clk/sunxi-ng/ccu-

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: tools/testing/selftests/vDSO/vdso_test_getcpu.c:27:

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 - https://lkml.org/lkml/2019/9/2

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(&pdev->dev, id->irq, cdns_i2c_isr, 0, >

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). > --- > drivers/

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(&lru_drain_gen); >

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 e

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: [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". Th

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 = pm_runti

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 (strictl

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, Dmitry

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 163

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 > > writeback_singl

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 Komatinen

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 fa

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(&pdev->dev, id->irq,

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 T

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 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 > > > befo

[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 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 *pr

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 ofte

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 twice.

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: [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: m

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 Ro

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** So

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: 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

[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() fires

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. > Signed-o

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 r

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 mast

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 can

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: 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 > --- > drivers/iio/adc/q

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 an

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 fil

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, memory.e{mi

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 communicat

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, > unsi

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 22/05/2020 17:41, Serge Semin wrote: > 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 sche

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

2020-05-22 Thread Jonathan Albrieux
On Fri, May 22, 2020 at 05:59:11PM +0300, Daniel Baluta wrote: > > 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

[PATCH] arm64: dts: rockchip: rename and label gpio-led subnodes part 2

2020-05-22 Thread Johan Jonker
Current dts files with 'gpio-led' nodes were manually verified. In order to automate this process leds-gpio.txt has been converted to yaml. With this conversion a check for pattern properties was added. In part 2 rename and label gpio-led subnodes that passed the regex, but still don't have the pre

Re: [PATCH v2 2/3] selftests: vdso: Use a header file to prototype parse_vdso API

2020-05-22 Thread shuah
On 5/21/20 2:37 PM, Mark Brown wrote: Both vdso_test_gettimeofday and vdso_standalone_test_x86 use the library in parse_vdso.c but each separately declares the API it offers which is not ideal. Create a header file with prototypes of the functions and use it in both the library and the tests to e

Re: [PATCH v2 3/6] arm64: Add tlbi_user_level TLB invalidation helper

2020-05-22 Thread Catalin Marinas
On Thu, Apr 23, 2020 at 09:56:53PM +0800, Zhenyu Ye wrote: > @@ -190,8 +196,8 @@ static inline void flush_tlb_page_nosync(struct > vm_area_struct *vma, > unsigned long addr = __TLBI_VADDR(uaddr, ASID(vma->vm_mm)); > > dsb(ishst); > - __tlbi(vale1is, addr); > - __tlbi_user(val

Re: [PATCH v2 1/6] arm64: Detect the ARMv8.4 TTL feature

2020-05-22 Thread Catalin Marinas
On Thu, Apr 23, 2020 at 09:56:51PM +0800, Zhenyu Ye wrote: > From: Marc Zyngier > > In order to reduce the cost of TLB invalidation, the ARMv8.4 TTL > feature allows TLBs to be issued with a level allowing for quicker > invalidation. > > The TTL field indicates the level of page table walk > hol

Re: [PATCH v2 2/6] arm64: Add level-hinted TLB invalidation helper

2020-05-22 Thread Catalin Marinas
On Thu, Apr 23, 2020 at 09:56:52PM +0800, Zhenyu Ye wrote: > diff --git a/arch/arm64/include/asm/tlbflush.h > b/arch/arm64/include/asm/tlbflush.h > index bc3949064725..5f9f189bc6d2 100644 > --- a/arch/arm64/include/asm/tlbflush.h > +++ b/arch/arm64/include/asm/tlbflush.h > @@ -10,6 +10,7 @@ > >

Re: [PATCH v2 4/6] tlb: mmu_gather: add tlb_flush_*_range APIs

2020-05-22 Thread Catalin Marinas
On Thu, Apr 23, 2020 at 09:56:54PM +0800, Zhenyu Ye wrote: > From: "Peter Zijlstra (Intel)" > > tlb_flush_{pte|pmd|pud|p4d}_range() adjust the tlb->start and > tlb->end, then set corresponding cleared_*. > > Signed-off-by: Peter Zijlstra (Intel) > Signed-off-by: Zhenyu Ye Acked-by: Catalin Ma

Re: [PATCH v7 2/2] PCI: xilinx-cpm: Add Versal CPM Root Port driver

2020-05-22 Thread Marc Zyngier
Bharat, On 2020-05-07 12:58, Bharat Kumar Gogada wrote: - Add support for Versal CPM as Root Port. - The Versal ACAP devices include CCIX-PCIe Module (CPM). The integrated block for CPM along with the integrated bridge can function as PCIe Root Port. - Bridge error and legacy interrupts in

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:49, Yafang Shao wrote: > > On Fri, May 22, 2020 at 7:01 PM Naresh Kamboju > wrote: > > > > On Tue, 5 May 2020 at 14:12, Yafang Shao wrote: > > > > > > From: Chris Down > > > > > > mem_cgroup_protected currently is both used to set effective low and min > > > and return

Re: [PATCH 09/29] arm64: use asm-generic/cacheflush.h

2020-05-22 Thread Catalin Marinas
On Fri, May 15, 2020 at 04:36:26PM +0200, Christoph Hellwig wrote: > ARM64 needs almost no cache flushing routines of its own. Rely on > asm-generic/cacheflush.h for the defaults. > > Signed-off-by: Christoph Hellwig Acked-by: Catalin Marinas

Re: [PATCH v30 04/20] x86/sgx: Add SGX microarchitectural data structures

2020-05-22 Thread Jarkko Sakkinen
On Wed, May 20, 2020 at 08:47:45PM +0200, Borislav Petkov wrote: > On Fri, May 15, 2020 at 03:43:54AM +0300, Jarkko Sakkinen wrote: > > +/** > > + * struct sgx_sigstruct_header - defines author of the enclave > > + * @header1: constant byte string > > + * @vendor:must

Re: [PATCH v5 03/14] PCI: cadence: Convert all r/w accessors to perform only 32-bit accesses

2020-05-22 Thread Rob Herring
On Thu, May 21, 2020 at 9:37 PM Kishon Vijay Abraham I wrote: > > Certain platforms like TI's J721E using Cadence PCIe IP can perform only > 32-bit accesses for reading or writing to Cadence registers. Convert all > read and write accesses to 32-bit in Cadence PCIe driver in preparation > for addi

[PATCH net v2] net: phy: mscc: fix initialization of the MACsec protocol mode

2020-05-22 Thread Antoine Tenart
At the very end of the MACsec block initialization in the MSCC PHY driver, the MACsec "protocol mode" is set. This setting should be set based on the PHY id within the package, as the bank used to access the register used depends on this. This was not done correctly, and only the first bank was use

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

2020-05-22 Thread Sowjanya Komatineni
On 5/22/20 8:26 AM, Thierry Reding wrote: 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:33A

[GIT PULL] tpmdd updates for Linux v5.8

2020-05-22 Thread Jarkko Sakkinen
at: git://git.infradead.org/users/jjs/linux-tpmdd.git tags/tpmdd-next-20200522 for you to fetch changes up to ab91c2a89f86be2898cee208d492816ec238b2cf: tpm: eventlog: Replace zero-length array with flexible-array member (2020-05-22 18:5

Re: [PATCH v5 0/3] Convert thermal bindings to yaml

2020-05-22 Thread Daniel Lezcano
Hi Amit, On 03/04/2020 09:01, Amit Kucheria wrote: > Hi all, > > Here is a series splitting up the thermal bindings into 3 separate bindings > in YAML, one each of the sensor, cooling-device and the thermal zones. > > A series to remove thermal.txt and change over all references to it will > f

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

2020-05-22 Thread Yafang Shao
On Fri, May 22, 2020 at 11:52 PM Naresh Kamboju wrote: > > On Fri, 22 May 2020 at 17:49, Yafang Shao wrote: > > > > On Fri, May 22, 2020 at 7:01 PM Naresh Kamboju > > wrote: > > > > > > On Tue, 5 May 2020 at 14:12, Yafang Shao wrote: > > > > > > > > From: Chris Down > > > > > > > > mem_cgroup_

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

2020-05-22 Thread dillon min
On Fri, May 22, 2020 at 10:57 PM dillon min wrote: > > 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)",

[PATCH] init: Allow distribution configuration of default init

2020-05-22 Thread Chris Down
Some init systems (eg. systemd) have init at their own paths, for example, /usr/lib/systemd/systemd. A compatibility symlink to one of the hardcoded init paths is provided by another package, usually named something like systemd-sysvcompat or similar. Currently distro maintainers who are hands-off

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:44:55PM +0200, Daniel Lezcano wrote: > On 22/05/2020 17:41, Serge Semin wrote: > > 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 >

Re: [PATCH 1/3] x86/amd_nb: add AMD family 17h model 60h PCI IDs

2020-05-22 Thread Borislav Petkov
On Fri, May 22, 2020 at 07:45:27AM -0700, Guenter Roeck wrote: > I didn't see a response from any of the x86 maintainers, It is on a TODO list and will be handled soon. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette

Re: [RFC] kdb: Switch kdb_printf to use safer console poll APIs

2020-05-22 Thread Daniel Thompson
On Fri, May 22, 2020 at 08:04:31PM +0530, Sumit Garg wrote: > In kgdb NMI context, polling driver APIs are more safer to use instead > of console APIs since the polling drivers know they will execute from > all sorts of crazy places. And for the most common use cases this would > also result in no

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