[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

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

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

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 -

[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

[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

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

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

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

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

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 >

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

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

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

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

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

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

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

[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

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

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

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 >

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

[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 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 15/23] libperf: Add PERF_RECORD_STAT_CONFIG 'struct stat_config_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_STAT_CONFIG 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-ftr4j2l1by743i4rk9msj...@git.kernel.org Signed-off-by: Jiri Olsa ---

[PATCH 16/23] libperf: Add PERF_RECORD_STAT 'struct stat_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_STAT 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-80tqbm5o9hhyl924f8khd...@git.kernel.org Signed-off-by: Jiri Olsa ---

[PATCH 18/23] libperf: Add PERF_RECORD_TIME_CONV 'struct time_conv_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_TIME_CONV 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-dize9k67s0341vek7hs8v...@git.kernel.org Signed-off-by: Jiri Olsa ---

[PATCH 20/23] libperf: Add PERF_RECORD_COMPRESSED 'struct compressed_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_COMPRESSED 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-czl9nuv0c9tpdkzby92lx...@git.kernel.org Signed-off-by: Jiri Olsa ---

Re: [PATCH] i801_smbus: clear SMBALERT status bit and disable SMBALERT interrupt

2019-08-28 Thread Jean Delvare
Hi Lingyan, On Mon, 12 Aug 2019 10:40:34 +0800, lingyxu wrote: > From: Lingyan Xu > > In current i801 driver, SMBALERT interrupt is allowed > (Slave Command Register bit2 is 0). > But these is no handler for SMBALERT interrupt in i801_isr, > if there is SMBALERT interrupt asserted and

[PATCH 22/23] libperf: Rename the PERF_RECORD_ structs to have a "perf" prefix

2019-08-28 Thread Jiri Olsa
Even more, to have a "perf_record_" prefix, so that they match the PERF_RECORD_ enum they map to. Link: http://lkml.kernel.org/n/tip-rrypskxisy9mpmu96jtgp...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/arch/arm/util/cs-etm.c| 4 +- tools/perf/arch/arm64/util/arm-spe.c | 2 +-

Latest kernel version no NOT reflecting on kernel.org

2019-08-28 Thread Bhaskar Chowdhury
Am I the only one, who is not seeing it getting reflected on kernel.org??? Well, I have tried it 2 different browsers.cleared caches several times(heck) .3 different devices .and importantly 3 different networks. Wondering! Thanks, Bhaskar signature.asc Description: PGP

[PATCH 21/23] libperf: Add 'union perf_event' 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-2b9e9f0y7szdwtgnyua58...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/include/perf/event.h | 36 + tools/perf/util/event.h | 36 - 2 files

[PATCH 03/23] libperf: Add PERF_RECORD_EVENT_UPDATE 'struct event_update_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_EVENT_UPDATE 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-evb1r0gk2usfnby0b9dxl...@git.kernel.org Signed-off-by: Jiri Olsa ---

[PATCH 08/23] libperf: Add PERF_RECORD_AUXTRACE_INFO 'struct auxtrace_info_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_AUXTRACE_INFO 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-794xxtrbjexwc0o0p2o79...@git.kernel.org Signed-off-by: Jiri Olsa ---

[PATCH 11/23] libperf: Add PERF_RECORD_AUX 'struct aux_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_AUX 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-u8n9stb8xl6hq0qoqjego...@git.kernel.org Signed-off-by: Jiri Olsa ---

[PATCH 10/23] libperf: Add PERF_RECORD_AUXTRACE_ERROR 'struct auxtrace_error_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_AUXTRACE_ERROR 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-2i1ggfthfst9ont7ulmej...@git.kernel.org Signed-off-by: Jiri Olsa ---

[PATCH 12/23] libperf: Add PERF_RECORD_ITRACE_START 'struct itrace_start_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_ITRACE_START 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-it9jc5sr10hblg89ljuz7...@git.kernel.org Signed-off-by: Jiri Olsa ---

[PATCH 09/23] libperf: Add PERF_RECORD_AUXTRACE 'struct auxtrace_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_AUXTRACE 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-wrq43lrq47pqj0vhdqpgy...@git.kernel.org Signed-off-by: Jiri Olsa ---

[PATCH 01/23] libperf: Add PERF_RECORD_HEADER_ATTR 'struct attr_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_HEADER_ATTR 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-53ciuchxtqxz9kuntcd5v...@git.kernel.org Signed-off-by: Jiri Olsa ---

[PATCH 02/23] libperf: Add PERF_RECORD_CPU_MAP 'struct cpu_map_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_CPU_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-mvxietu3tdtqfi7e2nbqk...@git.kernel.org Signed-off-by: Jiri Olsa ---

[PATCH 04/23] libperf: Add PERF_RECORD_HEADER_EVENT_TYPE 'struct event_type_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_HEADER_EVENT_TYPE 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-1zsyvaupk78y7w42jfrvu...@git.kernel.org Signed-off-by: Jiri Olsa ---

[PATCH 00/23] libperf: Add rest of events to perf/event.h

2019-08-28 Thread Jiri Olsa
hi, to export 'union perf_event' we need to export the rest of events. It's also available in here: git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git perf/fixes thanks, jirka --- Jiri Olsa (23): libperf: Add PERF_RECORD_HEADER_ATTR 'struct attr_event' to perf/event.h

[PATCH 13/23] libperf: Add PERF_RECORD_SWITCH 'struct context_switch_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_SWITCH 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-hduuqm2bnzbxhhoynf2x3...@git.kernel.org Signed-off-by: Jiri Olsa ---

[PATCH 19/23] libperf: Add PERF_RECORD_HEADER_FEATURE 'struct feature_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_HEADER_FEATURE 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-adohmimljqrbq2i3dxhhr...@git.kernel.org Signed-off-by: Jiri Olsa ---

[PATCH 17/23] libperf: Add PERF_RECORD_STAT_ROUND 'struct stat_round_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_STAT_ROUND 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-x7c2m4n8303nftb4maf33...@git.kernel.org Signed-off-by: Jiri Olsa ---

[PATCH 07/23] libperf: Add PERF_RECORD_ID_INDEX 'struct id_index_event' to perf/event.h

2019-08-28 Thread Jiri Olsa
Move the PERF_RECORD_ID_INDEX 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 PRI_ld64 define, so we can use it in printf output. Link:

Re: [PATCH 06/15] sched,cfs: use explicit cfs_rq of parent se helper

2019-08-28 Thread Vincent Guittot
On Thu, 22 Aug 2019 at 04:18, Rik van Riel wrote: > > Use an explicit "cfs_rq of parent sched_entity" helper in a few > strategic places, where cfs_rq_of(se) may no longer point at the The only case is the sched_entity of a task which will point to root cfs, isn't it ? > right runqueue once we

[PATCH v2] x86/PCI: Correct warnings about missing or incorrect SPDX license headers.

2019-08-28 Thread Krzysztof Wilczynski
Add the missing "SPDX-License-Identifier" license header to the arch/x86/pci/numachip.c (use the GPL-2.0 identifier derived using the comment mentioning license from the top of the file), and remove license boilerplate as per a similar commit 8cfab3cf63cf ("PCI: Add SPDX GPL-2.0 to replace GPL v2

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

2019-08-28 Thread Liang, Kan
On 8/28/2019 5:02 AM, Peter Zijlstra wrote: On Wed, Aug 28, 2019 at 10:44:16AM +0200, Peter Zijlstra wrote: Let me clean up this mess for you. Here, how's that. Now we don't check is_metric_idx() _3_ times on the enable/disable path and all the topdown crud is properly placed in the fixed

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

2019-08-28 Thread Ming Lei
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? > > > > > > > > Good catch, looks

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

2019-08-28 Thread Vincent Guittot
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 for the load balancing code, which only examines the value at > the root

Re: [PATCH][next] ima: ima_modsig: Fix use-after-free bug in ima_read_modsig

2019-08-28 Thread Mimi Zohar
Hi Gustavo, On Sun, 2019-08-11 at 18:55 -0500, Gustavo A. R. Silva wrote: > hdr is being freed and then dereferenced by accessing hdr->pkcs7_msg > > Fix this by copying the value returned by PTR_ERR(hdr->pkcs7_msg) into > automatic variable err for its safe use after freeing hdr. > >

Re: [tip: timers/core] tick: Mark sched_timer to expire in hard interrupt context

2019-08-28 Thread Frederic Weisbecker
On Wed, Aug 28, 2019 at 11:03:33AM -, tip-bot2 for Sebastian Andrzej Siewior wrote: > The following commit has been merged into the timers/core branch of tip: > > Commit-ID: 71fed982d63cb2bb88db6f36059e3b14a7913846 > Gitweb: >

Re: [PATCH V6 5/5] mmc: host: sdhci-pci: Add Genesys Logic GL975x support

2019-08-28 Thread Michael K. Johnson
On Wed, Aug 28, 2019 at 04:13:03PM +0300, Adrian Hunter wrote: > On 27/08/19 3:33 AM, Ben Chuang wrote: > Looks good, one minor comment ... > > +#ifdef CONFIG_MMC_SDHCI_IO_ACCESSORS > > Arguably CONFIG_MMC_SDHCI_IO_ACCESSORS needs to be removed altogether. i.e. > making the accessors always

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