[PATCH] pinctrl/amd: add get_direction handler

2018-02-16 Thread Daniel Kurtz
On boot, gpiochip_add_data() initializes the FLAG_IS_OUT bit in desc->flags iff its gpio_chip does not have ->direction_input() handler, else it is initialized to 0, which implies the GPIO is an "input". Later, the sysfs "direction" handler will use gpiod_get_direction() to get the current directi

Re: [PATCH v9 2/3] arm: dts: add Nuvoton NPCM750 device tree

2018-02-16 Thread Brendan Higgins
>>Arnd, do we have this documented somewhere for new maintainers to >>follow? > > I would add a few things that we had to go through before for Broadcom SoCs: > > - send your pull requests to a...@kernel.org and copy Arnd, Olof and Kevin > > - you would want to get your PGP key signed by as many p

Re: [PATCH 2/6] ARM: davinci: update the nand driver names

2018-02-16 Thread David Lechner
On 02/16/2018 10:47 AM, Bartosz Golaszewski wrote: From: Bartosz Golaszewski Since commit d8e22fb4ccac ("ARM: da850: add the nand dev_id to the clock lookup table") we can no longer correctly lookup the nand clock when booting in legacy mode. Said commit added a dev_id to the nand clock which m

Re: [tip:x86/pti] x86/speculation: Use IBRS if available before calling into firmware

2018-02-16 Thread David Woodhouse
On Fri, 2018-02-16 at 10:44 -0800, Tim Chen wrote: > > I encountered hang on a machine but not others when using the above > macro.  It is probably an alignment thing with ALTERNATIVE as the > problem went > away after I made the change below: > > Tim > > diff --git a/arch/x86/include/asm/nospec

Re: [PATCH v5 0/6] x86/apic: Fix restoring boot irq mode in reboot and kexec/kdump

2018-02-16 Thread Eric W. Biederman
Ingo Molnar writes: > * Baoquan He wrote: > >> This is v5 post. Newly added patch 0002 includes the change >> related to KEXEC_JUMP path. Patch 0003 only includes the >> regression fix. >> >> A regression bug was introduced in below commit. >> commit 522e66464467 ("x86/apic: Disable I/O APIC be

Re: [PATCH 11/23] kconfig: add 'shell-stdout' function

2018-02-16 Thread Linus Torvalds
On Fri, Feb 16, 2018 at 10:38 AM, Masahiro Yamada wrote: > This is the second built-in function, which retrieves the first line > of stdout from the given shell command. This is the only part I really don't much like in your patch series. Most of it is just lovely and looks very nice and powerfu

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

2018-02-16 Thread Arnaldo Carvalho de Melo
+0100) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-4.17-20180216 for you to fetch changes up to 21316ac6803d4a1aadd74b896db8d60a92cd1140: perf tests shell lib: Use a wildcard to remove the vfs_getname probe

[PATCH 08/41] perf report: Add support to display group output for non group events

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add support to display group output for if non grouped events are detected and user forces --group option. Now for non-group events recorded like: $ perf record -e 'cycles,instructions' ls you can still get group output by using --group option in report: $ perf report --gro

[PATCH 05/41] perf tests: Fix dwarf unwind for stripped binaries

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa When we strip the perf binary, dwarf unwind test stop to work. The reason is that strip will remove static function symbols, which we need to check for unwind. This change will keep this test working in cases where the global symbols are put into dynamic symbol table, which is th

[PATCH 10/41] perf stat: Add support to print counts after a period of time

2018-02-16 Thread Arnaldo Carvalho de Melo
From: yuzhoujian Introduce a new option to print counts after N milliseconds and update 'perf stat' documentation accordingly. Show below is the output of the new option for perf stat. $ perf stat --time 2000 -e cycles -a Performance counter stats for 'system wide': 157,260,423

[PATCH 14/41] perf machine: Move kernel mmap name into struct machine

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa It simplifies and centralizes the code. The kernel mmap name is set for machine type, which we know from the beginning, so there's no reason to generate it every time we need it. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlst

[PATCH 18/41] perf tools: Do not create kernel maps in sample__resolve()

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa There's no need for kernel maps to be allocated at this point - sample processing. We search for kernel maps using the kernel map_groups in machine::kmaps which is static. If vmlinux maps for any reason still don't exist, the search correctly fails because they are not in the map

[PATCH 21/41] perf tools: Use target->per_thread and target->system_wide flags

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Jin Yao Mathieu Poirier reports issue in commit ("73c0ca1eee3d perf thread_map: Enumerate all threads from /proc") that it has negative impact on 'perf record --per-thread'. It has the effect of creating a kernel event for each thread in the system for 'perf record --per-thread'. Mathieu P

[PATCH 23/41] perf cs-etm: Properly deal with cpu maps

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Mathieu Poirier This patch allows the CoreSight AUX info section to fit topologies where only a subset of all available CPUs are present, avoiding at the same time accessing the ETM configuration areas of CPUs that have been offlined. Signed-off-by: Mathieu Poirier Cc: Alexander Shishkin

[PATCH 25/41] perf kmem: Document a missing option & an argument

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Sangwon Hong First, 'perf kmem' has a '--force' option, but didn't document it on the man page. So add it. Second, the '--time' option has to get a value, but isn't documented on the man page. Describe it. Signed-off-by: Sangwon Hong Acked-by: Namhyung Kim Cc: Jiri Olsa Cc: Taeung Song

[PATCH 30/41] perf report: Fix description for --mem-mode

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Andi Kleen The "mem-loads" event only works when PEBS is enabled, so add the "/p" ("precise") suffix to the examples. Signed-off-by: Andi Kleen Cc: Jiri Olsa LPU-Reference: 20180209163909.9240-1-a...@firstfloor.org Link: https://lkml.kernel.org/n/tip-v0gcd4u9tktrvjjsp6y7o...@git.kernel.o

[PATCH 31/41] perf report: Fix wrong jump arrow

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Jin Yao When we use perf report interactive annotate view, we can see the position of jump arrow is not correct. For example, 1. perf record -b ... 2. perf report 3. In interactive mode, select Annotate 'function' Percent│ IPC Cycle │if (flag) 1.37

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

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Ravi Bangoria This should speed up accessing new system calls introduced with the kernel rather than waiting for libaudit updates to include them. Signed-off-by: Ravi Bangoria Cc: Alexander Shishkin Cc: Hendrik Brueckner Cc: Jiri Olsa Cc: Michael Ellerman Cc: Namhyung Kim Cc: Thomas

[PATCH 37/41] perf annotate: Scan cpuid for s390 and save machine type

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Thomas Richter Scan the cpuid string and extract the type number for later use. Signed-off-by: Thomas Richter Reviewed-by: Hendrik Brueckner Cc: Heiko Carstens Cc: Martin Schwidefsky Link: http://lkml.kernel.org/r/20180213151419.80737-2-tmri...@linux.vnet.ibm.com Signed-off-by: Arnaldo

[PATCH 41/41] perf tests shell lib: Use a wildcard to remove the vfs_getname probe

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo In some situations the vfs_getname is being added both as requested and with a _1 suffix (inlines?): probe:vfs_getname_1 (on getname_flags:63@acme/git/linux/fs/namei.c with pathname) This ends up making the cleanup to miss that one, as it removes just 'probe:v

[PATCH 40/41] perf test: Fix test case inet_pton to accept inlines.

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Thomas Richter Using Fedora 27 and latest Linux kernel the test case trace+probe_libc_inet_pton.sh fails again on s390. This time is the inlining of functions which does not match. After an update of the glibc (from 2.26-16 to 2.26-24) the output is different The expected output is:

[PATCH 39/41] perf test: Fix test case 23 for s390 z/VM or KVM guests

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Thomas Richter On s390 perf can be executed on a LPAR with support for hardware events (i. e. cycles) or on a z/VM or KVM guest where no hardware events are supported. In this environment use software event named cpu-clock for this test case. Use the cpuid infrastructure functions to deter

[PATCH 38/41] perf cpuid: Introduce a platform specific cpuid compare function

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Thomas Richter The function get_cpuid_str() is called by perf_pmu__getcpuid() and on s390 returns a complete description of the CPU and its capabilities, which is a comma separated list. To map the CPU type with the value defined in the pmu-events/arch/s390/mapfile.csv, introduce an archit

Re: [PATCH 1/6] nand: davinci: rename the platform driver

2018-02-16 Thread David Lechner
On 02/16/2018 01:19 PM, Boris Brezillon wrote: On Fri, 16 Feb 2018 17:47:07 +0100 Bartosz Golaszewski wrote: From: Bartosz Golaszewski Commit d8e22fb4ccac ("ARM: da850: add the nand dev_id to the clock lookup table") broke the nand support in board file mode for da850-based boards. Instead o

Re: [PATCH 0/2] efivars: reading variables can generate SMIs

2018-02-16 Thread Peter Jones
On Fri, Feb 16, 2018 at 10:48:32AM -0800, Joe Konno wrote: > On Fri, Feb 16, 2018 at 11:18:12AM +, Ard Biesheuvel wrote: > > On 16 February 2018 at 11:08, Borislav Petkov wrote: > > > On Fri, Feb 16, 2018 at 10:58:47AM +, Ard Biesheuvel wrote: > > >> By your own reasoning above, that's a n

Re: [PATCH 2/6] ARM: davinci: update the nand driver names

2018-02-16 Thread Boris Brezillon
On Fri, 16 Feb 2018 13:14:14 -0600 David Lechner wrote: > On 02/16/2018 10:47 AM, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > Since commit d8e22fb4ccac ("ARM: da850: add the nand dev_id to the clock > > lookup table") we can no longer correctly lookup the nand clock when >

[RFC][PATCH] x86: proposed new ARCH_CAPABILITIES MSR bit for RSB-underflow

2018-02-16 Thread Dave Hansen
Intel is considering adding a new bit to the IA32_ARCH_CAPABILITIES MSR to tell when RSB underflow might be happen. Feedback on this would be greatly appreciated before the specification is finalized. --- Background: The RSB is a microarchitectural structure that attempts to help predict the b

Re: [PATCH v5 1/3] sched: Stop nohz stats when decayed

2018-02-16 Thread Valentin Schneider
On 02/16/2018 05:02 PM, Vincent Guittot wrote: > On 16 February 2018 at 13:53, Valentin Schneider > wrote: >> On 02/14/2018 03:26 PM, Vincent Guittot wrote: >>> Stopped the periodic update of blocked load when all idle CPUs have fully >>> decayed. We introduce a new nohz.has_blocked that reflect i

Dobrý deň, prosím, môžeme hovoriť?

2018-02-16 Thread KATIE HIGGINS

Re: [PATCH 4.4 095/108] Bluetooth: btusb: Restore QCA Rome suspend/resume fix with a "rewritten" version

2018-02-16 Thread Greg Kroah-Hartman
On Fri, Feb 16, 2018 at 10:10:44AM -0800, Brian Norris wrote: > On Fri, Feb 16, 2018 at 07:48:50AM +0100, Greg Kroah-Hartman wrote: > > On Thu, Feb 15, 2018 at 06:31:48PM -0800, Brian Norris wrote: > > > On Thu, Feb 15, 2018 at 04:17:32PM +0100, Greg Kroah-Hartman wrote: > > > > 4.4-stable review p

[PATCH 36/41] perf record: Provide detailed information on s390 CPU

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Thomas Richter When perf record ... is setup to record data, the s390 cpu information was a fixed string "IBM/S390". Replace this string with one containing more information about the machine. The information included in the cpuid is a comma separated list: manufacturer,type,model-capa

[PATCH 35/41] perf trace powerpc: Use generated syscall table

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Ravi Bangoria 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 and s390. Signed-off-by:

Re: [PATCH v5 0/3] Support Perf Extension on AMD KVM guests

2018-02-16 Thread Natarajan, Janakarajan
On 2/5/2018 1:24 PM, Janakarajan Natarajan wrote: This patchset adds support for Perf Extension on AMD KVM guests. When perf runs on a guest with family = 15h || 17h, the MSRs that are accessed, when the Perf Extension flag is made available, differ from the existing K7 MSRs. The accesses are to

[PATCH 33/41] tools include powerpc: Grab a copy of arch/powerpc/include/uapi/asm/unistd.h

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Ravi Bangoria Will be used for generating the syscall id/string translation table. Committer notes: Update it already to catch with these csets applied since Ravi first submitted this patch: 3350eb2ea127 powerpc: sys_pkey_mprotect() system call 9499ec1b5e82 powerpc: sys_pkey_alloc()

Re: [PATCH v4 1/4] dt-bindings: arm: Document kryo385 cpu

2018-02-16 Thread Doug Anderson
Hi, On Thu, Feb 15, 2018 at 10:05 PM, Rajendra Nayak wrote: > Document the compatible string for the Kryo385 cpus found in qualcomm > SoCs. > > Signed-off-by: Rajendra Nayak > Reviewed-by: Rob Herring > --- > Documentation/devicetree/bindings/arm/cpus.txt | 1 + > 1 file changed, 1 insertion(+

Re: [PATCH v4 3/4] arm64: dts: sdm845: Add minimal dts/dtsi files for sdm845 SoC and MTP

2018-02-16 Thread Doug Anderson
Hi, On Thu, Feb 15, 2018 at 10:05 PM, Rajendra Nayak wrote: > Add a skeletal sdm845 SoC dtsi and MTP board dts/dtsi files > > Signed-off-by: Rajendra Nayak > Reviewed-by: Doug Anderson > --- > arch/arm64/boot/dts/qcom/Makefile | 1 + > arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 15 ++ >

Re: [PATCH v4 2/4] dt-bindings: qcom: Add SDM845 bindings

2018-02-16 Thread Doug Anderson
Hi, On Thu, Feb 15, 2018 at 10:05 PM, Rajendra Nayak wrote: > Add a SoC string 'sdm845' for the qualcomm SDM845 SoC > > Signed-off-by: Rajendra Nayak > --- > Documentation/devicetree/bindings/arm/qcom.txt | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Douglas Anderson

[PATCH v1 5/7] lib/vsprintf: Make decspec global

2018-02-16 Thread Andy Shevchenko
There are places where default specification to print decimal numbers is in use. Make it global and convert existing users. Signed-off-by: Andy Shevchenko --- lib/vsprintf.c | 21 + 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/lib/vsprintf.c b/lib/vsprintf.

[PATCH v1 7/7] lib/vsprintf: Mark expected switch fall-through

2018-02-16 Thread Andy Shevchenko
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Andy Shevchenko --- lib/vsprintf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 20c0ab9faba5..bf0c45788100 100644 --- a/lib/

Re: [PATCH v4 4/4] arm64: dts: sdm845: Add serial console support

2018-02-16 Thread Doug Anderson
Hi, On Thu, Feb 15, 2018 at 10:05 PM, Rajendra Nayak wrote: > Add the qup uart node and geni se instance needed to > support the serial console on the MTP. > > Signed-off-by: Rajendra Nayak > --- > arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 39 > + > arch/arm64/b

[PATCH v1 4/7] lib/vsprintf: Remove useless NULL checks

2018-02-16 Thread Andy Shevchenko
The pointer can't be NULL since it's first what has been done in the pointer(). Remove useless checks. Note we leave check for !CONFIG_HAVE_CLK to make compiler to optimize code away when possible. Cc: Petr Mladek Signed-off-by: Andy Shevchenko --- lib/vsprintf.c | 13 + 1 file ch

[PATCH v1 6/7] lib/vsprintf: Make strspec global

2018-02-16 Thread Andy Shevchenko
There is at least one new user is coming where default specification to print strings is in use. Make it global. Signed-off-by: Andy Shevchenko --- lib/vsprintf.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 3a02fcaf8ac8..

[PATCH v1 2/7] lib/vsprintf: Deduplicate pointer_string()

2018-02-16 Thread Andy Shevchenko
There is an exact code at the end of ptr_to_id(). Replace it by calling pointer_string() directly. This is followup to the commit ad67b74d2469 ("printk: hash addresses printed with %p"). Cc: Tobin C. Harding Signed-off-by: Andy Shevchenko --- lib/vsprintf.c | 13 ++--- 1 file changed

[PATCH v1 3/7] lib/vsprintf: Replace ' ' with '_' before crng is ready

2018-02-16 Thread Andy Shevchenko
From: Shunyong Yang Before crng is ready, output of "%p" composes of "(ptrval)" and left padding spaces for alignment as no random address can be generated. This seems a little strange when default string width is larger than strlen("(ptrval)"). For example, when irq domain names are built with

[PATCH v1 1/7] lib/test_printf: Mark big constant with ULL

2018-02-16 Thread Andy Shevchenko
Sparse complains that constant is so bit for unsigned long on 64-bit architecture. lib/test_printf.c:217:54: warning: constant 0x0123456789ab is so big it is unsigned long lib/test_printf.c:246:54: warning: constant 0x0123456789ab is so big it is unsigned long To satisfy everyone, mark

Re: [PATCH v1] platform/x86: wmi: Replace kmalloc + sprintf() with kasprintf()

2018-02-16 Thread Andy Shevchenko
On Fri, Feb 16, 2018 at 5:55 PM, David Laight wrote: >> kasprintf() does the job of two: kmalloc() and sprintf(). >> Replace two calls with one. > ... >> - buf = kmalloc(strlen(wdriver->driver.name) + 5, GFP_KERNEL); >> + buf = kasprintf(GFP_KERNEL, "wmi/%s", wdriver->driv

RE: [PATCH 0/2] efivars: reading variables can generate SMIs

2018-02-16 Thread Luck, Tony
> tl;dr: I think changing everything to 0600 is probably completely fine, > and whitelisting is probably pointless. But do you speak for all users? It will just take one person complaining that efibootmgr no longer shows them what it used to show to bring down the wrath of Linus on our (specific

[PATCH 29/41] coresight: Update documentation for perf usage

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Robert Walker Add notes on using perf to collect and analyze CoreSight trace Signed-off-by: Robert Walker Cc: Mathieu Poirier Cc: coresi...@lists.linaro.org Cc: linux-arm-ker...@lists.infradead.org Link: http://lkml.kernel.org/r/1518607481-4059-4-git-send-email-robert.wal...@arm.com Sig

[PATCH 32/41] perf report: Fix memory corruption in --branch-history mode --branch-history

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Jin Yao reported memory corrupton in perf report with branch info used for stack trace: > Following command lines will cause perf crash. > perf record -j call -g -a > perf report --branch-history > > *** Error in `perf': double free or corruption (!prev): 0x10

[PATCH 26/41] perf mem: Document a missing option

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Sangwon Hong Add the missing --force option on the man page. Signed-off-by: Sangwon Hong Acked-by: Namhyung Kim Cc: Jiri Olsa Cc: Taeung Song Link: http://lkml.kernel.org/r/1518381517-30766-2-git-send-email-qpa...@gmail.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Docu

[PATCH 28/41] perf inject: Emit instruction records on ETM trace discontinuity

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Robert Walker There may be discontinuities in the ETM trace stream due to overflows or ETM configuration for selective trace. This patch emits an instruction sample with the pending branch stack when a TRACE ON packet occurs indicating a discontinuity in the trace data. A new packet type

[PATCH] x86/microcode/intel: Check microcode revision before updating sibling threads

2018-02-16 Thread Ashok Raj
After updating microcode on one of the threads in the core, the thread sibling automatically gets the update since the microcode resources are shared. Check the ucode revision on the cpu before performing a ucode update. Signed-off-by: Ashok Raj Cc: X86 ML Cc: LKML --- arch/x86/kernel/cpu/micr

[PATCH 27/41] perf cs-etm: Inject capabilitity for CoreSight traces

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Robert Walker Added user space perf functionality to translate CoreSight traces into instruction events with branch stack. To invoke the new functionality, use the perf inject tool with --itrace=il. For example, to translate the ETM trace from perf.data into last branch records in a new in

[PATCH 24/41] perf annotate: Add missing arguments in Man page

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Jaecheol Shin Some options must require an argument. But input, stdio-color, cpu have no them. So I added it. Signed-off-by: Jaecheol Shin Cc: Jiri Olsa Cc: Namhyung Kim Cc: Taeung Song Link: http://lkml.kernel.org/r/20180207095205.62715-1-jcgod...@gmail.com Signed-off-by: Arnaldo Car

Re: [PATCH 1/6] nand: davinci: rename the platform driver

2018-02-16 Thread Boris Brezillon
On Fri, 16 Feb 2018 17:47:07 +0100 Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Commit d8e22fb4ccac ("ARM: da850: add the nand dev_id to the clock > lookup table") broke the nand support in board file mode for > da850-based boards. Instead of reverting it and breaking the DT users

[PATCH 22/41] perf auxtrace arm: Fixing uninitialised variable

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Mathieu Poirier When working natively on arm64 the compiler gets pesky and complains that variable 'i' is uninitialised, something that breaks the compilation. Here no further checks are needed since variable 'found_spe' can only be true if variable 'i' has been initialised as part of the

[PATCH 20/41] perf cs-etm: Freeing allocated memory

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Mathieu Poirier This patch frees all the memory allocated in function cs_etm__alloc_queue(). Signed-off-by: Mathieu Poirier Cc: Alexander Shishkin Cc: Jin Yao Cc: Namhyung Kim Cc: Peter Zijlstra Cc: linux-arm-ker...@lists.infradead.org Link: http://lkml.kernel.org/r/1518467557-18505-

[PATCH 19/41] perf tests: Use arch__compare_symbol_names to compare symbols

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa The symbol search called by machine__find_kernel_symbol_by_name is using internally arch__compare_symbol_names function to compare 2 symbol names, because different archs have different ways of comparing symbols. Mostly for skipping '.' prefixes and similar. In test 1 when we try

[PATCH 17/41] perf machine: Remove machine__load_kallsyms()

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa The current machine__load_kallsyms() function has no caller, so replace it directly with __machine__load_kallsyms(). Also remove the no_kcore argument as it was always called with a 'true' value. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: David Ahern Cc: Namhyung Kim

Re: [PATCH 0/2] efivars: reading variables can generate SMIs

2018-02-16 Thread Ard Biesheuvel
On 16 February 2018 at 19:22, Peter Jones wrote: > On Fri, Feb 16, 2018 at 10:48:32AM -0800, Joe Konno wrote: >> On Fri, Feb 16, 2018 at 11:18:12AM +, Ard Biesheuvel wrote: >> > On 16 February 2018 at 11:08, Borislav Petkov wrote: >> > > On Fri, Feb 16, 2018 at 10:58:47AM +, Ard Biesheuve

[PATCH 16/41] perf machine: Don't search for active kernel start in __machine__create_kernel_maps

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa We should not search for the kernel start address in __machine__create_kernel_maps(), because it's being used in the 'report' code path, where we are interested in kernel MMAP data address (the one recorded via 'perf record', possibly on another machine, or an older or newer kerne

Re: [PATCH 0/7] fujitsu-laptop: Miscellaneous cleanups

2018-02-16 Thread Darren Hart
On Sun, Feb 11, 2018 at 10:07:20PM +0100, Michał Kępień wrote: > This is the second of the two patch series I started preparing back in > June 2017 [1]. It took me this long to post it purely due to permanent > spare time shortage, not because the changes are complicated. > > The patch series co

[PATCH 15/41] perf machine: Generalize machine__set_kernel_mmap()

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa So it could be called without event object, just with start and end values. It will be used in following patch. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20180215122635.24029-6-jo...@ker

[PATCH 12/41] perf symbols: Check if we read regular file in dso__load()

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa The current code in dso__load() calls is_regular_file(), but it checks its return value only after calling symsrc__init(). That can make symsrc__init() block in elf_* functions on reading the file if the file happens to be device and not regular one. Call symsrc__init() only for

[PATCH 13/41] perf machine: Free root_dir in machine__init() error path

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Free root_dir in machine__init() error path. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20180215122635.24029-4-jo...@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/ut

Re: [RFC][PATCH] x86: proposed new ARCH_CAPABILITIES MSR bit for RSB-underflow

2018-02-16 Thread Linus Torvalds
On Fri, Feb 16, 2018 at 11:17 AM, Dave Hansen wrote: > > Intel is considering adding a new bit to the IA32_ARCH_CAPABILITIES > MSR to tell when RSB underflow might be happen. Feedback on this > would be greatly appreciated before the specification is finalized. Yes, please. It would be lovely to

[PATCH 11/41] tools lib symbol: Skip non-address kallsyms line

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Adding check on failed attempt to parse the address and skip the line parsing early in that case. The address can be replaced with '(null)' string in case user don't have enough permissions, like: $ cat /proc/kallsyms (null) A irq_stack_union (null) A __per_cpu_sta

[PATCH 09/41] perf stat: Add support to print counts for fixed times

2018-02-16 Thread Arnaldo Carvalho de Melo
From: yuzhoujian Introduce a new option to print counts for fixed number of times and update 'perf stat' documentation accordingly. Show below is the output of the new option for perf stat. $ perf stat -I 1000 --interval-count 2 -e cycles -a # time counts unit events

[PATCH 07/41] perf report: Ask for ordered events for --tasks option

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa If we have the time in, keep the events in time order. Committer notes: Trying to be more verbose, what actual effect this will have in this particular case? Before and after this patch shows the artifacts: --- /tmp/before 2018-02-06 15:40:29.536411625 -0300 +++ /tmp/after

[PATCH 06/41] perf tools: Fix comment for sort__* compare functions

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa In commit 2f15bd8c6c6e ("perf tools: Fix "Command" sort_entry's cmp and collapse function") we switched from pointer to string comparison. But failed to remove related comments. Removing them and adding another one to warn before pointer comparison in here. Signed-off-by: Jiri O

[PATCH 03/41] tools lib api fs: Add filename__read_xll function

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Adding filename__read_xll function to be able to read files with hex numbers in, which do not have 0x prefix. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20180206181813.10943-5-jo...@kerne

[PATCH 02/41] perf script: Add --show-round-event to display PERF_RECORD_FINISHED_ROUND

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Adding --show-round-event to display PERF_RECORD_FINISHED_ROUND events like: # perf script --show-round-events 2>/dev/null yes 8591 [002] 124177.397597: 18 cpu/mem-stores/P: ff... yes 8591 [002] 124177.397615: 1 cpu/mem

[PATCH 01/41] perf record: Put new line after target override warning

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa There's no new-line after target-override warning, now: $ perf record -a --per-thread Warning: SYSTEM/CPU switch overriding PER-THREAD^C[ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 0.705 MB perf.data (2939 samples) ] with patch: $

Re: [PATCH 4.15 000/202] 4.15.4-stable review

2018-02-16 Thread Greg Kroah-Hartman
On Fri, Feb 16, 2018 at 06:28:23AM -0800, Guenter Roeck wrote: > On 02/15/2018 07:15 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.15.4 release. > > There are 202 patches in this series, all will be posted as a response > > to this one. If anyone has any

[PATCH 04/41] tools lib api fs: Add sysfs__read_xll function

2018-02-16 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Adding sysfs__read_xll function to be able to read sysfs files with hex numbers in, which do not have 0x prefix. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20180206181813.10943-6-jo...@ke

Re: [RFC][PATCH] x86: proposed new ARCH_CAPABILITIES MSR bit for RSB-underflow

2018-02-16 Thread Linus Torvalds
On Fri, Feb 16, 2018 at 11:38 AM, Linus Torvalds wrote: > > Of course, your patch still doesn't allow for "we claim to be skylake > for various other independent reasons, but the RSB issue is fixed". .. maybe nobody ever has a reason to do that, though? Who knows, virtualization people may simpl

Re: [PATCH 4.4 000/108] 4.4.116-stable review

2018-02-16 Thread Greg Kroah-Hartman
On Fri, Feb 16, 2018 at 06:12:56AM -0800, Guenter Roeck wrote: > On 02/15/2018 07:15 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.4.116 release. > > There are 108 patches in this series, all will be posted as a response > > to this one. If anyone has any

Re: [PATCH 3.18 00/45] 3.18.95-stable review

2018-02-16 Thread Greg Kroah-Hartman
On Fri, Feb 16, 2018 at 06:11:44AM -0800, Guenter Roeck wrote: > On 02/15/2018 07:16 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 3.18.95 release. > > There are 45 patches in this series, all will be posted as a response > > to this one. If anyone has any

Re: [PATCH 4.14 000/195] 4.14.20-stable review

2018-02-16 Thread Greg Kroah-Hartman
On Fri, Feb 16, 2018 at 06:27:09AM -0800, Guenter Roeck wrote: > On 02/15/2018 10:00 PM, Naresh Kamboju wrote: > > On 15 February 2018 at 20:44, Greg Kroah-Hartman > > wrote: > > > This is the start of the stable review cycle for the 4.14.20 release. > > > There are 195 patches in this series, all

Re: [PATCH 4.9 00/88] 4.9.82-stable review

2018-02-16 Thread Greg Kroah-Hartman
On Fri, Feb 16, 2018 at 06:19:46AM -0800, Guenter Roeck wrote: > On 02/15/2018 07:16 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.9.82 release. > > There are 88 patches in this series, all will be posted as a response > > to this one. If anyone has any i

[PATCH v4] rtc: isl12026: Add driver.

2018-02-16 Thread David Daney
The ISL12026 is a combination RTC and EEPROM device with I2C interface. The standard RTC driver interface is provided. The EEPROM is accessed via the NVMEM interface via the "eeprom0" directory in the sysfs entry for the device. Reviewed-by: Andy Shevchenko Signed-off-by: David Daney --- Chang

Very Important

2018-02-16 Thread Mr. Lee
Hi, I have a business proposal for you, no risk involved. Pls reply for brief. Lee

[PATCH v2] iio:pressure:ms5611: Fix coding style in probe function

2018-02-16 Thread rodrigosiqueira
This patch fixes the checkpatch.pl warning and error: iio/pressure/ms5611.h:66: ERROR: code indent should use tabs where possible iio/pressure/ms5611.h:66: WARNING: please, no spaces at the start of a line iio/pressure/ms5611.h:66: ERROR: "foo* bar" should be "foo *bar" Signed-off-by: Rodrigo Siq

Re: [RFC][PATCH] x86: proposed new ARCH_CAPABILITIES MSR bit for RSB-underflow

2018-02-16 Thread Arjan van de Ven
On 2/16/2018 11:43 AM, Linus Torvalds wrote: On Fri, Feb 16, 2018 at 11:38 AM, Linus Torvalds wrote: Of course, your patch still doesn't allow for "we claim to be skylake for various other independent reasons, but the RSB issue is fixed". .. maybe nobody ever has a reason to do that, though?

Re: [PATCH 08/23] kconfig: add 'macro' keyword to support user-defined function

2018-02-16 Thread Nicolas Pitre
On Sat, 17 Feb 2018, Masahiro Yamada wrote: > Now, we got a basic ability to test compiler capability in Kconfig. > > config CC_HAS_STACKPROTECTOR > bool > default $(shell $CC -Werror -fstack-protector -c -x c /dev/null -o > /dev/null) > > This works, but it is ugly to repeat th

Re: [PATCH 0/2] efivars: reading variables can generate SMIs

2018-02-16 Thread Matthew Garrett
On Fri, Feb 16, 2018 at 11:31 AM Ard Biesheuvel wrote: > This is why I was leaning towards applying these patches: not breaking > userland is an important rule, but it does not imply every aspect of > behavior observable by userland is set in stone. In other words, I > agree with Peter that making

Re: [PATCH v1] platform/x86: wmi: Replace kmalloc + sprintf() with kasprintf()

2018-02-16 Thread Darren Hart
On Fri, Feb 16, 2018 at 03:55:24PM +, David Laight wrote: > From: Andy Shevchenko > > Sent: 16 February 2018 15:40 > > > > kasprintf() does the job of two: kmalloc() and sprintf(). > > Replace two calls with one. > ... > > - buf = kmalloc(strlen(wdriver->driver.name) + 5, GFP_KERNEL);

Re: [PATCH 2/3] x86/mm: introduce __PAGE_KERNEL_GLOBAL

2018-02-16 Thread Nadav Amit
Dave Hansen wrote: > On 02/16/2018 10:25 AM, Nadav Amit wrote: >>> +#ifdef CONFIG_PAGE_TABLE_ISOLATION >>> +#define __PAGE_KERNEL_GLOBAL 0 >>> +#else >>> +#define __PAGE_KERNEL_GLOBAL _PAGE_GLOBAL >>> +#endif >> ... >>> --- a/arch/x86/mm/pageattr.c~kpti-no-global-for-k

Re: [PATCH 0/2] efivars: reading variables can generate SMIs

2018-02-16 Thread Peter Jones
On Fri, Feb 16, 2018 at 07:32:17PM +, Luck, Tony wrote: > > tl;dr: I think changing everything to 0600 is probably completely fine, > > and whitelisting is probably pointless. > > But do you speak for all users? No, I just write their tools :) > It will just take one person complaining tha

Re: [PATCH 4.9 00/88] 4.9.82-stable review

2018-02-16 Thread Greg Kroah-Hartman
On Fri, Feb 16, 2018 at 08:21:17PM +0100, Greg Kroah-Hartman wrote: > On Fri, Feb 16, 2018 at 06:19:46AM -0800, Guenter Roeck wrote: > > On 02/15/2018 07:16 AM, Greg Kroah-Hartman wrote: > > > This is the start of the stable review cycle for the 4.9.82 release. > > > There are 88 patches in this se

Re: [PATCH 2/3] x86/mm: introduce __PAGE_KERNEL_GLOBAL

2018-02-16 Thread Dave Hansen
On 02/16/2018 11:54 AM, Nadav Amit wrote: >> But I don't really want to hide that gunk in a macro like that. It >> might make more sense as a static inline. I'll give that a shot and resent. > Since determining whether PTI is on is done in several places in the kernel, > maybe there should a sing

Re: [PATCH 3.18 00/45] 3.18.95-stable review

2018-02-16 Thread Greg Kroah-Hartman
On Fri, Feb 16, 2018 at 12:07:32PM -0800, Kevin Hilman wrote: > kernelci.org bot writes: > > > stable-rc/linux-3.18.y boot: 63 boots: 2 failed, 51 passed with 5 offline, > > 5 conflicts (v3.18.94-46-g72255f521206) > > > > Full Boot Summary: > > https://kernelci.org/boot/all/job/stable-rc/branch

Re: [PATCH v4] rtc: isl12026: Add driver.

2018-02-16 Thread Andy Shevchenko
On Fri, Feb 16, 2018 at 9:44 PM, David Daney wrote: > The ISL12026 is a combination RTC and EEPROM device with I2C > interface. The standard RTC driver interface is provided. The EEPROM > is accessed via the NVMEM interface via the "eeprom0" directory in the > sysfs entry for the device. > +con

Re: [PATCH] drm/sun4i: fix HSYNC and VSYNC polarity

2018-02-16 Thread Maxime Ripard
On Thu, Feb 15, 2018 at 06:54:48PM +0100, Giulio Benetti wrote: > Differently from other Lcd signals, HSYNC and VSYNC signals > result inverted if their bits are cleared to 0. > > Invert their settings of IO_POL register. > > Signed-off-by: Giulio Benetti Applied, thanks! Maxime -- Maxime Rip

[PATCH v2] staging: android: ion: Initialize dma_address of new sg list

2018-02-16 Thread Liam Mark
Fix the dup_sg_table function to initialize the dma_address of the new sg list entries instead of the source dma_address entries. Since ION duplicates the sg_list this issue does not appear to result in an actual bug. Signed-off-by: Liam Mark Acked-by: Laura Abbott --- Changes in v2: - Add to

[PATCH 0/3] Improve and extend checkpatch.pl Kconfig help text checks

2018-02-16 Thread Ulf Magnusson
Hello, This patchset contains some improvements for the Kconfig help text check in scripts/checkconfig.pl: - Commits 1 and 2 make the check more robust by checking menuconfig symbols and choices as well as symbols defined with 'config', and by making the detection of definition boundaries

[PATCH 3/3] checkpatch: kconfig: prefer 'help' over '---help---'

2018-02-16 Thread Ulf Magnusson
IMO, we should discourage '---help---' for new help texts, even in cases where it would be consistent with other help texts in the file. This will help if we ever want to get rid of '---help---' in the future. Also simplify the code to only check for exactly '---help---'. Since commit c2264564df3d

[PATCH 1/3] checkpatch: kconfig: recognize more prompts when checking help texts

2018-02-16 Thread Ulf Magnusson
The check for a missing or short help text only considers symbols with a prompt, but doesn't recognize any of the following as a prompt: bool 'foo' tristate 'foo' prompt "foo" prompt 'foo' Make the check recognize those too. Signed-off-by: Ulf Magnusson --- scri

[PATCH 2/3] checkpatch: kconfig: check help texts for menuconfig and choice

2018-02-16 Thread Ulf Magnusson
Currently, only Kconfig symbols are checked for a missing or short help text, and are only checked if they are defined with the 'config' keyword. To make the check more general, extend it to also check help texts for choices and for symbols defined with the 'menuconfig' keyword. This increases th

Re: [PATCH 4.9 00/88] 4.9.82-stable review

2018-02-16 Thread Greg Kroah-Hartman
On Fri, Feb 16, 2018 at 08:54:56PM +0100, Greg Kroah-Hartman wrote: > On Fri, Feb 16, 2018 at 08:21:17PM +0100, Greg Kroah-Hartman wrote: > > On Fri, Feb 16, 2018 at 06:19:46AM -0800, Guenter Roeck wrote: > > > On 02/15/2018 07:16 AM, Greg Kroah-Hartman wrote: > > > > This is the start of the stabl

<    2   3   4   5   6   7   8   9   >