Re: [PATCH v3 0/8] PM / ACPI: sleep: Additional changes related to suspend-to-idle

2019-08-20 Thread Kristian Klausen
On 20.08.2019 23.38, Rafael J. Wysocki wrote: On Tuesday, August 20, 2019 3:29:48 PM CEST Rafael J. Wysocki wrote: On Tue, Aug 20, 2019 at 3:10 PM Kristian Klausen wrote: On 19.08.2019 22.41, Rafael J. Wysocki wrote: On Mon, Aug 19, 2019 at 5:47 PM Kristian Klausen wrote: On 19.08.2019

Re: linux-next: Signed-off-by missing for commit in the security tree

2019-08-20 Thread Matthew Garrett
On Tue, Aug 20, 2019 at 3:32 PM Stephen Rothwell wrote: > > Hi all, > > Commit > > 9d1f8be5cf42 ("bpf: Restrict bpf when kernel lockdown is in confidentiality > mode") > > is missing a Signed-off-by from its author. I'm providing this under category (c) of the DCO.

Re: [PATCH v5 2/3] OPP: Add support for bandwidth OPP tables

2019-08-20 Thread Saravana Kannan
On Tue, Aug 20, 2019 at 3:27 PM Saravana Kannan wrote: > > On Mon, Aug 19, 2019 at 11:13 PM Viresh Kumar wrote: > > > > On 07-08-19, 15:31, Saravana Kannan wrote: > > > + ret = of_property_read_u32(np, "opp-peak-kBps", ); > > > + if (ret) > > > + return ret; > > > +

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

2019-08-20 Thread Ondřej Jirman
On Tue, Aug 20, 2019 at 11:57:06AM -0500, Rob Herring wrote: > On Tue, Aug 20, 2019 at 11:34 AM Ondřej Jirman wrote: > > > > On Tue, Aug 20, 2019 at 11:20:22AM -0500, Rob Herring wrote: > > > On Tue, Aug 20, 2019 at 9:53 AM wrote: > > > > > > > > From: Ondrej Jirman > > > > > > > > Some PHYs

Re: [PATCH v5 2/3] OPP: Add support for bandwidth OPP tables

2019-08-20 Thread Saravana Kannan
On Fri, Aug 16, 2019 at 11:21 AM Stephen Boyd wrote: > > Quoting Saravana Kannan (2019-08-07 15:31:10) > > diff --git a/drivers/opp/of.c b/drivers/opp/of.c > > index 1813f5ad5fa2..e1750033fef9 100644 > > --- a/drivers/opp/of.c > > +++ b/drivers/opp/of.c > > @@ -523,6 +523,35 @@ void

linux-next: Signed-off-by missing for commit in the security tree

2019-08-20 Thread Stephen Rothwell
Hi all, Commit 9d1f8be5cf42 ("bpf: Restrict bpf when kernel lockdown is in confidentiality mode") is missing a Signed-off-by from its author. -- Cheers, Stephen Rothwell pgp4NgOtEgmvz.pgp Description: OpenPGP digital signature

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

2019-08-20 Thread Christoph Hellwig
On Tue, Aug 20, 2019 at 02:07:15PM +, Christophe Leroy wrote: > Both ioremap_prot() are idenfical, move them into ioremap.c s/idenfical/identical/

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

2019-08-20 Thread Christoph Hellwig
On Tue, Aug 20, 2019 at 02:07:13PM +, Christophe Leroy wrote: > 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

Re: [PATCH v5 2/3] OPP: Add support for bandwidth OPP tables

2019-08-20 Thread Saravana Kannan
On Mon, Aug 19, 2019 at 11:13 PM Viresh Kumar wrote: > > On 07-08-19, 15:31, Saravana Kannan wrote: > > Not all devices quantify their performance points in terms of frequency. > > Devices like interconnects quantify their performance points in terms of > > bandwidth. We need a way to represent

Re: linux-next: Fixes tag needs some work in the sound-asoc tree

2019-08-20 Thread Stephen Rothwell
Hi all, These actually relate to the sound-asoc-fixes tree. On Wed, 21 Aug 2019 07:04:52 +1000 Stephen Rothwell wrote: > > Hi all, > > In commit > > 0f6fc97501b7 ("ASoC: mchp-i2s-mcc: Wait for RX/TX RDY only if controller is > running") > > Fixes tag > > Fixes: 7e0cdf545a55 ("ASoC:

RE: [PATCH] net/ncsi: add control packet payload to NC-SI commands from netlink

2019-08-20 Thread Ben Wei
> Hi Ben, > > > Hi Justin, > > > > > Hi Ben, > > > > > > I have similar fix locally with different approach as the command handler > > > may have some expectation for those byes. > > > We can use NCSI_PKT_CMD_OEM handler as it only copies data based on the > > > payload length. > > > >

linux-next: Fixes tag needs some work in the sound-asoc tree

2019-08-20 Thread Stephen Rothwell
Hi all, In commit c9cff337eab3 ("ASoC: mchp-i2s-mcc: Fix simultaneous capture and playback in master mode") Fixes tag Fixes: 7e0cdf545a55 ("ASoC: mchp-i2s-mcc: add driver for I2SC Multi-Channel Controller") has these problem(s): - Target SHA1 does not exist Did you mean Fixes:

Re: [v2 PATCH] RISC-V: Optimize tlb flush path.

2019-08-20 Thread Atish Patra
On Tue, 2019-08-20 at 15:18 -0700, h...@infradead.org wrote: > CAUTION: This email originated from outside of Western Digital. Do > not click on links or open attachments unless you recognize the > sender and know that the content is safe. > > > On Tue, Aug 20, 2019 at 08:28:36PM +, Atish

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

2019-08-20 Thread Christoph Hellwig
On Tue, Aug 20, 2019 at 02:07:12PM +, Christophe Leroy wrote: > __ioremap() is not used anymore, drop it. > > Suggested-by: Christoph Hellwig > Signed-off-by: Christophe Leroy Looks good, I've already dropped my version of this from the generic ioremap series: Reviewed-by: Christoph

Re: [PATCH] /dev/mem: Bail out upon SIGKILL when reading memory.

2019-08-20 Thread Greg Kroah-Hartman
On Wed, Aug 21, 2019 at 07:06:51AM +0900, Tetsuo Handa wrote: > syzbot found that a thread can stall for minutes inside read_mem() > after that thread was killed by SIGKILL [1]. Reading 2GB at one read() > is legal, but delaying termination of killed thread for minutes is bad. > > [

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

2019-08-20 Thread Christoph Hellwig
On Tue, Aug 20, 2019 at 02:07:10PM +, Christophe Leroy wrote: > __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

Re: [RFC] mm: Proactive compaction

2019-08-20 Thread Matthew Wilcox
On Fri, Aug 16, 2019 at 02:43:30PM -0700, Nitin Gupta wrote: > Testing done (on x86): > - Set /sys/kernel/mm/compaction/order-9/extfrag_{low,high} = {25, 30} > respectively. > - Use a test program to fragment memory: the program allocates all memory > and then for each 2M aligned section,

Re: [v2 PATCH] RISC-V: Optimize tlb flush path.

2019-08-20 Thread h...@infradead.org
On Tue, Aug 20, 2019 at 08:28:36PM +, Atish Patra wrote: > > http://git.infradead.org/users/hch/riscv.git/commitdiff/ea4067ae61e20fcfcf46a6f6bd1cc25710ce3afe > > This does seem a lot cleaner to me. We can reuse some of the code for > this patch as well. Based on NATIVE_CLINT configuration, it

Re: Linux 3.16.73

2019-08-20 Thread Bhaskar Chowdhury
Thanks, a bunch Ben. :) On 22:52 Tue 20 Aug 2019, Ben Hutchings wrote: I'm announcing the release of the 3.16.73 kernel. All users of the 3.16 kernel series should upgrade. The updated 3.16.y git tree can be found at:

Re: [PATCH v7 1/7] driver core: Add support for linking devices during device addition

2019-08-20 Thread Saravana Kannan
On Mon, Aug 19, 2019 at 9:25 PM Frank Rowand wrote: > > On 8/19/19 5:00 PM, Saravana Kannan wrote: > > On Sun, Aug 18, 2019 at 8:38 PM Frank Rowand wrote: > >> > >> On 8/15/19 6:50 PM, Saravana Kannan wrote: > >>> On Wed, Aug 7, 2019 at 7:04 PM Frank Rowand > >>> wrote: > > > Date:

Re: [PATCH V40 16/29] acpi: Disable ACPI table override if the kernel is locked down

2019-08-20 Thread Rafael J. Wysocki
On Tuesday, August 20, 2019 2:17:52 AM CEST Matthew Garrett wrote: > From: Linn Crosetto > > >From the kernel documentation (initrd_table_override.txt): > > If the ACPI_INITRD_TABLE_OVERRIDE compile option is true, it is possible > to override nearly any ACPI table provided by the BIOS with

Re: [PATCH V40 15/29] acpi: Ignore acpi_rsdp kernel param when the kernel has been locked down

2019-08-20 Thread Rafael J. Wysocki
On Tuesday, August 20, 2019 2:17:51 AM CEST Matthew Garrett wrote: > From: Josh Boyer > > This option allows userspace to pass the RSDP address to the kernel, which > makes it possible for a user to modify the workings of hardware. Reject > the option when the kernel is locked down. This

[PATCH] /dev/mem: Bail out upon SIGKILL when reading memory.

2019-08-20 Thread Tetsuo Handa
syzbot found that a thread can stall for minutes inside read_mem() after that thread was killed by SIGKILL [1]. Reading 2GB at one read() is legal, but delaying termination of killed thread for minutes is bad. [ 1335.912419][T20577] read_mem: sz=4096 count=2134565632 [ 1335.943194][T20577]

Re: [PATCH V40 14/29] ACPI: Limit access to custom_method when the kernel is locked down

2019-08-20 Thread Rafael J. Wysocki
On Tuesday, August 20, 2019 2:17:50 AM CEST Matthew Garrett wrote: > From: Matthew Garrett > > custom_method effectively allows arbitrary access to system memory, making > it possible for an attacker to circumvent restrictions on module loading. > Disable it if the kernel is locked down. > >

[PATCH] media: saa7134: keep demod i2c gate closed on Medion 7134

2019-08-20 Thread Maciej S. Szmigiero
Medion 7134 has two i2c eeproms on the same i2c bus sharing the same bus addresses: the first one for SAA7134 chip config and the second one behind TDA10046 DVB-T demod chip i2c gate storing its firmware. The TV tuner on this board is not behind this i2c gate. Due to the bus conflict described

[PATCH] media: saa7134: fix terminology around saa7134_i2c_eeprom_md7134_gate()

2019-08-20 Thread Maciej S. Szmigiero
saa7134_i2c_eeprom_md7134_gate() function and the associated comment uses an inverted i2c gate open / closed terminology. Let's fix this. Signed-off-by: Maciej S. Szmigiero --- drivers/media/pci/saa7134/saa7134-i2c.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git

Linux 3.16.73

2019-08-20 Thread Ben Hutchings
I'm announcing the release of the 3.16.73 kernel. All users of the 3.16 kernel series should upgrade. The updated 3.16.y git tree can be found at: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.16.y and can be browsed at the normal kernel.org git web

Re: [RFC PATCH 2/2] ELF: Add ELF program property parsing support

2019-08-20 Thread Yu-cheng Yu
On Tue, 2019-08-20 at 10:57 +0100, Dave Martin wrote: > ELF program properties will needed for detecting whether to enable > optional architecture or ABI features for a new ELF process. > > For now, there are no generic properties that we care about, so do > nothing unless

[PATCH v4 bpf-next 2/4] libbpf: Add helpers to extract perf fd from bpf_link

2019-08-20 Thread Daniel Xu
It is sometimes necessary to perform ioctl's on the underlying perf fd. There is not currently a way to extract the fd given a bpf_link, so add a a pair of casting and getting helpers. The casting and getting helpers are nice because they let us define broad categories of links that makes it

[PATCH v4 bpf-next 4/4] tracing/probe: Add self test for PERF_EVENT_IOC_QUERY_PROBE

2019-08-20 Thread Daniel Xu
Acked-by: Andrii Nakryiko Signed-off-by: Daniel Xu --- .../selftests/bpf/prog_tests/attach_probe.c | 115 ++ 1 file changed, 115 insertions(+) diff --git a/tools/testing/selftests/bpf/prog_tests/attach_probe.c b/tools/testing/selftests/bpf/prog_tests/attach_probe.c index

[PATCH v4 bpf-next 3/4] tracing/probe: Sync perf_event.h to tools

2019-08-20 Thread Daniel Xu
Signed-off-by: Daniel Xu --- tools/include/uapi/linux/perf_event.h | 23 +++ 1 file changed, 23 insertions(+) diff --git a/tools/include/uapi/linux/perf_event.h b/tools/include/uapi/linux/perf_event.h index 7198ddd0c6b1..8783d29a807a 100644 ---

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

2019-08-20 Thread Daniel Xu
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 compatible with probes registered with the perf API. While bpf programs

[PATCH v4 bpf-next 0/4] tracing/probe: Add PERF_EVENT_IOC_QUERY_PROBE

2019-08-20 Thread Daniel Xu
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 compatible with probes registered with the perf API. While bpf programs

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

2019-08-20 Thread Thomas Gleixner
On Tue, 20 Aug 2019, Frederic Weisbecker wrote: > On Tue, Aug 20, 2019 at 07:57:37PM +0200, Thomas Gleixner wrote: > > On Tue, 20 Aug 2019, Frederic Weisbecker wrote: > > > On Mon, Aug 19, 2019 at 04:31:45PM +0200, Thomas Gleixner wrote: > > > > /* > > > > - * Clean out CPU timers still ticking

Re: [PATCH] media: saa7134: keep demod i2c gate open on Medion 7134

2019-08-20 Thread Maciej S. Szmigiero
Hi Matthias, On 20.08.2019 21:54, Matthias Schwarzott wrote: > Hi Maciej, > > some comment about wording in commit message and code-comment. > > As far as I know the terms are defined like this: > * gate open = i2c-clients behind gate can be reached > * gate closed = i2c-clients behind gate are

Re: [PATCH V40 10/29] hibernate: Disable when the kernel is locked down

2019-08-20 Thread Rafael J. Wysocki
On Tuesday, August 20, 2019 2:17:46 AM CEST Matthew Garrett wrote: > From: Josh Boyer > > There is currently no way to verify the resume image when returning > from hibernate. This might compromise the signed modules trust model, > so until we can work with signed hibernate images we disable it

RE: [RFC] mm: Proactive compaction

2019-08-20 Thread Nitin Gupta
> -Original Message- > From: Vlastimil Babka > Sent: Tuesday, August 20, 2019 1:46 AM > To: Nitin Gupta ; a...@linux-foundation.org; > mgor...@techsingularity.net; mho...@suse.com; > dan.j.willi...@intel.com > Cc: Yu Zhao ; Matthew Wilcox ; > Qian Cai ; Andrey Ryabinin ; Roman > Gushchin

Re: [PATCH] ARM: UNWINDER_FRAME_POINTER implementation for Clang

2019-08-20 Thread Nick Desaulniers
On Tue, Aug 20, 2019 at 12:44 PM Nathan Huckleberry wrote: > > The stackframe setup when compiled with clang is different. > Since the stack unwinder expects the gcc stackframe setup it > fails to print backtraces. This patch adds support for the > clang stackframe setup. > > Link:

Re: [PATCH v3 0/8] PM / ACPI: sleep: Additional changes related to suspend-to-idle

2019-08-20 Thread Rafael J. Wysocki
On Tuesday, August 20, 2019 3:29:48 PM CEST Rafael J. Wysocki wrote: > On Tue, Aug 20, 2019 at 3:10 PM Kristian Klausen wrote: > > > > On 19.08.2019 22.41, Rafael J. Wysocki wrote: > > > On Mon, Aug 19, 2019 at 5:47 PM Kristian Klausen > > > wrote: > > >> On 19.08.2019 11.05, Rafael J. Wysocki

Re: [PATCH v3 2/9] soc: samsung: Convert exynos-chipid driver to use the regmap API

2019-08-20 Thread Sylwester Nawrocki
On 8/20/19 21:37, Krzysztof Kozlowski wrote: >>> diff --git a/drivers/soc/samsung/exynos-chipid.c >>> b/drivers/soc/samsung/exynos-chipid.c >>> @@ -51,29 +48,24 @@ static const char * __init >>> product_id_to_soc_id(unsigned int product_id) >>> int __init exynos_chipid_early_init(void) >>>

[v7 2/2] gpio: aspeed: Add SGPIO driver

2019-08-20 Thread Hongwei Zhang
Hello Linus, Thanks for your review! I just submitted v8 to the list, please help to review it again. Since you have already merged the dt-binding document [v7 1/2], and I don't have your update to this file, so to avoid confusion, I only include the driver code in v8. Regards, --Hongwei >

Re: [PATCH v2 1/4] fs/posix_acl: apply umask if superblock disables ACL support

2019-08-20 Thread J. Bruce Fields
What happened to these patches? All four make sense to me, for what it's worth; feel free to add a Reviewed-by: J. Bruce Fields --b. On Sat, Jul 13, 2019 at 06:11:57AM +0200, Max Kellermann wrote: > The function posix_acl_create() applies the umask only if the inode > has no ACL (=

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

2019-08-20 Thread Daniel Borkmann
On 8/20/19 5:29 PM, Björn Töpel wrote: On Tue, 20 Aug 2019 at 16:30, Daniel Borkmann wrote: 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

Re: [PATCH 10/15] riscv: poison SBI calls for M-mode

2019-08-20 Thread Atish Patra
On Tue, 2019-08-13 at 17:47 +0200, Christoph Hellwig wrote: > There is no SBI when we run in M-mode, so fail the compile for any > code > trying to use SBI calls. > > Signed-off-by: Christoph Hellwig > --- > arch/riscv/include/asm/sbi.h | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-)

Re: [PATCH RFC] dt-bindings: regulator: define a mux regulator

2019-08-20 Thread Uwe Kleine-König
Hello Rob, On Tue, Aug 20, 2019 at 11:39:27AM -0500, Rob Herring wrote: > On Tue, Aug 20, 2019 at 10:25 AM Uwe Kleine-König > wrote: > > > > A mux regulator is used to provide current on one of several outputs. It > > might look as follows: > > > > ,. > > -- > -- >

linux-next: Signed-off-by missing for commit in the pci tree

2019-08-20 Thread Stephen Rothwell
Hi all, Commit c4a29fbba415 ("PCI: hv: Use bytes 4 and 5 from instance ID as the PCI domain numbers") is missing a Signed-off-by from its committer. Also, all the tags should be kept together, please. -- Cheers, Stephen Rothwell pgp1roVGesKBf.pgp Description: OpenPGP digital signature

[PATCH v3 1/2] media: vimc: Collapse component structure into a single monolithic driver

2019-08-20 Thread Shuah Khan
vimc uses Component API to split the driver into functional components. The real hardware resembles a monolith structure than component and component structure added a level of complexity making it hard to maintain without adding any real benefit. The sensor is one vimc component that would makes

[PATCH v3 0/2] Collapse vimc into single monolithic driver

2019-08-20 Thread Shuah Khan
vimc uses Component API to split the driver into functional components. The real hardware resembles a monolith structure than component and component structure added a level of complexity making it hard to maintain without adding any real benefit. The sensor is one vimc component that would makes

[PATCH v3 2/2] media: vimc: Fix gpf in rmmod path when stream is active

2019-08-20 Thread Shuah Khan
If vimc module is removed while streaming is in progress, sensor subdev unregister runs into general protection fault when it tries to unregister media entities. This is a common subdev problem related to releasing pads from v4l2_device_unregister_subdev() before calling unregister. Unregister

Re: How to add multiple example with conflicting includes

2019-08-20 Thread Rob Herring
On Fri, Jul 26, 2019 at 1:11 PM Corentin Labbe wrote: > > Hello > > When I try to check the following examples of a devicetree schema: > examples: > - | > #include > #include > #include > > crypto: crypto@1c15000 { > compatible = "allwinner,sun8i-h3-crypto"; > reg

Re: [PATCH 15/15] riscv: disable the EFI PECOFF header for M-mode

2019-08-20 Thread Atish Patra
On Tue, 2019-08-13 at 17:47 +0200, Christoph Hellwig wrote: > No point in bloating the kernel image with a bootloader header if > we run bare metal. > > Signed-off-by: Christoph Hellwig > --- > arch/riscv/kernel/head.S | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git

[v8] gpio: aspeed: Add SGPIO driver

2019-08-20 Thread Hongwei Zhang
Hello, This short series introduce dt-binding document and a driver for the Aspeed AST2500 SGPIO controller. Please review. [v8]: Changes between v7 and v8: - v7 updates based on Linus' feedback - since Linus has already merged sgpio-aspeed.txt, I only include the

linux-next: Fixes tag needs some work in the sound-asoc tree

2019-08-20 Thread Stephen Rothwell
Hi all, In commit 0f6fc97501b7 ("ASoC: mchp-i2s-mcc: Wait for RX/TX RDY only if controller is running") Fixes tag Fixes: 7e0cdf545a55 ("ASoC: mchp-i2s-mcc: add driver for I2SC Multi-Channel Controller") has these problem(s): - Target SHA1 does not exist Did you mean Fixes:

[v8 1/1] gpio: aspeed: Add SGPIO driver

2019-08-20 Thread Hongwei Zhang
Add SGPIO driver support for Aspeed AST2500 SoC. Signed-off-by: Hongwei Zhang Reviewed-by: Andrew Jeffery --- drivers/gpio/sgpio-aspeed.c | 533 1 file changed, 533 insertions(+) create mode 100644 drivers/gpio/sgpio-aspeed.c diff --git

Re: [PATCH V40 11/29] PCI: Lock down BAR access when the kernel is locked down

2019-08-20 Thread Matthew Garrett
On Tue, Aug 20, 2019 at 12:45 PM Bjorn Helgaas wrote: > Since I've acked this and it's 11/29, I've been assuming you intend > to merge the whole series together. But the fact that it's up to V40 > makes me wonder if you're waiting for me to merge this one. Just let > me know either way. James

Re: [PATCH 09/15] riscv: implement remote sfence.i natively for M-mode

2019-08-20 Thread Atish Patra
On Tue, 2019-08-13 at 17:47 +0200, Christoph Hellwig wrote: > The RISC-V ISA only supports flushing the instruction cache for the > local > CPU core. For normal S-mode Linux remote flushing is offloaded to > machine mode using ecalls, but for M-mode Linux we'll have to do it > ourselves. Use the

Re: [PATCH] net/mlx5: Fix a memory leak bug

2019-08-20 Thread Saeed Mahameed
On Tue, 2019-08-13 at 03:21 -0500, Wenwen Wang wrote: > In mlx5_cmd_invoke(), 'ent' is allocated through kzalloc() in > alloc_cmd(). > After the work is queued, wait_func() is invoked to wait the > completion of > the work. If wait_func() returns -ETIMEDOUT, the following execution > will > be

Re: [PATCH] net: Fix detection for IPv4 duplicate address.

2019-08-20 Thread David Miller
From: Dongxu Liu Date: Tue, 20 Aug 2019 23:19:05 +0800 > @@ -800,8 +800,11 @@ static int arp_process(struct net *net, struct sock *sk, > struct sk_buff *skb) > iptunnel_metadata_reply(skb_metadata_dst(skb), >

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

2019-08-20 Thread David Miller
It looks like there will be some updates to this series either involving adding -supply to the property names or adjusting some of the kernel log messages. Seriously, I would prefer less verbiage in the logs rather than more.

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

2019-08-20 Thread Paul E. McKenney
On Tue, Aug 20, 2019 at 10:39:39PM +0200, Peter Zijlstra wrote: > On Tue, Aug 20, 2019 at 01:31:35PM -0700, Paul E. McKenney wrote: > > On Tue, Aug 20, 2019 at 04:01:16PM +0200, Peter Zijlstra wrote: > > > > We really should get the compiler folks to give us a > > > -fno-pointer-provenance.

Re: [Linux-kernel-mentees][PATCH v6 1/2] sgi-gru: Convert put_page() to put_user_page*()

2019-08-20 Thread John Hubbard
On 8/20/19 1:18 AM, Michal Hocko wrote: On Mon 19-08-19 12:30:18, John Hubbard wrote: On 8/19/19 12:06 PM, Bharath Vedartham wrote: On Mon, Aug 19, 2019 at 07:56:11AM -0500, Dimitri Sivanich wrote: ... Conversion of gup/put_page sites: Before: get_user_pages(...); ...

Re: [PATCH v2 1/3] dt-bindings: Document JZ47xx VPU auxiliary processor

2019-08-20 Thread Rob Herring
On Mon, Jul 29, 2019 at 02:31:07PM -0400, Paul Cercueil wrote: > Inside the Video Processing Unit (VPU) of the recent JZ47xx SoCs from > Ingenic is a second Xburst MIPS CPU very similar to the main core. > This document describes the devicetree bindings for this auxiliary > processor. > >

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

2019-08-20 Thread Frederic Weisbecker
On Tue, Aug 20, 2019 at 07:57:37PM +0200, Thomas Gleixner wrote: > On Tue, 20 Aug 2019, Frederic Weisbecker wrote: > > On Mon, Aug 19, 2019 at 04:31:45PM +0200, Thomas Gleixner wrote: > > > /* > > > - * Clean out CPU timers still ticking when a thread exited. The task > > > - * pointer is

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

2019-08-20 Thread David Miller
From: YueHaibing Date: Tue, 20 Aug 2019 22:14:46 +0800 > 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 >

Re: [PATCH 10/14] arm64: dts: meson-g12a: fix reset controller compatible

2019-08-20 Thread Martin Blumenstingl
On Wed, Aug 14, 2019 at 4:32 PM Neil Armstrong wrote: > > This fixes the following DT schemas check errors: > meson-g12a-u200.dt.yaml: reset-controller@1004: compatible:0: > 'amlogic,meson-g12a-reset' is not one of ['amlogic,meson8b-reset', > 'amlogic,meson-gxbb-reset',

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

2019-08-20 Thread Peter Zijlstra
On Tue, Aug 20, 2019 at 01:31:35PM -0700, Paul E. McKenney wrote: > On Tue, Aug 20, 2019 at 04:01:16PM +0200, Peter Zijlstra wrote: > > We really should get the compiler folks to give us a > > -fno-pointer-provenance. Waiting on the standards committee to get their > > act together seems

Re: [PATCH 08/14] arm64: dts: meson-gxl: fix internal phy compatible

2019-08-20 Thread Martin Blumenstingl
adding Jerome On Wed, Aug 14, 2019 at 4:31 PM Neil Armstrong wrote: > > This fixes the following DT schemas check errors: > meson-gxl-s805x-libretech-ac.dt.yaml: ethernet-phy@8: compatible: > ['ethernet-phy-id0181.4400', 'ethernet-phy-ieee802.3-c22'] is not valid under > any of the given

Re: [PATCH 14/14] arm64: dts: meson: fix boards regulators states format

2019-08-20 Thread Martin Blumenstingl
On Wed, Aug 14, 2019 at 4:34 PM Neil Armstrong wrote: > > This fixes the following DT schemas check errors: > meson-gxbb-odroidc2.dt.yaml: gpio-regulator-tf_io: states:0: Additional items > are not allowed (180, 1 were unexpected) > meson-gxbb-odroidc2.dt.yaml: gpio-regulator-tf_io:

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

2019-08-20 Thread Kevin Hilman
Martin Blumenstingl writes: > Hi Neil, > > On Tue, Aug 20, 2019 at 4:43 PM Neil Armstrong > wrote: >> >> 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

Re: [PATCH 11/14] arm64: dts: meson-g12a-x96-max: fix compatible

2019-08-20 Thread Martin Blumenstingl
On Wed, Aug 14, 2019 at 4:33 PM Neil Armstrong wrote: > > This fixes the following DT schemas check errors: > meson-g12a-x96-max.dt.yaml: /: compatible: ['amediatech,x96-max', > 'amlogic,u200', 'amlogic,g12a'] is not valid under any of the given schemas > > Signed-off-by: Neil Armstrong

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

2019-08-20 Thread Paul E. McKenney
On Tue, Aug 20, 2019 at 04:01:16PM +0200, Peter Zijlstra wrote: > 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.

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

2019-08-20 Thread Paul E. McKenney
On Tue, Aug 20, 2019 at 03:56:12PM +0200, Peter Zijlstra wrote: > 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

Re: [PATCH 04/14] arm64: dts: meson-gx: fix spifc compatible

2019-08-20 Thread Martin Blumenstingl
On Wed, Aug 14, 2019 at 4:31 PM Neil Armstrong wrote: > > This fixes the following DT schemas check errors: > meson-gxl-s805x-libretech-ac.dt.yaml: spi@8c80: compatible:0: > 'amlogic,meson-gx-spifc' is not one of ['amlogic,meson6-spifc', > 'amlogic,meson-gxbb-spifc'] > > Signed-off-by: Neil

Re: [v2 PATCH] RISC-V: Optimize tlb flush path.

2019-08-20 Thread Atish Patra
On Tue, 2019-08-20 at 14:21 +0530, Anup Patel wrote: > On Tue, Aug 20, 2019 at 6:17 AM Atish Patra > wrote: > > In RISC-V, tlb flush happens via SBI which is expensive. > > If the target cpumask contains a local hartid, some cost > > can be saved by issuing a local tlb flush as we do that > > in

Re: [PATCH 02/14] arm64: dts: meson-gx: drop the vpu dmc memory cell

2019-08-20 Thread Martin Blumenstingl
On Wed, Aug 14, 2019 at 4:31 PM Neil Armstrong wrote: > > This fixes the following DT schemas check errors: > meson-gxl-s805x-libretech-ac.dt.yaml: vpu@d010: reg-names: Additional > items are not allowed ('dmc' was unexpected) > meson-gxl-s805x-libretech-ac.dt.yaml: vpu@d010: reg-names:

Re: [PATCH] dt-bindings: arm: Add kryo485 compatible

2019-08-20 Thread Rob Herring
On Tue, Aug 20, 2019 at 10:40:20PM +0530, Vinod Koul wrote: > Kryo485 is found in SM8150, so add it it list of cpu compatibles > > Signed-off-by: Vinod Koul > --- > Documentation/devicetree/bindings/arm/cpus.yaml | 1 + > 1 file changed, 1 insertion(+) Applied, thanks. Rob

Re: [v2 PATCH] RISC-V: Optimize tlb flush path.

2019-08-20 Thread Atish Patra
On Tue, 2019-08-20 at 02:22 -0700, h...@infradead.org wrote: > On Tue, Aug 20, 2019 at 08:42:19AM +, Atish Patra wrote: > > cmask NULL is pretty common case and we would be unnecessarily > > executing bunch of instructions everytime while not saving much. > > Kernel > > still have to make an

Re: [PATCH v6 3/4] dt-bindings: arm: fsl: Add Kontron i.MX6UL N6310 compatibles

2019-08-20 Thread Rob Herring
On Tue, Aug 20, 2019 at 3:21 PM Krzysztof Kozlowski wrote: > > On Tue, Aug 20, 2019 at 03:04:57PM -0500, Rob Herring wrote: > > On Tue, Aug 20, 2019 at 1:36 PM Krzysztof Kozlowski wrote: > > > > > > On Tue, 20 Aug 2019 at 18:59, Rob Herring wrote: > > > > > > > > On Tue, Aug 20, 2019 at 10:35

Re: [PATCH 07/14] arm64: dts: meson-gx: fix periphs bus node name

2019-08-20 Thread Martin Blumenstingl
On Wed, Aug 14, 2019 at 4:32 PM Neil Armstrong wrote: > > This fixes the following DT schemas check errors: > meson-gxbb-nanopi-k2.dt.yaml: periphs@c8834000: $nodename:0: > 'periphs@c8834000' does not match '^(bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$' > meson-gxl-s805x-libretech-ac.dt.yaml:

[PATCH v8 08/16] crypto: caam - share definition for MAX_SDLEN

2019-08-20 Thread Andrey Smirnov
Both qi.h and cammalg_qi2.h seem to define identical versions of MAX_SDLEN. Move it to desc_constr.h to avoid duplication. Signed-off-by: Andrey Smirnov Cc: Chris Spencer Cc: Cory Tusar Cc: Chris Healy Cc: Lucas Stach Cc: Horia Geantă Cc: Aymen Sghaier Cc: Leonard Crestez Cc:

[PATCH v8 06/16] crypto: caam - use ioread64*_hi_lo in rd_reg64

2019-08-20 Thread Andrey Smirnov
Following the same transformation logic as outlined in previous commit converting wr_reg64, convert rd_reg64 to use helpers from first. No functional change intended. Signed-off-by: Andrey Smirnov Reviewed-by: Horia Geantă Cc: Chris Spencer Cc: Cory Tusar Cc: Chris Healy Cc: Lucas Stach

Re: [PATCH 12/14] arm64: dts: meson-gxbb-nanopi-k2: add missing model

2019-08-20 Thread Martin Blumenstingl
On Wed, Aug 14, 2019 at 4:33 PM Neil Armstrong wrote: > > This fixes the following DT schemas check errors: > meson-gxbb-nanopi-k2.dt.yaml: /: 'model' is a required property > > Signed-off-by: Neil Armstrong > --- > arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts | 1 + > 1 file changed, 1

[PATCH v8 05/16] crytpo: caam - make use of iowrite64*_hi_lo in wr_reg64

2019-08-20 Thread Andrey Smirnov
In order to be able to unify 64 and 32 bit implementations of wr_reg64, let's convert it to use helpers from first. Here are the steps of the transformation: 1. Inline wr_reg32 helpers: if (!caam_imx && caam_little_end) { if (caam_little_end) {

Re: [PATCH 13/14] arm64: dts: meson-gxbb-p201: fix snps, reset-delays-us format

2019-08-20 Thread Martin Blumenstingl
On Wed, Aug 14, 2019 at 4:33 PM Neil Armstrong wrote: > > This fixes the following DT schemas check errors: > meson-gxbb-p201.dt.yaml: ethernet@c941: snps,reset-delays-us: [[0, 1, > 100]] is too short > > Signed-off-by: Neil Armstrong Reviewed-by: Martin Blumenstingl

[PATCH v8 09/16] crypto: caam - make CAAM_PTR_SZ dynamic

2019-08-20 Thread Andrey Smirnov
In order to be able to configure CAAM pointer size at run-time, which needed to support i.MX8MQ, which is 64-bit SoC with 32-bit pointer size, convert CAAM_PTR_SZ to refer to a global variable of the same name ("caam_ptr_sz") and adjust the rest of the code accordingly. No functional change

[PATCH v8 04/16] crypto: caam - request JR IRQ as the last step

2019-08-20 Thread Andrey Smirnov
In order to avoid any risk of JR IRQ request being handled while some of the resources used for that are not yet allocated move the code requesting said IRQ to the endo of caam_jr_init(). Signed-off-by: Andrey Smirnov Cc: Chris Spencer Cc: Cory Tusar Cc: Chris Healy Cc: Lucas Stach Cc: Horia

[PATCH v8 07/16] crypto: caam - drop 64-bit only wr/rd_reg64()

2019-08-20 Thread Andrey Smirnov
Since 32-bit of both wr_reg64 and rd_reg64 now use 64-bit IO helpers, these functions should no longer be necessary. No functional change intended. Signed-off-by: Andrey Smirnov Reviewed-by: Horia Geantă Cc: Chris Spencer Cc: Cory Tusar Cc: Chris Healy Cc: Lucas Stach Cc: Horia Geantă Cc:

[PATCH v2] x86/mm/pti: in pti_clone_pgtable(), increase addr properly

2019-08-20 Thread Song Liu
Before 32-bit support, pti_clone_pmds() always adds PMD_SIZE to addr. This behavior changes after the 32-bit support: pti_clone_pgtable() increases addr by PUD_SIZE for pud_none(*pud) case, and increases addr by PMD_SIZE for pmd_none(*pmd) case. However, this is not accurate because addr may not

[PATCH v8 01/16] crypto: caam - move DMA mask selection into a function

2019-08-20 Thread Andrey Smirnov
Exactly the same code to figure out DMA mask is repeated twice in the driver code. To avoid repetition, move that logic into a standalone subroutine in intern.h. While at it re-shuffle the code to make it more readable with early returns. Signed-off-by: Andrey Smirnov Reviewed-by: Horia Geantă

Re: [PATCH 05/14] arm64: dts: meson-gx: fix watchdog compatible

2019-08-20 Thread Martin Blumenstingl
On Wed, Aug 14, 2019 at 4:30 PM Neil Armstrong wrote: > > This fixes the following DT schemas check errors: > meson-gxbb-nanopi-k2.dt.yaml: watchdog@98d0: compatible:0: > 'amlogic,meson-gx-wdt' is not one of ['amlogic,meson-gxbb-wdt'] > meson-gxl-s805x-libretech-ac.dt.yaml: watchdog@98d0:

Re: [patch 27/44] posix-cpu-timers: Provide array based access to expiry cache

2019-08-20 Thread Thomas Gleixner
On Mon, 19 Aug 2019, Ingo Molnar wrote: > * Thomas Gleixner wrote: > > struct posix_cputimers { > > - struct task_cputime cputime_expires; > > - struct list_headcpu_timers[CPUCLOCK_MAX]; > > + /* Temporary union until all users are cleaned up */ > > + union { > > +

Re: [PATCH 01/14] arm64: dts: meson: fix ethernet mac reg format

2019-08-20 Thread Martin Blumenstingl
On Wed, Aug 14, 2019 at 4:30 PM Neil Armstrong wrote: > > This fixes the following DT schemas check errors: > meson-axg-s400.dt.yaml: soc: ethernet@ff3f:reg:0: [0, 4282318848, 0, > 65536, 0, 4284695872, 0, 8] is too long > meson-axg-s400.dt.yaml: ethernet@ff3f: reg: [[0, 4282318848, 0,

Re: [PATCH 03/14] arm64: dts: meson-gx: fix reset controller compatible

2019-08-20 Thread Martin Blumenstingl
On Wed, Aug 14, 2019 at 4:29 PM Neil Armstrong wrote: > > This fixes the following DT schemas check errors: > meson-gxbb-nanopi-k2.dt.yaml: reset-controller@4404: compatible:0: > 'amlogic,meson-gx-reset' is not one of ['amlogic,meson8b-reset', > 'amlogic,meson-gxbb-reset',

Re: [PATCH v6 3/4] dt-bindings: arm: fsl: Add Kontron i.MX6UL N6310 compatibles

2019-08-20 Thread Krzysztof Kozlowski
On Tue, Aug 20, 2019 at 03:04:57PM -0500, Rob Herring wrote: > On Tue, Aug 20, 2019 at 1:36 PM Krzysztof Kozlowski wrote: > > > > On Tue, 20 Aug 2019 at 18:59, Rob Herring wrote: > > > > > > On Tue, Aug 20, 2019 at 10:35 AM Krzysztof Kozlowski > > > wrote: > > > > > > > > Add the compatibles

Re: [PATCH net-next v4 1/2] dt-bindings: net: snps,dwmac: update reg minItems maxItems

2019-08-20 Thread Martin Blumenstingl
On Tue, Aug 20, 2019 at 9:57 AM Neil Armstrong wrote: > > The Amlogic Meson DWMAC glue bindings needs a second reg cells for the > glue registers, thus update the reg minItems/maxItems to allow more > than a single reg cell. > > Also update the allwinner,sun7i-a20-gmac.yaml derivative schema to

WARNING: refcount bug in chrdev_open

2019-08-20 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:a69e9051 Merge tag 'xfs-5.3-fixes-2' of git://git.kernel.o.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1450b25a60 kernel config: https://syzkaller.appspot.com/x/.config?x=3d7eaed8496da4da

Re: [PATCH v2 2/4] rtc: Add support for the MediaTek MT2712 RTC

2019-08-20 Thread Alexandre Belloni
Hi, On 01/08/2019 19:01:20+0800, Ran Bi wrote: > diff --git a/drivers/rtc/rtc-mt2712.c b/drivers/rtc/rtc-mt2712.c > new file mode 100644 > index ..1eb71ca64c2c > --- /dev/null > +++ b/drivers/rtc/rtc-mt2712.c > @@ -0,0 +1,444 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + *

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

2019-08-20 Thread Martin Blumenstingl
Hi Neil, On Tue, Aug 20, 2019 at 4:43 PM Neil Armstrong wrote: > > 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

Re: [PATCH v6 3/4] dt-bindings: arm: fsl: Add Kontron i.MX6UL N6310 compatibles

2019-08-20 Thread Rob Herring
On Tue, Aug 20, 2019 at 1:36 PM Krzysztof Kozlowski wrote: > > On Tue, 20 Aug 2019 at 18:59, Rob Herring wrote: > > > > On Tue, Aug 20, 2019 at 10:35 AM Krzysztof Kozlowski > > wrote: > > > > > > Add the compatibles for Kontron i.MX6UL N6310 SoM and boards. > > > > > > Signed-off-by: Krzysztof

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

2019-08-20 Thread Sasha Levin
On Tue, Aug 20, 2019 at 07:27:22AM -0700, Greg Kroah-Hartman wrote: 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

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