[PATCH 2/2] x86/irq: Take chained interrupts into account in fixup_irqs()

2015-10-01 Thread Mika Westerberg
When a CPU is offlined all interrupts that have action are migrated to other still online CPUs. However, if the interrupt has chained handler installed this is not done. Chained handlers are used by GPIO drivers which support interrupts, for instance. When affinity is not corrected properly we end

[PATCH 1/2] genirq: Introduce a new flag IRQ_IS_CHAINED for chained interrupts

2015-10-01 Thread Mika Westerberg
In some cases it is useful to know if the interrupt in question has chained handler installed. For example when a cpu is offlined the architecture code needs to know if it has any users so that it can fixup affinity accordingly. To make this possible we introduce a new flag IRQ_IS_CHAINED that is

CRIS v32: leftover references on ETRAX_VIRTUAL_GPIO

2015-10-01 Thread Valentin Rothberg
Hi Rabin, your commit ("CRIS v32: remove old GPIO and LEDs code") is in today's linux-next tree (i.e., 20151002). Among other Kconfig options, the commit removes ETRAX_VIRTUAL_GPIO but leaves the following references in the code: 0 arch/cris/arch-v32/kernel/setup.c 132 #ifdef CONFIG_ETRAX_

[PATCH V2 4/5] x86/intel_rdt: Hot cpu update for code data prioritization

2015-10-01 Thread Fenghua Yu
Updates hot cpu notification handling for code data prioritization(cdp). The capacity bitmask(cbm) is global for both data and instruction and we need to update the new online package with all the cbms by writing to the IA32_L3_QOS_n MSRs. Signed-off-by: Vikas Shivappa Signed-off-by: Fenghua Yu

[PATCH V2 2/5] x86/intel_rdt: Adds support to enable Code Data Prioritization

2015-10-01 Thread Fenghua Yu
On Intel SKUs that support Code Data Prioritization(CDP), intel_rdt operates in 2 modes - legacy cache allocation mode/default or CDP mode. When CDP is enabled, the number of available CLOSids is halved. Hence the enabling is done when less than half the number of CLOSids available are used. When

[PATCH V2 0/5] x86: Intel Code Data Prioritization Support

2015-10-01 Thread Fenghua Yu
This patch set supports Intel code data prioritization which is an extension of cache allocation and allows to allocate code and data cache seperately. It also includes cgroup interface for the user as seperate patches. The cgroup interface for cache alloc is also resent. Details of the feature ca

[PATCH V2 1/5] x86/intel_rdt: Intel Code Data Prioritization detection

2015-10-01 Thread Fenghua Yu
This patch adds enumeration support for Code Data Prioritization(CDP) feature found in future Intel Xeon processors. It includes CPUID enumeration routines for CDP. CDP is an extension to Cache Allocation and lets threads allocate subset of L3 cache for code and data separately. The allocation is

[PATCH V2 5/5] x86,cgroup/intel_rdt: Add cgroup interface for code data prioritization

2015-10-01 Thread Fenghua Yu
Adds two files to the intel_rdt cgroup 'dcache_cbm' and 'icache_cbm' when code data prioritization(cdp) support is present. The files represent the data capacity bit mask(cbm) and instruction cbm for L3 cache. User can specify the data and code cbm and the threads belonging to the cgroup would get

[PATCH V2 3/5] x86/intel_rdt: Class of service and capacity bitmask management for CDP

2015-10-01 Thread Fenghua Yu
Add support to manage CLOSid(CLass Of Service id) and capacity bitmask(cbm) for code data prioritization(CDP). Closid management includes changes to allocating, freeing closid and closid_get and closid_put and changes to closid availability map during mode switch. CDP has a separate cbm for code a

Re: [PATCH] gpio: ath79: Convert to the state container design pattern

2015-10-01 Thread Alban
On Fri, 25 Sep 2015 09:39:51 -0700 Linus Walleij wrote: > On Tue, Sep 1, 2015 at 2:38 AM, Alban Bedel wrote: > > > Turn the ath79 driver into a true driver supporting multiple > > instances. While at it also removed unneed includes and make use of > > the BIT() macro. > > > > Signed-off-by: Alb

Re: Soft lockup issue in Linux 4.1.9

2015-10-01 Thread Andre Tomt
On 01. okt. 2015 13:52, Eric Dumazet wrote: On Thu, Oct 1, 2015 at 4:43 AM, Holger Hoffstätte wrote: On 10/01/15 13:29, Eric Dumazet wrote: commit 83fccfc3940c4a2db90fd7e7079f5b465cd8c6af Author: Eric Dumazet Date: Thu Aug 13 15:44:51 2015 -0700 inet: fix potential deadlock in reqsk

Re: [PATCH v2 4/4] ASOC: sunxi: Add support for the spdif block

2015-10-01 Thread Code Kipper
>> +config SND_SOC_SUNXI_DAI_SPDIF >> +tristate >> + depends on OF >> +select SND_SOC_GENERIC_DMAENGINE_PCM >> +select REGMAP_MMIO >> + >> +config SND_SOC_SUNXI_MACHINE_SPDIF >> +tristate "APB on-chip sun4i/sun5i/sun7i SPDIF" >> + depends on OF >> +se

Re: [PATCH] clk: ti: dflt: fix enable_reg validity check

2015-10-01 Thread Tero Kristo
On 09/30/2015 01:37 AM, Suman Anna wrote: The default clock enabling functions for TI clocks - omap2_dflt_clk_enable() and omap2_dflt_clk_disable() perform a NULL check for the enable_reg field of the clk_hw_omap structure. This enable_reg field however is merely a combination of the index of the

[PATCH V15 03/11] x86/intel_rdt: Cache Allocation documentation

2015-10-01 Thread Fenghua Yu
Adds a description of Cache allocation technology, overview of kernel framework implementation. The framework has APIs to manage class of service, capacity bitmask(CBM), scheduling support and other architecture specific implementation. The APIs are used to build the cgroup interface in later patch

[PATCH V15 06/11] x86/intel_rdt: Add L3 cache capacity bitmask management

2015-10-01 Thread Fenghua Yu
This patch adds different APIs to manage the L3 cache capacity bitmask. The capacity bit mask(CBM) needs to have only contiguous bits set. The current implementation has a global CBM for each class of service id. There are APIs added to update the CBM via MSR write to IA32_L3_MASK_n on all packages

Re: linux-next: bad base of the h8300 tree

2015-10-01 Thread Yoshinori Sato
On Tue, 15 Sep 2015 08:12:01 +0900, Stephen Rothwell wrote: > > Hi Yoshinori, > > On Tue, 15 Sep 2015 09:10:30 +1000 Stephen Rothwell > wrote: > > > > Please do "gitk 9751a9e449da..h8300-next" in your tree and look at > > it (9751a9e449da is in Linus' tree). As I suggested above, maybe you > >

[PATCH V15 05/11] x86/intel_rdt: Add Class of service management

2015-10-01 Thread Fenghua Yu
Adds some data-structures and APIs to support Class of service management(closid). There is a new clos_cbm table which keeps a 1:1 mapping between closid and capacity bit mask (cbm) and a count of usage of closid. Each task would be associated with a Closid at a time and this patch adds a new field

[PATCH V15 04/11] x86/intel_rdt: Add support for Cache Allocation detection

2015-10-01 Thread Fenghua Yu
This patch includes CPUID enumeration routines for Cache allocation and new values to track resources to the cpuinfo_x86 structure. Cache allocation provides a way for the Software (OS/VMM) to restrict cache allocation to a defined 'subset' of cache which may be overlapping with other 'subsets'. T

[PATCH V15 07/11] x86/intel_rdt: Implement scheduling support for Intel RDT

2015-10-01 Thread Fenghua Yu
Adds support for IA32_PQR_ASSOC MSR writes during task scheduling. For Cache Allocation, MSR write would let the task fill in the cache 'subset' represented by the task's capacity bit mask. The high 32 bits in the per processor MSR IA32_PQR_ASSOC represents the CLOSid. During context switch kernel

[PATCH V15 08/11] x86/intel_rdt: Hot cpu support for Cache Allocation

2015-10-01 Thread Fenghua Yu
This patch adds hot plug cpu support for Intel Cache allocation. Support includes updating the cache bitmask MSRs IA32_L3_QOS_n when a new CPU package comes online or goes offline. The IA32_L3_QOS_n MSRs are one per Class of service on each CPU package. The new package's MSRs are synchronized with

[PATCH V15 09/11] x86/intel_rdt: Intel haswell Cache Allocation enumeration

2015-10-01 Thread Fenghua Yu
This patch is specific to Intel haswell (hsw) server SKUs. Cache Allocation on hsw server needs to be enumerated separately as HSW does not have support for CPUID enumeration for Cache Allocation. This patch does a probe by writing a CLOSid (Class of service id) into high 32 bits of IA32_PQR_MSR an

[PATCH V15 11/11] x86,cgroup/intel_rdt : Add a cgroup interface to manage Intel cache allocation

2015-10-01 Thread Fenghua Yu
Add a new cgroup 'intel_rdt' to manage cache allocation. Each cgroup directory is associated with a class of service id(closid). To map a task with closid during scheduling, this patch removes the closid field from task_struct and uses the already existing 'cgroups' field in task_struct. The cgrou

[PATCH V15 10/11] x86,cgroup/intel_rdt : Add intel_rdt cgroup documentation

2015-10-01 Thread Fenghua Yu
Add documentation on using the cache allocation cgroup interface with examples. Signed-off-by: Vikas Shivappa Signed-off-by: Fenghua Yu --- Documentation/cgroups/rdt.txt | 133 ++ 1 file changed, 133 insertions(+) create mode 100644 Documentation/cgroups

[PATCH V15 02/11] x86/intel_rapl: Modify hot cpu notification handling

2015-10-01 Thread Fenghua Yu
- In rapl_cpu_init, use the existing package<->core map instead of looping through all cpus in rapl_cpumask. - In rapl_cpu_exit, use the same mapping instead of looping all online cpus. In large systems with large number of cpus the time taken to loop may be expensive and also the time increa

[PATCH V15 01/11] x86/intel_cqm: Modify hot cpu notification handling

2015-10-01 Thread Fenghua Yu
- In cqm_pick_event_reader, use the existing package<->core map instead of looping through all cpus in cqm_cpumask. - In intel_cqm_cpu_exit, use the same map instead of looping through all online cpus. In large systems with large number of cpus the time taken to loop may be expensive and also

Re: [PATCH v4 1/5] mtd: nand: Create a BBT flag to access bad block markers in raw mode

2015-10-01 Thread Boris Brezillon
Brian, Archit, On Thu, 1 Oct 2015 19:44:34 -0700 Brian Norris wrote: > On Wed, Aug 19, 2015 at 10:19:02AM +0530, Archit Taneja wrote: > > Some controllers can access the factory bad block marker from OOB only > > when they read it in raw mode. When ECC is enabled, these controllers > > discard r

[PATCH V15 00/11] x86: Intel Cache Allocation Technology Support

2015-10-01 Thread Fenghua Yu
This series has some preparatory patches and Intel cache allocation support. Prep patches : Has some changes to hot cpu handling code in existing cache monitoring and RAPL kernel code. This improves hot cpu notification handling by not looping through all online cpus which could b

Re: [PATCH 4.1 00/29] 4.1.10-stable review

2015-10-01 Thread Sudip Mukherjee
On Thu, Oct 01, 2015 at 11:31:36AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.1.10 release. > There are 29 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.

Re: [PATCH 26/26] x86, pkeys: Documentation

2015-10-01 Thread Ingo Molnar
* Andy Lutomirski wrote: > >> Assuming it boots up fine on a typical distro, i.e. assuming that there > >> are no > >> surprises where PROT_READ && PROT_EXEC sections are accessed as data. > > > > I can't wait to find out what implicitly expects PROT_READ from > > PROT_EXEC mappings. :) So wha

Re: [PATCH] ver_linux: libcpp.patch

2015-10-01 Thread Alexander Kapshuk
On Fri, Oct 2, 2015 at 8:55 AM, Greg KH wrote: > On Thu, Oct 01, 2015 at 09:17:42PM +0300, Alexander Kapshuk wrote: >> Neither 'libg++.so', nor 'libstdc++.so' were found where the current >> implementation expects them to be found in the distros below. >> >> >> Gentoo Linux >> Debian 6.0.10 >> Ora

[PATCH] extcon: gpio: Add the support for Device tree bindings

2015-10-01 Thread Chanwoo Choi
This patch adds the support for Device tree bindings of extcon-gpio driver. The extcon-gpio device tree node must include the both 'extcon-id' and 'extcon-gpio' property. For exmaple: usb_cable: extcon-gpio-0 { compatible = "extcon-gpio"; extcon-id = <1>;

Re: bisected: Re: 4.3.0-rc3-00042: ACPI Warning: AcpiEnable failed

2015-10-01 Thread Meelis Roos
> > > 4.2.0 worked fine, 4.3.0-rc3-00042-g3225031 was the next one tested > > > after that and with this kernel, ACPI enabling fails. This is Pentium > > > III, 1 GHz, Intel 815 chipset, DMI tells something about "Packard Bell > > > NEC" as the mainboard type. > > > > > > Full dmesg and config

Re: [PATCH 26/26] x86, pkeys: Documentation

2015-10-01 Thread Ingo Molnar
* Dave Hansen wrote: > On 10/01/2015 01:39 PM, Kees Cook wrote: > > On Thu, Oct 1, 2015 at 4:17 AM, Ingo Molnar wrote: > >> So could we try to add an (opt-in) kernel option that enables this > >> transparently > >> and automatically for all PROT_EXEC && !PROT_WRITE mappings, without any > >> u

[PATCH] crypto: qce: dma_map_sg can handle chained SG

2015-10-01 Thread LABBE Corentin
The qce driver use two dma_map_sg path according to SG are chained or not. Since dma_map_sg can handle both case, clean the code with all references to sg chained. Thus removing qce_mapsg, qce_unmapsg and qce_countsg functions. Signed-off-by: LABBE Corentin --- drivers/crypto/qce/ablkcipher.c |

Re: [PATCH] ver_linux: libcpp.patch

2015-10-01 Thread Greg KH
On Thu, Oct 01, 2015 at 09:17:42PM +0300, Alexander Kapshuk wrote: > Neither 'libg++.so', nor 'libstdc++.so' were found where the current > implementation expects them to be found in the distros below. > > > Gentoo Linux > Debian 6.0.10 > Oracle Linux Server release 7.1 > > The proposed implemen

[PATCH 1/5] Staging: rtl8192u: quoted strings split across lines

2015-10-01 Thread mike dupuis
This is a patch to fix up instances where quoted strings are split across multiple lines in several instances in ieee80211_crypt_ccmp.c Signed-off-by: Mike Dupuis --- .../rtl8192u/ieee80211/ieee80211_crypt_ccmp.c | 27 +- 1 file changed, 11 insertions(+), 16 deletions(-)

[PATCH 2/5] Staging: rtl8192u: missing blank lines after declarations

2015-10-01 Thread mike dupuis
This is a patch to add missing lines after variable decalarations in two functions in ieee80211_crypt_ccmp.c Signed-off-by: Mike Dupuis --- drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211

[PATCH 3/5] Staging: rtl8192u: Fix block comment formatting

2015-10-01 Thread mike dupuis
This is a patch to correct block comment formatting in two instances in ieee80211_crypt_ccmp.c Signed-off-by: Mike Dupuis --- drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee8021

[PATCH 5/5] Staging: rtl8192u: Remove spaces at the start of lines

2015-10-01 Thread mike dupuis
This is a patch to correct indentation in one instance in ieee80211_crypt_ccmp.c Signed-off-by: Mike Dupuis --- drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c

[PATCH v3] mtd: nand: pass page number to ecc->write_xxx() methods

2015-10-01 Thread Boris Brezillon
The ->read_xxx() methods are all passed the page number the NAND controller is supposed to read, but ->write_xxx() do not have such a parameter. This is a problem if we want to properly implement data scrambling/randomization in order to mitigate MLC sensibility to repeated pattern: to prevent bit

[PATCH 4/5] Staging: rtl8192u: Correct open brace placement

2015-10-01 Thread mike dupuis
This is a patch to move open braces to the appropriate lines in two instances in ieee80211_crypt_ccmp.c Signed-off-by: Mike Dupuis --- drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee

[PATCH 0/5] Staging: rtl8192u: checkpatch.pl issues

2015-10-01 Thread mike dupuis
This is a series of patches to correct several checkpatch.pl warnings and errors in ieee80211_crypt_ccmp.c. Checkpatch.pl before/after summary: before: total: 2 errors, 23 warnings, 23 checks, 474 lines checked after: total: 0 errors, 10 warnings, 27 checks, 469 lines checked Mike Dupuis (5):

[PATCH 3/3] page-flags: hide PF_* validation check under separate config option

2015-10-01 Thread Kirill A. Shutemov
VM_BUG_ONs in PF_NO_TAIL() and PF_NO_COMPOUND() add 4+ KiB to mm/build-in.o for DEBUG_VM kernel. Let's hide them under new config option -- CONFIG_DEBUG_VM_PGFLAGS. With the option enabled VM_BUG_ON_PGFLAGS() is equal to VM_BUG_ON_PAGE. Signed-off-by: Kirill A. Shutemov --- include/linux/mmdebu

Re: [PATCH v4 1/5] gadget: Introduce the notifier functions

2015-10-01 Thread Greg KH
On Thu, Oct 01, 2015 at 12:29:32PM -0500, Felipe Balbi wrote: > On Thu, Sep 24, 2015 at 10:39:23AM -0700, Baolin Wang wrote: > > The usb charger framework is based on usb gadget. The usb charger > > need to be notified the state changing of usb gadget to confirm the > > usb charger state. > > > >

[PATCH 2/3] page-flags: add documentation for policies

2015-10-01 Thread Kirill A. Shutemov
The patch adds description for page flags policies. Signed-off-by: Kirill A. Shutemov --- include/linux/page-flags.h | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index 465ca42af633..19e4129f00e5 100

[PATCH 0/3] page-flags updates

2015-10-01 Thread Kirill A. Shutemov
Few updates based on Andrew's feedback. Kirill A. Shutemov (3): page-flags: do not corrupt caller 'page' in PF_NO_TAIL page-flags: add documentation for policies page-flags: hide PF_* validation check under separate config option include/linux/mmdebug.h| 6 ++ include/linux/page-f

[PATCH 1/3] page-flags: do not corrupt caller 'page' in PF_NO_TAIL

2015-10-01 Thread Kirill A. Shutemov
Andrew noticed that PF_NO_TAIL() modifies caller's 'page'. This doesn't trigger any bad results, because all users are inline functions which doesn't use the variable beyond the point. But still not good. The patch changes PF_NO_TAIL() to always return head page, regardless 'enforce'. This makes o

[RFC/PATCH 02/38] perf tools: Save mmap_param.len instead of mask

2015-10-01 Thread Namhyung Kim
It is more convenient saving mmap length rather than (bit) mask. With this patch, we can eliminate dependency to perf_evlist other than getting mmap_desc for dealing with mmaps. The mask and length can be converted using perf_evlist__mmap_mask/len(). Cc: Jiri Olsa Cc: Adrian Hunter Signed-off-

[RFC/PATCH 05/38] perf tools: Create separate mmap for dummy tracking event

2015-10-01 Thread Namhyung Kim
When indexed data file support is enabled, a dummy tracking event will be used to track metadata (like task, comm and mmap events) for a session and actual samples will be recorded in separate (intermediate) files and then merged (with index table). Provide separate mmap to the dummy tracking even

[RFC/PATCH 03/38] perf tools: Move auxtrace_mmap field to struct perf_evlist

2015-10-01 Thread Namhyung Kim
Since it's gonna share struct mmap with dummy tracking evsel to track meta events only, let's move auxtrace out of struct perf_mmap. Cc: Adrian Hunter Signed-off-by: Namhyung Kim --- tools/perf/builtin-record.c | 4 ++-- tools/perf/util/evlist.c| 30 +- tools/pe

Re: [RFC v2 6/7] powerpc: atomic: Make atomic{,64}_xchg and xchg a full barrier

2015-10-01 Thread Peter Zijlstra
On Fri, Oct 02, 2015 at 07:19:04AM +0800, Boqun Feng wrote: > Hi Peter, > > Please forgive me for the format of my reply. I'm travelling, > and replying from my phone. > > 2015年10月1日 下午7:28,"Peter Zijlstra" 写道: > > > > On Wed, Sep 16, 2015 at 11:49:34PM +0800, Boqun Feng wrote: > > > According to

[RFC/PATCH 08/38] perf tools: Handle indexed data file properly

2015-10-01 Thread Namhyung Kim
When perf detects data file has index table, process header part first and then rest data files in a row. Note that the indexed sample data is recorded for each cpu/thread separately, it's already ordered with respect to themselves so no need to use the ordered event queue interface. Signed-off-b

[RFC/PATCH 10/38] perf report: Skip dummy tracking event

2015-10-01 Thread Namhyung Kim
The dummy tracking event is only for tracking task/comom/mmap events and has no sample data for itself. So no need to report, just skip it. Signed-off-by: Namhyung Kim --- tools/perf/builtin-report.c| 3 +++ tools/perf/ui/browsers/hists.c | 30 -- tools/perf/ui/

Queueing b0a688ddcc50 "usb: musb: cppi41: allow it to work again" for -stable

2015-10-01 Thread Ezequiel Garcia
Hello, Commit b0a688ddcc50 "usb: musb: cppi41: allow it to work again" seems to fix a regression. It applies cleanly on v4.1 and removes the "musb-hdrc musb-hdrc.1.auto: Need DT for the DMA engine." error. Any chance you can queue it for -stable? Thanks! -- Ezequiel García, VanguardiaSur www.va

[RFC/PATCH 13/38] perf tools: Use thread__comm_by_time() when adding hist entries

2015-10-01 Thread Namhyung Kim
Now thread->comm can be handled with time properly, use it to find the correct comm at the time when adding hist entries. Cc: Frederic Weisbecker Signed-off-by: Namhyung Kim --- tools/perf/builtin-annotate.c | 5 +++-- tools/perf/builtin-diff.c | 8 tools/perf/tests/hists_link.c

[RFC/PATCH 15/38] perf tools: Introduce machine__find*_thread_by_time()

2015-10-01 Thread Namhyung Kim
With data file indexing is enabled, it needs to search thread based on sample time since sample processing is done after other (task, comm and mmap) events are processed. This can be a problem if a session is very long and pid is recycled - in that case it'll only see the last one. So keep thread

linux-next: Tree for Oct 2

2015-10-01 Thread Stephen Rothwell
Hi all, There will be no linux-next release on Monday. Changes since 20151001: I used the h8300 tree from next-20150828 since the current tree has been rebased onto linux-next again :-( The battery tree still had its build failure so I used the version from next-20150925. The target-updates

[RFC/PATCH 17/38] perf tools: Maintain map groups list in a leader thread

2015-10-01 Thread Namhyung Kim
To support multi-threaded perf report, we need to maintain time-sorted map groups. Add ->mg_list member to struct thread and sort the list by time. Now leader threads have one more refcnt for map groups in the list so also update the thread-mg-share test case. Currently only add a new map groups

[RFC/PATCH 19/38] perf callchain: Use thread__find_addr_location_by_time() and friends

2015-10-01 Thread Namhyung Kim
Find correct thread/map/symbol using proper functions. Cc: Frederic Weisbecker Signed-off-by: Namhyung Kim --- tools/perf/util/machine.c | 25 - tools/perf/util/unwind-libdw.c | 12 +++- tools/perf/util/unwind-libunwind.c | 27 ++-

Re: [PATCH 1/2] irqchip: sunxi-nmi: Use driver name instead of DT node name for identification

2015-10-01 Thread Chen-Yu Tsai
On Fri, Oct 2, 2015 at 4:14 AM, Maxime Ripard wrote: > Hi, > > On Thu, Oct 01, 2015 at 11:33:48PM +0800, Chen-Yu Tsai wrote: >> The device tree node name is typically "interrupt-controller", which is >> rather useless when used in printk messages and irq chip names for >> identification purposes.

[RFC/PATCH 28/38] perf tools: Move BUILD_ID_SIZE definition to perf.h

2015-10-01 Thread Namhyung Kim
The util/event.h includes util/build-id.h only for BUILD_ID_SIZE. This is a problem when I include util/event.h from util/tool.h which is also included by util/build-id.h since it now makes a circular dependency resulting in incomplete type error. Signed-off-by: Namhyung Kim --- tools/perf/perf.

[RFC/PATCH 23/38] perf tools: Use map_groups__find_addr_by_time()

2015-10-01 Thread Namhyung Kim
Use timestamp to find a corresponding map so that it can find a match symbol eventually. Cc: Stephane Eranian Signed-off-by: Namhyung Kim --- tools/perf/util/event.c | 81 ++-- tools/perf/util/thread.c | 8 +++-- 2 files changed, 77 insertions(+), 1

[RFC/PATCH 25/38] perf callchain: Maintain libunwind's address space in map_groups

2015-10-01 Thread Namhyung Kim
Currently the address_space was kept in thread struct but it's more appropriate to keep it in map_groups as it's maintained throughout exec's with timestamps. Also we should not flush the address space after exec since it still can be accessed when used with an indexed data file. Cc: Frederic Wei

[RFC/PATCH 22/38] perf tools: Introduce map_groups__{insert,find}_by_time()

2015-10-01 Thread Namhyung Kim
It'll manage maps using timestamp so that it can find correct map/symbol for sample at a certain time. With this API, it can maintain overlapping maps in a map_groups. Cc: Stephane Eranian Signed-off-by: Namhyung Kim --- tools/perf/util/map.c | 64 ++

[RFC/PATCH 21/38] perf tools: Save timestamp of a map creation

2015-10-01 Thread Namhyung Kim
It'll be used to support multiple maps on a same address like dlopen() and/or JIT compile cases. Cc: Stephane Eranian Cc: Frederic Weisbecker Signed-off-by: Namhyung Kim --- tools/perf/util/dso.c | 2 +- tools/perf/util/machine.c | 29 + tools/perf/util

[RFC/PATCH 26/38] perf session: Pass struct events stats to event processing functions

2015-10-01 Thread Namhyung Kim
Pass stats structure so that it can point separate object when used in multi-thread environment. Signed-off-by: Namhyung Kim --- tools/perf/util/session.c | 71 ++- 1 file changed, 45 insertions(+), 26 deletions(-) diff --git a/tools/perf/util/session

[RFC/PATCH 27/38] perf hists: Pass hists struct to hist_entry_iter struct

2015-10-01 Thread Namhyung Kim
This is a preparation for perf report multi-thread support. When multi-thread is enable, each thread will have its own hists during the sample processing. Signed-off-by: Namhyung Kim --- tools/perf/builtin-report.c | 1 + tools/perf/builtin-top.c | 1 + tools/perf/tests/hists_c

[RFC/PATCH 28/38] perf tools: Move BUILD_ID_SIZE definition to perf.h

2015-10-01 Thread Namhyung Kim
The util/event.h includes util/build-id.h only for BUILD_ID_SIZE. This is a problem when I include util/event.h from util/tool.h which is also included by util/build-id.h since it now makes a circular dependency resulting in incomplete type error. Signed-off-by: Namhyung Kim --- tools/perf/perf.

Re: [PATCH v2 1/4] dt-bindings: add sunxi SPDIF transceiver bindings

2015-10-01 Thread Code Kipper
>> + >> + - compatible : should be one of the following: >> +- "allwinner,sun4i-a10-spdif": for the Allwinner A10 SoC >> +- "allwinner,sun7i-a20-spdif": for the Allwinner A20 SoC >> +- "allwinner,sun6i-a31-spdif": for the Allwinner A31 SoC > > Are all these compatibles re

[RFC/PATCH 16/38] perf tools: Add a test case for timed thread handling

2015-10-01 Thread Namhyung Kim
A test case for verifying live and dead thread tree management during time change and new machine__find{,new}_thread_time(). Cc: Frederic Weisbecker Signed-off-by: Namhyung Kim --- tools/perf/tests/Build| 1 + tools/perf/tests/builtin-test.c | 4 + tools/perf/tests/tes

[RFC/PATCH 20/38] perf tools: Add a test case for timed map groups handling

2015-10-01 Thread Namhyung Kim
A test case for verifying thread->mg and ->mg_list handling during time change and new thread__find_addr_map_by_time() and friends. Cc: Frederic Weisbecker Signed-off-by: Namhyung Kim --- tools/perf/tests/Build| 1 + tools/perf/tests/builtin-test.c | 4 ++ tools/perf/tests/tests

[RFC/PATCH 12/38] perf tools: Add a test case for thread comm handling

2015-10-01 Thread Namhyung Kim
The new test case checks various thread comm handling APIs like overridding and time sorting. Cc: Frederic Weisbecker Signed-off-by: Namhyung Kim --- tools/perf/tests/Build | 1 + tools/perf/tests/builtin-test.c | 4 tools/perf/tests/tests.h| 1 + tools/perf/tests/threa

[RFC/PATCH 06/38] perf tools: Extend perf_evlist__mmap_ex() to use track mmap

2015-10-01 Thread Namhyung Kim
The perf_evlist__mmap_ex function creates data and auxtrace mmaps and optionally tracking mmaps for events now. It'll be used for perf record to save events in a separate files and build an index table. Checking dummy tracking event in perf_evlist__mmap() alone is not enough as users can specify a

[RFC/PATCH 18/38] perf tools: Introduce thread__find_addr_location_by_time() and friends

2015-10-01 Thread Namhyung Kim
These new functions are for find appropriate map (and symbol) at the given time when used with an indexed data file. This is based on the fact that map_groups list is sorted by time in the previous patch. Cc: Frederic Weisbecker Signed-off-by: Namhyung Kim --- tools/perf/util/event.c | 59 ++

[RFC/PATCH 11/38] perf tools: Introduce thread__comm(_str)_by_time() helpers

2015-10-01 Thread Namhyung Kim
When data file indexing is enabled, it processes all task, comm and mmap events first and then goes to the sample events. So all it sees is the last comm of a thread although it has information at the time of sample. Sort thread's comm by time so that it can find appropriate comm at the sample ti

[RFC/PATCH 14/38] perf tools: Convert dead thread list into rbtree

2015-10-01 Thread Namhyung Kim
Currently perf maintains dead threads in a linked list but this can be a problem if someone needs to search from it especially in a large session which might have many dead threads. Convert it to a rbtree like normal threads and it'll be used later with multi-thread changes. The list node is now

[RFC/PATCH 24/38] perf tools: Add testcase for managing maps with time

2015-10-01 Thread Namhyung Kim
This tests new map_groups__{insert,find}_by_time() API working correctly by using 3 * 100 maps. Cc: Stephane Eranian Signed-off-by: Namhyung Kim --- tools/perf/tests/Build | 1 + tools/perf/tests/builtin-test.c| 4 ++ tools/perf/tests/tests.h | 1 + tools/perf/tests

[RFC/PATCH 09/38] perf record: Add --index option for building index table

2015-10-01 Thread Namhyung Kim
The new --index option will create indexed data file which can be processed by multiple threads parallelly. It saves meta event and sample data in separate files and merges them with an index table. If there's an index table in the data file, the HEADER_DATA_INDEX feature bit is set and session->

[RFC/PATCH 07/38] perf tools: Add HEADER_DATA_INDEX feature

2015-10-01 Thread Namhyung Kim
The HEADER_DATA_INDEX feature is to record index table for sample data so that they can be processed by multiple thread concurrently. Each item is a struct perf_file_section which consists of an offset and size. Signed-off-by: Namhyung Kim --- tools/perf/builtin-record.c | 2 ++ tools/perf/uti

[RFC/PATCH 01/38] perf tools: Use a software dummy event to track task/mmap events

2015-10-01 Thread Namhyung Kim
Add APIs for software dummy event to track task/comm/mmap events separately. The perf record will use them to save such events in a separate mmap buffer to make it easy to index. This is a preparation of multi-thread support which will come later. Cc: Adrian Hunter Signed-off-by: Namhyung Kim

[RFC/PATCH 04/38] perf tools: pass perf_mmap desc directly

2015-10-01 Thread Namhyung Kim
Pass struct perf_mmap to mmap handling functions directly. This will be used by both of normal mmap and track mmap later. Signed-off-by: Namhyung Kim --- tools/perf/util/evlist.c | 24 +++- tools/perf/util/evlist.h | 1 + 2 files changed, 16 insertions(+), 9 deletions(-) d

[RFC/PATCH 00/38] perf tools: Speed-up perf report by using multi thread (v5)

2015-10-01 Thread Namhyung Kim
Hello, This patchset converts perf report to use multiple threads in order to speed up the processing on large data files. I can see a minimum ~30% of speedup with this change. The code is still experimental and contains many rough edges. But I'd like to share and give some feedbacks. * chang

Re: [PATCH 4.2 00/30] 4.2.3-stable review

2015-10-01 Thread Sudip Mukherjee
On Thu, Oct 01, 2015 at 11:21:22AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.2.3 release. > There are 30 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.

Re: [RFC] arm: Add generic smc wrapper

2015-10-01 Thread kbuild test robot
Hi Lars, [auto build test results on v4.3-rc3 -- if it's inappropriate base, please ignore] config: arm-rpc_defconfig (attached as .config) reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/ma

Re: [PATCH v3 2/5] mailbox: Add support for ST's Mailbox IP

2015-10-01 Thread Jassi Brar
On Wed, Aug 19, 2015 at 7:52 PM, Lee Jones wrote: > + > +#define MBOX_BASE(mdev, inst) ((mdev)->base + (inst * 4)) > It should be(inst) * 4 > +/** > + * STi Mailbox device data > + * > + * An IP Mailbox is currently composed of 4 instances > + * Each instance is currently composed of

Re: CPU hotplug and chained interrupts on x86

2015-10-01 Thread Mika Westerberg
On Thu, Oct 01, 2015 at 11:45:23PM +0200, Thomas Gleixner wrote: > On Thu, 1 Oct 2015, Thomas Gleixner wrote: > > On Thu, 1 Oct 2015, Mika Westerberg wrote: > > > Now if I plug/unplug the card I may get few interrupts to CPU0 but rest > > > of the interrupts never happen. Probably because IO-APIC f

Re: [RFC PATCH 00/20] Coresight integration with perf

2015-10-01 Thread Alexander Shishkin
Mathieu Poirier writes: > On 30 September 2015 at 02:52, Alexander Shishkin > wrote: >> Mathieu Poirier writes: >> >>> This patchset aims to integrate configuration and control of >>> the Coresight tracers with the perf sub-system. >>> >>> The goal is to use PMUs to represent tracers and the au

[PATCH v2 14/38] clk: vt8500: fix sign of possible PLL values

2015-10-01 Thread Andrzej Hajda
With unsigned values underflow in loops can occur resulting in theoretically infinite loops. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 Signed-off-by: Andrzej

Re: [RFC PATCH 15/20] coresight: etm-perf: implementing 'setup_aux()' API

2015-10-01 Thread Alexander Shishkin
Mathieu Poirier writes: > On 30 September 2015 at 05:50, Alexander Shishkin > wrote: >> Mathieu Poirier writes: >> >>> +static void *etm_setup_aux(int cpu, void **pages, >>> + int nr_pages, bool overwrite) >>> +{ >>> + struct coresight_device *csdev; >>> + >>> +

Re: [RFC PATCH 06/20] coresight: etm3x: unlocking tracer in default arch init

2015-10-01 Thread Alexander Shishkin
Mathieu Poirier writes: > On 30 September 2015 at 05:33, Alexander Shishkin > wrote: >> Mathieu Poirier writes: >> >>> Calling function 'smp_call_function_single()' to unlock the >>> tracer and calling it right after to perform the default >>> initialisation doesn't make sense. >>> >>> Moving '

[PATCH v5 1/3] ARM: uniphier: add outer cache support

2015-10-01 Thread Masahiro Yamada
This commit adds support for UniPhier outer cache controller. All the UniPhier SoCs are equipped with the L2 cache, while the L3 cache is currently only integrated on PH1-Pro5 SoC. Signed-off-by: Masahiro Yamada Acked-by: Rob Herring --- .../bindings/arm/uniphier/cache-uniphier.txt | 60

[PATCH v5 0/3] ARM: uniphier: add outer cache support and rework SMP operations

2015-10-01 Thread Masahiro Yamada
Hi Olof, Now Linux 4.3-rc1 is out, so I am back to this. 1/3: add outer cache support 2/3: rework SMP operations 3/3: add device tree nodes Because 2/3 highly depends on 1/3, I hope whole of this series is applied through ARM-SOC tree. Changes in v5: - Add __init to __uniphier_cache_set_lock

[PATCH v5 3/3] ARM: dts: uniphier: add outer cache controller nodes

2015-10-01 Thread Masahiro Yamada
Add L2 cache controller nodes for all the UniPhier SoC DTSI. Also, add an L3 cache controller node for PH1-Pro5 DTSI. Signed-off-by: Masahiro Yamada --- arch/arm/boot/dts/uniphier-ph1-ld4.dtsi | 13 + arch/arm/boot/dts/uniphier-ph1-pro4.dtsi| 14 ++ arch/arm/boot

[PATCH v5 2/3] ARM: uniphier: rework SMP operations to use trampoline code

2015-10-01 Thread Masahiro Yamada
The complexity of the boot sequence of UniPhier SoC family is a PITA due to the following hardware limitations: [1] No dedicated on-chip SRAM SoCs in general have small SRAM, on which a tiny firmware or a boot loader can run before SDRAM is initialized. As UniPhier SoCs do not have any dedicated

Re: [RFC PATCH 01/20] coresight: etm3x: splitting 'etm_enable_hw()' operations

2015-10-01 Thread Alexander Shishkin
Mathieu Poirier writes: > On 30 September 2015 at 03:58, Alexander Shishkin > wrote: >> Most of these things can also be bypassed, as at least initially perf >> events won't be using trigger/sequencer configurations, so we could >> simply clear all these things out when a first perf event is cre

Re: [PATCH v4 0/3] ARM: uniphier: add outer cache support and rework SMP operations

2015-10-01 Thread Masahiro Yamada
2015-09-30 20:01 GMT+09:00 Masahiro Yamada : > Hi Olof, > > Now Linux 4.3-rc1 is out, so I am back to this. > > 1/3: add outer cache support > 2/3: rework SMP operations > 3/3: add device tree nodes > > Because 2/3 highly depends on 1/3, I hope whole of this series > is applied through ARM-SOC tree

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

2015-10-01 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got conflicts in: Documentation/filesystems/proc.txt fs/proc/array.c fs/proc/base.c between commit: b2f73922d119 ("fs/proc, core/debug: Don't expose absolute kernel addresses via wchan") from the tip tree and commit: f01d

Re: linux-next: build failure after merge of the pinctrl tree

2015-10-01 Thread Stephen Rothwell
Hi Linus, On Fri, 25 Sep 2015 13:34:10 +1000 Stephen Rothwell wrote: > > After merging the pinctrl tree, today's linux-next build (arm > multi_v7_defconfig) failed like this: > > drivers/pinctrl/pinctrl-at91-pio4.c: In function 'atmel_gpio_irq_set_type': > drivers/pinctrl/pinctrl-at91-pio4.c:17

linux-next: manual merge of the target-updates tree with the kdbus tree

2015-10-01 Thread Stephen Rothwell
Hi Nicholas, Today's linux-next merge of the target-updates tree got a conflict in: samples/Makefile between commit: 2d41f8138508 ("kdbus: add walk-through user space example") from the kdbus tree and commit: f71933438300 ("configfs: remove old API") from the target-updates tree. I fi

Re: [v5, 2/6] fsl/fman: Add FMan support

2015-10-01 Thread Scott Wood
On Thu, Sep 24, 2015 at 12:10:34PM +0300, igal.liber...@freescale.com wrote: > +int fman_get_rx_extra_headroom(void) > +{ > + static bool fm_check_rx_extra_headroom; > + > + if (!fm_check_rx_extra_headroom) { > + if (fsl_fm_rx_extra_headroom > FSL_FM_RX_EXTRA_HEADROOM_MAX || > +

  1   2   3   4   5   6   7   8   9   10   >