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 would

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

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 P

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 pmd_s

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

[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: https://lkml.kernel.org/n/tip-9wvrv74n7d4nbgztr74is...@gi

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 give

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

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

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

[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 +++-- arch/powerpc/mm

[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

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

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

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

[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 --- arch/pow

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

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

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: linux-arm-ker...@lists.

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

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 give

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 pinn

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

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 p

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

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 p

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

2019-08-20 Thread Michal Simek
There is no reason to c&p 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 bdd

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': > dev.c:(.text+0x52

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

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

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

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

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

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 th

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 e

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 deletions(-)

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 s

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 en

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

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

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

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 f

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. > https://www.winbond.com/resource-files/w25q256jv%20spi%

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: syzbot+c82697e30

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

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: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(&uacce_idr, uacce, 0, 0, GFP_KERN

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

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

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

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 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 a/Documentation/devicetree/binding

[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 b/drivers/soc/amlog

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

[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 b/drivers/soc/amlogic/meson-clk-measu

[PATCH 5/6] dt-bindings: arm: amlogic: add SEI Robotics SEI610 bindings

2019-08-20 Thread Neil Armstrong
Add the compatible for the Amlogic SM1 Based SEI610 board. Signed-off-by: Neil Armstrong --- Documentation/devicetree/bindings/arm/amlogic.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/amlogic.yaml b/Documentation/devicetree/bindings/arm/amlogi

[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 --- Documentation/devicetree/bindings/arm/amlogic.

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

[PATCH 0/6] arm64: Add support for Amlogic SM1 SoC Family

2019-08-20 Thread Neil Armstrong
The new Amlogic SM1 SoC Family is a derivative of the Amlogic G12A SoC Family, with the following changes : - Cortex-A55 cores 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, thus

Re: [PATCH -rcu dev 1/3] rcu/tree: tick_dep_set/clear_cpu should accept bits instead of masks

2019-08-20 Thread Paul E. McKenney
On Tue, Aug 20, 2019 at 02:08:45PM +0200, Frederic Weisbecker wrote: > On Mon, Aug 19, 2019 at 09:44:20AM -0700, Paul E. McKenney wrote: > > On Mon, Aug 19, 2019 at 06:32:27PM +0200, Frederic Weisbecker wrote: > > > > But would the following patch make sense? This would not help for (say) > > > >

Re: [PATCH v3 bpf-next 1/4] tracing/probe: Add PERF_EVENT_IOC_QUERY_PROBE ioctl

2019-08-20 Thread Peter Zijlstra
On Fri, Aug 16, 2019 at 03:31:46PM -0700, Daniel Xu wrote: > It's useful to know [uk]probe's nmissed and nhit stats. For example with > tracing tools, it's important to know when events may have been lost. > debugfs currently exposes a control file to get this information, but > it is not compatibl

Re: [PATCH v3] lsilogic mpt fusion: mptctl: Fixed race condition around mptctl_id variable using mutexes

2019-08-20 Thread Mark Balantzyan
Hi all, The race condition in the mptctl driver I'm wishing to have confirmed is evidenced by the pair of call chains: compat_mpctl_ioctl -> compat_mpt_command -> mptctl_do_mpt_command which calls mpt_get_msg_frame(mptctl_id, ioc) and __mptctl_ioctl -> mpt_fw_download -> mptctl_do_fw_downl

using eventfd between userspace and kernelspace

2019-08-20 Thread Cosmin Marin
Hi folks, I have some doubts regarding the usage of eventfd and I'm seeking for some advice/suggestions. I want to use eventfd in a producer-consumer manner (EFD_SEMAPHORE) between a process's userspace and a kernel module. The desired behaviour: periodically, a userspace thread writes to the e

Re: [PATCH v3 4/8] PCI: Add quirk to disable MSI-X support for Amazon's Annapurna Labs Root Port

2019-08-20 Thread Chocron, Jonathan
On Mon, 2019-08-19 at 19:23 +0100, Andrew Murray wrote: > On Tue, Jul 23, 2019 at 12:25:29PM +0300, Jonathan Chocron wrote: > > The Root Port (identified by [1c36:0032]) doesn't support MSI-X. On > > some > > Shouldn't this read [1c36:0031]? > Indeed. Thanks for catching this. > > > platforms i

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

2019-08-20 Thread Liang, Kan
On 8/20/2019 10:10 AM, Peter Zijlstra wrote: 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. Un

[PATCH] modules: page-align module section allocations only for arches supporting strict module rwx

2019-08-20 Thread zhe.he
From: He Zhe We should keep the case of "#define debug_align(X) (X)" for all arches without CONFIG_HAS_STRICT_MODULE_RWX ability, which would save people, who are sensitive to system size, a lot of memory when using modules, especially for embedded systems. This is also the intention of the origi

[PATCH 2/6] dt-bindings: net: sun8i-a83t-emac: Add phy-io-supply property

2019-08-20 Thread megous
From: Ondrej Jirman Some PHYs require separate power supply for I/O pins in some modes of operation. Add phy-io-supply property, to allow enabling this power supply. Signed-off-by: Ondrej Jirman --- .../devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml| 4 1 file changed, 4 inser

[PATCH 5/6] net: stmmac: sun8i: Add support for enabling a regulator for PHY I/O pins

2019-08-20 Thread megous
From: Ondrej Jirman Orange Pi 3 has two regulators that power the Realtek RTL8211E. According to the phy datasheet, both regulators need to be enabled at the same time. Add support for the second optional regulator, "phy-io", to the glue driver. Signed-off-by: Ondrej Jirman --- .../net/ethern

[PATCH 3/6] net: stmmac: sun8i: Use devm_regulator_get for PHY regulator

2019-08-20 Thread megous
From: Ondrej Jirman Use devm_regulator_get instead of devm_regulator_get_optional and rely on dummy supply. This avoids NULL checks before regulator_enable/disable calls. This path also improves error reporting, because we now report both use of dummy supply and error during registration with mo

[PATCH 6/6] arm64: dts: allwinner: orange-pi-3: Enable ethernet

2019-08-20 Thread megous
From: Ondrej Jirman Orange Pi 3 has two regulators that power the Realtek RTL8211E PHY. According to the datasheet, both regulators need to be enabled at the same time, or that "phy-io" should be enabled slightly earlier than "phy" regulator. RTL8211E/RTL8211EG datasheet says: Note 4: 2.5V (o

[PATCH 0/6] Add ethernet support for Orange Pi 3

2019-08-20 Thread megous
From: Ondrej Jirman This series implements ethernet support for Xunlong Orange Pi 3 board, by: - making small cleanups of existing dwmac-sun8i code - adding DT bindings docummentation - adding support for phy-io-supply to dwmac-sun8i code - adding DT configuration for Orange Pi 3 board For some

[PATCH 4/6] net: stmmac: sun8i: Rename PHY regulator variable to regulator_phy

2019-08-20 Thread megous
From: Ondrej Jirman We'll be adding further optional regulators, and this makes it clearer what the regulator is for. Signed-off-by: Ondrej Jirman --- .../net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 32 ++- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/drivers

[PATCH 1/6] dt-bindings: net: sun8i-a83t-emac: Add phy-supply property

2019-08-20 Thread megous
From: Ondrej Jirman This is already supported by the driver, but is missing from the bindings. Signed-off-by: Ondrej Jirman --- .../devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml| 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/net/allwinner

Re: [PATCH v2] mtd: spi-nor: fix a memory leak bug

2019-08-20 Thread Tudor.Ambarus
On 08/19/2019 08:16 PM, Wenwen Wang wrote: > External E-Mail > > > In spi_nor_parse_4bait(), 'dwords' is allocated through kmalloc(). However, > it is not deallocated in the following execution if spi_nor_read_sfdp() > fails, leading to a memory leak. To fix this issue, free 'dwords' before > r

Re: [RFC 04/11] soc: amlogic: Add support for SM1 power controller

2019-08-20 Thread Neil Armstrong
On 20/08/2019 01:56, Kevin Hilman wrote: > Neil Armstrong writes: > >> Add support for the General Purpose Amlogic SM1 Power controller, >> dedicated to the PCIe, USB, NNA and GE2D Power Domains. >> >> Signed-off-by: Neil Armstrong > > I like this driver in general, but as I look at all the EE

Re: [PATCH RESEND] HID: fix error message in hid_open_report()

2019-08-20 Thread Jiri Kosina
On Mon, 22 Jul 2019, Michał Mirosław wrote: > On HID report descriptor parsing error the code displays bogus > pointer instead of error offset (subtracts start=NULL from end). > Make the message more useful by displaying correct error offset > and include total buffer size for reference. > > This

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

2019-08-20 Thread Sebastian Andrzej Siewior
On 2019-08-20 15:50:14 [+0200], Peter Zijlstra wrote: > 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

[PATCH v2 05/11] arm64: mm: use arm64_dma_phys_limit instead of calling max_zone_dma_phys()

2019-08-20 Thread Nicolas Saenz Julienne
By the time we call zones_sizes_init() arm64_dma_phys_limit already contains the result of max_zone_dma_phys(). We use the variable instead of calling the function directly to save some precious cpu time. Signed-off-by: Nicolas Saenz Julienne --- Changes in v2: None arch/arm64/mm/init.c | 2 +-

Re: [PATCH v3] lsilogic mpt fusion: mptctl: Fixed race condition around mptctl_id variable using mutexes

2019-08-20 Thread Mark Balançian
Hello Mister Prakash, Calaby, and Subramani, I also please request your reply to my previous message before the end of this Thursday the latest, as I am partaking in an evaluation period from the organization I am working for with a deadline very close to that time. Thank you, Mark On 2019

[RESEND PATCHv4 0/1] drivers/amba: add reset control to amba

2019-08-20 Thread Dinh Nguyen
Hello, Even though this patch is a V4, I'm including more people in this review cycle because I found that there was previous patch[1] that was discussed. Thanks, Dinh [1] https://patchwork.kernel.org/patch/10845695/ Dinh Nguyen (1): drivers/amba: add reset control to amba bus probe driver

[RESEND PATCHv4 1/1] drivers/amba: add reset control to amba bus probe

2019-08-20 Thread Dinh Nguyen
The primecell controller on some SoCs, i.e. SoCFPGA, is held in reset by default. Until recently, the DMA controller was brought out of reset by the bootloader(i.e. U-Boot). But a recent change in U-Boot, the peripherals that are not used are held in reset and are left to Linux to bring them out of

[PATCH v2 07/11] arm64: re-introduce max_zone_dma_phys()

2019-08-20 Thread Nicolas Saenz Julienne
Some devices might have multiple interconnects with different DMA addressing limitations. This function provides the higher physical address accessible by all peripherals on the SoC. If such limitation doesn't exist it'll return the maximum physical address of the 32 bit addressable area. Signed-o

[PATCH v2 04/11] of/fdt: add early_init_dt_get_dma_zone_size()

2019-08-20 Thread Nicolas Saenz Julienne
Some devices might have weird DMA addressing limitations that only apply to a subset of the available peripherals. For example the Raspberry Pi 4 has two interconnects, one able to address the whole lower 4G memory area and another one limited to the lower 1G. Being an uncommon situation we simply

[PATCH v2 00/11] Raspberry Pi 4 DMA addressing support

2019-08-20 Thread Nicolas Saenz Julienne
Hi all, this series attempts to address some issues we found while bringing up the new Raspberry Pi 4 in arm64 and it's intended to serve as a follow up of these discussions: v1: https://lkml.org/lkml/2019/7/31/922 RFC: https://lkml.org/lkml/2019/7/17/476 The new Raspberry Pi 4 has up to 4GB of me

[PATCH v2 01/11] asm-generic: add dma_zone_size

2019-08-20 Thread Nicolas Saenz Julienne
Some architectures have platform specific DMA addressing limitations. This will allow for hardware description code to provide the constraints in a generic manner, so as for arch code to properly setup it's memory zones and DMA mask. Signed-off-by: Nicolas Saenz Julienne --- Changes in v2: None

[PATCH v2 02/11] arm: use generic dma_zone_size

2019-08-20 Thread Nicolas Saenz Julienne
'dma_zone_size' was created as a generic replacement to 'arm_dma_zone_size'. Use it accordingly. Signed-off-by: Nicolas Saenz Julienne --- Changes in v2: None arch/arm/include/asm/dma.h | 8 +--- arch/arm/mm/init.c | 12 2 files changed, 9 insertions(+), 11 deletions(

Re: [PATCH v5 2/6] vfio: Introduce vGPU display irq type

2019-08-20 Thread Alex Williamson
On Tue, 20 Aug 2019 09:20:30 +0200 "kra...@redhat.com" wrote: > > > > +#define VFIO_IRQ_TYPE_GFX (1) > > > > +/* > > > > + * vGPU vendor sub-type > > > > + * vGPU device display related interrupts e.g. vblank/pageflip */ > > > > +#define VFIO_IRQ_SUBTYPE_GFX_DISPLAY_

[PATCH] powerpc/fadump: when fadump is supported register the fadump sysfs files.

2019-08-20 Thread Michal Suchanek
Currently it is not possible to distinguish the case when fadump is supported by firmware and disabled in kernel and completely unsupported using the kernel sysfs interface. User can investigate the devicetree but it is more reasonable to provide sysfs files in case we get some fadumpv2 in the futu

Re: [PATCH 0/3] fix interrupt swamp in NVMe

2019-08-20 Thread Keith Busch
On Tue, Aug 20, 2019 at 01:59:32AM -0700, John Garry wrote: > diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c > index e8f7f179bf77..cb483a055512 100644 > --- a/kernel/irq/manage.c > +++ b/kernel/irq/manage.c > @@ -966,9 +966,13 @@ irq_thread_check_affinity(struct irq_desc *desc, > struct ir

Re: [PATCH v2] merge_config.sh: Check error codes from make

2019-08-20 Thread Masahiro Yamada
On Tue, Aug 20, 2019 at 5:07 AM Mark Brown wrote: > > When we execute make after merging the configurations we ignore any > errors it produces causing whatever is running merge_config.sh to be > unaware of any failures. This issue was noticed by Guillaume Tucker > while looking at problems with t

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

2019-08-20 Thread Peter Zijlstra
On Tue, Aug 20, 2019 at 10:52:57AM -0400, Liang, Kan wrote: > On 8/20/2019 10:10 AM, Peter Zijlstra wrote: > > 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 > > > grou

Re: [PATCH] bpfilter/verifier: add include guard to tnum.h

2019-08-20 Thread Daniel Borkmann
On 8/19/19 6:10 PM, Masahiro Yamada wrote: Add a header include guard just in case. Signed-off-by: Masahiro Yamada Applied, thanks!

Re: [PATCH] test_bpf: Fix a new clang warning about xor-ing two numbers

2019-08-20 Thread Daniel Borkmann
On 8/19/19 6:34 AM, Nathan Chancellor wrote: r369217 in clang added a new warning about potential misuse of the xor operator as an exponentiation operator: ../lib/test_bpf.c:870:13: warning: result of '10 ^ 300' is 294; did you mean '1e300'? [-Wxor-used-as-pow] { { 4, 10 ^ 300 }

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