[PATCH 2/9] mm: fix check for reclaimable pages in PF_MEMALLOC reclaim throttling

2017-02-28 Thread Johannes Weiner
PF_MEMALLOC direct reclaimers get throttled on a node when the sum of all free pages in each zone fall below half the min watermark. During the summation, we want to exclude zones that don't have reclaimables. Checking the same pgdat over and over again doesn't make sense. Fixes: 599d0c954f91 ("mm

Re: [PATCH 3/4] Input: ad7879 - try parsing properties on non-DT systems

2017-02-28 Thread Michael Hennerich
On 28.02.2017 23:08, Dmitry Torokhov wrote: We have switched the driver to use generic device properties API, so there is no need to check for presence of DT node before trying parse properties. Signed-off-by: Dmitry Torokhov Acked-by: Michael Hennerich --- drivers/input/touchscreen/ad787

[PATCH 7/9] mm: delete NR_PAGES_SCANNED and pgdat_reclaimable()

2017-02-28 Thread Johannes Weiner
NR_PAGES_SCANNED counts number of pages scanned since the last page free event in the allocator. This was used primarily to measure the reclaimability of zones and nodes, and determine when reclaim should give up on them. In that role, it has been replaced in the preceeding patches by a different m

Re: [PATCH 1/4] Input: ad7879 - make sure we set up drvdata

2017-02-28 Thread Michael Hennerich
On 28.02.2017 23:08, Dmitry Torokhov wrote: The conversion to devm accidentally removed setting up of I2C client data upon successful probe of the touchscreen. Let's move this setting into the core, so we do not forger about it again. Fixes: 381f688eee3d ("Input: ad7879 - use more devm interface

[PATCH 1/9] mm: fix 100% CPU kswapd busyloop on unreclaimable nodes

2017-02-28 Thread Johannes Weiner
Jia He reports a problem with kswapd spinning at 100% CPU when requesting more hugepages than memory available in the system: $ echo 4000 >/proc/sys/vm/nr_hugepages top - 13:42:59 up 3:37, 1 user, load average: 1.09, 1.03, 1.01 Tasks: 1 total, 1 running, 0 sleeping, 0 stopped, 0 zomb

[PATCH 6/9] mm: don't avoid high-priority reclaim on memcg limit reclaim

2017-02-28 Thread Johannes Weiner
246e87a93934 ("memcg: fix get_scan_count() for small targets") sought to avoid high reclaim priorities for memcg by forcing it to scan a minimum amount of pages when lru_pages >> priority yielded nothing. This was done at a time when reclaim decisions like dirty throttling were tied to the priority

[PATCH 3/9] mm: remove seemingly spurious reclaimability check from laptop_mode gating

2017-02-28 Thread Johannes Weiner
1d82de618ddd ("mm, vmscan: make kswapd reclaim in terms of nodes") allowed laptop_mode=1 to start writing not just when the priority drops to DEF_PRIORITY - 2 but also when the node is unreclaimable. That appears to be a spurious change in this patch as I doubt the series was tested with laptop_mod

Re: [RFC PATCH 1/2] mtd: spi-nor: Introduce bounce buffer to handle vmalloc'd buffers

2017-02-28 Thread Vignesh R
On Wednesday 01 March 2017 03:09 AM, Richard Weinberger wrote: > Vignesh, > > Am 27.02.2017 um 13:08 schrieb Vignesh R: >> Filesystems like UBIFS may pass vmalloc'd buffers to SPI NOR layer which >> will end up in SPI layer. SPI core does try to handle such buffers (see >> spi_map_buf()) by doin

Re: [RFC PATCH 2/2] mtd: devices: m25p80: Enable spi-nor bounce buffer support

2017-02-28 Thread Vignesh R
On Wednesday 01 March 2017 03:11 AM, Richard Weinberger wrote: > Vignesh, > > Am 27.02.2017 um 13:08 schrieb Vignesh R: >> Many SPI controller drivers use DMA to read/write from m25p80 compatible >> flashes. Therefore enable bounce buffers support provided by spi-nor >> framework to take care of

Re: [PATCH SPEAKUP v2 3/3] use spkeaup_allocate as per required context

2017-02-28 Thread Greg KH
On Tue, Feb 28, 2017 at 01:57:55PM +0530, Pranay Kr. Srivastava wrote: > speakup_allocate used GFP_ATOMIC for allocations > even while during initialization due to it's use > in notifier call. > > Pass GFP_ flags as well to speakup_allocate depending > on the context it is called in. > > Signed-o

Re: [PATCH SPEAKUP v2 1/3] return same error value from spk_set_key_info

2017-02-28 Thread Greg KH
On Tue, Feb 28, 2017 at 01:57:53PM +0530, Pranay Kr. Srivastava wrote: > This patch makes spk_set_key_info return -EINVAL > in case of failure instead of returning 4 different > values for the type of error that occurred. > > Print the offending values instead as debug message. > > Signed-off-by:

Re: [PATCH V3 2/7] PM / OPP: Introduce "domain-performance-state" binding to OPP nodes

2017-02-28 Thread Rajendra Nayak
On 02/28/2017 09:22 PM, Rob Herring wrote: > On Tue, Feb 28, 2017 at 9:14 AM, Ulf Hansson wrote: >> [...] >> ---> Parent domain-2 (Contains Perfomance states) | |

[PATCH] lockdep: Teach lockdep about memalloc_noio_save

2017-02-28 Thread Nikolay Borisov
Commit 21caf2fc1931 ("mm: teach mm by current context info to not do I/O during memory allocation") added the memalloc_noio_(save|restore) functions to enable people to modify the MM behavior by disbaling I/O during memory allocation. This prevents allocation paths recursing back into the filesyste

[PATCH ALT4] audit: show fstype:pathname for entries with anonymous parents

2017-02-28 Thread Richard Guy Briggs
Tracefs or debugfs were causing hundreds to thousands of null PATH records to be associated with the init_module and finit_module SYSCALL records on a few modules when the following rule was in place for startup: -a always,exit -F arch=x86_64 -S init_module -F key=mod-load Fill in the file

Re: Problem on SCTP

2017-02-28 Thread Xin Long
On Wed, Mar 1, 2017 at 12:15 PM, Sun Paul wrote: > Hi Xin > > I have used 3.10.0-514.6.2.el7.x86_64 on Centos7 and tessted. the > same issue still occur. > > any idea? > what I can only see is : 03:32:37.928679 IP 10.165.250.22.3868 > 192.168.2.13.40001: sctp (1) [HB REQ] 03:32:37.928717 IP 192.1

Re: [PATCH V11 05/10] acpi: apei: handle SEA notification type for ARMv8

2017-02-28 Thread Xie XiuQi
Hi Tyler, On 2017/2/22 5:21, Tyler Baicar wrote: > ARM APEI extension proposal added SEA (Synchronous External Abort) > notification type for ARMv8. > Add a new GHES error source handling function for SEA. If an error > source's notification type is SEA, then this function can be registered > into

Re: [PATCH 4/4] Input: ad7879 - do not manipulate capability bits directly

2017-02-28 Thread Michael Hennerich
On 28.02.2017 23:08, Dmitry Torokhov wrote: Instead of manipulating capabilities bits of input device directly, let's use input_set_capability() API. Also, stop setting ABS_X/Y bits explicitly as input_set_abs_params() does this for us. Signed-off-by: Dmitry Torokhov Acked-by: Michael Henner

[PATCH 2/4] MIPS: microMIPS: Fix decoding of addiusp instruction

2017-02-28 Thread Matt Redfearn
Commit 34c2f668d0f6 ("MIPS: microMIPS: Add unaligned access support.") added handling of microMIPS instructions to manipulate the stack pointer. Unfortunately the decoding of the addiusp instruction was incorrect, and performed a left shift by 2 bits to the raw immediate, rather than decoding the i

[PATCH 3/4] MIPS: Stacktrace: Fix __usermode() of uninitialised regs

2017-02-28 Thread Matt Redfearn
Commit 81a76d7119f6 ("MIPS: Avoid using unwind_stack() with usermode") added a check if the passed regs are from user mode, and perform a raw backtrace if so. When WARN() is invoked, __dump_stack calls show_stack() with NULL task and stack pointers. This leads show_stack to create a pt_regs struct

Re: [RFC 0/5] iwlwifi: enhance final opmode work

2017-02-28 Thread Johannes Berg
> One of the limitations of using async_schedule() though is we cannot > request_module() synchronously on async calls given that the module > initialization code will call async_synchronize_full() if the module > being initialized happened to have used async work on its > initialization routine,

[PATCH 4/4] MIPS: microMIPS: Fix decoding of swsp16 instruction

2017-02-28 Thread Matt Redfearn
When the immediate encoded in the instruction is accessed, it is sign extended due to being a signed value being assigned to a signed integer. The ISA specifies that this operation is an unsigned operation. The sign extension leads us to incorrectly decode: 801e9c8e: cbf1sw

Re: [PATCH 1/1] drivers/misc: Add Intel System ID driver

2017-02-28 Thread Loh, Tien Hock
Arnd, Greg, I checked the attributes returned by the soc attribute subsystem, but it seems that it is lacking something equivalent to timestamp in the Intel System ID controller. Do you think it is better to add a new attribute (named timestamp) to soc or create a new sysfs entry like what I did?

[PATCH 1/4] MIPS: Handle non word sized instructions when examining frame

2017-02-28 Thread Matt Redfearn
Commit b6c7a324df37 ("MIPS: Fix get_frame_info() handling of microMIPS function size") goes some way to fixing get_frame_info() to iterate over microMIPS instuctions, but increments the instruction pointer using a postincrement of the instruction pointer, which is of union mips_instruction type. Si

[PATCH 04/44] tools/power turbostat: decode Baytrail CC6 and MC6 demotion configuration

2017-02-28 Thread Len Brown
From: Len Brown with --debug, see: cpu0: MSR_CC6_DEMOTION_POLICY_CONFIG: 0x (DISable-CC6-Demotion) cpu0: MSR_MC6_DEMOTION_POLICY_CONFIG: 0x (DISable-MC6-Demotion) Note that the hardware default is to enable demotion, and Linux started clearing these registers in 3.17. Signed-of

Re: [PATCH v5 06/13] lockdep: Implement crossrelease feature

2017-02-28 Thread Byungchul Park
On Tue, Feb 28, 2017 at 07:15:47PM +0100, Peter Zijlstra wrote: > On Wed, Jan 18, 2017 at 10:17:32PM +0900, Byungchul Park wrote: > > + /* > > +* Each work of workqueue might run in a different context, > > +* thanks to concurrency support of workqueue. So we have to > > +* distinguis

[PATCH 16/44] tools/power turbostat: dump Atom P-states correctly

2017-02-28 Thread Len Brown
From: Len Brown Turbostat dumps MSR_TURBO_RATIO_LIMIT on Core Architecture. But Atom Architecture uses MSR_ATOM_CORE_RATIOS and MSR_ATOM_CORE_TURBO_RATIOS. Signed-off-by: Len Brown --- tools/power/x86/turbostat/turbostat.c | 103 +++--- 1 file changed, 82 insertions

Re: [PATCH v3 2/2] perf/sdt: Directly record SDT events with 'perf record'

2017-02-28 Thread Brendan Gregg
On Tue, Feb 28, 2017 at 2:31 PM, Brendan Gregg wrote: > G'Day Ravi, > [...] > Now retrying perf: > > # ./perf record -e sdt_node:http__server__request -a > ^C[ perf record: Woken up 1 times to write data ] > [ perf record: Captured and wrote 0.446 MB perf.data (3 samples) ] > # ./perf script >

[PATCH 33/44] tools/power turbostat: fix zero IRQ count shown in one-shot command mode

2017-02-28 Thread Len Brown
From: Len Brown The IRQ column has been working for periodic mode, but not in one-shot command mode, it shows only 0. until now. Signed-off-by: Len Brown --- tools/power/x86/turbostat/turbostat.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tools/power/x86/

Re: [Xen-devel] [PATCH 5/5] x86/xen: split suspend.c for PV and PVHVM guests

2017-02-28 Thread Juergen Gross
On 24/02/17 17:14, Vitaly Kuznetsov wrote: > Get read of #ifdefs in suspend.c by splitting the code into > suspend_pv.c and suspend_hvm.c. > > Signed-off-by: Vitaly Kuznetsov Reviewed-by: Juergen Gross Juergen

[PATCH 13/44] tools/power turbostat: further decode MSR_IA32_MISC_ENABLE

2017-02-28 Thread Len Brown
From: Len Brown Decode MISC_ENABLE.NO_TURBO, also use the #defines in msr-index.h for decoding this register cpu0: MSR_IA32_MISC_ENABLE: 0x00850089 (TCC EIST MWAIT TURBO) Although it is not architectural, decode also MSR_IA32_MISC_ENABLE.prefetch-disable (bit-9). documented to be present on: Co

Re: [PATCH V3 2/7] PM / OPP: Introduce "domain-performance-state" binding to OPP nodes

2017-02-28 Thread Viresh Kumar
On 28-02-17, 08:10, Rob Herring wrote: > On Tue, Feb 28, 2017 at 12:57 AM, Viresh Kumar > wrote: > > That's what I did in V2, but then I turned it down considering the > > parent/child > > relationships we may have. > > > > There are multiple cases we can have: > > > > A.) DeviceX ---> Parent-

Re: [Xen-devel] [PATCH 4/5] x86/xen: put setup.c, pmu.c and apic.c under CONFIG_XEN_PV

2017-02-28 Thread Juergen Gross
On 24/02/17 17:14, Vitaly Kuznetsov wrote: > xen_pmu_init/finish() functions are used in suspend.c and > enlighten.c, add stubs for now. > > Signed-off-by: Vitaly Kuznetsov Reviewed-by: Juergen Gross Juergen

[PATCH 07/10] perf, tools: Support MetricExpr header in JSON event list

2017-02-28 Thread Andi Kleen
From: Andi Kleen Add support for parsing the MetricExpr header in the JSON event lists and storing them in the alias structure. Used in the next patch. v2: Change DividedBy to MetricExpr v3: Really catch all uses of DividedBy Signed-off-by: Andi Kleen --- tools/perf/pmu-events/jevents.c|

[PATCH 10/10] perf, tools: Add support for MetricName JSON attribute

2017-02-28 Thread Andi Kleen
From: Andi Kleen Add support for a new JSON event attribute to name MetricExpr for better output in perf stat. If the event has no MetricName it uses the normal event name instead to describe the metric. So far no names are added. Signed-off-by: Andi Kleen --- tools/perf/pmu-events/jevents.c

perf: Improve support for uncore JSON event lists

2017-02-28 Thread Andi Kleen
This patch kit further improves support for Intel uncore events in the Linux perf user tool. The basic support has been already merged earlier, but this makes it nicer to use. - Collapse counts from duplicated boxes to make the output easier to read. - Support specifying events for multiple duplic

[PATCH 01/10] perf, tools, stat: Factor out callback for collecting event values

2017-02-28 Thread Andi Kleen
From: Andi Kleen To be used in next patch to support automatic summing of alias events. v2: Move check for bad results to next patch Signed-off-by: Andi Kleen --- tools/perf/builtin-stat.c | 104 -- 1 file changed, 81 insertions(+), 23 deletions(-)

[PATCH 05/10] perf, tools: Special case uncore_ prefix

2017-02-28 Thread Andi Kleen
From: Andi Kleen Special case uncore_ prefix in PMU match, to allow for shorter event uncore specifications. Before perf stat -a -e uncore_cbox/event=0x35,umask=0x1,filter_opc=0x19C/ sleep 1 After perf stat -a -e cbox/event=0x35,umask=0x1,filter_opc=0x19C/ sleep 1 Signed-off-by: Andi Kleen

[PATCH 04/10] perf, tools: Expand PMU events by prefix match

2017-02-28 Thread Andi Kleen
From: Andi Kleen When the user specifies a pmu directly, expand it automatically with a prefix match for all available PMUs, similar as we do for the normal aliases now. This allows to specify attributes for duplicated boxes quickly. For example uncore_cbox_{0,6}/.../ can be now specified as unc

[PATCH 03/10] perf, tools: Factor out PMU matching in parser

2017-02-28 Thread Andi Kleen
From: Andi Kleen Factor out the PMU name matching in the event parser into a separate function, to use the same code for other grammar rules later. Signed-off-by: Andi Kleen --- tools/perf/util/parse-events.c | 46 ++ tools/perf/util/parse-events.h | 5

[PATCH 09/10] perf, tools, list: Support printing MetricExpr with -v

2017-02-28 Thread Andi Kleen
From: Andi Kleen Output the metric expr in perf list when -v is specified, so that the user can check the formula. Before: % perf list -v ... unc_m_power_channel_ppd [Cycles where DRAM ranks are in power down (CKE) mode. Derived from unc_m_power_channel_ppd. Unit: uncore_imc

Re: [PATCH v5 06/13] lockdep: Implement crossrelease feature

2017-02-28 Thread Byungchul Park
On Tue, Feb 28, 2017 at 01:49:06PM +0100, Peter Zijlstra wrote: > On Tue, Feb 28, 2017 at 01:45:07PM +0100, Peter Zijlstra wrote: > > On Wed, Jan 18, 2017 at 10:17:32PM +0900, Byungchul Park wrote: > > > + /* > > > + * struct held_lock does not have an indicator whether in nmi. > > > + */ > > > +

Re: [PATCH v5 06/13] lockdep: Implement crossrelease feature

2017-02-28 Thread Byungchul Park
On Wed, Mar 01, 2017 at 02:17:07PM +0900, Byungchul Park wrote: > On Tue, Feb 28, 2017 at 04:49:00PM +0100, Peter Zijlstra wrote: > > On Wed, Jan 18, 2017 at 10:17:32PM +0900, Byungchul Park wrote: > > > > > +struct cross_lock { > > > + /* > > > + * When more than one acquisition of crosslocks ar

[PATCH v2 0/2] fujitsu-laptop: acpi_fujitsu_bl_notify() cleanup

2017-02-28 Thread Michał Kępień
Here are two minor cleanups for acpi_fujitsu_bl_notify() that I came up with while preparing the sparse keymap migration. Changes from v1: - Rebase on top of reworked Alan Jenkins' cleanup patch series. - Join integer variable declarations into a single line in patch 2/2. drivers/platform/

Re: [PATCH] jump_label: align jump_entry table to at least 4-bytes

2017-02-28 Thread Michael Ellerman
Jason Baron writes: ... > I also checked all the other .ko files and they were properly aligned. > So I think this should hopefully work, and I like that its not a > per-arch fix. > > Sachin, sorry to bother you again, but I'm hoping you can try David's > latest patch to scripts/module-common.l

[PATCH v2 1/2] platform/x86: fujitsu-laptop: decrease indentation in acpi_fujitsu_bl_notify()

2017-02-28 Thread Michał Kępień
acpi_fujitsu_bl_notify() is pretty deeply nested, which hurts readability. Strip off one level of indentation by returning early when the event code supplied as argument is not ACPI_FUJITSU_NOTIFY_CODE1. Signed-off-by: Michał Kępień --- Changes introduced by this patch are best viewed when white

[PATCH v2 2/2] platform/x86: fujitsu-laptop: simplify brightness key event generation logic

2017-02-28 Thread Michał Kępień
Returning early when there is no brightness change allows removal of a duplicate code block, makes the purpose of the following code clearer and allows the condition surrounding key event generation to be removed. Local integer variables can also be declared in a single line. Signed-off-by: Michał

[PATCH 2/3] arm: dts: imx7s: enable ocotp

2017-02-28 Thread Peng Fan
Enable ocotp for i.mx7D/S. Correct the clock entry and compatible string. Signed-off-by: Peng Fan Cc: Shawn Guo Cc: Srinivas Kandagatla Cc: Sascha Hauer Cc: Fabio Estevam Cc: Rob Herring Cc: Mark Rutland --- arch/arm/boot/dts/imx7s.dtsi | 5 ++--- 1 file changed, 2 insertions(+), 3 deletio

[PATCH 3/3] nvmem: octop: Add i.MX7D support

2017-02-28 Thread Peng Fan
Add i.MX7D support. There is 16 banks, each bank 4 words. Signed-off-by: Peng Fan Cc: Srinivas Kandagatla Cc: Maxime Ripard Cc: Shawn Guo --- drivers/nvmem/imx-ocotp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c index b8ca1e6..4155

[PATCH] cpufreq: Add the "cpufreq.off=1" cmdline option

2017-02-28 Thread Len Brown
From: Len Brown Add the "cpufreq.off=1" cmdline option. At boot-time, this allows a user to request CONFIG_CPU_FREQ=n behavior from a kernel built with CONFIG_CPU_FREQ=y. This is analogous to the existing "cpuidle.off=1" option and CONFIG_CPU_IDLE=y This capability is valuable when we need to

[PATCH 01/44] tools/power turbostat: fix bugs in --add option

2017-02-28 Thread Len Brown
From: Len Brown When --add was used more than once, overflowed buffers caused some counters to be stored on top of others, corrupting the results. Simplify the code by simply reserving space for up to 16 added counters per each cpu, core, package. Per-cpu added counters were being printed only

[PATCH 1/3] dt-bindings: imx-ocotp: add compatible string for i.MX7D/S

2017-02-28 Thread Peng Fan
Add compatible string for i.MX7D/S Signed-off-by: Peng Fan Cc: Shawn Guo Cc: Srinivas Kandagatla Cc: Maxime Ripard Cc: Rob Herring Cc: Mark Rutland --- Documentation/devicetree/bindings/nvmem/imx-ocotp.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings

Re: [PATCH v3 2/2] perf/sdt: Directly record SDT events with 'perf record'

2017-02-28 Thread Masami Hiramatsu
On Tue, 28 Feb 2017 16:26:19 +0530 Ravi Bangoria wrote: > Thanks Masami for the review. > Please find my replies to your comments. > > On Tuesday 28 February 2017 11:15 AM, Masami Hiramatsu wrote: > > On Fri, 24 Feb 2017 13:13:25 +0530 > > Ravi Bangoria wrote: > > > >> After invoking 'perf reco

Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that require multiple domains

2017-02-28 Thread Rajendra Nayak
On 02/28/2017 08:48 PM, Jon Hunter wrote: > Hi all, > > On 20/09/16 11:28, Jon Hunter wrote: >> The Tegra124/210 XUSB subsystem (that consists of both host and device >> controllers) is partitioned across 3 PM domains which are: >> - XUSBA: Superspeed logic (for USB 3.0) >> - XUSBB: Device contro

[PATCH 10/44] x86: msr-index.h: Remove unused MSR_NHM_SNB_PKG_CST_CFG_CTL

2017-02-28 Thread Len Brown
From: Len Brown The two users, intel_idle driver and turbostat utility are using the new name, MSR_PKG_CST_CONFIG_CONTROL Cc: x...@kernel.org Signed-off-by: Len Brown --- arch/x86/include/asm/msr-index.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/include/asm/msr-index.h b/arch

Re: [GIT PULL] objtool fixes

2017-02-28 Thread Josh Poimboeuf
On Tue, Feb 28, 2017 at 05:55:11PM -0800, Linus Torvalds wrote: > Guys, > the recent 'objtool' pull request broke things. > > I haven't bisected it, but I'm pretty sure that this part is pure garbage: > > On Mon, Feb 27, 2017 at 11:53 PM, Ingo Molnar wrote: > > > > diff --git a/arch/x86/kernel/

Re: [Xen-devel] [PATCH 3/5] x86/xen: put setup.c, mmu.c and p2m.c under CONFIG_XEN_PV

2017-02-28 Thread Juergen Gross
On 24/02/17 17:14, Vitaly Kuznetsov wrote: > These three files (mmu.c, p2m.c, setup.c) are mostly required to support > PV guests, in fact p2m.c and setup.c have no code for PVHVM at all. mmu.c > has some, split the file into mmu.c, mmu_pv.c and mmu_hvm.c. > > Some additional changes are required:

Re: [Xen-devel] [PATCH 2/5] x86/xen: split smp.c for PV and PVHVM guests

2017-02-28 Thread Juergen Gross
On 24/02/17 17:14, Vitaly Kuznetsov wrote: > More or less mechanically split smp.c into 3 files. XEN_PV_SMP and > XEN_PVHVM_SMP config options added to support the change. > > Signed-off-by: Vitaly Kuznetsov Same as in patch 1: one patch with no functional changes and one with the functional stu

Re: [GIT PULL] locking fixes

2017-02-28 Thread Linus Torvalds
On Mon, Feb 27, 2017 at 11:57 PM, Ingo Molnar wrote: > > Note that the uninlining allowed us to enable the underflow/overflow warnings > unconditionally and remove the debug Kconfig switch: this might trigger new > warnings in buggy code and turn crashes/use-after-free bugs into less harmful > mem

Re: [Xen-devel] [PATCH 1/5] x86/xen: start untangling PV and PVHVM guest support code

2017-02-28 Thread Juergen Gross
On 24/02/17 17:14, Vitaly Kuznetsov wrote: > Introduce CONFIG_XEN_PV config option and split enlighten.c into > 4 files. Temporary add #ifdef CONFIG_XEN_PV to smp.c and mmu.c to > not break the build and not make the patch even bigger. > > xen_cpu_up_prepare*/xen_cpu_die hooks require separation t

[GIT PULL] f2fs update for 4.11

2017-02-28 Thread Jaegeuk Kim
Hi Linus, Could you please consider the below pull request for v4.11? Thanks, The following changes since commit 53cd1ad1a68fd10f677445e04ed63aa9ce39b36b: Merge branch 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux (2017-01-28 15:09:23 -0800) are available in

Re: [PATCH V3 2/7] PM / OPP: Introduce "domain-performance-state" binding to OPP nodes

2017-02-28 Thread Viresh Kumar
On 28-02-17, 09:52, Rob Herring wrote: > On Tue, Feb 28, 2017 at 9:14 AM, Ulf Hansson wrote: > > This comes from the early design of the generic PM domain, thus I > > assume we have some HW with such complex PM topology. However, I don't > > know if it is actually being used. > > > > Moreover, the

Re: kvm: WARNING in nested_vmx_vmexit

2017-02-28 Thread Wanpeng Li
2017-02-28 20:15 GMT+08:00 Dmitry Vyukov : > Hello, > > The following program triggers WARNING in nested_vmx_vmexit: > https://gist.githubusercontent.com/dvyukov/16b946d7dc703bb07b9b933f12fb8a6e/raw/dac60506feb8dd9dd22828c486e46ee8a5e30f13/gistfile1.txt > > > [ cut here ] >

Re: [PATCH] arm64: dump: hide kernel pointers

2017-02-28 Thread Laura Abbott
On 02/28/2017 02:04 AM, Mark Rutland wrote: > On Tue, Feb 28, 2017 at 08:42:51AM +, Ard Biesheuvel wrote: >> (+ Mark) > > (+ Laura) > >> On 28 February 2017 at 07:05, Miles Chen wrote: >>> Mask kernel pointers of /sys/kernel/debug/kernel_page_tables entry like >>> /proc/vmallocinfo does. >>>

[PATCH 14/44] x86 msr-index.h: Define Atom specific core ratio MSR locations

2017-02-28 Thread Len Brown
From: Len Brown These MSRs are currently used by the intel_pstate driver, using a local definition. Cc: x...@kernel.org Signed-off-by: Len Brown --- arch/x86/include/asm/msr-index.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/x86/include/asm/msr-index.h b/arch/x86/include/as

[PATCH 08/44] intel_idle: use new name for MSR_PKG_CST_CONFIG_CONTROL

2017-02-28 Thread Len Brown
From: Len Brown previously known as MSR_NHM_SNB_PKG_CST_CFG_CTL Signed-off-by: Len Brown --- drivers/idle/intel_idle.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c index 7d8ea3d5fda6..930537da76d4 100644 --- a/

[PATCH 05/44] tools/power turbostat: Baytrail: remove debug line in quiet mode

2017-02-28 Thread Len Brown
From: Len Brown Without --debug, a debug line was printed on Baytrail: SLM BCLK: 83.3 Mhz Signed-off-by: Len Brown --- tools/power/x86/turbostat/turbostat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat

[PATCH 40/44] tools/power turbostat: show package number, even without --debug

2017-02-28 Thread Len Brown
From: Len Brown On multi-package systems, the "Package" column was being displayed only if --debug was used. Show it always. Signed-off-by: Len Brown --- tools/power/x86/turbostat/turbostat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/power/x86/turbostat/turbost

[PATCH 12/44] tools/power turbostat: add precision to --debug frequency output

2017-02-28 Thread Len Brown
From: Len Brown Add a digit of precision to the --debug output for frequency range. This is useful when BCLK is not an integer. old: 6 * 83 = 500 MHz max efficiency frequency 26 * 83 = 2166 MHz base frequency new: 6 * 83.3 = 499.8 MHz max efficiency frequency 26 * 83.3 = 2165.8 MHz base frequen

[PATCH 03/44] tools/power turbostat: BYT does not have MSR_MISC_PWR_MGMT

2017-02-28 Thread Len Brown
From: Len Brown and so --debug fails with: turbostat: msr 1 offset 0x1aa read failed: Input/output error It seems that baytrail, and airmont do not have this MSR. It is included in subsequent Goldmont Atom. Signed-off-by: Len Brown --- tools/power/x86/turbostat/turbostat.c | 12 ++--

Re: [kernel-hardening] [PATCH] refcount: add refcount_t API kernel-doc comments

2017-02-28 Thread Kees Cook
On Tue, Feb 28, 2017 at 7:34 PM, David Windsor wrote: > This adds kernel-doc comments for the new refcount_t API. > > Signed-off-by: David Windsor Yay docs! :) Acked-by: Kees Cook -Kees -- Kees Cook Pixel Security

Re: [PATCH v5 06/13] lockdep: Implement crossrelease feature

2017-02-28 Thread Byungchul Park
On Tue, Feb 28, 2017 at 02:40:18PM +0100, Peter Zijlstra wrote: > > +static int commit_xhlocks(struct cross_lock *xlock) > > +{ > > + struct task_struct *curr = current; > > + struct hist_lock *xhlock_c = xhlock_curr(curr); > > + struct hist_lock *xhlock = xhlock_c; > > + > > + do { > > +

[PATCH 24/44] x86: intel-family.h: Add GEMINI_LAKE SOC

2017-02-28 Thread Len Brown
From: Len Brown Cc: x...@kernel.org Signed-off-by: Len Brown --- arch/x86/include/asm/intel-family.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/intel-family.h b/arch/x86/include/asm/intel-family.h index 8167fdb67ae8..9814db42b790 100644 --- a/arch/x86/include/asm/

[PATCH v3] Input: pwm-beeper: support customized freq for SND_BELL

2017-02-28 Thread Heiko Schocher
From: Guan Ben extend the pwm-beeper driver to support customized frequency for SND_BELL from device tree. Signed-off-by: Guan Ben Signed-off-by: Mark Jonas [h...@denx.de: adapted to 4.10-rc7] Signed-off-by: Heiko Schocher Acked-by: Rob Herring --- Changes in v3: - add comment from David L

[PATCH 02/44] tools/power turbostat: Add --show and --hide parameters

2017-02-28 Thread Len Brown
From: Len Brown Add the "--show" and "--hide" cmdline parameters. By default, turbostat shows all columns. turbostat --hide counter_list will continue showing all columns, except for those listed. turbostat --show counter_list will show _only_ the listed columns These features work for built-

[PATCH 11/44] tools/power turbostat: Baytrail c-state support

2017-02-28 Thread Len Brown
From: Len Brown The Baytrail SOC, with its Silvermont core, has some unique properties: 1. a hardware CC1 residency counter 2. a module-c6 residency counter 3. a package-c6 counter at traditional package-c7 counter address. The SOC does not support c3, pc3, c7 or pc7 counters. Signed-off-by: L

[PATCH 07/44] x86: msr-index.h: Define MSR_PKG_CST_CONFIG_CONTROL

2017-02-28 Thread Len Brown
From: Len Brown define MSR_PKG_CST_CONFIG_CONTROL (0xE2), which is the string used by Intel Documentation. We use this MSR in intel_idle and turbostat by a previous name, to be updated in the next patch. Cc: x...@kernel.org Signed-off-by: Len Brown --- arch/x86/include/asm/msr-index.h | 1 +

[PATCH 34/44] tools/power turbostat: Add --list option to show available header names

2017-02-28 Thread Len Brown
From: Len Brown It is handy to know the list of column header names, so that they can be used with --add and --skip The new --list option shows them: sudo ./turbostat --list --hide sysfs ,Core,CPU,Avg_MHz,Busy%,Bzy_MHz,TSC_MHz,IRQ,SMI,CPU%c1,CPU%c3,CPU%c6,CPU%c7,CoreTmp,PkgTmp,GFX%rc6,GFXMHz,Pk

[PATCH 06/44] tools/power turbostat: update MSR_PKG_CST_CONFIG_CONTROL decoding

2017-02-28 Thread Len Brown
From: Len Brown AMT value 0 is unlimited, not PC0 Signed-off-by: Len Brown --- tools/power/x86/turbostat/turbostat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index 9b35c9bb0489..aedfaddbad

[GIT PULL] turbostat 17.02.24

2017-02-28 Thread Len Brown
Hi Rafael, Please pull these turbostat-related patches. This patch series updates turbostat in the Linux kernel tree to to the latest out-of-tree version -- 17.02.24. There are several significant changes since the version that shipped in the Linux-4.10 tree. Default output is now verbose, --deb

[PATCH 41/44] tools/power turbostat: dump p-state software config

2017-02-28 Thread Len Brown
From: Len Brown cpu1: cpufreq driver: acpi-cpufreq cpu1: cpufreq governor: ondemand cpufreq boost: 1 or cpu0: cpufreq driver: intel_pstate cpu0: cpufreq governor: powersave cpufreq intel_pstate no_turbo: 0 Signed-off-by: Len Brown --- tools/power/x86/turbostat/turbostat.c | 50 ++

[PATCH 15/44] intel_pstate: use MSR_ATOM_RATIOS definitions from msr-index.h

2017-02-28 Thread Len Brown
From: Len Brown Originally, these MSRs were locally defined in this driver. Now the definitions are in msr-index.h -- use them. Signed-off-by: Len Brown --- drivers/cpufreq/intel_pstate.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/cpufreq/intel

[PATCH 18/44] x86 msr_index.h: Define MSR_MISC_FEATURE_CONTROL

2017-02-28 Thread Len Brown
From: Len Brown This non-architectural MSR has disable bits for various prefetchers on modern processors. While these bits are generally touched only by the BIOS, say, via BIOS SETUP, it is useful to dump them when examining options that can alter performance. Cc: x...@kernel.org Signed-off-by:

[PATCH 30/44] tools/power turbostat: extend --add option to accept /sys path

2017-02-28 Thread Len Brown
From: Len Brown Previously, the --add option could specify only an MSR. Here is is extended so an arbitrary /sys attribute, as specified by an absolute file path name. sudo ./turbostat --add /sys/devices/system/cpu/cpu0/cpuidle/state5/usage Signed-off-by: Len Brown --- tools/power/x86/turbos

[PATCH 27/44] tools/power turbostat: skip unused counters on SKX

2017-02-28 Thread Len Brown
From: Len Brown Skip these four counters on SKX, as they are always zero: cc3, pc3 cc7, pc7 Signed-off-by: Len Brown --- tools/power/x86/turbostat/turbostat.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbos

[PATCH 32/44] tools/power turbostat: add --cpu parameter

2017-02-28 Thread Len Brown
From: Len Brown With the --cpu parameter, turbostat prints only lines for the specified set of CPUs: sudo ./turbostat --quiet --show Core,CPU --cpu 0,1,3..5,6-7 CoreCPU - - 0 0 0 4 1 1 1 5 2 6

[PATCH 31/44] tools/power turbostat: print sysfs C-state stats

2017-02-28 Thread Len Brown
From: Len Brown When turbostat shows % of time in a CPU idle power state, it has always been showing information from underlying hardware residency counters. While this reflects what the hardware is doing, and is thus useful for understanding the hardware, it doesn't directly tell us what Linux

[PATCH 23/44] tools/power turbostat: bug fixes to --add, --show/--hide features

2017-02-28 Thread Len Brown
From: Len Brown Fix a bug with --add, where the title of the column is un-initialized if not specified by the user. The initial implementation of --show and --hide neglected to handle the pc8/pc9/pc10 counters. Fix a bug where "--show Core" only worked with --debug Reported-by: Wendy Wang Sig

[PATCH 43/44] tools/power turbostat: bugfix: --add u32 was printed as u64

2017-02-28 Thread Len Brown
From: Len Brown When the "u32" keyword is used with --add, it means that the output should be truncated to 32-bits. This was not happening and all 64-bits were printed. Also, when no column name was used for an added MSR, The default column name was in deximal, eg. MSR16. Users report that they

[PATCH 22/44] tools/power turbostat: use tsc_tweak everwhere it is needed

2017-02-28 Thread Len Brown
From: Len Brown The CPU ticks at a rate in the "bus clock" domain. eg. 100 MHz * bus_ratio. On newer processors, the TSC has been moved out of this BCLK domain and into a separate crystal-clock domain. While the TSC ticks "close to" the base frequency, those that look closely at the numbers wil

[PATCH 20/44] tools/power turbostat: show all columns, independent of --debug

2017-02-28 Thread Len Brown
From: Len Brown Some time ago, turbostat overflowed 80 columns. So on the assumption that a "casual" user would always want topology and frequency columns, we hid the rest of the columns and the system configuration decoding behind the --debug option. Not everybody liked that change -- includin

[PATCH 42/44] tools/power turbostat: show error on exec

2017-02-28 Thread Len Brown
From: Len Brown When turbostat is run in one-shot command mode, the parent takes the 'before' counter snapshot, fork/exec/wait for the child to exit, takes the 'after' counter snapshot, and prints the results. however, if the child fails to exec the command, it immediately returns, without indic

[PATCH 44/44] tools/power turbostat: version 17.02.24

2017-02-28 Thread Len Brown
From: Len Brown The turbostat before this last set of changes is obsolete. This new version can do a lot more, but it also has some different defaults, that might catch some off-guard. So it seems a good time to give a new version number. Signed-off-by: Len Brown --- tools/power/x86/turbostat/

[PATCH 26/44] tools/power turbostat: Denverton: use HW CC1 counter, skip C3, C7

2017-02-28 Thread Len Brown
From: Len Brown The CC1 column in tubostat can be computed by subtracting the core c-state residency countes from the total Cx residency. CC1 = (Idle_time_as_measured by MPERF) - (all core C-states with residency counters) However, as the underlying counter reads are not atomic, error can be no

[PATCH 29/44] tools/power turbostat: skip unused counters on BDX

2017-02-28 Thread Len Brown
From: Len Brown Skip these two counters on BDX, as they are always zero: cc7, pc7 Signed-off-by: Len Brown --- tools/power/x86/turbostat/turbostat.c | 17 + 1 file changed, 17 insertions(+) diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbost

[PATCH 25/44] tools/power turbostat: initial Gemini Lake SOC support

2017-02-28 Thread Len Brown
From: Len Brown Gemini Lake is similar to Apollo Lake (Broxton/Goldmont) Signed-off-by: Len Brown --- tools/power/x86/turbostat/turbostat.c | 5 + 1 file changed, 5 insertions(+) diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index 4b04ba86e44f

[PATCH 39/44] tools/power turbostat: support "--hide C1" etc.

2017-02-28 Thread Len Brown
From: Len Brown Originally, the only way to hide the sysfs C-state statistics columns was with "--hide sysfs". This was because we process "--hide" before we probe for those columns. hack --hide to remember deferred hide requests, and apply them when sysfs is probed. "--hide sysfs" is still av

[PATCH 17/44] tools/power turbostat: decode CPUID(6).TURBO

2017-02-28 Thread Len Brown
From: Len Brown show the CPUID feature for turbo to clarify the case when it may not be shown in MISC_ENABLE CPUID(6): APERF, TURBO, DTS, PTM, No-HWP, No-HWPnotify, No-HWPwindow, No-HWPepp, No-HWPpkg, EPB cpu4: MSR_IA32_MISC_ENABLE: 0x00850089 (TCC EIST MWAIT TURBO) Signed-off-by: Len Brown -

[PATCH 21/44] tools/power turbostat: print system config, unless --quiet

2017-02-28 Thread Len Brown
From: Len Brown Some users want turbostat to tell them everything, by default. Some users want turbostat to be quiet, by default. I find that I'm in the 1st camp, and so I've never liked needing to type the --debug parameter to decode the system configuration. So here we change the default and

[PATCH 36/44] tools/power turbostat: update --list feature

2017-02-28 Thread Len Brown
From: Len Brown Make it possible to take the entire un-edited output from `turbostat --list` and feed it to "turbostat --show" or "turbostat --hide". To do this, the leading comma was removed (no mater what columns are active) and also they dynamic C-state "C1, C2, C3" etc are replaced by the st

[PATCH 38/44] tools/power turbostat: move --Package and --processor into the --cpu option

2017-02-28 Thread Len Brown
From: Len Brown --Package is now "--cpu package", which will display just the 1st CPU in each package --processor is not "--cpu core" which will display just the 1st CPU in each core Signed-off-by: Len Brown --- tools/power/x86/turbostat/turbostat.8 | 6 +- tools/power/x86/turbostat/turb

  1   2   3   4   5   6   7   8   9   >