[PATCH] ASoC: SOF: sort out Kconfig, again

2020-04-28 Thread Arnd Bergmann
The imx8 config keeps causing issues: WARNING: unmet direct dependencies detected for SND_SOC_SOF_IMX8M Depends on [n]: SOUND [=y] && !UML && SND [=y] && SND_SOC [=m] && SND_SOC_SOF_TOPLEVEL [=y] && SND_SOC_SOF_IMX_TOPLEVEL [=y] && IMX_DSP [=n] Selected by [m]: - SND_SOC_SOF_IMX_OF [=m] &&

[PATCH] ASoC: codecs: wm97xx: fix ac97 dependency

2020-04-28 Thread Arnd Bergmann
A recent build fix got the dependency slightly wrong, breaking builds with CONFIG_AC97_BUS_NEW: WARNING: unmet direct dependencies detected for SND_SOC_WM9713 Depends on [n]: SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && SND_SOC_AC97_BUS [=n] Selected by [m]: - SND_SOC_ZYLONITE [=m] &&

[PATCH] samples: fix binderfs sample

2020-04-28 Thread Arnd Bergmann
A routine check for misspelled Kconfig symbols showed on instance from last year, the correct symbol name is CONFIG_ANDROID_BINDERFS, not CONFIG_CONFIG_ANDROID_BINDERFS, so the extra prefix must be removed in the Kconfig file to allow enabling the sample. As the actual sample fails to build as a k

Re: [PATCH 5/9] XArray: entry in last level is not expected to be a node

2020-04-28 Thread Wei Yang
On Mon, Mar 30, 2020 at 05:48:42AM -0700, Matthew Wilcox wrote: >On Mon, Mar 30, 2020 at 12:36:39PM +, Wei Yang wrote: >> If an entry is at the last level, whose parent's shift is 0, it is not >> expected to be a node. We can just leverage the xa_is_node() check to >> break the loop instead of

[PATCH] net/mlx5: reduce stack usage in qp_read_field

2020-04-28 Thread Arnd Bergmann
Moving the mlx5_ifc_query_qp_out_bits structure on the stack was a bit excessive and now causes the compiler to complain on 32-bit architectures: drivers/net/ethernet/mellanox/mlx5/core/debugfs.c: In function 'qp_read_field': drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:274:1: error: the fram

Re: [PATCH net-next 2/4] net: phy: bcm54140: fix phy_id_mask

2020-04-28 Thread Andrew Lunn
On Tue, Apr 28, 2020 at 11:08:52PM +0200, Michael Walle wrote: > Broadcom defines the bits for this PHY as follows: > { oui[24:3], model[6:0], revision[2:0] } > > Thus we have to mask the lower three bits only. > > Fixes: 6937602ed3f9 ("net: phy: add Broadcom BCM54140 support") > Signed-off-by:

Re: [PATCH net-next 3/4] net: phy: bcm54140: apply the workaround on b0 chips

2020-04-28 Thread Andrew Lunn
On Tue, Apr 28, 2020 at 11:08:53PM +0200, Michael Walle wrote: > The lower three bits of the phy_id specifies the chip stepping. The > workaround is specifically for the B0 stepping. Apply it only on these > chips. > > Signed-off-by: Michael Walle Reviewed-by: Andrew Lunn Andrew

Re: [PATCH v2] mm/swapfile.c: simplify the scan loop in scan_swap_map_slots()

2020-04-28 Thread Wei Yang
On Mon, Apr 27, 2020 at 08:55:33AM +0800, Huang, Ying wrote: >Wei Yang writes: > >> On Sun, Apr 26, 2020 at 09:07:11AM +0800, Huang, Ying wrote: >>>Wei Yang writes: >>> On Fri, Apr 24, 2020 at 10:02:58AM +0800, Huang, Ying wrote: >Wei Yang writes: > [...] >>> >>>if "off

Re: [PATCH v3 0/5] Add support for RESOLVE_MAYEXEC

2020-04-28 Thread Florian Weimer
* Jann Horn: > Just as a comment: You'd probably also have to use RESOLVE_MAYEXEC in > the dynamic linker. Absolutely. In typical configurations, the kernel does not enforce that executable mappings must be backed by files which are executable. It's most obvious with using an explicit loader inv

Re: [PATCH] perf stat: Fix uncore event mixed metric with workload error issue

2020-04-28 Thread Andi Kleen
> I wonder this would break some expectations.. would it be > more safe to detect duration event and bypass it from the > decission? but maybe the case I'm worried about is not a > problem at all.. Andi? Don't see what it would break. Yes maybe we need to special case duration_time more, but that

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

2020-04-28 Thread Johannes Weiner
On Tue, Apr 28, 2020 at 07:27:00PM +0100, Chris Down wrote: > mem_cgroup_protected currently is both used to set effective low and min > and return a mem_cgroup_protection based on the result. As a user, this > can be a little unexpected: it appears to be a simple predicate > function, if not for t

[git pull] vfs.git fixes

2020-04-28 Thread Al Viro
Two old bugs... The following changes since commit 8f3d9f354286745c751374f5f1fcafee6b3f3136: Linux 5.7-rc1 (2020-04-12 12:35:55 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git fixes for you to fetch changes up to b0d3869ce9e

[PATCH v4 2/3] dmaengine: ptdma: register PTDMA controller as a DMA resource

2020-04-28 Thread Sanjay R Mehta
From: Sanjay R Mehta This registers the ptdma queue to Linux dmaengine framework as general-purpose DMA channels. Signed-off-by: Sanjay R Mehta --- drivers/dma/ptdma/Kconfig | 2 + drivers/dma/ptdma/Makefile | 3 +- drivers/dma/ptdma/ptdma-dev.c | 35 +++ drivers/

[PATCH v3 10/11] serial: 8250_early: Support kgdboc_earlycon

2020-04-28 Thread Douglas Anderson
Implement the read() function in the early console driver. With recent kgdb patches this allows you to use kgdb to debug fairly early into the system boot. We only bother implementing this if polling is enabled since kgdb can't be enabled without that. Signed-off-by: Douglas Anderson Reviewed-b

[PATCH v3 03/11] kgdboc: Use a platform device to handle tty drivers showing up late

2020-04-28 Thread Douglas Anderson
If you build CONFIG_KGDB_SERIAL_CONSOLE into the kernel then you should be able to have KGDB init itself at bootup by specifying the "kgdboc=..." kernel command line parameter. This has worked OK for me for many years, but on a new device I switched to it stopped working. The problem is that on t

[PATCH v3 11/11] serial: amba-pl011: Support kgdboc_earlycon

2020-04-28 Thread Douglas Anderson
From: Sumit Garg Implement the read() function in the early console driver. With recently added kgdboc_earlycon feature, this allows you to use kgdb to debug fairly early into the system boot. We only bother implementing this if polling is enabled since kgdb can't be enabled without that. Signe

[PATCH v3 05/11] arm64: Add call_break_hook() to early_brk64() for early kgdb

2020-04-28 Thread Douglas Anderson
In order to make early kgdb work properly we need early_brk64() to be able to call into it. This is as easy as adding a call into call_break_hook() just like we do later in the normal brk_handler(). Once we do this we can let kgdb know that it can break into the debugger a little earlier (specifi

[PATCH v4 3/3] dmaengine: ptdma: Add debugfs entries for PTDMA information

2020-04-28 Thread Sanjay R Mehta
From: Sanjay R Mehta Expose data about the configuration and operation of the PTDMA through debugfs entries: device name, capabilities, configuration, statistics. Signed-off-by: Sanjay R Mehta --- drivers/dma/ptdma/Makefile| 3 +- drivers/dma/ptdma/ptdma-debugfs.c | 237 +

[PATCH v3 09/11] serial: qcom_geni_serial: Support kgdboc_earlycon

2020-04-28 Thread Douglas Anderson
Implement the read() function in the early console driver. With recent kgdb patches this allows you to use kgdb to debug fairly early into the system boot. We only bother implementing this if polling is enabled since kgdb can't be enabled without that. Signed-off-by: Douglas Anderson Reviewed-b

[PATCH v3 06/11] kgdb: Prevent infinite recursive entries to the debugger

2020-04-28 Thread Douglas Anderson
If we detect that we recursively entered the debugger we should hack our I/O ops to NULL so that the panic() in the next line won't actually cause another recursion into the debugger. The first line of kgdb_panic() will check this and return. Signed-off-by: Douglas Anderson --- Changes in v3: -

Re: [PATCH 1/2] mm, memcg: Avoid stale protection values when cgroup is above protection

2020-04-28 Thread Johannes Weiner
On Tue, Apr 28, 2020 at 07:26:47PM +0100, Chris Down wrote: > From: Yafang Shao > > A cgroup can have both memory protection and a memory limit to isolate > it from its siblings in both directions - for example, to prevent it > from being shrunk below 2G under high pressure from outside, but also

[PATCH net-next] net: phy: at803x: add downshift support

2020-04-28 Thread Michael Walle
The AR8031 and AR8035 support the link speed downshift. Add driver support for it. One peculiarity of these PHYs is that it needs a software reset after changing the setting, thus add the .soft_reset() op and do a phy_init_hw() if necessary. This was tested on a custom board with the AR8031. Sign

[PATCH v4 1/3] dmaengine: ptdma: Initial driver for the AMD PTDMA controller

2020-04-28 Thread Sanjay R Mehta
From: Sanjay R Mehta This driver add support for AMD PTDMA controller. This device performs high-bandwidth memory to memory and IO copy operation. Device commands are managed via a circular queue of 'descriptors', each of which specifies source and destination addresses for copying a single buff

[PATCH v3 04/11] kgdb: Delay "kgdbwait" to dbg_late_init() by default

2020-04-28 Thread Douglas Anderson
Using kgdb requires at least some level of architecture-level initialization. If nothing else, it relies on the architecture to pass breakpoints / crashes onto kgdb. On some architectures this all works super early, specifically it starts working at some point in time before Linux parses early_pa

[PATCH v3 07/11] kgdboc: Add kgdboc_earlycon to support early kgdb using boot consoles

2020-04-28 Thread Douglas Anderson
We want to enable kgdb to debug the early parts of the kernel. Unfortunately kgdb normally is a client of the tty API in the kernel and serial drivers don't register to the tty layer until fairly late in the boot process. Serial drivers do, however, commonly register a boot console. Let's enable

[PATCH v3 08/11] Documentation: kgdboc: Document new kgdboc_earlycon parameter

2020-04-28 Thread Douglas Anderson
The recent patch ("kgdboc: Add kgdboc_earlycon to support early kgdb using boot consoles") adds a new kernel command line parameter. Document it. Note that the patch adding the feature does some comparing/contrasting of "kgdboc_earlycon" vs. the existing "ekgdboc". See that patch for more details

[PATCH v4 0/3] Add support for AMD PTDMA controller driver

2020-04-28 Thread Sanjay R Mehta
From: Sanjay R Mehta This patch series adds support for AMD PTDMA controller which performs high bandwidth memory-to-memory and IO copy operation and performs DMA transfer through queue based descriptor management. AMD Processor has multiple ptdma device instances and each controller has single

[PATCH v3 02/11] Revert "kgdboc: disable the console lock when in kgdb"

2020-04-28 Thread Douglas Anderson
This reverts commit 81eaadcae81b4c1bf01649a3053d1f54e2d81cf1. Commit 81eaadcae81b ("kgdboc: disable the console lock when in kgdb") is no longer needed now that we have the patch ("kgdb: Disable WARN_CONSOLE_UNLOCKED for all kgdb"). Revert it. Signed-off-by: Douglas Anderson Reviewed-by: Greg K

[PATCH v3 01/11] kgdb: Disable WARN_CONSOLE_UNLOCKED for all kgdb

2020-04-28 Thread Douglas Anderson
In commit 81eaadcae81b ("kgdboc: disable the console lock when in kgdb") we avoided the WARN_CONSOLE_UNLOCKED() yell when we were in kgdboc. That still works fine, but it turns out that we get a similar yell when using other I/O drivers. One example is the "I/O driver" for the kgdb test suite (kg

[PATCH v3 00/11] kgdb: Support late serial drivers; enable early debug w/ boot consoles

2020-04-28 Thread Douglas Anderson
This whole pile of patches was motivated by me trying to get kgdb to work properly on a platform where my serial driver ended up being hit by the -EPROBE_DEFER virus (it wasn't practicing social distancing from other drivers). Specifically my serial driver's parent device depended on a resource th

[char-misc] mei: me: disable mei interface on LBG servers.

2020-04-28 Thread Tomas Winkler
Disable the MEI driver on LBG SPS (server) platforms, some corner flows such as recovery mode does not work, and the driver doesn't have working use cases. Cc: Signed-off-by: Tomas Winkler --- drivers/misc/mei/hw-me.c | 8 drivers/misc/mei/hw-me.h | 4 drivers/misc/mei/pci-me.c

Re: [PATCH V11 04/11] Documentation/dax: Update Usage section

2020-04-28 Thread Darrick J. Wong
On Tue, Apr 28, 2020 at 01:53:10PM -0700, Ira Weiny wrote: > On Tue, Apr 28, 2020 at 01:27:38PM -0700, Darrick J. Wong wrote: > > On Mon, Apr 27, 2020 at 05:21:35PM -0700, ira.we...@intel.com wrote: > > > From: Ira Weiny > > > > > [snip] > > > > + > > > + 3. If the persistent FS_XFLAG_DAX flag

Re: [PATCH] net/x25: Fix null-ptr-deref in x25_disconnect

2020-04-28 Thread David Miller
From: YueHaibing Date: Tue, 28 Apr 2020 16:12:08 +0800 > We should check null before do x25_neigh_put in x25_disconnect, > otherwise may cause null-ptr-deref like this: ... > Reported-by: syzbot+6db548b615e5aeefd...@syzkaller.appspotmail.com > Fixes: 4becb7ee5b3d ("net/x25: Fix x25_neigh refcnt l

[PATCH net-next 4/4] net: phy: bcm54140: add second PHY ID

2020-04-28 Thread Michael Walle
This PHY have to PHY IDs depending on its mode. Adjust the mask so that it includes both IDs. Also move the PHY_ID_BCM54140 out of the brcmphy.h into the driver to have the mask and the ID in one place. Signed-off-by: Michael Walle --- drivers/net/phy/bcm54140.c | 12 ++-- include/linux

[PATCH net-next 2/4] net: phy: bcm54140: fix phy_id_mask

2020-04-28 Thread Michael Walle
Broadcom defines the bits for this PHY as follows: { oui[24:3], model[6:0], revision[2:0] } Thus we have to mask the lower three bits only. Fixes: 6937602ed3f9 ("net: phy: add Broadcom BCM54140 support") Signed-off-by: Michael Walle --- Please note that although this patch contains a Fixes ta

[PATCH net-next 3/4] net: phy: bcm54140: apply the workaround on b0 chips

2020-04-28 Thread Michael Walle
The lower three bits of the phy_id specifies the chip stepping. The workaround is specifically for the B0 stepping. Apply it only on these chips. Signed-off-by: Michael Walle --- drivers/net/phy/bcm54140.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/ne

[PATCH net-next 1/4] net: phy: bcm54140: use genphy_soft_reset()

2020-04-28 Thread Michael Walle
Set the .soft_reset() op to be sure there will be a reset even if there is no hardware reset line registered. Signed-off-by: Michael Walle --- drivers/net/phy/bcm54140.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/phy/bcm54140.c b/drivers/net/phy/bcm54140.c index 7341f0126cc4

Re: [PATCH] net: Protect INET_ADDR_COOKIE on 32-bit architectures

2020-04-28 Thread David Miller
From: Stephen Kitt Date: Tue, 28 Apr 2020 09:52:31 +0200 > This patch changes INET_ADDR_COOKIE to declare a dummy typedef (so it > makes checkpatch.pl complain, sorry...) This is trading one problem for another, so in the end doesn't really move us forward.

Re: [GIT PULL] Please pull proc and exec work for 5.7-rc1

2020-04-28 Thread Jann Horn
On Tue, Apr 28, 2020 at 10:36 PM Linus Torvalds wrote: > On Tue, Apr 28, 2020 at 12:08 PM Oleg Nesterov wrote: > > > > Oops. I can update that old patch but somehow I thought there is a better > > plan which I don't yet understand... > > I don't think any plan survived reality. > > Unless we want

Re: [RFC PATCH 3/3] media: imx378: Add imx378 camera sensor driver

2020-04-28 Thread Sakari Ailus
Hi Daniel, On Tue, Apr 14, 2020 at 10:01:51PM +0200, Daniel Gomez wrote: > Add a V4L2 sub-device driver for the Sony IMX378 image sensor. > This is a camera sensor using the I2C bus for control and the > CSI-2 bus for data. > > Signed-off-by: Daniel Gomez > --- > drivers/media/i2c/Kconfig |

[PATCH v6 2/2] mmc: host: meson-mx-sdhc: new driver for the Amlogic Meson SDHC host

2020-04-28 Thread Martin Blumenstingl
The SDHC MMC host controller on Amlogic SoCs provides an eMMC and MMC card interface with 1/4/8-bit bus width. It supports eMMC spec 4.4x/4.5x including HS200 (up to 100MHz clock). The public S805 datasheet [0] contains a short documentation about the registers. Unfortunately it does not describe

Re: [PATCH net v2 2/2] net: phy: DP83TC811: Fix WoL in config init to be disabled

2020-04-28 Thread Dan Murphy
David On 4/28/20 3:05 PM, David Miller wrote: From: Dan Murphy Date: Mon, 27 Apr 2020 16:21:12 -0500 + return phy_write_mmd(phydev, DP83822_DEVADDR, Please don't submit patches that have not even had a conversation

[PATCH 07/24] rcu/tree: move locking/unlocking to separate functions

2020-04-28 Thread Uladzislau Rezki (Sony)
Introduce two helpers to lock and unlock an access to the per-cpu "kfree_rcu_cpu" structure. The reason is to make kfree_call_rcu() function to be more readable. Signed-off-by: Uladzislau Rezki (Sony) --- kernel/rcu/tree.c | 31 +++ 1 file changed, 23 insertions(+), 8

[PATCH 01/24] rcu/tree: Keep kfree_rcu() awake during lock contention

2020-04-28 Thread Uladzislau Rezki (Sony)
From: "Joel Fernandes (Google)" On PREEMPT_RT kernels, contending on the krcp spinlock can cause sleeping as on these kernels, the spinlock is converted to an rt-mutex. To prevent breakage of possible usage of kfree_rcu() now or in the future, make use of raw spinlocks which are not subject to su

[PATCH 08/24] rcu/tree: Use static initializer for krc.lock

2020-04-28 Thread Uladzislau Rezki (Sony)
From: Sebastian Andrzej Siewior The per-CPU variable is initialized at runtime in kfree_rcu_batch_init(). This function is invoked before 'rcu_scheduler_active' is set to 'RCU_SCHEDULER_RUNNING'. After the initialisation, '->initialized' is to true. The raw_spin_lock is only acquired if '->initi

[PATCH 06/24] rcu/tree: Simplify KFREE_BULK_MAX_ENTR macro

2020-04-28 Thread Uladzislau Rezki (Sony)
We can simplify KFREE_BULK_MAX_ENTR macro and get rid of magic numbers which were used to make the structure to be exactly one page. Suggested-by: Boqun Feng Reviewed-by: Joel Fernandes (Google) Signed-off-by: Uladzislau Rezki (Sony) Signed-off-by: Joel Fernandes (Google) --- kernel/rcu/tree.

[PATCH 03/24] rcu/tree: Use consistent style for comments

2020-04-28 Thread Uladzislau Rezki (Sony)
From: "Joel Fernandes (Google)" Simple clean up of comments in kfree_rcu() code to keep it consistent with majority of commenting styles. Reviewed-by: Uladzislau Rezki Signed-off-by: Joel Fernandes (Google) Signed-off-by: Uladzislau Rezki (Sony) --- kernel/rcu/tree.c | 16 1

[PATCH v4 4/4] hugetlbfs: clean up command line processing

2020-04-28 Thread Mike Kravetz
With all hugetlb page processing done in a single file clean up code. - Make code match desired semantics - Update documentation with semantics - Make all warnings and errors messages start with 'HugeTLB:'. - Consistently name command line parsing routines. - Warn if !hugepages_supported() and co

[PATCH 23/24] rcu: Introduce 1 arg kvfree_rcu() interface

2020-04-28 Thread Uladzislau Rezki (Sony)
Make it possible to pass one or two arguments to the kvfree_rcu() macro what corresponds to either headless case or not, so it becomes a bit versatile. As a result we obtain two ways of using that macro, below are two examples: a) kvfree_rcu(ptr, rhf); struct X { struct rcu_head rhf;

[PATCH 12/24] rcu/tiny: support vmalloc in tiny-RCU

2020-04-28 Thread Uladzislau Rezki (Sony)
Replace kfree() with kvfree() in rcu_reclaim_tiny(). So it becomes possible to release either SLAB memory or vmalloc one after a GP. Signed-off-by: Uladzislau Rezki (Sony) --- kernel/rcu/tiny.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/rcu/tiny.c b/kernel/rcu/t

[PATCH 17/24] rcu: Introduce 2 arg kvfree_rcu() interface

2020-04-28 Thread Uladzislau Rezki (Sony)
kvfree_rcu() can deal with an allocated memory that is obtained via kvmalloc(). It can return two types of allocated memory or "pointers", one can belong to regular SLAB allocator and another one can be vmalloc one. It depends on requested size and memory pressure. struct test_kvfree_rcu {

[PATCH 04/24] rcu/tree: Repeat the monitor if any free channel is busy

2020-04-28 Thread Uladzislau Rezki (Sony)
It can be that one of the channels can not be detached due to the fact that its free channel and previous data has not been processed yet. From the other hand another channel can be successfully detached causing the monitor work to stop. To prevent that, if there are any channels are still in pend

[PATCH 14/24] rcu: Rename __is_kfree_rcu_offset() macro

2020-04-28 Thread Uladzislau Rezki (Sony)
Rename __is_kfree_rcu_offset to __is_kvfree_rcu_offset. All RCU paths use kvfree() now instead of kfree(), thus rename it. Signed-off-by: Uladzislau Rezki (Sony) Reviewed-by: Joel Fernandes (Google) Signed-off-by: Joel Fernandes (Google) --- include/linux/rcupdate.h | 6 +++--- kernel/rcu/tiny

[PATCH v4 2/4] hugetlbfs: move hugepagesz= parsing to arch independent code

2020-04-28 Thread Mike Kravetz
Now that architectures provide arch_hugetlb_valid_size(), parsing of "hugepagesz=" can be done in architecture independent code. Create a single routine to handle hugepagesz= parsing and remove all arch specific routines. We can also remove the interface hugetlb_bad_size() as this is no longer use

Re: [PATCH v2] net/ena: Fix build warning in ena_xdp_set()

2020-04-28 Thread David Miller
From: Gavin Shan Date: Tue, 28 Apr 2020 14:49:45 +1000 > This fixes the following build warning in ena_xdp_set(), which is > observed on aarch64 with 64KB page size. > >In file included from ./include/net/inet_sock.h:19, > from ./include/net/ip.h:27, > from drivers/net/ethernet/a

Re: [PATCH v21 11/16] leds: lp55xx: Add multicolor framework support to lp55xx

2020-04-28 Thread Jacek Anaszewski
Dan, On 4/28/20 6:03 PM, Dan Murphy wrote: Add multicolor framework support for the lp55xx family. Acked-by: Pavel Machek Signed-off-by: Dan Murphy --- drivers/leds/Kconfig | 1 + drivers/leds/leds-lp5521.c| 14 +- drivers/leds/leds-lp5523.c

[PATCH 09/24] rcu/tree: cache specified number of objects

2020-04-28 Thread Uladzislau Rezki (Sony)
Cache some extra objects per-CPU. During reclaim process some pages are cached instead of releasing by linking them into the list. Such approach provides O(1) access time to the cache. That reduces number of requests to the page allocator, also that makes it more helpful if a low memory condition

[PATCH 16/24] mm/list_lru.c: Rename kvfree_rcu() to local variant

2020-04-28 Thread Uladzislau Rezki (Sony)
Rename kvfree_rcu() function to the kvfree_rcu_local() one. The aim is to introduce the public API that would conflict with this one. So we temporarily rename it and remove it in a later commit. Cc: linux...@kvack.org Cc: Andrew Morton Cc: r...@vger.kernel.org Signed-off-by: Uladzislau Rezki (Son

[PATCH 22/24] rcu/tiny: support reclaim for head-less object

2020-04-28 Thread Uladzislau Rezki (Sony)
Make a kvfree_call_rcu() function to support head-less freeing. Same as for tree-RCU, for such purpose we store pointers in array. SLAB and vmalloc ptrs. are mixed and coexist together. Under high memory pressure it can be that maintaining of arrays becomes impossible. Objects with an rcu_head are

[PATCH 10/24] rcu/tree: add rcutree.rcu_min_cached_objs description

2020-04-28 Thread Uladzislau Rezki (Sony)
Document the rcutree.rcu_min_cached_objs sysfs kernel parameter. Signed-off-by: Uladzislau Rezki (Sony) --- Documentation/admin-guide/kernel-parameters.txt | 8 1 file changed, 8 insertions(+) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/ker

[PATCH 02/24] rcu/tree: Skip entry into the page allocator for PREEMPT_RT

2020-04-28 Thread Uladzislau Rezki (Sony)
From: "Joel Fernandes (Google)" To keep kfree_rcu() path working on raw non-preemptible sections, prevent the optional entry into the allocator as it uses sleeping locks. In fact, even if the caller of kfree_rcu() is preemptible, this path still is not, as krcp->lock is a raw spinlock as done in

[PATCH v6 0/2] Amlogic 32-bit Meson SoC SDHC MMC controller driver

2020-04-28 Thread Martin Blumenstingl
Hello, this is the patchset for a driver for the Amlogic "SDHC" MMC controller found on Meson6, Meson8, Meson8b and Meson8m2 SoCs. The public S805 (Meson8b) datasheet has some documentation starting on page 74: [0] It's performance is still not as good as the driver from Amlogic's 3.10 kernel, b

[PATCH 05/24] rcu/tree: Simplify debug_objects handling

2020-04-28 Thread Uladzislau Rezki (Sony)
From: "Joel Fernandes (Google)" In order to prepare for future changes for headless RCU support, make the debug_objects handling in kfree_rcu use the final 'pointer' value of the object, instead of depending on the head. Signed-off-by: Uladzislau Rezki (Sony) Signed-off-by: Joel Fernandes (Goog

[PATCH v4 3/4] hugetlbfs: remove hugetlb_add_hstate() warning for existing hstate

2020-04-28 Thread Mike Kravetz
The routine hugetlb_add_hstate prints a warning if the hstate already exists. This was originally done as part of kernel command line parsing. If 'hugepagesz=' was specified more than once, the warning pr_warn("hugepagesz= specified twice, ignoring\n"); would be printed. Some architectur

[PATCH 19/24] rcu/tree: Support reclaim for head-less object

2020-04-28 Thread Uladzislau Rezki (Sony)
Update the kvfree_call_rcu() with head-less support, it means an object without any rcu_head structure can be reclaimed after GP. To store pointers there are two chain-arrays maintained one for SLAB and another one is for vmalloc. Both types of objects(head-less variant and regular one) are placed

Re: [PATCH v2 2/2] coresight: Avoid casting void pointers

2020-04-28 Thread Mike Leach
Reviewed-by mike.le...@linaro.org On Tue, 28 Apr 2020 at 19:10, Stephen Boyd wrote: > > We don't need to cast void pointers, such as the amba_id data. Assign to > a local variable to make the code prettier and also return NULL instead > of 0 to make sparse happy. > > Cc: Suzuki K Poulose > Cc: M

RE: [PATCH 5/7] x86/mmu: Allocate/free PASID

2020-04-28 Thread Luck, Tony
>> So the driver needs to use flush/drain operations to make sure all >> the in-flight work has completed before releasing/re-using the PASID. >> > Are you suggesting we should let driver also hold a reference of the > PASID? The sequence for bare metal is: process is queuing requests to

[PATCH 00/24] Introduce kvfree_rcu(1 or 2 arguments)

2020-04-28 Thread Uladzislau Rezki (Sony)
Motivation -- There were some discussions and demand in having kvfree_rcu() interface for different purposes. Basically to have a simple interface like: void *ptr = kvmalloc(some_bytes, GFP_KERNEL); if (ptr) kvfree_rcu(ptr); For example, please have a look at ext

[PATCH 15/24] rcu: Rename kfree_call_rcu() to the kvfree_call_rcu().

2020-04-28 Thread Uladzislau Rezki (Sony)
The reason is, it is capable of freeing vmalloc() memory now. Do the same with __kfree_rcu() macro, it becomes __kvfree_rcu(), the reason is the same as pointed above. Signed-off-by: Uladzislau Rezki (Sony) Reviewed-by: Joel Fernandes (Google) Signed-off-by: Joel Fernandes (Google) --- includ

[PATCH v6 1/2] dt-bindings: mmc: Document the Amlogic Meson SDHC MMC host controller

2020-04-28 Thread Martin Blumenstingl
This documents the devicetree bindings for the SDHC MMC host controller found in Meson6, Meson8, Meson8b and Meson8m2 SoCs. It can use a bus-width of 1/4/8-bit and it supports eMMC spec 4.4x/4.5x including HS200 mode (up to 100MHz clock). It embeds an internal clock controller which outputs four cl

[PATCH 18/24] mm/list_lru.c: Remove kvfree_rcu_local() function

2020-04-28 Thread Uladzislau Rezki (Sony)
Since there is newly introduced kvfree_rcu() API, there is no need in queuing and using call_rcu() to kvfree() an object after the GP. Remove kvfree_rcu_local() function and replace call_rcu() by new kvfree_rcu() API that does the same but in more efficient way. Cc: linux...@kvack.org Cc: Andrew

[PATCH 20/24] rcu/tree: Make kvfree_rcu() tolerate any alignment

2020-04-28 Thread Uladzislau Rezki (Sony)
From: "Joel Fernandes (Google)" Handle cases where the the object being kvfree_rcu()'d is not aligned by 2-byte boundaries. Signed-off-by: Uladzislau Rezki (Sony) Signed-off-by: Joel Fernandes (Google) --- kernel/rcu/tree.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff

[PATCH v4 0/4] Clean up hugetlb boot command line processing

2020-04-28 Thread Mike Kravetz
v4 - Fixed huge page order definitions for arm64 (Qian Cai) Removed hugepages_supported() checks in command line processing as powerpc does not set hugepages_supported until later in boot (Sandipan) Added Acks, Reviews and Tested (Will, Gerald, Anders, Sandipan) v3 - Used weak att

[PATCH 21/24] rcu/tiny: move kvfree_call_rcu() out of header

2020-04-28 Thread Uladzislau Rezki (Sony)
Move inlined kvfree_call_rcu() function out of the header file. This step is a preparation for head-less support. Reviewed-by: Joel Fernandes (Google) Signed-off-by: Uladzislau Rezki (Sony) --- include/linux/rcutiny.h | 6 +- kernel/rcu/tiny.c | 6 ++ 2 files changed, 7 insertions

[PATCH 24/24] lib/test_vmalloc.c: Add test cases for kvfree_rcu()

2020-04-28 Thread Uladzislau Rezki (Sony)
Introduce four new test cases. They are considered to cover and testing of kvfree_rcu() interface. Two of them belong to 1 argument functionality and another two for 2 arguments functionality. The aim is to stress it, to check how it behaves under different load and memory conditions, analysis of

[PATCH 13/24] rcu: Rename rcu_invoke_kfree_callback/rcu_kfree_callback

2020-04-28 Thread Uladzislau Rezki (Sony)
Rename rcu_invoke_kfree_callback to rcu_invoke_kvfree_callback. Do the same with second trace event, the rcu_kfree_callback, becomes rcu_kvfree_callback. The reason is to be aligned with kvfree notation. Signed-off-by: Uladzislau Rezki (Sony) Reviewed-by: Joel Fernandes (Google) Signed-off-by: J

[PATCH 11/24] rcu/tree: Maintain separate array for vmalloc ptrs

2020-04-28 Thread Uladzislau Rezki (Sony)
To do so we use an array of common kvfree_rcu_bulk_data structure. It consists of two elements, index number 0 corresponds to SLAB ptrs., whereas vmalloc pointers can be accessed by using index number 1. The reason of not mixing pointers is to have an easy way to to distinguish them. It is also t

Re: [PATCH 5/7] x86/mmu: Allocate/free PASID

2020-04-28 Thread Fenghua Yu
On Sun, Apr 26, 2020 at 04:55:25PM +0200, Thomas Gleixner wrote: > Fenghua Yu writes: > > diff --git a/arch/x86/include/asm/mmu.h b/arch/x86/include/asm/mmu.h > > index bdeae9291e5c..137bf51f19e6 100644 > > --- a/arch/x86/include/asm/mmu.h > > +++ b/arch/x86/include/asm/mmu.h > > @@ -50,6 +50,10 @

[PATCH v4 1/4] hugetlbfs: add arch_hugetlb_valid_size

2020-04-28 Thread Mike Kravetz
The architecture independent routine hugetlb_default_setup sets up the default huge pages size. It has no way to verify if the passed value is valid, so it accepts it and attempts to validate at a later time. This requires undocumented cooperation between the arch specific and arch independent co

Re: [PATCH-next] net: phy: bcm54140: Make a bunch of functions static

2020-04-28 Thread David Miller
From: ChenTao Date: Tue, 28 Apr 2020 09:48:04 +0800 > Fix the following warning: > > drivers/net/phy/bcm54140.c:663:5: warning: > symbol 'bcm54140_did_interrupt' was not declared. Should it be static? > drivers/net/phy/bcm54140.c:672:5: warning: > symbol 'bcm54140_ack_intr' was not declared. Sho

Re: [PATCH V11 04/11] Documentation/dax: Update Usage section

2020-04-28 Thread Ira Weiny
On Tue, Apr 28, 2020 at 01:27:38PM -0700, Darrick J. Wong wrote: > On Mon, Apr 27, 2020 at 05:21:35PM -0700, ira.we...@intel.com wrote: > > From: Ira Weiny > > [snip] > > + > > + 3. If the persistent FS_XFLAG_DAX flag is set on a directory, this flag > > will > > +be inherited by all regul

Re: [PATCH v21 02/16] leds: multicolor: Introduce a multicolor class definition

2020-04-28 Thread Jacek Anaszewski
Dan, Thanks for the update. On 4/28/20 6:03 PM, Dan Murphy wrote: Introduce a multicolor class that groups colored LEDs within a LED node. The multi color class groups monochrome LEDs and allows controlling two aspects of the final combined color: hue and lightness. The former is controlled vi

Re: [PATCH V3] dt-bindings: thermal: Convert i.MX8MM to json-schema

2020-04-28 Thread Amit Kucheria
On Tue, Apr 21, 2020 at 7:37 PM Anson Huang wrote: > > Convert the i.MX8MM thermal binding to DT schema format using json-schema > > Signed-off-by: Anson Huang Reviewed-by: Amit Kucheria > --- > Changes since V2: > - drop unnecessary description for reg/clocks; > - improve com

Re: [PATCH v2 2/2] gpio: mm-lantiq: Fix small typo

2020-04-28 Thread Linus Walleij
On Fri, Apr 24, 2020 at 5:41 PM Dejin Zheng wrote: > Fix a spelling typo in gpio-mm-lantiq.c by codespell > s/dont/don't/ > > Cc: Andy Shevchenko > Signed-off-by: Dejin Zheng > --- > v1 -> v2: > - split patch v1 (only one patch) into patches for each driver > by Bartosz's sugg

Re: [PATCH 5/7] x86/mmu: Allocate/free PASID

2020-04-28 Thread Jacob Pan (Jun)
On Tue, 28 Apr 2020 12:07:25 -0700 "Luck, Tony" wrote: > > If fd release cleans up then how should there be something in > > flight at the final mmdrop? > > ENQCMD from the user is only synchronous in that it lets the user > know their request has been added to a queue (or not). Execution of

Re: [PATCH 5/5] virtio: Add bounce DMA ops

2020-04-28 Thread Michael S. Tsirkin
On Tue, Apr 28, 2020 at 11:19:52PM +0530, Srivatsa Vaddagiri wrote: > * Michael S. Tsirkin [2020-04-28 12:17:57]: > > > Okay, but how is all this virtio specific? For example, why not allow > > separate swiotlbs for any type of device? > > For example, this might make sense if a given device is

Re: [PATCH 5/7] x86/mmu: Allocate/free PASID

2020-04-28 Thread Jacob Pan (Jun)
On Tue, 28 Apr 2020 20:54:01 +0200 Thomas Gleixner wrote: > "Jacob Pan (Jun)" writes: > > On Sun, 26 Apr 2020 16:55:25 +0200 > > Thomas Gleixner wrote: > >> Fenghua Yu writes: > >> > The PASID is freed when the process exits (so no need to keep > >> > reference counts on how many SVM devic

Re: [GIT PULL] Please pull RDMA subsystem changes

2020-04-28 Thread pr-tracker-bot
The pull request you sent on Tue, 28 Apr 2020 16:59:14 -0300: > git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git tags/for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/edb98d162418e90d6d2c1cec42e09be0375cfd88 Thank you! -- Deet-doot-dot, I am a bot

Re: Remaining randconfig objtool warnings, linux-next-20200428

2020-04-28 Thread Josh Poimboeuf
On Tue, Apr 28, 2020 at 10:19:46PM +0200, Arnd Bergmann wrote: > On Tue, Apr 28, 2020 at 6:10 PM Josh Poimboeuf wrote: > > On Tue, Apr 28, 2020 at 04:49:15PM +0200, Arnd Bergmann wrote: > > > ==> build/x86/0xFD7B7323_defconfig/log <== > > > arch/x86/entry/entry_64.o: warning: objtool: .entry.text+

Re: [GIT PULL] Please pull proc and exec work for 5.7-rc1

2020-04-28 Thread Linus Torvalds
On Tue, Apr 28, 2020 at 12:08 PM Oleg Nesterov wrote: > > Oops. I can update that old patch but somehow I thought there is a better > plan which I don't yet understand... I don't think any plan survived reality. Unless we want to do something *really* hacky.. The attached patch is not meant to b

Re: [PATCH v1 1/1] PCI/AER: Use _OSC negotiation to determine AER ownership

2020-04-28 Thread Bjorn Helgaas
[+to Mario, Austin, Rafael; Dell folks, I suspect this commit will break Dell servers but I'd like your opinion] On Mon, Apr 27, 2020 at 07:02:13PM -0500, Bjorn Helgaas wrote: > On Sun, Apr 26, 2020 at 11:30:06AM -0700, > sathyanarayanan.kuppusw...@linux.intel.com wrote: > > From: Kuppuswamy Sath

Re: [PATCH v2] thermal: ti-soc-thermal: avoid dereferencing ERR_PTR

2020-04-28 Thread Amit Kucheria
On Fri, Apr 24, 2020 at 9:49 PM Sudip Mukherjee wrote: > > On error the function ti_bandgap_get_sensor_data() returns the error > code in ERR_PTR() but we only checked if the return value is NULL or > not. And, so we can dereference an error code inside ERR_PTR. > While at it, convert a check to I

Re: [PATCH net-next v6 0/5] kselftest: add fixture parameters

2020-04-28 Thread David Miller
From: Jakub Kicinski Date: Mon, 27 Apr 2020 18:03:46 -0700 > This set is an attempt to make running tests for different > sets of data easier. The direct motivation is the tls > test which we'd like to run for TLS 1.2 and TLS 1.3, > but currently there is no easy way to invoke the same > tests wi

Re: [PATCH v21 01/16] dt: bindings: Add multicolor class dt bindings documention

2020-04-28 Thread Jacek Anaszewski
Dan, On 4/28/20 6:03 PM, Dan Murphy wrote: Add DT bindings for the LEDs multicolor class framework. Add multicolor ID to the color ID list for device tree bindings. CC: Rob Herring Acked-by: Pavel Machek Signed-off-by: Dan Murphy --- .../bindings/leds/leds-class-multicolor.txt | 98 +

[PATCH v2 1/2] arm64: dts: rockchip: fix defines in pd_vio node for rk3399

2020-04-28 Thread Johan Jonker
A test with the command below gives for example this error: arch/arm64/boot/dts/rockchip/rk3399-evb.dt.yaml: pd_vio@15: 'pd_tcpc0@RK3399_PD_TCPC0', 'pd_tcpc1@RK3399_PD_TCPC1' do not match any of the regexes: '.*-names$', '.*-supply$', '^#.*-cells$', '^#[a-zA-Z0-9,+\\-._]{0,63}$', '^[a-zA-Z][a-zA-Z

Re: [PATCH V2] thermal: imx: Add missing of_node_put()

2020-04-28 Thread Amit Kucheria
On Thu, Mar 26, 2020 at 8:06 PM Anson Huang wrote: > > After finishing using cpu node got from of_get_cpu_node(), of_node_put() > needs to be called. > > Signed-off-by: Anson Huang > --- > Changes since V1: > - improve the logic, no need to use got. > --- > drivers/thermal/imx_thermal.c

[PATCH v2 2/2] arm64: dts: rockchip: rk3399: fix pd_tcpc0 and pd_tcpc1 node position

2020-04-28 Thread Johan Jonker
The pd_tcpc0 and pd_tcpc1 nodes are currently a sub node of pd_vio. In the rk3399 TRM figure of the 'Power Domain Partition' and in the table of 'Power Domain and Voltage Domain Summary' these power domains are positioned directly under VD_LOGIC, so fix that in 'rk3399.dtsi'. Signed-off-by: Johan

Re: [PATCH] dmaengine: qcom_hidma: Simplify error handling path in hidma_probe

2020-04-28 Thread Sinan Kaya
On 4/28/2020 1:21 PM, Dan Carpenter wrote: > What I meant to say here was: > > if (msi) { > rc = hidma_request_msi(dmadev, pdev); > if (rc) > msi = false; > > Otherwise we end up checking freeing the msi in the error handling > code when we

[PATCH] Fix use after free in get_tree_bdev()

2020-04-28 Thread David Howells
Commit 6fcf0c72e4b9, a fix to get_tree_bdev() put a missing blkdev_put() in the wrong place, before a warnf() that displays the bdev under consideration rather after it. This results in a silent lockup in printk("%pg") called via warnf() from get_tree_bdev() under some circumstances when there's a

Re: [PATCH V11 04/11] Documentation/dax: Update Usage section

2020-04-28 Thread Darrick J. Wong
On Mon, Apr 27, 2020 at 05:21:35PM -0700, ira.we...@intel.com wrote: > From: Ira Weiny > > Update the Usage section to reflect the new individual dax selection > functionality. > > Signed-off-by: Ira Weiny > > --- > Changes from V10: > Clarifications from Dave > Add '-c' to xfs_io

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