[PATCH] lockdep: Show up to three levels for a deadlock scenario

2017-12-14 Thread Steven Rostedt
Currently, when lockdep detects a possible deadlock scenario that involves 3 or more levels, it just shows the chain, and a CPU sequence order of the first and last part of the scenario, leaving out the middle level and this can take a bit of effort to understand. By adding a third level, it becom

[RESEND PATCH v2 11/15] ASoC: qcom: qdsp6: Add support to q6afe dai driver

2017-12-14 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch adds support to q6afe backend dais driver. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/Kconfig | 5 + sound/soc/qcom/qdsp6/Makefile| 1 + sound/soc/qcom/qdsp6/q6afe-dai.c | 241 +++ 3 files cha

[RESEND PATCH v2 12/15] ASoC: qcom: qdsp6: Add support to q6asm dai driver

2017-12-14 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch adds support to q6asm dai driver which configures Q6ASM streams to pass pcm data. Currently the driver only exposes 2 playback streams for hdmi playback support, it can be easily extended to add all 8 streams. Signed-off-by: Srinivas Kandagatla --- sound/so

[RESEND PATCH v2 09/15] ASoC: qcom: qdsp6: Add support to Q6CORE

2017-12-14 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch adds support to core apr service, which is used to query status of other static and dynamic services on the dsp. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/Kconfig| 5 + sound/soc/qcom/qdsp6/Makefile | 1 + sound/soc/qcom/qdsp6/q6core

Re: linux-next: Tree for Dec 14 (usb/dwc3)

2017-12-14 Thread Randy Dunlap
On 12/13/2017 11:06 PM, Stephen Rothwell wrote: > Hi all, > > Changes since 20171213: > on i386: ERROR: "__tracepoint_dwc3_writel" [drivers/usb/dwc3/dwc3.ko] undefined! ERROR: "__tracepoint_dwc3_readl" [drivers/usb/dwc3/dwc3.ko] undefined! I can send the randconfig file is you need it. --

[RESEND PATCH v2 08/15] ASoC: qcom: q6asm: add support to audio stream apis

2017-12-14 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch adds support to open, write and media format commands in the q6asm module. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6asm.c | 530 ++- sound/soc/qcom/qdsp6/q6asm.h | 42 2 files changed, 571 i

[RESEND PATCH v2 04/15] ASoC: qcom: qdsp6: Add support to Q6AFE

2017-12-14 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch adds support to q6 AFE (Audio Front End) module on Q6DSP. AFE module sits right at the other end of cpu where the codec/audio devices are connected. AFE provides abstraced interfaces to both hardware and virtual devices. Each AFE tx/rx port can be configured

[RESEND PATCH v2 07/15] ASoC: qcom: q6asm: Add support to memory map and unmap

2017-12-14 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch adds support to memory map and unmap regions commands in q6asm module. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6asm.c | 343 ++- sound/soc/qcom/qdsp6/q6asm.h | 5 + 2 files changed, 347 insertio

Re: [RFC PATCH 2/2] ASoC: select sysclk clock from mlck clock provider in wm8994 driver

2017-12-14 Thread Mark Brown
On Thu, Dec 14, 2017 at 05:53:58PM +0100, Olivier Moysan wrote: > When defined in device tree, MCLK1 and MCLK2 are used > as sysclk for aif1 and aif2 interfaces respectively. That's not a valid assumption as far as I remember? The AIFs can use either MCLK depending on the system configuration I t

[RESEND PATCH v2 06/15] ASoC: qcom: qdsp6: Add support to Q6ASM

2017-12-14 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch adds basic support to Q6 ASM (Audio Stream Manager) module on Q6DSP. ASM supports up to 8 concurrent streams. each stream can be setup as playback/capture. ASM provides top control functions like Pause/flush/resume for playback and record. ASM can Create/destr

[RESEND PATCH v2 03/15] ASoC: qcom: qdsp6: Add common qdsp6 helper functions

2017-12-14 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch adds some common helper functions like translating dsp error to linux error codes and channel mappings etc. These functions are used in all the following qdsp6 drivers. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/common.h | 225

[RESEND PATCH v2 00/15] ASoC: qcom: Add support to QDSP6 based audio

2017-12-14 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patchset aims to provide a very basic version of QCOM DSP based audio support which is available in downstream andriod kernels. This patchset only support Digital audio based for HDMI-RX and will add support to other features as we move on. QDSP has both static and

Re: [BUG]kernel softlockup due to sidtab_search_context run for long time because of too many sidtab context node

2017-12-14 Thread Casey Schaufler
On 12/14/2017 9:15 AM, Stephen Smalley wrote: > On Thu, 2017-12-14 at 09:00 -0800, Casey Schaufler wrote: >> On 12/14/2017 8:42 AM, Stephen Smalley wrote: >>> On Thu, 2017-12-14 at 08:18 -0800, Casey Schaufler wrote: On 12/13/2017 7:18 AM, Stephen Smalley wrote: > On Wed, 2017-12-13 at 09:

[RESEND PATCH v2 01/15] dt-bindings: soc: qcom: Add bindings for APR bus

2017-12-14 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch add dt bindings for Qualcomm APR bus driver Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/soc/qcom/qcom,apr.txt | 28 ++ 1 file changed, 28 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/qco

[PATCH 16/34] perf s390: Generate system call table from asm/unistd.h

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Hendrik Brueckner This should speed up accessing new system calls introduced with the kernel rather than waiting for libaudit updates to include them. Committer testing: $ rm -rf /tmp/build/perf $ mkdir /tmp/build/perf $ make srctree=/home/acme/git/perf -C tools/perf/arch/s390 OUTP

[PATCH 07/34] perf stat: Allocate shadow stats buffer for threads

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Jin Yao After perf_evlist__create_maps() being executed, we can get all threads from /proc. And via thread_map__nr(), we can also get the number of threads. With the number of threads, the patch allocates a buffer which will record the shadow stats for these threads. The buffer pointer is

[PATCH 09/34] perf thread_map: Enumerate all threads from /proc

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Jin Yao This patch calls thread_map__new_all_cpus() to enumerate all threads from /proc if per-thread flag is enabled. 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/1512482591-4646-10-

[PATCH 13/34] perf test: Handle properly readdir DT_UNKNOWN

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Some system can return DT_UNKNOWN in readdir's struct dirent::d_type and we must handle it properly. In this case we can directly check if the entity we found is directory and skip it. Reported-by: Michael Petlan Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Namhyung Kim Cc: P

[PATCH 26/34] perf probe: Support escaped character in parser

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Support the special characters escaped by '\' in parser. This allows user to specify versions directly like below. = # ./perf probe -x /lib64/libc-2.25.so malloc_get_state\\@GLIBC_2.2.5 Added new event: probe_libc:malloc_get_state (on malloc_get_state@GLIBC_

[PATCH 18/34] perf annotate: Get the cpuid from evsel->evlist->env in symbol__annotate()

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To reduce its function signature, since we get this from 'evsel' which is already one of its arguments. Cc: Adrian Hunter Cc: David Ahern Cc: Hendrik Brueckner Cc: Jiri Olsa Cc: Michael Petlan Cc: Namhyung Kim Cc: Thomas Richter Cc: Wang Nan Link: https://l

[PATCH 33/34] perf s390: Always build with -fPIC

2017-12-14 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:

[PATCH 34/34] perf evsel: Enable ignore_missing_thread for pid option

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Mengting Zhang While monitoring a multithread process with pid option, perf sometimes may return sys_perf_event_open failure with 3(No such process) if any of the process's threads die before we open the event. However, we want perf continue monitoring the remaining threads and do not exit

[PATCH 30/34] tools headers: Synchronize kernel x86 UAPI headers

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Two x86 headers got modified in this merge window: arch/x86/include/asm/cpufeatures.h By e3811a3f74bd ("x86/cpufeatures: Make X86_BUG_FXSAVE_LEAK detectable in CPUID on AMD") None of those changes have an effect on tooling, so do a plain copy. Cc: Adrian H

[PATCH 32/34] Revert "perf s390: Always build with -fPIC"

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo This one made x86 always build with -fPIC, when the intention was for s390 to be built that way, due to a rebase mistake. Reported-by: Hendrik Brueckner This reverts commit 1dc4ddf112a408e607a073d951b962b6c6e2bd6c. Signed-off-by: Arnaldo Carvalho de Melo --- to

[PATCH 27/34] perf evsel: Fix swap for samples with raw data

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa When we detect a different endianity we swap event before processing. It's tricky for samples because we have no idea what's inside. We treat it as an array of u64s, swap them and later on we swap back parts which are different. We mangle this way also the tracepoint raw data, wh

[PATCH 29/34] tools headers: Synchronize KVM arch ABI headers

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To pick up changes from this cset: bb64da9aba89 ("KVM: s390: mark irq_state.flags as non-usable") It just adds two comments. Silences this warning when building perf: Warning: Kernel ABI header at 'tools/include/uapi/linux/kvm.h' differs from latest version

Re: [PATCH 0/2] [RFC] Ktest: add email support

2017-12-14 Thread Dhaval Giani
On 2017-12-06 04:40 PM, Steven Rostedt wrote: > Hi, > > Currently traveling and now I have very poor connectivity. I won't be able to > do anything this week. > ping! :) Dhaval

[PATCH 31/34] tools arch s390: Do not include header files from the kernel sources

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Long ago we decided to be verbotten including files in the kernel git sources from tools/ living source code, to avoid disturbing kernel development (and perf's and other tools/) when, say, a kernel hacker adds something, tests everything but tools/ and have tools/

[PATCH 28/34] perf test shell: Fix check open filename arg using 'perf trace'

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Michael Petlan Commit f231af789b11 ("perf test shell: Fix check open filename arg using 'perf trace' on s390x") added an exception for s390x to use openat() instead of open() in the test that intercepts a open syscall to look for the filename argument as obtained by the vfs_getname 'perf pr

[PATCH 25/34] perf string: Add {strdup,strpbrk}_esc()

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu To support the special characters escaped by '\' in 'perf probe' event parser. Signed-off-by: Masami Hiramatsu Reviewed-by: Thomas Richter Acked-by: Ravi Bangoria Cc: Paul Clarke Cc: bhargavb Cc: linux-rt-us...@vger.kernel.org Link: http://lkml.kernel.org/r/151275052

Re: [PATCH] ipmi: Stop timers before cleaning up the module

2017-12-14 Thread Greg KH
On Thu, Dec 14, 2017 at 09:16:38AM -0600, miny...@acm.org wrote: > From: Masamitsu Yamazaki > > commit 4f7f5551a760eb0124267be65763008169db7087 upstream. > > System may crash after unloading ipmi_si.ko module > because a timer may remain and fire after the module cleaned up resources. > > clean

[PATCH 24/34] perf probe: Find versioned symbols from map

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Commit d80406453ad4 ("perf symbols: Allow user probes on versioned symbols") allows user to find default versioned symbols (with "@@") in map. However, it did not enable normal versioned symbol (with "@") for perf-probe. E.g. = # ./perf probe -x /lib64/libc-2.25.s

[PATCH v2] perf report: Fix regression when decoding intelPT traces

2017-12-14 Thread Mathieu Poirier
Commit (93d10af26bb7 perf tools: Optimize sample parsing for ordered events) breaks intelPT trace decoding by invariably returning an error if the event type isn't a PERF_SAMPLE_TIME. With this patch the timestamp is initialised and processing is allowed to continue if the error returned by functi

Re: [PATCH] hyperv: make HYPERV a menuconfig to ease disabling it all

2017-12-14 Thread Randy Dunlap
On 12/13/2017 11:51 PM, Greg KH wrote: > On Wed, Dec 13, 2017 at 01:23:38PM -0800, Stephen Hemminger wrote: >> On Wed, 13 Dec 2017 09:54:19 +0100 >> Vincent Legoll wrote: >> >>> Hello, >>> >>> On Sun, Dec 10, 2017 at 6:50 AM, Stephen Hemminger >>> wrote: Will this break existing configs? >

[PATCH 23/34] perf probe: Add __return suffix for return events

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Add __return suffix for function return events automatically. Without this, user have to give --force option and will see the number suffix for each event like "function_1", which is not easy to recognize. Instead, this adds __return suffix to it automatically. E.g. ===

Re: [PATCH v2 14/17] x86/ldt: Reshuffle code

2017-12-14 Thread Peter Zijlstra
On Thu, Dec 14, 2017 at 08:34:00AM -0800, Andy Lutomirski wrote: > On Thu, Dec 14, 2017 at 8:32 AM, Thomas Gleixner wrote: > >> > Can the PF_KTHREAD thing be its own patch so it can be reviewed on its > >> > own? > >> > >> I had that as a separate patch at some point. > > > > See 5/N > > It loo

[PATCH 22/34] perf probe: Cut off the version suffix from event name

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Cut off the version suffix (e.g. @GLIBC_2.2.5 etc.) from automatic generated event name. This fixes wildcard event adding like below case; = # perf probe -x /lib64/libc-2.25.so malloc* Internal error: "malloc_get_state@GLIBC_2" is wrong event name. Error: Fai

[PATCH 19/34] perf annotate: Use perf_env when obtaining the arch name

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Paving the way to reuse these routines in other areas, like when generating errno tables. Cc: Adrian Hunter Cc: David Ahern Cc: Hendrik Brueckner Cc: Jiri Olsa Cc: Michael Petlan Cc: Namhyung Kim Cc: Thomas Richter Cc: Wang Nan Link: https://lkml.kernel.org

[PATCH 21/34] perf probe: Add warning message if there is unexpected event name

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu This improve the error message so that user can know event-name error before writing new events to kprobe-events interface. E.g. == #./perf probe -x /lib64/libc-2.25.so malloc_get_state* Internal error: "malloc_get_state@GLIBC_2" is an invalid event name.

Re: [PATCH 5/9] tests/xfs/group: add group for tests which require a logdev

2017-12-14 Thread Luis R. Rodriguez
On Thu, Dec 14, 2017 at 10:39:14AM +1100, Dave Chinner wrote: > You can't just run an internal log test then add couple of extra > external log tests and say "external logs work fine". > > > Automatic detection if the requirements are met is fine, but this doesn't > > let me easily use say: > >

Re: [PATCH v3] rtc: Add tracepoints for RTC system

2017-12-14 Thread Steven Rostedt
On Thu, 14 Dec 2017 13:31:43 +0800 Baolin Wang wrote: > @@ -53,6 +56,8 @@ int rtc_read_time(struct rtc_device *rtc, struct rtc_time > *tm) > > err = __rtc_read_time(rtc, tm); > mutex_unlock(&rtc->ops_lock); > + > + trace_rtc_read_time(rtc_tm_to_time64(tm), err); There's a pos

[PATCH 20/34] perf env: Adopt perf_env__arch() from the annotate code

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo And use it in the libunwind case, with both passing a valid perf_env to extract the arch to be normalized from and passing NULL with the same semantic as in the annotate code: to get it from uname() uts.machine. Now the code to generate per arch errno translation t

[PATCH 17/34] perf trace: Use generated syscall table on s390 too

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Hendrik Brueckner This should speed up accessing new system calls introduced with the kernel rather than waiting for libaudit updates to include them. It also enables users to specify wildcards, for example, perf trace -e 'open*', just like was already possible on x86. Signed-off-by: Hend

[PATCH 14/34] perf perf: Remove duplicate includes

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Pravin Shedge These duplicate includes have been found with scripts/checkincludes.pl but they have been removed manually to avoid removing false positives. Signed-off-by: Pravin Shedge Cc: David S. Miller Cc: Greg Kroah-Hartman Cc: Jiri Olsa Cc: Peter Zijlstra Cc: Thomas Gleixner Lin

[PATCH 15/34] tools include s390: Grab a copy of arch/s390/include/uapi/asm/unistd.h

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Hendrik Brueckner Will be used for generating the syscall id/string translation table. Signed-off-by: Hendrik Brueckner Reviewed-by: Thomas Richter Cc: Jiri Olsa Cc: Michael Petlan Cc: linux-s...@vger.kernel.org LPU-Reference: 1512635281-20733-2-git-send-email-brueck...@linux.vnet.ibm.

[PATCH 11/34] perf stat: Resort '--per-thread' result

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Jin Yao There are many threads reported if we enable '--per-thread' globally. 1. Most of the threads are not counted or counting value 0. This patch removes these threads. 2. We also resort the threads in display according to the counting value. It's useful for user to see the hottest thr

Re: [PATCH v2 00/17] x86/ldt: Use a VMA based read only mapping

2017-12-14 Thread Peter Zijlstra
On Thu, Dec 14, 2017 at 08:35:50AM -0800, Andy Lutomirski wrote: > > @@ -3252,6 +3256,7 @@ static const struct vm_operations_struct > > .fault = special_mapping_fault, > > .mremap = special_mapping_mremap, > > .name = special_mapping_name, > > + .split = special_mappi

[PATCH 12/34] perf utils: Move is_directory() to path.h

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa So that it can be used more widely, like in the next patch, when it will be used to fix a bug in 'perf test' handling of dirent.d_type == DT_UNKNOWN. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/

[PATCH 10/34] perf stat: Remove --per-thread pid/tid limitation

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Jin Yao Currently, if we execute 'perf stat --per-thread' without specifying pid/tid, perf will return error. root@skl:/tmp# perf stat --per-thread The --per-thread option is only available when monitoring via -p -t options. -p, --pidstat events on existing process id -t, -

[PATCH 08/34] perf stat: Update or print per-thread stats

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Jin Yao If the stats pointer in stat_config structure is not null, it will update the per-thread stats or print the per-thread stats on this buffer. Signed-off-by: Jin Yao Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: Kan Liang Cc: Peter Zijlstra Link: http://lkml.ke

[PATCH 06/34] perf stat: Remove a set of shadow stats static variables

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Jin Yao In previous patches, we have reconstructed the code and let it not access the static variables directly. This patch removes these static variables. Signed-off-by: Jin Yao Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: Kan Liang Cc: Peter Zijlstra Link: http:/

[PATCH 04/34] perf stat: Update per-thread shadow stats

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Jin Yao The functions perf_stat__update_shadow_stats() is called to update the shadow stats on a set of static variables. But the static variables are the limitations to be extended to support per-thread shadow stats. This patch lets the perf_stat__update_shadow_stats() support to update

[PATCH 05/34] perf stat: Print per-thread shadow stats

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Jin Yao The function perf_stat__print_shadow_stats() is called to print the shadow stats on a set of static variables. But the static variables are the limitations to support per-thread shadow stats. This patch lets the perf_stat__print_shadow_stats() support to print the shadow stats fro

[PATCH 01/34] perf stat: Define a structure for per-thread shadow stats

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Jin Yao Perf has a set of static variables to record the runtime shadow metrics stats. While if we want to record the runtime shadow stats for per-thread, it will be the limitation. This patch creates a structure and the next patches will use this structure to update the runtime shadow sta

[PATCH 02/34] perf stat: Extend rbtree to support per-thread shadow stats

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Jin Yao Previously the rbtree was used to link generic metrics. This patches adds new ctx/type/stat into rbtree keys because we will use this rbtree to maintain shadow metrics to replace original a couple of static arrays for supporting per-thread shadow stats. Signed-off-by: Jin Yao Ack

[PATCH 03/34] perf stat: Create the runtime_stat init/exit function

2017-12-14 Thread Arnaldo Carvalho de Melo
From: Jin Yao It mainly initializes and releases the rblist which is defined in struct runtime_stat. For the original rblist 'runtime_saved_values', it's still kept there for keeping the patch bisectable. The rblist 'runtime_saved_values' will be removed in later patch at switching time. Signe

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

2017-12-14 Thread Arnaldo Carvalho de Melo
repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-4.16-20171214 for you to fetch changes up to 64b86173c3f90de348a5f010e2e504168fddc01e: perf evsel: Enable ignore_missing_thread for pid option (2017-12-13 18:07:01 -0300

Re: [RFC][PATCHv6 00/12] printk: introduce printing kernel thread

2017-12-14 Thread Steven Rostedt
On Thu, 14 Dec 2017 07:25:51 -0800 Tejun Heo wrote: > > 3. Soft-lockups are still theoretically possible with Steven's > >approach. > > > >But it seems to be quite efficient in many real life scenarios, > >including Tetsuo's stress testing. Or am I wrong? > > AFAICS, Steven's appr

Re: [PATCH 4/9] build: update AC_PACKAGE_WANT_GDBM() and src/dbtest.c to build

2017-12-14 Thread Luis R. Rodriguez
On Thu, Dec 14, 2017 at 01:51:02PM +0800, Eryu Guan wrote: > On Tue, Dec 12, 2017 at 04:45:14PM -0800, Luis R. Rodriguez wrote: > > Modern gdbm-devel packages bundle together gdbm.h and ndbm.h. > > The old m4 macro had detection support for some old gdbm libraries > > but not for new ones. > > > >

Re: [PATCH] platform/x86: dell-rbtn: Block comments use * on subsequent lines

2017-12-14 Thread Andy Shevchenko
On Thu, Dec 14, 2017 at 11:12 AM, Dhaval Shah wrote: > I got your point. SPDX text should be "SPDX-License-Identifier: GPL-2.0+". > Am i Right? Whatever you come up with I will apply taking into consideration the following: 1. Linus' preference over comment style. 2. Module author(s) blessing fo

Re: [PATCH] platform/x86: dell-wmi-aio: Block comments use * on subsequent lines

2017-12-14 Thread Andy Shevchenko
On Wed, Dec 13, 2017 at 10:18 AM, Dhaval Shah wrote: > Resolved Block comments use * on subsequent lines checkpatch warnings. > Issue found by checkpatch. // indeed will look better in these cases. Please, get blessing from author(s) / maintainer(s) of the module first before sending any patches

Re: [PATCH] platform/x86: dell-smbios: Block comments use * on subsequent lines

2017-12-14 Thread Andy Shevchenko
On Wed, Dec 13, 2017 at 10:21 AM, Dhaval Shah wrote: > Resolved Block comments use * on subsequent lines checkpatch warnings. > Issue found by checkpatch. > Same comments as for the other like this > Signed-off-by: Dhaval Shah > --- > drivers/platform/x86/dell-smbios.c | 3 ++- > 1 file change

Re: [PATCH] lockdep: Show up to three levels for a deadlock scenario

2017-12-14 Thread Peter Zijlstra
On Thu, Dec 14, 2017 at 12:38:52PM -0500, Steven Rostedt wrote: > > Currently, when lockdep detects a possible deadlock scenario that involves 3 > or more levels, it just shows the chain, and a CPU sequence order of the > first and last part of the scenario, leaving out the middle level and this >

Re: [PATCH 0/3] platform/x86: dell-laptop: All the warnings are resolved.

2017-12-14 Thread Andy Shevchenko
On Wed, Dec 13, 2017 at 10:13 AM, Dhaval Shah wrote: > There are total three types of warnings are resolved. > First patch : Block comments use * on subsequent lines > Second patch : Missing a blank line after declarations > third patch : braces {} are not necessary for single statement blocks.

Re: [PATCH] ARM: exynos_defconfig - enable CONFIG_EXYNOS_IOMMU

2017-12-14 Thread Krzysztof Kozlowski
On Wed, Dec 13, 2017 at 10:42:33AM +0100, Marek Szyprowski wrote: > Hi Shuah, > > On 2017-12-12 22:31, Shuah Khan wrote: > > EXYNOS_IOMMU is disabled in exynos_defconfig since it is known to cause > > boot failures on Exynos Chrome-books. The recommendation is for IOMMU to > > be enabled manually

Re: [PATCH] platform/x86: dell-smo8800: Possible unnecessary 'out of memory' message

2017-12-14 Thread Andy Shevchenko
On Wed, Dec 13, 2017 at 10:30 AM, Pali Rohár wrote: > On Wednesday 13 December 2017 13:53:54 Dhaval Shah wrote: >> Removed Possible unnecessary 'out of memory' message checkpatch warnings. >> Issue found by checkpatch. >> - dev_err(&device->dev, "failed to allocate device data\n"); >

[PATCH v4 net-next 2/8] net: hns3: Add mailbox support to VF driver

2017-12-14 Thread Salil Mehta
This patch adds the support of the mailbox to the VF driver. The mailbox shall be used as an interface to communicate with the PF driver for various purposes like {set|get} MAC related operations, reset, link status etc. The mailbox supports both synchronous and asynchronous command send to PF driv

Re: [RFC PATCH 2/2] leds: as3645a: Update LED label generation

2017-12-14 Thread Sakari Ailus
Hi Dan, Thanks for the patchset. On Tue, Dec 12, 2017 at 03:50:24PM -0600, Dan Murphy wrote: > Generate the LED label based off either the > DT label node or off the I2C ID in the > i2c device id struct. > > If the label is used then this should denote > the LED function. As an example it would

Re: [PATCH] arm64: dts: Remove leading 0x and 0s from bindings notation

2017-12-14 Thread Matthias Brugger
On 12/14/2017 05:53 PM, Mathieu Malaterre wrote: [...] > diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi > b/arch/arm64/boot/dts/mediatek/mt8173.dtsi > index 26396ef53bde..0446b122a6e2 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi

[PATCH v4 net-next 0/8] Hisilicon Network Subsystem 3 VF Ethernet Driver

2017-12-14 Thread Salil Mehta
This patch-set contains the support of the HNS3 (Hisilicon Network Subsystem 3) Virtual Function Ethernet driver for hip08 family of SoCs. The Physical Function driver is already part of the Linux mainline. This VF driver has its Hardware Compatibility Layer and has commom/unified ENET layer/clie

[PATCH v4 net-next 4/8] net: hns3: Add HNS3 VF driver to kernel build framework

2017-12-14 Thread Salil Mehta
This patch introduces the new Makefiles and updates existing Makefiles required to build the HNS3 Virtual Function driver. This also updates the Kconfig for introduction of new menuconfig entries related to VF driver. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- drivers/net/ethernet/his

[PATCH v4 net-next 5/8] net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08 SoC

2017-12-14 Thread Salil Mehta
Most of the NAPI handling interface, skb buffer management, management of the RX/TX descriptors, ethool interface etc. has quite a bit of code which is common to VF and PF driver. This patch makes the exisitng PF's HNS3 ENET driver as the common ENET driver for both Virtual & Physical Function. Th

[PATCH v4 net-next 7/8] net: hns3: Change PF to add ring-vect binding & resetQ to mailbox

2017-12-14 Thread Salil Mehta
This patch is required to support ring-vector binding and reset of TQPs requested by the VF driver to the PF driver. Mailbox handler is added with corresponding VF commands/messages to handle the request. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- .../ethernet/hisilicon/hns3/hns3pf/hc

[PATCH v4 net-next 8/8] net: hns3: Add mailbox interrupt handling to PF driver

2017-12-14 Thread Salil Mehta
All PF mailbox events are conveyed through a common interrupt (vector 0). This interrupt vector is shared by reset and mailbox. This patch adds the handling of mailbox interrupt event and its deferred processing in context to a separate mailbox task. Signed-off-by: Salil Mehta Signed-off-by: lip

Re: [PATCH v2 1/2] leds: as3645a: Fix quoted string split warning

2017-12-14 Thread Sakari Ailus
On Thu, Dec 14, 2017 at 11:37:26AM -0600, Dan Murphy wrote: > Fix a warning for a split quoted string across > lines. > > WARNING: quoted string split across lines > 459: FILE: drivers/leds/leds-as3645a.c:459: > dev_err(dev, "AS3645A not detected " > "(model %d

[PATCH v4 net-next 6/8] net: hns3: Add mailbox support to PF driver

2017-12-14 Thread Salil Mehta
Command queue provides the provision of Mailbox command which can be used for communication between PF and VF. PF handles messages from various VFs for fetching various information like, queue, vlan, link status related etc. It also handles the request from various VFs to perform certain privileged

Re: [PATCH v4 00/12] [dt-bindings] [media] Add document file and driver for Sony CXD2880 DVB-T2/T tuner + demodulator

2017-12-14 Thread Mauro Carvalho Chehab
Em Thu, 14 Dec 2017 17:32:34 + "Bird, Timothy" escreveu: > > -Original Message- > > From: Philippe on Thursday, December 14, 2017 6:25 AM > > Dear Mauro, > > > > On Thu, Dec 14, 2017 at 11:55 AM, Mauro Carvalho Chehab > > wrote: > > > > > SPDX is a new requirement that started la

[PATCH v4 net-next 3/8] net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support

2017-12-14 Thread Salil Mehta
This patch adds the support of hardware compatibiltiy layer to the HNS3 VF Driver. This layer implements various {set|get} operations over MAC address for a virtual port, RSS related configuration, fetches the link status info from PF, does various VLAN related configuration over the virtual port,

[PATCH v4 net-next 1/8] net: hns3: Add HNS3 VF IMP(Integrated Management Proc) cmd interface

2017-12-14 Thread Salil Mehta
This patch adds support of command interface for communication with the IMP(Integrated Management Processor) for HNS3 Virtual Function Driver. Each VF has support of CQP(Command Queue Pair) ring interface. Each CQP consis of send queue CSQ and receive queue CRQ. There are various commands a VF may

Re: [RESEND PATCH] partial revert of "[media] tvp5150: add HW input connectors support"

2017-12-14 Thread Mauro Carvalho Chehab
Em Thu, 14 Dec 2017 18:37:30 +0100 Javier Martinez Canillas escreveu: > Hello Mauro, > > On 12/14/2017 06:02 PM, Mauro Carvalho Chehab wrote: > > Em Wed, 6 Dec 2017 01:33:05 +0100 > > Javier Martinez Canillas escreveu: > > > >> Commit f7b4b54e6364 ("[media] tvp5150: add HW input connectors

Re: arm64: unhandled level 0 translation fault

2017-12-14 Thread Geert Uytterhoeven
Hi Dave, On Thu, Dec 14, 2017 at 4:24 PM, Dave P Martin wrote: > On Thu, Dec 14, 2017 at 02:34:50PM +, Geert Uytterhoeven wrote: >> On Tue, Dec 12, 2017 at 11:20 AM, Geert Uytterhoeven >> wrote: >> > During userspace (Debian jessie NFS root) boot on arm64: >> > >> > rpcbind[1083]: unhandled

Re: [RFC PATCH for 4.16 02/21] rseq: Introduce restartable sequences system call (v12)

2017-12-14 Thread Mathieu Desnoyers
- On Dec 14, 2017, at 11:44 AM, Chris Lameter c...@linux.com wrote: > On Thu, 14 Dec 2017, Mathieu Desnoyers wrote: > >> On x86, yet another possible approach would be to use the gs segment >> selector to point to user-space per-cpu data. This approach performs >> similarly to the cpu id cach

Re: [BUG]kernel softlockup due to sidtab_search_context run for long time because of too many sidtab context node

2017-12-14 Thread Daniel Walsh
On 12/14/2017 12:42 PM, Casey Schaufler wrote: On 12/14/2017 9:15 AM, Stephen Smalley wrote: On Thu, 2017-12-14 at 09:00 -0800, Casey Schaufler wrote: On 12/14/2017 8:42 AM, Stephen Smalley wrote: On Thu, 2017-12-14 at 08:18 -0800, Casey Schaufler wrote: On 12/13/2017 7:18 AM, Stephen Smalley

Re: [RFC][PATCHv6 00/12] printk: introduce printing kernel thread

2017-12-14 Thread Tejun Heo
Hey, Steven. On Thu, Dec 14, 2017 at 12:55:06PM -0500, Steven Rostedt wrote: > Yes! Please create a reproducer, because I still don't believe there is > one. And it's all hand waving until there's an actual report that we can > lock up the system with my approach. Yeah, will do, but out of curios

Re: [PATCH v19 3/7] xbitmap: add more operations

2017-12-14 Thread Matthew Wilcox
On Fri, Dec 15, 2017 at 01:29:45AM +0900, Tetsuo Handa wrote: > > > Also, one more thing you need to check. Have you checked how long does > > > xb_find_next_set_bit(xb, 0, ULONG_MAX) on an empty xbitmap takes? > > > If it causes soft lockup warning, should we add cond_resched() ? > > > If yes, you

Re: [patch v14 1/4] drivers: jtag: Add JTAG core driver

2017-12-14 Thread Philippe Ombredanne
Oleksandr, On Thu, Dec 14, 2017 at 5:29 PM, Oleksandr Shamray wrote: > Initial patch for JTAG driver > JTAG class driver provide infrastructure to support hardware/software > JTAG platform drivers. It provide user layer API interface for flashing > and debugging external devices which equipped wi

Re: [PATCH 1/6] blk-mq: protect completion path with RCU

2017-12-14 Thread t...@kernel.org
On Thu, Dec 14, 2017 at 05:01:06PM +, Bart Van Assche wrote: > On Tue, 2017-12-12 at 11:01 -0800, Tejun Heo wrote: > > + } else { > > + srcu_idx = srcu_read_lock(hctx->queue_rq_srcu); > > + if (!blk_mark_rq_complete(rq)) > > + __blk_mq_complete_request(rq

Re: rf69_get_lna_gain

2017-12-14 Thread Simon Sandström
On Thu, Dec 14, 2017 at 06:08:11PM +0200, Marcus Wolf wrote: > Hi! > > This is an information for all of you, doing experiments with real hardware! > > I wanted to explain, what this lna_gain stuff is used for: > > If you are receiving messages from different sender (let's say several > thermome

Re: [patch v14 2/4] drivers: jtag: Add Aspeed SoC 24xx and 25xx families JTAG master driver

2017-12-14 Thread Philippe Ombredanne
Oleksandr, On Thu, Dec 14, 2017 at 5:29 PM, Oleksandr Shamray wrote: > Driver adds support of Aspeed 2500/2400 series SOC JTAG master controller. > > Driver implements the following jtag ops: > - freq_get; > - freq_set; > - status_get; > - idle; > - xfer; > > It has been tested on Mellanox system

Re: [GIT PULL] Nohz / isolation fixes

2017-12-14 Thread Frederic Weisbecker
2017-12-14 15:14 UTC+01:00, Frederic Weisbecker : > Ingo, > > Please pull the nohz/fixes branch that can be found at: > > git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git > nohz/fixes > > HEAD: 11c3146353bb83028ace8ad089a911c390395986 Sorry please disregard this pull

Re: mm/memcontrol.c:5364:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]

2017-12-14 Thread Johannes Weiner
On Thu, Dec 14, 2017 at 10:19:17AM +0100, Michal Hocko wrote: > On Thu 14-12-17 07:49:29, Paul Menzel wrote: > > I enabled the undefined behavior sanitizer, and built Linus’ master branch > > under Ubuntu 17.10 with gcc (Ubuntu 7.2.0-8ubuntu3) 7.2.0. > > > > ``` > > $ grep UBSAN /boot/config-4.15.

[PATCH 1/3] sched/isolation: Make NO_HZ_FULL select CPU_ISOLATION

2017-12-14 Thread Frederic Weisbecker
From: "Paul E. McKenney" CONFIG_NO_HZ_FULL doesn't make sense without CONFIG_CPU_ISOLATION. In fact enabling the first without the second is a regression as nohz_full= boot parameter gets silently ignored. Besides this unnatural combination hangs RCU gp kthread when running rcutorture for reason

[GIT PULL] Nohz and isolation fixes v2

2017-12-14 Thread Frederic Weisbecker
Ingo, Please pull the nohz/fixes-v2 branch that can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git nohz/fixes-v2 HEAD: 5ecdec22346b99967e8b4e8d78a5b4d23bf216f9 Thanks, Frederic --- Frederic Weisbecker (2): sched/isolation: Enable CO

[PATCH 3/3] sched/isolation: Document boot parameters dependency on CONFIG_CPU_ISOLATION

2017-12-14 Thread Frederic Weisbecker
The "isolcpus=" and "nohz_full=" boot parameters depend on CPU Isolation support. Let's document that. Signed-off-by: Frederic Weisbecker Cc: Paul E. McKenney Cc: Thomas Gleixner Cc: Chris Metcalf Cc: Christoph Lameter Cc: Linus Torvalds Cc: Luiz Capitulino Cc: Mike Galbraith Cc: Peter Zij

[PATCH 2/3] sched/isolation: Enable CONFIG_CPU_ISOLATION=y by default

2017-12-14 Thread Frederic Weisbecker
The "isolcpus=" boot parameter support was always built-in before we moved the related code under CONFIG_CPU_ISOLATION. Having it disabled by default is very confusing for people accustomed to use this parameter. So enable it by dafault to keep the previous behaviour but keep it optable for those

Re: [PATCH] lockdep: Show up to three levels for a deadlock scenario

2017-12-14 Thread Steven Rostedt
On Thu, 14 Dec 2017 18:59:31 +0100 Peter Zijlstra wrote: > On Thu, Dec 14, 2017 at 12:38:52PM -0500, Steven Rostedt wrote: > > > > Currently, when lockdep detects a possible deadlock scenario that involves 3 > > or more levels, it just shows the chain, and a CPU sequence order of the > > first a

Re: [RFC][PATCHv6 00/12] printk: introduce printing kernel thread

2017-12-14 Thread Steven Rostedt
On Thu, 14 Dec 2017 10:11:53 -0800 Tejun Heo wrote: > Hey, Steven. > > On Thu, Dec 14, 2017 at 12:55:06PM -0500, Steven Rostedt wrote: > > Yes! Please create a reproducer, because I still don't believe there is > > one. And it's all hand waving until there's an actual report that we can > > lock

Re: Adding init_task consolidation patches to linux-next

2017-12-14 Thread David Howells
Stephen Rothwell wrote: > I'd be much happier if these patches had any Reviewd-by or Tested-by tags ... They've now got: Tested-by: Tony Luck Tested-by: Will Deacon (arm64) attached. I've also added riscv support. David

[PATCH] fix typo in assignment of fs default overflow gid

2017-12-14 Thread Wolffhardt Schwabe
fix typo in assignment of fs default overflow gid The patch remains without practical effect since both macros carry identical values. Still, it might become a problem in the future if (for whatever reason) the default overflow uid and gid differ. The DEFAULT_FS_OVERFLOWGID macro was previously un

Re: [PATCH] pinctrl: axp209: add missing Kconfig dependencies

2017-12-14 Thread Randy Dunlap
On 12/14/2017 01:43 AM, Quentin Schulz wrote: > This fixes some compilation issues. > > GENERIC_PINCONF and OF at least for pinconf_generic_dt_*, PINMUX at > least for pinmux_ops and GPIOLIB for at least gpio_chip. > > Fixes: 23f75d7dfa92 ("pinctrl: axp209: add pinctrl features") > > Reported-by

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