[PATCH -tip v2 6/6] selftests: ftrace: Add a testcase for types of kprobe event

2016-10-29 Thread Masami Hiramatsu
Add a testcase for types of kprobe event. This checks kprobe event can accept and correctly expressed the arguments typed as s32, u32, x32 and bitfield. Here is the test result. - # ./ftracetest test.d/kprobe/kprobe_args_type.tc === Ftrace unit tests === [1] Kprobes event arguments wit

[PATCH -tip v2 2/6] selftests: ftrace: Initialize ftrace before each test

2016-10-29 Thread Masami Hiramatsu
Reset ftrace to initial state before running each test. This fixes some test cases to enable tracing before starting trace test. This can avoid false-positive failure when previous testcase fails while disabling tracing. Signed-off-by: Masami Hiramatsu Suggested-by: Steven Rostedt --- tools/tes

[PATCH -tip v2 4/6] selftests: ftrace: Introduce TMPDIR for temporary files

2016-10-29 Thread Masami Hiramatsu
Introduce TMPDIR variable which is removed after each test is done, so that the test script can put their temporary files in that. Signed-off-by: Masami Hiramatsu --- tools/testing/selftests/ftrace/ftracetest |2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/ftrace

[PATCH -tip v2 5/6] selftests: ftrace: Add a testcase for function filter glob match

2016-10-29 Thread Masami Hiramatsu
Add function filter glob matching test case. This checks whether the kernel supports glob matching (front match, end match, middle match, side match, character class and '?'). Here is the test result. - ./ftracetest test.d/ftrace/func-filter-glob.tc === Ftrace unit tests === [1] ftrace

[PATCH -tip v2 3/6] selftests: ftrace: Hide ftracetest logs from git

2016-10-29 Thread Masami Hiramatsu
Hide ftracetest result log directory from git. Signed-off-by: Masami Hiramatsu --- tools/testing/selftests/ftrace/.gitignore |1 + 1 file changed, 1 insertion(+) create mode 100644 tools/testing/selftests/ftrace/.gitignore diff --git a/tools/testing/selftests/ftrace/.gitignore b/tools/tes

[PATCH -tip v2 0/6] ftrace: selftests: Add full glob matching and update ftracetest

2016-10-29 Thread Masami Hiramatsu
Hi, Here is the 2nd version of the series of patches to add full glob matching support in ftrace and update ftracetest to test the glob matching and hexadecimal types. Previous version is here: https://lkml.org/lkml/2016/10/19/7 I've update ftracetest to initialize ftrace before each testcase a

[PATCH -tip v2 1/6] ftrace: Support full glob matching

2016-10-29 Thread Masami Hiramatsu
Use glob_match() to support flexible glob wildcards (*,?) and character classes ([) for ftrace. Since the full glob matching is slower than the current partial matching routines(*pat, pat*, *pat*), this leaves those routines and just add MATCH_GLOB for complex glob expression. e.g. [root@loca

drivers/regulator/lp872x.c:773: undefined reference to `devm_gpio_request_one'

2016-10-29 Thread kbuild test robot
Hi Linus, It's probably a bug fix that unveils the link errors. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 2a26d99b251b8625d27aed14e97fc10707a3a81f commit: 2527ecc9195e9c66252af24c4689e8a67cd4ccb9 gpio: Fix OF build problem on UM date: 2 months a

Re: [PATCH v3 6/6] sparc64: Enable 64-bit DMA

2016-10-29 Thread kbuild test robot
ase=auto for convenience) to record what (public, well-known) commit your patch series was built on] [Check https://git-scm.com/docs/git-format-patch for more information] url: https://github.com/0day-ci/linux/commits/Tushar-Dave/sparc-Enable-sun4v-hypervisor-PCI-IOMMU-v2-APIs-and-ATU/20161

Re: [PATCH] aio: fix a user triggered use after free (and fix freeze protection of aio writes)

2016-10-29 Thread Christoph Hellwig
On Sat, Oct 29, 2016 at 05:12:30PM +0100, Al Viro wrote: > Eww... IOW, as soon as we'd submitted an async iocb, nobody can so much as > look at struct file *or* iocb, right? Or underlying inode, or any fs-private > data structures attached to it... Yeah. > I certainly agree that it's a bug, but

Re: [PATCH] aio: fix a user triggered use after free (and fix freeze protection of aio writes)

2016-10-29 Thread Christoph Hellwig
On Sat, Oct 29, 2016 at 10:47:58AM -0700, Linus Torvalds wrote: > On Sat, Oct 29, 2016 at 8:20 AM, Christoph Hellwig wrote: > > > > We can't as that would not fix the use after free (at least for the lockdep > > case - otherwise the call is a no-op). Once iter_op returns aio_complete > > might ha

make[2]: *** No rule to make target 'alchemy/devboards/'.

2016-10-29 Thread kbuild test robot
Hi Paul, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 2a26d99b251b8625d27aed14e97fc10707a3a81f commit: cf2a5e0bb4c66e8c43caf9f1be93a1bd7fd07b17 MIPS: Support generating Flattened Image Trees (.itb) date: 3 week

Re: [PATCH 01/14] dma: sun6i-dma: Add burst case of 4

2016-10-29 Thread Jean-Francois Moine
On Sun, 30 Oct 2016 10:06:20 +0800 Chen-Yu Tsai wrote: > >> Yes, I know that the burst size is always a power of 2. > >> The best way to check it would be to change the {src,dts}_maxburst to a > >> bitmap of the possible bursts as 0x0d for 1,4 and 8 bytes. But this > >> asks for a lot of changes.

Re: [PATCH v4 2/2] fpga: Add support for Lattice iCE40 FPGAs

2016-10-29 Thread kbuild test robot
Hi Joel, [auto build test ERROR on linus/master] [also build test ERROR on v4.9-rc3 next-20161028] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience) to record what

arch/xtensa/include/asm/initialize_mmu.h:41: Error: invalid register 'atomctl' for 'wsr' instruction

2016-10-29 Thread kbuild test robot
Hi Pete, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 2a26d99b251b8625d27aed14e97fc10707a3a81f commit: d0b73b488c55df905ea8faaad079f8535629ed26 xtensa: Add config files for Diamond 233L - Rev C processor variant

drivers/gpu/drm/i915/i915_gem_gtt.c:2367: error: 'gtt_entry' may be used uninitialized in this function

2016-10-29 Thread kbuild test robot
Hi Dave, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 2a26d99b251b8625d27aed14e97fc10707a3a81f commit: 85d1225ec066b2ef46fbd0ed1bae78ae1f3e6c91 drm/i915: Introduce & use new lightweight SGL iterators date: 5 mo

fs/xfs/xfs_ondisk.h:96:2: error: call to '__compiletime_assert_96' declared with attribute error: XFS: sizeof(xfs_dir2_sf_entry_t) is wrong, expected 3

2016-10-29 Thread kbuild test robot
Hi Dave, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 2a26d99b251b8625d27aed14e97fc10707a3a81f commit: ab9d1e4f7b0217948a3b35a64178602ab30ff45d Merge branch 'xfs-misc-fixes-4.6-3' into for-next date: 8 months a

arch/ia64/kernel/entry.S:621: Error: Operand 2 of `adds' should be a 14-bit integer (-8192-8191)

2016-10-29 Thread kbuild test robot
Hi Will, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: a909d3e636995ba7c349e2ca5dbb528154d4ac30 commit: da48d094ce5d7c7dcdad9011648a81c42fd1c2ef Kconfig: remove HAVE_LATENCYTOP_SUPPORT date: 10 months ago config

Re: net/dccp: warning in dccp_feat_clone_sp_val/__might_sleep

2016-10-29 Thread Andrey Konovalov
Sorry, the warning is still there. I'm not sure adding sched_annotate_sleep() does anything, since it's defined as (in case CONFIG_DEBUG_ATOMIC_SLEEP is not set): # define sched_annotate_sleep() do { } while (0) On Sat, Oct 29, 2016 at 8:05 PM, Eric Dumazet wrote: > On Sat, 2016-10-29 at 19:59 +

Re: [PATCH v2 3/4] input: Deprecate real timestamps beyond year 2106

2016-10-29 Thread Deepa Dinamani
> I think we should do those two things completely independently. > We need to do something now to preserve the current interfaces > for the glibc changes that are coming soon [1], and Deepa's > patches do that (though I now realize the changelog doesn't > mention the requirement). I'll update the

[PATCH] nbd: Fix error handling

2016-10-29 Thread Christophe JAILLET
'blk_mq_alloc_request()' returns an error pointer in case of error, not NULL. So test it with IS_ERR. Fixes: fd8383fd88a2 ("nbd: convert to blkmq") Signed-off-by: Christophe JAILLET --- drivers/block/nbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/nbd.c

Re: [PATCH v2 3/4] input: Deprecate real timestamps beyond year 2106

2016-10-29 Thread Deepa Dinamani
> btw, where did you post the libevdev patch? I haven't seen it anywhere I'm > subscribed to. The libevdev patch was posted to input-to...@lists.freedesktop.org : https://www.mail-archive.com/y2038@lists.linaro.org/msg01824.html -Deepa

Re: [PATCH -next] brd: make symbol rd_size static

2016-10-29 Thread Jens Axboe
On 10/29/2016 10:10 AM, Wei Yongjun wrote: From: Wei Yongjun Fixes the following sparse warning: drivers/block/brd.c:411:15: warning: symbol 'rd_size' was not declared. Should it be static? We just tried this, it's used in arm: arch/arm/kernel/atags_parse.c static int __init parse_tag_ram

Re: [PULL] bcache: multiple updates

2016-10-29 Thread Davidlohr Bueso
On Sat, 29 Oct 2016, Eric Wheeler wrote: Kent, Davidlohr, does 3312845 need to land in 4.9 for some reason? No, not particularly. I can do my stuff whenever this is ends up being merged. Thanks, Davidlohr

make[2]: *** No rule to make target 'alchemy/'.

2016-10-29 Thread kbuild test robot
Hi Paul, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: a909d3e636995ba7c349e2ca5dbb528154d4ac30 commit: cf2a5e0bb4c66e8c43caf9f1be93a1bd7fd07b17 MIPS: Support generating Flattened Image Trees (.itb) date: 3 week

Re: [PATCH 00/14] introduce the BFQ-v0 I/O scheduler as an extra scheduler

2016-10-29 Thread Paolo Valente
> Il giorno 29 ott 2016, alle ore 16:12, Jens Axboe ha > scritto: > > On 10/28/2016 11:38 PM, Paolo Valente wrote: >> >>> Il giorno 26 ott 2016, alle ore 18:12, Jens Axboe ha >>> scritto: >>> >>> On 10/26/2016 10:04 AM, Paolo Valente wrote: > Il giorno 26 ott 2016, alle ore 17:32,

include/linux/unaligned/access_ok.h:7:19: error: redefinition of 'get_unaligned_le16'

2016-10-29 Thread kbuild test robot
Hi Vincent, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: a909d3e636995ba7c349e2ca5dbb528154d4ac30 commit: 3194c6870158e305dac2af52f83681e9cb67280f NFC: nfcmrvl: add firmware download support date: 1 year ago co

Re: [PATCH net-next] firewire: net: really fix maximum possible MTU

2016-10-29 Thread David Miller
From: Stefan Richter Date: Sat, 29 Oct 2016 22:16:58 +0200 > The maximum unicast datagram size /without/ link fragmentation is > 4096 - 4 = 4092 (max IEEE 1394 async payload size at >= S800 bus speed, > minus unfragmented encapssulation header). Max broadcast datagram size > without fragmentatio

cris-linux-objcopy: error: the input file 'arch/cris/boot/rescue/rescue.o' has no sections

2016-10-29 Thread kbuild test robot
Hi Guenter, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: a909d3e636995ba7c349e2ca5dbb528154d4ac30 commit: f9f3f864b5e8c09d7837d8980edba4ad52969819 cris: Fix section mismatches in architecture startup code date:

Re: [PATCH v4 2/2] fpga: Add support for Lattice iCE40 FPGAs

2016-10-29 Thread kbuild test robot
Hi Joel, [auto build test ERROR on linus/master] [also build test ERROR on v4.9-rc3 next-20161028] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience) to record what

Fw: [GIT] Networking

2016-10-29 Thread David Miller
Sorry, forgot to CC: the lists on this one, doh! --- Begin Message --- Lots of fixes, mostly drivers as is usually the case. 1) Don't treat zero DMA address as invalid in vmxnet3, from Alexey Khoroshilov. 2) Fix element timeouts in netfilter's nft_dynset, from Anders K. Pedersen. 3) Don'

Re: [PATCH v4 2/2] fpga: Add support for Lattice iCE40 FPGAs

2016-10-29 Thread kbuild test robot
Hi Joel, [auto build test ERROR on linus/master] [also build test ERROR on v4.9-rc3 next-20161028] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience) to record what

Re: [PATCH 01/14] dma: sun6i-dma: Add burst case of 4

2016-10-29 Thread Chen-Yu Tsai
Hi, On Fri, Oct 28, 2016 at 1:51 AM, Maxime Ripard wrote: > On Sun, Oct 23, 2016 at 06:31:07PM +0200, Jean-Francois Moine wrote: >> On Tue, 4 Oct 2016 18:55:54 +0200 >> Maxime Ripard wrote: >> >> > On Tue, Oct 04, 2016 at 12:40:11PM +0200, Jean-Francois Moine wrote: >> > > On Tue, 4 Oct 2016 11

Re: [PULL] bcache: multiple updates

2016-10-29 Thread Eric Wheeler
On Thu, 27 Oct 2016, Jens Axboe wrote: > On 10/27/2016 05:27 PM, Eric Wheeler wrote: > > Hi Jens, > > > > Please pull this v4.9-rc2 based series of bcache updates for v4.9-rc3: > > (You may disregard the previous -rc1-based request.) > > > > git pull https://bitbucket.org/ewheelerinc/linux.git >

[PATCH 4/6] mfd: ab8500-gpadc: Make it explicitly non-modular

2016-10-29 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config AB8500_GPADC drivers/mfd/Kconfig:bool "ST-Ericsson AB8500 GPADC driver" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned,

[PATCH 3/6] mfd: ab8500-debugfs: Make it explicitly non-modular

2016-10-29 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config AB8500_DEBUG drivers/mfd/Kconfig: bool "Enable debug info via debugfs" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned,

[PATCH 1/6] mfd: ab3100-core: Make it explicitly non-modular

2016-10-29 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config AB3100_CORE drivers/mfd/Kconfig:bool "ST-Ericsson AB3100 Mixed Signal Circuit core functions" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is

[PATCH 6/6] mfd: abx500-core: drop unused MODULE_ tags from non-modular code

2016-10-29 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config ABX500_CORE drivers/mfd/Kconfig:bool "ST-Ericsson ABX500 Mixed Signal Circuit register functions" ...meaning that it currently is not being built as a module by anyone. Lets remove the couple traces of

[PATCH 0/6] mfd: audit and demodule drivers/mfd/ab* drivers

2016-10-29 Thread Paul Gortmaker
Nothing new here ; just another instance where we had modular remove and exit functions -- but the Makefile/Kconfig limited the use case to being always built-in; hence the code is useless and needs removing. So we remove the dead code and the misleading hints of modularity from these drivers, hop

[PATCH 2/6] mfd: ab8500-core: Make it explicitly non-modular

2016-10-29 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config AB8500_CORE drivers/mfd/Kconfig:bool "ST-Ericsson AB8500 Mixed Signal Power Management chip" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is

[PATCH 5/6] mfd: ab8500: make sysctrl explicitly non-modular

2016-10-29 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config AB8500_CORE drivers/mfd/Kconfig:bool "ST-Ericsson AB8500 Mixed Signal Power Management chip" ...meaning that it currently is not being built as a module by anyone. Lets remove the couple traces of modu

Re: [PATCH 2/3] blackfin: make-bf561/coreb.c explicitly non-modular

2016-10-29 Thread kbuild test robot
Hi Paul, [auto build test ERROR on linus/master] [also build test ERROR on v4.9-rc3 next-20161028] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience) to record what

[PATCH v3 02/46] perf/x86/intel: rename CQM cpufeatures to CMT

2016-10-29 Thread David Carrillo-Cisneros
CMT name has superseded CQM in Intel's documentation. Rename cpufeatures. Next patches in this series will use the CMT name. Signed-off-by: David Carrillo-Cisneros --- arch/x86/include/asm/cpufeatures.h | 14 +++--- arch/x86/kernel/cpu/common.c | 10 +- 2 files changed, 12

[PATCH v3 01/46] perf/x86/intel/cqm: remove previous version of CQM and MBM

2016-10-29 Thread David Carrillo-Cisneros
Completely remove previous version of CQM + MBM driver to ease review of new version (this patch series). Signed-off-by: David Carrillo-Cisneros --- arch/x86/events/intel/Makefile |2 +- arch/x86/events/intel/cqm.c| 1766 include/linux/cpuhotplug.

[PATCH v3 03/46] x86/intel: add CONFIG_INTEL_RDT_M configuration flag

2016-10-29 Thread David Carrillo-Cisneros
New flag for building drivers for Intel RDT Monitoring (currently CMT, future: MBM). This driver may be converted to module once the hooks in perf cgroup are discussed. Signed-off-by: David Carrillo-Cisneros --- arch/x86/Kconfig | 12 1 file changed, 12 insertions(+) diff --git a/

[PATCH v3 05/46] perf/x86/intel/cmt: add per-package locks

2016-10-29 Thread David Carrillo-Cisneros
Per-package locks potentially reduce the contention when compared to the system-wide approach of the previous CQM/CMT driver. Lockdep needs lock_class_key's to be statically initialized and/or use nesting, but nesting is currently hard-coded for up to 8 levels and it's fragile to depend on lockdep

[PATCH v3 29/46] perf/x86/intel/cmt: add error handling to intel_cmt_event_read

2016-10-29 Thread David Carrillo-Cisneros
First part of intel_cmt_event_read. Error conditions and placeholder for oncoming chunks. Signed-off-by: David Carrillo-Cisneros --- arch/x86/events/intel/cmt.c | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/x86/events/intel/cmt.c b/arch/x86/events/intel/cmt.

[PATCH v3 09/46] perf/x86/intel/cmt: add basic monr hierarchy

2016-10-29 Thread David Carrillo-Cisneros
Add root for monr hierarchy and auxiliary functions for locking. Also, add support for attaching CPU and tasks events to monr hierarchy. As of this patch, both types of events always use the root monr (this will change when cgroups are introduced later in this series). More details in code's comm

[PATCH v3 04/46] perf/x86/intel/cmt: add device initialization and CPU hotplug support

2016-10-29 Thread David Carrillo-Cisneros
Introduce struct pkg_data to store per CPU package locks and data for new CMT driver. Each pkg_data is initialiazed/terminated on demand when the first/last CPU in its package goes online/offline. More details in code's comments. Signed-off-by: David Carrillo-Cisneros --- arch/x86/events/intel

[PATCH v3 10/46] perf/x86/intel/cmt: add Package MONitored Resource (pmonr) initialization

2016-10-29 Thread David Carrillo-Cisneros
A pmonr is the per-package component of a monr. This patch only adds initialization/destruction of pmonrs. Future patches explain their usage and add functionality. CPU hotplug is supported by initializing/terminating all pmonrs in monr hierarchy when first/last CPU in package goes online/offline.

[PATCH v3 11/46] perf/x86/intel/cmt: add cmt_user_flags (uflags) to monr

2016-10-29 Thread David Carrillo-Cisneros
uflags allow users to signal special behavior for a pmonr. This patch series introduces two uflags that provide new behavior and are relevant to users: 1) CMT_UF_NOLAZY_RMID: signal that rmids must be reserved immediately. 2) CMT_UF_NOSTEAL_RMID: rmids cannot be stolen. A monr mantains one fie

[PATCH v3 06/46] perf/x86/intel/cmt: add intel_cmt pmu

2016-10-29 Thread David Carrillo-Cisneros
Add pmu, llc_occupancy event attributes, and functions for event initialization. Empty pmu functions will be filled in future patches in this series. Signed-off-by: David Carrillo-Cisneros --- arch/x86/events/intel/cmt.c | 106 1 file changed, 106 in

[PATCH v3 08/46] perf/x86/intel/cmt: add MONitored Resource (monr) initialization

2016-10-29 Thread David Carrillo-Cisneros
Events use monrs to monitor CMT events. Events that share their monitoring target (same thread or cgroup) share a monr. This patch introduces monrs and adds support for monr creation/destruction. An event's associated monr is referenced by event->cmt_monr (introduced in previous patch). monr->mo

[PATCH v3 12/46] perf/x86/intel/cmt: add per-package rmid pools

2016-10-29 Thread David Carrillo-Cisneros
A Resource Monitoring ID (RMID) is a hardware ID used to track cache occupancy and memory bandwidth. The rmids are a per-package resource and only one can be programmed at a time per logical CPU. This patch series creates per-package rmids pools and (default) lazy allocation of rmids (only reserve

[PATCH v3 07/46] perf/core: add RDT Monitoring attributes to struct hw_perf_event

2016-10-29 Thread David Carrillo-Cisneros
Add attributes in hw_perf_event that are required by CMT and, in the future, MBM. Signed-off-by: David Carrillo-Cisneros --- include/linux/perf_event.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 345ec20..0202b32 100644

[PATCH v3 17/46] perf/x86/intel/cmt: add uflag CMT_UF_NOLAZY_RMID

2016-10-29 Thread David Carrillo-Cisneros
This uflag allows user to specify that a rmid must be allocated at monr's initialization or fail otherwise. For this to work we split __pmonr_apply_uflags into reserve and apply modes. The reserve mode will try to reserve a free rmid, and if successful, the apply mode can proceed using the rmid pr

[PATCH v3 15/46] perf/x86/intel: encapsulate rmid and closid updates in pqr cache

2016-10-29 Thread David Carrillo-Cisneros
Encapsulate updates for PQR_ASSOC msr's RMID and CLOSID into intel_rdt_common. Use new interface in Intel CMT. Change RDT common code to build for both CONFIG_INTEL_RDT_A and CONFIG_INTEL_RDT_M. Signed-off-by: David Carrillo-Cisneros --- arch/x86/events/intel/cmt.c | 6 ++ arch

[PATCH v3 19/46] perf/x86/intel/cmt: add support for cgroup events

2016-10-29 Thread David Carrillo-Cisneros
First part of cgroup support for CMT. A monr's position in monrs hierarchy depends on the position of it's target cgroup or thread in the cgroup hierarchy. (See code comments for details). A monr that monitors a cgroup keeps a reference to in monr->monr_cgroup and its used in future patches to ad

[PATCH v3 13/46] perf/x86/intel/cmt: add pmonr's Off and Unused states

2016-10-29 Thread David Carrillo-Cisneros
A pmonr uses a state machine to keep track of its rmids and their hierarchical dependency with other pmonrs in the same package. This patch introduces the first two states in such state machine. It also adds pmonr_rmids: a word-size container to atomically access a pmonr's sched and read rmids. M

[PATCH v3 22/46] perf/x86/intel/cmt: sync cgroups and intel_cmt device start/stop

2016-10-29 Thread David Carrillo-Cisneros
Start/stop cgroup monitoring for cgroups when intel_cmt device is started/stopped. Signed-off-by: David Carrillo-Cisneros --- arch/x86/events/intel/cmt.c | 99 + 1 file changed, 99 insertions(+) diff --git a/arch/x86/events/intel/cmt.c b/arch/x86/even

[PATCH v3 30/46] perf/x86/intel/cmt: add asynchronous read for task events

2016-10-29 Thread David Carrillo-Cisneros
Reading CMT/MBM task events in intel_cmt poses a challenge since it requires to read from multiple sockets (usually accomplished with an IPI) while called with interruptions disabled. The current usptream driver avoids the problematic read with interruptions disabled by not making a dummy perf_eve

[PATCH v3 26/46] sched: introduce the finish_arch_pre_lock_switch() scheduler hook

2016-10-29 Thread David Carrillo-Cisneros
This hook allows architecture specific code to be called right after perf_events' context switch but before the scheduler lock is released. It will serve two uses in this patch series: 1) Calls CMT's cgroup context switch code that update the current RMID when no perf event is active (in conti

[PATCH v3 18/46] perf/core: add arch_info field to struct perf_cgroup

2016-10-29 Thread David Carrillo-Cisneros
This is the first patch for cgroup support in this series. Adds a new field to perf_cgroup that is used by intel_cmt pmu to associate a monr with a perf_cgroup instance. Signed-off-by: David Carrillo-Cisneros --- include/linux/perf_event.h | 4 +++- kernel/events/core.c | 2 ++ 2 files ch

[PATCH v3 20/46] perf/core: add pmu::event_terminate

2016-10-29 Thread David Carrillo-Cisneros
The new pmu::event_terminate allows a PMU to access an event's cgroup before the event is torn down. Used in CMT to dettach the cgroup from a monr before perf clears event->cgrp. Signed-off-by: David Carrillo-Cisneros --- include/linux/perf_event.h | 6 ++ kernel/events/core.c | 4 +++

[PATCH v3 21/46] perf/x86/intel/cmt: use newly introduced event_terminate

2016-10-29 Thread David Carrillo-Cisneros
The change from event_destroy to event_terminate allows to check if the event is a event cgroup during event destuction, before generic code clears event->cgrp. Signed-off-by: David Carrillo-Cisneros --- arch/x86/events/intel/cmt.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff

[PATCH v3 16/46] perf/x86/intel/cmt: set sched rmid and complete pmu start/stop/add/del

2016-10-29 Thread David Carrillo-Cisneros
Now that the pmonr state machine and pqr_common are in place, add pmonr_update_sched_rmid to find the adequate rmid to use. With it, complete the body of PMUs functions that start/stop, add/del events. A pmonr in Unused state tries to allocate a free rmid the first time one of its monitored thread

[PATCH v3 31/46] perf/x86/intel/cmt: add subtree read for cgroup events

2016-10-29 Thread David Carrillo-Cisneros
A llc_occupancy read for a cgroup event must read llc_occupancy for all monrs in or below the event's monr. The cgroup's monr's pmonr must have a valid rmid for the read to be meaningful. Descendant pmonrs that do not have a valid read_rmid are skipped since their occupancy is already included in

[PATCH v3 14/46] perf/x86/intel/cmt: add Active and Dep_{Idle, Dirty} states

2016-10-29 Thread David Carrillo-Cisneros
Add remaining states for pmonr's state machine: - Active: A pmonr that is actively used. - Dep_Idle: A pmonr that failed to obtain a rmid. It "borrows" its rmid from its lowest monitored (Active in same pkgd) ancestor in the monr hierarchy. - Dep_Dirty: A pmonr that was Active but has

[PATCH v3 37/46] perf/x86/intel/cmt: add cont_monitoring to perf cgroup

2016-10-29 Thread David Carrillo-Cisneros
Expose the attribute intel_cmt.cont_monitoring to perf cgroups using the newly introduced hook PERF_CGROUP_ARCH_CGRP_SUBSYS_ATTS. The format of new attribute is a semi-colon separated list of per-package hexadecimal flags with missing an empty string assigned to zero. echo "1;2" > g1/intel_cmt.

[PATCH v3 32/46] perf/core: Add PERF_EV_CAP_READ_ANY_{CPU_,}PKG flags

2016-10-29 Thread David Carrillo-Cisneros
Introduce two new PERF_EV_CAP_READ capabilities to save unnecessary IPIs. Since PMU hw keeps track of rmids at all times, both capabilities in this patch allow to read events even when inactive. These capabilities also remove the need to read the value of an event on pmu->stop (already baked in in

Re: [PATCH 4.4 00/51] 4.4.29-stable review

2016-10-29 Thread Guenter Roeck
On 10/29/2016 06:49 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.4.29 release. There are 51 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be ma

[PATCH v3 35/46] perf/x86/intel/cmt: use PERF_EV_CAP_CGROUP_NO_RECURSION in intel_cmt

2016-10-29 Thread David Carrillo-Cisneros
Use newly added flag. Signed-off-by: David Carrillo-Cisneros --- arch/x86/events/intel/cmt.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/x86/events/intel/cmt.c b/arch/x86/events/intel/cmt.c index 614b2f4..194038b 100644 --- a/arch/x86/events/intel/cmt.c +++ b/arch/x86/events

[PATCH v3 34/46] perf/core: introduce PERF_EV_CAP_CGROUP_NO_RECURSION

2016-10-29 Thread David Carrillo-Cisneros
The generic code handles cgroup hierarchy by adding to the PMU the events of all the ancestor cgroups of the cgroup to read. This approach is incompatible with the CMT hw that only allows one rmid per virtual core at a time. CMT's PMU work-arounds this limitation by internally maintaining the hiera

[PATCH v3 25/46] perf/x86/intel/cmt: add monr->flags and CMT_MONR_ZOMBIE

2016-10-29 Thread David Carrillo-Cisneros
Add a new enumeration to store monr's internal state information. This new monr->flags contrasts with monr->uflag that stores user provided flags. The first flags is CMT_MONR_ZOMBIE, used to signal that the monr is no longer valid, yet, must be kept around until its released by its last user. This

[PATCH v3 24/46] perf/x86/intel/cmt: add perf_cgroup_arch_css_{online,offline}

2016-10-29 Thread David Carrillo-Cisneros
Use newly introduced architecture specific hooks to update monr hierarchy when a cgroup goes online/offline. Add cmt_initialized_key and use it to avoid using the hooks when the intel_cmt is not active. Signed-off-by: David Carrillo-Cisneros --- arch/x86/events/intel/cmt.c | 36 ++

[PATCH v3 36/46] perf/core: add perf_event cgroup hooks for subsystem attributes

2016-10-29 Thread David Carrillo-Cisneros
Allow architectures to define additional attributes for the perf cgroup. Signed-off-by: David Carrillo-Cisneros --- include/linux/perf_event.h | 4 kernel/events/core.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index

Re: [PATCH 4.8 000/125] 4.8.6-stable review

2016-10-29 Thread Guenter Roeck
On 10/29/2016 06:48 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.8.6 release. There are 125 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be ma

[PATCH v3 33/46] perf/x86/intel/cmt: use PERF_EV_CAP_READ_{,CPU_}PKG flags in Intel cmt

2016-10-29 Thread David Carrillo-Cisneros
Use new flags in CMT pmu. Signed-off-by: David Carrillo-Cisneros --- arch/x86/events/intel/cmt.c | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/x86/events/intel/cmt.c b/arch/x86/events/intel/cmt.c index 275d128..614b2f4 100644 --- a/arch/x86/events/intel/cmt.c +++ b/arch/x86/e

[PATCH v3 27/46] perf/x86/intel: add pqr cache flags and intel_pqr_ctx_switch

2016-10-29 Thread David Carrillo-Cisneros
In order to support intel_cmt for cgroups with no perf_event, this driver calls intel_pqr_ctx_switch during a task context switch, after perf_event has add/del all events (if any), using the newly introduced finish_arch_pre_lock_switch() . If pmu->add sets a rmids, the next rmid is "marked" using

[PATCH v3 43/46] perf/x86/intel/cmt: add CMT_UF_NOSTEAL_RMID flag

2016-10-29 Thread David Carrillo-Cisneros
Allow user to specify that rmids used by a cgroup/event cannot be stolen. The pmonrs that are marked with CMT_UF_NOSTEAL_RMID will never lose a valid rmid once they have receive one. Signed-off-by: David Carrillo-Cisneros --- arch/x86/events/intel/cmt.c | 10 +- arch/x86/events/intel/cm

[PATCH v3 39/46] perf/x86/intel/cmt: add max_recycle_threshold sysfs attribute

2016-10-29 Thread David Carrillo-Cisneros
Expose max_recycle_threshold as a configurable sysfs attribute of intel_cmt pmu. max_recycle_threshold determines the maximum dirty threshold for rmids with no zero occupancy. Signed-off-by: David Carrillo-Cisneros --- arch/x86/events/intel/cmt.c | 57

[PATCH v3 41/46] perf/x86/intel/cmt: add rotation minimum progress SLO

2016-10-29 Thread David Carrillo-Cisneros
Try to activate monrs at a __cmt_min_progress_rate rate. Signed-off-by: David Carrillo-Cisneros --- arch/x86/events/intel/cmt.c | 274 +++- 1 file changed, 273 insertions(+), 1 deletion(-) diff --git a/arch/x86/events/intel/cmt.c b/arch/x86/events/intel/c

[PATCH v3 40/46] perf/x86/intel/cmt: add rotation scheduled work

2016-10-29 Thread David Carrillo-Cisneros
Schedule rotation work each pmu->hrtimer_interval_ms ms. Default to CMT_DEFAULT_ROTATION_PERIOD period. Signed-off-by: David Carrillo-Cisneros --- arch/x86/events/intel/cmt.c | 98 - arch/x86/events/intel/cmt.h | 2 + 2 files changed, 98 insertions(+)

[PATCH v3 23/46] perf/core: hooks to add architecture specific features in perf_cgroup

2016-10-29 Thread David Carrillo-Cisneros
The hooks allows architectures to extend the behavior of the perf cgroup. In this patch series, the hooks are used to allow intel_cmt to follow changes in the perf_cgroup hierarchy. Signed-off-by: David Carrillo-Cisneros --- include/linux/perf_event.h | 11 +++ kernel/events/core.c

[PATCH v3 38/46] perf/x86/intel/cmt: introduce read SLOs for rotation

2016-10-29 Thread David Carrillo-Cisneros
To make rmid rotation more dependable, this patch series introduces rotation Service Level Objectives (SLOs) that are described in code's documentation. This patch introduces cmt_{pre,min}_mon_slice SLOs that protects from bogus values when a rmid has not been available since the beginning of moni

[PATCH v3 28/46] perf,perf/x86,perf/powerpc,perf/arm,perf/*: add int error return to pmu::read

2016-10-29 Thread David Carrillo-Cisneros
New PMUs, such as CMT's, do not guarantee that a read will succeed even if pmu::add was successful. In the generic code, this patch adds an int error return and completes the error checking path up to perf_read(). In CMT's PMU, it adds proper error handling of hw read failure errors. In other PMU

[PATCH v3 42/46] perf/x86/intel/cmt: add rmid stealing

2016-10-29 Thread David Carrillo-Cisneros
Add rmid rotation code to steal an rmid whenever not enough pmonrs are being reactivated. More details in code's comments. Signed-off-by: David Carrillo-Cisneros --- arch/x86/events/intel/cmt.c | 149 ++-- 1 file changed, 144 insertions(+), 5 deletions(-)

[PATCH v3 45/46] perf/stat: fix bug in handling events in error state

2016-10-29 Thread David Carrillo-Cisneros
From: Stephane Eranian When an event is in error state, read() returns 0 instead of sizeof() buffer. In certain modes, such as interval printing, ignoring the 0 return value may cause bogus count deltas to be computed and thus invalid results printed. this patch fixes this problem by modifying r

[PATCH v3 44/46] perf/x86/intel/cmt: add debugfs intel_cmt directory

2016-10-29 Thread David Carrillo-Cisneros
Add debug fs to intel_cmt to help maintenance. It shows the following human readable snapshots of the internals of the CMT driver: - hrchy: A per monr view of the monr hierarchy. - pkgs: A per-package view of all online struct pkg_data. - rmids: A per-package view of occupancy and state of al

[PATCH v3 46/46] perf/stat: revamp read error handling, snapshot and per_pkg events

2016-10-29 Thread David Carrillo-Cisneros
A package wide event can return a valid read even if it has not run in a specific cpu, this does not fit well with the assumption that run == 0 is equivalent to a . To fix the problem, this patch defines special error values for val, run and ena (~0ULL), and use them to signal read errors, allowin

[PATCH v3 00/46] Cache Monitoring Technology (aka CQM)

2016-10-29 Thread David Carrillo-Cisneros
This series introduces the next iteration of kernel support for the Cache Monitoring Technology or CMT (formerly Cache QoS Monitoring, CQM) available in Intel Xeon processors. Documentation has replaced the Intel CQM name with Intel CMT. This version renames all code to CMT. It is rebased at tip

Re: [PATCH net-next] ibmveth: v1 calculate correct gso_size and set gso_type

2016-10-29 Thread Jonathan Maxwell
On Fri, Oct 28, 2016 at 5:08 AM, Eric Dumazet wrote: > On Thu, 2016-10-27 at 12:54 -0500, Thomas Falcon wrote: >> On 10/27/2016 10:26 AM, Eric Dumazet wrote: >> > On Wed, 2016-10-26 at 11:09 +1100, Jon Maxwell wrote: >> >> We recently encountered a bug where a few customers using ibmveth on the >>

[PATCH] pinctrl: sunxi: make bool drivers explicitly non-modular

2016-10-29 Thread Paul Gortmaker
None of the Kconfigs for any of these drivers are tristate, meaning that they currently are not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so that when reading the drivers there is no doubt they are builtin-only. All drivers get essentially the s

[char-misc-next 2/2] mei: bus: demote error to debug level upon disconnect

2016-10-29 Thread Tomas Winkler
From: Alexander Usyskin A mei client driver on the mei client bus can call disconnect function on already internal disconnected client. A client can disconnect internally, for example, during link reset or upon FW request. Those are legitimate flows and we should not log an error message, hence

[char-misc-next 1/2] mei: show the HBM protocol versions in the device attributes

2016-10-29 Thread Tomas Winkler
From: Alexander Usyskin The HBM protocol version is negotiated during the setup phase, then settled on a highest possible common version of the driver and the firmware. The sysfs API advertises both negotiated and driver supported versions in the device attributes. Signed-off-by: Alexander Usysk

RE: Is This Email Still Working.

2016-10-29 Thread Kyyaly M.
From: Kyyaly M. Sent: 30 October 2016 00:12 To: Kyyaly M. Subject: RE: Is This Email Still Working. Transaction offer contact me---> jonathan_symond...@outlook.com for details.

Re: [PATCH 4.4 00/51] 4.4.29-stable review

2016-10-29 Thread Shuah Khan
On 10/29/2016 07:49 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.29 release. > There are 51 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses sh

Re: [PATCH 4.8 000/125] 4.8.6-stable review

2016-10-29 Thread Shuah Khan
On 10/29/2016 07:48 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.8.6 release. > There are 125 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses sh

Re: [PATCH] asm-generic: Drop getrlimit and setrlimit syscalls from default list

2016-10-29 Thread James Hogan
On 29 October 2016 22:45:41 BST, Yury Norov wrote: >On Sat, Oct 29, 2016 at 11:02:40PM +0200, Arnd Bergmann wrote: >> On Saturday, October 22, 2016 3:14:04 PM CEST Yury Norov wrote: >> > The newer prlimit64 syscall provides all the functionality provided >by >> > the getrlimit and setrlimit syscal

Re: [PATCH 3/3] s390: char: make slp_ctl explicitly non-modular

2016-10-29 Thread kbuild test robot
Hi Paul, [auto build test ERROR on linus/master] [also build test ERROR on v4.9-rc3 next-20161028] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience) to record what

  1   2   3   4   5   6   >