Re: [PATCH] x86/mm/kaiser: avoid 32-bit/PAE build warning

2017-12-06 Thread Arnd Bergmann
On Wed, Dec 6, 2017 at 3:15 PM, Arnd Bergmann wrote: > This changes the type to u64 in the architecture-independent dummy, > and to pteval_t in the x86 specific portion that is used when KAISER > is enabled, ensuring that the flags can always fit. Unfortunately, > pteval_t is not provided by most

[PATCH] SoC: rockchip: disable clock on error

2017-12-06 Thread Stefan Potyra
Disable the clocks in rk_spdif_probe when an error occurs after one of the clocks has been enabled previously. Found by Linux Driver Verification project (linuxtesting.org). Fixes: f874b80e1571 ASoC: rockchip: Add rockchip SPDIF transceiver driver Signed-off-by: Stefan Potyra --- sound/soc/roc

[PATCH] scsi: fusion: clean up some indentations

2017-12-06 Thread Colin King
From: Colin Ian King There are several places where the source is not indented correctly with either too many or too few levels of intentation. Fix these. Signed-off-by: Colin Ian King --- drivers/message/fusion/mptbase.c | 57 1 file changed, 29 insert

Re: Checkpatch ignores spelling error by using -f

2017-12-06 Thread Rolf Evers-Fischer
On Wed, 6 Dec 2017, Joe Perches wrote: > On Wed, 2017-12-06 at 15:13 +0100, Rolf Evers-Fischer wrote: > > Hello, > > I've just checked the file drivers/tty/serial/8250/8250_omap.c, using > > checkpatch.pl, but I forgot the '-f' option (for file). > > > > Surprisingly the checkpatch script repo

[PATCH v4 net-next] net/tcp: trace all TCP/IP state transition with tcp_set_state tracepoint

2017-12-06 Thread Yafang Shao
The TCP/IP transition from TCP_LISTEN to TCP_SYN_RECV and some other transitions are not traced with tcp_set_state tracepoint. In order to trace the whole tcp lifespans, two helpers are introduced, void sk_set_state(struct sock *sk, int state); void sk_state_store(struct sock *sk, int newstate);

Re: [Intel-gfx] [PATCH v3 4/9] drm: Add some HDCP related #defines

2017-12-06 Thread Alex Deucher
On Tue, Dec 5, 2017 at 6:12 PM, Chris Wilson wrote: > Quoting Sean Paul (2017-12-05 05:15:03) >> In preparation for implementing HDCP in i915, add some HDCP related >> register offsets and defines. The dpcd register offsets will go in >> drm_dp_helper.h whereas the ddc offsets along with generic H

Re: [PATCH v2] Staging: pi433: fix brace coding style issues in pi433_if.c

2017-12-06 Thread Greg KH
On Mon, Dec 04, 2017 at 09:40:10PM +0100, Tomas Marek wrote: > This patch fix several brace on next line, braces not necessary, space > around =/<, and space before/after open/close parenthesis coding style > errors find by checkpatch in pi433_if.c. > > In addition, the interrupt routine DIO0_irq_

[PATCH] usb: dwc2: hcd: Fix host channel halt flow

2017-12-06 Thread Minas Harutyunyan
According databook in Buffer and External DMA mode non-split periodic channels can't be halted. Signed-off-by: Minas Harutyunyan --- drivers/usb/dwc2/hcd.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c index 614bb9603def.

Re: [PATCH] ACPI / GED: unregister interrupts during shutdown

2017-12-06 Thread Sinan Kaya
On 12/6/2017 8:37 AM, Rafael J. Wysocki wrote: > On Wed, Dec 6, 2017 at 2:24 PM, Sinan Kaya wrote: >> On 12/5/2017 5:18 PM, Rafael J. Wysocki wrote: >>> On Tue, Dec 5, 2017 at 10:01 PM, Sinan Kaya wrote: Some GED interrupts could be pending by the time we are doing a reboot. > > [cut] > >>

[PATCH] uio: Allow to take irq bottom-half into irq_handler with additional dt-binding

2017-12-06 Thread Andrey Zhizhikin
Certain Kernel preemption models are using threaded interrupt handlers, which is in general quite beneficial. However, threaded handlers introducing additional scheduler overhead, when the bottom-half thread should be woken up and scheduled for execution. This can result is additional latency, whic

Re: [PATCH] staging: pi433: rf69.c: Introduced define DEBUG_FUNC_ENTRY

2017-12-06 Thread Greg KH
On Sat, Dec 02, 2017 at 07:00:17PM +0200, Marcus Wolf wrote: > Am 02.12.2017 um 17:00 schrieb Greg KH: > > On Sat, Dec 02, 2017 at 01:45:50PM +0200, Marcus Wolf wrote: > > > Since dev_dbg already depends on define DEBUG, there was no sense, to > > > enclose > > > dev_dbg lines with #ifdef DEBUG. >

Re: [PATCH] staging: pi433: fix include asm/compat.h to linux/compat.h

2017-12-06 Thread Greg KH
On Wed, Nov 29, 2017 at 02:58:53PM -0200, Victor Carvalho wrote: > staging: pi433: fix include asm/compat.h to linux/compat.h That just repeats what you said in the subject line :( Please fix up and cc: the correct people as well. thanks, greg k-h

Re: [PATCH] [FIX] staging: pi433: fix last commit indentation

2017-12-06 Thread Greg KH
On Sun, Dec 03, 2017 at 01:52:43PM -0200, Victor Carvalho wrote: > fix indentation in commit: > > - 928150e1dbb8638f309493b7dc72d56c20896704 staging: pi433: fix coding style > in function rf69_set_rx_cfg() There is no such commit in the kernel tree :( Also, no need for [FIX] in the subject lin

[PATCH net-next] net: ethernet: ti: cpdma: correct error handling for chan create

2017-12-06 Thread Ivan Khoronzhuk
It's not correct to return NULL when that is actually an error and function returns errors in any other wrong case. In the same time, the cpsw driver and davinci emac doesn't check error case while creating channel and it can miss actual error. Correct this mess. Signed-off-by: Ivan Khoronzhuk --

Re: [PATCH 1/3] crypto: exynos - Support Exynos5250+ SoCs

2017-12-06 Thread Łukasz Stelmach
It was <2017-12-06 śro 15:05>, when Krzysztof Kozlowski wrote: > On Wed, Dec 6, 2017 at 2:42 PM, Łukasz Stelmach > wrote: >> It was <2017-12-05 wto 14:34>, when Krzysztof Kozlowski wrote: >>> On Tue, Dec 5, 2017 at 1:35 PM, Łukasz Stelmach >>> wrote: Add support for PRNG in Exynos5250+ SoC

Re: [PATCH] security: keys: remove redundant assignment to key_ref

2017-12-06 Thread Julia Lawall
On Wed, 6 Dec 2017, David Howells wrote: > James Morris wrote: > > > I think a general cleanup in that function to make all of these follow the > > pattern: > > > > if (something) { > > key_ref = ERR_PTR(-error); > > goto error; > > } > > > > rather than uncondit

[PATCH 02/36] perf test: Disable test cases 19 and 20 on s390x

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Thomas Richter The s390x CPU sampling and measurement facilities do not support perf events of type PERF_TYPE_BREAKPOINT. The test cases are executed and fail with -ENOENT due to missing hardware support. Disable the execution of both test cases based on a platform check. This is the same

Re: Checkpatch ignores spelling error by using -f

2017-12-06 Thread Joe Perches
On Wed, 2017-12-06 at 15:13 +0100, Rolf Evers-Fischer wrote: > Hello, > I've just checked the file drivers/tty/serial/8250/8250_omap.c, using > checkpatch.pl, but I forgot the '-f' option (for file). > > Surprisingly the checkpatch script reported a misspelling: > > "WARNING: 'additionaly' may b

Re: [PATCH V3] staging: pi433: rf69.c: Replace macros READ_REG and WRITE_REG with smarter functions

2017-12-06 Thread Greg KH
On Mon, Dec 04, 2017 at 11:45:16PM +0200, Marcus Wolf wrote: > To increase the readability of the register accesses, the abstraction > of the helpers was increased from simple read and write to set bit, > clear bit and read modify write bit. > > Annotation: This patch contains a lot of long lines

[PATCH 04/36] perf record: Synthesize thread map and cpu map

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Synthesize the per attr thread maps and cpu maps in 'perf record'. This allows code from 'perf stat' called from 'perf script' to access this information. Committer testing: Please see the PERF_RECORD_THREAD_MAP and PERF_RECORD_CPU_MAP records, added by this patch: $ perf r

Re: [PATCH 4.14 00/95] 4.14.4-stable review

2017-12-06 Thread Sumit Semwal
Hi Greg, On 5 December 2017 at 11:54, Greg Kroah-Hartman wrote: > On Mon, Dec 04, 2017 at 03:12:45PM -0600, Tom Gall wrote: >> >> >> > On Dec 4, 2017, at 9:59 AM, Greg Kroah-Hartman >> > wrote: >> > >> > This is the start of the stable review cycle for the 4.14.4 release. >> > There are 95 patc

[PATCH 07/36] perf report: Fix -D output for user metadata events

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The PERF_RECORD_USER_ events are synthesized by the tool to assist in processing the PERF_RECORD_ ones generated by the kernel, the printing of that information doesn't come with a perf_sample structure, so, when dumping the event fields using 'perf report -D' there

[PATCH 05/36] perf script: Allow computing 'perf stat' style metrics

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Add support for computing 'perf stat' style metrics in 'perf script'. When using leader sampling we can get metrics for each sampling period by computing formulas over the values of the different group members. This allows things like fine grained IPC tracking through sampling,

[PATCH 10/36] perf bench futex: Use cpumaps

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Davidlohr Bueso It was reported that the whole futex bench breaks when dealing with non-contiguously numbered cpus. $ echo 0 | sudo tee /sys/devices/system/cpu/cpu3/online $ ./perf bench futex all perf: pthread_create: Operation not permitted Run summary [PID 14934]: 7 threads, each

Re: [PATCH] security: keys: remove redundant assignment to key_ref

2017-12-06 Thread David Howells
James Morris wrote: > I think a general cleanup in that function to make all of these follow the > pattern: > > if (something) { > key_ref = ERR_PTR(-error); > goto error; > } > > rather than unconditionally setting the error first, would be better, but

[PATCH 08/36] perf intel-pt: Improve build messages for files that differ from the kernel

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Print file names of files that differ. For example, instead of: Warning: Intel PT: x86 instruction decoder differs from kernel print: Warning: Intel PT: x86 instruction decoder header at 'tools/perf/util/intel-pt-decoder/inat.h' differs from latest version at 'arch/x8

Re: linux-next: manual merge of the staging tree with the staging.current tree

2017-12-06 Thread Greg KH
On Mon, Dec 04, 2017 at 12:50:45PM +1100, Stephen Rothwell wrote: > Hi Greg, > > Today's linux-next merge of the staging tree got a conflict in: > > drivers/iio/adc/meson_saradc.c > > between commit: > > d85eed9f5763 ("iio: adc: meson-saradc: initialize the bandgap correctly on > older SoC

[PATCH 12/36] perf bench futex: Sync waker threads

2017-12-06 Thread Arnaldo Carvalho de Melo
From: James Yang Waker threads in the futex wake-parallel benchmark are started by a loop using pthread_create(). However, there is no synchronization for when the waker threads wake the waiting threads. Comparison of the waker threads' measurement timestamps show they are not all running concu

[PATCH 14/36] perf annotate: Fix objdump comment parsing for Intel mov dissassembly

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Thomas Richter The command 'perf annotate' parses the output of objdump and also investigates the comments produced by objdump. For example the output of objdump produces (on x86): 23eee: 4c 8b 3d 13 01 21 00 mov 0x210113(%rip),%r15 # 234008 and the funct

[PATCH 13/36] perf annotate: Fix unnecessary memory allocation for s390x

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Thomas Richter This patch fixes a bug introduced with commit d9f8dfa9baf9 ("perf annotate s390: Implement jump types for perf annotate"). 'perf annotate' displays annotated assembler output by reading output of command objdump and parsing the disassembled lines. For each shown mnemonic thi

Re: [PATCH] pci: provide pci_get_domain_bus_and_slot dummy helper

2017-12-06 Thread Sinan Kaya
On 12/6/2017 9:47 AM, Arnd Bergmann wrote: > On Wed, Dec 6, 2017 at 3:41 PM, Sinan Kaya wrote: >> On 12/6/2017 9:17 AM, Arnd Bergmann wrote: >> >> I thought Bjorn merged a similar patch yesterday with subject >> >> "[PATCH -next] pci: add function stub for pci_get_domain_bus_and_slot()" > > It wa

Re: [RFC PATCH 1/5] perf jevents: add support for pmu events vendor subdirectory

2017-12-06 Thread John Garry
On 06/12/2017 13:38, Jiri Olsa wrote: On Wed, Dec 06, 2017 at 12:13:15AM +0800, John Garry wrote: SNIP diff --git a/tools/perf/pmu-events/jevents.c b/tools/perf/pmu-events/jevents.c index b578aa2..a0d489e 100644 --- a/tools/perf/pmu-events/jevents.c +++ b/tools/perf/pmu-events/jevents.c @@ -58

[PATCH 17/36] perf thread_map: Add method to map all threads in the system

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Reusing the thread_map__new_by_uid() proc scanning already in place to return a map with all threads in the system. Based-on-a-patch-by: Jin Yao Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: Kan Liang Cc: Peter Zijlstra Link: https://lkml.kern

[PATCH 16/36] perf stat: Add rbtree node_delete op

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Jin Yao In current stat-shadow.c, the rbtree deleting is ignored. The patch adds the implementation to node_delete method of rblist. Signed-off-by: Jin Yao Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: Kan Liang Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1512

[PATCH 18/36] perf s390: Always build with -fPIC

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Hendrik Brueckner On s390, object files must be compiled with position-indepedent code in order to be incrementally linked or linked to shared libraries. Therefore, add -fPIC to the CFLAGS for s390 to ensure each object file is built properly. Reported-by: Jonathan Hermann Signed-off-by:

Re: [PATCH] pci: provide pci_get_domain_bus_and_slot dummy helper

2017-12-06 Thread Arnd Bergmann
On Wed, Dec 6, 2017 at 3:41 PM, Sinan Kaya wrote: > On 12/6/2017 9:17 AM, Arnd Bergmann wrote: > > I thought Bjorn merged a similar patch yesterday with subject > > "[PATCH -next] pci: add function stub for pci_get_domain_bus_and_slot()" It was probably just a bit too late to make it into today's

[PATCH -next v3 1/2] mtd: nand: toshiba: Retrieve ECC requirements from extended ID

2017-12-06 Thread KOBAYASHI Yoshitake
This patch enables support to read the ECC strength and size from the NAND flash using Toshiba Memory SLC NAND extended-ID. This patch is based on the information of the 6th ID byte of the Toshiba Memory SLC NAND. Signed-off-by: KOBAYASHI Yoshitake --- drivers/mtd/nand/nand_toshiba.c | 28 ++

[PATCH 22/36] perf vendor events arm64: Add ThunderX2 implementation defined pmu core events

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Ganapatrao Kulkarni This is not a full event list, but a short list of useful events. Signed-off-by: Ganapatrao Kulkarni Acked-by: Will Deacon Cc: Alexander Shishkin Cc: Catalin Marinas Cc: Ganapatrao Kulkarni Cc: Jayachandran C Cc: Jonathan Cameron Cc: Mark Rutland Cc: Peter Zijls

[PATCH 23/36] perf pmu: Add check for valid cpuid in perf_pmu__find_map()

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Ganapatrao Kulkarni On some platforms(arm/arm64) which uses cpus map to get corresponding cpuid string, cpuid can be NULL for PMUs other than CORE PMUs. Adding check for NULL cpuid in function perf_pmu__find_map to avoid segmentation fault. Signed-off-by: Ganapatrao Kulkarni Cc: Alexande

[PATCH 25/36] perf evlist: Remove 'overwrite' parameter from perf_evlist__mmap

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Wang Nan Now all perf_evlist__mmap's users doesn't set 'overwrite'. Remove it from arguments list. Signed-off-by: Wang Nan Acked-by: Namhyung Kim Cc: Jiri Olsa Cc: Kan Liang Link: http://lkml.kernel.org/r/20171203020044.81680-2-wangn...@huawei.com Signed-off-by: Arnaldo Carvalho de Mel

[PATCH] spi: sun4i: disable clocks in the remove function

2017-12-06 Thread Takuo Koguchi
mclk and hclk need to be disabled explicitly since pm_runtime_disable does not disable the clocks. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Takuo Koguchi --- drivers/spi/spi-sun4i.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/spi/spi-sun

[PATCH 27/36] perf evlist: Remove evlist->overwrite

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Wang Nan evlist->overwrite is set to false in all users. It can be removed. Signed-off-by: Wang Nan Acked-by: Namhyung Kim Cc: Jiri Olsa Cc: Kan Liang Link: http://lkml.kernel.org/r/20171203020044.81680-4-wangn...@huawei.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/buil

[PATCH 29/36] perf mmap: Remove overwrite and check_messup from mmap read

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Wang Nan All perf_mmap__read_forward() read from read-write ring buffer, so no need check_messup. Reading from backward ring buffer doesn't require check_messup because it never mess up. Cleanup arguments lists. Signed-off-by: Wang Nan Acked-by: Namhyung Kim Cc: Jiri Olsa Cc: Kan Liang

[PATCH 34/36] perf mmap: Fix perf backward recording

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Wang Nan 'perf record' backward recording doesn't work as we expected: it never overwrites when ring buffer gets full. Test: Run a busy python printing task background like this: while True: print 123 send SIGUSR2 to perf to capture snapshot, then: # ./perf record --overwrite -e

[PATCH 32/36] x86/asm: Allow again using asm.h when building for the 'bpf' clang target

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Up to f5caf621ee35 ("x86/asm: Fix inline asm call constraints for Clang") we were able to use x86 headers to build to the 'bpf' clang target, as done by the BPF code in tools/perf/. With that commit, we ended up with following failure for 'perf test LLVM', this is

[PATCH 36/36] perf tools: Rename 'backward' to 'overwrite' in evlist, mmap and record

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Wang Nan Remove the backward/forward concept to make it uniform with user interface (the '--overwrite' option). Signed-off-by: Wang Nan Acked-by: Namhyung Kim Cc: Jiri Olsa Cc: Kan Liang Cc: Mengting Zhang Link: http://lkml.kernel.org/r/20171204165107.95327-4-wangn...@huawei.com Signe

[PATCH 35/36] perf mmap: Don't discard prev in backward mode

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Wang Nan 'perf record' can switch its output data file. The new output should only store the data after switching. However, in overwrite backward mode, the new output still can have data from before switching. That also brings extra overhead. At the end of mmap_read(), the position of the

[PATCH 33/36] perf report: Set browser mode right before setup_browser()

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Seokho Song <0xdev...@gmail.com> There are codes that print messages to the screen between assignment of the use_browser variable and setup_browser(). But since the GUI browser is not initialized during that period, all messages fail to show if the user passed the --gtk option to perf as GT

[PATCH 31/36] perf vendor events: Use more flexible pattern matching for CPU identification for mapfile.csv

2017-12-06 Thread Arnaldo Carvalho de Melo
From: William Cohen The powerpc cpuid information includes chip revision information. Changes between chip revisions are usually minor bug fixes and usually do not affect the operation of the performance monitoring hardware. The original mapfile.csv matching requires enumerating every possible c

[PATCH 30/36] perf c2c: Add a tip about cacheline events

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Sangwon Hong Signed-off-by: Sangwon Hong Cc: Jiri Olsa Cc: Namhyung Kim Link: http://lkml.kernel.org/r/1512188201-14109-1-git-send-email-qpa...@gmail.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Documentation/tips.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/t

[PATCH 28/36] perf mmap: Remove overwrite from arguments list of perf_mmap__push

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Wang Nan 'overwrite' argument is always 'false'. Remove it from arguments list of perf_mmap__push(). Signed-off-by: Wang Nan Acked-by: Namhyung Kim Cc: Jiri Olsa Cc: Kan Liang Link: http://lkml.kernel.org/r/20171203020044.81680-5-wangn...@huawei.com Signed-off-by: Arnaldo Carvalho de M

[PATCH 21/36] perf pmu: Add helper function is_pmu_core to detect PMU CORE devices

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Ganapatrao Kulkarni On some platforms, PMU core devices sysfs name is not cpu. Adding function is_pmu_core to detect PMU core devices using core device specific hints in sysfs. For arm64 platforms, all core devices have file "cpus" in sysfs. Signed-off-by: Ganapatrao Kulkarni Tested-by:

[PATCH 24/36] perf tools: Fix up build in hardnened environments

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa On Fedora systems the perl and python CFLAGS/LDFLAGS include the hardened specs from redhat-rpm-config package. We apply them only for perl/python objects, which makes them not compatible with the rest of the objects and the build fails with: /usr/bin/ld: perf-in.o: relocation

[PATCH 26/36] perf evlist: Remove 'overwrite' parameter from perf_evlist__mmap_ex

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Wang Nan All users of perf_evlist__mmap_ex set !overwrite. Remove it from its arguments list. Signed-off-by: Wang Nan Acked-by: Namhyung Kim Cc: Jiri Olsa Cc: Kan Liang Link: http://lkml.kernel.org/r/20171203020044.81680-3-wangn...@huawei.com Signed-off-by: Arnaldo Carvalho de Melo --

[PATCH -next v3 2/2] mtd: nand: toshiba: Add support for Toshiba Memory BENAND (Built-in ECC NAND)

2017-12-06 Thread KOBAYASHI Yoshitake
This patch enables support for Toshiba Memory BENAND. This checks internal ECC status in read operation when using BENAND and selecting ECC mode as on-die. Signed-off-by: KOBAYASHI Yoshitake --- drivers/mtd/nand/nand_toshiba.c | 89 + 1 file changed, 89 in

[PATCH 20/36] perf tools arm64: Add support for get_cpuid_str function.

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Ganapatrao Kulkarni The get_cpuid_str function returns the MIDR string of the first online cpu from the range of cpus associated with the PMU CORE device. Signed-off-by: Ganapatrao Kulkarni Acked-by: Will Deacon Cc: Alexander Shishkin Cc: Catalin Marinas Cc: Ganapatrao Kulkarni Cc: Ja

[PATCH 19/36] perf pmu: Pass pmu as a parameter to get_cpuid_str()

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Ganapatrao Kulkarni The cpuid string will not be same on all CPUs on heterogeneous platforms like ARM's big.LITTLE, adding provision(using pmu->cpus) to find cpuid string from associated CPUs of PMU CORE device. Also optimise arguments to function pmu_add_cpu_aliases. Signed-off-by: Ganap

[PATCH 11/36] tools build feature: Check if pthread_barrier_t is available

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo As 'perf bench futex wake-parallel" will use this, which is not available in older systems such as versions of the android NDK used in my container build tests (r12b and r15c at the moment). Cc: Adrian Hunter Cc: David Ahern Cc: Davidlohr Bueso Cc: James Yang C

[PATCH 15/36] perf rblist: Create rblist__exit() function

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Jin Yao Currently we have a rblist__delete() which is used to delete a rblist. While rblist__delete() will free the pointer of rblist at the end. It's an inconvenience for the user to delete a rblist which is not allocated by something like malloc(). For example, the rblist is embedded in

[PATCH 09/36] Documentation: Add Arnaldo Melo to list of enforcement statement endorsers

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Add my name to the list. Signed-off-by: Arnaldo Carvalho de Melo --- Documentation/process/kernel-enforcement-statement.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/process/kernel-enforcement-statement.rst b/Documentation/process/kernel-

[PATCH 06/36] perf buildid-cache: Document for Node.js USDT

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Hansuk Hong Add a tip for Node.js USDT(User-Level Statically Defined Tracing) probes in tips.txt Signed-off-by: Hansuk Hong Cc: Jiri Olsa Cc: Namhyung Kim Link: http://lkml.kernel.org/r/20171123160546.9722-1-flavono...@gmail.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/D

[PATCH 03/36] perf record: Synthesize unit/scale/... in event update

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Move the code to synthesize event updates for scale/unit/cpus to a common utility file, and use it both from stat and record. This allows to access scale and other extra qualifiers from perf script. Signed-off-by: Andi Kleen Acked-by: Jiri Olsa Link: http://lkml.kernel.org/r/

[PATCH 01/36] tools headers: Follow the upstream UAPI header version 100% differ from the kernel

2017-12-06 Thread Arnaldo Carvalho de Melo
From: Ingo Molnar Remove this from check-headers.sh: opts="--ignore-blank-lines --ignore-space-change" as the easiest policy is to just follow the upstream UAPI header version 100%. Pure space-only changes are comparatively rare. Signed-off-by: Ingo Molnar Cc: Adrian Hunter Link: http://lk

[PATCH v2] usb: dwc2: Add safety check in setting of descriptor chain pointers

2017-12-06 Thread Minas Harutyunyan
In some cases device sending ZLP IN on non EP0 which reassigning EP0 OUT descriptor pointer to that EP. Dedicated for EP0 OUT descriptor multiple time re-used by other EP while that descriptor already in use by EP0 OUT for SETUP transaction. As result when SETUP packet received BNA interrupt assert

[PATCH net-next] net: ethernet: ti: cpdma: rate is not changed - correct case

2017-12-06 Thread Ivan Khoronzhuk
If rate is the same as set it's correct case. Signed-off-by: Ivan Khoronzhuk --- Based on net-next/master drivers/net/ethernet/ti/davinci_cpdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/ti/davinci_cpdma.c b/drivers/net/ethernet/ti/davinci_cpdma.

Re: [PATCH v2] KVM: X86: Fix load RFLAGS w/o the fixed bit

2017-12-06 Thread David Hildenbrand
On 06.12.2017 12:59, Wanpeng Li wrote: > From: Wanpeng Li > > *** Guest State *** > CR0: actual=0x0030, shadow=0x6010, > gh_mask=fff7 > CR4: actual=0x2050, shadow=0x, > gh_mask=e871 > CR3 = 0xfffbc000 > RSP

Re: [PATCH] pci: provide pci_get_domain_bus_and_slot dummy helper

2017-12-06 Thread Sinan Kaya
On 12/6/2017 9:17 AM, Arnd Bergmann wrote: > When CONFIG_PCI is disabled, we still provide a pci_get_bus_and_slot() > function that always returns NULL, but do not provide the same helper > for pci_get_domain_bus_and_slot(): > > Replacing pci_get_bus_and_slot with pci_get_domain_bus_and_slot now c

Re: [PATCH v2 5/5] rtc: add mxc driver for i.MX53 SRTC

2017-12-06 Thread Sascha Hauer
On Wed, Dec 06, 2017 at 10:17:06AM +, Patrick Brünn wrote: > >From: Sascha Hauer [mailto:s.ha...@pengutronix.de] > >Sent: Mittwoch, 6. Dezember 2017 09:36 > >On Tue, Dec 05, 2017 at 03:06:46PM +0100, linux-kernel-...@beckhoff.com > >wrote: > >> +static int mxc_rtc_wait_for_flag(void *__iomem io

Re: [RFC PATCH 2/5] perf jevents: add support for arch recommended events

2017-12-06 Thread John Garry
On 06/12/2017 13:37, Jiri Olsa wrote: On Wed, Dec 06, 2017 at 12:13:16AM +0800, John Garry wrote: SNIP --- tools/perf/pmu-events/jevents.c | 215 1 file changed, 198 insertions(+), 17 deletions(-) diff --git a/tools/perf/pmu-events/jevents.c b/tools/p

Re: [alsa-devel] [PATCH v4 06/15] soundwire: Add IO transfer

2017-12-06 Thread Vinod Koul
On Wed, Dec 06, 2017 at 07:32:43AM -0600, Pierre-Louis Bossart wrote: > On 12/5/17 11:58 PM, Vinod Koul wrote: > >On Tue, Dec 05, 2017 at 08:48:03AM -0600, Pierre-Louis Bossart wrote: > >>On 12/5/17 7:43 AM, Pierre-Louis Bossart wrote: > >>>On 12/5/17 12:31 AM, Vinod Koul wrote: > On Sun, Dec 0

Re: [PATCH] ASoC: fsl_asrc: protect macro argument

2017-12-06 Thread Mark Brown
On Wed, Dec 06, 2017 at 03:25:37PM +0100, Stefan Agner wrote: > On 2017-12-06 15:11, Mark Brown wrote: > > Please don't send content free pings and please allow a reasonable time > > for review. People get busy, go on holiday, attend conferences and so > > on so unless there is some reason for u

[PATCH v4 04/15] NTB: ntb_pp: Add full multi-port NTB API support

2017-12-06 Thread Serge Semin
Current Ping Pong driver can't truly work with multi-port devices. Additionally it requires the Scratchpad registers being available on NTB device. This patches rewrites the driver so one would perform the cyclic Ping-Pong algorithm around all the available NTB peers and makes it working with NTB h

[PATCH v4 05/15] NTB: ntb_tool: Add full multi-port NTB API support

2017-12-06 Thread Serge Semin
Former NTB Debugging tool driver supported only the limited functionality of the recently updated NTB API, which is now available to work with the truly NTB multi-port devices and devices, which got NTB Message registers instead of Scratchpads. This patch fully rewrites the driver so one would full

[PATCH v4 08/15] NTB: ntb_test: Add ntb_tool port tests

2017-12-06 Thread Serge Semin
Multi-port interface is now available in ntb_tool driver. According to the new NTB API, there might be more than two devices connected over NTB. It means each device can have multiple freely enumerated ports. Each port got index assigned by NTB hardware driver. This test is performed to determine t

[PATCH v4 07/15] NTB: ntb_test: Safely use paths with whitespace

2017-12-06 Thread Serge Semin
If some of variables like LOC/REM or LOCAL_*/REMOTE_* got whitespaces, the script may fail with syntax error. Signed-off-by: Serge Semin Acked-by: Logan Gunthorpe Fixes: a9c59ef77458 ("ntb_test: Add a selftest script for the NTB subsystem") --- tools/testing/selftests/ntb/ntb_test.sh | 62 +

Re: [RFC PATCH v3 1/7] ktask: add documentation

2017-12-06 Thread Michal Hocko
Please note that I haven't checked any code in this patch series. I've just started here to see how the thing is supposed to work and what is the overall design On Tue 05-12-17 14:52:14, Daniel Jordan wrote: [...] > +Resource Limits and Auto-Tuning > +=== > + > +ktask h

[PATCH v4 06/15] NTB: ntb_perf: Add full multi-port NTB API support

2017-12-06 Thread Serge Semin
Former NTB Performance driver could only work with NTB devices, which got Scratchpads available and had just two ports. Since there are devices, which don't have Scratchpads and got more than two peer ports, the performance measuring tool needs to be rewritten. This patch adds the ability to test a

[PATCH v4 01/15] NTB: Rename NTB messaging API methods

2017-12-06 Thread Serge Semin
There is a common methods signature form used over all the NTB API like functions naming scheme, arguments names and order, etc. Recently added NTB messaging API IO callbacks were named a bit different so should be renamed to be in compliance with the rest of the API. Signed-off-by: Serge Semin -

[PATCH v4 11/15] NTB: ntb_test: Update ntb_tool Scratchpad tests

2017-12-06 Thread Serge Semin
Scratchpad NTB API has changed so has the ntb_tool driver. Outbound Scratchpad DebugFS files have been moved to peer specific directories. Each scratchpad is now available via separate file. The test code has been accordingly altered. Signed-off-by: Serge Semin --- tools/testing/selftests/ntb/nt

[PATCH v4 10/15] NTB: ntb_test: Update ntb_tool DB tests

2017-12-06 Thread Serge Semin
DB interface of ntb_tool driver hasn't been changed much, but db_valid_mask DebugFS file has still been added. In this case it's much better to test all valid DB bits instead of using the predefined mask, which may be incorrect in general. Signed-off-by: Serge Semin --- tools/testing/selftests/n

[PATCH v4 09/15] NTB: ntb_test: Update ntb_tool link tests

2017-12-06 Thread Serge Semin
Link Up and Down methods are used to change NTB link settings on local side only for multi-port devices. Link is considered up only if both sides local and peer set it up. Intel/AMD hardware acts a bit different by assigning the Primary and Secondary roles, so Primary device only is able to change

Re: BUG: KASAN: slab-out-of-bounds in perf_callchain_user+0x494/0x530

2017-12-06 Thread Namhyung Kim
Hi Peter, On Wed, Dec 06, 2017 at 02:47:06PM +0100, Peter Zijlstra wrote: > On Tue, Dec 05, 2017 at 11:47:18PM +0900, Namhyung Kim wrote: > > Sure, I mean the following code: > > > > mutex_lock(&callchain_mutex); > > > > count = atomic_inc_return(&nr_callchain_events); > > if (WARN_O

[PATCH v4 14/15] NTB: ntb_test: Update ntb_perf tests

2017-12-06 Thread Serge Semin
ntb_perf driver has been also updated so to have the multi-port interface support. User now must specify what peer port is going to be used to perform the test. Signed-off-by: Serge Semin --- tools/testing/selftests/ntb/ntb_test.sh | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions

Re: [PATCH v3 11/20] arm64: mm: Map entry trampoline into trampoline and kernel page tables

2017-12-06 Thread Mark Rutland
On Wed, Dec 06, 2017 at 12:35:30PM +, Will Deacon wrote: > The exception entry trampoline needs to be mapped at the same virtual > address in both the trampoline page table (which maps nothing else) > and also the kernel page table, so that we can swizzle TTBR1_EL1 on > exceptions from and retu

[PATCH v4 15/15] NTB: ntb_hw_idt: Set NTB_TOPO_SWITCH topology

2017-12-06 Thread Serge Semin
Since Switchtec patch there has been a new topology added to the NTB API. It's called NTB_TOPO_SWITCH and dedicated for PCIe switch chips. Even though topo field isn't used within the IDT driver much, lets set it for the sake of unification. Signed-off-by: Serge Semin --- drivers/ntb/hw/idt/ntb_

[PATCH v4 12/15] NTB: ntb_test: Add ntb_tool Message tests

2017-12-06 Thread Serge Semin
Messages NTB API is now available. ntb_tool driver has been altered to perform messages send and receive operation. The test of messages read/write to/from peer device has been added to the script. Signed-off-by: Serge Semin --- tools/testing/selftests/ntb/ntb_test.sh | 37 ++

Re: [RESEND PATCH v2 00/14] tee: optee: add dynamic shared memory support

2017-12-06 Thread Jens Wiklander
On Wed, Nov 29, 2017 at 02:48:24PM +0200, Volodymyr Babchuk wrote: > From: Volodymyr Babchuk > > Hello all, > > This is resend of OP-TEE dynamic SHM series. No changes > from last time. Correct version is used in the subject. > > --- > Changes from v1: > > * Added support for 16K and 64K page

[PATCH v4 03/15] NTB: Fix UB/bug in ntb_mw_get_align()

2017-12-06 Thread Serge Semin
Simple (1 << pidx) operation causes undefined behaviour when pidx >= 32. It must be casted to u64 to match the actual return value of ntb_link_is_up() method, so to have all the possible peer indexes covered and to get rid of undefined behaviour. Additionally there are special macros in "linux/bito

[PATCH v4 13/15] NTB: ntb_test: Update ntb_tool MW tests

2017-12-06 Thread Serge Semin
There are devices (like IDT PCIe switches), which outbound MWs xlat address is setup on peer side. In this case local side is supposed to allocate a memory buffer and somehow deliver the xlat DMA address to peer so one could set the outbound MW up. The MW test is altered so to support both previous

[PATCH v4 00/15] NTB: Add full multi-port API support to the test drivers

2017-12-06 Thread Serge Semin
The multi-port NTB API was introduced in kernel 4.13 as well as the first driver for the true multi-port devices of IDT PCIe-switches series. But the test drivers still were left almost unchanged. Yes, they didn't fail being used with new NTB API, but they only worked with two-ports NTB devices. Th

[PATCH v4 02/15] NTB: Set dma mask and dma coherent mask to NTB devices

2017-12-06 Thread Serge Semin
The dma_mask and dma_coherent_mask fields of the NTB struct device weren't initialized in hardware drivers. In fact it should be done instead of PCIe interface usage, since NTB clients are supposed to use NTB API and left unaware of real hardware implementation. In addition to that ntb_device_regis

Re: NFS crash, hashed pointers in backtrace

2017-12-06 Thread Geert Uytterhoeven
Hi Trond. Anna, On Tue, Dec 5, 2017 at 5:02 PM, Geert Uytterhoeven wrote: > During a failed write to a virtual sysfs file (root fs is NFS), I got: > > Unable to handle kernel NULL pointer dereference at virtual address 0020 > pgd = c448bb15 > [0020] *pgd=69c9c003, *pmd=69d55003, *pte=

Re: [PATCH] ASoC: fsl_asrc: protect macro argument

2017-12-06 Thread Stefan Agner
On 2017-12-06 15:11, Mark Brown wrote: > On Wed, Dec 06, 2017 at 02:53:39PM +0100, Stefan Agner wrote: >> On 2017-08-07 09:08, Nicolin Chen wrote: >> > On Sun, Aug 06, 2017 at 11:36:57PM -0700, Stefan Agner wrote: > >> Mark, you seem to have merged other patches for this driver, can you >> merge t

Re: [PATCH v2 2/2] eeprom: at24: use a common prefix for all symbols in at24.c

2017-12-06 Thread Bartosz Golaszewski
2017-12-06 14:40 GMT+01:00 Peter Rosin : > Hi! > > Some nits... > > On 2017-12-06 14:01, Bartosz Golaszewski wrote: >> There are a couple symbols defined in the driver source file which are >> missing the at24_ prefix. This patch fixes that. >> >> For module params: use module_param_named() in orde

[PATCH] regmap: allow to disable all locking mechanisms

2017-12-06 Thread Bartosz Golaszewski
We have a use case in the at24 EEPROM driver (recently converted to using regmap instead of raw i2c/smbus calls) where we read from/write to the regmap in a loop, while protecting the entire loop with a mutex. Currently this implicitly makes us use two mutexes - one in the driver and one in regmap

Re: [PATCH] gpu: drm: sti: Adopt SPDX identifiers

2017-12-06 Thread Vincent ABRIOU
Benjamin, The patch is fine for me: Acked-by: Vincent Abriou Vincent On 12/06/2017 12:29 PM, Benjamin Gaignard wrote: > Add SPDX identifiers to files under sti directory > > Signed-off-by: Benjamin Gaignard > --- > drivers/gpu/drm/sti/sti_awg_utils.c| 2 +- > drivers/gpu/drm/sti/s

Re: [PATCH] gpu: drm: stm: Adopt SPDX identifiers

2017-12-06 Thread Vincent ABRIOU
Benjamin, The patch is fine for me: Acked-by: Vincent Abriou Vincent On 12/06/2017 12:29 PM, Benjamin Gaignard wrote: > Add SPDX identifiers to files under stm directory > > Signed-off-by: Benjamin Gaignard > --- > drivers/gpu/drm/stm/drv.c | 3 +-- > drivers/gpu/drm/stm/dw_mi

[PATCH] phy: rockchip-inno-usb2: disable clock on error

2017-12-06 Thread Stefan Potyra
In devm_of_phy_provider_register, the previously enabled clock rphy->clk is now disabled, if devm_of_phy_provider_register() failed. Found by Linux Driver Verification project (linuxtesting.org). Fixes: e08d2a727e6 phy: rockchip-inno-usb2: add a new driver for Rockchip usb2phy Signed-off-by: Ste

Re: [PATCH] btrfs: tree-checker: use %zu format string for size_t

2017-12-06 Thread David Sterba
On Wed, Dec 06, 2017 at 03:18:14PM +0100, Arnd Bergmann wrote: > The return value of sizeof() is of type size_t, so we must print it > using the %z format modifier rather than %l to avoid this warning > on some architectures: > > fs/btrfs/tree-checker.c: In function 'check_dir_item': > fs/btrfs/tr

[PATCH] ACPICA: Update information in MAINTAINERS

2017-12-06 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Update the ACPICA information in MAINTAINERS to reflect recent maintainership changes. Signed-off-by: Rafael J. Wysocki --- MAINTAINERS |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-pm/MAINTAINERS

<    4   5   6   7   8   9   10   11   12   13   >