[PATCH 4/6] dt-bindings: arm: amlogic: add SM1 bindings

2019-08-20 Thread Neil Armstrong
Add bindings for the new Amlogic SM1 SoC Family. It a derivative of the G12A SoC Family with : - Cortex-A55 core instead of A53 - more power domains - a neural network co-processor - a CSI input and image processor Signed-off-by: Neil Armstrong ---

Re: [PATCH net-next v2 6/9] net: macsec: hardware offloading infrastructure

2019-08-20 Thread Sabrina Dubroca
2019-08-20, 12:01:40 +0200, Antoine Tenart wrote: > So it seems the ability to enable or disable the offloading on a given > interface is the main missing feature. I'll add that, however I'll > probably (at least at first): > > - Have the interface to be fully offloaded or fully handled in s/w

[PATCH 3/6] soc: amlogic: clk-measure: Add support for SM1

2019-08-20 Thread Neil Armstrong
Add the clk-measurer clocks IDs for the Amlogic SM1 SoC family. Signed-off-by: Neil Armstrong --- drivers/soc/amlogic/meson-clk-measure.c | 134 1 file changed, 134 insertions(+) diff --git a/drivers/soc/amlogic/meson-clk-measure.c

[PATCH 6/6] arm64: dts: add support for SM1 based SEI Robotics SEI610

2019-08-20 Thread Neil Armstrong
Add support for the Amlogic SM1 Based SEI610 board. The SM1 SoC is a derivative of the G12A SoC Family with : - Cortex-A55 core instead of A53 - more power domains, including USB & PCIe - a neural network co-processor (NNA) - a CSI input and image processor - some changes in the audio complex,

[PATCH 2/6] dt-bindings: soc: amlogic: clk-measure: Add SM1 compatible

2019-08-20 Thread Neil Armstrong
Add the Amlogic SM1 Compatible for the clk-measurer IP. Reviewed-by: Martin Blumenstingl Reviewed-by: Rob Herring Signed-off-by: Neil Armstrong --- Documentation/devicetree/bindings/soc/amlogic/clk-measure.txt | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 1/6] soc: amlogic: meson-gx-socinfo: Add SM1 and S905X3 IDs

2019-08-20 Thread Neil Armstrong
Add the SoC IDs for the S905X3 Amlogic SM1 SoC. Reviewed-by: Martin Blumenstingl Reviewed-by: Jerome Brunet Signed-off-by: Neil Armstrong --- drivers/soc/amlogic/meson-gx-socinfo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/soc/amlogic/meson-gx-socinfo.c

Re: [PATCH] ARM: dts: vf610-zii-cfu1: Slow I2C0 down to 100kHz

2019-08-20 Thread Marc Gonzalez
On 20/08/2019 05:08, Andrey Smirnov wrote: > Fiber-optic module attached to the bus is only rated to work at > 100kHz, so drop the bus frequncy to accomodate that. s/100kHz/100 kHz s/frequncy/frequency s/accomodate/accommodate Regards.

[PATCH v4 1/3] powerpc: rewrite LOAD_REG_IMMEDIATE() as an intelligent macro

2019-08-20 Thread Christophe Leroy
Today LOAD_REG_IMMEDIATE() is a basic #define which loads all parts on a value into a register, including the parts that are NUL. This means always 2 instructions on PPC32 and always 5 instructions on PPC64. And those instructions cannot run in parallele as they are updating the same register.

[PATCH v4 3/3] powerpc/64: optimise LOAD_REG_IMMEDIATE_SYM()

2019-08-20 Thread Christophe Leroy
Optimise LOAD_REG_IMMEDIATE_SYM() using a temporary register to parallelise operations. It reduces the path from 5 to 3 instructions. Suggested-by: Segher Boessenkool Signed-off-by: Christophe Leroy --- v3: new v4: fixed the registers of lis/ori to match rldimi args (tmp is upper part, reg

[PATCH v4 2/3] powerpc/32: replace LOAD_MSR_KERNEL() by LOAD_REG_IMMEDIATE()

2019-08-20 Thread Christophe Leroy
LOAD_MSR_KERNEL() and LOAD_REG_IMMEDIATE() are doing the same thing in the same way. Drop LOAD_MSR_KERNEL() Signed-off-by: Christophe Leroy --- v2: no change v3: no change v4: no change --- arch/powerpc/kernel/entry_32.S | 18 +- arch/powerpc/kernel/head_32.h | 21

Re: [PATCH 2/2] uacce: add uacce module

2019-08-20 Thread Greg Kroah-Hartman
On Tue, Aug 20, 2019 at 08:36:50PM +0800, zhangfei wrote: > Hi, Greg > > On 2019/8/19 下午6:24, Greg Kroah-Hartman wrote: > > > > > +static int uacce_create_chrdev(struct uacce *uacce) > > > > > +{ > > > > > + int ret; > > > > > + > > > > > + ret = idr_alloc(_idr, uacce, 0, 0, GFP_KERNEL);

RE: [PATCH 0/2] clocksource/Hyper-V: Add Hyper-V specific sched clock function

2019-08-20 Thread Michael Kelley
From: Vitaly Kuznetsov Sent: Tuesday, August 13, 2019 1:34 AM > > Michael Kelley writes: > > > From: Tianyu Lan Sent: Tuesday, July 30, 2019 > > 6:41 AM > >> > >> On Mon, Jul 29, 2019 at 8:13 PM Vitaly Kuznetsov > >> wrote: > >> > > >> > Peter Zijlstra writes: > >> > > >> > > On Mon, Jul

Re: [PATCH 2/2] uacce: add uacce module

2019-08-20 Thread Greg Kroah-Hartman
On Tue, Aug 20, 2019 at 08:38:46PM +0800, zhangfei wrote: > > > On 2019/8/19 下午6:22, Greg Kroah-Hartman wrote: > > On Mon, Aug 19, 2019 at 05:09:23PM +0800, zhangfei@foxmail.com wrote: > > > Hi, Greg > > > > > > Thanks for your kind suggestion. > > > > > > On 2019/8/15 下午10:12, Greg

Re: [PATCH bpf-next] xsk: proper socket state check in xsk_poll

2019-08-20 Thread Daniel Borkmann
On 8/20/19 12:04 PM, Björn Töpel wrote: From: Björn Töpel The poll() implementation for AF_XDP sockets did not perform the proper state checks, prior accessing the socket umem. This patch fixes that by performing a xsk_is_bound() check. Suggested-by: Hillf Danton Reported-by:

Re: [PATCH v2] mtd: spi-nor: Add Winbond w25q256jvm

2019-08-20 Thread Tudor.Ambarus
On 07/30/2019 11:18 AM, Avi Fishman wrote: > External E-Mail > > > Similar to w25q256 (besides not supporting QPI mode) but with different ID. > The "JVM" suffix is in the datasheet. > The datasheet indicates DUAL and QUAD are supported. >

Re: [PATCH 14/14] mm/lru: fix the comments of lru_lock

2019-08-20 Thread Alex Shi
在 2019/8/20 下午10:00, Matthew Wilcox 写道: > On Tue, Aug 20, 2019 at 05:48:37PM +0800, Alex Shi wrote: >> @@ -159,7 +159,7 @@ static inline bool free_area_empty(struct free_area >> *area, int migratetype) >> struct pglist_data; >> >> /* >> - * zone->lock and the zone lru_lock are two of the

Re: [PATCH AUTOSEL 5.2 09/44] intel_th: Use the correct style for SPDX License Identifier

2019-08-20 Thread Greg Kroah-Hartman
On Tue, Aug 20, 2019 at 09:39:53AM -0400, Sasha Levin wrote: > From: Nishad Kamdar > > [ Upstream commit fac7b714c514fcc41e1d6450c694b0a5f8d3 ] > > This patch corrects the SPDX License Identifier style > in header files related to Drivers for Intel(R) Trace Hub > controller. > For C header

Re: [PATCH 0/2] A General Accelerator Framework, WarpDrive

2019-08-20 Thread zhangfei
Hi, Jerome Thanks for your suggestion On 2019/8/16 上午1:04, Jerome Glisse wrote: On Wed, Aug 14, 2019 at 05:34:23PM +0800, Zhangfei Gao wrote: *WarpDrive* is a general accelerator framework for the user application to access the hardware without going through the kernel in data path.

Re: [patch 04/44] posix-cpu-timers: Fixup stale comment

2019-08-20 Thread Frederic Weisbecker
On Mon, Aug 19, 2019 at 04:31:45PM +0200, Thomas Gleixner wrote: > The comment above cleanup_timers() is outdated. The timers are only removed > from the task/process list heads but not modified in any other way. > > Signed-off-by: Thomas Gleixner > --- > kernel/time/posix-cpu-timers.c |7

Re: [PATCH net-next v3 2/4] net: mdio: add PTP offset compensation to mdiobus_write_sts

2019-08-20 Thread Miroslav Lichvar
On Tue, Aug 20, 2019 at 02:29:27PM +0200, Hubert Feurstein wrote: > Am Di., 20. Aug. 2019 um 11:49 Uhr schrieb Miroslav Lichvar > > This is important to not break the estimation of maximum error in the > > measured offset. Applications using the ioctl may assume that the > > maximum error is

Re: [PATCH 2/2] drivers: input: mouse: alps: drop unneeded likely() call around IS_ERR()

2019-08-20 Thread Pali Rohár
On Tuesday 20 August 2019 14:21:33 Enrico Weigelt, metux IT consult wrote: > On 20.08.19 13:17, Pali Rohár wrote: > > On Tuesday 20 August 2019 12:56:12 Enrico Weigelt, metux IT consult wrote: > > > From: Enrico Weigelt > > > > > > IS_ERR() already calls unlikely(), so this extra unlikely() call

Re: [PATCH] perf c2c: Display proper cpu count in nodes column

2019-08-20 Thread Jiri Olsa
On Tue, Aug 20, 2019 at 11:16:52AM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Aug 20, 2019 at 04:02:19PM +0200, Jiri Olsa escreveu: > > There's wrong bitmap considered when checking > > for cpu count of specific node. > > > > We do the needed computation for 'set' variable, > > but at the

Re: [PATCH v2 2/3] x86/cpu: Add new Intel Atom CPU model name

2019-08-20 Thread Luck, Tony
> Author: Peter Zijlstra > Date: Tue Aug 7 10:17:27 2018 -0700 > >x86/cpu: Sanitize FAM6_ATOM naming > > > What 2 or 3 or other number means? In this case I want it to mean “This is an Airmont derived core. Mostly like original Airmont, so you might see some places where we have the

Re: [PATCH v6 6/7] nfc: pn533: Add autopoll capability

2019-08-20 Thread Lars Poeschel
On Tue, Aug 20, 2019 at 02:23:44PM +0200, Johan Hovold wrote: > On Tue, Aug 20, 2019 at 02:03:43PM +0200, Lars Poeschel wrote: > > drivers/nfc/pn533/pn533.c | 193 +- > > drivers/nfc/pn533/pn533.h | 10 +- > > 2 files changed, 197 insertions(+), 6

Re: [PATCH] omfs: Fix a memory leak bug

2019-08-20 Thread Bob Copeland
On Tue, Aug 20, 2019 at 01:22:59AM -0500, Wenwen Wang wrote: > In omfs_get_imap(), 'sbi->s_imap' is allocated through kcalloc(). However, > it is not deallocated in the following execution if 'block' is not less > than 'sbi->s_num_blocks', leading to a memory leak bug. To fix this issue, > go to

Re: [PATCH] x86/mm/pti: in pti_clone_pgtable() don't increase addr by PUD_SIZE

2019-08-20 Thread Dave Hansen
On 8/20/19 7:14 AM, Song Liu wrote: >> *But*, that shouldn't get hit on a Skylake CPU since those have PCIDs >> and shouldn't have a global kernel image. Could you confirm whether >> PCIDs are supported on this CPU? > Yes, pcid is listed in /proc/cpuinfo. So what's going on? Could you confirm

Re: [PATCH] perf c2c: Display proper cpu count in nodes column

2019-08-20 Thread Arnaldo Carvalho de Melo
Em Tue, Aug 20, 2019 at 04:02:19PM +0200, Jiri Olsa escreveu: > There's wrong bitmap considered when checking > for cpu count of specific node. > > We do the needed computation for 'set' variable, > but at the end we use the 'c2c_he->cpuset' weight, > which shows misleading numbers. > >

[PATCH v2 net-next] netdevsim: Fix build error without CONFIG_INET

2019-08-20 Thread YueHaibing
If CONFIG_INET is not set, building fails: drivers/net/netdevsim/dev.o: In function `nsim_dev_trap_report_work': dev.c:(.text+0x67b): undefined reference to `ip_send_check' Use ip_fast_csum instead of ip_send_check to avoid dependencies on CONFIG_INET. Reported-by: Hulk Robot Fixes:

Re: [PATCH] PCI: Add sysfs attribute for disabling PCIe link to downstream component

2019-08-20 Thread Bjorn Helgaas
On Tue, Aug 20, 2019 at 12:58:20PM +0300, Mika Westerberg wrote: > On Mon, Aug 19, 2019 at 06:52:45PM -0500, Bjorn Helgaas wrote: > > > Right, it looks like we need some sort of flag there anyway. > > > > Does this mean you're looking at getting rid of "has_secondary_link", > > you think it's

[PATCH -next] sched/fair: fix -Wunused-but-set-variable warnings

2019-08-20 Thread Qian Cai
The linux-next commit "sched/fair: Fix low cpu usage with high throttling by removing expiration of cpu-local slices" [1] introduced a few compilation warnings, kernel/sched/fair.c: In function '__refill_cfs_bandwidth_runtime': kernel/sched/fair.c:4365:6: warning: variable 'now' set but not used

Re: [PATCH] x86/mm/pti: in pti_clone_pgtable() don't increase addr by PUD_SIZE

2019-08-20 Thread Song Liu
> On Aug 20, 2019, at 6:57 AM, Dave Hansen wrote: > > On 8/20/19 12:51 AM, Song Liu wrote: >> In our x86_64 kernel, pti_clone_pgtable() fails to clone 7 PMDs because >> of this issuse, including PMD for the irq entry table. For a memcache >> like workload, this introduces about 4.5x more

Re: assign_desc() barriers: Re: [RFC PATCH v4 1/9] printk-rb: add a new printk ringbuffer implementation

2019-08-20 Thread Petr Mladek
On Tue 2019-08-20 10:22:53, Petr Mladek wrote: > On Thu 2019-08-08 00:32:26, John Ogness wrote: > > --- /dev/null > > +++ b/kernel/printk/ringbuffer.c > > +/** > > + * assign_desc() - Assign a descriptor to the caller. > > + * > > + * @e: The entry structure to store the assigned descriptor to. >

Re: linux-next: Tree for Aug 19 (drivers/net/netdevsim/dev.o)

2019-08-20 Thread Ido Schimmel
On Mon, Aug 19, 2019 at 09:16:13PM -0700, Randy Dunlap wrote: > On 8/19/19 2:18 AM, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20190816: > > > > on x86_64: > # CONFIG_INET is not set > > ld: drivers/net/netdevsim/dev.o: in function `nsim_dev_trap_report_work': >

[PATCH 1/4] iio: adc: ina2xx: Define *device_node only once

2019-08-20 Thread Michal Simek
There is no reason to c full client->dev.of_node link when simple variable can keep it. Signed-off-by: Michal Simek --- drivers/iio/adc/ina2xx-adc.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/ina2xx-adc.c b/drivers/iio/adc/ina2xx-adc.c index

Re: [PATCH 01/14] mm/lru: move pgdat lru_lock into lruvec

2019-08-20 Thread Alex Shi
在 2019/8/20 下午9:40, Matthew Wilcox 写道: > On Tue, Aug 20, 2019 at 05:48:24PM +0800, Alex Shi wrote: >> +++ b/include/linux/mmzone.h >> @@ -295,6 +295,9 @@ struct zone_reclaim_stat { >> >> struct lruvec { >> struct list_headlists[NR_LRU_LISTS]; >> +/* move lru_lock to

[PATCH 4/4] iio: adc: ina2xx: Use label proper for device identification

2019-08-20 Thread Michal Simek
Add support for using label property for easier device identification via iio framework. Signed-off-by: Michal Simek --- drivers/iio/adc/ina2xx-adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/ina2xx-adc.c b/drivers/iio/adc/ina2xx-adc.c index

Re: [RFC][Patch v12 1/2] mm: page_reporting: core infrastructure

2019-08-20 Thread Nitesh Narayan Lal
On 8/12/19 4:04 PM, Nitesh Narayan Lal wrote: > On 8/12/19 2:47 PM, Alexander Duyck wrote: >> On Mon, Aug 12, 2019 at 6:13 AM Nitesh Narayan Lal wrote: >>> This patch introduces the core infrastructure for free page reporting in >>> virtual environments. It enables the kernel to track the free

[PATCH 2/4] iio: adc: ina2xx: Setup better name then simple ina2xx

2019-08-20 Thread Michal Simek
On systems with multiple ina2xx chips it is impossible to find out which iio device is which one based on probe order. That's why it is necessary to setup better name based on possition. The patch is reusing dev_name which is setup by core with client->name. name char array was setup to 128 byte

Re: Status of Subsystems

2019-08-20 Thread Joe Perches
On Tue, 2019-08-20 at 15:56 +0200, Sebastian Duda wrote: > On 20.08.19 15:14, Pali Rohár wrote: > > On Tuesday 20 August 2019 15:05:51 Sebastian Duda wrote: > > > Hello Pali, > > > > > > in my master thesis, I'm using the association of subsystems to > > > maintainers/reviewers and its status

Re: [PATCH] perf/x86: Consider pinned events for group validation

2019-08-20 Thread Peter Zijlstra
On Fri, Aug 16, 2019 at 10:49:10AM -0700, kan.li...@linux.intel.com wrote: > From: Kan Liang > > perf stat -M metrics relies on weak groups to reject unschedulable > groups and run them as non-groups. > This uses the group validation code in the kernel. Unfortunately > that code doesn't take

Re: [PATCH net-next] netdevsim: Fix build error without CONFIG_INET

2019-08-20 Thread Ido Schimmel
On Mon, Aug 19, 2019 at 02:59:00PM -0700, Jakub Kicinski wrote: > On Mon, 19 Aug 2019 20:08:25 +0800, YueHaibing wrote: > > If CONFIG_INET is not set, building fails: > > > > drivers/net/netdevsim/dev.o: In function `nsim_dev_trap_report_work': > > dev.c:(.text+0x67b): undefined reference to

Re: [PATCH] ARM: dts: vf610-zii-cfu1: Slow I2C0 down to 100kHz

2019-08-20 Thread Chris Healy
On Mon, Aug 19, 2019 at 8:08 PM Andrey Smirnov wrote: > > Fiber-optic module attached to the bus is only rated to work at > 100kHz, so drop the bus frequncy to accomodate that. > > Signed-off-by: Andrey Smirnov > Cc: Shawn Guo > Cc: Chris Healy > Cc: Fabio Estevam > Cc:

[PATCH v2 03/12] powerpc/mm: drop ppc_md.iounmap() and __iounmap()

2019-08-20 Thread Christophe Leroy
ppc_md.iounmap() is never set, drop it. Once ppc_md.iounmap() is gone, iounmap() remains the only user of __iounmap() and iounmap() does nothing else than calling __iounmap(). So drop iounmap() and make __iounmap() the new iounmap(). Reviewed-by: Christoph Hellwig Signed-off-by: Christophe

[PATCH v2 04/12] powerpc/mm: drop function __ioremap()

2019-08-20 Thread Christophe Leroy
__ioremap() is not used anymore, drop it. Suggested-by: Christoph Hellwig Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/io.h | 6 -- arch/powerpc/mm/pgtable_32.c | 11 ++- arch/powerpc/mm/pgtable_64.c | 7 --- 3 files changed, 2 insertions(+), 22 deletions(-)

[PATCH v2 05/12] powerpc/mm: rework io-workaround invocation.

2019-08-20 Thread Christophe Leroy
ppc_md.ioremap() is only used for I/O workaround on CELL platform, so indirect function call can be avoided. This patch reworks the io-workaround and ioremap() functions to use the global 'io_workaround_inited' flag for the activation of io-workaround. When CONFIG_PPC_IO_WORKAROUNDS or

[PATCH v2 02/12] powerpc/ps3: replace __ioremap() by ioremap_prot()

2019-08-20 Thread Christophe Leroy
__ioremap() is similar to ioremap_prot() except that ioremap_prot() does a few sanity changes in addition. The flags used by PS3 are not impacted by those changes so for PS3 both functions are equivalent. At the same time, drop parts of the comment that have been invalid since commit

[PATCH v2 06/12] powerpc/mm: move common 32/64 bits ioremap functions into ioremap.c

2019-08-20 Thread Christophe Leroy
ioremap(), ioremap_wc() and ioremap_coherent() are now identical on PPC32 and PPC64 as iowa_is_active() will always return false on PPC32. Move them into a new common location called ioremap.c Signed-off-by: Christophe Leroy --- arch/powerpc/mm/Makefile | 2 +- arch/powerpc/mm/ioremap.c

Re: [PATCH] selftests: bpf: install files test_xdp_vlan.sh

2019-08-20 Thread Jesper Dangaard Brouer
On Tue, 20 Aug 2019 15:41:21 +0200 Anders Roxell wrote: > When ./test_xdp_vlan_mode_generic.sh runs it complains that it can't > find file test_xdp_vlan.sh. > > # selftests: bpf: test_xdp_vlan_mode_generic.sh > # ./test_xdp_vlan_mode_generic.sh: line 9: ./test_xdp_vlan.sh: No such > file or

[PATCH v2 08/12] powerpc/mm: make ioremap_bot common to all

2019-08-20 Thread Christophe Leroy
Drop multiple definitions of ioremap_bot and make one common to all subarches. Only CONFIG_PPC_BOOK3E_64 had a global static init value for ioremap_bot. Now ioremap_bot is set in early_init_mmu_global(). Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/32/pgtable.h | 2 --

[PATCH v2 01/12] powerpc: remove the ppc44x ocm.c file

2019-08-20 Thread Christophe Leroy
From: Christoph Hellwig The on chip memory allocator is entirely unused in the kernel tree. Signed-off-by: Christoph Hellwig Acked-by: Christophe Leroy Signed-off-by: Christophe Leroy --- arch/powerpc/configs/ppc40x_defconfig | 1 - arch/powerpc/include/asm/ppc4xx_ocm.h | 31 ---

Re: [PATCH] phy: qcom-qmp: Correct ready status, again

2019-08-20 Thread Marc Gonzalez
On 06/08/2019 02:42, Bjorn Andersson wrote: > Despite extensive testing of 885bd765963b ("phy: qcom-qmp: Correct > READY_STATUS poll break condition") I failed to conclude that the > PHYSTATUS bit of the PCS_STATUS register used in PCIe and USB3 falls as > the PHY gets ready. Similar to the prior

[PATCH v2 09/12] powerpc/mm: Move ioremap functions out of pgtable_32/64.c

2019-08-20 Thread Christophe Leroy
Create ioremap_32.c and ioremap_64.c and move respective ioremap functions out of pgtable_32.c and pgtable_64.c In the meantime, fix a few comments and changes a printk() to pr_warn(). Also fix a few oversplitted lines. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/Makefile | 2 +-

[PATCH v2 10/12] powerpc/mm: refactor ioremap_range() and use ioremap_page_range()

2019-08-20 Thread Christophe Leroy
book3s64's ioremap_range() is almost same as fallback ioremap_range(), except that it calls radix__ioremap_range() when radix is enabled. radix__ioremap_range() is also very similar to the other ones, expect that it calls ioremap_page_range when slab is available. PPC32 __ioremap_caller() have a

[PATCH v2 11/12] powerpc/mm: refactor ioremap vm area setup.

2019-08-20 Thread Christophe Leroy
PPC32 and PPC64 are doing the same once SLAB is available. Create a do_ioremap() function that calls get_vm_area and do the mapping. For PPC64, we add the 4K PFN hack sanity check to __ioremap_caller() in order to avoid using __ioremap_at(). Other checks in __ioremap_at() are irrelevant for

[PATCH v2 12/12] powerpc/mm: split out early ioremap path.

2019-08-20 Thread Christophe Leroy
ioremap does things differently depending on whether SLAB is available or not at different levels. Try to separate the early path from the beginning. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/io.h | 3 ++- arch/powerpc/mm/ioremap.c | 17 +++--

[PATCH v2 07/12] powerpc/mm: move ioremap_prot() into ioremap.c

2019-08-20 Thread Christophe Leroy
Both ioremap_prot() are idenfical, move them into ioremap.c Signed-off-by: Christophe Leroy --- arch/powerpc/mm/ioremap.c| 19 +++ arch/powerpc/mm/pgtable_32.c | 17 - arch/powerpc/mm/pgtable_64.c | 24 3 files changed, 19

[PATCH v2 00/12] powerpc/mm: cleanup and refactoring in ioremap

2019-08-20 Thread Christophe Leroy
The purpose of this series is to cleanup and refactor ioremap. At the time being, ioremap is duplicated in PPC32 and PPC64. In addition, some additional duplication also appear within PPC64. First part of this series drops as much as unused functions. Then io-workaround is reworked to avoid

Re: Status of Subsystems

2019-08-20 Thread Pali Rohár
On Tuesday 20 August 2019 15:56:24 Sebastian Duda wrote: > On 20.08.19 15:14, Pali Rohár wrote: > > On Tuesday 20 August 2019 15:05:51 Sebastian Duda wrote: > > > Hello Pali, > > > > > > in my master thesis, I'm using the association of subsystems to > > > maintainers/reviewers and its status

[PATCH] perf c2c: Display proper cpu count in nodes column

2019-08-20 Thread Jiri Olsa
There's wrong bitmap considered when checking for cpu count of specific node. We do the needed computation for 'set' variable, but at the end we use the 'c2c_he->cpuset' weight, which shows misleading numbers. Reported-by: Joe Mario Link:

Re: [PATCH 1/1] Fix: trace sched switch start/stop racy updates

2019-08-20 Thread Peter Zijlstra
On Fri, Aug 16, 2019 at 09:52:17PM -0700, Paul E. McKenney wrote: > On Fri, Aug 16, 2019 at 03:57:43PM -0700, Linus Torvalds wrote: > > [ . . . ] > > > We add READ_ONCE and WRITE_ONCE annotations when they make sense. Not > > because of some theoretical "compiler is free to do garbage" > >

Re: [PATCH] x86/mm/pti: in pti_clone_pgtable() don't increase addr by PUD_SIZE

2019-08-20 Thread Song Liu
> On Aug 20, 2019, at 6:55 AM, Rik van Riel wrote: > > On Tue, 2019-08-20 at 09:21 -0400, Song Liu wrote: >>> On Aug 20, 2019, at 4:16 AM, Thomas Gleixner >>> wrote: >>> >>> On Tue, 20 Aug 2019, Peter Zijlstra wrote: What that code wants to do is skip to the end of the pud, a

Status of Subsystems - TI BQ27XXX POWER SUPPLY DRIVER

2019-08-20 Thread Sebastian Duda
Hello Andrew, in my master thesis, I'm using the association of subsystems to maintainers/reviewers and its status given in the MAINTAINERS file. During the research I noticed that there are several subsystems without a status in the maintainers file. One of them is the subsystem `TI BQ27XXX

Re: [PATCH 14/14] mm/lru: fix the comments of lru_lock

2019-08-20 Thread Matthew Wilcox
On Tue, Aug 20, 2019 at 05:48:37PM +0800, Alex Shi wrote: > @@ -159,7 +159,7 @@ static inline bool free_area_empty(struct free_area > *area, int migratetype) > struct pglist_data; > > /* > - * zone->lock and the zone lru_lock are two of the hottest locks in the > kernel. > + * zone->lock and

Re: [PATCH] ata: ahci: Lookup PCS register offset based on PCI device ID

2019-08-20 Thread Stephen Douthit
On 8/19/19 10:17 PM, Dan Williams wrote: > On Mon, Aug 19, 2019 at 9:30 AM Stephen Douthit > wrote: >> >> On 8/14/19 1:17 PM, Dan Williams wrote: Can you get someone from the controller design team to give us a clear answer on a revision where this PCS change happened? It

Re: [patch 03/44] posix-timer: Use a callback for cancel synchronization

2019-08-20 Thread Frederic Weisbecker
On Mon, Aug 19, 2019 at 04:31:44PM +0200, Thomas Gleixner wrote: > -static struct k_itimer *timer_wait_running(struct k_itimer *timer, > -unsigned long *flags) > -{ > - timer_t timer_id = READ_ONCE(timer->it_id); > + if

Re: [PATCH v2 2/2] phy: intel-lgm-emmc: Add support for eMMC PHY

2019-08-20 Thread Andy Shevchenko
On Tue, Aug 20, 2019 at 04:56:02PM +0300, Andy Shevchenko wrote: > On Tue, Aug 20, 2019 at 06:31:33PM +0800, Ramuthevar,Vadivel MuruganX wrote: > > +#define DR_TY_50OHM(x) ((~(x) << 28) & DR_TY_MASK) > > For consistency it should be > > #define DR_TY_SHIFT(x)(((x) <<

Re: [PATCH] ARM64: dts: allwinner: Add devicetree for pine H64 modelA evaluation board

2019-08-20 Thread Maxime Ripard
On Fri, Aug 16, 2019 at 04:00:16PM +0200, Corentin Labbe wrote: > On Fri, Aug 16, 2019 at 03:52:06PM +0200, Maxime Ripard wrote: > > On Fri, Aug 16, 2019 at 01:57:50PM +0200, Corentin Labbe wrote: > > > On Fri, Aug 16, 2019 at 01:36:50PM +0200, Maxime Ripard wrote: > > > > On Fri, Aug 16, 2019 at

Re: Kernel 5.2.8 - au0828 - Tuner Is Busy

2019-08-20 Thread shuah
On 8/20/19 12:58 AM, Nathan Royce wrote: While your mention of quirks-table.h certainly had possibilities, I'm afraid adding the "AU0828_DEVICE(0x05e1, 0x0400, "Hauppauge", "Woodbury")," entry for my tuner did not make any difference regarding the "Tuner is busy. Error -19" message. I don't

Re: [PATCH] ARM: dts: rockchip: remove rk3288 fennec board support

2019-08-20 Thread Heiko Stuebner
Hi Kever, Am Dienstag, 20. August 2019, 12:03:52 CEST schrieb Kever Yang: > Since there is no one using this board, remove it. so just to elaborate a bit, I guess this board was internal to Rockchip, never went to the market and therefore is obsolete without any users, right? Also we should

Re: [PATCH] x86/mm/pti: in pti_clone_pgtable() don't increase addr by PUD_SIZE

2019-08-20 Thread Dave Hansen
On 8/20/19 12:51 AM, Song Liu wrote: > In our x86_64 kernel, pti_clone_pgtable() fails to clone 7 PMDs because > of this issuse, including PMD for the irq entry table. For a memcache > like workload, this introduces about 4.5x more iTLB-load and about 2.5x > more iTLB-load-misses on a Skylake CPU.

Re: [PATCH] x86/mm/pti: in pti_clone_pgtable() don't increase addr by PUD_SIZE

2019-08-20 Thread Rik van Riel
On Tue, 2019-08-20 at 09:21 -0400, Song Liu wrote: > > On Aug 20, 2019, at 4:16 AM, Thomas Gleixner > > wrote: > > > > On Tue, 20 Aug 2019, Peter Zijlstra wrote: > > > What that code wants to do is skip to the end of the pud, a > > > pmd_size > > > increase will not do that. And right below

Re: [PATCH v2 2/2] phy: intel-lgm-emmc: Add support for eMMC PHY

2019-08-20 Thread Andy Shevchenko
On Tue, Aug 20, 2019 at 06:31:33PM +0800, Ramuthevar,Vadivel MuruganX wrote: > From: Ramuthevar Vadivel Murugan > > Add support for eMMC PHY on Intel's Lightning Mountain SoC. Thanks for an update. Looks better though several minor comments below. > +/* eMMC phy register definitions */ >

Re: Status of Subsystems

2019-08-20 Thread Sebastian Duda
On 20.08.19 15:14, Pali Rohár wrote: On Tuesday 20 August 2019 15:05:51 Sebastian Duda wrote: Hello Pali, in my master thesis, I'm using the association of subsystems to maintainers/reviewers and its status given in the MAINTAINERS file. During the research I noticed that there are several

Re: [PATCH 1/1] Fix: trace sched switch start/stop racy updates

2019-08-20 Thread Peter Zijlstra
On Sat, Aug 17, 2019 at 01:08:02AM -0700, Linus Torvalds wrote: > The data tearing issue is almost a non-issue. We're not going to add > WRITE_ONCE() to these kinds of places for no good reason. Paulmck actually has an example of that somewhere; ISTR that particular case actually got fixed by

Re: [PATCH] sched/fair: eliminate redundant code in sched_slice()

2019-08-20 Thread Peter Zijlstra
On Fri, Aug 16, 2019 at 10:12:02PM +0800, Peng Liu wrote: > Since sched_slice() is used in high frequency, > small change should also make sense. An actual Changelog would also make sense; but alas.

Re: [PATCH] sched/core: Schedule new worker even if PI-blocked

2019-08-20 Thread Peter Zijlstra
On Fri, Aug 16, 2019 at 06:06:26PM +0200, Sebastian Andrzej Siewior wrote: > If a task is PI-blocked (blocking on sleeping spinlock) then we don't want to > schedule a new kworker if we schedule out due to lock contention because !RT > does not do that as well. s/as well/either/ > A spinning

dataring_push() barriers Re: [RFC PATCH v4 1/9] printk-rb: add a new printk ringbuffer implementation

2019-08-20 Thread Petr Mladek
On Thu 2019-08-08 00:32:26, John Ogness wrote: > +/** > + * dataring_push() - Reserve a data block in the data array. > + * > + * @dr: The data ringbuffer to reserve data in. > + * > + * @size: The size to reserve. > + * > + * @desc: A pointer to a descriptor to store the data block information.

Re: [patch 02/44] alarmtimers: Avoid rtc.h include

2019-08-20 Thread Frederic Weisbecker
On Mon, Aug 19, 2019 at 04:31:43PM +0200, Thomas Gleixner wrote: > rtc.h is not needed in alarmtimers when a forward declaration of struct > rtc_device is provided. That allows to include posix-timers.h without > adding more includes to alarmtimer.h or creating circular include > dependencies. >

Re: [patch 01/44] posix-timers: Cleanup forward declarations and includes

2019-08-20 Thread Frederic Weisbecker
On Mon, Aug 19, 2019 at 04:31:42PM +0200, Thomas Gleixner wrote: > - Rename struct siginfo to kernel_siginfo > - Add a forward declaration for task_struct and remove sched.h include > - Remove timex.h include as it is not needed > > Signed-off-by: Thomas Gleixner Reviewed-by: Frederic

Re: [PATCH AUTOSEL 4.19 07/27] intel_th: Use the correct style for SPDX License Identifier

2019-08-20 Thread Joe Perches
On Tue, 2019-08-20 at 09:41 -0400, Sasha Levin wrote: > From: Nishad Kamdar > > [ Upstream commit fac7b714c514fcc41e1d6450c694b0a5f8d3 ] > > This patch corrects the SPDX License Identifier style > in header files related to Drivers for Intel(R) Trace Hub > controller. > For C header files

[PATCH AUTOSEL 5.2 07/44] afs: Only update d_fsdata if different in afs_d_revalidate()

2019-08-20 Thread Sasha Levin
From: David Howells [ Upstream commit 5dc84855b0fc7e1db182b55c5564fd539d6eff92 ] In the in-kernel afs filesystem, d_fsdata is set with the data version of the parent directory. afs_d_revalidate() will update this to the current directory version, but it shouldn't do this if it the value it

Re: [PATCH 01/14] mm/lru: move pgdat lru_lock into lruvec

2019-08-20 Thread Matthew Wilcox
On Tue, Aug 20, 2019 at 05:48:24PM +0800, Alex Shi wrote: > +++ b/include/linux/mmzone.h > @@ -295,6 +295,9 @@ struct zone_reclaim_stat { > > struct lruvec { > struct list_headlists[NR_LRU_LISTS]; > + /* move lru_lock to per lruvec for memcg */ > + spinlock_t

[PATCH AUTOSEL 5.2 03/44] afs: Fix the CB.ProbeUuid service handler to reply correctly

2019-08-20 Thread Sasha Levin
From: David Howells [ Upstream commit 2067b2b3f4846402a040286135f98f46f8919939 ] Fix the service handler function for the CB.ProbeUuid RPC call so that it replies in the correct manner - that is an empty reply for success and an abort of 1 for failure. Putting 0 or 1 in an integer in the body

[PATCH AUTOSEL 5.2 08/44] afs: Fix missing dentry data version updating

2019-08-20 Thread Sasha Levin
From: David Howells [ Upstream commit 9dd0b82ef530cdfe805c9f7079c99e104be59a14 ] In the in-kernel afs filesystem, the d_fsdata dentry field is used to hold the data version of the parent directory when it was created or when d_revalidate() last caused it to be updated. This is compared to the

[PATCH AUTOSEL 5.2 02/44] nvme-multipath: revalidate nvme_ns_head gendisk in nvme_validate_ns

2019-08-20 Thread Sasha Levin
From: Anthony Iliopoulos [ Upstream commit fab7772bfbcfe8fb8e3e352a6a8fcaf044cded17 ] When CONFIG_NVME_MULTIPATH is set, only the hidden gendisk associated with the per-controller ns is run through revalidate_disk when a rescan is triggered, while the visible blockdev never gets its size

[PATCH AUTOSEL 5.2 04/44] afs: Fix loop index mixup in afs_deliver_vl_get_entry_by_name_u()

2019-08-20 Thread Sasha Levin
From: Marc Dionne [ Upstream commit 4a46fdba449a5cd890271df5a9e23927d519ed00 ] afs_deliver_vl_get_entry_by_name_u() scans through the vl entry received from the volume location server and builds a return list containing the sites that are currently valid. When assigning values for the return

[PATCH AUTOSEL 5.2 12/44] nvmet-file: fix nvmet_file_flush() always returning an error

2019-08-20 Thread Sasha Levin
From: Logan Gunthorpe [ Upstream commit cfc1a1af56200362d1508b82b9a3cc3acb2eae0c ] Presently, nvmet_file_flush() always returns a call to errno_to_nvme_status() but that helper doesn't take into account the case when errno=0. So nvmet_file_flush() always returns an error code. All other

[PATCH AUTOSEL 5.2 10/44] nvmet: Fix use-after-free bug when a port is removed

2019-08-20 Thread Sasha Levin
From: Logan Gunthorpe [ Upstream commit 3aed86731ee2b23e4dc4d2c6d943d33992cd551b ] When a port is removed through configfs, any connected controllers are still active and can still send commands. This causes a use-after-free bug which is detected by KASAN for any admin command that dereferences

[PATCH AUTOSEL 5.2 09/44] intel_th: Use the correct style for SPDX License Identifier

2019-08-20 Thread Sasha Levin
From: Nishad Kamdar [ Upstream commit fac7b714c514fcc41e1d6450c694b0a5f8d3 ] This patch corrects the SPDX License Identifier style in header files related to Drivers for Intel(R) Trace Hub controller. For C header files Documentation/process/license-rules.rst mandates C-like comments

[PATCH AUTOSEL 5.2 16/44] nvme: fix controller removal race with scan work

2019-08-20 Thread Sasha Levin
From: Sagi Grimberg [ Upstream commit 0157ec8dad3c8fc9bc9790f76e0831ffdaf2e7f0 ] With multipath enabled, nvme_scan_work() can read from the device (through nvme_mpath_add_disk()) and hang [1]. However, with fabrics, once ctrl->state is set to NVME_CTRL_DELETING, the reads will hang (see

[PATCH AUTOSEL 5.2 20/44] iio: adc: max9611: Fix temperature reading in probe

2019-08-20 Thread Sasha Levin
From: Jacopo Mondi [ Upstream commit b9ddd5091160793ee9fac10da765cf3f53d2aaf0 ] The max9611 driver reads the die temperature at probe time to validate the communication channel. Use the actual read value to perform the test instead of the read function return value, which was mistakenly used so

[PATCH AUTOSEL 5.2 17/44] nvme-pci: Fix async probe remove race

2019-08-20 Thread Sasha Levin
From: Keith Busch [ Upstream commit bd46a90634302bfe791e93ad5496f98f165f7ae0 ] Ensure the controller is not in the NEW state when nvme_probe() exits. This will always allow a subsequent nvme_remove() to set the state to DELETING, fixing a potential race between the initial asynchronous probe

[PATCH AUTOSEL 5.2 11/44] nvmet-loop: Flush nvme_delete_wq when removing the port

2019-08-20 Thread Sasha Levin
From: Logan Gunthorpe [ Upstream commit 86b9a63e595ff03f9d0a7b92b6acc231fecefc29 ] After calling nvme_loop_delete_ctrl(), the controllers will not yet be deleted because nvme_delete_ctrl() only schedules work to do the delete. This means a race can occur if a port is removed but there are

[PATCH AUTOSEL 5.2 14/44] nvme: fix a possible deadlock when passthru commands sent to a multipath device

2019-08-20 Thread Sasha Levin
From: Sagi Grimberg [ Upstream commit b9156daeb1601d69007b7e50efcf89d69d72ec1d ] When the user issues a command with side effects, we will end up freezing the namespace request queue when updating disk info (and the same for the corresponding mpath disk node). However, we are not freezing the

[PATCH AUTOSEL 5.2 18/44] soundwire: cadence_master: fix register definition for SLAVE_STATE

2019-08-20 Thread Sasha Levin
From: Pierre-Louis Bossart [ Upstream commit b07dd9b400981f487940a4d84292d3a0e7cd9362 ] wrong prefix and wrong macro. Signed-off-by: Pierre-Louis Bossart Link: https://lore.kernel.org/r/20190725234032.21152-14-pierre-louis.boss...@linux.intel.com Signed-off-by: Vinod Koul Signed-off-by:

[PATCH AUTOSEL 4.19 06/27] afs: Only update d_fsdata if different in afs_d_revalidate()

2019-08-20 Thread Sasha Levin
From: David Howells [ Upstream commit 5dc84855b0fc7e1db182b55c5564fd539d6eff92 ] In the in-kernel afs filesystem, d_fsdata is set with the data version of the parent directory. afs_d_revalidate() will update this to the current directory version, but it shouldn't do this if it the value it

[PATCH AUTOSEL 5.2 36/44] arm64: cpufeature: Don't treat granule sizes as strict

2019-08-20 Thread Sasha Levin
From: Will Deacon [ Upstream commit 5717fe5ab38f9ccb32718bcb03bea68409c9cce4 ] If a CPU doesn't support the page size for which the kernel is configured, then we will complain and refuse to bring it online. For secondary CPUs (and the boot CPU on a system booting with EFI), we will also print

[PATCH AUTOSEL 4.19 07/27] intel_th: Use the correct style for SPDX License Identifier

2019-08-20 Thread Sasha Levin
From: Nishad Kamdar [ Upstream commit fac7b714c514fcc41e1d6450c694b0a5f8d3 ] This patch corrects the SPDX License Identifier style in header files related to Drivers for Intel(R) Trace Hub controller. For C header files Documentation/process/license-rules.rst mandates C-like comments

[PATCH AUTOSEL 5.2 44/44] tools: hv: fix KVP and VSS daemons exit code

2019-08-20 Thread Sasha Levin
From: Adrian Vladu [ Upstream commit b0995156071b0ff29a5902964a9dc8cfad6f81c0 ] HyperV KVP and VSS daemons should exit with 0 when the '--help' or '-h' flags are used. Signed-off-by: Adrian Vladu Cc: "K. Y. Srinivasan" Cc: Haiyang Zhang Cc: Stephen Hemminger Cc: Sasha Levin Cc:

[PATCH AUTOSEL 5.2 42/44] usb: host: fotg2: restart hcd after port reset

2019-08-20 Thread Sasha Levin
From: Hans Ulli Kroll [ Upstream commit 5ffe59ef754cc39ab2f275dc277732f4 ] On the Gemini SoC the FOTG2 stalls after port reset so restart the HCD after each port reset. Signed-off-by: Hans Ulli Kroll Signed-off-by: Linus Walleij Link:

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