[PATCH 14/23] libperf: Add PERF_RECORD_THREAD_MAP 'struct thread_map_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_THREAD_MAP event definition to libperf's event.h. In order to keep libperf simple, we switch 'u64/u32/u16/u8' types used events to their generic '__u*' versions. Link: http://lkml.kernel.org/n/tip-7gqcq30lozmcm0rsbs8kq...@git.kernel.org Signed-off-by: Jiri Olsa ---

[PATCH 23/23] libperf: Move 'enum perf_user_event_type' to perf/event.h

2019-08-28 Thread Jiri Olsa
So it's available for libperf's users. Link: http://lkml.kernel.org/n/tip-oci51ex7bb8gjuqzy9u18...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/include/perf/event.h | 23 +++ tools/perf/util/event.h | 23 --- 2 files changed, 23

Re: [PATCH v5 1/2] dt-bindings: mailbox: add binding doc for the ARM SMC/HVC mailbox

2019-08-28 Thread Sudeep Holla
On Wed, Aug 28, 2019 at 03:02:58AM +, Peng Fan wrote: > From: Peng Fan > > The ARM SMC/HVC mailbox binding describes a firmware interface to trigger > actions in software layers running in the EL2 or EL3 exception levels. > The term "ARM" here relates to the SMC instruction as part of the ARM

[PATCH 06/23] libperf: Add PERF_RECORD_HEADER_BUILD_ID 'struct build_id_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_HEADER_BUILD_ID event definition to libperf's event.h. In order to keep libperf simple, we switch 'u64/u32/u16/u8' types used events to their generic '__u*' versions. Adding the fix value for build_id variable, because it will never change. Link:

Re: [RESEND PATCH V3 2/8] perf/x86/intel: Basic support for metrics counters

2019-08-28 Thread Liang, Kan
On 8/28/2019 3:52 AM, Peter Zijlstra wrote: On Mon, Aug 26, 2019 at 07:47:34AM -0700, kan.li...@linux.intel.com wrote: diff --git a/arch/x86/events/core.c b/arch/x86/events/core.c index 81b005e4c7d9..54534ff00940 100644 --- a/arch/x86/events/core.c +++ b/arch/x86/events/core.c @@ -1033,18

Re: [PATCH RT v2 2/3] sched: migrate_enable: Use sleeping_lock to indicate involuntary sleep

2019-08-28 Thread Joel Fernandes
On Wed, Aug 28, 2019 at 03:14:33PM +0200, Sebastian Andrzej Siewior wrote: > On 2019-08-28 05:54:26 [-0700], Paul E. McKenney wrote: > > On Wed, Aug 28, 2019 at 11:27:39AM +0200, Sebastian Andrzej Siewior wrote: > > > On 2019-08-27 08:53:06 [-0700], Paul E. McKenney wrote: > > > > Am I

[PATCH 05/23] libperf: Add PERF_RECORD_HEADER_TRACING_DATA 'struct tracing_data_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_HEADER_TRACING_DATA event definition to libperf's event.h. In order to keep libperf simple, we switch 'u64/u32/u16/u8' types used events to their generic '__u*' versions. Link: http://lkml.kernel.org/n/tip-a3vv3556pgb0k7gmp1hyb...@git.kernel.org Signed-off-by: Jiri Olsa ---

Re: [PATCH v5 2/2] mailbox: introduce ARM SMC based mailbox

2019-08-28 Thread Sudeep Holla
On Wed, Aug 28, 2019 at 03:03:02AM +, Peng Fan wrote: > From: Peng Fan > > This mailbox driver implements a mailbox which signals transmitted data > via an ARM smc (secure monitor call) instruction. The mailbox receiver > is implemented in firmware and can synchronously return data when it >

Re: [PATCH 2/5] rcu/tree: Add multiple in-flight batches of kfree_rcu work

2019-08-28 Thread Joel Fernandes
On Wed, Aug 28, 2019 at 07:52:53AM +0800, Boqun Feng wrote: > Hi Joel, > > On Tue, Aug 27, 2019 at 03:01:56PM -0400, Joel Fernandes (Google) wrote: > > During testing, it was observed that amount of memory consumed due > > kfree_rcu() batching is 300-400MB. Previously we had only a single > >

[PATCH v8] thermal: cpu_cooling: Migrate to using the EM framework

2019-08-28 Thread Quentin Perret
The newly introduced Energy Model framework manages power cost tables in a generic way. Moreover, it supports several types of models since the tables can come from DT or firmware (through SCMI) for example. On the other hand, the cpu_cooling subsystem manages its own power cost tables using only

[PATCH net-next 08/15] net: sgi: ioc3-eth: introduce chip start function

2019-08-28 Thread Thomas Bogendoerfer
ioc3_init did everything from reset to init rings to starting the chip. This change move out chip start into a new function as preparation for easier handling of receive buffer allocation failures. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/sgi/ioc3-eth.c | 49

Re: [v2 PATCH -mm] mm: account deferred split THPs into MemAvailable

2019-08-28 Thread Kirill A. Shutemov
On Wed, Aug 28, 2019 at 09:57:08AM +0200, Michal Hocko wrote: > On Tue 27-08-19 10:06:20, Yang Shi wrote: > > > > > > On 8/27/19 5:59 AM, Kirill A. Shutemov wrote: > > > On Tue, Aug 27, 2019 at 03:17:39PM +0300, Kirill A. Shutemov wrote: > > > > On Tue, Aug 27, 2019 at 02:09:23PM +0200, Michal

[PATCH net-next 01/15] MIPS: SGI-IP27: remove ioc3 ethernet init

2019-08-28 Thread Thomas Bogendoerfer
Removed not needed disabling of ethernet interrupts in IP27 platform code. Signed-off-by: Thomas Bogendoerfer --- arch/mips/sgi-ip27/ip27-init.c | 13 - 1 file changed, 13 deletions(-) diff --git a/arch/mips/sgi-ip27/ip27-init.c b/arch/mips/sgi-ip27/ip27-init.c index

[PATCH net-next 11/15] net: sgi: ioc3-eth: use dma-direct for dma allocations

2019-08-28 Thread Thomas Bogendoerfer
Replace the homegrown DMA memory allocation, which only works on SGI-IP27 machines, with the generic dma allocations. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/sgi/ioc3-eth.c | 146 1 file changed, 114 insertions(+), 32 deletions(-) diff

[PATCH net-next 10/15] net: sgi: ioc3-eth: refactor rx buffer allocation

2019-08-28 Thread Thomas Bogendoerfer
Move common code for rx buffer setup into ioc3_alloc_skb and deal with allocation failures. Also clean up allocation size calculation. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/sgi/ioc3-eth.c | 95 ++--- 1 file changed, 45 insertions(+), 50

[PATCH net-next 09/15] net: sgi: ioc3-eth: split ring cleaning/freeing and allocation

2019-08-28 Thread Thomas Bogendoerfer
Do tx ring cleaning and freeing of rx buffers, when chip is shutdown and allocate buffers before bringing chip up. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/sgi/ioc3-eth.c | 28 +--- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git

[PATCH net-next 15/15] net: sgi: ioc3-eth: no need to stop queue set_multicast_list

2019-08-28 Thread Thomas Bogendoerfer
netif_stop_queue()/netif_wake_qeue() aren't needed for changing multicast filters. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/sgi/ioc3-eth.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/net/ethernet/sgi/ioc3-eth.c b/drivers/net/ethernet/sgi/ioc3-eth.c index

[PATCH net-next 12/15] net: sgi: ioc3-eth: use csum_fold

2019-08-28 Thread Thomas Bogendoerfer
replace open coded checksum folding by csum_fold. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/sgi/ioc3-eth.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/net/ethernet/sgi/ioc3-eth.c b/drivers/net/ethernet/sgi/ioc3-eth.c index

[PATCH net-next 14/15] net: sgi: ioc3-eth: protect emcr in all cases

2019-08-28 Thread Thomas Bogendoerfer
emcr in private struct wasn't always protected by spinlock. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/sgi/ioc3-eth.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/net/ethernet/sgi/ioc3-eth.c b/drivers/net/ethernet/sgi/ioc3-eth.c index

Re: numlist API Re: [RFC PATCH v4 1/9] printk-rb: add a new printk ringbuffer implementation

2019-08-28 Thread John Ogness
On 2019-08-28, Petr Mladek wrote: > I only think that, especially, numlist API is too generic in v4. > It is not selfcontained. The consistency depends on external barriers. > > I believe that it might become fully self-contained and consistent > if we reduce possibilities of the generic usage.

[PATCH net-next 00/15] ioc3-eth improvements

2019-08-28 Thread Thomas Bogendoerfer
In my patch series for splitting out the serial code from ioc3-eth by using a MFD device there was one big patch for ioc3-eth.c, which wasn't really usefull for reviews. This series contains the ioc3-eth changes splitted in smaller steps and few more cleanups. Only the conversion to MFD will be

[PATCH net-next 06/15] net: sgi: ioc3-eth: get rid of ioc3_clean_rx_ring()

2019-08-28 Thread Thomas Bogendoerfer
Clean rx ring is just called once after a new ring is allocated, which is per definition clean. So there is not need for this function. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/sgi/ioc3-eth.c | 21 - 1 file changed, 21 deletions(-) diff --git

[PATCH net-next 04/15] net: sgi: ioc3-eth: use defines for constants dealing with desc rings

2019-08-28 Thread Thomas Bogendoerfer
Descriptor ring sizes of the IOC3 are more or less fixed size. To make clearer where there is a relation to ring sizes use defines. Reviewed-by: Jakub Kicinski Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/sgi/ioc3-eth.c | 42 + 1 file changed,

[PATCH net-next 05/15] net: sgi: ioc3-eth: allocate space for desc rings only once

2019-08-28 Thread Thomas Bogendoerfer
Memory for descriptor rings are allocated/freed, when interface is brought up/down. Since the size of the rings is not changeable by hardware, we now allocate rings now during probe and free it, when device is removed. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/sgi/ioc3-eth.c |

[PATCH net-next 03/15] net: sgi: ioc3-eth: remove checkpatch errors/warning

2019-08-28 Thread Thomas Bogendoerfer
Before massaging the driver further fix oddities found by checkpatch like - wrong indention - comment formatting - use of printk instead or netdev_xxx/pr_xxx Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/sgi/ioc3-eth.c | 275 +--- 1 file changed,

[PATCH net-next 07/15] net: sgi: ioc3-eth: separate tx and rx ring handling

2019-08-28 Thread Thomas Bogendoerfer
After allocation of descriptor memory is now done once in probe handling of tx ring is completely done by ioc3_clean_tx_ring. So we remove the remaining tx ring actions out of ioc3_alloc_rings and ioc3_free_rings and rename it to ioc3_[alloc|free]_rx_bufs to better describe what they are doing.

[PATCH net-next 13/15] net: sgi: ioc3-eth: Fix IPG settings

2019-08-28 Thread Thomas Bogendoerfer
The half/full duplex settings for inter packet gap counters/timer were reversed. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/sgi/ioc3-eth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/sgi/ioc3-eth.c

[PATCH net-next 02/15] MIPS: SGI-IP27: restructure ioc3 register access

2019-08-28 Thread Thomas Bogendoerfer
Break up the big ioc3 register struct into functional pieces to make use in sub-function drivers more straightforward. And while doing that get rid of all volatile access by using readX/writeX. Signed-off-by: Thomas Bogendoerfer --- arch/mips/include/asm/sn/ioc3.h | 357

Re: objtool warning "uses BP as a scratch register" with clang-9

2019-08-28 Thread Arnd Bergmann
On Wed, Aug 28, 2019 at 11:00 AM Arnd Bergmann wrote: > On Tue, Aug 27, 2019 at 11:22 PM 'Nick Desaulniers' via Clang Built Linux > wrote: > http://paste.ubuntu.com/p/XjdDsypRxX/ > 0x5BA1B7A1:arch/x86/ia32/ia32_signal.o: warning: objtool: > ia32_setup_rt_frame()+0x238: call to memset() with

Re: [PATCH 1/4] softirq: implement IRQ flood detection mechanism

2019-08-28 Thread Thomas Gleixner
On Wed, 28 Aug 2019, Ming Lei wrote: > On Wed, Aug 28, 2019 at 01:23:06PM +0200, Thomas Gleixner wrote: > > On Wed, 28 Aug 2019, Ming Lei wrote: > > > On Wed, Aug 28, 2019 at 01:09:44AM +0200, Thomas Gleixner wrote: > > > > > > Also how is that supposed to work when sched_clock is jiffies based? >

Re: [PATCH v2] fs/proc/page: Skip uninitialized page when iterating page structures

2019-08-28 Thread Michal Hocko
On Wed 28-08-19 09:46:21, Waiman Long wrote: > On 8/28/19 4:00 AM, Michal Hocko wrote: > > On Tue 27-08-19 16:22:38, Michal Hocko wrote: > >> Dan, isn't this something we have discussed recently? > > This was > > http://lkml.kernel.org/r/20190725023100.31141-3-t-fukas...@vx.jp.nec.com > > and

Re: [PATCH 05/15] sched,fair: remove cfs_rqs from leaf_cfs_rq_list bottom up

2019-08-28 Thread Vincent Guittot
On Thu, 22 Aug 2019 at 04:18, Rik van Riel wrote: > > Reducing the overhead of the CPU controller is achieved by not walking > all the sched_entities every time a task is enqueued or dequeued. > > One of the things being checked every single time is whether the cfs_rq > is on the

[PATCH v2 1/3] arm64: dts: khadas-vim3: move common nodes into meson-khadas-vim3.dtsi

2019-08-28 Thread Neil Armstrong
To prepare support of the Amlogic SM1 based Khadas VIM3, move the non-G12B specific nodes (all except DVFS and Audio) to a new meson-khadas-vim3.dtsi Signed-off-by: Neil Armstrong --- .../amlogic/meson-g12b-a311d-khadas-vim3.dts | 1 + .../dts/amlogic/meson-g12b-khadas-vim3.dtsi | 355

[PATCH v2 2/3] amlogic: arm: add Amlogic SM1 based Khadas VIM3L bindings

2019-08-28 Thread Neil Armstrong
The Khadas VIM3 is also available as VIM3L with the Pin-to-pin compatible Amlogic SM1 SoC in the S905D3 variant package. Change the description to match the S905X3/D3/Y3 variants like the G12A description, and add the khadas,vim3l compatible. Signed-off-by: Neil Armstrong ---

[PATCH v2 0/3] arm64: meson-sm1: add support for the SM1 based VIM3L

2019-08-28 Thread Neil Armstrong
This patchset adds support for the Amlogic SM1 based Khadas VIM3L variant. The S903D3 package variant of SM1 is pin-to-pin compatible with the S922X and A311d, so only internal DT changes are needed : - DVFS support is different - Audio support not yet available for SM1 This patchset moved all

[PATCH v2 3/3] arm64: dts: khadas-vim3: add support for the SM1 based VIM3L

2019-08-28 Thread Neil Armstrong
Add the Amlogic SM1 based Khadas VIM3L, sharing all the same features as the G12B based VIM3, but: - a different DVFS support since only a single cluster is available - audio is still not available on SM1 Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/Makefile | 1 +

Re: [PATCH] csky: use generic free_initrd_mem()

2019-08-28 Thread Guo Ren
Acked-by: Guo Ren On Wed, Aug 28, 2019 at 9:35 PM Mike Rapoport wrote: > > The csky implementation of free_initrd_mem() is an open-coded version of > free_reserved_area() without poisoning. > > Remove it and make csky use the generic version of free_initrd_mem(). > > Signed-off-by: Mike

Re: [v2 PATCH -mm] mm: account deferred split THPs into MemAvailable

2019-08-28 Thread Michal Hocko
On Wed 28-08-19 17:03:29, Kirill A. Shutemov wrote: > On Wed, Aug 28, 2019 at 09:57:08AM +0200, Michal Hocko wrote: > > On Tue 27-08-19 10:06:20, Yang Shi wrote: > > > > > > > > > On 8/27/19 5:59 AM, Kirill A. Shutemov wrote: > > > > On Tue, Aug 27, 2019 at 03:17:39PM +0300, Kirill A. Shutemov

Re: [PATCH v2 0/6] Rework REFCOUNT_FULL using atomic_fetch_* operations

2019-08-28 Thread Will Deacon
On Wed, Aug 28, 2019 at 09:30:52AM +0200, Peter Zijlstra wrote: > On Tue, Aug 27, 2019 at 05:31:58PM +0100, Will Deacon wrote: > > Will Deacon (6): > > lib/refcount: Define constants for saturation and max refcount values > > lib/refcount: Ensure integer operands are treated as signed > >

Re: [PATCH v2 2/3] amlogic: arm: add Amlogic SM1 based Khadas VIM3L bindings

2019-08-28 Thread Neil Armstrong
Damn wrong subject.. please ignore this one. Neil On 28/08/2019 16:11, Neil Armstrong wrote: > The Khadas VIM3 is also available as VIM3L with the Pin-to-pin compatible > Amlogic SM1 SoC in the S905D3 variant package. > > Change the description to match the S905X3/D3/Y3 variants like the G12A >

[PATCH v3 2/3] dt-bindings: arm: amlogic: add Amlogic SM1 based Khadas VIM3L bindings

2019-08-28 Thread Neil Armstrong
The Khadas VIM3 is also available as VIM3L with the Pin-to-pin compatible Amlogic SM1 SoC in the S905D3 variant package. Change the description to match the S905X3/D3/Y3 variants like the G12A description, and add the khadas,vim3l compatible. Signed-off-by: Neil Armstrong ---

[PATCH v3 0/3] arm64: meson-sm1: add support for the SM1 based VIM3L

2019-08-28 Thread Neil Armstrong
This patchset adds support for the Amlogic SM1 based Khadas VIM3L variant. The S903D3 package variant of SM1 is pin-to-pin compatible with the S922X and A311d, so only internal DT changes are needed : - DVFS support is different - Audio support not yet available for SM1 This patchset moved all

[PATCH v3 1/3] arm64: dts: khadas-vim3: move common nodes into meson-khadas-vim3.dtsi

2019-08-28 Thread Neil Armstrong
To prepare support of the Amlogic SM1 based Khadas VIM3, move the non-G12B specific nodes (all except DVFS and Audio) to a new meson-khadas-vim3.dtsi Signed-off-by: Neil Armstrong --- .../amlogic/meson-g12b-a311d-khadas-vim3.dts | 1 + .../dts/amlogic/meson-g12b-khadas-vim3.dtsi | 355

[PATCH v3 3/3] arm64: dts: khadas-vim3: add support for the SM1 based VIM3L

2019-08-28 Thread Neil Armstrong
Add the Amlogic SM1 based Khadas VIM3L, sharing all the same features as the G12B based VIM3, but: - a different DVFS support since only a single cluster is available - audio is still not available on SM1 Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/Makefile | 1 +

Re: [PATCH 1/2] kbuild: refactor scripts/Makefile.extrawarn

2019-08-28 Thread Sedat Dilek
On Wed, Aug 28, 2019 at 9:20 AM Sedat Dilek wrote: > > On Wed, Aug 28, 2019 at 7:55 AM Masahiro Yamada > wrote: > > > > Instead of the warning-[123] magic, let's accumulate compiler options > > to KBUILD_CFLAGS directly as the top Makefile does. I think this makes > > easier to understand what

Re: [PATCH v2 4/8] sched/fair: rework load_balance

2019-08-28 Thread Valentin Schneider
On 26/08/2019 11:11, Vincent Guittot wrote: >>> + case group_fully_busy: >>> + /* >>> + * Select the fully busy group with highest avg_load. >>> + * In theory, there is no need to pull task from such >>> + * kind of group because tasks have

Re: [PATCH v2] fs/proc/page: Skip uninitialized page when iterating page structures

2019-08-28 Thread Waiman Long
On 8/28/19 10:09 AM, Michal Hocko wrote: > On Wed 28-08-19 09:46:21, Waiman Long wrote: >> On 8/28/19 4:00 AM, Michal Hocko wrote: >>> On Tue 27-08-19 16:22:38, Michal Hocko wrote: Dan, isn't this something we have discussed recently? >>> This was >>>

[PATCH 2/3] pagewalk: separate function pointers from iterator data

2019-08-28 Thread Christoph Hellwig
The mm_walk structure currently mixed data and code. Split out the operations vectors into a new mm_walk_ops structure, and while we are changing the API also declare the mm_walk structure inside the walk_page_range and walk_page_vma functions. Based on patch from Linus Torvalds. Signed-off-by:

[PATCH 1/3] mm: split out a new pagewalk.h header from mm.h

2019-08-28 Thread Christoph Hellwig
Add a new header for the two handful of users of the walk_page_range / walk_page_vma interface instead of polluting all users of mm.h with it. Signed-off-by: Christoph Hellwig Reviewed-by: Thomas Hellstrom Reviewed-by: Steven Price --- arch/openrisc/kernel/dma.c | 1 +

cleanup the walk_page_range interface v2

2019-08-28 Thread Christoph Hellwig
Hi all, this series is based on a patch from Linus to split the callbacks passed to walk_page_range and walk_page_vma into a separate structure that can be marked const, with various cleanups from me on top. This series is also available as a git tre here:

[PATCH 3/3] pagewalk: use lockdep_assert_held for locking validation

2019-08-28 Thread Christoph Hellwig
Use lockdep to check for held locks instead of using home grown asserts. Signed-off-by: Christoph Hellwig Reviewed-by: Thomas Hellstrom Reviewed-by: Steven Price --- mm/pagewalk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/pagewalk.c b/mm/pagewalk.c index

[PATCH] mm: remove the __mmu_notifier_invalidate_range_start/end exports

2019-08-28 Thread Christoph Hellwig
Bo modular code uses these, which makes a lot of sense given the wrappers around them are only called by core mm code. Also remove the recently added __mmu_notifier_invalidate_range_start_map export for which the same applies. Signed-off-by: Christoph Hellwig --- mm/mmu_notifier.c | 3 --- 1

Re: [PATCH 1/2] kbuild: refactor scripts/Makefile.extrawarn

2019-08-28 Thread Sedat Dilek
> build-time checking. For more details see . Grrr. s/ Documentation/kbuild/kbuild.rst / scripts/Makefile.extrawarn - Sedat -

Re: [PATCH 3/3] KVM: x86: always stop emulation on page fault

2019-08-28 Thread Sean Christopherson
On Wed, Aug 28, 2019 at 10:19:51AM +, Jan Dakinevich wrote: > On Tue, 27 Aug 2019 07:50:30 -0700 > Sean Christopherson wrote: > > Yikes, this patch and the previous have quite the sordid history. > > > > > > The non-void return from inject_emulated_exception() was added by commit > > > >

[PATCH net-next 00/12] net: hns3: add some cleanups and optimizations

2019-08-28 Thread Huazhong Tan
This patch-set includes cleanups, optimizations and bugfix for the HNS3 ethernet controller driver. [patch 01/12] adds code optimization for debugfs command "dump reg". [patch 02/12] fixes magic number issues. [patch 03/12] modifies some parameters about hclge_dbg_dump_tm_map(). [patch 04/12]

[PATCH net-next 06/12] net: hns3: make some reusable codes into a function

2019-08-28 Thread Huazhong Tan
From: Yonglong Liu In hclge_dcb.c, these pair of codes: hclge_notify_client(hdev, HNAE3_DOWN_CLIENT); hclge_notify_client(hdev, HNAE3_UNINIT_CLIENT); and hclge_notify_client(hdev, HNAE3_INIT_CLIENT); hclge_notify_client(hdev, HNAE3_UP_CLIENT); are called many

[PATCH net-next 07/12] net: hns3: fix incorrect type in assignment.

2019-08-28 Thread Huazhong Tan
From: Guojia Liao This patch fixes some incorrect type in assignment reported by sparse. Those sparse warning as below: - warning : restricted __le16 degrades to integer - warning : cast from restricted __le32 - warning : expected restricted __le32 - warning : cast from restricted __be32 -

[PATCH net-next 08/12] net: hns3: optimize waiting time for TQP reset

2019-08-28 Thread Huazhong Tan
From: Zhongzhu Liu This patch optimizes the waiting time for TQP reset. Signed-off-by: Zhongzhu Liu Reviewed-by: Yunsheng Lin Reviewed-by: Peng Li Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 10 ++

[PATCH net-next 09/12] net: hns3: implement .process_hw_error for hns3 client

2019-08-28 Thread Huazhong Tan
From: Weihang Li When hardware or IMP get specified error it may need the client to take some special operations. This patch implements the hns3 client's process_hw_errorx. Signed-off-by: Weihang Li Signed-off-by: Huazhong Tan Reviewed-by: Peng Li ---

[PATCH net-next 12/12] net: hns3: not allow SSU loopback while execute ethtool -t dev

2019-08-28 Thread Huazhong Tan
From: Yufeng Mo The current loopback mode is to add 0x1F to the SMAC address as the DMAC address and enable the promiscuous mode. However, if the VF address is the same as the DMAC address, the loopback test fails. Loopback can be enabled in three places: SSU, MAC, and serdes. By default, SSU

[PATCH net-next 05/12] net: hns3: optimize some log printings

2019-08-28 Thread Huazhong Tan
From: Yufeng Mo To better identify abnormal conditions, this patch modifies or adds some logs to show driver status more accurately. Signed-off-by: Yufeng Mo Signed-off-by: Zhongzhu Liu Signed-off-by: Guangbin Huang Signed-off-by: Huazhong Tan ---

[PATCH v3 1/2] dt-binding: spi: add NPCM FIU controller

2019-08-28 Thread Tomer Maimon
Added device tree binding documentation for Nuvoton BMC NPCM Flash Interface Unit(FIU) SPI master controller using SPI-MEM interface. Signed-off-by: Tomer Maimon --- .../bindings/spi/nuvoton,npcm-fiu.txt | 47 +++ 1 file changed, 47 insertions(+) create mode 100644

[PATCH v3 0/2] spi: add NPCM FIU controller driver

2019-08-28 Thread Tomer Maimon
This patch set adds Flash Interface Unit(FIU) SPI master support for the Nuvoton NPCM Baseboard Management Controller (BMC). The FIU supports single, dual or quad communication interface. the FIU controller can operate in following modes: - User Mode Access(UMA): provides flash access by using

[PATCH v3 2/2] spi: npcm-fiu: add NPCM FIU controller driver

2019-08-28 Thread Tomer Maimon
Add Nuvoton NPCM BMC Flash Interface Unit(FIU) SPI master controller driver using SPI-MEM interface. The FIU supports single, dual or quad communication interface. the FIU controller can operate in following modes: - User Mode Access(UMA): provides flash access by using an indirect

[PATCH net-next 04/12] net: hns3: reduce the parameters of some functions

2019-08-28 Thread Huazhong Tan
From: Guojia Liao This patch simplifies parameters of some functions by deleting unused parameter. Signed-off-by: Guojia Liao Signed-off-by: Yufeng Mo Signed-off-by: Guangbin Huang Signed-off-by: Huazhong Tan --- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 28

[PATCH net-next 10/12] net: hns3: add phy selftest function

2019-08-28 Thread Huazhong Tan
From: Yufeng Mo Currently, the loopback test supports only mac selftest and serdes selftest. This patch adds phy selftest. Signed-off-by: Yufeng Mo Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 7 +- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c

[PATCH net-next 03/12] net: hns3: modify base parameter of kstrtouint in hclge_dbg_dump_tm_map

2019-08-28 Thread Huazhong Tan
This patch replaces kstrtouint()'s patameter base with 0 in the hclge_dbg_dump_tm_mac(), which makes it more flexible. Also uses a macro to replace string "dump tm map", since it has been used multiple times. Signed-off-by: Huazhong Tan ---

[PATCH net-next 11/12] net: hns3: check reset interrupt status when reset fails

2019-08-28 Thread Huazhong Tan
Currently, the reset interrupt will be cleared firstly, so when reset fails, if interrupt status register has reset interrupt, it means there is a new coming reset. Fixes: 72e2fb07997c ("net: hns3: clear reset interrupt status in hclge_irq_handle()") Signed-off-by: Huazhong Tan Reviewed-by:

[PATCH net-next 01/12] net: hns3: code optimization for debugfs related to "dump reg"

2019-08-28 Thread Huazhong Tan
From: Zhongzhu Liu For making the code more readable, this patch uses a array to keep the information about the dumping register, and then uses it to parse the parameter cmd_buf which passing into hclge_dbg_dump_reg_cmd(). Also replaces parameter "base" of kstrtouint with 0 in the

[PATCH net-next 02/12] net: hns3: use macro instead of magic number

2019-08-28 Thread Huazhong Tan
This patch uses macro to replace some magic number. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c | 6 -- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git

Re: [PATCH v2 3/4] powerpc/64: make buildable without CONFIG_COMPAT

2019-08-28 Thread Michal Suchánek
On Wed, 28 Aug 2019 14:49:16 +0200 Christophe Leroy wrote: > Le 28/08/2019 à 12:30, Michal Suchanek a écrit : > > There are numerous references to 32bit functions in generic and 64bit > > code so ifdef them out. > > As far as possible, avoid opting things out with ifdefs. Ref >

[patch 1/2] x86/mm/pti: Handle unaligned address gracefully in pti_clone_pagetable()

2019-08-28 Thread Thomas Gleixner
From: Song Liu pti_clone_pmds() assumes that the supplied address is either: - properly PUD/PMD aligned or - the address is actually mapped which means that independent of the mapping level (PUD/PMD/PTE) the next higher mapping exist. If that's not the case the unaligned address can be

[patch 0/2] x86/mm/pti: Robustness updates

2019-08-28 Thread Thomas Gleixner
Following up on the discussions around the patch Song submitted to 'cure' a iTLB related performance regression, I picked up Song's patch which makes clone_page_tables() more robust by handling unaligned addresses proper and added one which prevents calling into the PTI code when PTI is enabled

[patch 2/2] x86/mm/pti: Do not invoke PTI functions when PTI is disabled

2019-08-28 Thread Thomas Gleixner
When PTI is disabled at boot time either because the CPU is not affected or PTI has been disabled on the command line, the boot code still calls into pti_finalize() which then unconditionally invokes: pti_clone_entry_text() pti_clone_kernel_text() pti_clone_kernel_text() was called

Re: [PATCH 2/2] perf top: Fix event group with more than two events

2019-08-28 Thread Arnaldo Carvalho de Melo
Em Wed, Aug 28, 2019 at 08:15:55AM +0900, Namhyung Kim escreveu: > The event group feature links relevant hist entries among events so > that they can be displayed together. During the link process, each > hist entry in non-leader events is connected to a hist entry in the > leader event. This

Re: [PATCH v2 0/4] Disable compat cruft on ppc64le v2

2019-08-28 Thread Michal Suchánek
On Wed, 28 Aug 2019 13:08:48 + Christophe Leroy wrote: > On 08/28/2019 10:30 AM, Michal Suchanek wrote: > > With endian switch disabled by default the ppc64le compat supports > > ppc32le only which is something next to nobody has binaries for. > > > > Less code means less bugs so drop the

Re: [PATCH] cpuidle-haltpoll: Enable kvm guest polling when dedicated physical CPUs are available

2019-08-28 Thread Marcelo Tosatti
On Wed, Aug 28, 2019 at 10:45:44AM +0200, Rafael J. Wysocki wrote: > On Wed, Aug 28, 2019 at 10:34 AM Wanpeng Li wrote: > > > > On Tue, 27 Aug 2019 at 08:43, Wanpeng Li wrote: > > > > > > Cc Michael S. Tsirkin, > > > On Tue, 27 Aug 2019 at 04:42, Marcelo Tosatti wrote: > > > > > > > > On Tue,

Re: [PATCH] csky: use generic free_initrd_mem()

2019-08-28 Thread Mike Rapoport
Hi, On Wed, Aug 28, 2019 at 10:12:52PM +0800, Guo Ren wrote: > Acked-by: Guo Ren Do you mind taking it via csky tree? > On Wed, Aug 28, 2019 at 9:35 PM Mike Rapoport wrote: > > > > The csky implementation of free_initrd_mem() is an open-coded version of > > free_reserved_area() without

Re: [PATCH] mm: remove the __mmu_notifier_invalidate_range_start/end exports

2019-08-28 Thread Jason Gunthorpe
On Wed, Aug 28, 2019 at 04:21:09PM +0200, Christoph Hellwig wrote: > Bo modular code uses these, which makes a lot of sense given the > wrappers around them are only called by core mm code. /Bo/No/ > Also remove the recently added __mmu_notifier_invalidate_range_start_map > export for which the

Re: [PATCH v2 0/4] Disable compat cruft on ppc64le v2

2019-08-28 Thread Michal Suchánek
On Wed, 28 Aug 2019 20:57:48 +1000 Nicholas Piggin wrote: > Michal Suchanek's on August 28, 2019 8:30 pm: > > With endian switch disabled by default the ppc64le compat supports > > ppc32le only which is something next to nobody has binaries for. > > > > Less code means less bugs so drop the

Re: Alps touchpad generates IRQ storm after S3

2019-08-28 Thread Kai-Heng Feng
Hi Mario, at 21:25, wrote: KH, Just make sure I understand details. Commit "HID: i2c-hid: Don't reset device upon system resume If you revert this it's fixed on this system? Yes. Once reset is used instead of the issue is gone. In that commit you had mentioned if this causes

Re: [PATCH] sefltest/ima: support appended signatures (modsig)

2019-08-28 Thread shuah
Hi Mimi, On 8/28/19 6:39 AM, Mimi Zohar wrote: Detect and allow appended signatures. Can you please add a couple of more sentences on the feature and what happens without it? I know this is a test for the feature, however, it will be useful for users and testers to know more about this test

Re: [v2 PATCH -mm] mm: account deferred split THPs into MemAvailable

2019-08-28 Thread Kirill A. Shutemov
On Wed, Aug 28, 2019 at 02:12:53PM +, Michal Hocko wrote: > On Wed 28-08-19 17:03:29, Kirill A. Shutemov wrote: > > On Wed, Aug 28, 2019 at 09:57:08AM +0200, Michal Hocko wrote: > > > On Tue 27-08-19 10:06:20, Yang Shi wrote: > > > > > > > > > > > > On 8/27/19 5:59 AM, Kirill A. Shutemov

Re: [PATCH] mm: remove the __mmu_notifier_invalidate_range_start/end exports

2019-08-28 Thread Christoph Hellwig
On Wed, Aug 28, 2019 at 02:40:25PM +, Jason Gunthorpe wrote: > EXPORT_SYMBOL_GPL(__mmu_notifier_invalidate_range); > > elixir suggest this is not called outside mm/ either? Yes, it seems like that one should go away as well.

Re: [PATCH 03/15] sched,fair: redefine runnable_load_avg as the sum of task_h_load

2019-08-28 Thread Rik van Riel
On Wed, 2019-08-28 at 15:50 +0200, Vincent Guittot wrote: > Hi Rik, > > On Thu, 22 Aug 2019 at 04:18, Rik van Riel wrote: > > The runnable_load magic is used to quickly propagate information > > about > > runnable tasks up the hierarchy of runqueues. The runnable_load_avg > > is > > mostly used

Re: [PATCH 1/9] perf/core: Add PERF_RECORD_CGROUP event

2019-08-28 Thread Tejun Heo
Hello, Namhyung. On Wed, Aug 28, 2019 at 04:31:22PM +0900, Namhyung Kim wrote: > + * struct { > + * struct perf_event_headerheader; > + * u64 ino; > + * u64 path_len; > + * char

Re: [PATCH] mm: remove the __mmu_notifier_invalidate_range_start/end exports

2019-08-28 Thread Jason Gunthorpe
On Wed, Aug 28, 2019 at 04:47:28PM +0200, Christoph Hellwig wrote: > On Wed, Aug 28, 2019 at 02:40:25PM +, Jason Gunthorpe wrote: > > EXPORT_SYMBOL_GPL(__mmu_notifier_invalidate_range); > > > > elixir suggest this is not called outside mm/ either? > > Yes, it seems like that one should go

Re: [PATCH 2/9] perf/core: Add PERF_SAMPLE_CGROUP feature

2019-08-28 Thread Tejun Heo
On Wed, Aug 28, 2019 at 04:31:23PM +0900, Namhyung Kim wrote: > @@ -958,6 +958,7 @@ struct perf_sample_data { > u64 stack_user_size; > > u64 phys_addr; > + u64 cgroup; Ditto, please use fhandle

Re: [PATCH] cpuidle-haltpoll: Enable kvm guest polling when dedicated physical CPUs are available

2019-08-28 Thread Marcelo Tosatti
On Tue, Aug 27, 2019 at 08:43:13AM +0800, Wanpeng Li wrote: > > > kvm adaptive halt-polling will compete with > > > vhost-kthreads, however, poll in guest unaware other runnable tasks in > > > the host which will defeat vhost-kthreads. > > > > It depends on how much work vhost-kthreads needs to

Re: objtool warning "uses BP as a scratch register" with clang-9

2019-08-28 Thread Josh Poimboeuf
On Wed, Aug 28, 2019 at 11:00:04AM +0200, Arnd Bergmann wrote: > On Tue, Aug 27, 2019 at 11:22 PM 'Nick Desaulniers' via Clang Built > Linux wrote: > > On Tue, Aug 27, 2019 at 12:47 PM Arnd Bergmann wrote: > > > On Tue, Aug 27, 2019 at 9:23 PM Josh Poimboeuf > > > wrote: > > > > On Tue, Aug

Re: [PATCH] cpuidle-haltpoll: Enable kvm guest polling when dedicated physical CPUs are available

2019-08-28 Thread Marcelo Tosatti
On Wed, Aug 28, 2019 at 11:48:58AM -0300, Marcelo Tosatti wrote: > On Tue, Aug 27, 2019 at 08:43:13AM +0800, Wanpeng Li wrote: > > > > kvm adaptive halt-polling will compete with > > > > vhost-kthreads, however, poll in guest unaware other runnable tasks in > > > > the host which will defeat

Re: [PATCH V1 1/6] USB: serial: f81232: Add F81534A support

2019-08-28 Thread Johan Hovold
On Thu, Jun 06, 2019 at 10:54:11AM +0800, Ji-Ze Hong (Peter Hong) wrote: > The Fintek F81532A/534A/535/536 is USB-to-2/4/8/12 serial ports device. > It's most same with F81232, the UART device is difference as follow: > 1. TX/RX bulk size is 128/512bytes > 2. RX bulk layout change: >

Re: [PATCH V1 2/6] USB: serial: f81232: Force F81534A with RS232 mode

2019-08-28 Thread Johan Hovold
On Thu, Jun 06, 2019 at 10:54:12AM +0800, Ji-Ze Hong (Peter Hong) wrote: > Force F81534A series UARTs with RS232 mode in port_probe(). Please expand on why you need this here. > Signed-off-by: Ji-Ze Hong (Peter Hong) > --- > drivers/usb/serial/f81232.c | 15 +++ > 1 file changed,

[RFC] ARM: omap3: Enable HWMODS for HW Random Number Generator

2019-08-28 Thread Adam Ford
The datasheet for the AM3517 shows the RNG is connected to L4. It shows the module address for the RNG is 0x480A, and it matches the omap2.dtsi description. Since the driver can support omap2 and omap4, it seems reasonable to assume the omap3 would use the same core for the RNG. This RFC,

KASAN: slab-out-of-bounds Write in usb_hcd_poll_rh_status

2019-08-28 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:a55aa89a Linux 5.3-rc6 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=12899ca260 kernel config: https://syzkaller.appspot.com/x/.config?x=2a6a2b9826fdadf9 dashboard link:

Re: [PATCH V1 3/6] USB: serial: f81232: Add generator for F81534A

2019-08-28 Thread Johan Hovold
On Thu, Jun 06, 2019 at 10:54:13AM +0800, Ji-Ze Hong (Peter Hong) wrote: > The Fintek F81534A series is contains 1 HUB / 1 GPIO device / n UARTs, > but the UART is default disable and need enabled by GPIO device(2c42/16F8). > When F81534A plug to host, we can only see 1 HUB & 1 GPIO device, add >

Re: [PATCH 03/15] sched,fair: redefine runnable_load_avg as the sum of task_h_load

2019-08-28 Thread Vincent Guittot
On Wed, 28 Aug 2019 at 16:48, Rik van Riel wrote: > > On Wed, 2019-08-28 at 15:50 +0200, Vincent Guittot wrote: > > Hi Rik, > > > > On Thu, 22 Aug 2019 at 04:18, Rik van Riel wrote: > > > The runnable_load magic is used to quickly propagate information > > > about > > > runnable tasks up the

Re: [PATCH -v2 0/5] Further sanitize INTEL_FAM6 naming

2019-08-28 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Wed, Aug 28, 2019 at 11:33:01AM +0200, Peter Zijlstra wrote: > > On Tue, Aug 27, 2019 at 11:51:35PM +0200, Peter Zijlstra wrote: > > > On Tue, Aug 27, 2019 at 08:44:23PM +, Luck, Tony wrote: > > > > > I'm reposting because the version Ingo applied and partially

Re: [PATCH 0/2] arm64: dts: meson: g12a: add tdm resets

2019-08-28 Thread Kevin Hilman
Jerome Brunet writes: > On Tue 27 Aug 2019 at 16:42, Kevin Hilman wrote: > >> Jerome Brunet writes: >> >>> This patchset adds the dedicated reset of the tdm formatters which >>> have been added on the g12a SoC family. Using these help with the channel >>> mapping when the formatter uses more

Re: [PATCH 2/3] pagewalk: separate function pointers from iterator data

2019-08-28 Thread Jason Gunthorpe
On Wed, Aug 28, 2019 at 04:19:54PM +0200, Christoph Hellwig wrote: > @@ -2546,7 +2542,7 @@ int s390_enable_sie(void) > mm->context.has_pgste = 1; > /* split thp mappings and disable thp for future mappings */ > thp_split_mm(mm); > - zap_zero_pages(mm); > +

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