[PATCH v3 02/14] uprobes: Introduce free_ret_instance()

2015-07-21 Thread Oleg Nesterov
We can simplify uprobe_free_utask() and handle_uretprobe_chain() if we add a simple helper which does put_uprobe/kfree and returns the ->next return_instance. Signed-off-by: Oleg Nesterov Acked-by: Srikar Dronamraju Acked-by: Anton Arapov Tested-by: Pratyush Anand --- kernel/events/uprobes.c

[PATCH v3 09/14] uprobes: Change prepare_uretprobe() to (try to) flush the dead frames

2015-07-21 Thread Oleg Nesterov
Change prepare_uretprobe() to flush the !arch_uretprobe_is_alive() return_instance's. This is not needed correctness-wise, but can help to avoid the failure caused by MAX_URETPROBE_DEPTH. Note: in this case arch_uretprobe_is_alive() can be false positive, the stack can grow after longjmp().

[PATCH v3 00/14] uprobes: longjmp / special-mapping fixes

2015-07-21 Thread Oleg Nesterov
Ingo, This is the changes I asked you to pull. I added v3 tag to avoid the confusion, but the only change is that I added the acks I got. Currently ret-probes can't work (the application will likely crash) if the probed function does not return, and this is even documented in

Re: [PATCH 2/2] target: remove initiatorname field in se_acl_lun

2015-07-21 Thread Christoph Hellwig
Looks good too, but same From: issue as the last patch. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at

Re: [PATCH 1/2] target: remove unused lun_flags field from se_lun

2015-07-21 Thread Christoph Hellwig
Looks good, but what's up with your From lines: On Mon, Jul 20, 2015 at 04:29:49PM -0700, Spencer Baugh wrote: > From: Spencer Baugh > > From: Chris Zankel plus another address for you in the actual email From line. Who did actually write this patch? -- To unsubscribe from this list: send

Re: [PATCH 05/10] arch: unify ioremap prototypes and macro aliases

2015-07-21 Thread Christoph Hellwig
On Sun, Jul 19, 2015 at 08:18:00PM -0400, Dan Williams wrote: > Some archs define the first parameter to ioremap() as unsigned long, > while the balance define it as resource_size_t, similar confusion exists > for the type of the 'size' parameter. Unify on (resource_size_t, > unsigned long) to

RE: [PATCH v2] thermal: consistently use int for temperatures

2015-07-21 Thread Zhang, Rui
> -Original Message- > From: Punit Agrawal [mailto:punit.agra...@arm.com] > Sent: Tuesday, July 21, 2015 6:52 PM > To: Sascha Hauer > Cc: linux...@vger.kernel.org; Zhang, Rui; Eduardo Valentin; linux- > ker...@vger.kernel.org; Jean Delvare; Peter Feuerer; Heiko Stuebner; > Lukasz

Re: [RFC Patch V1 00/12] Reorganize struct msi_desc to prepare for support of generic MSI

2015-07-21 Thread Bjorn Helgaas
[+cc Paul] On Thu, Jul 09, 2015 at 04:00:35PM +0800, Jiang Liu wrote: > Recently Marc Zyngier has posted a patch set at > https://lkml.org/lkml/2015/7/7/712 > to enhance PCI MSI code to support generic MSI. > > This is a companion patch set to refine struct msi_desc and related data >

[RFC PATCH] Exporting extra tables for machines without /dev/mem

2015-07-21 Thread Graeme Gregory
Hi, I thought I would send this patch as an RFC. It is something I did when another linaro engineer was modifying acpica-tools to not require /dev/mem. It exports the 3 tables that are not currenly exported in sysfs. Currently I do not think there is any user of this because acpica-tools can

Re: [PATCH 08/10] arch: introduce strict_ioremap

2015-07-21 Thread Christoph Hellwig
On Sun, Jul 19, 2015 at 08:18:17PM -0400, Dan Williams wrote: > In preparation for enabling memremap(), add support for strict mappings. > strict_ioremap_() returns NULL if the arch does not implement the > mapping type, rather than falling back silently to ioremap(). Please don't introduce

[RFC PATCH] ACPI: sysfs expose root tables RSDP/RSDT/XSDT

2015-07-21 Thread Graeme Gregory
On some architectures /dev/mem is being removed. For debug/analysis tools like FWTS/acpidump we therefore need to expose the ACPI root tables in sysfs like the other tables. Signed-off-by: Graeme Gregory --- drivers/acpi/sysfs.c | 123 +++ 1 file

[PATCH 5/5] staging: rtl8188eu: remove multiple blank line

2015-07-21 Thread Sudip Mukherjee
Multiple blank lines should be avoided. Signed-off-by: Sudip Mukherjee --- drivers/staging/rtl8188eu/os_dep/usb_intf.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/staging/rtl8188eu/os_dep/usb_intf.c b/drivers/staging/rtl8188eu/os_dep/usb_intf.c index 29b7ea6..5f44c6a 100644

[PATCH 4/5] staging: rtl8188eu: dont mix success and error path

2015-07-21 Thread Sudip Mukherjee
Success and error path was mixed. Separate them by directly returning 0 from the success path. In the process remove the variable which became unused. Signed-off-by: Sudip Mukherjee --- drivers/staging/rtl8188eu/os_dep/usb_intf.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-)

Re: [PATCH 2/8] overlayfs: Make f_path always point to the overlay and f_inode to the underlay

2015-07-21 Thread Konstantin Khlebnikov
On 20.07.2015 15:42, Konstantin Khlebnikov wrote: On 18.06.2015 16:32, David Howells wrote: Make file->f_path always point to the overlay dentry so that the path in /proc/pid/fd is correct and to ensure that label-based LSMs have access to the overlay as well as the underlay (path-based LSMs

[PATCH 3/5] staging: rtl8188eu: check for kzalloc failure

2015-07-21 Thread Sudip Mukherjee
Check for kzalloc failure and directly return from the error patch thus simplifying the success path. Suggested-by: Dan Carpenter Signed-off-by: Sudip Mukherjee --- drivers/staging/rtl8188eu/os_dep/usb_intf.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git

[PATCH 2/5] staging: rtl8188eu: remove label

2015-07-21 Thread Sudip Mukherjee
Directly return NULL instead of using another label and goto. Signed-off-by: Sudip Mukherjee --- drivers/staging/rtl8188eu/os_dep/usb_intf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/os_dep/usb_intf.c

[PATCH 1/5] staging: rtl8188eu: remove unused define

2015-07-21 Thread Sudip Mukherjee
_HCI_INTF_C_ was only defined here but not being used anywhere. Signed-off-by: Sudip Mukherjee --- drivers/staging/rtl8188eu/os_dep/usb_intf.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/os_dep/usb_intf.c b/drivers/staging/rtl8188eu/os_dep/usb_intf.c index

[PATCH RFC] merge_config.sh: Add support to pass arguments to make

2015-07-21 Thread Srinivas Kandagatla
The issue is flags like ARCH can be passed to make via environment variable or at command line by passing "ARCH=" argument to make file. The former case works fine if used with merge_config but the later case would not work and resulting config file from merge_config is useless. I hit this issue

Re: [PATCH v9 0/8] pci: add pci_iomap_wc() and pci_ioremap_wc_bar()

2015-07-21 Thread Bjorn Helgaas
On Tue, Jul 21, 2015 at 10:52:52AM +0200, Ingo Molnar wrote: > > * Luis R. Rodriguez wrote: > > > On Wed, Jul 08, 2015 at 06:54:11PM -0700, Luis R. Rodriguez wrote: > > > From: "Luis R. Rodriguez" > > > > > > Ingo, > > > > > > Boris is on vacation, he picked up these patches on his bp#tip-mm

Linux-next, Exynos Octa boot fail, bisected to: "drm/exynos: remove drm_iommu_attach_device_if_possible"

2015-07-21 Thread Krzysztof Kozlowski
Hi, Today's linux-next (next-20150721) encounters boot failures on Exynos Octa (Exynos5422) based boards. The boards hangs. I bisected it to: d80167b85024982c5f18d0481a5c248100360118 is the first bad commit commit d80167b85024982c5f18d0481a5c248100360118 Author: Joonyoung Shim Date: Thu Jul 2

[PATCH] dmaengine: xgene-dma: Add ACPI support for X-Gene DMA engine driver

2015-07-21 Thread Rameshwar Prasad Sahu
This patch adds ACPI support for the APM X-Gene DMA engine driver. Signed-off-by: Rameshwar Prasad Sahu --- drivers/dma/xgene-dma.c | 28 +--- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/drivers/dma/xgene-dma.c b/drivers/dma/xgene-dma.c index

Re: [PATCH 18/23] tile/time: Migrate to new 'set-state' interface

2015-07-21 Thread Chris Metcalf
On 7/16/2015 7:26 AM, Viresh Kumar wrote: Migrate tile driver to the new 'set-state' interface provided by clockevents core, the earlier 'set-mode' interface is marked obsolete now. This also enables us to implement callbacks for new states of clockevent devices, for example: ONESHOT_STOPPED.

Re: [Xen-devel] [PATCH v2 15/20] block/xen-blkfront: Make it running on 64KB page granularity

2015-07-21 Thread Julien Grall
Hi Roger, On 21/07/15 12:06, Roger Pau Monné wrote: > El 09/07/15 a les 22.42, Julien Grall ha escrit: >> From: Julien Grall >> >> The PV block protocol is using 4KB page granularity. The goal of this >> patch is to allow a Linux using 64KB page granularity using block >> device on a

Re: [PATCH] regulator: rk808: make better use of the gpiod API

2015-07-21 Thread Krzysztof Kozlowski
merged. > > Signed-off-by: Uwe Kleine-König > --- > Hello, > > this is the more complete fix of the issue that Stephen found while creating > next-20150721 (see commit f51ec04cf8be9f7ef795f1f39ada17c19f725650). > > Best regards > Uwe > > drivers/regulator/rk80

Re: Several races in "usbnet" module (kernel 4.1.x)

2015-07-21 Thread Oliver Neukum
On Mon, 2015-07-20 at 21:13 +0300, Eugene Shatokhin wrote: > Races on dev->rx_qlen. Reproduced these by repeatedly changing MTU > (1500 > <-> 1400) while downloading large files. Hi, I don't see how it matters much. The number of buffers is just an optimization. As long as it eventually is

Re: [Xen-devel] [PATCH v2 07/20] block/xen-blkfront: split get_grant in 2

2015-07-21 Thread Julien Grall
Hi, On 21/07/15 11:30, Roger Pau Monné wrote: > El 09/07/15 a les 22.42, Julien Grall ha escrit: >> Prepare the code to support 64KB page granularity. The first >> implementation will use a full Linux page per indirect and persistent >> grant. When non-persistent grant is used, each page of a bio

Re: [PATCH 5/5] irqchip: GIC: Switch ACPI support to stacked domains

2015-07-21 Thread Marc Zyngier
On Tue, 21 Jul 2015 13:34:08 +0100 Graeme Gregory wrote: > On Tue, Jul 21, 2015 at 11:08:00AM +0100, Marc Zyngier wrote: > > Now that the basic ACPI GSI code is irq domain aware, make sure > > that the ACPI support in the GIC doesn't pointlessly deviate from > > the DT path. > > > >

Re: [PATCH V2 2/2] kexec: split kexec_load syscall from kexec core code

2015-07-21 Thread Vivek Goyal
On Mon, Jul 20, 2015 at 04:37:15PM +0800, dyo...@redhat.com wrote: > Now there's two kexec load syscall, one is kexec_load another is > kexec_file_load, kexec_file_load has been splited as kernel/kexec_file.c. > In this patch I split kexec_load syscall code to kernel/kexec.c. Hi Dave, Nice work.

Re: [patch] Revert "block: remove artifical max_hw_sectors cap"

2015-07-21 Thread Christoph Hellwig
On Mon, Jul 20, 2015 at 03:17:07PM -0400, Jeff Moyer wrote: > For SAN storage, we've seen initial write and re-write performance drop > 25-50% across all I/O sizes. On locally attached storage, we've seen > regressions of 40% for all I/O types, but only for I/O sizes larger than > 1MB. Workload,

Re: [PATCH 1/5] memcg: export struct mem_cgroup

2015-07-21 Thread Michal Hocko
On Mon 20-07-15 15:43:27, Andrew Morton wrote: > On Mon, 20 Jul 2015 13:23:56 +0200 Michal Hocko wrote: > > > I do not think we want two sets of header > > files - one for mm and other for other external users. > > We're already doing this (mm/*.h) and it works well. I still fail to see any

[PATCH 2/2] mm: rename and move get/set_freepage_migratetype

2015-07-21 Thread Vlastimil Babka
The pair of get/set_freepage_migratetype() functions are used to cache pageblock migratetype for a page put on a pcplist, so that it does not have to be retrieved again when the page is put on a free list (e.g. when pcplists become full). Historically it was also assumed that the value is accurate

[PATCH 1/2] mm, page_isolation: remove bogus tests for isolated pages

2015-07-21 Thread Vlastimil Babka
The __test_page_isolated_in_pageblock() is used to verify whether all pages in pageblock were either successfully isolated, or are hwpoisoned. Two of the possible state of pages, that are tested, are however bogus and misleading. Both tests rely on get_freepage_migratetype(page), which however

[PATCH 37/47] perf stat report: Process stat config event

2015-07-21 Thread Jiri Olsa
Adding processing of stat config event and initialize stat_config object. Link: http://lkml.kernel.org/n/tip-f2bo5wm0cw76zc5qsjm4p...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/tools/perf/builtin-stat.c

Re: [PATCH v11] crypto: Add Allwinner Security System crypto accelerator

2015-07-21 Thread Herbert Xu
On Tue, Jul 21, 2015 at 02:38:47PM +0200, Maxime Ripard wrote: > I thought you needed at least my Acked-by for that, but > whatever... How are we supposed to handle subsequent DT patches that > should be merged through arm-soc then? What subsequent patches are you referring to? The changes in

[PATCH-v5 3/5] i2c: pxa: Add support for pxa910/988 & new configuration features

2015-07-21 Thread Vaibhav Hiremath
TWSI_ILCR & TWSI_IWCR registers are used to adjust clock rate of standard & fast mode in pxa910/988; so this patch adds these two new entries to "struct pxa_reg_layout" and "struct pxa_i2c". As discussed in the previous patch-series, the idea here is to add standard DT properties for ilcr and

[PATCH-v5 2/5] i2c: pxa: enable/disable i2c module across msg xfer

2015-07-21 Thread Vaibhav Hiremath
From: Yi Zhang Enable i2c module/unit before transmission and disable when it finishes. why? It's because the i2c bus may be disturbed if the slave device, typically a touch, powers on. As we do not want to break slave mode support, this patch introduces DT property to control disable of the

[PATCH-v5 5/5] i2c: pxa: Add ILCR (tLow & tHigh) configuration support

2015-07-21 Thread Vaibhav Hiremath
With addition of PXA910 family of devices, the TWSI module supports SCL clock adjustment using ILCR register. This patch enables the control and configuration of ICLR through DT properties, i2c-sclk-high-time-ns: SCLK high time (tHigh), for standard/fast/high speed mode i2c-sclk-low-time-ns:

[PATCH-v5 4/5] Documentation: binding: add sclk adjustment properties to i2c-pxa

2015-07-21 Thread Vaibhav Hiremath
With addition of PXA910 family of devices, the TWSI module supports new feature which allows us to adjust SCLK. i2c-pxa driver takes input configuration in nsec and converts it to respective bit-fields, - i2c-sclk-low-time-ns : SCLK low time (tlow) This property is used along with mode

[PATCH-v5 0/5] i2c: pxa: Add support for PXA910 family of device

2015-07-21 Thread Vaibhav Hiremath
This patch-series is subset of the original patch-series, submitted on 14 Jul 2015. Link to Original Patch-series - https://lkml.org/lkml/2015/7/14/80 The first six patches have been already queued up for upstream. So this patch-series is respin of remaining 5 patches. Testing: - Basic testing

[PATCH-v5 1/5] Documentation: binding: add new property 'disable_after_xfer' to i2c-pxa

2015-07-21 Thread Vaibhav Hiremath
Driver will now supports enable/disable across msg xfer, which user can control it by new DT property - i2c-disable-after-xfer : If set, driver will disable I2C module after msg xfer and enable it back before xfer. Signed-off-by: Vaibhav Hiremath ---

[RFC 00/47] perf stat: Add scripting support

2015-07-21 Thread Jiri Olsa
hi, sending RFC on another attempt for stat scripting. The initial attempt defined its own formula lang and allowed triggering user's script on the end of the stat command: http://marc.info/?l=linux-kernel=136742146322273=2 This patchset abandons the idea of new formula language and rather

[PATCH 05/47] perf stat: Move interval into struct perf_stat_config

2015-07-21 Thread Jiri Olsa
Moving interval into struct perf_stat_config. The point is to centralize the base stat config so it could be used localy together with other stat routines in other parts of perf code. Link: http://lkml.kernel.org/n/tip-o6y11n9zxfxv8633h6yb86...@git.kernel.org Signed-off-by: Jiri Olsa ---

[PATCH 03/47] perf stat: Move scale into struct perf_stat_config

2015-07-21 Thread Jiri Olsa
Moving scale into struct perf_stat_config. The point is to centralize the base stat config so it could be used localy together with other stat routines in other parts of perf code. Link: http://lkml.kernel.org/n/tip-ggt4jfmmb5htu0jwd8sxy...@git.kernel.org Signed-off-by: Jiri Olsa ---

[PATCH 01/47] perf test: Check for refcnt in thread_map test

2015-07-21 Thread Jiri Olsa
Checking also for refcnt in thread_map test. Link: http://lkml.kernel.org/n/tip-6fege00q2h2ulx4296921...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/tests/thread-map.c | 4 1 file changed, 4 insertions(+) diff --git a/tools/perf/tests/thread-map.c

[PATCH 02/47] perf stat: Introduce struct perf_stat_config

2015-07-21 Thread Jiri Olsa
Moving aggr_mode into new struct. The point is to centralize the base stat config so it could be used localy together with other stat routines in other parts of perf code. Link: http://lkml.kernel.org/n/tip-4g1i3m1z6fzsrznn2umi0...@git.kernel.org Signed-off-by: Jiri Olsa ---

[PATCH 06/47] perf stat: Pass struct perf_stat_config into process_counter

2015-07-21 Thread Jiri Olsa
Passing struct perf_stat_config into process_counter, so we could make process_counter global and use it from other places. Link: http://lkml.kernel.org/n/tip-uhib85l66wfbkkepk1l7r...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 29 - 1

[PATCH 09/47] perf tools: Tolerate NULL maps in perf_evlist__propagate_maps

2015-07-21 Thread Jiri Olsa
Tolerating NULL maps in perf_evlist__propagate_maps, so we dont need to pass evlist with both cpus and threads maps defined. Link: http://lkml.kernel.org/n/tip-y15hjmv6uu8b6gyhkz5v4...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/evlist.c | 3 ++- 1 file changed, 2 insertions(+),

[PATCH 07/47] perf stat: Move counter processing code into stat object

2015-07-21 Thread Jiri Olsa
Moving counter processing code into stat object as perf_stat__process_counter. Link: http://lkml.kernel.org/n/tip-1vae9jeuab2db5wxq820s...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 141 +- tools/perf/util/stat.c| 139

[PATCH 12/47] perf tools: Add thread_map event

2015-07-21 Thread Jiri Olsa
Adding thread_map event to pass/store thread maps. Link: http://lkml.kernel.org/n/tip-2l07qyf3buhnt83q4ezqz...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/event.c | 1 + tools/perf/util/event.h | 13 + tools/perf/util/session.c | 26 ++

[PATCH 11/47] perf tools: Use argv style storage for cmdline feature data

2015-07-21 Thread Jiri Olsa
We will reuse argv style data in following change to display counters header showing monitored command line. Link: http://lkml.kernel.org/n/tip-qu64zmm5zbpbkuybusnkg...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/header.c | 35 ---

[PATCH 08/47] perf tools: Use bool instead of target argument in perf_evlist__propagate_maps

2015-07-21 Thread Jiri Olsa
We need only bool info wether user defined her own set of cpus. Switching target argument to bool so it could be used from places without target object defined in following patches. Link: http://lkml.kernel.org/n/tip-0w6u3krrowphxyowo0pkj...@git.kernel.org Signed-off-by: Jiri Olsa ---

[PATCH 13/47] perf tools: Add thread_map event sythesize function

2015-07-21 Thread Jiri Olsa
Introduce perf_event__synthesize_thread_map2 function to sythesize struct thread_map. Link: http://lkml.kernel.org/n/tip-cykuf1v8qb6li8q6w6tbm...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/tests/builtin-test.c | 4 tools/perf/tests/tests.h| 1 +

[PATCH 19/47] perf tools: Add stat config event synthesize function

2015-07-21 Thread Jiri Olsa
Introduce perf_event__synthesize_stat_config function to sythesize 'struct perf_stat_config'. Storing stat config in form of tag-value pairs in a believe it'll sort out future version issues. Link: http://lkml.kernel.org/n/tip-zof1adf5flwp38xdzxzn4...@git.kernel.org Signed-off-by: Jiri Olsa ---

[PATCH 20/47] perf tools: Add stat config event read function

2015-07-21 Thread Jiri Olsa
Introducing perf_event__read_stat_config function to read struct perf_stat_config object data from stat config event. Link: http://lkml.kernel.org/n/tip-62ae08zz97jp2qkhygp8u...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/tests/stat.c | 6 ++ tools/perf/util/event.c | 24

[PATCH 17/47] perf tools: Add cpu_map__new_event function

2015-07-21 Thread Jiri Olsa
Introducing cpu_map__new_event function to create struct cpu_map object from cpu_map event. Link: http://lkml.kernel.org/n/tip-tepv49tbjsqeprmf8k05l...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/tests/cpumap.c | 10 ++ tools/perf/util/cpumap.c | 27

[PATCH 16/47] perf tools: Add cpu_map event synthesize function

2015-07-21 Thread Jiri Olsa
Introduce perf_event__synthesize_cpu_map function to sythesize struct cpu_map. Link: http://lkml.kernel.org/n/tip-miidn8vqsx3udu4ct8103...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/tests/Build | 1 + tools/perf/tests/builtin-test.c | 4 tools/perf/tests/cpumap.c

[PATCH 18/47] perf tools: Add stat config event

2015-07-21 Thread Jiri Olsa
Adding stat config event to pass/store stat config data, so report tools (report/script) know how to interpret stat data. Link: http://lkml.kernel.org/n/tip-1npdsfez8635vogthpqwt...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/event.c | 1 + tools/perf/util/event.h | 20

[PATCH 15/47] perf tools: Add cpu_map event

2015-07-21 Thread Jiri Olsa
Adding cpu_map event to pass/store cpu maps. Link: http://lkml.kernel.org/n/tip-tomgwwohnuxvvalwu4zna...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/event.c | 1 + tools/perf/util/event.h | 8 tools/perf/util/session.c | 25 +

[PATCH 22/47] perf tools: Add stat event synthesize function

2015-07-21 Thread Jiri Olsa
Introduce perf_event__synthesize_stat function to synthesize 'struct stat_event'. Link: http://lkml.kernel.org/n/tip-0jr9x4vwk0nxbs2ueclj7...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/tests/builtin-test.c | 4 tools/perf/tests/stat.c | 40

Re: [PATCH v11] crypto: Add Allwinner Security System crypto accelerator

2015-07-21 Thread Maxime Ripard
On Mon, Jul 20, 2015 at 04:20:57PM +0800, Herbert Xu wrote: > On Mon, Jul 20, 2015 at 10:18:36AM +0200, Maxime Ripard wrote: > > On Mon, Jul 20, 2015 at 04:10:50PM +0800, Herbert Xu wrote: > > > On Fri, Jul 17, 2015 at 04:39:37PM +0200, LABBE Corentin wrote: > > > > Hello > > > > > > > > This is

[PATCH 24/47] perf tools: Add stat round event

2015-07-21 Thread Jiri Olsa
Adding stat round event to be stored afer each stat interval round, so report tools (report/script) get notified and process interval data. Link: http://lkml.kernel.org/n/tip-nqhzuxrv12ulccx11k7x8...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/event.c | 1 +

[PATCH 26/47] perf tools: Introduce stat feature

2015-07-21 Thread Jiri Olsa
Introducing stat feature to mark perf.data as created by perf stat record command. It contains no data. It's needed for report tools (report/script) to differentiate sampling data from stat data, because they need to be treated in a different way. Link:

Re: [PATCH v2] ARM: dts: sun4i: Add Iteaduino Plus A10

2015-07-21 Thread Maxime Ripard
On Mon, Jul 20, 2015 at 10:53:18PM +0200, Josef Gajdusek wrote: > Iteaduino Plus A10 is a breakout board + Itead Core A10. It features 1GB RAM, > has most of the A10 pins on a .1" header, 2 USB ports, 1 OTG USB port, > Ethernet, HDMI, SATA, Speaker/Microphone 3.5mm jacks and an SD card slot. > >

[PATCH 27/47] perf tools: Move id_offset out of struct perf_evsel union

2015-07-21 Thread Jiri Olsa
Because following stat patches use id_offset together with priv pointer. Link: http://lkml.kernel.org/n/tip-ts3nkj35lx54whb649by0...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/evsel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/evsel.h

Re: [RFC ebeam PATCH 2/2] input: misc: New USB eBeam input driver

2015-07-21 Thread Yann Cantin
Hi, Le 21/07/2015 10:19, Oliver Neukum a écrit : On Mon, 2015-07-20 at 23:03 +0200, Yann Cantin wrote: diff --git a/drivers/input/misc/ebeam.c b/drivers/input/misc/ebeam.c new file mode 100644 index 000..79cac51 --- /dev/null +++ b/drivers/input/misc/ebeam.c +/* Electronics For

[PATCH 29/47] perf stat record: Initialize record features

2015-07-21 Thread Jiri Olsa
Disabling all non stat related features. Link: http://lkml.kernel.org/n/tip-0av5yfkwyywwgoiali88w...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c

[PATCH 30/47] perf stat record: Synthesize stat record data

2015-07-21 Thread Jiri Olsa
Synthesizing needed stat record data for report/script: - cpu/thread maps - stat config Link: http://lkml.kernel.org/n/tip-wni1s2i2sq17g4vomjyda...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 48 +++ 1 file changed, 48

[PATCH 31/47] perf stat record: Store events IDs in perf data file

2015-07-21 Thread Jiri Olsa
Store event IDs in evlist object so it get stored into perf.data file. Link: http://lkml.kernel.org/n/tip-v2xwpeots3tz08e44lej5...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 35 +++ tools/perf/util/evlist.c | 6 +++---

[PATCH 33/47] perf stat record: Write stat events on record

2015-07-21 Thread Jiri Olsa
Writing stat events on 'perf stat record' at the time we read counter values from kernel. Link: http://lkml.kernel.org/n/tip-ojc826gy0x9jj74elbjfc...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 19 +++ 1 file changed, 19 insertions(+) diff --git

[PATCH 35/47] perf stat report: Add report command

2015-07-21 Thread Jiri Olsa
Adding 'perf stat report' command support. ATM it only processes attr events and display nothing. Link: http://lkml.kernel.org/n/tip-a43rs4c6szofeuo2gjlcp...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/Documentation/perf-stat.txt | 12 tools/perf/builtin-stat.c

[PATCH 32/47] perf stat record: Add pipe support for record command

2015-07-21 Thread Jiri Olsa
Allowing storing stat record data into pipe, so report tools (report/script) could read data directly from record. Link: http://lkml.kernel.org/n/tip-m8fj758gty57hgvss5efy...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 39 --- 1

[PATCH 40/47] perf script: Check output fields only for samples

2015-07-21 Thread Jiri Olsa
There's no need to check sampling output fields for events without perf_event_attr::sample_type field set. Link: http://lkml.kernel.org/n/tip-uommbr3wo4913tpkkgq2s...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-script.c | 5 - 1 file changed, 4 insertions(+), 1

[PATCH 39/47] perf stat report: Move csv_sep initialization before report command

2015-07-21 Thread Jiri Olsa
So we have csv_sep properly initialized before report command leg. Link: http://lkml.kernel.org/n/tip-i5mmbomj7lt4eg04awzoc...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

[PATCH 38/47] perf stat report: Process stat and stat round events

2015-07-21 Thread Jiri Olsa
Adding processing of stat and stat round events. Link: http://lkml.kernel.org/n/tip-qc3ihpf6j8hlfdts64uj4...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 25 + 1 file changed, 25 insertions(+) diff --git a/tools/perf/builtin-stat.c

Re: [PATCH 0/5] Making the generic ACPI GSI layer irqdomain aware

2015-07-21 Thread Graeme Gregory
On Tue, Jul 21, 2015 at 11:07:55AM +0100, Marc Zyngier wrote: > The irqdomain code is not entierely really ACPI friendly, as it has > some built-in knowledge of the device-tree. Nothing too harmful, but > enough to scare the ARM ACPI developpers which end up with their own > version of the square

[PATCH 41/47] perf script: Process cpu/threads maps

2015-07-21 Thread Jiri Olsa
Adding processing of cpu/threads maps. Configuring session's evlist with these maps. Link: http://lkml.kernel.org/n/tip-s3txa1u2qv3bi8uspp4hi...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-script.c | 65 + 1 file changed, 65

[PATCH 42/47] perf script: Process stat config event

2015-07-21 Thread Jiri Olsa
Adding processing of stat config event and initialize stat_config object. Link: http://lkml.kernel.org/n/tip-1m1s8mahzq38foo32qb7p...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-script.c | 11 +++ 1 file changed, 11 insertions(+) diff --git

[PATCH 43/47] perf script: Add process_stat/process_stat_interval scripting interface

2015-07-21 Thread Jiri Olsa
Python and perl scripting code will define those callbacks and get stat data. Link: http://lkml.kernel.org/n/tip-6802z3siu5f59wdsmhaym...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/trace-event.h | 4 1 file changed, 4 insertions(+) diff --git

Re: [PATCH 5/5] irqchip: GIC: Switch ACPI support to stacked domains

2015-07-21 Thread Graeme Gregory
On Tue, Jul 21, 2015 at 11:08:00AM +0100, Marc Zyngier wrote: > Now that the basic ACPI GSI code is irq domain aware, make sure > that the ACPI support in the GIC doesn't pointlessly deviate from > the DT path. > > Signed-off-by: Marc Zyngier > --- > drivers/irqchip/irq-gic.c | 17

[PATCH 45/47] perf script: Display stat events by default

2015-07-21 Thread Jiri Olsa
If no script is specified for stat data, display stat events in raw form. Link: http://lkml.kernel.org/n/tip-ph7bpnetmskvmietfwllf...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-script.c | 35 +-- 1 file changed, 33 insertions(+), 2

[PATCH 36/47] perf stat report: Process cpu/threads maps

2015-07-21 Thread Jiri Olsa
Adding processing of cpu/threads maps. Configuring session's evlist with these maps. Link: http://lkml.kernel.org/n/tip-f2bo5wm0cw76zc5qsjm4p...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 59 +++ 1 file changed, 59

[PATCH 28/47] perf stat record: Add record command

2015-07-21 Thread Jiri Olsa
Add 'perf stat record' command support. It creates simple (header only) perf.data file ATM. Link: http://lkml.kernel.org/n/tip-0av5yfkwyywwgoiali88w...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/Documentation/perf-stat.txt | 12 ++ tools/perf/builtin-stat.c | 74

[PATCH 34/47] perf stat record: Write stat round events on record

2015-07-21 Thread Jiri Olsa
Writing stat round events on 'perf stat record' for each interval round. In non interval mode we store round event after the last stat event. Link: http://lkml.kernel.org/n/tip-a43rs4c6szofeuo2gjlcp...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 17 +

[PATCH 25/47] perf tools: Add stat round event synthesize function

2015-07-21 Thread Jiri Olsa
Introduce perf_event__synthesize_stat_round function to synthesize 'struct stat_round_event'. Link: http://lkml.kernel.org/n/tip-gl8rk2il9grrnqalrqlo7...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/tests/builtin-test.c | 4 tools/perf/tests/stat.c | 19

[PATCH 44/47] perf script: Add stat default handlers

2015-07-21 Thread Jiri Olsa
Implement struct scripting_ops::(process_stat|process_stat_interval) handlers - calling scripting handlers from stat events handlers. Link: http://lkml.kernel.org/n/tip-3iu6vmvuur1bntbnh43v3...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-script.c | 31

[PATCH 46/47] perf script: Add python support for stat events

2015-07-21 Thread Jiri Olsa
Add support to get stat events data in perf python scripts. Link: http://lkml.kernel.org/n/tip-jojiaelyckrw6040wqc06...@git.kernel.org Signed-off-by: Jiri Olsa --- .../util/scripting-engines/trace-event-python.c| 113 +++-- 1 file changed, 107 insertions(+), 6 deletions(-)

[PATCH 47/47] perf script: Add stat-cpi.py script

2015-07-21 Thread Jiri Olsa
Link: http://lkml.kernel.org/n/tip-15vwwb4yea15wzz6bqbxd...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/scripts/python/stat-cpi.py | 74 +++ 1 file changed, 74 insertions(+) create mode 100644 tools/perf/scripts/python/stat-cpi.py diff --git

[PATCH 23/47] perf tools: Add stat event read function

2015-07-21 Thread Jiri Olsa
Introducing perf_event__process_stat_event function to process 'struct perf_stat' data from stat event. Link: http://lkml.kernel.org/n/tip-2bvpxxp60e0qqcsecohge...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/stat.c | 23 +++ tools/perf/util/stat.h | 6 ++

[PATCH 14/47] perf tools: Add thread_map__new_event function

2015-07-21 Thread Jiri Olsa
Introducing thread_map__new_event function to create struct thread_map object from thread_map event. Link: http://lkml.kernel.org/n/tip-0gu5uv3g51p4mzul93bhh...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/tests/thread-map.c | 14 ++ tools/perf/util/thread_map.c | 27

[PATCH 10/47] perf tools: Force perf_evlist__set_maps to propagate maps through events

2015-07-21 Thread Jiri Olsa
Forcing perf_evlist__set_maps to propagate maps through events, so cpu/thread maps get set within evlist. Link: http://lkml.kernel.org/n/tip-0oqwhvjdr3jgfzkbd3qee...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/evlist.c | 17 + tools/perf/util/evlist.h | 11

[PATCH 21/47] perf tools: Add stat event

2015-07-21 Thread Jiri Olsa
Adding stat event to store 'struct perf_counter_values' for given event/cpu/thread. Link: http://lkml.kernel.org/n/tip-56xpt7m6au4d8u39nffoq...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/event.c | 1 + tools/perf/util/event.h | 19 +++

[PATCH 04/47] perf stat: Move output into struct perf_stat_config

2015-07-21 Thread Jiri Olsa
Moving output into struct perf_stat_config. The point is to centralize the base stat config so it could be used localy together with other stat routines in other parts of perf code. Link: http://lkml.kernel.org/n/tip-jok5ek0ykuhik22i6morr...@git.kernel.org Signed-off-by: Jiri Olsa ---

Re: [PATCH] mm: trace tlb flush after disabling preemption in try_to_unmap_flush

2015-07-21 Thread Michal Hocko
On Thu 16-07-15 15:35:39, Sasha Levin wrote: > Commit "mm: send one IPI per CPU to TLB flush all entries after unmapping > pages" added a trace_tlb_flush() while preemption was still enabled. This > means that we'll access smp_processor_id() which in turn will get us quite > a few warnings. > >

Re: [PATCH 2/2] dmaengine: xdmac: Add scatter gathered memset support

2015-07-21 Thread Maxime Ripard
On Fri, Jul 17, 2015 at 08:39:26AM +0530, Vinod Koul wrote: > On Thu, Jul 16, 2015 at 04:11:05PM +0200, Maxime Ripard wrote: > > Hi Vinod, > > > > > > + /* > > > > +* The scatterlist API gives us only the address and > > > > +* length of each

Re: [PATCH -next v2] mm: srcu-ify shrinkers

2015-07-21 Thread Michal Hocko
On Thu 16-07-15 13:55:13, Davidlohr Bueso wrote: > The shrinker_rwsem is a global lock that protects the shrinker_list, > serializing a shrinking call with register/unregistering the shrinker > itself. As such, this lock is taken mostly for reading. In the unlikely > case that the the list is

Re: [RFC ebeam PATCH 2/2] input: misc: New USB eBeam input driver

2015-07-21 Thread Yann Cantin
Hi, Le 20/07/2015 23:59, Greg KH a écrit : On Mon, Jul 20, 2015 at 11:03:19PM +0200, Yann Cantin wrote: diff --git a/Documentation/ABI/testing/sysfs-driver-ebeam b/Documentation/ABI/testing/sysfs-driver-ebeam +++ b/Documentation/ABI/testing/sysfs-driver-ebeam @@ -0,0 +1,53 @@ +What:

[PATCH V2 next-next 1/3] ARM: net: add support for BPF_ANC | SKF_AD_PKTTYPE in ARM JIT.

2015-07-21 Thread Nicolas Schichan
Signed-off-by: Nicolas Schichan --- arch/arm/net/bpf_jit_32.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/net/bpf_jit_32.c b/arch/arm/net/bpf_jit_32.c index 4550d24..67a2d44 100644 --- a/arch/arm/net/bpf_jit_32.c +++ b/arch/arm/net/bpf_jit_32.c @@ -864,6 +864,17 @@

[PATCH V2 net-next 0/3] ARM BPF JIT features

2015-07-21 Thread Nicolas Schichan
Hello, This serie adds support for more instructions to the ARM BPF JIT namely skb netdevice type retrieval, skb payload offset retrieval, and skb packet type retrieval. This allows 35 tests to use the JIT instead of 29 before. This serie depends on the "BPF JIT fixes for ARM" serie sent

[PATCH V2 net-next 2/3] ARM: net: add support for BPF_ANC | SKF_AD_PAY_OFFSET in ARM JIT.

2015-07-21 Thread Nicolas Schichan
Signed-off-by: Nicolas Schichan --- arch/arm/net/bpf_jit_32.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/net/bpf_jit_32.c b/arch/arm/net/bpf_jit_32.c index 67a2d44..fe28beb 100644 --- a/arch/arm/net/bpf_jit_32.c +++ b/arch/arm/net/bpf_jit_32.c @@ -884,6 +884,14 @@

[PATCH V2 net-next 3/3] ARM: net: add support for BPF_ANC | SKF_AD_HATYPE in ARM JIT.

2015-07-21 Thread Nicolas Schichan
Signed-off-by: Nicolas Schichan --- arch/arm/net/bpf_jit_32.c | 22 -- arch/arm/net/bpf_jit_32.h | 3 +++ 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/arch/arm/net/bpf_jit_32.c b/arch/arm/net/bpf_jit_32.c index fe28beb..6dcff2b 100644 ---

<    2   3   4   5   6   7   8   9   10   11   >