Re: [RFC PATCH] Randomization of address chosen by mmap.

2018-03-05 Thread Daniel Micay
On 5 March 2018 at 08:09, Ilya Smith wrote: > >> On 4 Mar 2018, at 23:56, Matthew Wilcox wrote: >> Thinking about this more ... >> >> - When you call munmap, if you pass in the same (addr, length) that were >> used for mmap, then it should unmap the guard pages as well (that >> wasn't part of

Re: [PATCH v6 05/20] firmware: arm_scmi: add scmi protocol bus to enumerate protocol devices

2018-03-05 Thread Jonathan Cameron
On Fri, 23 Feb 2018 16:23:35 + Sudeep Holla wrote: > The SCMI specification encompasses various protocols. However, not every > protocol has to be present on a given platform/implementation as not > every protocol is relevant for it. > > Furthermore, the platform chooses which protocols it e

Re: [PATCH] audit: add containerid support for IMA-audit

2018-03-05 Thread Mimi Zohar
On Mon, 2018-03-05 at 08:50 -0500, Richard Guy Briggs wrote: > On 2018-03-05 08:43, Mimi Zohar wrote: > > Hi Richard, > > > > This patch has been compiled, but not runtime tested. > > Ok, great, thank you. I assume you are offering this patch to be > included in this patchset? Yes, thank you.

Re: [PATCH 02/14] perf trace: Apply new perf_mmap__read_event() interface

2018-03-05 Thread Liang, Kan
On 3/2/2018 6:30 PM, Jiri Olsa wrote: On Thu, Mar 01, 2018 at 06:08:59PM -0500, kan.li...@linux.intel.com wrote: From: Kan Liang The perf trace still use the legacy interface. Apply the new perf_mmap__read_event() interface for perf trace. No functional change. Signed-off-by: Kan Liang -

Re: [PATCH v6 06/20] firmware: arm_scmi: add initial support for performance protocol

2018-03-05 Thread Jonathan Cameron
On Fri, 23 Feb 2018 16:23:36 + Sudeep Holla wrote: > The performance protocol is intended for the performance management of > group(s) of device(s) that run in the same performance domain. It > includes even the CPUs. A performance domain is defined by a set of > devices that always have to r

[PATCH 01/28] perf kallsyms: Fix the usage on the man page

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Sangwon Hong First, all man pages highlight only perf and subcommands except 'perf kallsyms', which includes the full usage. Fix it for commands to monopolize underlines. Second, options can be ommited when executing 'perf kallsyms', so add square brackets between . Signed-off-by: Sangwon

[PATCH 03/28] perf cgroup: Simplify arguments when tracking multiple events

2018-03-05 Thread Arnaldo Carvalho de Melo
From: weiping zhang When using -G with one cgroup and -e with multiple events, only the first event gets the correct cgroup setting, all events from the second onwards will track system-wide events. If the user wants to track multiple events for a specific cgroup, the user must give parameters l

[PATCH 0/6] Support for fsl-mc bus and its devices in SMMU

2018-03-05 Thread Nipun Gupta
This patchset defines IOMMU DT binding for fsl-mc bus and adds support in SMMU for fsl-mc bus. These patches - Define the new property 'iommu-parent' for fsl-mc bus (patch 1) - Integrates the fsl-mc bus with the SMMU using this IOMMU binding (patch 2,3) - Adds the dma-mapping support for

[PATCH 2/6] iommu: support iommu configuration for fsl-mc devices

2018-03-05 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- drivers/iommu/of_iommu.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/iommu/of_iommu.c b/drivers/iommu/of_iommu.c index 5c36a8b..cc2fb9c 100644 --- a/drivers/iommu/of_iommu.c +++ b/drivers/iommu/of_iommu.c @@ -24,6 +24,7 @@ #

[PATCH 20/28] perf test: Switch to new perf_mmap__read_event() interface for "keep tracking" test

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Kan Liang The perf test 'keep tracking' still use the legacy interface. No functional change. Committer testing: # perf test tracking 25: Use a dummy software event to keep tracking : Ok # Signed-off-by: Kan Liang Tested-by: Arnaldo Carvalho de Melo Cc: Andi Kleen Cc:

[PATCH 18/28] perf test: Switch to new perf_mmap__read_event() interface for bpf

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Kan Liang The perf test 'bpf' still use the legacy interface. No functional change. Committer notes: Tested with: # perf test bpf 39: BPF filter: 39.1: Basic BPF filtering : Ok 39.2: BPF pinning

[PATCH 4/6] bus: fsl-mc: remove dma ops setup from driver

2018-03-05 Thread Nipun Gupta
The dma setup for fsl-mc devices is being done from device_add() function. So, no need to call in mc bus driver. Signed-off-by: Nipun Gupta --- drivers/bus/fsl-mc/fsl-mc-bus.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/bus/fsl-mc/fsl-mc-bus.c b/drivers/bus/fs

[PATCH 22/28] perf test: Switch to new perf_mmap__read_event() interface for tp fields

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Kan Liang The perf test 'syscalls:sys_enter_openat event fields' still use the legacy interface. No functional change. Committer notes: Testing it: # perf test sys_enter_openat 15: syscalls:sys_enter_openat event fields: Ok # Signed-off-by: Kan Liang Tested-by: A

[PATCH 27/28] perf test: Switch to new perf_mmap__read_event() interface for task-exit

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Kan Liang The perf test 'task-exit' still use the legacy interface. No functional change. Committer notes: Testing it: # perf test exit 21: Number of exit events of a simple workload: Ok # Signed-off-by: Kan Liang Tested-by: Arnaldo Carvalho de Melo Cc: Andi Kleen

[PATCH 08/28] perf tests: Rename trace+probe_libc_inet_pton to record+probe_libc_inet_pton

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Because the test is no longer using perf trace but perf record instead. Signed-off-by: Jiri Olsa Tested-by: Arnaldo Carvalho de Melo Cc: Alexander Shishkin Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20180301165215.6780-2-jo...@kernel.

[PATCH 26/28] perf test: Switch to new perf_mmap__read_event() interface for switch-tracking

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Kan Liang The perf test 'switch-tracking' still use the legacy interface. No functional change. Committer testing: # perf test switch 32: Track with sched_switch : Ok # Signed-off-by: Kan Liang Tested-by: Arnaldo Carvalho de Melo Cc: Andi Kleen Cc:

[PATCH 28/28] perf mmap: Discard legacy interfaces for mmap read forward

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Kan Liang Discards legacy interfaces perf_evlist__mmap_read_forward(), perf_evlist__mmap_read() and perf_evlist__mmap_consume(). No tools use them. Signed-off-by: Kan Liang Cc: Andi Kleen Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/r/1519945751-37786-14-

[PATCH 25/28] perf test: Switch to new perf_mmap__read_event() interface for sw-clock

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Kan Liang The perf test 'sw-clock' still use the legacy interface. No functional change. Committer testing: # perf test clock 22: Software clock events period values : Ok # Signed-off-by: Kan Liang Tested-by: Arnaldo Carvalho de Melo Cc: Andi Kleen Cc: Jiri Ol

[PATCH 23/28] perf test: Switch to new perf_mmap__read_event() interface for perf-record

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Kan Liang The perf test 'perf-record' still use the legacy interface. No functional change. Committer notes: Testing it: # perf test PERF_RECORD 8: PERF_RECORD_* events & perf_sample fields : Ok # Signed-off-by: Kan Liang Tested-by: Arnaldo Carvalho de Melo Cc: And

[PATCH 24/28] perf test: Switch to new perf_mmap__read_event() interface for time-to-tsc

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Kan Liang The perf test 'time-to-tsc' still use the legacy interface. No functional change. Commiter notes: Testing it: # perf test tsc 57: Convert perf time to TSC : Ok # Signed-off-by: Kan Liang Tested-by: Arnaldo Carvalho de Melo Cc: Andi Kleen

[PATCH 21/28] perf test: Switch to new perf_mmap__read_event() interface for mmap-basic

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Kan Liang The perf test 'mmap-basic' still use the legacy interface. No functional change. Committer notes: Testing it: # perf test "mmap interface" 4: Read samples using the mmap interface : Ok # Signed-off-by: Kan Liang Tested-by: Arnaldo Carvalho de Melo Cc:

[PATCH 19/28] perf test: Switch to new perf_mmap__read_event() interface for 'code reading' test

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Kan Liang The perf test 'object code reading' still use the legacy interface. No functional change. Committer notes: Testing: # perf test reading 23: Object code reading: Ok # Signed-off-by: Kan Liang Tested-by: Arnaldo Carvalho de Melo Cc: Andi Kleen Cc: Jiri Olsa Cc: Namhyu

[PATCH 17/28] perf python: Switch to new perf_mmap__read_event() interface

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Kan Liang The perf python binding still use the legacy interface. No functional change. Committer notes: Tested before and after with: [root@jouet perf]# export PYTHONPATH=/tmp/build/perf/python [root@jouet perf]# tools/perf/python/twatch.py cpu: 0, pid: 1183, tid: 6293 { type: ex

[PATCH 12/28] perf record: Throttle user defined frequencies to the maximum allowed

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo # perf record -F 20 sleep 1 warning: Maximum frequency rate (15,000 Hz) exceeded, throttling from 200,000 Hz to 15,000 Hz. The limit can be raised via /proc/sys/kernel/perf_event_max_sample_rate. The kernel will lower it when perf's i

[PATCH 16/28] perf trace: Switch to new perf_mmap__read_event() interface

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Kan Liang The 'perf trace' utility still use the legacy interface. Switch to the new perf_mmap__read_event() interface. No functional change. Signed-off-by: Kan Liang Tested-by: Arnaldo Carvalho de Melo Cc: Andi Kleen Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.k

Re: Simplifying our RCU models

2018-03-05 Thread Eric W. Biederman
Moving this discussion to a public list as discussing how to reduce the number of rcu variants does not make sense in private. We should have an archive of such discussions. Ingo Molnar writes: > * Paul E. McKenney wrote: > >> > So if people really want that low-cost RCU, and some people real

[PATCH 10/28] perf top browser: Show sample_freq in browser title line

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The '--stdio' 'perf top' UI shows it, so lets remove this UI difference and show it too in '--tui', will be useful for 'perf top --tui -F max'. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: https://lkml.kernel.org/n/tip-n3

[PATCH 15/28] perf kvm: Switch to new perf_mmap__read_event() interface

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Kan Liang The perf kvm still use the legacy interface. Switch to the new perf_mmap__read_event() interface for perf kvm. No functional change. Committer notes: Tested before and after running: # perf kvm stat record On a machine with a kvm guest, then used: # perf kvm stat report

[PATCH v3] arch/arm/Kconfig: default ARM_MODULE_PLTS to 'y'

2018-03-05 Thread Anders Roxell
While testing multi_v7_defconfig with config fragments that makes the kernel size to grow. The kernel fails to load simple modules, as reported by kselftest: [ 34.107620] test_printf: section 4 reloc 2 sym 'memset': relocation 28 out of range (0xbf046044 -> 0xc109f720) selftests: printf.sh [FAIL

Re: [RESEND PATCH v6 13/14] iommu/rockchip: Add runtime PM support

2018-03-05 Thread Tomasz Figa
On Mon, Mar 5, 2018 at 11:13 PM, Robin Murphy wrote: > On 05/03/18 13:49, Tomasz Figa wrote: > [...] >>> >>> @@ -518,7 +520,12 @@ static irqreturn_t rk_iommu_irq(int irq, void >>> *dev_id) >>> u32 int_status; >>> dma_addr_t iova; >>> irqreturn_t ret = IRQ_NONE; >>> -

Re: [PATCH v6 03/20] firmware: arm_scmi: add basic driver infrastructure for SCMI

2018-03-05 Thread Sudeep Holla
On 05/03/18 13:52, Jonathan Cameron wrote: > On Fri, 23 Feb 2018 16:23:33 + > Sudeep Holla wrote: > >> The SCMI is intended to allow OSPM to manage various functions that are >> provided by the hardware platform it is running on, including power and >> performance functions. SCMI provides t

[PATCH 13/28] perf annotate: Find 'call' instruction target symbol at parsing time

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo So that we do it just once, not everytime we press enter or -> on a 'call' instruction line. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: https://lkml.kernel.org/n/tip-uysyojl1e6nm94amzzzs0...@git.kernel.org Signed-off-by

[PATCH 14/28] perf record: Fix crash in pipe mode

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Currently we can crash perf record when running in pipe mode, like: $ perf record ls | perf report # To display the perf.data header info, please use --header/--header-only options. # perf: Segmentation fault Error: The - file has no samples! The callstack of the cr

[PATCH 6/6] dts: fsl-ls208x: updated DT with SMMU support for fsl-mc

2018-03-05 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi index f3a40af..1f15492 100644 --- a/arch/arm64/bo

Re: [PATCH v6 13/20] firmware: arm_scmi: refactor in preparation to support per-protocol channels

2018-03-05 Thread Jonathan Cameron
On Fri, 23 Feb 2018 16:23:43 + Sudeep Holla wrote: > In order to support per-protocol channels if available, we need to > factor out all the mailbox channel information(Tx/Rx payload and > channel handle) out of the main SCMI instance information structure. > > This patch refactors the exist

[PATCH 11/28] perf top: Allow asking for the maximum allowed sample rate

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Add the handy '-F max' shortcut, just introduced to 'perf record', to reading and using the kernel.perf_event_max_sample_rate value as the user supplied sampling frequency: Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: htt

[PATCH 09/28] perf record: Allow asking for the maximum allowed sample rate

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Add the handy '-F max' shortcut to reading and using the kernel.perf_event_max_sample_rate value as the user supplied sampling frequency: # perf record -F max sleep 1 info: Using a maximum frequency rate of 15,000 Hz [ perf record: Woken up 1 times to write d

[PATCH 5/6] dma-mapping: support fsl-mc bus

2018-03-05 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- drivers/base/dma-mapping.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/base/dma-mapping.c b/drivers/base/dma-mapping.c index 3b11835..2279c4d 100644 --- a/drivers/base/dma-mapping.c +++ b/drivers/base/dma-mapping.c @@ -334,6 +334,7 @@ void dma

[PATCH 07/28] perf tests: Switch trace+probe_libc_inet_pton to use record

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa There's a problem with relying on backtrace data from 'perf trace' the way the trace+probe_libc_inet_pton does. This test inserts uprobe within ping binary and checks that it gets its sample using 'perf trace'. It also checks it gets proper backtrace from sample and that's where

[PATCH 3/6] iommu: arm-smmu: Add support for the fsl-mc bus

2018-03-05 Thread Nipun Gupta
Implement bus specific support for the fsl-mc bus including registering arm_smmu_ops and bus specific device add operations. Signed-off-by: Nipun Gupta --- drivers/iommu/arm-smmu.c | 7 +++ drivers/iommu/iommu.c| 21 + include/linux/fsl/mc.h | 8 include/

[PATCH] ARM: dts: BCM5301X: add missing LEDs for Buffalo WZR-900DHP

2018-03-05 Thread musashino . open
From: INAGAKI Hiroshi Buffalo WZR-900DHP has 8 LEDs, but there is not LED definitions in the dts and cannot configure these LEDs. I Added missing LED definitions for WZR-900DHP. Signed-off-by: INAGAKI Hiroshi --- arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts | 73 +++ 1

[PATCH 06/28] perf annotate browser: Be more robust when drawing jump arrows

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo This first happened with a gcc function, _cpp_lex_token, that has the usual jumps: │1159e6c: ↓ jne115aa32 <_cpp_lex_token@@Base+0xf92> I.e. jumps to a label inside that function (_cpp_lex_token), and those works, but also this kind: │1159e8b: ↓ jnec469b

[PATCH 1/6] Docs: dt: add fsl-mc iommu-parent device-tree binding

2018-03-05 Thread Nipun Gupta
The existing IOMMU bindings cannot be used to specify the relationship between fsl-mc devices and IOMMUs. This patch adds a binding for mapping fsl-mc devices to IOMMUs, using a new iommu-parent property. Signed-off-by: Nipun Gupta --- .../devicetree/bindings/misc/fsl,qoriq-mc.txt | 31

[PATCH 04/28] perf top: Fix annoying fallback message on older kernels

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Kan Liang On older (e.g. v4.4) kernels, an annoying fallback message can be observed in 'perf top': ┌─Warning:──┐ │fall back to non-overwrite mode│ │ │ │ │ │Press any key

[PATCH 05/28] perf stat: Ignore error thread when enabling system-wide --per-thread

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Jin Yao If we execute 'perf stat --per-thread' with non-root account (even set kernel.perf_event_paranoid = -1 yet), it reports the error: jinyao@skl:~$ perf stat --per-thread Error: You may not have permission to collect system-wide stats. Consider tweaking /proc/sys/kernel/perf_

[PATCH v2 0/5] Migrate all TPM 2.0 commands to use struct tpm_buf

2018-03-05 Thread Jarkko Sakkinen
v2: * Fixed author information in the commit that fixes the self-test issue, removed '\n' from the log message and added the missing tested-by. (James: sincere apologies about this) * Removed the redundant "out of memory" log message from tpm2_shutdown(). * tpm_buf_destroy() was called before u

[PATCH v2 4/5] tpm: migrate tpm2_get_tpm_pt() to use struct tpm_buf

2018-03-05 Thread Jarkko Sakkinen
In order to make struct tpm_buf the first class object for constructing TPM commands, migrate tpm2_get_tpm_pt() to use it. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm2-cmd.c | 63 + 1 file changed, 23 insertions(+), 40 deletions(-) diff --

[PATCH v2 2/5] tpm: migrate tpm2_shutdown() to use struct tpm_buf

2018-03-05 Thread Jarkko Sakkinen
In order to make struct tpm_buf the first class object for constructing TPM commands, migrate tpm2_shutdown() to use it. In addition, removed the klog entry when tpm_transmit_cmd() fails because tpm_tansmit_cmd() already prints an error message. Signed-off-by: Jarkko Sakkinen --- drivers/char/tp

[PATCH v2 5/5] tpm: migrate tpm2_get_random() to use struct tpm_buf

2018-03-05 Thread Jarkko Sakkinen
In order to make struct tpm_buf the first class object for constructing TPM commands, migrate tpm2_get_random() to use it. In addition, removed remaining references to struct tpm2_cmd. All of them use it to acquire the length of the response, which can be achieved by using tpm_buf_length(). Signed

[PATCH v2 3/5] tpm: migrate tpm2_probe() to use struct tpm_buf

2018-03-05 Thread Jarkko Sakkinen
In order to make struct tpm_buf the first class object for constructing TPM commands, migrate tpm2_probe() to use it. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm2-cmd.c | 27 +++ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/drivers/char/tpm/

Re: [PATCH v5 0/5] Add coupled regulators mechanism

2018-03-05 Thread Maciej Purski
voltage of an individual regulator is about to change, its suppliers are additionally locked. The current assumption is that an uncoupled regulator is a special case of a coupled one, so they should share a common voltage setting path. This series breaks has reached linux-next 20180305 and it bre

[PATCH v2 1/5] tpm: fix intermittent failure with self tests

2018-03-05 Thread Jarkko Sakkinen
From: James Bottomley My Nuvoton 6xx in a Dell XPS-13 has been intermittently failing to work (necessitating a reboot). The problem seems to be that the TPM gets into a state where the partial self-test doesn't return TPM_RC_SUCCESS (meaning all tests have run to completion), but instead returns

RE: regression: SCSI/SATA failure

2018-03-05 Thread David Laight
From: Thorsten Leemhuis > Hi! On 22.02.2018 15:57, Artem Bityutskiy wrote: > > On Thu, 2018-02-22 at 16:54 +0200, Artem Bityutskiy wrote: > >> one of our test box Skylake servers does not boot with v4.16-rcX. > >> Bisection lead us to this commit: > >> 84676c1f21e8 genirq/affinity: assign vectors t

Re: regression: SCSI/SATA failure

2018-03-05 Thread Artem Bityutskiy
Linux-Regression-ID: lr#15a115 On Thu, 2018-02-22 at 16:54 +0200, Artem Bityutskiy wrote: > Hi Christoph, > > one of our test box Skylake servers does not boot with v4.16-rcX. > Bisection lead us to this commit: > > 84676c1f21e8 genirq/affinity: assign vectors to all possible CPUs > > Reverting

Re: [PATCH v2 2/2] watchdog: Add Nuvoton NPCM watchdog driver

2018-03-05 Thread Guenter Roeck
Hi Joel, On 03/05/2018 03:45 AM, Joel Stanley wrote: The Nuvoton NPCM750 has a watchdog implemented as a single register inside the timer peripheral. This driver exposes that watchdog as a standard watchdog device with coarse timeout intervals, limited by the combination of prescaler and counte

Re: [PATCH v8 7/8] livepatch: Correctly handle atomic replace for not yet loaded modules

2018-03-05 Thread Josh Poimboeuf
On Mon, Mar 05, 2018 at 10:54:16AM +0100, Miroslav Benes wrote: > > I think this problem is contained to only replacement patches that need > > the nop-revert feature... if the replacement patch provides a new > > function definition, then it shouldn't be affected. > > > > Man, we need a regressio

[GIT PULL 00/28] perf/core improvements and fixes

2018-03-05 Thread Arnaldo Carvalho de Melo
he Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-4.17-20180305 for you to fetch changes up to 6afad54d2f0ddebacfcf3b829147d7fed8dab298: perf mmap: Discard legacy interfaces for mmap read forward (2018-0

[PATCH 02/28] perf stat: Use xyarray dimensions to iterate fds

2018-03-05 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Now that the xyarray stores the dimensions we can use those to iterate over the FDs for a evsel. Signed-off-by: Andi Kleen Acked-by: Jiri Olsa Link: http://lkml.kernel.org/r/20171006020029.13339-1-a...@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/bui

Re: [PATCH v6 13/20] firmware: arm_scmi: refactor in preparation to support per-protocol channels

2018-03-05 Thread Sudeep Holla
On 05/03/18 14:35, Jonathan Cameron wrote: > On Fri, 23 Feb 2018 16:23:43 + > Sudeep Holla wrote: > >> In order to support per-protocol channels if available, we need to >> factor out all the mailbox channel information(Tx/Rx payload and >> channel handle) out of the main SCMI instance info

Re: [PATCH v6 03/20] firmware: arm_scmi: add basic driver infrastructure for SCMI

2018-03-05 Thread Jonathan Cameron
> >> +/** > >> + * scmi_one_xfer_get() - Allocate one message > >> + * > >> + * @handle: SCMI entity handle > >> + * > >> + * Helper function which is used by various command functions that are > >> + * exposed to clients of this driver for allocating a message traffic > >> event. > >> + * > >>

Re: [PATCH] dump_stack: convert generic dump_stack into a weak symbol

2018-03-05 Thread Petr Mladek
On Mon 2018-03-05 14:37:42, Sergey Senozhatsky wrote: > We want to move dump_stack related functions out of printk C > code and consolidate them in lib/dump_stack file. The reason why > dump_stack_print_info()/etc ended up in printk.c was a "generic" > (dummy) lib dump_stack() function, which archs

Re: [PATCH v6] staging: typec: handle vendor defined part and modify drp toggling flow

2018-03-05 Thread Guenter Roeck
On 03/04/2018 08:16 PM, ShuFan Lee wrote: From: ShuFan Lee Handle vendor defined behavior in tcpci_init, tcpci_set_vconn, tcpci_start_drp_toggling and export tcpci_irq. More operations can be extended in tcpci_data if needed. According to TCPCI specification, 4.4.5.2 ROLE_CONTROL, TCPC shall n

[PATCH v3 2/8] scsi: hisi_sas: support the property of signal attenuation for v2 hw

2018-03-05 Thread John Garry
From: Xiaofei Tan The register SAS_PHY_CTRL is configured according to signal quality. The signal quality is calculated by signal attenuation of hardware physical link. It may be different for different PCB layout. So, in order to give better support to new board, this patch add support to readi

Re: [PATCH 02/14] perf trace: Apply new perf_mmap__read_event() interface

2018-03-05 Thread Liang, Kan
On 3/5/2018 8:46 AM, Arnaldo Carvalho de Melo wrote: Em Mon, Mar 05, 2018 at 10:03:39AM -0300, Arnaldo Carvalho de Melo escreveu: Em Sat, Mar 03, 2018 at 12:30:22AM +0100, Jiri Olsa escreveu: On Thu, Mar 01, 2018 at 06:08:59PM -0500, kan.li...@linux.intel.com wrote: From: Kan Liang The perf

[PATCH v3 1/8] dt-bindings: scsi: hisi_sas: add an property of signal attenuation

2018-03-05 Thread John Garry
From: Xiaofei Tan For some new boards with hip07 chipset we are required to set PHY config registers differently. The hw property which determines how to set these registers is in the PHY signal attenuation readings. This patch add an devicetree property, "hisilicon,signal-attenuation", which is

Re: [PATCH 3/3] fixdep: do not ignore kconfig.h

2018-03-05 Thread Masahiro Yamada
2018-03-01 4:17 GMT+09:00 Rasmus Villemoes : > kconfig.h was excluded from consideration by fixdep by > 6a5be57f0f00 (fixdep: fix extraneous dependencies) to avoid some false > positive hits > > (1) include/config/.h > (2) include/config/h.h > (3) include/config/foo.h > > (1) occurred because kconf

[PATCH v3 5/8] scsi: hisi_sas: increase timer expire of internal abort task

2018-03-05 Thread John Garry
From: Xiaofei Tan The current 110ms expiry time is not long enough for the internal abort task. The reason is that the internal abort task could be blocked in HW if the HW is retrying to set up link. The internal abort task will be executed only when the retry process finished. The maximum time

Re: [PATCH 07/34] x86/entry/32: Restore segments before int registers

2018-03-05 Thread Brian Gerst
On Mon, Mar 5, 2018 at 8:12 AM, Joerg Roedel wrote: > On Mon, Mar 05, 2018 at 04:17:45AM -0800, Linus Torvalds wrote: >> Restoring the segments can cause exceptions that need to be >> handled. With PTI enabled, we still need to be on kernel cr3 >> when the exception happens. For the cr

[PATCH v3 7/8] scsi: hisi_sas: fix return value of hisi_sas_task_prep()

2018-03-05 Thread John Garry
From: Xiaofei Tan It is an implicit regulation that error code that function returned should be negative. But hisi_sas_task_prep() doesn't follow this. This may cause problems in the upper layer code. For example, in sas_expander.c of libsas, smp_execute_task_sg() may return the number of bytes

[PATCH v3 8/8] scsi: hisi_sas: Code cleanup and minor bug fixes

2018-03-05 Thread John Garry
From: Xiang Chen The patch does some code cleanup and fixes some small bugs: - Correct return status of phy_up_v3_hw() - Add static for function phy_get_max_linkrate_v3_hw() - Change exception return status when no reset method - Change magic value to ts->stat in slot_complete_vx_hw() - Remove un

[PATCH v3 6/8] scsi: hisi_sas: remove unused variable hisi_sas_devices.running_req

2018-03-05 Thread John Garry
From: Xiang Chen The structure element hisi_sas_devices.running_req to count how many commands are active is in effect only ever written in the code, so remove it. Signed-off-by: Xiang Chen Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 1 - drivers/scsi/hisi_sas/hisi_

[PATCH v3 4/8] scsi: hisi_sas: fix the issue of setting linkrate register

2018-03-05 Thread John Garry
From: Xiaofei Tan It is not right to set the register PROG_PHY_LINK_RATE while PHY is still enabled. So if we want to change PHY linkrate, we need to disable PHY before setting the register PROG_PHY_LINK_RATE, and then start-up PHY. This patch is to fix this issue. Signed-off-by: Xiaofei Tan Si

Re: [PATCH] vsprintf: Make "null" pointer dereference more robust

2018-03-05 Thread Petr Mladek
On Fri 2018-03-02 16:17:34, Andy Shevchenko wrote: > On Fri, 2018-03-02 at 13:53 +0100, Petr Mladek wrote: > > %p has many modifiers where the pointer is dereferenced. An invalid > > pointer might cause kernel to crash silently. > > > > Note that printk() formats the string under logbuf_lock. Any

[PATCH v3 3/8] scsi: hisi_sas: fix the issue of link rate inconsistency

2018-03-05 Thread John Garry
From: Xiaofei Tan In sysfs, there are two files about minimum linkrate, and also two files for maximum linkrate. Take maximum linkrate example, maximum_linkrate_hw is read-only and indicated by the register HARD_PHY_LINKRATE, and maximum_linkrate is read-write and corresponding to the register PR

[PATCH v3 0/8] hisi_sas: support x6000 board and some misc changes

2018-03-05 Thread John Garry
This patchset primarily adds support for the Huawei x6000 board, which includes hip07 chipset. Unfortunately, due to some board layout differences with our development board, we need to set a PHY-related register differently for optimal signal quality. As such, a signal attenuation property is adde

Re: [PATCH 1/6] Docs: dt: add fsl-mc iommu-parent device-tree binding

2018-03-05 Thread Robin Murphy
On 05/03/18 14:29, Nipun Gupta wrote: The existing IOMMU bindings cannot be used to specify the relationship between fsl-mc devices and IOMMUs. This patch adds a binding for mapping fsl-mc devices to IOMMUs, using a new iommu-parent property. Given that allowing "msi-parent" for #msi-cells > 1

[PATCH] mtdchar: fix usage of mtd_ooblayout_ecc()

2018-03-05 Thread OuYang ZhiZhong
Section was not properly computed. The value of OOB region definition is always ECC section 0 information in the OOB area, but we want to get all the ECC bytes information, so we should call mtd_ooblayout_ecc(mtd, section++, &oobregion) until it returns -ERANGE. This is fixed by using i instead of

Re: [PATCH v2 8/9] lib/vsprintf: Remove useless NULL checks

2018-03-05 Thread Petr Mladek
On Fri 2018-03-02 16:15:06, Andy Shevchenko wrote: > On Fri, 2018-03-02 at 13:51 +0100, Petr Mladek wrote: > > > BTW: I am not sure who is going to pass this patchset to Linus. > > If nobody is against, I could eventually do so via printk.git. > > Usually Andrew Morton takes care. > But perhaps i

Re: [PATCHv3] iommu/intel: Ratelimit each dmar fault printing

2018-03-05 Thread Dmitry Safonov
Hi Joerg, What do you think about v3? It looks like, I can solve my softlookups with just a bit more proper ratelimiting.. On Thu, 2018-02-15 at 19:17 +, Dmitry Safonov wrote: > There is a ratelimit for printing, but it's incremented each time the > cpu recives dmar fault interrupt. While one

RE: [PATCH 1/6] Docs: dt: add fsl-mc iommu-parent device-tree binding

2018-03-05 Thread Nipun Gupta
> -Original Message- > From: Robin Murphy [mailto:robin.mur...@arm.com] > Sent: Monday, March 05, 2018 20:23 > To: Nipun Gupta ; will.dea...@arm.com; > mark.rutl...@arm.com; catalin.mari...@arm.com > Cc: io...@lists.linux-foundation.org; robh...@kernel.org; h...@lst.de; > m.szyprow...@sam

[PATCH 0/2] Fix STi aliases property name

2018-03-05 Thread patrice.chotard
From: Patrice Chotard Since dtc v1.4.6-9-gaadd0b65c987, when compiling dtb with W=1 option, the following warnings are triggered : arch/arm/boot/dts/stih418-b2199.dtb: Warning (alias_paths): /aliases: aliases property name must include only lowercase and '-' arch/arm/boot/dts/stih407-b2120.

Re: [PATCH 1/2] kbuild: remove command line interface LDFLAGS_MODULE from makefiles.txt

2018-03-05 Thread Masahiro Yamada
2018-02-28 19:14 GMT+09:00 Masahiro Yamada : > Documentation/kbuild/makefiles.txt lists variables used in Makefile > whereas Documentation/kbuild/kbuild.txt describes user assignable > parameters given via environments or the command line. > > LDFLAGS_MODULE is a command line interface, so it shoul

[PATCH 2/2] tty: st-asc: Convert tty alias in lowercase

2018-03-05 Thread patrice.chotard
From: Patrice Chotard Since dtc v1.4.6-9-gaadd0b65c987, aliases property name must include only lowercase and '-'. After having converted all STi boards serial aliases in lowercase, st-asc driver need to be updated accordingly as tty aliases id is retrieved using of_alias_get_id(np, ASC_SERIAL_N

[PATCH 1/2] ARM: dts: STi: Fix aliases property name for STi boards

2018-03-05 Thread patrice.chotard
From: Patrice Chotard Since dtc v1.4.6-9-gaadd0b65c987, aliases property name must be lowercase only. This allows to fix following warnings when compiling dtb with W=1 option : arch/arm/boot/dts/stih418-b2199.dtb: Warning (alias_paths): /aliases: aliases property name must include only lowercas

Re: [PATCH 02/14] perf trace: Apply new perf_mmap__read_event() interface

2018-03-05 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 05, 2018 at 09:50:10AM -0500, Liang, Kan escreveu: > > > On 3/5/2018 8:46 AM, Arnaldo Carvalho de Melo wrote: > > Em Mon, Mar 05, 2018 at 10:03:39AM -0300, Arnaldo Carvalho de Melo escreveu: > > > I'm doing this, the argument is 'bool', so the value should be false or > > > true, even

Re: [PATCH v1 0/3] perf: expose thread context switch out event type to user space

2018-03-05 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 05, 2018 at 02:35:02PM +0300, Alexey Budankov escreveu: > > Here is a series of small patches that implement exposing type of > context-switch-out event as a part of PERF_RECORD_SWITCH[_CPU_WIDE] record. > > Introduced types of context-switch-out events assumed to be: > a) preempt: t

Warning from swake_up_all in 4.14.15-rt13 non-RT

2018-03-05 Thread Corey Minyard
Starting with the change 8a64547a07980f9d25e962a78c2e10ee82bdb742 fs/dcache: use swait_queue instead of waitqueue we are getting the following warning when running with PREEMPT__LL when inserting a USB drive.  This is on x86_64, 4.14.15-rt13.  It works fine with PREEMPT_RT. # [  155.604042

Re: [RFC V2 1/3] perf, tools: Support wildcards on pmu name in dynamic pmu events

2018-03-05 Thread Agustin Vega-Frias
On 2018-03-04 13:10, Jiri Olsa wrote: On Sun, Mar 04, 2018 at 09:12:45AM -0800, Andi Kleen wrote: > > +#include > > #include > > #include > > #include > > @@ -241,7 +242,7 @@ PE_NAME opt_event_config > > if (!strncmp(name, "uncore_", 7) && > >

Re: [PATCH 5/6] dma-mapping: support fsl-mc bus

2018-03-05 Thread Christoph Hellwig
We should not add any new hardocded busses here. Please mark them in OF/ACPI.

Re: [PATCH v1 18/19] arm: dts: mt7623: add MT7623A reference boards

2018-03-05 Thread Sean Wang
On Mon, 2018-03-05 at 08:10 -0600, Rob Herring wrote: > On Fri, Mar 2, 2018 at 8:15 PM, Sean Wang wrote: > > On Fri, 2018-03-02 at 09:45 -0600, Rob Herring wrote: > >> On Fri, Feb 23, 2018 at 06:16:38PM +0800, sean.w...@mediatek.com wrote: > >> > From: Sean Wang > >> > > >> > Add mt7623a-rfb.dtsi

Re: [PATCH v6] staging: typec: handle vendor defined part and modify drp toggling flow

2018-03-05 Thread 李書帆
Hi, 2018-03-05 22:49 GMT+08:00 Guenter Roeck : > On 03/04/2018 08:16 PM, ShuFan Lee wrote: >> >> From: ShuFan Lee >> >> Handle vendor defined behavior in tcpci_init, tcpci_set_vconn, >> tcpci_start_drp_toggling >> and export tcpci_irq. More operations can be extended in tcpci_data if >> needed. >

Re: [PATCH] vsprintf: Make "null" pointer dereference more robust

2018-03-05 Thread Rasmus Villemoes
On 2 March 2018 at 13:53, Petr Mladek wrote: > %p has many modifiers where the pointer is dereferenced. An invalid > pointer might cause kernel to crash silently. > > Note that printk() formats the string under logbuf_lock. Any recursive > printks are redirected to the printk_safe implementation a

Re: [PATCH v3] 8250-men-mcb: add support for 16z025 and 16z057

2018-03-05 Thread Andy Shevchenko
On Mon, Mar 5, 2018 at 10:22 AM, Michael Moese wrote: > Add support for two MEN UARTs (16z025 and 16z057) to the > 8250_men_mcb driver. > The 16z025 consists of up to four ports, the 16z057 has > exactly four ports. Apart from that, all of them share the > Port settings. > Changes to v2: > Added

Re: BUG: unable to handle kernel paging request in compat_copy_entries

2018-03-05 Thread Paolo Abeni
On Mon, 2018-03-05 at 00:21 -0800, syzbot wrote: > Hello, > > syzbot hit the following crash on upstream commit > 5fbdefcf685defd8bc5a8f37b17538d25c58d77a (Fri Mar 2 21:05:20 2018 +) > Merge branch 'parisc-4.16-1' of > git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux > > So

Re: [PATCH v2 1/1] HID: Logitech K290: Add driver for the Logitech K290 USB keyboard

2018-03-05 Thread kbuild test robot
Hi Florent, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on hid/for-next] [also build test WARNING on v4.16-rc4 next-20180305] [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

Re: [PATCH v3] 8250-men-mcb: add support for 16z025 and 16z057

2018-03-05 Thread Michael Moese
Hi, sorry.. my bad. Not my day today. I forgot to commit :/ I'll resend. On Mon, Mar 05, 2018 at 05:17:04PM +0200, Andy Shevchenko wrote: > On Mon, Mar 5, 2018 at 10:22 AM, Michael Moese wrote: > > Add support for two MEN UARTs (16z025 and 16z057) to the > > 8250_men_mcb driver. > > The 16z025 c

[PATCH v3] 8250-men-mcb: add support for 16z025 and 16z057

2018-03-05 Thread Michael Moese
Add support for two MEN UARTs (16z025 and 16z057) to the 8250_men_mcb driver. The 16z025 consists of up to four ports, the 16z057 has exactly four ports. Apart from that, all of them share the Port settings. Signed-off-by: Michael Moese Reported-by: Ben Turner Tested-by: Ben Turner --- Sorry f

Re: [PATCH] vsprintf: Make "null" pointer dereference more robust

2018-03-05 Thread Andy Shevchenko
On Mon, 2018-03-05 at 16:16 +0100, Rasmus Villemoes wrote: > On 2 March 2018 at 13:53, Petr Mladek wrote: > > - if (!ptr && *fmt != 'K' && *fmt != 'x') { > > + if ((unsigned long)ptr < PAGE_SIZE && *fmt != 'K' && *fmt != > > 'x') { > > ISTM that accidentally passing an ERR_PTR would

Re: [PATCH] arm64: dts: stratix10: enable i2c, add i2c periperals

2018-03-05 Thread Dinh Nguyen
Hi Alan, On 02/21/2018 02:25 PM, Alan Tull wrote: > Add clock for i2c > Enable i2c1 > Set the i2c bus speed to 100KHz > Add the following i2c peripherals > * ds1339 RTC > * 24c32 EEPROM > * max1619 temperature monitor > * ltc2497 ADC > * Add a fixed regulator for the ADC's Vref. > > This requir

Re: [PATCH v2 1/2] dmaengine: Introduce DW AXI DMAC driver

2018-03-05 Thread Eugeniy Paltsev
On Mon, 2018-02-26 at 18:42 +0200, Andy Shevchenko wrote: > On Mon, Feb 26, 2018 at 4:56 PM, Eugeniy Paltsev > wrote: > > +static int parse_device_properties(struct axi_dma_chip *chip) > > +{ > > + ret = device_property_read_u32(dev, "snps,dma-masters", &tmp); > > Why it has prefix? > > >

  1   2   3   4   5   6   7   8   9   10   >