Re: [PATCH v1 2/4] arm64: dts: qcom: msm8996: Fix QMP PHY #clock-cells

2018-12-03 Thread Stephen Boyd
Quoting Evan Green (2018-11-29 14:13:55) > Move #clock-cells into the child node and set it to 0 to conform to the > proper binding specification. > > Signed-off-by: Evan Green > --- Reviewed-by: Stephen Boyd

Re: [PATCH v1 3/4] arm64: dts: qcom: sdm845: Fix QMP PHY #clock-cells

2018-12-03 Thread Stephen Boyd
Quoting Evan Green (2018-11-29 14:13:56) > Move #clock-cells into the child node for instances of the qcom-qmp-phy > nodes, and set it to zero, in accordance with the proper bindings. PHYs > that don't provide clocks don't have #clock-cells, and so are left alone. > > Signed-off-by: Evan Green >

Re: [PATCH v1 4/4] phy: qcom-qmp: Expose provided clocks to DT

2018-12-03 Thread Stephen Boyd
Quoting Evan Green (2018-11-29 14:13:57) > Register a simple clock provider for the PHY pipe clock sources so that > device tree users can point at these clocks via phandles to the lane > nodes. > > Signed-off-by: Evan Green > --- Reviewed-by: Stephen Boyd

Re: [PATCH v7 2/4] clk: meson: add DT documentation for emmc clock controller

2018-12-03 Thread Stephen Boyd
Quoting Jianxin Pan (2018-11-15 04:18:30) > diff --git a/include/dt-bindings/clock/amlogic,mmc-clkc.h > b/include/dt-bindings/clock/amlogic,mmc-clkc.h > new file mode 100644 > index 000..162b949 > --- /dev/null > +++ b/include/dt-bindings/clock/amlogic,mmc-clkc.h > @@ -0,0 +1,17 @@ > +/* SPDX-

[PATCH v2] clocksource/arm_arch_timer: fix a lockdep warning

2018-12-03 Thread Qian Cai
Booting this Huawei TaiShan 2280 arm64 server generated this lockdep warning. [0.00] lockdep_assert_cpus_held+0x50/0x60 [0.00] static_key_enable_cpuslocked+0x30/0xe8 [0.00] arch_timer_check_ool_workaround+0x128/0x2d0 [0.00] arch_timer_acpi_init+0x274/0x6ac [

[GIT PULL rcu/next] RCU commits for 4.21/5.0

2018-12-03 Thread Paul E. McKenney
Hello, Ingo, This pull request contains the following changes: 1. Convert RCU's BUG_ON() and similar calls to WARN_ON() and similar. http://lkml.kernel.org/r/2018193156.ga3...@linux.ibm.com 2. Replace of calls to RCU-bh and RCU-sched update-side functions to their

[PATCH v5 4/6] coresight: Use PMU driver configuration for sink selection

2018-12-03 Thread Mathieu Poirier
This patch uses the PMU driver configuration held in event::hw::drv_config to select a sink for each event that is created (the old sysFS way of working is kept around for backward compatibility). By proceeding in this way a sink can be used by multiple sessions without having to play games with e

[PATCH v5 3/6] perf/aux: Make perf_event accessible to setup_aux()

2018-12-03 Thread Mathieu Poirier
When pmu::setup_aux() is called the coresight PMU needs to know which sink to use for the session by looking up the information in the drv_config field of the hw_perf_event structure. As such simply replace the cpu information by the complete perf_event structure and change all affected customers.

[PATCH v5 0/6] perf: Add ioctl for PMU driver configuration

2018-12-03 Thread Mathieu Poirier
In the coresight world there can be more than one sink to aggregate trace data generated by CPUs, hence the need for users to select which one to use from the perf command line. Up until now sysfs was used to communicate sink information to the kernel but that was never the right way to proceed be

[PATCH v5 6/6] perf tools: Use ioctl function to send sink information to kernel

2018-12-03 Thread Mathieu Poirier
The communication of sink information for a trace session doesn't work when more than one CPU is involved in the scenario due to the static nature of sysfs. As such communicate the sink information to each event by using the an ioctl command. The information sent to the kernel is the component's

[PATCH 1/1] MAINTAINERS: platform/chrome: Add Enric as a maintainer

2018-12-03 Thread Benson Leung
Enric has volunteered to help me with maintaining chrome-platform as we change the development model toward strictly upstream-first for any chrome-platform and cros_ec driver. Signed-off-by: Benson Leung Signed-off-by: Enric Balletbo i Serra --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+)

[PATCH v5 1/6] perf: Introduce ioctl to communicate driver configuration to kernel

2018-12-03 Thread Mathieu Poirier
Adding a new IOCTL command to communicate PMU specific configuration to PMU kernel drivers. This can be anything a PMU might need for configuration that doesn't fit in the perf_event_attr structure, such as the CoreSight sink to use for a session. Signed-off-by: Mathieu Poirier --- include/uapi

[PATCH v5 2/6] perf/core: Use ioctl to communicate driver configuration to kernel

2018-12-03 Thread Mathieu Poirier
This patch adds the mechanic needed for user space to send PMU specific configuration to the kernel driver using an ioctl() command. That way events can keep track of options that don't fit in the perf_event_attr structure like the selection of a CoreSight sink to use for the session. Signed-off-

[PATCH v5 5/6] perf tools: Make perf_evsel accessible to PMU driver configuration code

2018-12-03 Thread Mathieu Poirier
Make the perf_evsel available to the PMU driver configuration code. That way function perf_evsel__run_ioctl() can be used from there and information pertaining to the perf_evsel_config_term is still available. Signed-off-by: Mathieu Poirier --- tools/perf/arch/arm/util/cs-etm.c | 22 +++

Re: [PATCH v6 2/2] PCI: amlogic: Add the Amlogic Meson PCIe controller driver

2018-12-03 Thread Bjorn Helgaas
On Mon, Dec 03, 2018 at 04:41:50PM +, Lorenzo Pieralisi wrote: > On Thu, Nov 22, 2018 at 04:53:54PM +0800, Hanjie Lin wrote: > > [...] > > > +static int meson_pcie_rd_own_conf(struct pcie_port *pp, int where, int > > size, > > + u32 *val) > > +{ > > + struct dw_

Re: [LKP] [mm] ac5b2c1891: vm-scalability.throughput -61.3% regression

2018-12-03 Thread David Rientjes
On Mon, 3 Dec 2018, Linus Torvalds wrote: > Side note: I think maybe people should just look at that whole > compaction logic for that block, because it doesn't make much sense to > me: > > /* > * Checks for costly allocations with __GFP_NORETRY, which >

CFS bandwidth control hits hard lockup warnings

2018-12-03 Thread Anton Blanchard
Hi, We are seeing hard lockup warnings caused by CFS bandwidth control code. The test case below fails almost immediately on a reasonably large (144 thread) POWER9 guest with: watchdog: CPU 80 Hard LOCKUP watchdog: CPU 80 TB:1134131922788, last heartbeat TB:1133207948315 (1804ms ago) Modules link

[PATCH memory-model 0/3] Updates to the formal memory model

2018-12-03 Thread Paul E. McKenney
Hello, Ingo! This series contains updates to the Linux kernel's formal memory model in tools/memory-model. These patches are ready for inclusion into -tip. 1. Model smp_mb__after_unlock_lock(), courtesy of Andrea Parri. 2. Add scripts to check github litmus tests. 3. Make script

[PATCH memory-model 3/3] EXP tools/memory-model: Make scripts take "-j" abbreviation for "--jobs"

2018-12-03 Thread Paul E. McKenney
From: "Paul E. McKenney" The "--jobs" argument to the litmus-test scripts is similar to the "-jN" argument to "make", so this commit allows the "-jN" form as well. While in the area, it also prohibits the various forms of "-j0". Suggested-by: Alan Stern Signed-off-by: Paul E. McKenney --- to

Re: [PATCH v5 1/2] dt-bindings: clk: meson-g12a: Add G12A EE Clock Bindings

2018-12-03 Thread Rob Herring
On Thu, Nov 29, 2018 at 09:41:56PM +0800, Jian Hu wrote: > Add new clock controller compatible and dt-bingdings headers > for the Everything-Else domain of the g12a SoC > > Signed-off-by: Jian Hu > --- > .../bindings/clock/amlogic,gxbb-clkc.txt | 1 + > include/dt-bindings/clock/g12a-

[PATCH memory-model 2/3] EXP tools/memory-model: Add scripts to check github litmus tests

2018-12-03 Thread Paul E. McKenney
From: "Paul E. McKenney" The https://github.com/paulmckrcu/litmus repository contains a large number of C-language litmus tests that include "Result:" comments predicting the verification result. This commit adds a number of scripts that run tests on these litmus tests: checkghlitmus.sh:

Re: [PATCH] x86/boot: clear rsdp address in boot_params for broken loaders

2018-12-03 Thread hpa
On December 3, 2018 2:38:11 AM PST, Juergen Gross wrote: >In case a broken boot loader doesn't clear its struct boot_params clear >rsdp_addr in sanitize_boot_params(). > >This fixes commit e6e094e053af75 ("x86/acpi, x86/boot: Take RSDP >address from boot params if available") e.g. for the case of

[PATCH memory-model 1/3] tools/memory-model: Model smp_mb__after_unlock_lock()

2018-12-03 Thread Paul E. McKenney
From: Andrea Parri >From the header comment for smp_mb__after_unlock_lock(): "Place this after a lock-acquisition primitive to guarantee that an UNLOCK+LOCK pair acts as a full barrier. This guarantee applies if the UNLOCK and LOCK are executed by the same CPU or if the UNLOCK and LO

RE: [PATCH v7 01/10] usb: gadget: udc: Add timer support for usb requests

2018-12-03 Thread Alan Stern
On Mon, 3 Dec 2018, Anurag Kumar Vulisha wrote: > >On Mon, 3 Dec 2018, Anurag Kumar Vulisha wrote: > > > >> >First of all, if some sort of deadlock causes a transfer to fail to > >> >complete, the host is expected to cancel and restart it. Not the > >> >gadget. > >> > > >> > >> Thanks for spendin

Re: [PATCH v11 1/2] dt-bindings: cpufreq: Introduce QCOM CPUFREQ Firmware bindings

2018-12-03 Thread Rob Herring
On Sun, Dec 02, 2018 at 09:25:02AM +0530, Taniya Das wrote: > Add QCOM cpufreq firmware device bindings for Qualcomm Technology Inc's > SoCs. This is required for managing the cpu frequency transitions which are > controlled by the hardware engine. > > Signed-off-by: Taniya Das > --- > .../bindi

WARNING in userfaultfd_ioctl

2018-12-03 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:d8f190ee836a Merge branch 'akpm' (patches from Andrew) git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=13d5f29340 kernel config: https://syzkaller.appspot.com/x/.config?x=4602730af4f872ef dashboar

Re: [PATCH 2/2] Input: omap-keypad: Fix idle configration to not block SoC idle states

2018-12-03 Thread Tony Lindgren
Hi, * Dmitry Torokhov [181203 19:24]: > On Sun, Dec 02, 2018 at 05:29:33PM -0800, Tony Lindgren wrote: ... > > Note that we now must also disable OMAP4_DEF_IRQENABLE_LONGKEY as it > > should not be used together with debounce according to the TRM. The above statement is no longer true, it's left

Re: [PATCH v1 4/4] phy: qcom-qmp: Expose provided clocks to DT

2018-12-03 Thread Evan Green
On Mon, Dec 3, 2018 at 2:38 PM Stephen Boyd wrote: > > Quoting Evan Green (2018-11-29 14:13:57) > > Register a simple clock provider for the PHY pipe clock sources so that > > device tree users can point at these clocks via phandles to the lane > > nodes. > > > > Signed-off-by: Evan Green > > ---

Re: [PATCH memory-model 0/3] Updates to the formal memory model

2018-12-03 Thread Akira Yokosawa
On 2018/12/03 15:04:11 -0800, Paul E. McKenney wrote: > Hello, Ingo! > > This series contains updates to the Linux kernel's formal memory model > in tools/memory-model. These patches are ready for inclusion into -tip. > > 1.Model smp_mb__after_unlock_lock(), courtesy of Andrea Parri. > > 2.

Re: overlayfs access checks on underlying layers

2018-12-03 Thread Paul Moore
On Thu, Nov 29, 2018 at 5:22 PM Daniel Walsh wrote: > On 11/29/18 2:47 PM, Miklos Szeredi wrote: > > On Thu, Nov 29, 2018 at 5:14 PM Stephen Smalley wrote: > > > >> Possibly I misunderstood you, but I don't think we want to copy-up on > >> permission denial, as that would still allow the mounter

[RFC PATCH 01/14] mm/hms: heterogeneous memory system (sysfs infrastructure)

2018-12-03 Thread jglisse
From: Jérôme Glisse System with complex memory topology needs a more versatile memory topology description than just node where a node is a collection of memory and CPU. In heterogeneous memory system we consider four types of object: - target: which is any kind of memory - initiator:

Re: [RFC v3 08/19] arch: um: add shim to trap to allow installing a fault catcher for tests

2018-12-03 Thread Brendan Higgins
On Thu, Nov 29, 2018 at 7:34 PM Luis Chamberlain wrote: > > On Wed, Nov 28, 2018 at 11:36:25AM -0800, Brendan Higgins wrote: > > diff --git a/arch/um/kernel/trap.c b/arch/um/kernel/trap.c > > index cced829460427..bf90e678b3d71 100644 > > --- a/arch/um/kernel/trap.c > > +++ b/arch/um/kernel/trap.c

[RFC PATCH 00/14] Heterogeneous Memory System (HMS) and hbind()

2018-12-03 Thread jglisse
From: Jérôme Glisse Heterogeneous memory system are becoming more and more the norm, in those system there is not only the main system memory for each node, but also device memory and|or memory hierarchy to consider. Device memory can comes from a device like GPU, FPGA, ... or from a memory only

Re: [PATCH v4 1/8] clk: clkdev/of_clk - add managed lookup and provider registrations

2018-12-03 Thread Stephen Boyd
Quoting Matti Vaittinen (2018-11-30 02:50:22) > Hello Stephen, > > Thanks a bunch for taking the time and reviewing this! > > On Fri, Nov 30, 2018 at 12:54:10AM -0800, Stephen Boyd wrote: > > Quoting Matti Vaittinen (2018-11-13 03:55:58) > > > With MFD devices the clk properties may be contained

[RFC PATCH 02/14] mm/hms: heterogenenous memory system (HMS) documentation

2018-12-03 Thread jglisse
From: Jérôme Glisse Add documentation to what is HMS and what it is for (see patch content). Signed-off-by: Jérôme Glisse Cc: Rafael J. Wysocki Cc: Ross Zwisler Cc: Dan Williams Cc: Dave Hansen Cc: Haggai Eran Cc: Balbir Singh Cc: Aneesh Kumar K.V Cc: Benjamin Herrenschmidt Cc: Felix Ku

[RFC PATCH 03/14] mm/hms: add target memory to heterogeneous memory system infrastructure

2018-12-03 Thread jglisse
From: Jérôme Glisse A target is some kind of memory, it can be regular main memory or some more specialize memory like CPU's HBM (High Bandwidth Memory) or some device's memory. Some target memory might not be accessible by all initiators (anything that can trigger memory access). For instance s

[RFC PATCH 11/14] mm/hbind: add bind command to heterogeneous memory policy

2018-12-03 Thread jglisse
From: Jérôme Glisse This patch add bind command to hbind() ioctl, this allow to bind a range of virtual address to given list of target memory. New memory allocated in the range will try to use memory from the target memory list. Note that this patch does not modify existing page fault path and

[RFC PATCH 04/14] mm/hms: add initiator to heterogeneous memory system infrastructure

2018-12-03 Thread jglisse
From: Jérôme Glisse An initiator is anything that can initiate memory access, either a CPU or a device. Here CPUs and devices are treated as equals. See HMS Documentation/vm/hms.txt for further detail.. Signed-off-by: Jérôme Glisse Cc: Rafael J. Wysocki Cc: Ross Zwisler Cc: Dan Williams Cc:

Fwd: [Bug 201517] New: pcieport 0000:00:03.1: AER: Corrected error received: 0000:00:00.0

2018-12-03 Thread Bjorn Helgaas
[Forwarding this to linux-pci since nobody really monitors the bugzilla] Possibly the same issue reported here: https://bugzilla.kernel.org/show_bug.cgi?id=109691 https://bugzilla.kernel.org/show_bug.cgi?id=111601 https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1588428/ https://lore.

[RFC PATCH 06/14] mm/hms: add bridge to heterogeneous memory system infrastructure

2018-12-03 Thread jglisse
From: Jérôme Glisse A bridge connect two links with each others and apply only to listed initiators. With links, this allows to describe any kind of system topology ie any kind of directed graph. Moreover with bridges the userspace can choose to use different bridges to load balance bandwidth us

[RFC PATCH 07/14] mm/hms: register main memory with heterogenenous memory system

2018-12-03 Thread jglisse
From: Jérôme Glisse Register main memory as target under HMS scheme. Memory is registered per node (one target device per node). We also create a default link to connect main memory and CPU that are in the same node. For details see Documentation/vm/hms.rst. This is done to allow application to

[RFC PATCH 10/14] mm/hbind: add heterogeneous memory policy tracking infrastructure

2018-12-03 Thread jglisse
From: Jérôme Glisse This patch add infrastructure to track heterogeneous memory policy within the kernel. Policy are defined over range of virtual address of a process and attach to the correspond mm_struct. User can reset to default policy for range of virtual address using hbind() default comm

[RFC PATCH 09/14] mm/hms: hbind() for heterogeneous memory system (aka mbind() for HMS)

2018-12-03 Thread jglisse
From: Jérôme Glisse With the advance of heterogeneous computing and the new kind of memory topology that are now becoming more widespread (CPU HBM, persistent memory, ...). We no longer just have a flat memory topology inside a numa node. Instead there is a hierarchy of memory for instance HBM fo

[RFC PATCH 12/14] mm/hbind: add migrate command to hbind() ioctl

2018-12-03 Thread jglisse
From: Jérôme Glisse This patch add migrate commands to hbind() ioctl, user space can use this commands to migrate a range of virtual address to list of target memory. This does not change the policy for the range, it also ignores any of the existing policy range, it does not changes the policy f

[RFC PATCH 08/14] mm/hms: register main CPUs with heterogenenous memory system

2018-12-03 Thread jglisse
From: Jérôme Glisse Register CPUs as initiator under HMS scheme. CPUs are registered per node (one initiator device per node per CPU). We also add the CPU to the node default link so it is connected to main memory for the node. For details see Documentation/vm/hms.rst. Signed-off-by: Jérôme Glis

[RFC PATCH 13/14] drm/nouveau: register GPU under heterogeneous memory system

2018-12-03 Thread jglisse
From: Jérôme Glisse This register NVidia GPU under heterogeneous memory system so that one can use the GPU memory with new syscall like hbind() for compute work load. Signed-off-by: Jérôme Glisse --- drivers/gpu/drm/nouveau/Kbuild| 1 + drivers/gpu/drm/nouveau/nouveau_hms.c | 80 +

[RFC PATCH 05/14] mm/hms: add link to heterogeneous memory system infrastructure

2018-12-03 Thread jglisse
From: Jérôme Glisse A link connect initiators (CPUs or devices) and targets memory with each others. It does necessarily match one to one with a physical inter-connect ie a given physical inter-connect by be presented as multiple links or multiple physical inter-connect can be presented as just o

[RFC PATCH 14/14] test/hms: tests for heterogeneous memory system

2018-12-03 Thread jglisse
From: Jérôme Glisse Set of tests for heterogeneous memory system (migration, binding, ...) Signed-off-by: Jérôme Glisse --- tools/testing/hms/Makefile| 17 ++ tools/testing/hms/hbind-create-device-file.sh | 11 + tools/testing/hms/test-hms-migrate.c | 77 ++

Re: [RFC/RFT][PATCH v6] cpuidle: New timer events oriented governor for tickless systems

2018-12-03 Thread Rafael J. Wysocki
On Saturday, December 1, 2018 3:18:24 PM CET Giovanni Gherdovich wrote: > On Fri, 2018-11-23 at 11:35 +0100, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > [cut] > > > > [snip] > > [NOTE: the tables in this message are quite wide. If this doesn't get to you > properly formatted you

Re: [PATCH 2/2] dt-bindings: rtc: Move trivial RTCs to rtc.txt

2018-12-03 Thread Rob Herring
On Sun, Nov 11, 2018 at 08:31:14PM +0100, Alexandre Belloni wrote: > Move trivial RTCs to the rtc generic binding documentation as they all also > support at least 'start-year'. > > Signed-off-by: Alexandre Belloni > --- > Documentation/devicetree/bindings/rtc/rtc.txt | 34 +++ >

Re: [RFC/RFT][PATCH v6] cpuidle: New timer events oriented governor for tickless systems

2018-12-03 Thread Rafael J. Wysocki
On Friday, November 30, 2018 9:51:19 AM CET Rafael J. Wysocki wrote: > Hi Doug, > > On Fri, Nov 30, 2018 at 8:49 AM Doug Smythies wrote: > > > > Hi Rafael, > > > > On 2018.11.23 02:36 Rafael J. Wysocki wrote: > > > > ... [snip]... > > > > > +/** > > > + * teo_find_shallower_state - Find shallower

Re: [RFC v3 2/3] dt-bindings: sdm845-pinctrl: add wakeup interrupt parent for GPIO

2018-12-03 Thread Stephen Boyd
Quoting Lina Iyer (2018-11-30 10:33:17) > On Thu, Nov 29 2018 at 14:45 -0700, Lina Iyer wrote: > >On Wed, Nov 28 2018 at 17:25 -0700, Bjorn Andersson wrote: > >>On Wed 28 Nov 09:39 PST 2018, Lina Iyer wrote: > >> > >>>On Tue, Nov 27 2018 at 14:45 -0700, Stephen Boyd wrote: > Quoting Lina Iyer

Re: [PATCH] power: reset: gpio-poweroff: add ability to specific active and inactive delays

2018-12-03 Thread Rob Herring
On Sun, 11 Nov 2018 22:45:38 +0100, Heiko Stuebner wrote: > From: Heiko Stuebner > > Similar to gpio-reset allow to specify active and inactive delays > while keeping the 100ms defaults that were used previously all the time. > > The dt-properties are named the same as in gpio-reset but get an "

[patch 0/2 for-4.20] mm, thp: fix remote access and allocation regressions

2018-12-03 Thread David Rientjes
This fixes a 13.9% of remote memory access regression and 40% remote memory allocation regression on Haswell when the local node is fragmented for hugepage sized pages and memory is being faulted with either the thp defrag setting of "always" or has been madvised with MADV_HUGEPAGE. The usecase th

[patch 2/2 for-4.20] mm, thp: always fault memory with __GFP_NORETRY

2018-12-03 Thread David Rientjes
If memory compaction initially fails to free a hugepage, reclaiming and retrying compaction is more likely to be harmful rather than beneficial. For reclaim, it is unlikely that the pages reclaimed will form contiguous memory the size of a hugepage without unnecessarily reclaiming a lot of memory

[patch 1/2 for-4.20] mm, thp: restore node-local hugepage allocations

2018-12-03 Thread David Rientjes
This is a full revert of ac5b2c18911f ("mm: thp: relax __GFP_THISNODE for MADV_HUGEPAGE mappings") and a partial revert of 89c83fb539f9 ("mm, thp: consolidate THP gfp handling into alloc_hugepage_direct_gfpmask"). By not setting __GFP_THISNODE, applications can allocate remote hugepages when the l

Re: [PATCH memory-model 0/3] Updates to the formal memory model

2018-12-03 Thread Paul E. McKenney
On Tue, Dec 04, 2018 at 08:28:03AM +0900, Akira Yokosawa wrote: > On 2018/12/03 15:04:11 -0800, Paul E. McKenney wrote: > > Hello, Ingo! > > > > This series contains updates to the Linux kernel's formal memory model > > in tools/memory-model. These patches are ready for inclusion into -tip. > >

Re: [PATCH 1/3] dt-bindings: soc: qcom: Add AOSS QMP binding

2018-12-03 Thread Rob Herring
On Mon, Nov 12, 2018 at 12:05:55AM -0800, Bjorn Andersson wrote: > Add binding for the QMP based side-channel communication mechanism to > the AOSS, which is used to control resources not exposed through the > RPMh interface. > > Signed-off-by: Bjorn Andersson > --- > .../bindings/soc/qcom/qcom,

Re: [RFC/RFT][PATCH v6] cpuidle: New timer events oriented governor for tickless systems

2018-12-03 Thread Rafael J. Wysocki
On Thursday, November 29, 2018 12:20:07 AM CET Doug Smythies wrote: > On 2018.11.23 02:36 Rafael J. Wysocki wrote: > > v5 -> v6: > * Avoid applying poll_time_limit to non-polling idle states by mistake. > * Use idle duration measured by the governor for everything (as it likely is >more accu

Re: [PATCH] arm64: dts: qcom: msm8998: Fix compatible of scm node

2018-12-03 Thread Stephen Boyd
Quoting Bjorn Andersson (2018-11-29 22:56:55) > The scm binding and driver was updated to rely on the fallback to the > default qcom,scm for any modern SoC and as such both are required. Add > the default compatible to make the scm instance probe. > > Fixes: d850156a226a ("arm64: dts: qcom: msm899

Re: [PATCH v11 1/2] dt-bindings: cpufreq: Introduce QCOM CPUFREQ Firmware bindings

2018-12-03 Thread Stephen Boyd
Quoting Rob Herring (2018-12-03 15:09:07) > On Sun, Dec 02, 2018 at 09:25:02AM +0530, Taniya Das wrote: > > Add QCOM cpufreq firmware device bindings for Qualcomm Technology Inc's > > SoCs. This is required for managing the cpu frequency transitions which are > > controlled by the hardware engine.

Re: [PATCH v1 2/2] mtd: spi-nor: add NPCM FIU controller driver

2018-12-03 Thread kbuild test robot
Hi Tomer, I love your patch! Yet something to improve: [auto build test ERROR on mtd/spi-nor/next] [also build test ERROR on v4.20-rc5 next-20181203] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

Re: [PATCH v9 2/4] seccomp: switch system call argument type to void *

2018-12-03 Thread Paul Moore
On Mon, Dec 3, 2018 at 12:01 AM Serge E. Hallyn wrote: > On Sun, Dec 02, 2018 at 08:28:25PM -0700, Tycho Andersen wrote: > > The const qualifier causes problems for any code that wants to write to the > > third argument of the seccomp syscall, as we will do in a future patch in > > this series. >

Re: [PATCH 2/2] dt-bindings: rtc: Move trivial RTCs to rtc.txt

2018-12-03 Thread Alexandre Belloni
On 03/12/2018 17:45:58-0600, Rob Herring wrote: > On Sun, Nov 11, 2018 at 08:31:14PM +0100, Alexandre Belloni wrote: > > Move trivial RTCs to the rtc generic binding documentation as they all also > > support at least 'start-year'. > > > > Signed-off-by: Alexandre Belloni > > --- > > Documentati

Re: [PATCH v9 3/4] seccomp: add a return code to trap to userspace

2018-12-03 Thread Serge E. Hallyn
On Mon, Dec 03, 2018 at 08:52:11AM -0700, Tycho Andersen wrote: > On Sun, Dec 02, 2018 at 11:26:50PM -0600, Serge E. Hallyn wrote: > > On Sun, Dec 02, 2018 at 08:28:26PM -0700, Tycho Andersen wrote: > > > +struct seccomp_knotif { > > > + /* The struct pid of the task whose filter triggered the noti

Re: [Bug] SD card reader in Acer Aspire S5 broken in 4.20-rc

2018-12-03 Thread Bjorn Helgaas
On Wed, Nov 28, 2018 at 02:05:21PM -0600, Bjorn Helgaas wrote: > On Wed, Nov 28, 2018 at 6:13 AM Rafael J. Wysocki wrote: > > On Tuesday, November 27, 2018 9:25:14 PM CET Bjorn Helgaas wrote: > > > On Mon, Nov 26, 2018 at 11:37:20PM +0100, Rafael J. Wysocki wrote: > > > > On Monday, November 26, 2

[PATCH 0/2] put_user_page*(): start converting the call sites

2018-12-03 Thread john . hubbard
From: John Hubbard Hi, Summary: I'd like these two patches to go into the next convenient cycle. I *think* that means 4.21. Details At the Linux Plumbers Conference, we talked about this approach [1], and the primary lingering concern was over performance. Tom Talpey helped me through a much m

[PATCH 1/2] mm: introduce put_user_page*(), placeholder versions

2018-12-03 Thread john . hubbard
From: John Hubbard Introduces put_user_page(), which simply calls put_page(). This provides a way to update all get_user_pages*() callers, so that they call put_user_page(), instead of put_page(). Also introduces put_user_pages(), and a few dirty/locked variations, as a replacement for release_p

[PATCH 2/2] infiniband/mm: convert put_page() to put_user_page*()

2018-12-03 Thread john . hubbard
From: John Hubbard For infiniband code that retains pages via get_user_pages*(), release those pages via the new put_user_page(), or put_user_pages*(), instead of put_page() This is a tiny part of the second step of fixing the problem described in [1]. The steps are: 1) Provide put_user_page*()

[PATCH] perf, tools: Support srccode output

2018-12-03 Thread Andi Kleen
From: Andi Kleen When looking at PT or brstackinsn traces with perf script it can be very useful to see the source code. This adds a simple facility to print them with perf script, if the information is available through dwarf % perf record ... % perf script -F insn,ip,sym,srccode ...

Re: [PATCH] power: reset: gpio-poweroff: add ability to specific active and inactive delays

2018-12-03 Thread Moritz Fischer
On Mon, Dec 3, 2018 at 3:49 PM Rob Herring wrote: > > On Sun, 11 Nov 2018 22:45:38 +0100, Heiko Stuebner wrote: > > From: Heiko Stuebner > > > > Similar to gpio-reset allow to specify active and inactive delays > > while keeping the 100ms defaults that were used previously all the time. > > > > T

[PATCH v2 04/24] lockdep tests: Run lockdep tests a second time under Valgrind

2018-12-03 Thread Bart Van Assche
This improves test coverage. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- tools/lib/lockdep/run_tests.sh | 14 ++ 1 file changed, 14 insertions(+) diff --git a/tools/lib/lockdep/run_tests.sh b/tools/lib/lockdep/run_tests.sh index bc36178

[PATCH v2 00/24] locking/lockdep: Add support for dynamic keys

2018-12-03 Thread Bart Van Assche
Hi Ingo and Peter, A known shortcoming of the current lockdep implementation is that it requires lock keys to be allocated statically. This forces certain unrelated synchronization objects to share keys and this key sharing can cause false positive deadlock reports. This patch series adds support

[PATCH v2 14/24] locking/lockdep: Make zap_class() remove all matching lock order entries

2018-12-03 Thread Bart Van Assche
Make sure that all lock order entries that refer to a class are removed from the list_entries[] array when a kernel module is unloaded. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- include/linux/lockdep.h | 1 + kernel/locking/lockdep.c | 17 ++

[PATCH v2 08/24] locking/lockdep: Declare local symbols static

2018-12-03 Thread Bart Van Assche
This patch avoids that sparse complains about a missing declaration for the lock_classes array. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/locking/lockdep.c b/ke

[PATCH v2 12/24] locking/lockdep: Make concurrent lockdep_reset_lock() calls safe

2018-12-03 Thread Bart Van Assche
Since zap_class() removes items from the all_lock_classes list and the classhash_table, protect all zap_class() calls with the graph lock. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v2 02/24] lockdep tests: Fix shellcheck warnings

2018-12-03 Thread Bart Van Assche
Use find instead of ls to avoid splitting filenames that contain spaces. Use rm -f instead of if ... then rm ...; fi. This patch addresses all shellcheck complaints about the run_tests.sh shell script. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- too

[PATCH v2 05/24] liblockdep: Rename "trywlock" into "trywrlock"

2018-12-03 Thread Bart Van Assche
This patch avoids that the following compiler warning is reported while compiling the lockdep unit tests: include/liblockdep/rwlock.h: In function 'liblockdep_pthread_rwlock_trywlock': include/liblockdep/rwlock.h:66:9: warning: implicit declaration of function 'pthread_rwlock_trywlock'; did you m

[PATCH v2 23/24] kernel/workqueue: Use dynamic lockdep keys for workqueues

2018-12-03 Thread Bart Van Assche
Commit 87915adc3f0a ("workqueue: re-add lockdep dependencies for flushing") improved deadlock checking in the workqueue implementation. Unfortunately that patch also introduced a few false positive lockdep complaints. This patch suppresses these false positives by allocating the workqueue mutex loc

[PATCH v2 21/24] locking/lockdep: Verify whether lock objects are small enough to be used as class keys

2018-12-03 Thread Bart Van Assche
Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 9 + 1 file changed, 9 insertions(+) diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index c936fce5b9d7..b4772e5fc176 100644 --- a/kernel/locking/lockdep

[PATCH v2 24/24] lockdep tests: Test dynamic key registration

2018-12-03 Thread Bart Van Assche
Make sure that the lockdep_register_key() and lockdep_unregister_key() code is tested when running the lockdep tests. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- tools/lib/lockdep/include/liblockdep/common.h | 2 ++ tools/lib/lockdep/include/libloc

[PATCH v2 20/24] locking/lockdep: Introduce __lockdep_free_key_range()

2018-12-03 Thread Bart Van Assche
This patch does not change any functionality but makes the next patch in this series easier to read. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 27 +-- 1 file changed, 17 insertions(+), 10 deletion

[PATCH v2 22/24] locking/lockdep: Add support for dynamic keys

2018-12-03 Thread Bart Van Assche
A shortcoming of the current lockdep implementation is that it requires lock keys to be allocated statically. That forces certain lock objects to share lock keys. Since lock dependency analysis groups lock objects per key sharing lock keys can cause false positive lockdep reports. Make it possible

[PATCH v2 19/24] locking/lockdep: Check data structure consistency

2018-12-03 Thread Bart Van Assche
Debugging lockdep data structure inconsistencies is challenging. Add disabled code that verifies data structure consistency at runtime. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 147 ++

[PATCH v2 18/24] locking/lockdep: Reuse list entries that are no longer in use

2018-12-03 Thread Bart Van Assche
Instead of abandoning elements of list_entries[] that are no longer in use, make alloc_list_entry() reuse array elements that have been freed. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 27 --- 1 f

[PATCH v2 17/24] locking/lockdep: Free lock classes that are no longer in use

2018-12-03 Thread Bart Van Assche
Instead of leaving lock classes that are no longer in use in the lock_classes array, reuse entries from that array that are no longer in use. Maintain a linked list of free lock classes with list head 'free_lock_class'. Initialize that list from inside register_lock_class() instead of from inside l

[PATCH v2 16/24] locking/lockdep: Retain the class key and name while freeing a lock class

2018-12-03 Thread Bart Van Assche
The next patch in this series uses the class name in code that detects lock class use-after-free. Hence retain the class name for lock classes that are being freed. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 4 +--- 1 fil

[PATCH v2 15/24] locking/lockdep: Reorder struct lock_class members

2018-12-03 Thread Bart Van Assche
This patch does not change any functionality but makes the patch that frees lock classes that are no longer in use easier to read. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- include/linux/lockdep.h | 14 +++--- 1 file changed, 7 insertions(

[PATCH v2 13/24] locking/lockdep: Stop using RCU primitives to access all_lock_classes

2018-12-03 Thread Bart Van Assche
Due to the previous patch all code that accesses the 'all_lock_classes' list holds the graph lock. Hence use regular list primitives instead of their RCU variants to access this list. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockde

[PATCH v2 10/24] locking/lockdep: Introduce lock_class_cache_is_registered()

2018-12-03 Thread Bart Van Assche
This patch does not change any functionality but makes the lockdep_reset_lock() function easier to read. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 50 1 file changed, 30 insertion

[PATCH v2 09/24] locking/lockdep: Inline __lockdep_init_map()

2018-12-03 Thread Bart Van Assche
Since the function __lockdep_init_map() only has one caller, inline it into its caller. This patch does not change any functionality. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 8 +--- 1 file changed, 1 insertion(+),

[PATCH v2 07/24] lockdep tests: Test the lockdep_reset_lock() implementation

2018-12-03 Thread Bart Van Assche
This patch makes sure that the lockdep_reset_lock() function gets tested. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- tools/lib/lockdep/include/liblockdep/common.h | 1 + tools/lib/lockdep/include/liblockdep/mutex.h | 1 + tools/lib/lockdep/tests/A

[PATCH v2 01/24] lockdep tests: Display compiler warning and error messages

2018-12-03 Thread Bart Van Assche
If compilation of liblockdep fails, display an error message and exit immediately. Display compiler warning and error messages that are generated while building a test. Only run a test if compilation succeeded. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche

[PATCH v2 06/24] liblockdep: Add dummy print_irqtrace_events() implementation

2018-12-03 Thread Bart Van Assche
This patch avoids that linking against liblockdep fails due to no print_irqtrace_events() definition being available. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- tools/lib/lockdep/lockdep.c | 5 + 1 file changed, 5 insertions(+) diff --git a/to

[PATCH v2 11/24] locking/lockdep: Remove a superfluous INIT_LIST_HEAD() statement

2018-12-03 Thread Bart Van Assche
Initializing a list entry just before it is passed to list_add_tail_rcu() is not necessary because list_add_tail_rcu() overwrites the next and prev pointers anyway. Hence remove the INIT_LIST_HEAD() statement. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche

[PATCH v2 03/24] lockdep tests: Improve testing accuracy

2018-12-03 Thread Bart Van Assche
Instead of checking whether the tests produced any output, check the output itself. This patch avoids that e.g. debug output causes the message "PASSED!" to be reported for failed tests. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- tools/lib/lockdep/

Re: [PATCH] coresight: cpu-debug: Support for CA73 CPUs

2018-12-03 Thread leo . yan
On Mon, Dec 03, 2018 at 10:34:07AM -0700, Mathieu Poirier wrote: > On Thu, 29 Nov 2018 at 18:22, Leo Yan wrote: > > > > This patch is to add the AMBA device ID for CA73 CPU, so that CPU debug > > module can be initialized successfully when a SoC contain CA73 CPUs. > > > > This patch has been verif

Re: [PATCH] i3c: Rename dw-i3c-master.c into i3c-master-dw.c

2018-12-03 Thread vitor
Hi Boris, On 03/12/18 10:07, Boris Brezillon wrote: Hi Vitor, On Mon, 26 Nov 2018 09:45:14 +0100 Boris Brezillon wrote: Follow the naming scheme introduced by the Cadence driver to keep things consistent. Signed-off-by: Boris Brezillon --- drivers/i3c/master/Makefile

[PATCH] pstore/ram: Avoid NULL deref in ftrace merging failure path

2018-12-03 Thread Kees Cook
Given corruption in the ftrace records, it might be possible to allocate tmp_prz without assigning prz to it, but still marking it as needing to be freed, which would cause at least a NULL dereference. smatch warnings: fs/pstore/ram.c:340 ramoops_pstore_read() error: we previously assumed 'prz' c

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

2018-12-03 Thread Stephen Rothwell
sers") mlx5_get_send_wqe() is still used in drivers/infiniband/hw/mlx5/cq.c and declared in drivers/infiniband/hw/mlx5/mlx5_ib.h ... I have used the version of the rdma tree from next-20181203 for today. -- Cheers, Stephen Rothwell pgpro9F8bJwU6.pgp Description: OpenPGP digital signature

<    2   3   4   5   6   7   8   9   >