Re: [PATCH] of/fdt: Make sure no-map does not remove already reserved regions

2019-07-16 Thread Stephen Boyd
Quoting Nicolas Boichat (2019-07-02 22:08:27) > If the device tree is incorrectly configured, and attempts to > define a "no-map" reserved memory that overlaps with the kernel > data/code, the kernel would crash quickly after boot, with no > obvious clue about the nature of the issue. > > For exam

Re: [PATCH RFC 0/4] Add support to directly attach BPF program to ftrace

2019-07-16 Thread Joel Fernandes
On Tue, Jul 16, 2019 at 03:26:52PM -0700, Alexei Starovoitov wrote: > On Tue, Jul 16, 2019 at 05:30:50PM -0400, Joel Fernandes wrote: > > > > I also thought about the pinning idea before, but we also want to add > > support > > for not just raw tracepoints, but also regular tracepoints (events if

Re: [PATCH RFC 0/4] Add support to directly attach BPF program to ftrace

2019-07-16 Thread Steven Rostedt
On Tue, 16 Jul 2019 15:26:52 -0700 Alexei Starovoitov wrote: > I'm absolutely against text based apis. I guess you don't use /proc ;-) -- Steve

Re: [PATCH 0/3] resource: find_next_iomem_res() improvements

2019-07-16 Thread Dan Williams
On Tue, Jul 16, 2019 at 3:29 PM Nadav Amit wrote: > > > On Jul 16, 2019, at 3:20 PM, Dan Williams wrote: > > > > On Tue, Jul 16, 2019 at 3:13 PM Nadav Amit wrote: > >>> On Jul 16, 2019, at 3:07 PM, Dan Williams > >>> wrote: > >>> > >>> On Tue, Jul 16, 2019 at 3:01 PM Andrew Morton > >>> wrot

[PATCH v2 1/6] hwrng: core: Freeze khwrng thread during suspend

2019-07-16 Thread Stephen Boyd
The hwrng_fill() function can run while devices are suspending and resuming. If the hwrng is behind a bus such as i2c or SPI and that bus is suspended, the hwrng may hang the bus while attempting to add some randomness. It's been observed on ChromeOS devices with suspend-to-idle (s2idle) and an i2c

[PATCH v2 6/6] tpm: Add driver for cr50 on I2C

2019-07-16 Thread Stephen Boyd
From: Duncan Laurie Add TPM 2.0 compatible I2C interface for chips with cr50 firmware. The firmware running on the currently supported H1 MCU requires a special driver to handle its specific protocol, and this makes it unsuitable to use tpm_tis_core_* and instead it must implement the underlying

[tip:x86/urgent] x86: math-emu: Hide clang warnings for 16-bit overflow

2019-07-16 Thread tip-bot for Arnd Bergmann
Commit-ID: 29e7e9664aec17b94a9c8c5a75f8d216a206aa3a Gitweb: https://git.kernel.org/tip/29e7e9664aec17b94a9c8c5a75f8d216a206aa3a Author: Arnd Bergmann AuthorDate: Fri, 12 Jul 2019 11:08:05 +0200 Committer: Thomas Gleixner CommitDate: Wed, 17 Jul 2019 00:42:26 +0200 x86: math-emu: Hide c

[PATCH v2 0/6] tpm: Add driver for cr50

2019-07-16 Thread Stephen Boyd
This patch series adds support for the the H1 secure microcontroller running cr50 firmware found on various recent Chromebooks. This driver is necessary to boot into a ChromeOS userspace environment. It implements support for several functions, including TPM-like functionality, and supports SPI and

[PATCH v2 5/6] tpm: add driver for cr50 on SPI

2019-07-16 Thread Stephen Boyd
From: Andrey Pronin Add TPM2.0 PTP FIFO compatible SPI interface for chips with Cr50 firmware. The firmware running on the currently supported H1 Secure Microcontroller requires a special driver to handle its specifics: - need to ensure a certain delay between spi transactions, or else the ch

[PATCH v2 3/6] tpm_tis_spi: add max xfer size

2019-07-16 Thread Stephen Boyd
From: Andrey Pronin Reject burstcounts larger than 64 bytes reported by tpm. SPI Hardware Protocol defined in section 6.4 of TCG PTP Spec supports up to 64 bytes of data in a transaction. Signed-off-by: Andrey Pronin Reviewed-by: Dmitry Torokhov Reviewed-by: Jarkko Sakkinen Signed-off-by: Ste

[PATCH v2 4/6] dt-bindings: tpm: document properties for cr50

2019-07-16 Thread Stephen Boyd
From: Andrey Pronin Add TPM2.0 PTP FIFO compatible SPI interface for chips with Cr50 firmware. Signed-off-by: Andrey Pronin Reviewed-by: Rob Herring Signed-off-by: Stephen Boyd --- .../bindings/security/tpm/google,cr50.txt | 19 +++ 1 file changed, 19 insertions(+) creat

[PATCH v2 2/6] tpm_tis_core: add optional max xfer size check

2019-07-16 Thread Stephen Boyd
From: Andrey Pronin If tpm reports a bigger burstcnt than allowed by the physical protocol, set burstcnt to the max allowed value. In practice, seen in case of xfer issues (e.g. in spi interface case, lost header causing flow control issues and wrong values returned on read from TPM_STS). Withou

[PATCHv2 0/3] fpga: altera-cvp: Add Stratix10 Support

2019-07-16 Thread thor . thayer
From: Thor Thayer Newer versions (V2) of Altera/Intel FPGAs CvP have different PCI Vendor Specific Capability offsets than the older (V1) Altera/FPGAs. Most of the CvP registers and their bitfields remain the same between both the older parts and the newer parts. This patchset implements change

[PATCHv2 1/3] fpga: altera-cvp: Discover Vendor Specific offset

2019-07-16 Thread thor . thayer
From: Thor Thayer Newer Intel FPGAs have different Vendor Specific offsets than legacy parts. Use PCI discovery to find the CvP registers. Since the register positions remain the same, change the hard coded address to a more flexible way of indexing registers from the offset. Adding new PCI read

[PATCHv2 3/3] fpga: altera-cvp: Add Stratix10 (V2) Support

2019-07-16 Thread thor . thayer
From: Thor Thayer Add Stratix10 specific functions that use a credit mechanism to throttle data to the CvP FIFOs. Add a private structure with function pointers for V1 vs V2 functions. Signed-off-by: Thor Thayer --- v2 Remove inline function declaration Reverse Christmas Tree format for loca

Re: [PATCH] of/fdt: Make sure no-map does not remove already reserved regions

2019-07-16 Thread Florian Fainelli
On 7/2/19 10:08 PM, Nicolas Boichat wrote: > If the device tree is incorrectly configured, and attempts to > define a "no-map" reserved memory that overlaps with the kernel > data/code, the kernel would crash quickly after boot, with no > obvious clue about the nature of the issue. > > For example

Re: [PATCH RFC 0/4] Add support to directly attach BPF program to ftrace

2019-07-16 Thread Joel Fernandes
On Tue, Jul 16, 2019 at 06:31:17PM -0400, Steven Rostedt wrote: > On Tue, 16 Jul 2019 17:30:50 -0400 > Joel Fernandes wrote: > > > I don't see why a new bpf node for a trace event is a bad idea, really. > > tracefs is how we deal with trace events on Android. We do it in production > > systems. T

[PATCHv2 2/3] fpga: altera-cvp: Preparation for V2 parts.

2019-07-16 Thread thor . thayer
From: Thor Thayer In preparation for adding newer V2 parts that use a FIFO, reorganize altera_cvp_chk_error() and change the write function to block based. V2 parts have a block size matching the FIFO while older V1 parts write a 32 bit word at a time. Signed-off-by: Thor Thayer --- v2 Remove i

[tip:x86/urgent] x86/process: Delete useless check for dead process with LDT

2019-07-16 Thread tip-bot for Jann Horn
Commit-ID: 50e04acf2990d0d93983720b0a85b11ef805df60 Gitweb: https://git.kernel.org/tip/50e04acf2990d0d93983720b0a85b11ef805df60 Author: Jann Horn AuthorDate: Sat, 13 Jul 2019 00:41:52 +0200 Committer: Thomas Gleixner CommitDate: Wed, 17 Jul 2019 00:42:27 +0200 x86/process: Delete usele

[tip:x86/urgent] MAINTAINERS: Update PARAVIRT_OPS_INTERFACE and VMWARE_HYPERVISOR_INTERFACE

2019-07-16 Thread tip-bot for Thomas Hellstrom
Commit-ID: 406de552c2be6ded524c75d14a73cf7f027f587e Gitweb: https://git.kernel.org/tip/406de552c2be6ded524c75d14a73cf7f027f587e Author: Thomas Hellstrom AuthorDate: Thu, 28 Mar 2019 12:06:37 + Committer: Thomas Gleixner CommitDate: Wed, 17 Jul 2019 00:42:27 +0200 MAINTAINERS: Updat

[PREEMPT_RT] splat in v5.2-rt1: r t_mutex_owner(lock) != current

2019-07-16 Thread Clark Williams
Saw this after applying my thermal lock to raw patch and the change in i915 for lockdep. The splat occurred on boot when creating the kdump initramfs. System is an Intel NUC i7 with 32GB ram and 256GB SSD for rootfs. The booting kernel has rt_mutex debugging turned on as well as lockdep and l

Re: [PATCH v3 2/4] of/platform: Add functional dependency link from DT bindings

2019-07-16 Thread Rob Herring
On Mon, Jul 15, 2019 at 7:05 PM Frank Rowand wrote: > > On 7/15/19 11:40 AM, Saravana Kannan wrote: > > Replying again because the previous email accidentally included HTML. > > > > Thanks for taking the time to reconsider the wording Frank. Your > > intention was clear to me in the first email to

Re: [patch 1/1] Kconfig: Introduce CONFIG_PREEMPT_RT

2019-07-16 Thread Ingo Molnar
* Thomas Gleixner wrote: > Add a new entry to the preemption menu which enables the real-time support > for the kernel. The choice is only enabled when an architecture supports > it. > > It selects PREEMPT as the RT features depend on it. To achieve that the > existing PREEMPT choice is rename

Re: [PATCH 10/22] bpf: Disable GCC -fgcse optimization for ___bpf_prog_run()

2019-07-16 Thread Josh Poimboeuf
On Tue, Jul 16, 2019 at 11:15:54AM -0700, Nick Desaulniers wrote: > On Sun, Jul 14, 2019 at 5:37 PM Josh Poimboeuf wrote: > > > > On x86-64, with CONFIG_RETPOLINE=n, GCC's "global common subexpression > > elimination" optimization results in ___bpf_prog_run()'s jumptable code > > changing from thi

Re: objtool crashes on clang output (drivers/hwmon/pmbus/adm1275.o)

2019-07-16 Thread Josh Poimboeuf
On Wed, Jul 17, 2019 at 12:05:14AM +0200, Arnd Bergmann wrote: > On Tue, Jul 16, 2019 at 10:24 PM 'Nick Desaulniers' via Clang Built > Linux wrote: > > > > On Fri, Jul 12, 2019 at 1:41 PM Arnd Bergmann wrote: > > > > > > On Fri, Jul 12, 2019 at 6:59 PM 'Nick Desaulniers' via Clang Built > > > Lin

Re: [PATCH v3 0/5] Add NUMA-awareness to qspinlock

2019-07-16 Thread Nicholas Piggin
Alex Kogan's on July 17, 2019 12:45 am: > >> On Jul 16, 2019, at 7:47 AM, Nicholas Piggin wrote: >> >> Alex Kogan's on July 16, 2019 5:25 am: >>> Our evaluation shows that CNA also improves performance of user >>> applications that have hot pthread mutexes. Those mutexes are >>> blocking, and

Re: [PATCH] of/fdt: Make sure no-map does not remove already reserved regions

2019-07-16 Thread Rob Herring
On Tue, Jul 16, 2019 at 4:46 PM Florian Fainelli wrote: > > On 7/2/19 10:08 PM, Nicolas Boichat wrote: > > If the device tree is incorrectly configured, and attempts to > > define a "no-map" reserved memory that overlaps with the kernel > > data/code, the kernel would crash quickly after boot, wit

Re: [PATCH V35 27/29] tracefs: Restrict tracefs when the kernel is locked down

2019-07-16 Thread Steven Rostedt
On Mon, 15 Jul 2019 12:59:44 -0700 Matthew Garrett wrote: > Tracefs may release more information about the kernel than desirable, so > restrict it when the kernel is locked down in confidentiality mode by > preventing open(). > > Signed-off-by: Matthew Garrett > Cc: Steven Rostedt > --- > >

Re: [PATCH 00/22] x86, objtool: several fixes/improvements

2019-07-16 Thread Josh Poimboeuf
On Mon, Jul 15, 2019 at 02:45:39PM -0700, Nick Desaulniers wrote: > For a defconfig, that's the only issue I see. > (Note that I just landed https://reviews.llvm.org/rL366130 for fixing > up bugs from loop unrolling loops containing asm goto with Clang, so > anyone else testing w/ clang will see fe

Re: [PATCH] of/fdt: Make sure no-map does not remove already reserved regions

2019-07-16 Thread Florian Fainelli
On 7/16/19 4:12 PM, Rob Herring wrote: > On Tue, Jul 16, 2019 at 4:46 PM Florian Fainelli wrote: >> >> On 7/2/19 10:08 PM, Nicolas Boichat wrote: >>> If the device tree is incorrectly configured, and attempts to >>> define a "no-map" reserved memory that overlaps with the kernel >>> data/code, the

Re: [PATCH v1 2/3] clk: qcom: rcg2: Add support for hardware control mode

2019-07-16 Thread Stephen Boyd
Quoting Taniya Das (2019-07-15 21:19:02) > Hello Stephen, > > Thanks for your review. > > On 7/16/2019 4:22 AM, Stephen Boyd wrote: > > Quoting Taniya Das (2019-05-08 11:24:54) > >> diff --git a/drivers/clk/qcom/clk-rcg2.c b/drivers/clk/qcom/clk-rcg2.c > >> index 57dbac9..5bb6d45 100644 > >> ---

Re: [PATCH v1 3/3] clk: qcom: rcg: update the DFS macro for RCG

2019-07-16 Thread Stephen Boyd
Quoting Taniya Das (2019-07-15 21:22:02) > Hello Stephen, > > Thanks for the review. > > On 7/16/2019 4:14 AM, Stephen Boyd wrote: > > Quoting Taniya Das (2019-05-12 20:44:46) > >> On 5/10/2019 11:24 PM, Stephen Boyd wrote: > >>> Why is the clk name changing to not have a _src after the "root" of

Re: [PATCH V35 27/29] tracefs: Restrict tracefs when the kernel is locked down

2019-07-16 Thread Matthew Garrett
On Tue, Jul 16, 2019 at 4:14 PM Steven Rostedt wrote: > Small nit, but please add this as the first declaration, to keep the > "upside-down x-mas tree" look. I know some of the other functions in > this file don't follow that (which should be cleaned up some day), but > I'd like to avoid adding mo

Re: linux-next: build failure after merge of the rdma tree

2019-07-16 Thread Stephen Rothwell
Hi, On Wed, 10 Jul 2019 14:30:36 +1000 Stephen Rothwell wrote: > > On Wed, 10 Jul 2019 11:04:43 +1000 Stephen Rothwell > wrote: > > > > On Tue, 9 Jul 2019 12:46:34 + Jason Gunthorpe > > wrote: > > > > > > It isn't quite enough to make the header compile stand alone, I'm > > > adding th

Re: [PATCH 4/6] irqchip/irq-pruss-intc: Add helper functions to configure internal mapping

2019-07-16 Thread Suman Anna
Hi David, On 7/10/19 10:10 PM, David Lechner wrote: > On 7/7/19 10:52 PM, Suman Anna wrote: >> The PRUSS INTC receives a number of system input interrupt source events >> and supports individual control configuration and hardware >> prioritization. >> These input events can be mapped to some outpu

Re: list corruption in deferred_split_scan()

2019-07-16 Thread Shakeel Butt
Adding related people. The thread starts at: http://lkml.kernel.org/r/1562795006.8510.19.ca...@lca.pw On Mon, Jul 15, 2019 at 8:01 PM Yang Shi wrote: > > > > On 7/15/19 6:36 PM, Qian Cai wrote: > > > >> On Jul 15, 2019, at 8:22 PM, Yang Shi wrote: > >> > >> > >> > >> On 7/15/19 2:23 PM, Qian Ca

linux-next: manual merge of the xfs tree with Linus' tree

2019-07-16 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the xfs tree got a conflict in: Documentation/admin-guide/index.rst between commit: 66f2a122c68d ("docs: Move binderfs to admin-guide") from Linus' tree and commit: 89b408a68b9d ("Documentation: filesystem: Convert xfs.txt to ReST") from the xfs tree

Re: [PATCH v2] kbuild: Fail if gold linker is detected

2019-07-16 Thread Theodore Y. Ts'o
On Wed, Jul 17, 2019 at 12:25:14AM +0200, Thomas Gleixner wrote: > > It's been my default system linker for years and I've had very few issues > > with it and it's a big improvement when linking with LTO > > I understand, but the fact that you need to turn off config options in > order to build a

Dear Friend,

2019-07-16 Thread Salif Mohammed
Dear Friend, I am delighted to get across to you for a confidential private business “ investment proposal” worth of US$ 22 Million in which your partnership and trust is highly required. For more details and the procedure, kindly provide me with your following information: 1) Your Full name

Re: [PATCH] arm64: dts: sdm845: Add iommus property to qup1

2019-07-16 Thread Stephen Boyd
Quoting Vivek Gautam (2019-06-12 02:26:20) > > > On 6/11/2019 4:51 AM, Stephen Boyd wrote: > > hardware signal like the NS bit and/or the Execution Level. Hopefully > > it's a config and then our difference from MTP can be minimized. > > I don't think SMMU limits any such programming of SIDs. It

Re: [PATCH v3 2/4] of/platform: Add functional dependency link from DT bindings

2019-07-16 Thread Saravana Kannan
Resending again due to HTML. Sorry about it, the darn thing keeps getting turned on for some reason! On Tue, Jul 16, 2019 at 3:57 PM Rob Herring wrote: > > On Mon, Jul 15, 2019 at 7:05 PM Frank Rowand wrote: > > > > On 7/15/19 11:40 AM, Saravana Kannan wrote: > > > Replying again because the pre

Re: [PATCH RFC 0/4] Add support to directly attach BPF program to ftrace

2019-07-16 Thread Joel Fernandes
On Tue, Jul 16, 2019 at 06:41:50PM -0400, Joel Fernandes wrote: > On Tue, Jul 16, 2019 at 03:26:52PM -0700, Alexei Starovoitov wrote: > > On Tue, Jul 16, 2019 at 05:30:50PM -0400, Joel Fernandes wrote: > > > > > > I also thought about the pinning idea before, but we also want to add > > > support

general protection fault in tls_setsockopt

2019-07-16 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:a131c2bf Merge tag 'acpi-5.3-rc1-2' of git://git.kernel.or.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=1603e9c060 kernel config: https://syzkaller.appspot.com/x/.config?x=8bff73c5ba9e876 das

Re: [patch 1/1] Kconfig: Introduce CONFIG_PREEMPT_RT

2019-07-16 Thread Gratian Crisan
Thomas Gleixner writes: > Add a new entry to the preemption menu which enables the real-time support > for the kernel. The choice is only enabled when an architecture supports > it. > > It selects PREEMPT as the RT features depend on it. To achieve that the > existing PREEMPT choice is renamed t

Re: [PATCH RESEND 0/2] RISC-V: Handle the siginfo_t offset problem

2019-07-16 Thread Alistair Francis
On Thu, Jul 4, 2019 at 2:19 AM Arnd Bergmann wrote: > > On Thu, Jul 4, 2019 at 9:20 AM Andreas Schwab wrote: > > > > On Jul 03 2019, Alistair Francis wrote: > > > > > On Wed, Jul 3, 2019 at 12:08 AM Andreas Schwab wrote: > > >> > > >> On Jul 02 2019, Alistair Francis wrote: > > >> > > >> > In

Re: list corruption in deferred_split_scan()

2019-07-16 Thread Yang Shi
On 7/16/19 4:36 PM, Shakeel Butt wrote: Adding related people. The thread starts at: http://lkml.kernel.org/r/1562795006.8510.19.ca...@lca.pw On Mon, Jul 15, 2019 at 8:01 PM Yang Shi wrote: On 7/15/19 6:36 PM, Qian Cai wrote: On Jul 15, 2019, at 8:22 PM, Yang Shi wrote: On 7/15/19 2

[PATCH 0/3] mm/hmm: fixes for device private page migration

2019-07-16 Thread Ralph Campbell
Testing the latest linux git tree turned up a few bugs with page migration to and from ZONE_DEVICE private and anonymous pages. Hopefully it clarifies how ZONE_DEVICE private struct page uses the same mapping and index fields from the source anonymous page mapping. Patch #3 was sent earlier and th

[PATCH 1/3] mm: document zone device struct page reserved fields

2019-07-16 Thread Ralph Campbell
Struct page for ZONE_DEVICE private pages uses the reserved fields when anonymous pages are migrated to device private memory. This is so the page->mapping and page->index fields are preserved and the page can be migrated back to system memory. Document this in comments so it is more clear. Signed

mmotm 2019-07-16-17-14 uploaded

2019-07-16 Thread akpm
The mm-of-the-moment snapshot 2019-07-16-17-14 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You wi

[PATCH 3/3] mm/hmm: Fix bad subpage pointer in try_to_unmap_one

2019-07-16 Thread Ralph Campbell
When migrating an anonymous private page to a ZONE_DEVICE private page, the source page->mapping and page->index fields are copied to the destination ZONE_DEVICE struct page and the page_mapcount() is increased. This is so rmap_walk() can be used to unmap and migrate the page back to system memory.

[PATCH 2/3] mm/hmm: fix ZONE_DEVICE anon page mapping reuse

2019-07-16 Thread Ralph Campbell
When a ZONE_DEVICE private page is freed, the page->mapping field can be set. If this page is reused as an anonymous page, the previous value can prevent the page from being inserted into the CPU's anon rmap table. For example, when migrating a pte_none() page to device memory: migrate_vma(ops, v

Re: [PATCH v7 0/2] KVM: LAPIC: Implement Exitless Timer

2019-07-16 Thread Wanpeng Li
On Thu, 11 Jul 2019 at 22:05, Paolo Bonzini wrote: > > On 11/07/19 15:50, Wanpeng Li wrote: > > kindly ping, > > Sorry, I need more time to review this. It's basically the only > remaining item for the 5.3 merge window, even though it won't be part of > the first pull request to Linus. Thank you

[PATCH v2 3/3] nvme-pci: Add support for Apple 2018+ models

2019-07-16 Thread Benjamin Herrenschmidt
Based on reverse engineering and original patch by Paul Pawlowski This adds support for Apple weird implementation of NVME in their 2018 or later machines. It accounts for the twice-as-big SQ entries for the IO queues, and the fact that only interrupt vector 0 appears to function properly. Sign

[PATCH v2 1/3] nvme-pci: Pass the queue to SQ_SIZE/CQ_SIZE macros

2019-07-16 Thread Benjamin Herrenschmidt
This will make it easier to handle variable queue entry sizes later. No functional change. Signed-off-by: Benjamin Herrenschmidt Reviewed-by: Christoph Hellwig --- drivers/nvme/host/pci.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/driver

[PATCH v2 2/3] nvme-pci: Add support for variable IO SQ element size

2019-07-16 Thread Benjamin Herrenschmidt
The size of a submission queue element should always be 6 (64 bytes) by spec. However some controllers such as Apple's are not properly implementing the standard and require a different size. This provides the ground work for the subsequent quirks for these controllers. Signed-off-by: Benjamin H

Re: [PATCH] ocfs2: remove set but not used variable 'last_hash'

2019-07-16 Thread Joseph Qi
On 19/7/16 21:21, YueHaibing wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > fs/ocfs2/xattr.c: In function ocfs2_xattr_bucket_find: > fs/ocfs2/xattr.c:3828:6: warning: variable last_hash set but not used > [-Wunused-but-set-variable] > > It's never used and can be removed. > > Si

Re: [PATCH v10 6/9] kselftests: cgroup: add freezer controller self-tests

2019-07-16 Thread Roman Gushchin
On Tue, Jul 16, 2019 at 08:18:39PM +0530, Naresh Kamboju wrote: > Hi Roman, > > Just want to share information here on what we notice on running this test > case, Hi Naresh! Thank you for the report! The interaction between ptrace and freezer is complicated (as ptrace in general),so there are

Re: [RFC PATCH 00/11] tracing: of: Boot time tracing using devicetree

2019-07-16 Thread Masami Hiramatsu
Hi Frank, On Mon, 15 Jul 2019 06:55:40 -0700 Frank Rowand wrote: > > Hmm, it's a kind of communication with the operator of the boot loader, > > since there > > is an admin or developer behind it. I think the comminication is to > > communicate > > with that human. Then if they intend to trace

Re: [PATCH v3 0/6] Tracing vs CR2

2019-07-16 Thread Andy Lutomirski
On Tue, Jul 16, 2019 at 2:53 PM Vegard Nossum wrote: > > > On 7/16/19 9:33 PM, Vegard Nossum wrote: > > > > On 7/11/19 1:40 PM, Peter Zijlstra wrote: > >> Hi, > >> > >> Here's the latest (and hopefully final) set of tracing vs CR2 patches. > >> > >> They are basically the same as v2, with only min

Re: [PATCH v7 2/3] KVM: vmx: Emulate MSR IA32_UMWAIT_CONTROL

2019-07-16 Thread Tao Xu
On 7/17/2019 12:03 AM, Eduardo Habkost wrote: On Fri, Jul 12, 2019 at 04:29:06PM +0800, Tao Xu wrote: UMWAIT and TPAUSE instructions use IA32_UMWAIT_CONTROL at MSR index E1H to determines the maximum time in TSC-quanta that the processor can reside in either C0.1 or C0.2. This patch emulates MS

Re: [PATCH 1/3] mm: document zone device struct page reserved fields

2019-07-16 Thread John Hubbard
On 7/16/19 5:14 PM, Ralph Campbell wrote: > Struct page for ZONE_DEVICE private pages uses the reserved fields when > anonymous pages are migrated to device private memory. This is so > the page->mapping and page->index fields are preserved and the page can > be migrated back to system memory. > Do

Re: [PATCH RFC 0/4] Add support to directly attach BPF program to ftrace

2019-07-16 Thread Alexei Starovoitov
On Tue, Jul 16, 2019 at 07:55:00PM -0400, Joel Fernandes wrote: > On Tue, Jul 16, 2019 at 06:41:50PM -0400, Joel Fernandes wrote: > > On Tue, Jul 16, 2019 at 03:26:52PM -0700, Alexei Starovoitov wrote: > > > On Tue, Jul 16, 2019 at 05:30:50PM -0400, Joel Fernandes wrote: > > > > > > > > I also tho

Re: [PATCH RFC 0/4] Add support to directly attach BPF program to ftrace

2019-07-16 Thread Alexei Starovoitov
On Tue, Jul 16, 2019 at 06:31:17PM -0400, Steven Rostedt wrote: > On Tue, 16 Jul 2019 17:30:50 -0400 > Joel Fernandes wrote: > > > I don't see why a new bpf node for a trace event is a bad idea, really. > > tracefs is how we deal with trace events on Android. We do it in production > > systems. T

RE: [EXT] [PATCH v1] net: fec: optionally reset PHY via a reset-controller

2019-07-16 Thread Andy Duan
From: Sven Van Asbroeck Sent: Tuesday, July 16, 2019 9:19 PM > Hi Andy, > > On Mon, Jul 15, 2019 at 10:02 PM Andy Duan > wrote: > > > > the phylib already can handle mii bus reset and phy device reset > > That's a great suggestion, thank you !! I completely overlooked that code. > What will ha

Re: [PATCH 2/3] mm/hmm: fix ZONE_DEVICE anon page mapping reuse

2019-07-16 Thread John Hubbard
On 7/16/19 5:14 PM, Ralph Campbell wrote: > When a ZONE_DEVICE private page is freed, the page->mapping field can be > set. If this page is reused as an anonymous page, the previous value can > prevent the page from being inserted into the CPU's anon rmap table. > For example, when migrating a pte_

Re: [PATCH v2 1/6] hwrng: core: Freeze khwrng thread during suspend

2019-07-16 Thread Herbert Xu
On Tue, Jul 16, 2019 at 03:45:13PM -0700, Stephen Boyd wrote: > The hwrng_fill() function can run while devices are suspending and > resuming. If the hwrng is behind a bus such as i2c or SPI and that bus > is suspended, the hwrng may hang the bus while attempting to add some > randomness. It's been

Re: [PATCH 3/3] mm/hmm: Fix bad subpage pointer in try_to_unmap_one

2019-07-16 Thread John Hubbard
On 7/16/19 5:14 PM, Ralph Campbell wrote: > When migrating an anonymous private page to a ZONE_DEVICE private page, > the source page->mapping and page->index fields are copied to the > destination ZONE_DEVICE struct page and the page_mapcount() is increased. > This is so rmap_walk() can be used to

Re: [PATCH v7 2/3] KVM: vmx: Emulate MSR IA32_UMWAIT_CONTROL

2019-07-16 Thread Tao Xu
On 7/17/2019 9:17 AM, Tao Xu wrote: On 7/17/2019 12:03 AM, Eduardo Habkost wrote: On Fri, Jul 12, 2019 at 04:29:06PM +0800, Tao Xu wrote: UMWAIT and TPAUSE instructions use IA32_UMWAIT_CONTROL at MSR index E1H to determines the maximum time in TSC-quanta that the processor can reside in eithe

[PATCH] gve: replace kfree with kvfree

2019-07-16 Thread Chuhong Yuan
Variables allocated by kvzalloc should not be freed by kfree. Because they may be allocated by vmalloc. So we replace kfree with kvfree here. Signed-off-by: Chuhong Yuan --- drivers/net/ethernet/google/gve/gve_main.c | 22 +++--- drivers/net/ethernet/google/gve/gve_rx.c | 4 ++

Re: [GIT PULL] Btrfs updates for 5.3

2019-07-16 Thread pr-tracker-bot
The pull request you sent on Mon, 15 Jul 2019 10:57:01 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-5.3-tag has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/a18f8775419d3df282dd83efdb51c5a64d092f31 Thank you! -- Deet-doot-dot, I am a bot.

Re: [PATCH v7 4/5] x86/paravirt: Remove const mark from x86_hyper_xen_hvm variable

2019-07-16 Thread Zhenzhong Duan
On 2019/7/16 18:57, Juergen Gross wrote: On 11.07.19 14:02, Zhenzhong Duan wrote: .. as "nopv" support needs it to be changeable at boot up stage. Checkpatch report warning, so move variable declarations from hypervisor.c to hypervisor.h Signed-off-by: Zhenzhong Duan Cc: Boris Ostrovsky Cc

Re: [PATCH v5] net: netfilter: Fix rpfilter dropping vrf packets by mistake

2019-07-16 Thread linmiaohe
> On Tue, Jul 17, 2019 at 19:17:36PM +, Pablo wrote: > > On Tue, Jul 02, 2019 at 03:59:36AM +, Miaohe Lin wrote: > > When firewalld is enabled with ipv4/ipv6 rpfilter, vrf > > ipv4/ipv6 packets will be dropped. Vrf device will pass through > > netfilter hook twice. One with enslaved device

Re: [PATCH v3 3/5] locking/qspinlock: Introduce CNA into the slow path of qspinlock

2019-07-16 Thread Waiman Long
On 7/15/19 3:25 PM, Alex Kogan wrote: > +/* > + * Implement a NUMA-aware version of MCS (aka CNA, or compact NUMA-aware > lock). > + * > + * In CNA, spinning threads are organized in two queues, a main queue for > + * threads running on the same node as the current lock holder, and a > + * seconda

Re: [PATCH V5 11/18] clk: tegra210: Add support for Tegra210 clocks

2019-07-16 Thread Sowjanya Komatineni
On 7/16/19 3:06 PM, Sowjanya Komatineni wrote: On 7/16/19 3:00 PM, Dmitry Osipenko wrote: 17.07.2019 0:35, Sowjanya Komatineni пишет: On 7/16/19 2:21 PM, Dmitry Osipenko wrote: 17.07.2019 0:12, Sowjanya Komatineni пишет: On 7/16/19 1:47 PM, Dmitry Osipenko wrote: 16.07.2019 22:26, Sowjany

Re: [PATCH 2/2] mm,memory_hotplug: Fix shrink_{zone,node}_span

2019-07-16 Thread Dan Williams
On Mon, Jul 15, 2019 at 2:24 PM Oscar Salvador wrote: > > On Mon, 2019-07-15 at 21:41 +0530, Aneesh Kumar K.V wrote: > > Oscar Salvador writes: > > > > > Since [1], shrink_{zone,node}_span work on PAGES_PER_SUBSECTION > > > granularity. > > > The problem is that deactivation of the section occurs

[PATCH v4] mmc: host: sdhci-sprd: Fix the incorrect soft reset operation when runtime resuming

2019-07-16 Thread Baolin Wang
In sdhci_runtime_resume_host() function, we will always do software reset for all, which will cause Spreadtrum host controller work abnormally after resuming. Thus for Spreadtrum platform that will not power down the SD/eMMC card during runtime suspend, we should not do software reset for all. To

Re: [PATCH] scsi: libfc: fix null pointer dereference on a null lport

2019-07-16 Thread Martin K. Petersen
Colin, > Currently if lport is null then the null lport pointer is dereference > when printing out debug via the FC_LPORT_DB macro. Fix this by using > the more generic FC_LIBFC_DBG debug macro instead that does not use > lport. Applied to 5.3/scsi-fixes, thanks! -- Martin K. Petersen Or

Re: [PATCH V5 11/18] clk: tegra210: Add support for Tegra210 clocks

2019-07-16 Thread Sowjanya Komatineni
On 7/16/19 7:18 PM, Sowjanya Komatineni wrote: On 7/16/19 3:06 PM, Sowjanya Komatineni wrote: On 7/16/19 3:00 PM, Dmitry Osipenko wrote: 17.07.2019 0:35, Sowjanya Komatineni пишет: On 7/16/19 2:21 PM, Dmitry Osipenko wrote: 17.07.2019 0:12, Sowjanya Komatineni пишет: On 7/16/19 1:47 PM,

[PATCH 1/2] mmc: sdhci: Add PLL Enable support to internal clock setup

2019-07-16 Thread Ben Chuang
The GL9750 and GL9755 chipsets, and possibly others, require PLL Enable setup as part of the internal clock setup as described in 3.2.1 Internal Clock Setup Sequence of SD Host Controller Simplified Specification Version 4.20. This changes the timeouts to the new specification of 150ms for each st

[PATCH 2/2] mmc: sdhci: sdhci-pci-core: Add Genesis Logic GL975x support

2019-07-16 Thread Ben Chuang
Add support for the GL9750 and GL9755 chipsets. Signed-off-by: Ben Chuang Co-developed-by: Michael K Johnson Signed-off-by: Michael K Johnson --- drivers/mmc/host/sdhci-gli.h | 27 drivers/mmc/host/sdhci-pci-core.c | 220 ++ drivers/mmc/host/sdhci-pci.h

Re: [PATCH -next] scsi: lpfc: Remove unnecessary null check before kfree

2019-07-16 Thread Martin K. Petersen
YueHaibing, > A null check before a kfree is redundant, so remove it. > This is detected by coccinelle. Applied to 5.4/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v1] scsi: ufs: change msleep to usleep_range

2019-07-16 Thread Martin K. Petersen
Bean, > This patch is to change msleep() to usleep_range() based on > Documentation/timers/timers-howto.txt. It suggests using > usleep_range() for small msec(1ms - 20ms) since msleep() will often > sleep longer than desired value. Applied to 5.4/scsi-queue, thanks! -- Martin K. Petersen

Re: [PATCH] opp: Return genpd virtual devices from dev_pm_opp_attach_genpd()

2019-07-16 Thread Viresh Kumar
On 16-07-19, 12:43, Niklas Cassel wrote: > On Mon, Jul 08, 2019 at 11:30:11AM +0530, Viresh Kumar wrote: > > The cpufreq drivers don't need to do runtime PM operations on the > > virtual devices returned by dev_pm_domain_attach_by_name() and so the > > virtual devices weren't shared with the caller

Re: [kbuild:kbuild 5/19] drivers/atm/eni.o: warning: objtool: eni_init_one()+0xe42: indirect call found in RETPOLINE build

2019-07-16 Thread Masahiro Yamada
On Wed, Jul 17, 2019 at 1:20 AM Josh Poimboeuf wrote: > > On Tue, Jul 16, 2019 at 07:42:49AM -0500, Seth Forshee wrote: > > On Tue, Jul 16, 2019 at 03:57:24PM +0900, Masahiro Yamada wrote: > > > (+ Josh Poimboeuf) > > > > > > On Tue, Jul 16, 2019 at 8:44 AM kbuild test robot wrote: > > > > > > >

[PATCH] KVM: x86/vPMU: reset pmc->counter to 0 for pmu fixed_counters

2019-07-16 Thread Like Xu
To avoid semantic inconsistency, the fixed_counters in Intel vPMU need to be reset to 0 in intel_pmu_reset() as gp_counters does. Signed-off-by: Like Xu --- arch/x86/kvm/vmx/pmu_intel.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/arch/x86/kvm/vmx/pmu_intel.c b

Re: [PATCH v3] virtio_pmem: fix sparse warning

2019-07-16 Thread Dan Williams
On Fri, Jul 12, 2019 at 7:11 AM Michael S. Tsirkin wrote: > > On Fri, Jul 12, 2019 at 10:46:10AM +0530, Pankaj Gupta wrote: > > This patch fixes below sparse warning related to __virtio > > type in virtio pmem driver. This is reported by Intel test > > bot on linux-next tree. > > > > nd_virtio.c:5

Re: [RFC PATCH 2/3] sched: change scheduler to give preference to soft affinity CPUs

2019-07-16 Thread Subhra Mazumdar
On 7/2/19 10:58 PM, Peter Zijlstra wrote: On Wed, Jun 26, 2019 at 03:47:17PM -0700, subhra mazumdar wrote: The soft affinity CPUs present in the cpumask cpus_preferred is used by the scheduler in two levels of search. First is in determining wake affine which choses the LLC domain and secondly

Re: [PATCH] skbuff: fix compilation warnings in skb_dump()

2019-07-16 Thread Joe Perches
On Tue, 2019-07-16 at 17:04 +0200, Willem de Bruijn wrote: > On Tue, Jul 16, 2019 at 4:56 PM Qian Cai wrote: > > Fix them by using the proper types, and also fix some checkpatch > > warnings by using pr_info(). > > > > WARNING: printk() should include KERN_ facility level > > + prin

Re: properly communicate queue limits to the DMA layer v2

2019-07-16 Thread Martin K. Petersen
Christoph, > I think all the patches on the block side went into 5.2, but it's been > a while, so I might misremember.. I checked my notes and the reason I held them back was that I was waiting for a response from Broadcom wrt. the megaraid segment size limitation. However, given that mpt3sas

Re: [PATCH 2/3 v3] ARM: dts: aspeed: Add SGPIO driver

2019-07-16 Thread Andrew Jeffery
Hello Hongwei, Please send patches and feedback on prior iterations separately. Please send the output of `git format-patch ...`directly; format-patch spits the patch out in email form ready to go and can be fed straight to `git send-email`. On Wed, 17 Jul 2019, at 06:54, Hongwei Zhang wrote: >

Re: [PATCH v7 4/5] x86/paravirt: Remove const mark from x86_hyper_xen_hvm variable

2019-07-16 Thread Juergen Gross
On 17.07.19 04:09, Zhenzhong Duan wrote: On 2019/7/16 18:57, Juergen Gross wrote: On 11.07.19 14:02, Zhenzhong Duan wrote: .. as "nopv" support needs it to be changeable at boot up stage. Checkpatch report warning, so move variable declarations from hypervisor.c to hypervisor.h Signed-off-by

[PATCH] acpica: fix -Wnull-pointer-arithmetic warnings

2019-07-16 Thread Qian Cai
Clang generate quite a few of those warnings. drivers/acpi/scan.c:759:28: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic] status = acpi_get_handle(ACPI_ROOT_OBJECT, obj->string.pointer,

Re: [PATCH] dax: Fix missed PMD wakeups

2019-07-16 Thread Dan Williams
On Fri, Jul 12, 2019 at 2:14 AM Jan Kara wrote: > > On Thu 11-07-19 08:25:50, Matthew Wilcox wrote: > > On Thu, Jul 11, 2019 at 07:13:50AM -0700, Matthew Wilcox wrote: > > > However, the XA_RETRY_ENTRY might be a good choice. It doesn't normally > > > appear in an XArray (it may appear if you're

Re: [PATCH 2/3 v3] dt-bindings: gpio: aspeed: Add SGPIO support

2019-07-16 Thread Andrew Jeffery
Hello Hongwei, On Wed, 17 Jul 2019, at 07:18, Hongwei Zhang wrote: > Add bindings to support SGPIO on AST2400 or AST2500. > > Signed-off-by: Hongwei Zhang > --- > .../devicetree/bindings/gpio/sgpio-aspeed.txt | 55 > ++ > 1 file changed, 55 insertions(+) > create mode

Re: mmotm 2019-07-16-17-14 uploaded

2019-07-16 Thread Randy Dunlap
On 7/16/19 5:15 PM, a...@linux-foundation.org wrote: > The mm-of-the-moment snapshot 2019-07-16-17-14 has been uploaded to > >http://www.ozlabs.org/~akpm/mmotm/ > > mmotm-readme.txt says > > README for mm-of-the-moment: > > http://www.ozlabs.org/~akpm/mmotm/ > > This is a snapshot of my -m

Re: [PATCH V5 11/18] clk: tegra210: Add support for Tegra210 clocks

2019-07-16 Thread Dmitry Osipenko
В Tue, 16 Jul 2019 19:18:19 -0700 Sowjanya Komatineni пишет: > On 7/16/19 3:06 PM, Sowjanya Komatineni wrote: > > > > On 7/16/19 3:00 PM, Dmitry Osipenko wrote: > >> 17.07.2019 0:35, Sowjanya Komatineni пишет: > >>> On 7/16/19 2:21 PM, Dmitry Osipenko wrote: > 17.07.2019 0:12, Sowjanya

Re: mmotm 2019-07-16-17-14 uploaded

2019-07-16 Thread Randy Dunlap
On 7/16/19 8:50 PM, Randy Dunlap wrote: > On 7/16/19 5:15 PM, a...@linux-foundation.org wrote: >> The mm-of-the-moment snapshot 2019-07-16-17-14 has been uploaded to >> >>http://www.ozlabs.org/~akpm/mmotm/ >> >> mmotm-readme.txt says >> >> README for mm-of-the-moment: >> >> http://www.ozlabs.or

[PATCH v7] cpufreq/pasemi: fix an use-after-free in pas_cpufreq_cpu_init()

2019-07-16 Thread Wen Yang
The cpu variable is still being used in the of_get_property() call after the of_node_put() call, which may result in use-after-free. Fixes: a9acc26b75f6 ("cpufreq/pasemi: fix possible object reference leak") Signed-off-by: Wen Yang Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: Michael Ellerman

Re: [PATCH v2 1/2] dt-bindings: mmc: Document Aspeed SD controller

2019-07-16 Thread Andrew Jeffery
On Wed, 17 Jul 2019, at 00:27, Rob Herring wrote: > On Mon, Jul 15, 2019 at 6:36 PM Andrew Jeffery wrote: > > > > > > > > On Tue, 16 Jul 2019, at 07:47, Rob Herring wrote: > > > On Thu, Jul 11, 2019 at 9:32 PM Andrew Jeffery wrote: > > > > > > > > The ASPEED SD/SDIO/eMMC controller exposes two

Re: [PATCH V5 11/18] clk: tegra210: Add support for Tegra210 clocks

2019-07-16 Thread Sowjanya Komatineni
On 7/16/19 8:54 PM, Dmitry Osipenko wrote: В Tue, 16 Jul 2019 19:18:19 -0700 Sowjanya Komatineni пишет: On 7/16/19 3:06 PM, Sowjanya Komatineni wrote: On 7/16/19 3:00 PM, Dmitry Osipenko wrote: 17.07.2019 0:35, Sowjanya Komatineni пишет: On 7/16/19 2:21 PM, Dmitry Osipenko wrote: 17.07.2

<    1   2   3   4   5   6   7   >