Re: [PATCH v7 22/24] [media] rtl2832: change the i2c gate to be mux-locked

2016-04-28 Thread Wolfram Sang
> So, I think all is ok, or do you need more than Tested-by? I think this will do. Thanks! signature.asc Description: PGP signature

Re: [PATCH v2 1/6] mm/page_alloc: recalculate some of zone threshold when on/offline memory

2016-04-28 Thread Joonsoo Kim
On Thu, Apr 28, 2016 at 03:46:33PM +0800, Rui Teng wrote: > On 4/25/16 1:21 PM, js1...@gmail.com wrote: > >From: Joonsoo Kim > > > >Some of zone threshold depends on number of managed pages in the zone. > >When memory is going on/offline, it can be changed and we need to > >adjust them. > > > >Thi

Re: [PATCH v4] x86/boot: Warn on future overlapping memcpy() use

2016-04-28 Thread Kees Cook
On Thu, Apr 28, 2016 at 11:43 PM, Ingo Molnar wrote: > > * Kees Cook wrote: > >> If an overlapping memcpy() is ever attempted, we should at least report >> it, in case it might lead to problems, so it could be changed to a >> memmove() call instead. >> >> Suggested-by: Ingo Molnar >> Signed-off-

Re: linux-next: build warning after merge of the akpm-current tree

2016-04-28 Thread Stephen Rothwell
Hi All, On Fri, 29 Apr 2016 16:45:43 +1000 Stephen Rothwell wrote: > > After merging the akpm-current tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > drivers/scsi/ipr.c: In function 'ipr_show_device_id': > drivers/scsi/ipr.c:4462:34: warning: format '%llx' expe

[PATCH] staging: sm750fb: Comparison to NULL fixed

2016-04-28 Thread Manav Batra
Signed-off-by: Manav Batra Improved comparison to NULL and removed some blank lines. --- drivers/staging/sm750fb/ddk750_dvi.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/staging/sm750fb/ddk750_dvi.c b/drivers/staging/sm750fb/ddk750_dvi.c index a4a2550..bac

Re: [PATCH v2 0/6] Introduce ZONE_CMA

2016-04-28 Thread Joonsoo Kim
Hello, Mel. IIUC, you may miss that alloc_contig_range() currently does linear reclaim/migration. Your comment is largely based on this misunderstanding so please keep it in your mind when reading the reply. On Thu, Apr 28, 2016 at 11:39:27AM +0100, Mel Gorman wrote: > On Mon, Apr 25, 2016 at 02:

linux-next: build warning after merge of the akpm-current tree

2016-04-28 Thread Stephen Rothwell
Hi Andrew, After merging the akpm-current tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/scsi/ipr.c: In function 'ipr_show_device_id': drivers/scsi/ipr.c:4462:34: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has typ

Re: [PATCH] scripts/dtc: dt_to_config - report kernel config options for a devicetree

2016-04-28 Thread Geert Uytterhoeven
On Fri, Apr 29, 2016 at 8:39 AM, Gaurav Minocha wrote: > On Thu, Apr 28, 2016 at 3:32 PM, Rob Herring wrote: >> On Thu, Apr 28, 2016 at 4:46 PM, Frank Rowand wrote: >>> From: Frank Rowand >>> >>> Determining which kernel config options need to be enabled for a >>> given devicetree can be a pain

Re: [PATCH v4] x86/boot: Warn on future overlapping memcpy() use

2016-04-28 Thread Ingo Molnar
* Kees Cook wrote: > If an overlapping memcpy() is ever attempted, we should at least report > it, in case it might lead to problems, so it could be changed to a > memmove() call instead. > > Suggested-by: Ingo Molnar > Signed-off-by: Kees Cook > --- > v4: > - use __memcpy not memcpy since we

Re: efi_enabled(EFI_PARAVIRT) use

2016-04-28 Thread Ingo Molnar
* Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the xen-tip tree got a conflict in: > > drivers/firmware/efi/arm-runtime.c > > between commit: > > 14c43be60166 ("efi/arm*: Drop writable mapping of the UEFI System table") > > from the tip tree and commit: > > 21c8d

Re: [PATCH] scripts/dtc: dt_to_config - report kernel config options for a devicetree

2016-04-28 Thread Gaurav Minocha
On Thu, Apr 28, 2016 at 3:32 PM, Rob Herring wrote: > On Thu, Apr 28, 2016 at 4:46 PM, Frank Rowand wrote: >> From: Frank Rowand >> >> Determining which kernel config options need to be enabled for a >> given devicetree can be a painful process. Create a new tool to >> find the drivers that may

[PATCH v3 4/5] crypto: LRNG - enable compile

2016-04-28 Thread Stephan Mueller
Add LRNG compilation support. Signed-off-by: Stephan Mueller --- crypto/Kconfig | 10 ++ crypto/Makefile | 1 + 2 files changed, 11 insertions(+) diff --git a/crypto/Kconfig b/crypto/Kconfig index 93a1fdc..938f2dc 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -1587,6 +1587,16 @@

[PATCH v7 6/7] usb: pci-quirks: add Intel USB drcfg mux device

2016-04-28 Thread Lu Baolu
In some Intel platforms, a single usb port is shared between USB host and device controllers. The shared port is under control of a switch which is defined in the Intel vendor defined extended capability for xHCI. This patch adds the support to detect and create the platform device for the port mu

[PATCH v7 4/7] usb: mux: add driver for Intel drcfg controlled port mux

2016-04-28 Thread Lu Baolu
Several Intel PCHs and SOCs have an internal mux that is used to share one USB port between device controller and host controller. The mux is handled through the Dual Role Configuration Register. Signed-off-by: Heikki Krogerus Signed-off-by: Lu Baolu Signed-off-by: Wu Hao Reviewed-by: Felipe Ba

[PATCH v7 0/7] usb: add support for Intel dual role port mux

2016-04-28 Thread Lu Baolu
Intel SOC chips are featured with USB dual role. The host role is provided by Intel xHCI IP, and the gadget role is provided by IP from designware. Tablet platform designs always share a single port for both host and gadget controllers. There is a mux to switch the port to the right controller acc

[PATCH v7 3/7] usb: mux: add driver for Intel gpio controlled port mux

2016-04-28 Thread Lu Baolu
In some Intel platforms, a single usb port is shared between USB host and device controller. The shared port is under control of GPIO pins. This patch adds the support for USB GPIO controlled port mux. [baolu: removed .owner per platform_no_drv_owner.cocci] Signed-off-by: David Cohen Signed-off-

[PATCH v7 7/7] MAINTAINERS: add maintainer entry for Intel USB dual role mux drivers

2016-04-28 Thread Lu Baolu
Add a maintainer entry for Intel USB dual role mux drivers and add myself as a maintainer. Signed-off-by: Lu Baolu --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 1d5b4be..682c8a5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5879,

[PATCH v3 1/5] crypto: DRBG - externalize DRBG functions for LRNG

2016-04-28 Thread Stephan Mueller
>From 443dd61dcf2cf5a7a516c552da463ee2d8aea949 Mon Sep 17 00:00:00 2001 From: Stephan Mueller Date: Mon, 18 Apr 2016 10:04:33 +0200 Subject: This patch allows several DRBG functions to be called by the LRNG kernel code paths outside the drbg.c file. Signed-off-by: Stephan Mueller --- crypto/d

[PATCH v7 2/7] usb: mux: add generic code for dual role port mux

2016-04-28 Thread Lu Baolu
Several Intel platforms implement USB dual role by having completely separate xHCI and dwc3 IPs in PCH or SOC silicons. These two IPs share a single USB port. There is another external port mux which controls where the data lines should go. While the USB controllers are part of the silicon, the por

[PATCH v3 3/5] crypto: Linux Random Number Generator

2016-04-28 Thread Stephan Mueller
The LRNG with all its properties is documented in [1]. This documentation covers the functional discussion as well as testing of all aspects of entropy processing. In addition, the documentation explains the conducted regression tests to verify that the LRNG is API and ABI compatible with the legac

[PATCH] staging: sm750fb: Braces {} on all arms

2016-04-28 Thread Manav Batra
Signed-off-by: Manav Batra Applied braces on all arms of the statement. --- drivers/staging/sm750fb/ddk750_chip.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c index f80ee77..7748862 10064

[PATCH v7 1/7] regulator: fixed: add support for ACPI interface

2016-04-28 Thread Lu Baolu
Add support to retrieve fixed voltage configure information through ACPI interface. This is needed for Intel Bay Trail devices, where a GPIO is used to control the USB vbus. Signed-off-by: Lu Baolu --- drivers/regulator/fixed.c | 46 ++ 1 file changed,

[PATCH v7 5/7] mfd: intel_vuport: Add Intel virtual USB port MFD Driver

2016-04-28 Thread Lu Baolu
Some Intel platforms have an USB port mux controlled by GPIOs. There's a single ACPI platform device that provides 1) USB ID extcon device; 2) USB vbus regulator device; and 3) USB port switch device. This MFD driver will split these 3 devices for their respective drivers. [baolu: removed .owner p

[PATCH v3 5/5] random: add interrupt callback to VMBus IRQ handler

2016-04-28 Thread Stephan Mueller
The Hyper-V Linux Integration Services use the VMBus implementation for communication with the Hypervisor. VMBus registers its own interrupt handler that completely bypasses the common Linux interrupt handling. This implies that the interrupt entropy collector is not triggered. This patch adds the

Re: linux-next: manual merge of the akpm-current tree with the tip tree

2016-04-28 Thread Ingo Molnar
* Stephen Rothwell wrote: > Hi Andrew, > > Today's linux-next merge of the akpm-current tree got a conflict in: > > include/linux/efi.h > > between commit: > > 2c23b73c2d02 ("Ard Biesheuvel ") > > from the tip tree and commit: > > 9f2c36a7b097 ("include/linux/efi.h: redefine type, co

[PATCH v3 0/5] /dev/random - a new approach

2016-04-28 Thread Stephan Mueller
Hi Herbert, Ted, Andi, The following patch set provides a different approach to /dev/random which I call Linux Random Number Generator (LRNG) to collect entropy within the Linux kernel. The main improvements compared to the legacy /dev/random is to provide sufficient entropy during boot time as we

[PATCH v3 2/5] random: conditionally compile code depending on LRNG

2016-04-28 Thread Stephan Mueller
When selecting the LRNG for compilation, disable the legacy /dev/random implementation. The LRNG is a drop-in replacement for the legacy /dev/random which implements the same in-kernel and user space API. Only the hooks of /dev/random into other parts of the kernel need to be disabled. Signed-off

Re: [PATCH v2] sched/completion: convert completions to use simple wait queues

2016-04-28 Thread Daniel Wagner
On 04/28/2016 02:57 PM, Daniel Wagner wrote: > Only one complete_all() user could been identified so far, which happens > to be drivers/base/power/main.c. Several waiters appear when suspend > to disk or mem is executed. BTW, this is what I get when doing a 'echo "disk" > /sys/power/state' on a 4

[PATCH] staging: rts5208: Alignment should match open paranthesis

2016-04-28 Thread Manav Batra
Signed-off-by: Manav Batra Fixed alignment of parantheses. --- drivers/staging/rts5208/ms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rts5208/ms.c b/drivers/staging/rts5208/ms.c index 0f0cd4a..6c5ef29 100644 --- a/drivers/staging/rts5208/ms.c +++ b/drive

Re: [PATCH] usb: dwc3: usb/dwc3: fake dissconnect event when turn off pullup

2016-04-28 Thread Felipe Balbi
Hi, John Youn writes: >> "Du, Changbin" writes: >>> Hi, Balbi, >>> >>> The step to reproduce this issue is: >>> 1) connect device to a host and wait its enumeration. >>> 2) trigger software disconnect by calling function >>> usb_gadget_disconnect(), which finally call >>>dwc3_gadget_pul

linux-next: manual merge of the akpm-current tree with the tip tree

2016-04-28 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in: include/linux/efi.h between commit: 2c23b73c2d02 ("Ard Biesheuvel ") from the tip tree and commit: 9f2c36a7b097 ("include/linux/efi.h: redefine type, constant, macro from generic code") from the akpm-curre

Re: [PATCH 0/2] scop GFP_NOFS api

2016-04-28 Thread NeilBrown
On Tue, Apr 26 2016, Michal Hocko wrote: > Hi, > we have discussed this topic at LSF/MM this year. There was a general > interest in the scope GFP_NOFS allocation context among some FS > developers. For those who are not aware of the discussion or the issue > I am trying to sort out (or at least s

linux-next: manual merge of the akpm-current tree with the tile tree

2016-04-28 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in: arch/tile/Kconfig between commit: 4ef00aa30a3f ("tile: sort the "select" lines in the TILE/TILEGX configs") from the tile tree and commits: 628b7a1e7049 ("exit_thread: remove empty bodies") 803ae84888bb ("

Re: [PATCH] proc: prevent accessing /proc//environ until it's ready

2016-04-28 Thread Mathias Krause
On 28 April 2016 at 23:30, Andrew Morton wrote: > On Thu, 28 Apr 2016 21:04:18 +0200 Mathias Krause > wrote: > >> If /proc//environ gets read before the envp[] array is fully set >> up in create_{aout,elf,elf_fdpic,flat}_tables(), we might end up trying >> to read more bytes than are actually wr

Re: [PATCH] proc: prevent accessing /proc//environ until it's ready

2016-04-28 Thread Mathias Krause
On 28 April 2016 at 23:26, Andrew Morton wrote: > On Thu, 28 Apr 2016 21:04:18 +0200 Mathias Krause > wrote: > >> If /proc//environ gets read before the envp[] array is fully set >> up in create_{aout,elf,elf_fdpic,flat}_tables(), we might end up trying >> to read more bytes than are actually wr

Re: cgroup namespace and user namespace interactions

2016-04-28 Thread Aleksa Sarai
> The new cgroup namespace currently only allows for superficial > interaction with the user namespace (it checks against the namespace > it was created in whether or not a user has the right capabilities > before allowing mounting, and things like that). However, there is one > glaring feature tha

Re: [PATCH v2 4/9] of: Add bindings of hw throttle for soctherm

2016-04-28 Thread Wei Ni
On 2016年04月28日 22:48, Eduardo Valentin wrote: > On Thu, Apr 28, 2016 at 02:48:41PM +0800, Wei Ni wrote: >> >> >> On 2016年04月28日 07:30, Eduardo Valentin wrote: >>> From: Eduardo Valentin >>> To: Wei Ni >>> Cc: thierry.red...@gmail.com, robh...@kernel.org, rui.zh...@intel.com, >>> mlongnec...

Re: [PATCH v3 3/3] block: avoid to call .bi_end_io() recursively

2016-04-28 Thread Ming Lei
On Fri, Apr 29, 2016 at 12:59 AM, Mikulas Patocka wrote: > > > On Fri, 29 Apr 2016, Ming Lei wrote: > >> On Thu, Apr 28, 2016 at 11:58 PM, Mikulas Patocka >> wrote: >> > >> > >> > On Thu, 28 Apr 2016, Ming Lei wrote: >> > >> >> Hi Mikulas, >> >> >> >> On Thu, Apr 28, 2016 at 11:29 PM, Mikulas Pa

[git pull] drm fixes

2016-04-28 Thread Dave Airlie
Hi Linus, A few fixes all over the place: radeon is probably the biggest standout, it's a fix for screen corruption or hung black outputs so I thought it was worth pulling in. Otherwise some amdgpu power control fixes, some misc vmwgfx fixes, one etnaviv fix, one virtio-gpu fix, two DP MST fix

[PATCH] Use existing helper to convert "on/off" to boolean

2016-04-28 Thread Minfei Huang
It's more convenient to use existing function helper to convert string "on/off" to boolean. Signed-off-by: Minfei Huang --- lib/kstrtox.c| 2 +- mm/page_alloc.c | 9 + mm/page_poison.c | 8 +--- 3 files changed, 3 insertions(+), 16 deletions(-) diff --git a/lib/kstrtox.c b/lib/

Re: [PATCH 1/2] zsmalloc: require GFP in zs_malloc()

2016-04-28 Thread Minchan Kim
On Fri, Apr 29, 2016 at 01:17:09AM +0900, Sergey Senozhatsky wrote: > Pass GFP flags to zs_malloc() instead of using a fixed set > (supplied during pool creation), so we can be more flexible, > but, more importantly, this will be need to switch zram to > per-cpu compression streams. > > Apart from

[PATCH] staging: rts5208: Avoid multiple assignment in one line

2016-04-28 Thread Manav Batra
Signed-off-by: Manav Batra Separates out assignment in one line to two lines. --- drivers/staging/rts5208/rtsx.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rts5208/rtsx.c b/drivers/staging/rts5208/rtsx.c index 25d095a..77c2580 100644 --- a/drivers

Re: [PATCH] staging: rts5208: Avoid multiple assignment in one line

2016-04-28 Thread Greg KH
On Thu, Apr 28, 2016 at 10:30:49PM -0700, Manav Batra wrote: > Signed-off-by: Manav Batra I can't take patches without any changelog text :(

Re: [PATCH] mm/zsmalloc: don't fail if can't create debugfs info

2016-04-28 Thread Minchan Kim
On Fri, Apr 29, 2016 at 09:38:24AM +0900, Sergey Senozhatsky wrote: > On (04/28/16 15:07), Andrew Morton wrote: > > Needed a bit of tweaking due to > > http://ozlabs.org/~akpm/mmotm/broken-out/zsmalloc-reordering-function-parameter.patch > > Thanks. > > > From: Dan Streetman > > Subject: mm/zsma

[PATCH] staging: rts5208: Avoid multiple assignment in one line

2016-04-28 Thread Manav Batra
Signed-off-by: Manav Batra --- drivers/staging/rts5208/rtsx.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rts5208/rtsx.c b/drivers/staging/rts5208/rtsx.c index 25d095a..77c2580 100644 --- a/drivers/staging/rts5208/rtsx.c +++ b/drivers/staging/rts520

[PATCH] staging: rts5208: Unnecessary parantheses around chip->sd_card

2016-04-28 Thread Manav Batra
Signed-off-by: Manav Batra --- drivers/staging/rts5208/sd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rts5208/sd.c b/drivers/staging/rts5208/sd.c index 87d6976..fbd2f90 100644 --- a/drivers/staging/rts5208/sd.c +++ b/drivers/staging/rts5208/sd.c @@

Re: [PATCH 1/2] staging: wilc1000: fix double unlock

2016-04-28 Thread Greg Kroah-Hartman
On Thu, Apr 14, 2016 at 08:48:48PM +0530, Sudip Mukherjee wrote: > The semaphore was being released twice, once at the beginning of the > thread and then again when the thread is about to close. > The semaphore is acquired immediately after creating the thread so we > should be releasing it when th

Re: [PATCH v6 3/7] perf record: Split output into multiple files via '--switch-output'

2016-04-28 Thread Wangnan (F)
On 2016/4/28 5:32, Arnaldo Carvalho de Melo wrote: Em Wed, Apr 20, 2016 at 06:59:50PM +, Wang Nan escreveu: Allow 'perf record' to split its output into multiple files. For example: I squashed: -> 360 T 04/20 Wang Nan(1.7K) ├─>[PATCH v6 6/7] perf record: Re-synthesize trackin

Re: random(4) changes

2016-04-28 Thread Stephan Mueller
Am Dienstag, 26. April 2016, 20:23:46 schrieb George Spelvin: Hi George, > > And considering that I only want to have 0.9 bits of entropy, why > > should I not collapse it? The XOR operation does not destroy the existing > > entropy, it only caps it to at most one bit of information theoretical >

[PATCH 04/32] perf/x86/intel/cqm: make read of RMIDs per package (Temporal)

2016-04-28 Thread David Carrillo-Cisneros
The previous version of Intel's CQM introduced pmu::count as a replacement for reading CQM events. This was done to avoid using an IPI to read the CQM occupancy event when reading events attached to a thread. Using pmu->count in place of pmu->read is inconsistent with the usage by other PMUs and in

[PATCH 05/32] perf/core: remove unused pmu->count

2016-04-28 Thread David Carrillo-Cisneros
CQM was the only user of pmu->count, no need to have it anymore. Reviewed-by: Stephane Eranian Signed-off-by: David Carrillo-Cisneros --- include/linux/perf_event.h | 6 -- kernel/events/core.c | 10 -- kernel/trace/bpf_trace.c | 5 ++--- 3 files changed, 2 insertions(+),

[PATCH 07/32] perf/x86/intel/cqm: separate CQM PMU's attributes from x86 PMU

2016-04-28 Thread David Carrillo-Cisneros
Create a CQM_EVENT_ATTR_STR to use in CQM to remove dependency on the unrelated x86's PMU EVENT_ATTR_STR. Reviewed-by: Stephane Eranian Signed-off-by: David Carrillo-Cisneros --- arch/x86/events/intel/cqm.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/a

[PATCH 08/32] perf/x86/intel/cqm: prepare for next patches

2016-04-28 Thread David Carrillo-Cisneros
Move code around, delete unnecesary code and do some renaming in in order to increase readibility of next patches. Create cqm.h file. Reviewed-by: Stephane Eranian Signed-off-by: David Carrillo-Cisneros --- arch/x86/events/intel/cqm.c | 170 +++- arch/x86

[PATCH 11/32] perf/x86/intel/cqm: (I)state and limbo prmids

2016-04-28 Thread David Carrillo-Cisneros
CQM defines a dirty threshold that is the minimum number of dirty cache lines that a prmid can hold before being eligible to be reused. This threshold is zero unless there exist significant contention of prmids (more on this on the patch that introduces rotation of RMIDs). A limbo prmid is a prmid

[PATCH 10/32] perf/x86/intel/cqm: basic RMID hierarchy with per package rmids

2016-04-28 Thread David Carrillo-Cisneros
Cgroups and/or tasks that require to be monitored using a RMID are abstracted as a MOnitored Resources (monr's). A CQM event points to a monr to read occupancy (and in the future other attributes) of the RMIDs associated to the monr. The monrs form a hierarchy that captures the dependency within t

[PATCH 17/32] perf/core: adding pmu::event_terminate

2016-04-28 Thread David Carrillo-Cisneros
Allow a PMU to clean an event before the event's torn down in perf_events begins. Reviewed-by: Stephane Eranian Signed-off-by: David Carrillo-Cisneros --- include/linux/perf_event.h | 6 ++ kernel/events/core.c | 4 2 files changed, 10 insertions(+) diff --git a/include/linux/pe

[PATCH 15/32] perf/core: add hooks to expose architecture specific features in perf_cgroup

2016-04-28 Thread David Carrillo-Cisneros
The hooks allows architectures to extend the behavior of the perf subsystem. In this patch series, the hooks will be used by Intel's CQM PMU to provide support for the llc_occupancy event. Reviewed-by: Stephane Eranian Signed-off-by: David Carrillo-Cisneros --- include/linux/perf_event.h | 28

[PATCH 16/32] perf/x86/intel/cqm: add cgroup support

2016-04-28 Thread David Carrillo-Cisneros
Create a monr per monitored cgroup. Inserts monrs in the monr hierarchy. Task events are leaves of the lowest monitored ancestor cgroup (the lowest cgroup ancestor with a monr). CQM starts after the cgroup subsystem, and uses the cqm_initialized_key static key to avoid interfering with the perf cg

[PATCH 19/32] perf/core: introduce PMU event flag PERF_CGROUP_NO_RECURSION

2016-04-28 Thread David Carrillo-Cisneros
Some events, such as Intel's CQM llc_occupancy, need small deviations from the traditional behavior in the generic code in a way that depends on the event itself (and known by the PMU) and not in a field of perf_event_attrs. An example is the recursive scope for cgroups: The generic code handles c

[PATCH 12/32] perf/x86/intel/cqm: add per-package RMID rotation

2016-04-28 Thread David Carrillo-Cisneros
This version of RMID rotation improves over original one by: 1. Being per-package. No need for IPIs to test for occupancy. 2. Since the monr hierarchy removed the potential conflicts between events, the new RMID rotation logic does not need to check and resolve conflicts. 3. No need

[PATCH 18/32] perf/x86/intel/cqm: use pmu::event_terminate

2016-04-28 Thread David Carrillo-Cisneros
Utilized to detach a monr from a cgroup before the event's reference to the cgroup is removed. Reviewed-by: Stephane Eranian Signed-off-by: David Carrillo-Cisneros --- arch/x86/events/intel/cqm.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/arch/x86/even

[PATCH 23/32] perf/core: introduce PERF_INACTIVE_*_READ_* flags

2016-04-28 Thread David Carrillo-Cisneros
Some offcore and uncore events, such as the new intel_cqm/llc_occupancy, can be read even if the event is not active in its CPU (or in any CPU). In those cases, a freshly read value is more recent, (and therefore preferable) than the last value stored at event sched out. There are two cases covere

[PATCH 24/32] perf/x86/intel/cqm: use PERF_INACTIVE_*_READ_* flags in CQM

2016-04-28 Thread David Carrillo-Cisneros
Use newly added pmu_event flags to: - Allow thread events to be read from any CPU even if not in ACTIVE state. Since inter-package values are polled, a thread's occupancy is always: local occupancy (read from hw) + remote occupancy (polled values) - Allow cpu/cgroup events to be read

[PATCH 13/32] perf/x86/intel/cqm: add polled update of RMID's llc_occupancy

2016-04-28 Thread David Carrillo-Cisneros
To avoid IPIs from IRQ disabled contexts, the occupancy for a RMID in a remote package (a package other than the one the current cpu belongs) is obtained from a cache that is periodically updated. This removes the need for an IPI when reading occupancy for a task event, that was the reason to add t

[PATCH 20/32] x86/intel/cqm: use PERF_CGROUP_NO_RECURSION in CQM

2016-04-28 Thread David Carrillo-Cisneros
The CQM hardware is not compatible with the way generic code handles cgroup hierarchies (simultaneously adding the events of for all ancestors of the current cgroup). This version of Intel's CQM driver handles cgroup hierarchy internally. Set PERF_CGROUP_NO_RECURSION for llc_occupancy events to si

[PATCH 21/32] perf/x86/intel/cqm: handle inherit event and inherit_stat flag

2016-04-28 Thread David Carrillo-Cisneros
Since inherited events are part of the same cqm cache group, they share the RMID and therefore they cannot provide the granularity required by inherit_stats. Changing this would require to create a subtree of monrs for each parent event and its inherited events, a potential improvement for future p

[PATCH 28/32] perf/x86/intel/cqm: add CQM attributes to perf_event cgroup

2016-04-28 Thread David Carrillo-Cisneros
Expose the boolean attribute intel_cqm.cont_monitoring . When set, the associated group will be monitored even if no perf cgroup event is attached to it. The occupancy of a cgroup must be read using a perf_event, regardless of the value of intel_cqm.cont_monitoring . Reviewed-by: Stephane Eranian

[PATCH 27/32] perf/core: add perf_event cgroup hooks for subsystem attributes

2016-04-28 Thread David Carrillo-Cisneros
Allow architectures to define additional attributes for the perf cgroup. Reviewed-by: Stephane Eranian 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/i

[PATCH 32/32] perf/stat: revamp error handling for snapshot and per_pkg events

2016-04-28 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 29/32] perf,perf/x86,perf/powerpc,perf/arm,perf/*: add int error return to pmu::read

2016-04-28 Thread David Carrillo-Cisneros
New PMUs, such as CQM'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 CQM's PMU, it adds proper error handling of hw read failure errors. In other PMU

[PATCH 30/32] perf,perf/x86: add hook perf_event_arch_exec

2016-04-28 Thread David Carrillo-Cisneros
perf_event context switches events to newly exec'ed tasks using perf_event_exec. Add a hook for such path. In x86, perf_event_arch_exec is used to synchronize the software cache of the PQR_ASSOC msr, setting the right RMID for the new task. Reviewed-by: Stephane Eranian Signed-off-by: David Carr

[PATCH 31/32] perf/stat: fix bug in handling events in error state

2016-04-28 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 26/32] perf/x86/intel/cqm: integrate CQM cgroups with scheduler

2016-04-28 Thread David Carrillo-Cisneros
Allow monitored cgroups to update the PQR MSR during task switch even without an associated perf_event. The package RMID for the current monr associated with a monitored cgroup is written to hw during task switch (after perf_events is run) if perf_event did not write a RMID for an event. perf_eve

[PATCH 25/32] sched: introduce the finish_arch_pre_lock_switch() scheduler hook

2016-04-28 Thread David Carrillo-Cisneros
This hook allows architecture specific code to be called at the end of the task switch and after perf_events' context switch but before the scheduler lock is released. The specific use case in this series is to avoid multiple writes to a slow MSR until all functions which modify such register in t

[PATCH 09/32] perf/x86/intel/cqm: add per-package RMIDs, data and locks

2016-04-28 Thread David Carrillo-Cisneros
First part of new CQM logic. This patch introduces the struct pkg_data that contains all per-package CQM data required by the new RMID hierarchy. The raw RMID value is encapsulated in a Package RMID (prmid) structure that provides atomic updates and caches recent reads. This caching throttles the

[PATCH 03/32] perf/x86/intel/cqm: remove all code for rotation of RMIDs

2016-04-28 Thread David Carrillo-Cisneros
In preparation for future patches that will introduce a per-package rotation of RMIDs. The new rotation logic follows the same ideas as the present rotation logic being removed but takes advantage of the per-package RMID design and a more detailed bookkeeping to guarantee to meet user SLOs. It als

[PATCH 22/32] perf/x86/intel/cqm: introduce read_subtree

2016-04-28 Thread David Carrillo-Cisneros
Read RMIDs llc_occupancy for cgroups by adding the occupancy of all pmonrs with a read_rmid along its subtree in the pmonr hierarchy for the event's package. The RMID to read for a monr is the same as its RMID to schedule in hw if the monr is in (A)state. If in (IL)state, the RMID to read is that

[PATCH 02/32] perf/x86/intel/cqm: remove check for conflicting events

2016-04-28 Thread David Carrillo-Cisneros
The new version of Intel's CQM uses a RMID hierarchy to avoid conflicts between cpu, cgroup and task events, making unnecessary to check and resolve conflicts between events of different types (ie. cgroup vs task). Reviewed-by: Stephane Eranian Signed-off-by: David Carrillo-Cisneros --- arch/x8

[PATCH 06/32] x86/intel,cqm: add CONFIG_INTEL_RDT configuration flag and refactor PQR

2016-04-28 Thread David Carrillo-Cisneros
Add Intel's PQR as its own build target, remove its build dependency on CQM, and add CONFIG_INTEL_RDT as a configuration flag to build PQR and all of its related drivers (currently CQM, future: MBM, CAT, CDP). Reviewed-by: Stephane Eranian Signed-off-by: David Carrillo-Cisneros --- arch/x86/Kco

[PATCH 14/32] perf/x86/intel/cqm: add preallocation of anodes

2016-04-28 Thread David Carrillo-Cisneros
Pre-allocate enough anodes to be able to at least hold one set of RMIDs per package before running out of anodes. Reviewed-by: Stephane Eranian Signed-off-by: David Carrillo-Cisneros --- arch/x86/events/intel/cqm.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/x86/events/

[PATCH 01/32] perf/x86/intel/cqm: temporarily remove MBM from CQM and cleanup

2016-04-28 Thread David Carrillo-Cisneros
Removing MBM code from arch/x86/events/intel/cqm.c. MBM will be added using the new RMID infrastucture introduced in this patch series. Also, remove updates to CQM that are superseded by this series. Reviewed-by: Stephane Eranian Signed-off-by: David Carrillo-Cisneros --- arch/x86/events/intel

Re: [RFC PATCH V2 2/2] vhost: device IOTLB API

2016-04-28 Thread Jason Wang
On 04/29/2016 09:12 AM, Jason Wang wrote: > On 04/28/2016 10:43 PM, Michael S. Tsirkin wrote: >> > On Thu, Apr 28, 2016 at 02:37:16PM +0800, Jason Wang wrote: >>> >> >>> >> On 04/27/2016 07:45 PM, Michael S. Tsirkin wrote: >>> On Fri, Mar 25, 2016 at 10:34:34AM +0800, Jason Wang wrote: >

[PATCH 00/32] 2nd Iteration of Cache QoS Monitoring support.

2016-04-28 Thread David Carrillo-Cisneros
This series introduces the next iteration of kernel support for the Cache QoS Monitoring (CQM) technology available in Intel Xeon processors. One of the main limitations of the previous version is the inability to simultaneously monitor: 1) cpu event and any other event in that cpu. 2) cgroup

Re: [PATCH v7 22/24] [media] rtl2832: change the i2c gate to be mux-locked

2016-04-28 Thread Peter Rosin
On 2016-04-28 23:47, Wolfram Sang wrote: > On Wed, Apr 20, 2016 at 05:18:02PM +0200, Peter Rosin wrote: >> The root i2c adapter lock is then no longer held by the i2c mux during >> accesses behind the i2c gate, and such accesses need to take that lock >> just like any other ordinary i2c accesses do

[PATCH kernel v2] vfio_pci: Test for extended capabilities if config space > 256 bytes

2016-04-28 Thread Alexey Kardashevskiy
PCI-Express spec says that reading 4 bytes at offset 100h should return zero if there is no extended capability so VFIO reads this dword to know if there are extended capabilities. However it is not always possible to access the extended space so generic PCI code in pci_cfg_space_size_ext() checks

linux-next: manual merge of the xen-tip tree with the tip tree

2016-04-28 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the xen-tip tree got a conflict in: drivers/firmware/efi/arm-runtime.c between commit: 14c43be60166 ("efi/arm*: Drop writable mapping of the UEFI System table") from the tip tree and commit: 21c8dfaa2327 ("Xen: EFI: Parse DT parameters for Xen specifi

Re: [PATCH 3.16 000/217] 3.16.35-rc1 review

2016-04-28 Thread Guenter Roeck
On 04/26/2016 04:02 PM, Ben Hutchings wrote: This is the start of the stable review cycle for the 3.16.35 release. There are 217 patches in this series, which will be posted as responses to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

Re: [PATCH v3 6/6] sched/fair: Move (inactive) option from code to config

2016-04-28 Thread Yuyang Du
On Thu, Apr 28, 2016 at 11:37:33AM +0200, Peter Zijlstra wrote: > On Tue, Apr 05, 2016 at 12:12:31PM +0800, Yuyang Du wrote: > > The option of increased load resolution (fixed point arithmetic range) is > > unconditionally deactivated with #if 0. But since it may still be used > > somewhere (e.g.,

Re: [PATCH v2 2/2] cpufreq: arm_big_little: use generic OPP functions for {init,free}_opp_table

2016-04-28 Thread Viresh Kumar
On 28-04-16, 18:07, Sudeep Holla wrote: > Currently when performing random hotplugs and suspend-to-ram(S2R) on > systems using arm_big_little cpufreq driver, we get warnings similar to: > > cpu cpu1: _opp_add: duplicate OPPs detected. Existing: freq: 6, > volt: 80, enabled: 1. Ne

Re: [patch 2/7] lib/hashmod: Add modulo based hash mechanism

2016-04-28 Thread George Spelvin
Linus wrote: > Having looked around at other hashes, I suspect we should look at the > ones that do five or six shifts, and a mix of add/sub and xor. And > because they shift the bits around more freely you don't have the > final shift (that ends up being dependent on the size of the target > set).

Re: [PATCH v3 5/6] sched/fair: Rename scale_load() and scale_load_down()

2016-04-28 Thread Yuyang Du
On Thu, Apr 28, 2016 at 11:19:19AM +0200, Peter Zijlstra wrote: > On Tue, Apr 05, 2016 at 12:12:30PM +0800, Yuyang Du wrote: > > Rename scale_load() and scale_load_down() to user_to_kernel_load() > > and kernel_to_user_load() respectively, to allow the names to bear > > what they are really about.

Re: [PATCH v2 1/2] PM / OPP: add non-OF versions of dev_pm_opp_{cpumask_,}remove_table

2016-04-28 Thread Viresh Kumar
On 28-04-16, 18:07, Sudeep Holla wrote: > diff --git a/drivers/base/power/opp/core.c b/drivers/base/power/opp/core.c > index 433b60092972..e59b9e7c31ba 100644 > --- a/drivers/base/power/opp/core.c > +++ b/drivers/base/power/opp/core.c > @@ -1845,13 +1845,14 @@ struct srcu_notifier_head > *dev_pm_o

Re: [PATCH 3.16 106/217] sd: disable discard_zeroes_data for UNMAP

2016-04-28 Thread Rafael David Tinoco
Actually, It was an objection. Knowing that WRITESAME(16), used as the discard mechanism, can cause storage servers to misbehave (like QEMU's SCSI WRITESAME implementation, workaround-ed by commit e461338b6cd4) and those storage servers can't rely on LBPRZ flag to opt out from WRITESAME as discar

[PATCH] drm/rockchip: vop: fix iommu crash with async atomic

2016-04-28 Thread Mark Yao
On Async atomic_commit callback, drm_atomic_clean_old_fb will clean all old fb, but because async, the old fb may be also on the vop hardware, dma will access the old fb buffer, clean old fb will cause iommu page fault. Reference the fb and unreference it when the fb actuall swap out from vop hard

linux-next: manual merge of the tip tree with the arm64 tree

2016-04-28 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: drivers/firmware/efi/arm-init.c between commits: 500899c2cc3e ("efi: ARM/arm64: ignore DT memory nodes instead of removing them") 7464b6e3a5fb ("efi: ARM: avoid warning about phys_addr_t cast") from the arm64 tree and c

Re: [PATCH v2 1/1] ASoC: fsl_ssi: add CCSR_SSI_SOR to volatile register list

2016-04-28 Thread Nicolin Chen
On Mon, Apr 25, 2016 at 11:36:18AM -0700, Caleb Crome wrote: > The CCSR_SSI_SOR is a register that clears the TX and/or the RX fifo > on the i.MX SSI port. The fsl_ssi_trigger writes this register in > order to clear the fifo at trigger time. > > However, since the CCSR_SSI_SOR register is not in

Re: [alsa-devel] [PATCH v2 1/1] ASoC: fsl_ssi: add CCSR_SSI_SOR to volatile register list

2016-04-28 Thread Fabio Estevam
On Mon, Apr 25, 2016 at 3:36 PM, Caleb Crome wrote: > The CCSR_SSI_SOR is a register that clears the TX and/or the RX fifo > on the i.MX SSI port. The fsl_ssi_trigger writes this register in > order to clear the fifo at trigger time. > > However, since the CCSR_SSI_SOR register is not in the vola

[PATCH v3] drm/rockchip: support non-iommu buffer path

2016-04-28 Thread Mark Yao
Some rockchip vop not support iommu, need use non-iommu buffer for it. And if we get iommu issues, we can compare the issues with non-iommu path, the would help the debug. Signed-off-by: Mark Yao --- Changes in v3 - fix conflict with other iommu patch. Changes in v2 Advised by Heiko Stuebner - us

Re: [patch 2/7] lib/hashmod: Add modulo based hash mechanism

2016-04-28 Thread Linus Torvalds
On Thu, Apr 28, 2016 at 7:57 PM, George Spelvin wrote: > > How many 32-bit platforms nead a multiplier that's easy for GCC to > evaluate via shifts and adds? > > Generlly, by the time you've got a machine grunty enough to > need 64 bits, a multiplier is quite affordable. Probably true. That said

Re: [PATCH v3 4/6] sched/fair: Remove scale_load_down() for load_avg

2016-04-28 Thread Yuyang Du
On Thu, Apr 28, 2016 at 12:25:32PM +0200, Peter Zijlstra wrote: > On Tue, Apr 05, 2016 at 12:12:29PM +0800, Yuyang Du wrote: > > Currently, load_avg = scale_load_down(load) * runnable%. The extra scaling > > down of load does not make much sense, because load_avg is primarily THE > > load and on to

  1   2   3   4   5   6   7   8   9   10   >