Re: [PATCH 18/22] perf scripts python: exported-sql-viewer.py: Add IPC information to the Branch reports

2019-06-02 Thread Adrian Hunter
On 31/05/19 7:44 PM, Arnaldo Carvalho de Melo wrote: > Em Mon, May 20, 2019 at 02:37:24PM +0300, Adrian Hunter escreveu: >> Enhance the "All branches" and "Selected branches" reports to display IPC >> information if it is available. > > So, testing this I noticed that it all starts with the left

RE: [External] Re: linux kernel page allocation failure and tuning of page cache

2019-06-02 Thread Nagal, Amit UTC CCS
-Original Message- From: Matthew Wilcox [mailto:wi...@infradead.org] Sent: Saturday, June 1, 2019 1:01 AM To: Nagal, Amit UTC CCS Cc: linux-kernel@vger.kernel.org; linux...@kvack.org; CHAWLA, RITU UTC CCS ; net...@vger.kernel.org Subject: [External] Re: linux kernel page allocation

[PATCH v1 2/4] mm: change PAGEREF_RECLAIM_CLEAN with PAGE_REFRECLAIM

2019-06-02 Thread Minchan Kim
The local variable references in shrink_page_list is PAGEREF_RECLAIM_CLEAN as default. It is for preventing to reclaim dirty pages when CMA try to migrate pages. Strictly speaking, we don't need it because CMA didn't allow to write out by .may_writepage = 0 in reclaim_clean_pages_from_list.

[PATCH v1 3/4] mm: account nr_isolated_xxx in [isolate|putback]_lru_page

2019-06-02 Thread Minchan Kim
The isolate counting is pecpu counter so it would be not huge gain to work them by batch. Rather than complicating to make them batch, let's make it more stright-foward via adding the counting logic into [isolate|putback]_lru_page API. Link:

[PATCH v1 0/4] Introduce MADV_COLD and MADV_PAGEOUT

2019-06-02 Thread Minchan Kim
This patch is part of previous series: https://lore.kernel.org/lkml/20190531064313.193437-1-minc...@kernel.org/T/#u Originally, it was created for external madvise hinting feature. https://lkml.org/lkml/2019/5/31/463 Michal wanted to separte the discussion from external hinting interface so this

[PATCH v1 1/4] mm: introduce MADV_COLD

2019-06-02 Thread Minchan Kim
When a process expects no accesses to a certain memory range, it could give a hint to kernel that the pages can be reclaimed when memory pressure happens but data should be preserved for future use. This could reduce workingset eviction so it ends up increasing performance. This patch introduces

[PATCH v1 4/4] mm: introduce MADV_PAGEOUT

2019-06-02 Thread Minchan Kim
When a process expects no accesses to a certain memory range for a long time, it could hint kernel that the pages can be reclaimed instantly but data should be preserved for future use. This could reduce workingset eviction so it ends up increasing performance. This patch introduces the new

Re: [PATCH] regulator: bd70528: Drop unused include

2019-06-02 Thread Vaittinen, Matti
Thanks Linus! On Sat, 2019-06-01 at 01:06 +0200, Linus Walleij wrote: > This driver does not use any symbols from > so just drop the include. > > Cc: Matti Vaittinen > Signed-off-by: Linus Walleij Acked-By: Matti Vaittinen Br, Matti Vaittinen

Re: [PATCH] regulator: bd718x7: Drop unused include

2019-06-02 Thread Vaittinen, Matti
And thanks for this too =) On Sat, 2019-06-01 at 01:08 +0200, Linus Walleij wrote: > This driver does not use any symbols from > so just drop the include. > > Cc: Matti Vaittinen > Signed-off-by: Linus Walleij Acked-By: Matti Vaittinen Br, Matti Vaittinen

Re: rcu_read_lock lost its compiler barrier

2019-06-02 Thread Herbert Xu
On Sun, Jun 02, 2019 at 08:47:07PM -0700, Paul E. McKenney wrote: > > 1.These guarantees are of full memory barriers, -not- compiler > barriers. What I'm saying is that wherever they are, they must come with compiler barriers. I'm not aware of any synchronisation mechanism in the

Re: [EXT] INFO: trying to register non-static key in del_timer_sync (2)

2019-06-02 Thread Dmitry Vyukov
On Sat, Jun 1, 2019 at 7:52 PM Ganapathi Bhat wrote: > > Hi syzbot, > > > > > syzbot found the following crash on: > > > As per the > link(https://syzkaller.appspot.com/bug?extid=dc4127f950da51639216), the issue > is fixed; Is it OK? Let us know if we need to do something? Hi Ganapathi, The

[GIT] Sparc

2019-06-02 Thread David Miller
Please pull to get these three bug fixes, and TLB flushing one is of particular brown paper bag quality... Thanks. The following changes since commit f2c7c76c5d0a443053e94adb9f0918fa2fb85c3a: Linux 5.2-rc3 (2019-06-02 13:55:33 -0700) are available in the Git repository at:

Re: [PATCH] mdesc: fix a missing-check bug in get_vdev_port_node_info()

2019-06-02 Thread David Miller
From: Gen Zhang Date: Fri, 31 May 2019 09:24:18 +0800 > In get_vdev_port_node_info(), 'node_info->vdev_port.name' is allcoated > by kstrdup_const(), and it returns NULL when fails. So > 'node_info->vdev_port.name' should be checked. > > Signed-off-by: Gen Zhang Applied, thanks.

Re: [PATCH] sparc: perf: fix updated event period in response to PERF_EVENT_IOC_PERIOD

2019-06-02 Thread David Miller
From: Young Xiao <92siuy...@gmail.com> Date: Wed, 29 May 2019 10:21:48 +0800 > The PERF_EVENT_IOC_PERIOD ioctl command can be used to change the > sample period of a running perf_event. Consequently, when calculating > the next event period, the new period will only be considered after the >

Re: [PATCHv6 5/6] arm64: dts: lx2160a: Add PCIe controller DT nodes

2019-06-02 Thread Karthikeyan Mitran
Hi Hou Zhiqiang Two instances [@360 and @380] of the six has a different window count, the RC can not have more than 8 windows. apio-wins = <256>; //Can we change it to 8 ppio-wins = <24>;//Can we change it to 8 On Tue, May 28, 2019 at 12:20 PM Z.q. Hou wrote: > > From: Hou

Re: [PATCH v3 1/3] PCI: Introduce pcibios_ignore_alignment_request

2019-06-02 Thread Alexey Kardashevskiy
On 03/06/2019 12:23, Shawn Anastasio wrote: > > > On 5/30/19 10:56 PM, Alexey Kardashevskiy wrote: >> >> >> On 31/05/2019 08:49, Shawn Anastasio wrote: >>> On 5/29/19 10:39 PM, Alexey Kardashevskiy wrote: On 28/05/2019 17:39, Shawn Anastasio wrote: > > > On 5/28/19

linux-next: manual merge of the akpm-current tree with the dma-mapping tree

2019-06-02 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: include/linux/genalloc.h between commit: 3334e1dc5d71 ("lib/genalloc: add gen_pool_dma_zalloc() for zeroed DMA allocations") from the dma-mapping tree and commit: 1c6b703cba18 ("lib/genalloc: introduce chunk

Re: [RFC] mm: Generalize notify_page_fault()

2019-06-02 Thread Anshuman Khandual
On 05/31/2019 11:18 PM, Matthew Wilcox wrote: > On Fri, May 31, 2019 at 02:17:43PM +0530, Anshuman Khandual wrote: >> On 05/30/2019 07:09 PM, Matthew Wilcox wrote: >>> On Thu, May 30, 2019 at 05:31:15PM +0530, Anshuman Khandual wrote: On 05/30/2019 04:36 PM, Matthew Wilcox wrote: > The

[PATCH] sched/fair: don't restart enqueued cfs quota slack timer

2019-06-02 Thread Liangyan
From: "liangyan.ply" start_cfs_slack_bandwidth() will restart the quota slack timer, if it is called frequently, this timer will be restarted continuously and may have no chance to expire to unthrottle cfs tasks. This will cause that the throttled tasks can't be unthrottled in time although they

Re: [PATCH] PCI: endpoint: Add DMA to Linux PCI EP Framework

2019-06-02 Thread Kishon Vijay Abraham I
Hi Alan, On 31/05/19 11:46 PM, Alan Mikhak wrote: > On Thu, May 30, 2019 at 10:08 PM Kishon Vijay Abraham I wrote: >> Hi Alan, >>> >>> Hi Kishon, >>> >>> I have some improvements in mind for a v2 patch in response to >>> feedback from Gustavo Pimentel that the current implementation is HW >>>

Re: [PATCH] PCI: endpoint: Add DMA to Linux PCI EP Framework

2019-06-02 Thread Vinod Koul
Hi Kishon, On 03-06-19, 09:54, Kishon Vijay Abraham I wrote: > right. For the endpoint case, drivers/pci/controller should register with the > dmaengine i.e if the controller has aN embedded DMA (I think it should be okay > to keep that in drivers/pci/controller itself instead of drivers/dma)

[PATCH] cpu/hotplug: Abort disabling secondary CPUs if wakeup is pending

2019-06-02 Thread Pavankumar Kondeti
When "deep" suspend is enabled, all CPUs except the primary CPU are hotplugged out. Since CPU hotplug is a costly operation, check if we have to abort the suspend in between each CPU hotplug. This would improve the system suspend abort latency upon detecting a wakeup condition. Signed-off-by:

Re: [PATCH] PCI: endpoint: Add DMA to Linux PCI EP Framework

2019-06-02 Thread Kishon Vijay Abraham I
Hi, On 31/05/19 1:19 PM, Arnd Bergmann wrote: > On Fri, May 31, 2019 at 8:32 AM Vinod Koul wrote: >> On 31-05-19, 10:50, Kishon Vijay Abraham I wrote: >>> On 31/05/19 10:37 AM, Vinod Koul wrote: On 30-05-19, 11:16, Kishon Vijay Abraham I wrote: > > right, my initial thought process

[PATCH 12/15] dcache: Provide a dentry constructor

2019-06-02 Thread Tobin C. Harding
In order to support object migration on the dentry cache we need to have a determined object state at all times. Without a constructor the object would have a random state after allocation. Provide a dentry constructor. Signed-off-by: Tobin C. Harding --- fs/dcache.c | 30

[PATCH 14/15] slub: Enable moving objects to/from specific nodes

2019-06-02 Thread Tobin C. Harding
We have just implemented Slab Movable Objects (SMO, object migration). Currently object migration is used to defrag a cache. On NUMA systems it would be nice to be able to control the source and destination nodes when moving objects. Add CONFIG_SLUB_SMO_NODE to guard this feature.

[PATCH 15/15] slub: Enable balancing slabs across nodes

2019-06-02 Thread Tobin C. Harding
We have just implemented Slab Movable Objects (SMO). On NUMA systems slabs can become unbalanced i.e. many slabs on one node while other nodes have few slabs. Using SMO we can balance the slabs across all the nodes. The algorithm used is as follows: 1. Move all objects to node 0 (this has the

[PATCH 10/15] xarray: Implement migration function for xa_node objects

2019-06-02 Thread Tobin C. Harding
Recently Slab Movable Objects (SMO) was implemented for the SLUB allocator. The XArray can take advantage of this and make the xa_node slab cache objects movable. Implement functions to migrate objects and activate SMO when we initialise the XArray slab cache. This is based on initial code by

[PATCH 07/15] tools/testing/slab: Add object migration test module

2019-06-02 Thread Tobin C. Harding
We just implemented slab movable objects for the SLUB allocator. We should test that code. In order to do so we need to be able to do a number of things - Create a cache - Enable Slab Movable Objects for the cache - Allocate objects to the cache - Free objects from within specific slabs of

[PATCH 09/15] lib: Separate radix_tree_node and xa_node slab cache

2019-06-02 Thread Tobin C. Harding
Earlier, Slab Movable Objects (SMO) was implemented. The XArray is now able to take advantage of SMO in order to make xarray nodes movable (when using the SLUB allocator). Currently the radix tree uses the same slab cache as the XArray. Only XArray nodes are movable _not_ radix tree nodes. We

[PATCH 13/15] dcache: Implement partial shrink via Slab Movable Objects

2019-06-02 Thread Tobin C. Harding
The dentry slab cache is susceptible to internal fragmentation. Now that we have Slab Movable Objects we can attempt to defragment the dcache. Dentry objects are inherently _not_ relocatable however under some conditions they can be free'd. This is the same as shrinking the dcache but instead

[PATCH 11/15] tools/testing/slab: Add XArray movable objects tests

2019-06-02 Thread Tobin C. Harding
We just implemented movable objects for the XArray. Let's test it intree. Add test module for the XArray's movable objects implementation. Functionality of the XArray Slab Movable Object implementation can usually be seen by simply by using `slabinfo` on a running machine since the radix tree

[PATCH 08/15] tools/testing/slab: Add object migration test suite

2019-06-02 Thread Tobin C. Harding
We just added a module that enables testing the SLUB allocators ability to defrag/shrink caches via movable objects. Tests are better when they are automated. Add automated testing via a python script for SLUB movable objects. Example output: $ cd path/to/linux/tools/testing/slab $

[PATCH 06/15] tools/vm/slabinfo: Add defrag_used_ratio output

2019-06-02 Thread Tobin C. Harding
Add output for the newly added defrag_used_ratio sysfs knob. Signed-off-by: Tobin C. Harding --- tools/vm/slabinfo.c | 4 1 file changed, 4 insertions(+) diff --git a/tools/vm/slabinfo.c b/tools/vm/slabinfo.c index d2c22f9ee2d8..ef4ff93df4cc 100644 --- a/tools/vm/slabinfo.c +++

[PATCH 05/15] tools/vm/slabinfo: Add remote node defrag ratio output

2019-06-02 Thread Tobin C. Harding
Add output line for NUMA remote node defrag ratio. Signed-off-by: Tobin C. Harding --- tools/vm/slabinfo.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/tools/vm/slabinfo.c b/tools/vm/slabinfo.c index cbfc56c44c2f..d2c22f9ee2d8 100644 --- a/tools/vm/slabinfo.c +++

[PATCH 01/15] slub: Add isolate() and migrate() methods

2019-06-02 Thread Tobin C. Harding
Add the two methods needed for moving objects and enable the display of the callbacks via the /sys/kernel/slab interface. Add documentation explaining the use of these methods and the prototypes for slab.h. Add functions to setup the callbacks method for a slab cache. Add empty functions for

[PATCH 02/15] tools/vm/slabinfo: Add support for -C and -M options

2019-06-02 Thread Tobin C. Harding
-C lists caches that use a ctor. -M lists caches that support object migration. Add command line options to show caches with a constructor and caches that are movable (i.e. have migrate function). Signed-off-by: Tobin C. Harding --- tools/vm/slabinfo.c | 40

[PATCH 03/15] slub: Sort slab cache list

2019-06-02 Thread Tobin C. Harding
It is advantageous to have all defragmentable slabs together at the beginning of the list of slabs so that there is no need to scan the complete list. Put defragmentable caches first when adding a slab cache and others last. Signed-off-by: Tobin C. Harding --- mm/slab_common.c | 2 +- mm/slub.c

[PATCH 04/15] slub: Slab defrag core

2019-06-02 Thread Tobin C. Harding
Internal fragmentation can occur within pages used by the slub allocator. Under some workloads large numbers of pages can be used by partial slab pages. This under-utilisation is bad simply because it wastes memory but also because if the system is under memory pressure higher order allocations

[PATCH 00/15] Slab Movable Objects (SMO)

2019-06-02 Thread Tobin C. Harding
Hi, TL;DR - Add object migration (SMO) to the SLUB allocator and implement object migration for the XArray and the dcache. Thanks for you patience with all the RFC's of this patch set. Here it is, ready for prime time. Internal fragmentation can occur within pages used by the slub allocator.

Re: [RFC PATCH v5 16/16] dcache: Add CONFIG_DCACHE_SMO

2019-06-02 Thread Tobin C. Harding
On Wed, May 29, 2019 at 04:16:51PM +, Roman Gushchin wrote: > On Wed, May 29, 2019 at 01:54:06PM +1000, Tobin C. Harding wrote: > > On Tue, May 21, 2019 at 02:05:38AM +, Roman Gushchin wrote: > > > On Tue, May 21, 2019 at 11:31:18AM +1000, Tobin C. Harding wrote: > > > > On Tue, May 21,

Re: [PATCH] PCI: endpoint: Add DMA to Linux PCI EP Framework

2019-06-02 Thread Kishon Vijay Abraham I
Hi Vinod, On 31/05/19 12:02 PM, Vinod Koul wrote: > On 31-05-19, 10:50, Kishon Vijay Abraham I wrote: >> Hi Vinod, >> >> On 31/05/19 10:37 AM, Vinod Koul wrote: >>> Hi Kishon, >>> >>> On 30-05-19, 11:16, Kishon Vijay Abraham I wrote: +Vinod Koul Hi, On 30/05/19 4:07 AM,

Re: [PATCH] sched/core: add __sched tag for io_schedule()

2019-06-02 Thread Gao Xiang
On 2019/5/31 22:37, Tejun Heo wrote: > On Fri, May 31, 2019 at 04:29:12PM +0800, Gao Xiang wrote: >> non-inline io_schedule() was introduced in >> commit 10ab56434f2f ("sched/core: Separate out io_schedule_prepare() and >> io_schedule_finish()") >> Keep in line with io_schedule_timeout,

Re: [PATCH -next v2] mm/hotplug: fix a null-ptr-deref during NUMA boot

2019-06-02 Thread Pingfan Liu
On Fri, May 31, 2019 at 5:03 PM Michal Hocko wrote: > > On Thu 30-05-19 20:55:32, Pingfan Liu wrote: > > On Wed, May 29, 2019 at 2:20 AM Michal Hocko wrote: > > > > > > [Sorry for a late reply] > > > > > > On Thu 23-05-19 11:58:45, Pingfan Liu wrote: > > > > On Wed, May 22, 2019 at 7:16 PM

Re: rcu_read_lock lost its compiler barrier

2019-06-02 Thread Herbert Xu
On Mon, Jun 03, 2019 at 12:01:14PM +0800, Herbert Xu wrote: > On Sun, Jun 02, 2019 at 08:47:07PM -0700, Paul E. McKenney wrote: > > > > CPU2: if (b != 1) > > CPU2: b = 1; > > Stop right there. The kernel is full of code that assumes that > assignment to an

Re: [PATCH] mm/gup: fix omission of check on FOLL_LONGTERM in get_user_pages_fast()

2019-06-02 Thread Pingfan Liu
On Sat, Jun 1, 2019 at 1:06 AM John Hubbard wrote: > > On 5/31/19 4:05 AM, Pingfan Liu wrote: > > On Fri, May 31, 2019 at 7:21 AM John Hubbard wrote: > >> On 5/30/19 2:47 PM, Ira Weiny wrote: > >>> On Thu, May 30, 2019 at 06:54:04AM +0800, Pingfan Liu wrote: > >> [...] > >> Rather lightly

Re: [PATCH] mm/gup: fix omission of check on FOLL_LONGTERM in get_user_pages_fast()

2019-06-02 Thread Pingfan Liu
On Sat, Jun 1, 2019 at 1:12 AM Ira Weiny wrote: > > On Fri, May 31, 2019 at 07:05:27PM +0800, Pingfan Liu wrote: > > On Fri, May 31, 2019 at 7:21 AM John Hubbard wrote: > > > > > > > > > Rather lightly tested...I've compile-tested with CONFIG_CMA and > > > !CONFIG_CMA, > > > and boot tested

Re: rcu_read_lock lost its compiler barrier

2019-06-02 Thread Herbert Xu
On Sun, Jun 02, 2019 at 08:47:07PM -0700, Paul E. McKenney wrote: > > CPU2: if (b != 1) > CPU2: b = 1; Stop right there. The kernel is full of code that assumes that assignment to an int/long is atomic. If your compiler breaks this assumption that we can kiss

[PATCH 1/2] dt-bindings: i3c: Document MediaTek I3C master bindings

2019-06-02 Thread Qii Wang
Document MediaTek I3C master DT bindings. Signed-off-by: Qii Wang --- .../devicetree/bindings/i3c/mtk,i3c-master.txt | 50 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/i3c/mtk,i3c-master.txt diff --git

[PATCH 2/2] i3c: master: Add driver for MediaTek IP

2019-06-02 Thread Qii Wang
Add a driver for MediaTek I3C master IP. Signed-off-by: Qii Wang --- drivers/i3c/master/Kconfig | 10 + drivers/i3c/master/Makefile |1 + drivers/i3c/master/i3c-master-mtk.c | 1246 +++ 3 files changed, 1257 insertions(+) create mode

[PATCH 0/2] Add MediaTek I3C master controller driver

2019-06-02 Thread Qii Wang
This series are based on 5.2-rc1, we provide two patches to support MediaTek I3C master controller. Qii Wang (2): dt-bindings: i3c: Document MediaTek I3C master bindings i3c: master: Add driver for MediaTek IP .../devicetree/bindings/i3c/mtk,i3c-master.txt | 50 +

Re: rcu_read_lock lost its compiler barrier

2019-06-02 Thread Paul E. McKenney
On Mon, Jun 03, 2019 at 10:46:40AM +0800, Herbert Xu wrote: > On Sun, Jun 02, 2019 at 01:54:12PM -0700, Linus Torvalds wrote: > > On Sat, Jun 1, 2019 at 10:56 PM Herbert Xu > > wrote: > > > > > > You can't then go and decide to remove the compiler barrier! To do > > > that you'd need to audit

[PATCH v10 4/7] rpmsg: add rpmsg support for mt8183 SCP.

2019-06-02 Thread Pi-Hsun Shih
Add a simple rpmsg support for mt8183 SCP, that use IPI / IPC directly. Signed-off-by: Pi-Hsun Shih --- Changes from v9, v8, v7: - No change. Changes from v6: - Decouple mtk_rpmsg from mtk_scp by putting all necessary informations (name service IPI id, register/unregister/send functions)

[PATCH v10 6/7] mfd: cros_ec: differentiate SCP from EC by feature bit.

2019-06-02 Thread Pi-Hsun Shih
System Companion Processor (SCP) is Cortex M4 co-processor on some MediaTek platform that can run EC-style firmware. Since a SCP and EC would both exist on a system, and use the cros_ec_dev driver, we need to differentiate between them for the userspace, or they would both be registered at

[PATCH v10 7/7] arm64: dts: mt8183: add scp node

2019-06-02 Thread Pi-Hsun Shih
From: Eddie Huang Add scp node to mt8183 and mt8183-evb Signed-off-by: Erin Lo Signed-off-by: Pi-Hsun Shih Signed-off-by: Eddie Huang --- Changes from v9: - Remove extra reserve-memory-vpu_share node. Changes from v8: - New patch. --- arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 11

[PATCH v10 3/7] remoteproc: mt8183: add reserved memory manager API

2019-06-02 Thread Pi-Hsun Shih
From: Erin Lo Add memory table mapping API for other driver to lookup reserved physical and virtual memory Signed-off-by: Erin Lo Signed-off-by: Pi-Hsun Shih --- Changes from v9: - No change. Changes from v8: - Add more reserved regions for camera ISP. Changes from v7, v6, v5: - No

[PATCH v10 5/7] dt-bindings: Add binding for cros-ec-rpmsg.

2019-06-02 Thread Pi-Hsun Shih
Add a DT binding documentation for ChromeOS EC driver over rpmsg. Signed-off-by: Pi-Hsun Shih Acked-by: Rob Herring --- Changes from v9, v8, v7, v6: - No change. Changes from v5: - New patch. --- Documentation/devicetree/bindings/mfd/cros-ec.txt | 5 - 1 file changed, 4 insertions(+), 1

[PATCH v10 2/7] remoteproc/mediatek: add SCP support for mt8183

2019-06-02 Thread Pi-Hsun Shih
From: Erin Lo Provide a basic driver to control Cortex M4 co-processor Signed-off-by: Erin Lo Signed-off-by: Nicolas Boichat Signed-off-by: Pi-Hsun Shih --- Changes from v9: - No change. Changes from v8: - Add a missing space. Changes from v7: - Moved the location of shared SCP buffer.

[PATCH v10 1/7] dt-bindings: Add a binding for Mediatek SCP

2019-06-02 Thread Pi-Hsun Shih
From: Erin Lo Add a DT binding documentation of SCP for the MT8183 SoC from Mediatek. Signed-off-by: Erin Lo Signed-off-by: Pi-Hsun Shih Reviewed-by: Rob Herring --- Changes from v9, v8, v7, v6: - No change. Changes from v5: - Remove dependency on CONFIG_RPMSG_MTK_SCP. Changes from v4:

[PATCH v10 0/7] Add support for mt8183 SCP.

2019-06-02 Thread Pi-Hsun Shih
Add support for controlling and communicating with mt8183's system control processor (SCP), using the remoteproc & rpmsg framework. And also add a cros_ec driver for CrOS EC host command over rpmsg. The overall structure of the series is: * remoteproc/mtk_scp.c: Control the start / stop of SCP

Re: [PATCH] scsi: ibmvscsi: Don't use rc uninitialized in ibmvscsi_do_work

2019-06-02 Thread Nathan Chancellor
Hi Michael, On Sun, Jun 02, 2019 at 08:15:38PM +1000, Michael Ellerman wrote: > Hi Nathan, > > It's always preferable IMHO to keep any initialisation as localised as > possible, so that the compiler can continue to warn about uninitialised > usages elsewhere. In this case that would mean doing

[PATCH] ipvlan: Don't propagate IFF_ALLMULTI changes on down interfaces.

2019-06-02 Thread Young Xiao
Clearing the IFF_ALLMULTI flag on a down interface could cause an allmulti overflow on the underlying interface. Attempting the set IFF_ALLMULTI on the underlying interface would cause an error and the log message: "allmulti touches root, set allmulti failed." Signed-off-by: Young Xiao

Re: rcu_read_lock lost its compiler barrier

2019-06-02 Thread Herbert Xu
On Sun, Jun 02, 2019 at 05:06:17PM -0700, Paul E. McKenney wrote: > > Please note that preemptible Tree RCU has lacked the compiler barrier on > all but the outermost rcu_read_unlock() for years before Boqun's patch. Actually this is not true. Boqun's patch (commit bb73c52bad36) does not add a

RE: [PATCH] arm64: dts: imx8mm: Fix build warnings

2019-06-02 Thread Anson Huang
Hi, Fabio > -Original Message- > From: Fabio Estevam > Sent: Monday, June 3, 2019 10:49 AM > To: Anson Huang > Cc: Rob Herring ; Mark Rutland > ; Shawn Guo ; Sascha > Hauer ; Sascha Hauer ; > Leonard Crestez ; Aisheng Dong > ; viresh kumar ; Jacky > Bai ; open list:OPEN FIRMWARE AND

Re: [PATCH 3/3] ACPI / device_sysfs: Add eject show attr to monitor eject status

2019-06-02 Thread Chester Lin
On Fri, May 31, 2019 at 06:38:59AM -0700, Greg KH wrote: > On Fri, May 31, 2019 at 02:56:42PM +0800, Chester Lin wrote: > > An acpi_eject_show attribute for users to monitor current status because > > sometimes it might take time to finish an ejection so we need to know > > whether it is still in

Re: [PATCH] arm64: dts: imx8mm: Fix build warnings

2019-06-02 Thread Fabio Estevam
Hi Anson, On Sun, Jun 2, 2019 at 9:46 PM wrote: > > From: Anson Huang > > This patch fixes below build warning with "W=1": I have already sent patches to fix these warnings.

Re: rcu_read_lock lost its compiler barrier

2019-06-02 Thread Herbert Xu
On Sun, Jun 02, 2019 at 01:54:12PM -0700, Linus Torvalds wrote: > On Sat, Jun 1, 2019 at 10:56 PM Herbert Xu > wrote: > > > > You can't then go and decide to remove the compiler barrier! To do > > that you'd need to audit every single use of rcu_read_lock in the > > kernel to ensure that

[cgroup] c03cd7738a: BUG:KASAN:slab-out-of-bounds_in_c

2019-06-02 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-7): commit: c03cd7738a83b13739f00546166969342c8ff014 ("cgroup: Include dying leaders with live threads in PROCS iterations") https://git.kernel.org/cgit/linux/kernel/git/tj/cgroup.git for-next in testcase: trinity with following parameters:

RE: [PATCH] usb: dwc3: Enable the USB snooping

2019-06-02 Thread Ran Wang
Hi Felipe, On Thursday, May 30, 2019 17:09, Ran Wang wrote: > > > > >> >> > /* Global Debug Queue/FIFO Space Available Register */ > > >> >> > #define DWC3_GDBGFIFOSPACE_NUM(n) ((n) & 0x1f) > > >> >> > #define DWC3_GDBGFIFOSPACE_TYPE(n) (((n) << 5) & 0x1e0) > > >> >> > @@ -859,6 +867,7 @@

[PATCH] unicore32: check stack pointer in get_wchan

2019-06-02 Thread Young Xiao
get_wchan() is lockless. Task may wakeup at any time and change its own stack, thus each next stack frame may be overwritten and filled with random stuff. This patch fixes oops in unwind_frame() by adding stack pointer validation on each step (as x86 code do), unwind_frame() already checks

Re: [PATCH v3 1/3] PCI: Introduce pcibios_ignore_alignment_request

2019-06-02 Thread Shawn Anastasio
On 5/30/19 10:56 PM, Alexey Kardashevskiy wrote: On 31/05/2019 08:49, Shawn Anastasio wrote: On 5/29/19 10:39 PM, Alexey Kardashevskiy wrote: On 28/05/2019 17:39, Shawn Anastasio wrote: On 5/28/19 1:27 AM, Alexey Kardashevskiy wrote: On 28/05/2019 15:36, Oliver wrote: On Tue, May

[PATCH v3] mtd: rawnand: Add Macronix NAND read retry support

2019-06-02 Thread Mason Yang
Add support for Macronix NAND read retry. Macronix NANDs support specific read operation for data recovery, which can be enabled with a SET_FEATURE. Driver checks byte 167 of Vendor Blocks in ONFI parameter page table to see if this high-reliability function is supported. Signed-off-by: Mason

Re: [v4 3/7] drm/mediatek: add dsi reg commit disable control

2019-06-02 Thread CK Hu
Hi, Jitao: On Sat, 2019-06-01 at 17:26 +0800, Jitao Shi wrote: > New DSI IP has shadow register and working reg. The register > values are writen to shadow register. And then trigger with > commit reg, the register values will be moved working register. > > This fucntion is defualt on. But this

linux-next: build failure after merge of the clockevents tree

2019-06-02 Thread Stephen Rothwell
Hi Daniel, After merging the clockevents tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/clocksource/timer-atmel-tcb.c: In function 'tcb_clksrc_init': drivers/clocksource/timer-atmel-tcb.c:448:17: error: invalid use of undefined type 'struct delay_timer'

[PATCH V2 net-next 09/10] net: hns3: add opcode about query and clear RAS & MSI-X to special opcode

2019-06-02 Thread Huazhong Tan
From: Weihang Li There are four commands being used to query and clear RAS and MSI-X interrupts status. They should be contained in array of special opcodes because these commands have several descriptors, and we need to judge return value in the first descriptor rather than the last one as

[PATCH V2 net-next 10/10] net: hns3: delay and separate enabling of NIC and ROCE HW errors

2019-06-02 Thread Huazhong Tan
From: Weihang Li All RAS and MSI-X should be enabled just in the final stage of HNS3 initialization. It means that they should be enabled in hclge_init_xxx_client_instance instead of hclge_ae_dev(). Especially MSI-X, if it is enabled before opening vector0 IRQ, there are some chances that a

[PATCH V2 net-next 06/10] net: hns3: set ops to null when unregister ad_dev

2019-06-02 Thread Huazhong Tan
From: Weihang Li The hclge/hclgevf and hns3 module can be unloaded independently, when hclge/hclgevf unloaded firstly, the ops of ae_dev should be set to NULL, otherwise it will cause an use-after-free problem. Fixes: 38caee9d3ee8 ("net: hns3: Add support of the HNAE3 framework") Signed-off-by:

[PATCH V2 net-next 03/10] net: hns3: fix VLAN filter restore issue after reset

2019-06-02 Thread Huazhong Tan
From: Jian Shen In orginal codes, the driver only restore VLAN filter entries for PF after reset, the VLAN entries of VF will lose in this case. This patch fixes it by recording VLAN IDs for each function when add VLAN, and restore the VLAN IDs after reset. Fixes: 681ec3999b3d ("net: hns3: fix

Re: [PATCH v2 net-next] net: link_watch: prevent starvation when processing linkwatch wq

2019-06-02 Thread Yunsheng Lin
On 2019/5/31 19:17, Salil Mehta wrote: >> From: netdev-ow...@vger.kernel.org [mailto:netdev- >> ow...@vger.kernel.org] On Behalf Of Yunsheng Lin >> Sent: Friday, May 31, 2019 10:01 AM >> To: da...@davemloft.net >> Cc: hkallwe...@gmail.com; f.faine...@gmail.com; >> step...@networkplumber.org;

[PATCH V2 net-next 04/10] net: hns3: set the port shaper according to MAC speed

2019-06-02 Thread Huazhong Tan
From: Yunsheng Lin This patch sets the port shaper according to the MAC speed as suggested by hardware user manual. Signed-off-by: Yunsheng Lin Signed-off-by: Peng Li Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c | 2 +- 1 file changed, 1

[PATCH V2 net-next 07/10] net: hns3: add handling of two bits in MAC tunnel interrupts

2019-06-02 Thread Huazhong Tan
From: Weihang Li LINK_UP and LINK_DOWN are two bits of MAC tunnel interrupts, but previous HNS3 driver didn't handle them. If they were enabled, value of these two bits will change during link down and link up, which will cause HNS3 driver keep receiving IRQ but can't handle them. This patch

[PATCH V2 net-next 05/10] net: hns3: add a check to pointer in error_detected and slot_reset

2019-06-02 Thread Huazhong Tan
From: Weihang Li If we add a VF without loading hclgevf.ko and then there is a RAS error occurs, PCIe AER will call error_detected and slot_reset of all functions, and will get a NULL pointer when we check ad_dev->ops->handle_hw_ras_error. This will cause a call trace and failures on handling of

[PATCH V2 net-next 02/10] net: hns3: don't configure new VLAN ID into VF VLAN table when it's full

2019-06-02 Thread Huazhong Tan
From: Jian Shen VF VLAN table can only support no more than 256 VLANs. When user adds too many VLANs, the VF VLAN table will be full, and firmware will close the VF VLAN table for the function. When VF VLAN table is full, and user keeps adding new VLANs, it's unnecessary to configure the VF VLAN

[PATCH V2 net-next 08/10] net: hns3: remove setting bit of reset_requests when handling mac tunnel interrupts

2019-06-02 Thread Huazhong Tan
From: Weihang Li We shouldn't set HNAE3_NONE_RESET bit of the variable that represents a reset request during handling of MSI-X errors, or may cause issue when trigger reset. Signed-off-by: Weihang Li Signed-off-by: Peng Li Signed-off-by: Huazhong Tan ---

[PATCH V2 net-next 01/10] net: hns3: remove redundant core reset

2019-06-02 Thread Huazhong Tan
Since core reset is similar to the global reset, so this patch removes it and uses global reset to replace it. Signed-off-by: Huazhong Tan Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hnae3.h| 1 - .../net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c | 24

[PATCH V2 net-next 00/10] code optimizations & bugfixes for HNS3 driver

2019-06-02 Thread Huazhong Tan
This patch-set includes code optimizations and bugfixes for the HNS3 ethernet controller driver. [patch 1/10] removes the redundant core reset type [patch 2/10 - 3/10] fixes two VLAN related issues [patch 4/10] fixes a TM issue [patch 5/10 - 10/10] includes some patches related to RAS & MSI-X

[v2, PATCH 1/4] net: stmmac: dwmac-mediatek: enable Ethernet power domain

2019-06-02 Thread Biao Huang
add Ethernet power on/off operations in init/exit flow. Signed-off-by: Biao Huang --- .../net/ethernet/stmicro/stmmac/dwmac-mediatek.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c

[v2, PATCH 4/4] net: stmmac: dwmac4: fix flow control issue

2019-06-02 Thread Biao Huang
Current dwmac4_flow_ctrl will not clear GMAC_RX_FLOW_CTRL_RFE/GMAC_RX_FLOW_CTRL_RFE bits, so MAC hw will keep flow control on although expecting flow control off by ethtool. Add codes to fix it. Fixes: 477286b53f55 ("stmmac: add GMAC4 core support") Signed-off-by: Biao Huang ---

[v2, PATCH 2/4] net: stmmac: dwmac-mediatek: disable rx watchdog

2019-06-02 Thread Biao Huang
disable rx watchdog for dwmac-mediatek, then the hw will issue a rx interrupt once receiving a packet, so the responding time for rx path will be reduced. Signed-off-by: Biao Huang --- .../net/ethernet/stmicro/stmmac/dwmac-mediatek.c |1 + 1 file changed, 1 insertion(+) diff --git

[v2, PATCH 0/4] complete dwmac-mediatek driver and fix flow control issue

2019-06-02 Thread Biao Huang
Changes in v2: patch#1: there is no extra action in mediatek_dwmac_remove, remove it v1:

[v2, PATCH 3/4] net: stmmac: modify default value of tx-frames

2019-06-02 Thread Biao Huang
the default value of tx-frames is 25, it's too late when passing tstamp to stack, then the ptp4l will fail: ptp4l -i eth0 -f gPTP.cfg -m ptp4l: selected /dev/ptp0 as PTP clock ptp4l: port 1: INITIALIZING to LISTENING on INITIALIZE ptp4l: port 0: INITIALIZING to LISTENING on INITIALIZE ptp4l: port

[PATCH] arm64: dts: imx8mm: Move gic node into soc node

2019-06-02 Thread Anson . Huang
From: Anson Huang GIC is inside of SoC from architecture perspective, it should be located inside of soc node in DT. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git

Re: [PATCH net-next 00/12] code optimizations & bugfixes for HNS3 driver

2019-06-02 Thread tanhuazhong
On 2019/6/1 8:18, David Miller wrote: From: David Miller Date: Fri, 31 May 2019 17:15:29 -0700 (PDT) From: Huazhong Tan Date: Fri, 31 May 2019 16:54:46 +0800 This patch-set includes code optimizations and bugfixes for the HNS3 ethernet controller driver. [patch 1/12] removes the

Re: rcu_read_lock lost its compiler barrier

2019-06-02 Thread Paul E. McKenney
On Sun, Jun 02, 2019 at 01:56:07PM +0800, Herbert Xu wrote: > Digging up an old email because I was not aware of this previously > but Paul pointed me to it during another discussion. > > On Mon, Sep 21, 2015 at 01:43:27PM -0700, Paul E. McKenney wrote: > > On Mon, Sep 21, 2015 at 09:30:49PM

[PATCH V2 3/3] arm64: defconfig: Select CONFIG_CLK_IMX8MN by default

2019-06-02 Thread Anson . Huang
From: Anson Huang Enable CONFIG_CLK_IMX8MN to support i.MX8MN clock driver. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 8d4f25c..aef797c 100644

[PATCH V2 1/3] dt-bindings: imx: Add clock binding doc for i.MX8MN

2019-06-02 Thread Anson . Huang
From: Anson Huang Add the clock binding doc for i.MX8MN. Signed-off-by: Anson Huang --- No changes. --- .../devicetree/bindings/clock/imx8mn-clock.txt | 29 +++ include/dt-bindings/clock/imx8mn-clock.h | 215 + 2 files changed, 244 insertions(+) create mode

[PATCH V2 2/3] clk: imx: Add support for i.MX8MN clock driver

2019-06-02 Thread Anson . Huang
From: Anson Huang This patch adds i.MX8MN clock driver support. Signed-off-by: Anson Huang --- Changes since V1: - add GPIOx clocks. --- drivers/clk/imx/Kconfig | 6 + drivers/clk/imx/Makefile | 1 + drivers/clk/imx/clk-imx8mn.c | 614

Re: [PATCH v4] ARM: dts: aspeed: Add YADRO VESNIN BMC

2019-06-02 Thread Andrew Jeffery
On Fri, 31 May 2019, at 18:40, Alexander Filippov wrote: > VESNIN is an OpenPower machine with an Aspeed 2400 BMC SoC manufactured > by YADRO. > > Signed-off-by: Alexander Filippov Reviewed-by: Andrew Jeffery > --- > arch/arm/boot/dts/Makefile | 1 + >

[PATCH V2 2/3] arm64: dts: freescale: Add i.MX8MN dtsi support

2019-06-02 Thread Anson . Huang
From: Anson Huang The i.MX8M Nano Media Applications Processor is a new SoC of the i.MX8M family, it is a 14nm FinFET product of the growing mScale family targeting the consumer market. It is built in Samsung 14LPP to achieve both high performance and low power consumption and relies on a

[PATCH V2 3/3] arm64: dts: freescale: Add i.MX8MN DDR4 EVK board support

2019-06-02 Thread Anson . Huang
From: Anson Huang This patch adds basic i.MM8MN DDR4 EVK board support. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/boot/dts/freescale/Makefile| 1 + arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dts | 217 ++ 2 files changed, 218 insertions(+)

[PATCH V2 1/3] dt-bindings: arm: imx: Add the soc binding for i.MX8MN

2019-06-02 Thread Anson . Huang
From: Anson Huang This patch adds the soc & board binding for i.MX8MN. Signed-off-by: Anson Huang --- No changes. --- Documentation/devicetree/bindings/arm/fsl.yaml | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml

  1   2   3   >