[PATCH net-next 01/10] dt-bindings: doc: net: keystone-netcp: document cpts

2019-06-01 Thread Grygorii Strashko
The Keystone 2 66AK2HK/E/L 1G Ethernet Switch Subsystems contains The Common Platform Time Sync (CPTS) module which is in general compatible with CPTS module found on TI AM3/4/5 SoCs. So, the basic support for Keystone 2 CPTS is available by default, but not documented. The Keystone 2 CPTS module

[PATCH net-next 02/10] net: ethernet: ti: cpts: use devm_get_clk_from_child

2019-06-01 Thread Grygorii Strashko
Use devm_get_clk_from_child() instead of devm_clk_get() and this way allow to group CPTS DT properties in sub-node for better code readability and maintenance. Roll-back to devm_clk_get() if devm_get_clk_from_child() fails for backward compatibility. Signed-off-by: Grygorii Strashko ---

Re: [PATCH] mm: Fail when offset == num in first check of vm_map_pages_zero()

2019-06-01 Thread Miguel Ojeda
On Wed, May 29, 2019 at 9:09 AM Souptick Joarder wrote: > > On Wed, May 29, 2019 at 1:38 AM Miguel Ojeda > wrote: > > > > If the user asks us for offset == num, we should already fail in the > > first check, i.e. the one testing for offsets beyond the object. > > > > At the moment, we are

Re: [PATCH v5 3/3] thermal: cpu_cooling: Migrate to using the EM framework

2019-06-01 Thread Daniel Lezcano
On 30/05/2019 11:20, Quentin Perret wrote: > 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

Re: [PATCH v2] net: ethernet: ti: cpsw_ethtool: fix ethtool ring param set

2019-06-01 Thread grygorii
On 31/05/2019 16:47, Ivan Khoronzhuk wrote: Fix ability to set RX descriptor number, the reason - initially "tx_max_pending" was set incorrectly, but the issue appears after adding sanity check, so fix is for "sanity" patch. Fixes: 37e2d99b59c476 ("ethtool: Ensure new ring parameters are

Re: [PATCH net-next 0/5] PTP support for the SJA1105 DSA driver

2019-06-01 Thread Vladimir Oltean
On Sat, 1 Jun 2019 at 08:07, Richard Cochran wrote: > > On Fri, May 31, 2019 at 09:12:03PM +0300, Vladimir Oltean wrote: > > It won't work unless I make changes to dsa_switch_rcv. > > Or to the tagging code. > > > Right now taggers can only return a pointer to the skb, or NULL, case > > in which

Re: [PATCH 4/4] s390: drop meaningless 'targets' from tools Makefile

2019-06-01 Thread Heiko Carstens
On Fri, May 17, 2019 at 04:54:27PM +0900, Masahiro Yamada wrote: > 'targets' should be specified to include .*.cmd files to evaluate > if_changed or friends. > > Here, facility-defs.h and dis-defs.h are generated by filechk. > > Because filechk does not generate .*.cmd file, the 'targets'

Re: [PATCH] s390/purgatory: update .gitignore

2019-06-01 Thread Heiko Carstens
On Fri, May 31, 2019 at 11:46:51AM +0900, Masahiro Yamada wrote: > Since commit 4c0f032d4963 ("s390/purgatory: Omit use of bin2c"), > kexec-purgatory.c is not generated. > > purgatory and purgatory.lds are generated files, so should be ignored > by git. > > Signed-off-by: Masahiro Yamada > ---

Re: [PATCH 3/4] s390: drop redundant directory creation from tools Makefile

2019-06-01 Thread Heiko Carstens
On Fri, May 17, 2019 at 04:54:26PM +0900, Masahiro Yamada wrote: > As you can see in scripts/Kbuild.include, the filechk creates the > parent directory of the target as needed. > > This Makefile does not need to explicitly create the directory. > > Signed-off-by: Masahiro Yamada > --- > >

Re: [PATCH 1/4] s390: do not pass $(LINUXINCLUDE) to gen_opcode_table.c

2019-06-01 Thread Heiko Carstens
On Fri, May 17, 2019 at 04:54:24PM +0900, Masahiro Yamada wrote: > I guess HOSTCFLAGS_gen_opcode_table.o was blindly copied from > HOSTCFLAGS_gen_facilities.o > > The reason of adding $(LINUXINCLUDE) to HOSTCFLAGS_gen_facilities.o > is because gen_facilities.c references some CONFIG options.

Re: [PATCH] arch: s390: use struct_size() in kmalloc()

2019-06-01 Thread Heiko Carstens
On Fri, May 17, 2019 at 03:15:17PM +0800, xiaolinkui wrote: > Use the new struct_size() helper to keep code simple. > > Signed-off-by: xiaolinkui > --- > arch/s390/include/asm/idals.h | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/arch/s390/include/asm/idals.h

Re: [PATCH 2/4] s390: drop unneeded -Wall addition from tools Makefile

2019-06-01 Thread Heiko Carstens
On Fri, May 17, 2019 at 04:54:25PM +0900, Masahiro Yamada wrote: > The top level Makefile adds -Wall globally for all host tools: > > KBUILD_HOSTCFLAGS := -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 \ > > I see two "-Wall" added for compiling these tools. > > Of course, it is allowed

[PATCH] wd719x: Fix resets and aborts

2019-06-01 Thread Ondrej Zary
Host reset oopses because it calls wd719x_chip_init, which calls request_firmware, under a spinlock. Stop the RISC first, then flush active SCBs under a spinlock. Finally call wd719x_chip_init unlocked. Also found and fixed more bugs during tests: Affected active SCBs were not flushed during

Re: [PATCH v2] arm64: dts: rockchip: Add missing configuration pwr amd rst for PCIe

2019-06-01 Thread Manivannan Sadhasivam
Hi, On Fri, May 31, 2019 at 08:19:13PM +, Anand Moon wrote: > This patch add missing PCIe gpio pin (#PCIE_PWR) for vcc3v3_pcie power > regulator node also add missing reset pinctrl (#PCIE_PERST_L) for PCIe node. > > Signed-off-by: Anand Moon > --- > using schematics: thanks for suggested by

Re: [PATCH v6 15/19] arm64: Add vDSO compat support

2019-06-01 Thread Catalin Marinas
On Thu, May 30, 2019 at 03:15:27PM +0100, Vincenzo Frascino wrote: > Add vDSO compat support to the arm64 building system. > > Cc: Catalin Marinas > Cc: Will Deacon > Signed-off-by: Vincenzo Frascino > --- > arch/arm64/Kconfig | 1 + > arch/arm64/Makefile| 23

Re: [PATCH v3 16/16] fpga: dfl: fme: add performance reporting support

2019-06-01 Thread Wu Hao
On Thu, May 30, 2019 at 12:03:05PM -0700, Greg KH wrote: > On Mon, May 27, 2019 at 01:22:26PM +0800, Wu Hao wrote: > > --- /dev/null > > +++ b/drivers/fpga/dfl-fme-perf.c > > @@ -0,0 +1,962 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* > > + * Driver for FPGA Management Engine (FME) Global

[v4 4/7] drm/mediatek: add frame size control

2019-06-01 Thread Jitao Shi
Our new DSI chip has frame size control. So add the driver data to control for different chips. Signed-off-by: Jitao Shi Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_dsi.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c

Re: [PATCH v4] page cache: Store only head pages in i_pages

2019-06-01 Thread Chris Wilson
Quoting Matthew Wilcox (2019-03-07 15:30:51) > Transparent Huge Pages are currently stored in i_pages as pointers to > consecutive subpages. This patch changes that to storing consecutive > pointers to the head page in preparation for storing huge pages more > efficiently in i_pages. > > Large

[v4 6/7] drm/mediatek: change the dsi phytiming calculate method

2019-06-01 Thread Jitao Shi
Change the method of frame rate calc which can get more accurate frame rate. data rate = pixel_clock * bit_per_pixel / lanes Adjust hfp_wc to adapt the additional phy_data if MIPI_DSI_MODE_VIDEO_BURST hfp_wc = hfp * bpp - data_phy_cycles * lanes - 12 - 6; else hfp_wc = hfp * bpp

Re: [PATCH] x86/build: Move _etext to actual end of .text

2019-06-01 Thread Klaus Kusche
Hello, same problem here. gcc version 9.1.0 (Gentoo 9.1.0 p1.0) linux-5.1.6 RELOCS arch/x86/boot/compressed/vmlinux.relocs Invalid absolute R_X86_64_32S relocation: _etext make[2]: *** [arch/x86/boot/compressed/Makefile:130: arch/x86/boot/compressed/vmlinux.relocs] Error 1 make[2]: ***

[PATCH v2] crypto: pcrypt: Fix possible deadlock in padata_sysfs_release

2019-06-01 Thread Kefeng Wang
There is a deadlock issue in pcrypt_init_padata(), pcrypt_init_padata() cpus_read_lock() padata_free() padata_sysfs_release() cpus_read_lock() Narrow rcu_read_lock/unlock() and move put_online_cpus() before padata_free() to fix it. Reported-by: Hulk Robot

Re: [PATCH v4 05/14] arm64, mm: Make randomization selected by generic topdown mmap layout

2019-06-01 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

[PATCH] ASoC: da7219: Fix build error without CONFIG_I2C

2019-06-01 Thread YueHaibing
Fix gcc build error while CONFIG_I2C is not set sound/soc/codecs/da7219.c:2640:1: warning: data definition has no type or storage class module_i2c_driver(da7219_i2c_driver); ^ sound/soc/codecs/da7219.c:2640:1: error: type defaults to int in declaration of module_i2c_driver

Re: [PATCH v1 1/2] fork: add clone3

2019-06-01 Thread Yann Droneaud
Hi, Le samedi 01 juin 2019 à 00:08 +0200, Christian Brauner a écrit : > On Wed, May 29, 2019 at 05:42:14PM +0200, Yann Droneaud wrote: > > Le mercredi 29 mai 2019 à 17:22 +0200, Christian Brauner a écrit : > > > This adds the clone3 system call. > > > > > > > > > diff --git a/kernel/fork.c

Re: ss: Checking efficient analysis for network connections

2019-06-01 Thread Markus Elfring
> Multi-line output in ss makes it difficult to search for things with grep. I became more concerned about efficient data processing for the provided information. There are further software development possibilities to consider, aren't there? The chosen data formats influence the software

Re: [PATCH V2 10/12] gpio: tegra: implement wake event support for Tegra210 and prior GPIO

2019-06-01 Thread Sowjanya Komatineni
On 5/29/19 7:03 AM, Thierry Reding wrote: On Tue, May 28, 2019 at 04:08:54PM -0700, Sowjanya Komatineni wrote: The GPIO controller doesn't have any controls to enable the system to wake up from low power states based on activity on GPIO pins. An extra hardware block that is part of the power

[PATCH] perf cgroups: Don't rotate events for cgroups unnecessarily

2019-06-01 Thread Ian Rogers
Currently perf_rotate_context assumes that if the context's nr_events != nr_active a rotation is necessary for perf event multiplexing. With cgroups, nr_events is the total count of events for all cgroups and nr_active will not include events in a cgroup other than the current task's. This makes

Re: [PATCH v3 16/16] fpga: dfl: fme: add performance reporting support

2019-06-01 Thread Wu Hao
On Thu, May 30, 2019 at 01:53:23PM -0500, Alan Tull wrote: > On Mon, May 27, 2019 at 12:39 AM Wu Hao wrote: > > Hi Hao, > > Just one correction that I saw below, sorry I didn't catch it last time. Hi Alan Thanks for the review. I will remove the code below which is not used. Hao > > > > >

Re: [PATCH] i3c: master: Use struct_size() helper

2019-06-01 Thread Boris Brezillon
On Fri, 31 May 2019 12:35:32 -0500 "Gustavo A. R. Silva" wrote: > Make use of the struct_size() helper instead of an open-coded version > in order to avoid any potential type mistakes, in particular in the > context in which this code is being used. > > So, replace the following form: > >

[PATCH net-next] qed: Fix build error without CONFIG_DEVLINK

2019-06-01 Thread YueHaibing
Fix gcc build error while CONFIG_DEVLINK is not set drivers/net/ethernet/qlogic/qed/qed_main.o: In function `qed_remove': qed_main.c:(.text+0x1eb4): undefined reference to `devlink_unregister' Select DEVLINK to fix this. Reported-by: Hulk Robot Fixes: 24e04879abdd ("qed: Add qed devlink

Re: [PATCH 1/3] mtd: nand: raw: brcmnand: Refactored code and introduced inline functions

2019-06-01 Thread Boris Brezillon
On Thu, 30 May 2019 17:20:35 -0400 Kamal Dasu wrote: > Refactored NAND ECC and CMD address configuration code to use inline > functions. I'd expect the compiler to be smart enough to decide when inlining is appropriate. Did you check that adding the inline specifier actually makes a difference?

[PATCH 02/16] mm: use untagged_addr() for get_user_pages_fast addresses

2019-06-01 Thread Christoph Hellwig
This will allow sparc64 to override its ADI tags for get_user_pages and get_user_pages_fast. Signed-off-by: Christoph Hellwig --- mm/gup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/gup.c b/mm/gup.c index f173fcbaf1b2..9775f7675653 100644 --- a/mm/gup.c +++

[PATCH 04/16] mm: lift the x86_32 PAE version of gup_get_pte to common code

2019-06-01 Thread Christoph Hellwig
The split low/high access is the only non-READ_ONCE version of gup_get_pte that did show up in the various arch implemenations. Lift it to common code and drop the ifdef based arch override. Signed-off-by: Christoph Hellwig --- arch/x86/Kconfig | 1 +

[PATCH 05/16] MIPS: use the generic get_user_pages_fast code

2019-06-01 Thread Christoph Hellwig
The mips code is mostly equivalent to the generic one, minus various bugfixes and an arch override for gup_fast_permitted. Note that this defines ARCH_HAS_PTE_SPECIAL for mips as mips has pte_special and pte_mkspecial implemented and used in the existing gup code. They are no-op stubs, though

[PATCH 13/16] mm: validate get_user_pages_fast flags

2019-06-01 Thread Christoph Hellwig
We can only deal with FOLL_WRITE and/or FOLL_LONGTERM in get_user_pages_fast, so reject all other flags. Signed-off-by: Christoph Hellwig --- mm/gup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mm/gup.c b/mm/gup.c index c8da7764de9c..53b50c63ba51 100644 --- a/mm/gup.c +++ b/mm/gup.c

[PATCH 07/16] sh: use the generic get_user_pages_fast code

2019-06-01 Thread Christoph Hellwig
The sh code is mostly equivalent to the generic one, minus various bugfixes and two arch overrides that this patch adds to pgtable.h. Signed-off-by: Christoph Hellwig --- arch/sh/Kconfig | 2 + arch/sh/include/asm/pgtable.h | 37 + arch/sh/mm/Makefile | 2 +-

[PATCH 08/16] sparc64: add the missing pgd_page definition

2019-06-01 Thread Christoph Hellwig
sparc64 only had pgd_page_vaddr, but not pgd_page. Signed-off-by: Christoph Hellwig --- arch/sparc/include/asm/pgtable_64.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/sparc/include/asm/pgtable_64.h b/arch/sparc/include/asm/pgtable_64.h index 22500c3be7a9..dcf970e82262 100644 ---

[PATCH 01/16] uaccess: add untagged_addr definition for other arches

2019-06-01 Thread Christoph Hellwig
From: Andrey Konovalov To allow arm64 syscalls to accept tagged pointers from userspace, we must untag them when they are passed to the kernel. Since untagging is done in generic parts of the kernel, the untagged_addr macro needs to be defined for all architectures. Define it as a noop for

[PATCH 06/16] sh: add the missing pud_page definition

2019-06-01 Thread Christoph Hellwig
sh only had pud_page_vaddr, but not pud_page. Signed-off-by: Christoph Hellwig --- arch/sh/include/asm/pgtable-3level.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/sh/include/asm/pgtable-3level.h b/arch/sh/include/asm/pgtable-3level.h index 7d8587eb65ff..8ff6fb6b4d19 100644 ---

[PATCH 16/16] mm: mark the page referenced in gup_hugepte

2019-06-01 Thread Christoph Hellwig
All other get_user_page_fast cases mark the page referenced, so do this here as well. Signed-off-by: Christoph Hellwig --- mm/gup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/gup.c b/mm/gup.c index 6090044227f1..d1fc008de292 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -2020,6 +2020,7 @@

[PATCH 15/16] mm: switch gup_hugepte to use try_get_compound_head

2019-06-01 Thread Christoph Hellwig
This applies the overflow fixes from 8fde12ca79aff ("mm: prevent get_user_pages() from overflowing page refcount") to the powerpc hugepd code and brings it back in sync with the other GUP cases. Signed-off-by: Christoph Hellwig --- mm/gup.c | 3 ++- 1 file changed, 2 insertions(+), 1

RFC: switch the remaining architectures to use generic GUP v2

2019-06-01 Thread Christoph Hellwig
Hi Linus and maintainers, below is a series to switch mips, sh and sparc64 to use the generic GUP code so that we only have one codebase to touch for further improvements to this code. I don't have hardware for any of these architectures, and generally no clue about their page table management,

[PATCH 12/16] mm: consolidate the get_user_pages* implementations

2019-06-01 Thread Christoph Hellwig
Always build mm/gup.c, and move the nommu versions and replace the separate stubs for various functions by the default ones, with the _fast version always falling back to the slow path because gup_fast_permitted always returns false now if HAVE_FAST_GUP is not set, and we use the nommu version of

[PATCH 14/16] mm: move the powerpc hugepd code to mm/gup.c

2019-06-01 Thread Christoph Hellwig
While only powerpc supports the hugepd case, the code is pretty generic and I'd like to keep all GUP internals in one place. Signed-off-by: Christoph Hellwig --- arch/powerpc/Kconfig | 1 + arch/powerpc/mm/hugetlbpage.c | 72 -- include/linux/hugetlb.h

[PATCH 03/16] mm: simplify gup_fast_permitted

2019-06-01 Thread Christoph Hellwig
Pass in the already calculated end value instead of recomputing it, and leave the end > start check in the callers instead of duplicating them in the arch code. Signed-off-by: Christoph Hellwig --- arch/s390/include/asm/pgtable.h | 8 +--- arch/x86/include/asm/pgtable_64.h | 8 +---

[PATCH 10/16] sparc64: use the generic get_user_pages_fast code

2019-06-01 Thread Christoph Hellwig
The sparc64 code is mostly equivalent to the generic one, minus various bugfixes and two arch overrides that this patch adds to pgtable.h. Signed-off-by: Christoph Hellwig --- arch/sparc/Kconfig | 1 + arch/sparc/include/asm/pgtable_64.h | 18 ++ arch/sparc/mm/Makefile

[PATCH 11/16] mm: rename CONFIG_HAVE_GENERIC_GUP to CONFIG_HAVE_FAST_GUP

2019-06-01 Thread Christoph Hellwig
We only support the generic GUP now, so rename the config option to be more clear, and always use the mm/Kconfig definition of the symbol and select it from the arch Kconfigs. Signed-off-by: Christoph Hellwig --- arch/arm/Kconfig | 5 + arch/arm64/Kconfig | 4 +--- arch/mips/Kconfig

[PATCH 09/16] sparc64: define untagged_addr()

2019-06-01 Thread Christoph Hellwig
Add a helper to untag a user pointer. This is needed for ADI support in get_user_pages_fast. Signed-off-by: Christoph Hellwig --- arch/sparc/include/asm/pgtable_64.h | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/sparc/include/asm/pgtable_64.h

Re: [PATCH 4.19 130/276] block: fix use-after-free on gendisk

2019-06-01 Thread Pavel Machek
Hi! > +++ b/block/genhd.c > @@ -518,6 +518,18 @@ void blk_free_devt(dev_t devt) > } > } > > +/** > + * We invalidate devt by assigning NULL pointer for devt in idr. > + */ > +void blk_invalidate_devt(dev_t devt) > +{ > + if (MAJOR(devt) == BLOCK_EXT_MAJOR) { > +

[PATCH REPOST v8 3/3] i2c-ocores: sifive: add polling mode workaround for FU540-C000 SoC.

2019-06-01 Thread Sagar Shrikant Kadam
The i2c-ocore driver already has a polling mode interface.But it needs a workaround for FU540 Chipset on HiFive unleashed board (RevA00). There is an erratum in FU540 chip that prevents interrupt driven i2c transfers from working, and also the I2C controller's interrupt bit cannot be cleared if

[PATCH REPOST v8 1/3] dt-bindings: i2c: extend existing opencore bindings.

2019-06-01 Thread Sagar Shrikant Kadam
Reformatted compatibility strings to one valid combination on each line. Add FU540-C000 specific device tree bindings to already available i2-ocores file. This device is available on HiFive Unleashed Rev A00 board. Move interrupt under optional property list as this can be optional. The

[PATCH REPOST v8 0/3] Extend dt bindings to support I2C on sifive devices and a fix broken IRQ in polling mode.

2019-06-01 Thread Sagar Shrikant Kadam
The patch is based on mainline v5.2-rc1 and extends DT-bindings for Opencore based I2C IP block reimplemented in FU540 SoC, available on HiFive unleashed board (Rev A00), and also provides a workaround for broken IRQ which affects the already available I2C polling mode interface in mainline, for

[PATCH REPOST v8 2/3] i2c-ocores: sifive: add support for i2c device on FU540-c000 SoC.

2019-06-01 Thread Sagar Shrikant Kadam
Update device id table for Opencore's I2C master based re-implementation used in FU540-c000 chipset on HiFive Unleashed platform. Device ID's include Sifive, soc-specific device for chip specific tweaks and sifive IP block specific device for generic programming model. Signed-off-by: Sagar

possible deadlock in get_user_pages_unlocked (2)

2019-06-01 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:3c09c195 Add linux-next specific files for 20190531 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=13b36b9aa0 kernel config: https://syzkaller.appspot.com/x/.config?x=6cfb24468280cd5c

general protection fault in tcp_v6_connect

2019-06-01 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:f4aa8012 cxgb4: Make t4_get_tp_e2c_map static git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=1662cb12a0 kernel config: https://syzkaller.appspot.com/x/.config?x=d137eb988ffd93c3 dashboard link:

KASAN: user-memory-access Read in ip6_hold_safe (3)

2019-06-01 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:dfb569f2 net: ll_temac: Fix compile error git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=10afcb8aa0 kernel config: https://syzkaller.appspot.com/x/.config?x=fc045131472947d7 dashboard link:

<    1   2   3   4   5