[PATCH 4/8] drm: msm: split out GEM code into helper module

2016-02-22 Thread Arnd Bergmann
The GEM code is used by dsi, so it can't be part of the main module. This exports all functions that are called by other code, and puts it into the helper module. Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/msm/Makefile | 3 +-- drivers/gpu/drm/msm/msm_gem.c | 29 +

[PATCH 5/8] drm: msm: move DSI into separate module

2016-02-22 Thread Arnd Bergmann
Moving around the Makefile for DSI caused a link error with the main driver referring to a builtin module that has no exported symbols: drivers/gpu/built-in.o: In function `msm_drm_register': :(.init.text+0x654): undefined reference to `msm_dsi_register' This changes the DSI symbol to a 'tristate

[PATCH 6/8] drm: msm: move EDP into separate module

2016-02-22 Thread Arnd Bergmann
Moving around the Makefile for EDP caused a link error with the main driver referring to a builtin module that has no exported symbols: drivers/gpu/built-in.o: In function `msm_drm_register': :(.init.text+0x654): undefined reference to `msm_edp_register' This changes the EDP symbol to a 'tristate

[PATCH 8/8] drm: msm: separate out module driver registration

2016-02-22 Thread Arnd Bergmann
The msm driver currently has a single module_init() function but consists of multiple modules that each register a platform driver. This changes the msm_drm_register() function to not call the other functions but instead rely on module load order and/or link order to ensure that the other modules

Re: [PATCH v3 3/5] dell-wmi: enable receiving WMI events on Dell Vostro V131

2016-02-22 Thread Darren Hart
On Mon, Feb 22, 2016 at 09:56:50AM +0100, Michał Kępień wrote: > > > /* > > > * Certain keys are flagged as KE_IGNORE. All of these are either > > > * notifications (rather than requests for change) or are also sent > > > @@ -513,6 +533,7 @@ static int __init dell_wmi_init(void) > > > { > > >

[PATCH] firmware: fw_cfg register offsets on supported architectures only

2016-02-22 Thread Gabriel Somlo
Refrain from defining default fw_cfg register offsets on unsupported architectures -- throw an error instead. If QEMU were to add fw_cfg support on additional architectures, we should add them to the FW_CFG_SYSFS depends statement in drivers/firmware/Kconfig, and provide default values for register

Re: [PATCH v5 1/4] media: pxa_camera: fix the buffer free path

2016-02-22 Thread Robert Jarzmik
Guennadi Liakhovetski writes: > On Sun, 21 Feb 2016, Robert Jarzmik wrote: > Please, have a look at > http://git.linuxtv.org/gliakhovetski/v4l-dvb.git/log/?h=for-4.6-2 > If all is good there, no need for a v6 Thanks for fixing the *_dma_irq() mess, and sorry for that. And I just tested your br

Re: [PATCH v3 1/1] ideapad-laptop: Add ideapad Y700 (15) to the no_hw_rfkill DMI list

2016-02-22 Thread Darren Hart
On Fri, Feb 19, 2016 at 08:01:17PM -0600, John Dahlstrom wrote: > On Fri, 19 Feb 2016, Darren Hart wrote: > > >See stable_kernel_rules.txt for how to specify relevant versions. I'm curious > >why there is a gap from 3.18 to 4.1. > > > >What you probably meant was: > > > >Cc: # 3.18.x > > > >If yo

Re: [GIT PULL] remaining tpmdd fixes for Linux 4.5

2016-02-22 Thread Jarkko Sakkinen
On Mon, Feb 22, 2016 at 12:11:48PM -0700, Jason Gunthorpe wrote: > On Mon, Feb 22, 2016 at 09:08:28PM +0200, Jarkko Sakkinen wrote: > > On Mon, Feb 22, 2016 at 10:52:45AM -0700, Jason Gunthorpe wrote: > > > On Mon, Feb 22, 2016 at 04:50:23PM +0200, Jarkko Sakkinen wrote: > > > > > > > I already pu

[PATCH v2] sscanf: implement basic character sets

2016-02-22 Thread Jessica Yu
de up of characters in (or not in) the set. This implementation differs from its glibc counterpart in that it does not support character ranges (e.g., 'a-z' or '0-9'), the hyphen '-' is *not* a special character, and the brackets themselves cannot be matched. Signed-off

Re: [PATCH v3 00/12] pwm: add support for atomic update

2016-02-22 Thread Mark Brown
On Mon, Feb 22, 2016 at 11:15:09AM -0800, Doug Anderson wrote: > Note that historically I remember that Linus Torvalds has stated that > there is no stable API within the Linux kernel and that forcing the > in-kernel API to never change was bad for software development. I > tracked down my memory

Re: [PATCH v10 1/3] cpufreq: Add mechanism for registering utilization update callbacks

2016-02-22 Thread Rafael J. Wysocki
On Mon, Feb 22, 2016 at 10:32 AM, Juri Lelli wrote: > On 19/02/16 23:14, Rafael J. Wysocki wrote: >> On Friday, February 19, 2016 08:09:17 AM Juri Lelli wrote: >> > Hi Rafael, >> > >> > On 18/02/16 21:22, Rafael J. Wysocki wrote: >> > > On Mon, Feb 15, 2016 at 10:47 PM, Rafael J. Wysocki >> > >

[PATCH 4/4] tracing: Add __print_ns_to_secs() and __print_ns_without_secs() helpers

2016-02-22 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" To have nanosecond output displayed in a more human readable format, its nicer to convert it to a seconds format (XXX.Y). The problem is that to do so, the numbers must be divided by NSEC_PER_SEC, and moded too. But as these numbers are 64 bit, this can no

[PATCH 2/4] sched: Move sched_domain_sysctl to debug.c

2016-02-22 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" The sched_domain_sysctl setup is only enabled when SCHED_DEBUG is configured. As debug.c is only compiled when SCHED_DEBUG is configured as well, move the setup of sched_domain_sysctl into that file. Note, the (un)register_sched_domain_sysctl() functions had to b

[PATCH 0/4] sched: Display deadline bandwidth and other SCHED_DEBUG clean up

2016-02-22 Thread Steven Rostedt
[ Nothing different since my v2 I posted, except hopefully people will look at it this time :-) I also removed the RFC ] I'm starting to play with SCHED_DEADLINE a bit and I'm able to cause a bandwidth "leak". Then I realized there's no way to examine what bandwidths are enabled on which CPUs. I

[PATCH 3/4] sched: Add bandwidth ratio to /proc/sched_debug

2016-02-22 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Playing with SCHED_DEADLINE and cpusets, I found that I was unable to create new SCHED_DEADLINE tasks, with the error of EBUSY as if the bandwidth was already used up. I then realized there wa no way to see what bandwidth is used by the runqueues to debug the issu

Re: [PATCH v3] spi: master driver to enable RTC on ICPDAS LP-8841

2016-02-22 Thread Mark Brown
On Mon, Feb 22, 2016 at 02:57:42PM +0300, Sergei Ianovich wrote: Please don't send new patches in the middle of old threads, it makes it hard to find what the current versions of things are. >v2..v3 to fix Mark Brown review comments >* drop dependencies in Kconfig No, what I was asking y

[PATCH 1/4] sched: Move sched_feature file setup into debug.c

2016-02-22 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" As sched_feature is only created when SCHED_DEBUG is enabled, and the file debug.c is only compiled when SCHED_DEBUG is enabled, it makes sense to move sched_feature setup into that file and get rid of the #ifdef. Signed-off-by: Steven Rostedt --- kernel/sched/

Re: [PATCH 3/4] sched/deadline: Tracepoints for deadline scheduler

2016-02-22 Thread Peter Zijlstra
On Mon, Feb 22, 2016 at 12:48:54PM -0500, Steven Rostedt wrote: > > As it stands, the existing tracepoint have already been an ABI > > trainwreck, why would I want to add more? > > Yes, this may become a type of ABI, but even the sched switch > tracepoints haven't been that bad. Has it really pre

[PATCH] drm/layerscape: reduce excessive stack usage

2016-02-22 Thread Arnd Bergmann
The fsl-dcu driver copies a drm_mode_config object to its stack but then only accesses a single member (dpms_property) once. The data structure is large enough to trigger a warning about the amount of kernel stack being used: drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c: In function 'fsl_dcu_drm_con

Re: [BUG] [REGRESSION] [BISECTED] -rc1 breaks audio over HDMI for i915

2016-02-22 Thread Martin Kepplinger
Am 2016-02-22 um 20:10 schrieb Takashi Iwai: > On Mon, 22 Feb 2016 19:58:18 +0100, > Martin Kepplinger wrote: >> >> Am 2016-02-22 um 15:12 schrieb Takashi Iwai: >>> On Mon, 22 Feb 2016 15:02:56 +0100, >>> Martin Kepplinger wrote: > And how about my questions in the previous mail? Does > i9

Re: [PATCH 1/1] of/overlay: of overlay callbacks

2016-02-22 Thread atull
On Mon, 22 Feb 2016, Pantelis Antoniou wrote: > Hi Rob, > > > On Feb 22, 2016, at 04:55 , Rob Herring wrote: > > > > On Wed, Feb 17, 2016 at 11:41:25AM -0600, Alan Tull wrote: > >> Add overlay callback functionality. > >> > >> When DT overlays are being added, some drivers/subsystems > >> will

Re: [PATCH v10 1/3] cpufreq: Add mechanism for registering utilization update callbacks

2016-02-22 Thread Rafael J. Wysocki
On Mon, Feb 22, 2016 at 10:42 AM, Juri Lelli wrote: > Hi Rafael, > > On 19/02/16 23:26, Rafael J. Wysocki wrote: >> On Friday, February 19, 2016 05:26:04 PM Juri Lelli wrote: >> > Hi Srinivas, [cut] >> --- >> From: Rafael J. Wysocki >> Subject: [PATCH] cpufreq: Rework the scheduler hooks for tr

Re: [PATCH] Documentation/memory-barriers: fix wrong comment in example

2016-02-22 Thread SeongJae Park
On Tue, Feb 23, 2016 at 1:33 AM, Paul E. McKenney wrote: > On Mon, Feb 22, 2016 at 11:16:39AM +, David Howells wrote: >> SeongJae Park wrote: >> >> > From f7b5677790771599f418f1d95536935be971ae86 Mon Sep 17 00:00:00 2001 >> > From: SeongJae Park >> > Date: Mon, 22 Feb 2016 19:26:18 +0900 >>

Re: [PATCH v10 1/3] cpufreq: Add mechanism for registering utilization update callbacks

2016-02-22 Thread Rafael J. Wysocki
On Mon, Feb 22, 2016 at 11:52 AM, Peter Zijlstra wrote: > On Fri, Feb 19, 2016 at 09:28:23AM -0800, Steve Muckle wrote: >> On 02/19/2016 08:42 AM, Srinivas Pandruvada wrote: >> > We did experiments using util/max in intel_pstate. For some benchmarks >> > there were regression of 4 to 5%, for some

[PATCH] ubi: Fix early logging

2016-02-22 Thread Richard Weinberger
We must not use ubi_* log functions before the ubi_device struct is initialized. And while we are here, define a sane pr_fmt and add new lines to existing pr_* calls. Fixes: 32608703 ("UBI: Extend UBI layer debug/messaging capabilities") Signed-off-by: Richard Weinberger --- drivers/mtd/ubi/buil

Re: [PATCH] clk: socfpga: allow for multiple parents on Arria10 periph clocks

2016-02-22 Thread Stephen Boyd
On 02/22, dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > There are some Arria10 clocks of type "altr,socfpga-a10-perip-clk" that can > have multiple parents. Fix up the __socfpga_periph_init() to call > of_clk_parent_fill() that will return the appropriate number of parents. > > A

Re: [PATCH] clk: socfpga: allow for multiple parents on Arria10 periph clocks

2016-02-22 Thread Stephen Boyd
On 02/22, Stephen Boyd wrote: > On 02/22, dingu...@opensource.altera.com wrote: > > From: Dinh Nguyen > > > > There are some Arria10 clocks of type "altr,socfpga-a10-perip-clk" that can > > have multiple parents. Fix up the __socfpga_periph_init() to call > > of_clk_parent_fill() that will return

[PATCH] fs: crypto: add CONFIG_BLOCK dependency

2016-02-22 Thread Arnd Bergmann
The newly added generic crypto abstraction for file systems operates on 'struct bio' objects, which do not exist when CONFIG_BLOCK is disabled: fs/crypto/crypto.c: In function 'fscrypt_zeroout_range': fs/crypto/crypto.c:308:9: error: implicit declaration of function 'bio_alloc' [-Werror=implicit-

Re: [PATCH 1/4] net: ethernet: dwmac: add Ethernet glue logic for stm32 chip

2016-02-22 Thread Joachim Eastwood
On 22 February 2016 at 15:50, Alexandre Torgue wrote: > 2016-02-13 14:48 GMT+01:00 Joachim Eastwood : >> On 3 February 2016 at 15:54, Alexandre TORGUE >> wrote: >>> + plat_dat->bsp_priv = dwmac; >>> + plat_dat->init = stm32_dwmac_init; >>> + plat_dat->exit = stm32_dwmac_exit; >

[PATCH] btrfs: avoid uninitialized variable warning

2016-02-22 Thread Arnd Bergmann
With CONFIG_SMP and CONFIG_PREEMPT both disabled, gcc decides to partially inline the get_state_failrec() function but cannot figure out that means the failrec pointer is always valid if the function returns success, which causes a harmless warning: fs/btrfs/extent_io.c: In function 'clean_io_fail

[PATCH] nvdimm: use 'u64' for pfn flags

2016-02-22 Thread Arnd Bergmann
A recent bugfix changed pfn_t to always be 64-bit wide, but did not change the code in pmem.c, which is now broken on 32-bit architectures as reported by gcc: In file included from ../drivers/nvdimm/pmem.c:28:0: drivers/nvdimm/pmem.c: In function 'pmem_alloc': include/linux/pfn_t.h:15:17: error: l

[PATCHv2] clk: socfpga: allow for multiple parents on Arria10 periph clocks

2016-02-22 Thread dinguyen
From: Dinh Nguyen There are some Arria10 clocks of type "altr,socfpga-a10-perip-clk" that can have multiple parents. Fix up the __socfpga_periph_init() to call of_clk_parent_fill() that will return the appropriate number of parents. Also, update __socfpga_gate_init() to call of_clk_parent_fill()

[PATCH V2 06/13] blk-throttle: add per-cgroup data

2016-02-22 Thread Shaohua Li
Currently we only per-cgroup per-queue data. This adds per-cgroup data (cgroup weight). Changing the per-cgroup weight will change all per-cgroup per-queue weight. Signed-off-by: Shaohua Li --- block/blk-throttle.c | 47 ++- 1 file changed, 46 insertio

[PATCH V2 09/13] blk-throttle: add trace for new proporation throttle

2016-02-22 Thread Shaohua Li
The trace log is very helpful to track bug and performance issues. Signed-off-by: Shaohua Li --- block/blk-throttle.c | 9 + 1 file changed, 9 insertions(+) diff --git a/block/blk-throttle.c b/block/blk-throttle.c index 01ca04e..68e2598 100644 --- a/block/blk-throttle.c +++ b/block/blk-

[PATCH V2 12/13] blk-throttle: restore shrinked cgroup share

2016-02-22 Thread Shaohua Li
If a cgroup share gets shrinked but the cgroup hits its limit, the shrink isn't optimal, we restore its original share. Signed-off-by: Shaohua Li --- block/blk-throttle.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/block/blk-throttle.c b/block/blk-throttle.c

[PATCH V2 10/13] blk-throttle: over estimate bandwidth

2016-02-22 Thread Shaohua Li
If we don't dispatch enough requests, disk can't reach the max bandwidth. As we don't know the max bandwidth, we over estimate the bandwidth and dispatch more requests. This way the disk can reach the max bandwidth slowly. The downside is this can introduce fairness issue, but since we only over es

[PATCH V2 08/13] blk-throttle: add cgroup2 interface

2016-02-22 Thread Shaohua Li
Example usage of the cgroup2 interface: $echo "+io" > /sys/fs/cgroup/cgroup.subtree_control set bandwidth based proporation mode $echo "8:0 weight_bw" > /sys/fs/cgroup/io.throttle.mode_device $mkdir /sys/fs/cgroup/test set cgroup weight $echo "8:0 200" > /sys/fs/cgroup/test/io.throttle.weight $echo

[PATCH V2 13/13] blk-throttle: detect wrong shrink

2016-02-22 Thread Shaohua Li
Last patch detects wrong shrink for some cases, but not all. Let's have an example. cg1 gets 20% share, cg2 gets 80% share. disk max bps 100, cgroup can only dispatch 80 bps cg1 bps = 20, cg2 bps = 80 This should be stable state, but we don't know about it. As we assign extra bps to queue, we wil

[PATCH V2 04/13] blk-throttle: weight based throttling

2016-02-22 Thread Shaohua Li
We know total bandwidth of a disk and can calculate cgroup's bandwidth percentage against disk bandwidth according to its weight. We can easily calculate cgroup bandwidth. Signed-off-by: Shaohua Li --- block/blk-throttle.c | 160 +-- 1 file changed

[PATCH V2 00/13] block-throttle: proportional throttle

2016-02-22 Thread Shaohua Li
Hi, Currently we have 2 iocontrollers. blk-throttling is bandwidth/iops based. CFQ is weight based. It would be great there is a unified iocontroller for the two. And blk-mq doesn't support ioscheduler, leaving blk-throttling the only option for blk-mq. It's time to have a scalable iocontroller su

[PATCH V2 02/13] blk-throttle: cleanup io cost related stuff

2016-02-22 Thread Shaohua Li
Move io cost related data to separate data structure and corresponding code to separate functions. In the future, we will seek more advanced algorithm to measure IO cost. The separation makes things easier. Signed-off-by: Shaohua Li --- block/blk-throttle.c | 230 +++-

[PATCH V2 11/13] blk-throttle: shrink cgroup share if its target is overestimated

2016-02-22 Thread Shaohua Li
cgroup's share could be over estimated. For example, cg1 gets 20% share, cg2 gets 80% share. 1. disk max bps 200, cgroup has no limitation cg1 bps == 40, cg2 bps = 160 2. disk max bps 200, cg2 can only dispatch 10 bps cg1 bps == 190 (not 2.5), cg2 bps == 10 cg2 can't use its share, so we must adj

[PATCH V2 05/13] blk-throttling: detect inactive cgroup

2016-02-22 Thread Shaohua Li
We don't have a tree to maintain active cgroups. If a cgroup is inactive for some time, it should be excluded from bandwidth calculation. Otherwise we will only assign partial bandwidth to active cgroups, active cgroups will dispatch less IO, the estimated queue bandwidth drops, which will cause ac

[PATCH V2 01/13] block: estimate disk performance

2016-02-22 Thread Shaohua Li
weight based blk-throttling can use the estimated performance to calculate cgroup bandwidth/IOPS. That said we never can't get accurate disk performance in a complex workload, a roughly estimation is enough. One issue is workload might not send enough IO to make disk 100% busy. The calculation sho

[PATCH V2 07/13] blk-throttle: add interface for proporation based throttle

2016-02-22 Thread Shaohua Li
There is throttle.mode_device interface. By default blk-throttle is in NONE mode. Setting original bps/iops limit wil change mode to THROTTLE automatically, user doesn't need to configure the mode, which is for backward compabitbility. To use proporation based throttle, user must configure device t

[PATCH V2 03/13] blk-throttle: add abstract to index data

2016-02-22 Thread Shaohua Li
For throttle, we have separate data to track READ/WRITE IO. For weight based throttle, we combine read/write bandwidth and check combined bandwidth. Separate throttle doesn't work, because it's possible one cgroup only does READ and the other only does WRITE. This patch adds an abstract to index da

Re: [PATCHv2] lkdtm: Add READ_AFTER_FREE test

2016-02-22 Thread Laura Abbott
On 02/22/2016 11:27 AM, Kees Cook wrote: On Fri, Feb 19, 2016 at 3:07 PM, Laura Abbott wrote: On 02/19/2016 02:19 PM, Kees Cook wrote: On Fri, Feb 19, 2016 at 2:11 PM, Laura Abbott wrote: On 02/19/2016 11:12 AM, Kees Cook wrote: On Thu, Feb 18, 2016 at 5:15 PM, Laura Abbott wrote:

[PATCH] xen/x86: Zero out .bss for PV guests

2016-02-22 Thread Boris Ostrovsky
Baremetal kernels clear .bss early in the boot. Since Xen PV guests don't excecute that early code they should do it too. (Since we introduce macros for specifying 32- and 64-bit registers we can get rid of ifdefs in startup_xen()) Signed-off-by: Boris Ostrovsky --- arch/x86/xen/xen-head.S | 29

Re: [PATCH] usb: chipidea: Configure DMA properties and ops from DT

2016-02-22 Thread Bjorn Andersson
On Mon 22 Feb 02:03 PST 2016, Srinivas Kandagatla wrote: > > > On 22/02/16 05:32, Bjorn Andersson wrote: > >On certain platforms (e.g. ARM64) the dma_ops needs to be explicitly set > >to be able to do DMA allocations, so use the of_dma_configure() helper > >to populate the dma properties and ass

Re: [PATCHv8 0/5] Driver for new "VMD" device

2016-02-22 Thread Bjorn Helgaas
On Wed, Jan 20, 2016 at 04:01:11PM -0600, Bjorn Helgaas wrote: > On Sat, Jan 16, 2016 at 02:19:38PM -0800, Veal, Bryan E. wrote: > > On Fri, Jan 15, 2016 at 03:49:02PM -0600, Bjorn Helgaas wrote: > > > Even though you found this issue before posting the RFC code, I assume > > > the issue is still r

Re: [PATCH] clk: socfpga: allow for multiple parents on Arria10 periph clocks

2016-02-22 Thread kbuild test robot
Hi Dinh, [auto build test WARNING on clk/clk-next] [also build test WARNING on v4.5-rc5 next-20160222] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/dinguyen-opensource-altera-com/clk

Re: [PATCH v4 1/1] ideapad-laptop: Add ideapad Y700 (15) to the no_hw_rfkill DMI list

2016-02-22 Thread Darren Hart
On Fri, Feb 19, 2016 at 07:34:18PM -0600, John Dahlstrom wrote: > Some Lenovo ideapad models lack a physical rfkill switch. > On Lenovo models ideapad Y700 Touch-15ISK and ideapad Y700-15ISK, > ideapad-laptop would wrongly report all radios as blocked by > hardware which caused wireless network con

Re: [PATCH] clk: socfpga: allow for multiple parents on Arria10 periph clocks

2016-02-22 Thread Dinh Nguyen
On 02/22/2016 03:50 PM, Stephen Boyd wrote: > > Oops, spoke too soon: > > drivers/clk/socfpga/clk-periph-a10.c:113:27: warning: incorrect type in > assignment (different base types) > drivers/clk/socfpga/clk-periph-a10.c:113:27:expected char const *const > *[assigned] parent_names > drivers

Re: [PATCHv2] clk: socfpga: allow for multiple parents on Arria10 periph clocks

2016-02-22 Thread Stephen Boyd
On 02/22, dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > There are some Arria10 clocks of type "altr,socfpga-a10-perip-clk" that can > have multiple parents. Fix up the __socfpga_periph_init() to call > of_clk_parent_fill() that will return the appropriate number of parents. > > A

Re: [PATCH v2 3/3] vfs: Use per-cpu list for superblock's inode list

2016-02-22 Thread Jan Kara
On Tue 23-02-16 08:08:14, Dave Chinner wrote: > On Mon, Feb 22, 2016 at 02:04:35PM +0100, Jan Kara wrote: > > On Mon 22-02-16 13:12:22, Peter Zijlstra wrote: > > > On Mon, Feb 22, 2016 at 12:54:35PM +0100, Jan Kara wrote: > > > > > Also, I think fsnotify_unmount_inodes() (as per mainline) is missin

[ANNOUNCE] Git v2.7.2

2016-02-22 Thread Junio C Hamano
The latest maintenance release Git v2.7.2 is now available at the usual places. The tarballs are found at: https://www.kernel.org/pub/software/scm/git/ The following public repositories all have a copy of the 'v2.7.2' tag and the 'maint' branch that the tag points at: url = https://kernel

Re: [PATCH 08/10] x86/xsaves: Fix PTRACE frames for XSAVES

2016-02-22 Thread Dave Hansen
On 02/22/2016 12:48 PM, Yu-cheng Yu wrote: > It should have been: > > xsave->header.xfeatures = xfeatures | > (xsave->header.xfeatures & XFEATURE_MASK_SUPERVISOR); > > I'll fix it. Can we break it out to make it more clear? /* * The state that came in from userspace was use

Re: [PATCH] nvdimm: use 'u64' for pfn flags

2016-02-22 Thread Dan Williams
On Mon, Feb 22, 2016 at 1:58 PM, Arnd Bergmann wrote: > A recent bugfix changed pfn_t to always be 64-bit wide, but did not > change the code in pmem.c, which is now broken on 32-bit architectures > as reported by gcc: > > In file included from ../drivers/nvdimm/pmem.c:28:0: > drivers/nvdimm/pmem.

[patch V3 13/28] x86/perf/intel_uncore: Clear all hardware state on exit

2016-02-22 Thread Thomas Gleixner
The only missing bit is to completely clear the hardware state on failure exit. This is now a pretty simple exercise. Undo the box->init_box() setup on all packages which have been initialized so far. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/cpu/perf_event_intel_uncore.c | 26 ++

[patch V3 19/28] x86/perf/intel/rapl: Add proper error handling

2016-02-22 Thread Thomas Gleixner
Like uncore the rapl driver lacks error handling. It leaks memory and leaves the hotplug notifier registered. Add the proper error checks, cleanup the memory and register the hotplug notifier only on success. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/cpu/perf_event_intel_rapl.c | 29

[patch V3 27/28] perf: Export perf_event_sysfs_show

2016-02-22 Thread Thomas Gleixner
Required to use it in modular perf drivers. Signed-off-by: Thomas Gleixner --- kernel/events/core.c |1 + 1 file changed, 1 insertion(+) --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -9335,6 +9335,7 @@ ssize_t perf_event_sysfs_show(struct dev return 0; } +EXPORT_SYMBOL

[patch V3 26/28] x86/perf/intel/rapl: Convert it to a per package facility

2016-02-22 Thread Thomas Gleixner
RAPL is a per package facility and we already have a mechanism for a dedicated per package reader. So there is no point to have multiple CPUs doing the same. The current implementation actually starts two timers on two cpus if one does: perf stat -C1,2 -e -e power/energy-pkg which ma

[patch V3 24/28] x86/perf/intel/rapl: Make pmu lock raw

2016-02-22 Thread Thomas Gleixner
This lock is taken in hard interrupt context even on Preempt-RT. Make it raw so RT does not have to patch it. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/cpu/perf_event_intel_rapl.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) Index: b/arch/x86/kernel/cp

[patch V3 28/28] x86/perf/intel/rapl: Make it modular

2016-02-22 Thread Thomas Gleixner
Add the necessary exit functions so it can be built as a module. Signed-off-by: Thomas Gleixner --- arch/x86/Kconfig.perf | 13 + arch/x86/kernel/cpu/Makefile|4 +++- arch/x86/kernel/cpu/perf_event_intel_rapl.c | 22 +++---

[patch V3 23/28] x86/perf/intel/rapl: Refactor code some more

2016-02-22 Thread Thomas Gleixner
Split out code from init into seperate functions. Tidy up the code and get rid of pointless comments. I wish there would be comments for code which is not obvious Signed-off-by: Thomas Gleixner --- arch/x86/kernel/cpu/perf_event_intel_rapl.c | 61 ++-- 1 file change

[patch V3 25/28] x86/perf/intel/rapl: Utilize event->pmu_private

2016-02-22 Thread Thomas Gleixner
Store the pmu in event->pmu_private and use it instead of the per cpu data. Preparatory step to get rid of the per cpu allocations. The usage sites are the perf fast path, so we keep that even after the conversion to per package storage as a cpu to package lookup involves 3 loads versus 1 with the

[patch V3 18/28] x86/perf/intel_rapl: Make Knights Landings support functional

2016-02-22 Thread Thomas Gleixner
The Knights Landings support added the events and the detection case, but then returns 0 without actually initializing the driver. Fixes: 3a2a7797326a4 "perf/x86/intel/rapl: Add support for Knights Landing (KNL)" Signed-off-by: Thomas Gleixner Cc: Dasaratharaman Chandramouli --- arch/x86/kerne

[patch V3 22/28] x86/perf/intel/rapl: Cleanup the printk output

2016-02-22 Thread Thomas Gleixner
The output is inconsistent. Use a proper pr_fmt prefix and split out the advertisement into a seperate function. Remove the WARN_ON in the failure case. It's pointless as we already know where it failed. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/cpu/perf_event_intel_rapl.c | 42 +

[patch V3 20/28] x86/perf/intel/rapl: Sanitize the quirk handling

2016-02-22 Thread Thomas Gleixner
There is no point in having a quirk machinery for a single possible function. Get rid of it and move the quirk to a place where it makes actually sense. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/cpu/perf_event_intel_rapl.c | 49 ++-- 1 file changed, 19 insertio

[patch V3 21/28] x86/perf/intel/rapl: Calculate timing once

2016-02-22 Thread Thomas Gleixner
No point in doing the same calculation over and over. Do it once in rapl_check_hw_unit(). Signed-off-by: Thomas Gleixner --- arch/x86/kernel/cpu/perf_event_intel_rapl.c | 39 1 file changed, 18 insertions(+), 21 deletions(-) Index: b/arch/x86/kernel/cpu/perf_event

[patch V3 17/28] x86/perf/cqm: Get rid of the silly for_each_cpu lookups

2016-02-22 Thread Thomas Gleixner
CQM is a strict per package facility. Use the proper cpumasks to lookup the readers. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/cpu/perf_event_intel_cqm.c | 34 ++--- 1 file changed, 12 insertions(+), 22 deletions(-) Index: b/arch/x86/kernel/cpu/perf_event_inte

[patch V3 16/28] x86/perf/intel_uncore: Make it modular

2016-02-22 Thread Thomas Gleixner
Now that we have a proper cleanup all over the place, it's simple to make this a modular driver. Signed-off-by: Thomas Gleixner --- arch/x86/Kconfig |6 ++ arch/x86/Kconfig.perf | 16 arch/x86/kernel/cpu/Makefile

[patch V3 12/28] x86/perf/uncore: Track packages not per cpu data

2016-02-22 Thread Thomas Gleixner
uncore is a per package facility, but the code tries to mimick a per cpu facility with completely convoluted constructs. Simplify the whole machinery by tracking per package information. While at it, avoid the kfree/alloc dance when a cpu goes offline and online again. There is no point in freeing

[patch V3 15/28] cpumask: Export cpumask_any_but

2016-02-22 Thread Thomas Gleixner
Almost every cpumask function is exported, just not the one I need to make the intel uncore driver modular. Signed-off-by: Thomas Gleixner --- lib/cpumask.c |1 + 1 file changed, 1 insertion(+) Index: b/lib/cpumask.c === --- a/

[patch V3 14/28] x86/perf/intel_uncore: Make PCI and MSR uncore independent

2016-02-22 Thread Thomas Gleixner
Andi wanted to do this before, but the patch fell down the cracks. Implement it with the proper error handling. Requested-by: Andi Kleen Signed-off-by: Thomas Gleixner --- arch/x86/kernel/cpu/perf_event_intel_uncore.c | 34 +- 1 file changed, 18 insertions(+), 16 delet

[patch V3 09/28] perf: Allow storage of pmu private data in event

2016-02-22 Thread Thomas Gleixner
For pmus which are not per cpu, but e.g. per package/socket, we want to be able to store a reference to the underlying per package/socket facility in the event at init time so we can avoid magic storage constructs in the pmu driver. This allows us to get rid of the per cpu dance in the intel uncor

[patch V3 03/28] x86/perf/intel/uncore: Fix error handling

2016-02-22 Thread Thomas Gleixner
This driver lacks any form of proper error handling. If initialization fails or hotplug prepare fails, it lets the facility with half initialized stuff around. Fix the state and memory leaks in a first step. As a second step we need to undo the hardware state which is set via uncore_box_init() on

[patch V3 10/28] x86/perf/intel_uncore: Store box in event->pmu_private

2016-02-22 Thread Thomas Gleixner
Store the pmu in event->pmu_private, so we can get rid of the per cpu data storage. We keep it after converting to per package data, because a cpu to package lookup will be 3 loads versus one and these usage sites are the perf fast pathes. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/cpu/p

[patch V3 11/28] x86/topology: Create logical package id

2016-02-22 Thread Thomas Gleixner
For per package oriented services we must be able to rely on the number of cpu packages to be within bounds. Create a tracking facility, which - calculates the number of possible packages depending on nr_cpu_ids after boot - makes sure that the package id is within the number of possible packag

[patch V3 00/28] x86/perf/intel/uncore|rapl: Fix error handling and sanitize pmu management

2016-02-22 Thread Thomas Gleixner
This series addresses the following issues: - Add proper error handling to uncore and rapl drivers - Get rid of the pseudo per cpuness of these drivers and do a proper per package storage - Allow them to be modular In order to do proper per package storage I added a facility which sanity

[patch V3 08/28] x86/perf/uncore: Make uncore_pcibus_to_physid static

2016-02-22 Thread Thomas Gleixner
No users outside of this file. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/cpu/perf_event_intel_uncore.c |2 +- arch/x86/kernel/cpu/perf_event_intel_uncore.h |1 - 2 files changed, 1 insertion(+), 2 deletions(-) Index: b/arch/x86/kernel/cpu/perf_event_intel_uncore.c =

Re: [PATCH] intel-hid: allocate correct amount of memory for private struct

2016-02-22 Thread Darren Hart
On Sun, Feb 21, 2016 at 03:22:27PM +0100, Wolfram Sang wrote: > We want the size of the struct, not of a pointer to it. To be future > proof, just dereference the pointer to get the desired type. > > Signed-off-by: Wolfram Sang Queued to testing. Thank you Wolfram. > --- > > Compile tested onl

[patch V3 07/28] x86/perf/intel_uncore: Make code readable

2016-02-22 Thread Thomas Gleixner
Cleanup the code a bit before reworking it completely. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/cpu/perf_event_intel_uncore.c | 95 +- 1 file changed, 50 insertions(+), 45 deletions(-) Index: b/arch/x86/kernel/cpu/perf_event_intel_uncore.c ===

[patch V3 02/28] x86/perf/intel/uncore: Simplify error rollback

2016-02-22 Thread Thomas Gleixner
No point in doing partial rollbacks. Robustify uncore_exit_type() so it does not dereference type->pmus unconditionally and remove all the partial rollback hackery. Preparatory patch for proper error handling. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/cpu/perf_event_intel_uncore.c |

[patch V3 06/28] x86/perf/intel/uncore: Drop pointless hotplug priority

2016-02-22 Thread Thomas Gleixner
The perf core doesn't do anything related to hardware pmus on hotplug. Drop the priority. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/cpu/perf_event_intel_uncore.c |5 - 1 file changed, 5 deletions(-) --- a/arch/x86/kernel/cpu/perf_event_intel_uncore.c +++ b/arch/x86/kernel/cpu/p

[patch V3 01/28] x86/perf/intel/uncore: Remove pointless mask check

2016-02-22 Thread Thomas Gleixner
uncore_cpumask_init() is only ever called from intel_uncore_init() where the mask is guaranteed to be empty. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/cpu/perf_event_intel_uncore.c |6 -- 1 file changed, 6 deletions(-) --- a/arch/x86/kernel/cpu/perf_event_intel_uncore.c +++ b/a

Re: [PATCH 4/8] akcipher: Move the RSA DER encoding to the crypto layer

2016-02-22 Thread David Howells
Tadeusz Struk wrote: > I wonder if this should be merged with the crypto/rsa-pkcs1pad.c template > that we already have. Looks like the two do the same padding now. > Should we merge then and pass the hash param as a separate template param, > e.g the public_key would allocate "pkcs1pad(rsa, sha1

[patch V3 04/28] x86/perf/intel/uncore: Add sanity checks for pci dev package id

2016-02-22 Thread Thomas Gleixner
The storage array is size limited, but misses a sanity check Signed-off-by: Thomas Gleixner --- arch/x86/kernel/cpu/perf_event_intel_uncore.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: b/arch/x86/kernel/cpu/perf_event_intel_uncore.c =

[patch V3 05/28] x86/perf/intel_uncore: Cleanup hardware on exit

2016-02-22 Thread Thomas Gleixner
When tearing down the boxes nothing undoes the hardware state which was setup by box->init_box(). Add a box->exit_box() callback and implement it for the uncores which have an init_box() callback. This misses the cleanup in the error exit pathes, but I cannot be bothered to implement it before cle

Re: [PATCH 0/8] X.509: Software public key subtype changes

2016-02-22 Thread David Howells
Mimi Zohar wrote: > > (1) - (3) These are Tadeusz's RSA akcipher conversion. > > Up to here, IMA-appraisal works properly. I don't have IMA set up anywhere. David

[PATCH 19/24] staging: lustre: remove unnecessary EXPORT_SYMBOL from lnet layer

2016-02-22 Thread James Simmons
From: Frank Zago A lot of symbols don't need to be exported at all because they are only used in the module they belong to. Signed-off-by: Frank Zago Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5829 Reviewed-on: http://review.whamcloud.com/13320 Reviewed-by: James Simmons Reviewed-by:

[PATCH 06/24] staging: lustre: remove LUSTRE_{,SRV_}LNET_PID

2016-02-22 Thread James Simmons
From: John L. Hammond Remove LUSTRE_LNET_PID (12354) and LUSTRE_SRV_LNET_PID (12345) from the libcfs headers and replace their uses with a new macro LNET_PID_LUSTRE (also 12345) in lnet/types.h. Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2675 Reviewed-on:

[PATCH 02/24] staging: lustre: Dynamic LNet Configuration (DLC) show command

2016-02-22 Thread James Simmons
From: Amir Shehata This is the fifth patch of a set of patches that enables DLC. This patch adds the new structures which will be used in the IOCTL communication. It also added a set of show operations to show buffers, networks, statistics and peer information. Signed-off-by: Amir Shehata Int

[PATCH 00/24] Second batch of LNet updates

2016-02-22 Thread James Simmons
This patch set fixes many of the LNet issues encounter run in production environments. One of the long standing issues was not being able to reconfigure LNet after initialization. Doing so left it in a broken state. Several other issues are also addressed in this patch set. Merged back into this pa

[PATCH 24/24] staging: lustre: Remove LASSERTS from router checker

2016-02-22 Thread James Simmons
From: Doug Oucharek In lnet_router_checker(), there are two LASSERTS. Neither protects us from anything and one of them triggered for a customer crashing the system unecessarily. This patch removes them. Signed-off-by: Doug Oucharek Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7362 Rev

Re: [PATCH 3/4] sched/deadline: Tracepoints for deadline scheduler

2016-02-22 Thread Steven Rostedt
On Mon, 22 Feb 2016 22:30:17 +0100 Peter Zijlstra wrote: > On Mon, Feb 22, 2016 at 12:48:54PM -0500, Steven Rostedt wrote: > > > > As it stands, the existing tracepoint have already been an ABI > > > trainwreck, why would I want to add more? > > > > Yes, this may become a type of ABI, but eve

[PATCH 20/24] staging: lustre: avoid race during lnet acceptor thread termination

2016-02-22 Thread James Simmons
From: Bruno Faccini This patch will avoid potential race, around socket sleepers wait list, during acceptor thread termination and using sk_callback_lock RW-Lock protection. Signed-off-by: Bruno Faccini Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6476 Reviewed-on: http://review.whamclou

[PATCH 23/24] staging: lustre: Use lnet_is_route_alive for router aliveness

2016-02-22 Thread James Simmons
From: Chris Horn lctl show_route and lctl route_list will output router aliveness information via lnet_get_route(). lnet_get_route() should use the lnet_is_route_alive() function, introduced in e8a1124 http://review.whamcloud.com/7857, to determine route aliveness. Signed-off-by: Chris Horn Int

Re: [PATCH 08/10] x86/xsaves: Fix PTRACE frames for XSAVES

2016-02-22 Thread Yu-cheng Yu
On Mon, Feb 22, 2016 at 02:19:05PM -0800, Dave Hansen wrote: > On 02/22/2016 12:48 PM, Yu-cheng Yu wrote: > > It should have been: > > > > xsave->header.xfeatures = xfeatures | > > (xsave->header.xfeatures & XFEATURE_MASK_SUPERVISOR); > > > > I'll fix it. > > Can we break it out

<    5   6   7   8   9   10   11   12   13   >