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

2015-06-08 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in drivers/iommu/dmar.c between commit bc2272dcecae ("iommu/vt-d: Clean up log messages in intel-iommu.c") from the tree and commit 34742db8eaf9 ("iommu/vt-d: Refine the interfaces to create IRQ for DMAR unit") from the tip tree. I

Re: [PATCH v5 05/21] libnvdimm: control (ioctl) messages for libnvdimm bus and dimm devices

2015-06-08 Thread Dan Williams
On Mon, Jun 8, 2015 at 11:34 PM, Christoph Hellwig wrote: > On Mon, Jun 01, 2015 at 08:14:35PM -0400, Dan Williams wrote: >> Most discovery/configuration of the libnvdimm-subsystem is done via >> sysfs attributes. However, some libnvdimm buses, particularly the >> ACPI.NFIT bus, define a small se

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

2015-06-08 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in drivers/iommu/intel_irq_remapping.c between commits 82a09c904f6a ("iommu/vt-d: Load old data structures only in kdump kernel") and b1e27c302979 ("iommu/vt-d: Move EIM detection to intel_prepare_irq_remapping") from the iommu tree a

Re: [PATCH v4 4/9] dax: fix mapping lifetime handling, convert to __pfn_t + kmap_atomic_pfn_t()

2015-06-08 Thread Christoph Hellwig
On Fri, Jun 05, 2015 at 05:19:24PM -0400, Dan Williams wrote: > The primary source for non-page-backed page-frames to enter the system > is via the pmem driver's ->direct_access() method. The pfns returned by > the top-level bdev_direct_access() may be passed to any other subsystem > in the kernel

Re: [RFC PATCH 01/12] mm: add a new config to manage the code

2015-06-08 Thread Kamezawa Hiroyuki
On 2015/06/04 21:56, Xishi Qiu wrote: This patch introduces a new config called "CONFIG_ACPI_MIRROR_MEMORY", it is used to on/off the feature. Signed-off-by: Xishi Qiu --- mm/Kconfig | 8 1 file changed, 8 insertions(+) diff --git a/mm/Kconfig b/mm/Kconfig index 390214d..4f2a726 10

[RFC PATCH] Make quick_pit_calibrate more robust

2015-06-08 Thread George Spelvin
It's fundamentally the same, but more robust to occasional long delays when accessing the PIT. In particular, the old code was susceptible to failing if the initial PIT read was slow. This revised code will move the timing start if it's a sufficient improvement. Another small change that simplif

Re: [RFC PATCH 03/12] mm: introduce MIGRATE_MIRROR to manage the mirrored, pages

2015-06-08 Thread Kamezawa Hiroyuki
On 2015/06/04 21:58, Xishi Qiu wrote: This patch introduces a new MIGRATE_TYPES called "MIGRATE_MIRROR", it is used to storage the mirrored pages list. When cat /proc/pagetypeinfo, you can see the count of free mirrored blocks. I guess you need to add Mel to CC. e.g. euler-linux:~ # cat /pro

[PATCH] ARM: pgtable: Fix typo in the comment

2015-06-08 Thread Hyuk Myeong
This patch fix a spelling typo in the comment in pgtable-2level.h. Signed-off-by: Hyuk Myeong --- arch/arm/include/asm/pgtable-2level.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/pgtable-2level.h b/arch/arm/include/asm/pgtable-2level.h index bfd662e.

Re: [PATCH v4 3/9] dax: drop size parameter to ->direct_access()

2015-06-08 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig -- 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 http://www.tux.org/lkml/

Re: [RESEND PATCH V4 3/3] mfd: da9063: MFD support for OnKey driver

2015-06-08 Thread Lee Jones
On Mon, 08 Jun 2015, Dmitry Torokhov wrote: > On Tue, May 19, 2015 at 11:32:45AM +0100, S Twiss wrote: > > From: Steve Twiss > > > > Add MFD support for the DA9063 OnKey driver > > > > The function da9063_clear_fault_log() is added to mitigate the case of a > > hardware power-cut after a long-l

Re: [PATCH] crypto: use list to stage async seeding requests

2015-06-08 Thread Herbert Xu
On Sat, Jun 06, 2015 at 04:16:54AM +0200, Stephan Mueller wrote: > This patch uses a list to track the asynchronous seeding requests until > the nonblocking pool is fully initialized. The random.c is provided with > two API calls: the get_blocking_random_bytes_cb allows the caller to > provide a ca

Re: [PATCH v4 2/9] x86: support kmap_atomic_pfn_t() for persistent memory

2015-06-08 Thread Christoph Hellwig
The code is mostly generic, so the x86 in the subject is a little misleading. What keeps the Kconfig symbol in x86 anyway? Is there a reason why it can't be made entirely generic? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.

Re: [PATCH v5 20/21] tools/testing/nvdimm: manufactured NFITs for interface development

2015-06-08 Thread Christoph Hellwig
The description fails to mention the hacks how this is archived. I don't think the include hackery and otherwise needed exports are acceptable if with an explanation, though. Really - get your fake hardware into qemu right now and don't bother with trying to hack the subsystem like this. -- To un

Re: [PATCH v5 18/21] nd_btt: atomic sector updates

2015-06-08 Thread Christoph Hellwig
I really want to see a good explanation why this is not a blk-mq driver given that it does fairly substantial work and has synchronization in its make_request function. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org M

Re: [PATCH v5 17/21] libnvdimm: infrastructure for btt devices

2015-06-08 Thread Christoph Hellwig
On Mon, Jun 01, 2015 at 08:15:41PM -0400, Dan Williams wrote: > Block devices from an nd bus, in addition to accepting "struct bio" > based requests, also have the capability to perform byte-aligned > accesses. By default only the bio/block interface is used. However, if > another driver can make

Re: [PATCH v5 12/21] libnvdimm: namespace indices: read and validate

2015-06-08 Thread Christoph Hellwig
> +#include > + > +#ifndef __io_virt > +#define __io_virt(x) ((void __force *) (x)) > +#endif NAK. driver code mus never include asm-generic headers directly, and __io_virt isn't something that's up to a driver to redefine either. I think we really need the memremap series in first before trying

Re: [PATCH v4 5/7] Watchdog: introduce ARM SBSA watchdog driver

2015-06-08 Thread Fu Wei
Hi Guenter, Thanks for reply so quickly. On 9 June 2015 at 12:37, Guenter Roeck wrote: > On 06/08/2015 08:59 PM, Fu Wei wrote: >> >> Hi Guenter, >> >> >> On 9 June 2015 at 02:26, Guenter Roeck wrote: >>> >>> On 06/08/2015 09:05 AM, Fu Wei wrote: Hi Gurnter On 3 June 201

Re: [PATCH v5 09/21] libnvdimm, nd_pmem: add libnvdimm support to the pmem driver

2015-06-08 Thread h...@lst.de
On Wed, Jun 03, 2015 at 07:31:38PM +, Williams, Dan J wrote: > I like move-modify patches because they make the reason for the move > clearer and revertible. Consider a general case where we later decide > the reason for a move was invalid. Reverting the reason also reverts > the file move, t

[PATCH v7] dma: Add Xilinx AXI Direct Memory Access Engine driver support

2015-06-08 Thread Kedareswara rao Appana
This is the driver for the AXI Direct Memory Access (AXI DMA) core, which is a soft Xilinx IP core that provides high- bandwidth direct memory access between memory and AXI4-Stream type target peripherals. Signed-off-by: Srikanth Thokala Signed-off-by: Kedareswara rao Appana --- The deivce tree

Re: [PATCH v5 05/21] libnvdimm: control (ioctl) messages for libnvdimm bus and dimm devices

2015-06-08 Thread Christoph Hellwig
On Mon, Jun 01, 2015 at 08:14:35PM -0400, Dan Williams wrote: > Most discovery/configuration of the libnvdimm-subsystem is done via > sysfs attributes. However, some libnvdimm buses, particularly the > ACPI.NFIT bus, define a small set of messages that can be passed to the > platform. For conveni

Re: [PATCH v5 02/21] libnvdimm, nfit: initial libnvdimm infrastructure and NFIT support

2015-06-08 Thread h...@lst.de
On Wed, Jun 03, 2015 at 07:24:34PM +, Williams, Dan J wrote: > > > +static inline struct acpi_nfit_memory_map *__to_nfit_memdev(struct > > > nfit_mem *nfit_mem) > > > > This line is over 80 characters. > > I generally don't see the point of fixing up occasional small incursions > over 80 cha

Re: [PATCH v4 1/5] fs: kiocb: introduce IOCB_DONT_DIRTY_PAGE flag for direct IO

2015-06-08 Thread Christoph Hellwig
On Sat, Jun 06, 2015 at 08:42:33AM +0800, Ming Lei wrote: > Both ITER_KVEC and ITER_BVEC doesn't mean the pages are kernel > page, for example of loop and swap. That is why this patch is more flexiable, > and won't cause regression since the users may have different dirtying > rules as you mentione

Re: [RFC PATCH 02/18] kthread: Add API for iterant kthreads

2015-06-08 Thread Tejun Heo
Hello, Petr. On Fri, Jun 05, 2015 at 05:01:01PM +0200, Petr Mladek wrote: > +static int kthread_iterant_fn(void *kti_ptr) > +{ > + struct kthread_iterant *kti = kti_ptr; > + void *data = kti->data; > + > + if (kti->init) > + kti->init(data); > + > + do { > +

Re: [PATCH v6 1/3] ivtv: use arch_phys_wc_add() and require PAT disabled

2015-06-08 Thread Hans Verkuil
On 06/09/2015 02:56 AM, Mauro Carvalho Chehab wrote: > Em Mon, 08 Jun 2015 17:20:20 -0700 > "Luis R. Rodriguez" escreveu: > >> From: "Luis R. Rodriguez" >> >> We are burrying direct access to MTRR code support on >> x86 in order to take advantage of PAT. In the future we >> also want to make the

Re: [RFC PATCH 00/18] kthreads/signal: Safer kthread API and signal handling

2015-06-08 Thread Tejun Heo
Hey, Peter. On Fri, Jun 05, 2015 at 06:22:16PM +0200, Peter Zijlstra wrote: > There's a lot more problems with workqueues: > > - they're not regular tasks and all the task controls don't work on >them. This means all things scheduler, like cpu-affinity, nice, and >RT/deadline scheduling

[PATCH] tty: serial: Fix typo in the comment

2015-06-08 Thread Hyuk Myeong
This patch fix a spelling typo in the comment in synclink.c and synclinkmp.c. Signed-off-by: Hyuk Myeong --- drivers/tty/synclink.c | 4 ++-- drivers/tty/synclinkmp.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/tty/synclink.c b/drivers/tty/synclink.c index

Re: [PATCH v4 2/2] dma: Add Xilinx AXI Central Direct Memory Access Engine driver support

2015-06-08 Thread Julia Lawall
On Tue, 9 Jun 2015, Michal Simek wrote: > Hi Paul, > > On 05/22/2015 12:30 PM, Paul Bolle wrote: > > Again, just a nit: a license mismatch. > > > > On Thu, 2015-05-21 at 22:37 +0530, Kedareswara rao Appana wrote: > > > >> + * This program is free software: you can redistribute it and/or modif

Re: [RFC PATCH 00/18] kthreads/signal: Safer kthread API and signal handling

2015-06-08 Thread Tejun Heo
Hello, On Fri, Jun 05, 2015 at 05:00:59PM +0200, Petr Mladek wrote: > Workqueue ... > But there are many kthreads that need to cycle many times > until some work is finished, e.g. khugepaged, virtio_balloon, > jffs2_garbage_collect_thread. They would need to queue the > work item repeatedly from t

Re: [PATCH v4 01/11] block: make generic_make_request handle arbitrarily sized bios

2015-06-08 Thread Ming Lin
g numjobs=48 gtod_reduce=0 norandommap write_iops_log=fs [job1] bs=1280K directory=/mnt size=5G rw=read All results here: http://minggr.net/pub/20150608/fio_results/ Results summary: 1. HW RAID6: stripe size 64k 4.1-rc4 4.1-rc4-patched ---

Re: [PATCH v4 2/2] dma: Add Xilinx AXI Central Direct Memory Access Engine driver support

2015-06-08 Thread Michal Simek
Hi Paul, On 05/22/2015 12:30 PM, Paul Bolle wrote: > Again, just a nit: a license mismatch. > > On Thu, 2015-05-21 at 22:37 +0530, Kedareswara rao Appana wrote: > >> + * This program is free software: you can redistribute it and/or modify >> + * it under the terms of the GNU General Public Licen

[PATCH kernel] powerpc/pseries: Fix compile error when CONFIG_IOMMU_API if off

2015-06-08 Thread Alexey Kardashevskiy
This fixes compile error introduced in "[PATCH kernel v12 17/34] powerpc/spapr: vfio: Switch from iommu_table to new iommu_table_group". Signed-off-by: Alexey Kardashevskiy --- arch/powerpc/platforms/pseries/iommu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/platforms/ps

[RFC PATCH v6 02/32] bpf tools: Introduce 'bpf' library to tools

2015-06-08 Thread Wang Nan
This is the first patch of libbpf. The goal of libbpf is to create a standard way for accessing eBPF object files. This patch creates 'Makefile' and 'Build' for it, allows 'make' to build libbpf.a and libbpf.so, 'make install' to put them into proper directories. Most part of Makefile is borrowed f

[RFC PATCH v6 09/32] bpf tools: Collect map definitions from 'maps' section

2015-06-08 Thread Wang Nan
If maps are used by eBPF programs, corresponding object file(s) should contain a section named 'map'. Which contains map definitions. This patch copies the data of the whole section. Map data parsing should be acted just before map loading. Signed-off-by: Wang Nan Acked-by: Alexei Starovoitov --

[RFC PATCH v6 08/32] bpf tools: Collect version and license from ELF sections

2015-06-08 Thread Wang Nan
Expand bpf_obj_elf_collect() to collect license and kernel version information in eBPF object file. eBPF object file should have a section named 'license', which contains a string. It should also have a section named 'version', contains a u32 LINUX_VERSION_CODE. bpf_obj_validate() is introduced to

[RFC PATCH v6 05/32] bpf tools: Read eBPF object from buffer

2015-06-08 Thread Wang Nan
To support dynamic compiling, this patch allows caller to pass a in-memory buffer to libbpf by bpf_object__open_buffer(). libbpf calls elf_memory() to open it as ELF object file. Because __bpf_object__open() collects all required data and won't need that buffer anymore, libbpf uses that buffer dir

[RFC PATCH v6 07/32] bpf tools: Iterate over ELF sections to collect information

2015-06-08 Thread Wang Nan
bpf_obj_elf_collect() is introduced to iterate over each elf sections to collection informations in eBPF object files. This function will futher enhanced to collect license, kernel version, programs, configs and map information. Signed-off-by: Wang Nan Acked-by: Alexei Starovoitov --- tools/lib

[RFC PATCH v6 11/32] bpf tools: Collect eBPF programs from their own sections

2015-06-08 Thread Wang Nan
This patch collects all programs in an object file into an array of 'struct bpf_program' for further processing. That structure is for representing each eBPF program. 'bpf_prog' should be a better name, but it has been used by linux/filter.h. Although it is a kernel space name, I still prefer to ca

[RFC PATCH v6 14/32] bpf tools: Add bpf.c/h for common bpf operations

2015-06-08 Thread Wang Nan
This patch introduces bpf.c and bpf.h, which hold common functions issuing bpf syscall. The goal of these two files is to hide syscall completly from user. Note that bpf.c and bpf.h only deal with kernel interface. Things like structure of 'map' section in the ELF object is not cared by of bpf.[ch

[RFC PATCH v6 10/32] bpf tools: Collect symbol table from SHT_SYMTAB section

2015-06-08 Thread Wang Nan
This patch collects symbols section. This section is useful when linking ELF maps. Signed-off-by: Wang Nan Acked-by: Alexei Starovoitov --- tools/lib/bpf/libbpf.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c index 3315f00..77ad7

[RFC PATCH v6 17/32] bpf tools: Introduce bpf_load_program() to bpf.c

2015-06-08 Thread Wang Nan
bpf_load_program() can be used to load bpf program into kernel. To make loading faster, first try to load without logbuf. Try again with logbuf if the first try failed. Signed-off-by: Wang Nan Acked-by: Alexei Starovoitov --- tools/lib/bpf/bpf.c | 34 ++ tools/li

[RFC PATCH v6 01/32] tools build: Add feature check for eBPF API

2015-06-08 Thread Wang Nan
In this patch, eBPF API is checked by compiling a c source file which uses fields in bpf_attr which will be used by libbpf. Signed-off-by: Wang Nan Acked-by: Alexei Starovoitov --- tools/build/Makefile.feature | 6 -- tools/build/feature/Makefile | 6 +- tools/build/feature/test-b

[RFC PATCH v6 15/32] bpf tools: Create eBPF maps defined in an object file

2015-06-08 Thread Wang Nan
This patch creates maps based on 'map' section in object file using bpf_create_map(), and stores the fds into an array in 'struct bpf_object'. Previous patches parse ELF object file and collecte required data, but doesn't play with kernel. They belong to 'opening' phase. This patch is the first pa

[RFC PATCH v6 13/32] bpf tools: Record map accessing instructions for each program

2015-06-08 Thread Wang Nan
This patch records the indics of instructions which are needed to be relocated. Those information are saved in 'reloc_desc' field in 'struct bpf_program'. In loading phase (this patch takes effect in opening phase), the collected instructions will be replaced by map loading instructions. Since we

[RFC PATCH v6 16/32] bpf tools: Relocate eBPF programs

2015-06-08 Thread Wang Nan
If an eBPF program accesses a map, LLVM generates a load instruction which loads an absolute address into a register, like this: ld_64 r1, ... call2 That ld_64 instruction will be recorded in relocation section. To enable the usage of that map, relocation must be done by replacing th

[RFC PATCH v6 12/32] bpf tools: Collect relocation sections from SHT_REL sections

2015-06-08 Thread Wang Nan
This patch collects relocation sections into 'struct object'. Such sections are used for connecting maps to bpf programs. 'reloc' field in 'struct bpf_object' is introduced for storing such informations. This patch simply store the data into 'reloc' field. Following patch will parse them to know t

[RFC PATCH v6 04/32] bpf tools: Open eBPF object file and do basic validation

2015-06-08 Thread Wang Nan
This patch defines basic interface of libbpf. 'struct bpf_object' will be the handler of each object file. Its internal structure is hide to user. eBPF object files are compiled by LLVM as ELF format. In this patch, libelf is used to open those files, read EHDR and do basic validation according to

[RFC PATCH v6 24/32] perf record: Compile scriptlets if pass '.c' to --event

2015-06-08 Thread Wang Nan
This patch enables passing source files to --event directly using: # perf record --event bpf-file.c command This patch does following works: 1) 'struct bpf_param' is introduced to store compiler related options; 2) bpf__compile() is introduced for compiling source code by calling clang a

[RFC PATCH v6 23/32] perf record: Enable passing bpf object file to --event

2015-06-08 Thread Wang Nan
By introducing new rules in tools/perf/util/parse-events.[ly], this patch enables 'perf record --event bpf_file.o' to select events by an eBPF object file. It calls parse_events_load_bpf() to load that file, which uses bpf__prepare_load() and finally calls bpf_object__open() for the object files.

[RFC PATCH v6 21/32] bpf tools: Link all bpf objects onto a list

2015-06-08 Thread Wang Nan
To prevent caller from creating additional structures to hold pointers of 'struct bpf_object', this patch link all such structures onto a list (hidden to user). bpf_object__for_each() is introduced to allow users iterate over each objects. bpf_object__for_each() is safe even user close the object d

[RFC PATCH v6 22/32] perf tools: Make perf depend on libbpf

2015-06-08 Thread Wang Nan
By adding libbpf into perf's Makefile, this patch enables perf to build libbpf during building if libelf is found and neither NO_LIBELF nor NO_LIBBPF is set. The newly introduced code is similar to libapi and libtraceevent building in Makefile.perf. MANIFEST is also updated for 'make perf-*-src-pk

[RFC PATCH v6 19/32] bpf tools: Introduce accessors for struct bpf_program

2015-06-08 Thread Wang Nan
This patch introduces accessors for user of libbpf to retrive section name and fd of a opened/loaded eBPF program. 'struct bpf_prog_handler' is used for that purpose. Accessors of programs section name and file descriptor are provided. Set/get private data are also impelmented. Signed-off-by: Wang

[RFC PATCH v6 20/32] bpf tools: Introduce accessors for struct bpf_object

2015-06-08 Thread Wang Nan
This patch add an accessor which allows caller to get count of programs in an object file. Signed-off-by: Wang Nan Acked-by: Alexei Starovoitov --- tools/lib/bpf/libbpf.c | 9 + tools/lib/bpf/libbpf.h | 3 +++ 2 files changed, 12 insertions(+) diff --git a/tools/lib/bpf/libbpf.c b/tool

[RFC PATCH v6 28/32] perf record: Probe at kprobe points

2015-06-08 Thread Wang Nan
In this patch, kprobe points are created using add_perf_probe_events. Since all events are already grouped together in an array, calling add_perf_probe_events() once creates all of them. probe_conf.max_probes is set to MAX_PROBES to support glob matching. Signed-off-by: Wang Nan --- tools/perf/

[RFC PATCH v6 25/32] perf tools: Add 'bpf.' config section to perf default config

2015-06-08 Thread Wang Nan
perf_bpf_config() is added to parse 'bpf' section in perf config file. Following is an example: [bpf] clang-path = /llvm/bin/x86_64-linux-clang" llc-path = /llvm/bin/x86_64-linux-llc" clang-opt = "-nostdinc -isystem /llvm/lib/clang/include -I/kernel/arch/x86/include ..." llc-opt = ""

Re: [RFC PATCH] sched: Fix sched_wakeup tracepoint

2015-06-08 Thread Mathieu Desnoyers
- On Jun 8, 2015, at 8:55 AM, Peter Zijlstra pet...@infradead.org wrote: > On Fri, 2015-06-05 at 13:23 +, Mathieu Desnoyers wrote: >> sched_wakeup: when try_to_wake_up{,_local} is called in the waker. >> sched_activate_task: when the wakee is marked runnable. >> sched_switch: when scheduli

[RFC PATCH v6 32/32] perf record: Add LLVM options for compiling BPF scripts

2015-06-08 Thread Wang Nan
Although previous patch allows setting BPF compiler related options in perfconfig, on some ad-hoc situation it still requires passing options through cmdline. This patch introduces 4 options to 'perf record' for this propose: --clang-path, --clang-opt, --llc-path and --llc-opt. Signed-off-by: Wang

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-08 Thread Dov Levenglick
> On Sun, Jun 7, 2015 at 10:32 AM, wrote: >>> 2015-06-05 5:53 GMT+09:00 : > Hi Yaniv, > > 2015-06-03 18:37 GMT+09:00 Yaniv Gardi : >> @@ -321,7 +313,22 @@ static int ufshcd_pltfrm_probe(struct >> platform_device *pdev) >> goto out; >> } >>

[RFC PATCH v6 29/32] perf record: Load all eBPF object into kernel

2015-06-08 Thread Wang Nan
This patch utilizes bpf_load_object() provided by libbpf to load all objects into kernel. Signed-off-by: Wang Nan --- tools/perf/builtin-record.c | 12 tools/perf/util/bpf-loader.c | 19 +++ tools/perf/util/bpf-loader.h | 2 ++ 3 files changed, 33 insertions(+) di

[RFC PATCH v6 30/32] perf tools: Add bpf_fd field to evsel and config it

2015-06-08 Thread Wang Nan
This patch adds a bpf_fd field to 'struct evsel' then introduces method to config it. In bpf-loader, a bpf__for_each_program() function is added. Which calls the callback function for each eBPF programs with their event structure and file descriptors. In evlist.c, perf_evlist__add_bpf() is added to

[RFC PATCH v6 27/32] perf probe: Attach trace_probe_event with perf_probe_event

2015-06-08 Thread Wang Nan
This patch drops struct __event_package structure. Instead, it adds trace_probe_event into 'struct perf_probe_event'. trace_probe_event information give further patches a chance to access actual probe points and actual arguments. Using them, bpf_loader will be able to attach one bpf program to dif

[RFC PATCH v6 26/32] perf tools: Parse probe points of eBPF programs during preparation

2015-06-08 Thread Wang Nan
This patch parses section name of each program, and creates corresponding 'struct perf_probe_event' structure. parse_perf_probe_command() is used to do the main parsing works. Parsing result is stored into a global array. This is because add_perf_probe_events() is non-reentrantable. In following p

[RFC PATCH v6 31/32] perf tools: Attach eBPF program to perf event

2015-06-08 Thread Wang Nan
In this patch PERF_EVENT_IOC_SET_BPF ioctl is used to attach eBPF program to a newly created perf event. The file descriptor of the eBPF program is passed to perf record using previous patches, and stored into evsel->bpf_fd. It is possible that different perf event are created for one kprobe event

[RFC PATCH v6 18/32] bpf tools: Load eBPF programs in object files into kernel

2015-06-08 Thread Wang Nan
This patch utilizes previous introduced bpf_load_program to load programs in the ELF file into kernel. Result is stored in 'fd' field in 'struct bpf_program'. During loading, it allocs a log buffer and free it before return. Note that that buffer is not passed to bpf_load_program() if the first lo

[RFC PATCH v6 03/32] bpf tools: Allow caller to set printing function

2015-06-08 Thread Wang Nan
By libbpf_set_print(), users of libbpf are allowed to register he/she own debug, info and warning printing functions. Libbpf will use those functions to print messages. If not provided, default info and warning printing functions are fprintf(stderr, ...); default debug printing is NULL. This API i

[RFC PATCH v6 00/32] perf tools: filtering events using eBPF programs

2015-06-08 Thread Wang Nan
This is the 6th version which tries to introduce eBPF programs to perf. It enables 'perf record' to filter events using eBPF programs like: # perf record --event bpf-file.c sleep 1 and # perf record --event bpf-file.o sleep 1 This patch series is based on tip/perf/core (a3d8654). Compared wi

[PATCH v2] drm/panel: add lg4573 driver

2015-06-08 Thread Heiko Schocher
Add support for LG LG4573 480x800 4,3" panel. the LG4573 is used on the LG LCD LB043WV2-SD01, an industrial 4.3" TFT panel with SPI control interface. Signed-off-by: Heiko Schocher --- Changes in v2: - add comments from Thierry Reding: - fix some spelling issues - remove "power-on-delay"

Re: nios2: Export get_cycles

2015-06-08 Thread Herbert Xu
On Tue, Jun 09, 2015 at 03:19:32PM +1000, Stephen Rothwell wrote: > Hi Herbert, > > On Tue, 9 Jun 2015 12:46:46 +0800 Herbert Xu > wrote: > > > > On Mon, Jun 08, 2015 at 09:31:54PM -0700, Guenter Roeck wrote: > > > > > > nios2 still fails to build with > > > > > > ERROR: "get_cycles" [crypto/j

[RFC PATCH v6 06/32] bpf tools: Check endianess and make libbpf fail early

2015-06-08 Thread Wang Nan
Check endianess according to EHDR. Code is taken from tools/perf/util/symbol-elf.c. Libbpf doesn't magically convert missmatched endianess. Even if we swap eBPF instructions to correct byte order, we are unable to deal with endianess in code logical generated by LLVM. Therefore, libbpf should sim

[ANNOUNCE] kmod 21

2015-06-08 Thread Lucas De Marchi
kmod 21 is out: ftp://ftp.kernel.org/pub/linux/utils/kernel/kmod/kmod-21.tar.xz ftp://ftp.kernel.org/pub/linux/utils/kernel/kmod/kmod-21.tar.sign Small release with just 3 changes worth mentioning. From the NEWS file: - New features: - kmod tool started to learn the "inse

Re: NILFS2: double uuid

2015-06-08 Thread Heinz Diehl
On 08.06.2015, Heinz Diehl wrote: > > This change has been applied between v2.24 and v2.24.1 of util-linux, > > and not yet fixed in the mainline. > Ok, I'll try to identify and revert this commit in the meantime. The patch doesn't revert cleanly. Is there a workaround I could use until the pr

Re: [patch 2/7] timer: Remove FIFO guarantee

2015-06-08 Thread George Spelvin
Thomas Gleixner wrote: > It does. Depending on when you enqueue the timer because the thing is > calculated from the delta (expires - jiffies). Ah, right. If slack > 0, the slack amount is absolute and the rounding will be consistent. But if slack < 0, which is the default, it's a percentage of

RE: [PATCH] class: Free the kobject.name if kset_register fails

2015-06-08 Thread Chen, Lin Z
Hi greg, >How did you ever trigger this error case? When try to register the same class twice. >I don't like mucking about in the root of the kobject name structure, as who >knows what is really happening there. Isn't there some other "better" way to >resolve this? I try to use below patch to

[v10 10/10] iommu, x86: Properly handle posted interrupts for IOMMU hotplug

2015-06-08 Thread Feng Wu
Return error when inserting a new IOMMU which doesn't support posted interrupts if posted interrupts are already enabled. Signed-off-by: Feng Wu Reviewed-by: Thomas Gleixner Acked-by: Joerg Roedel --- drivers/iommu/intel_irq_remapping.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dr

[v10 06/10] iommu, x86: Avoid migrating VT-d posted interrupts

2015-06-08 Thread Feng Wu
When the interrupt is configured in posted mode, the destination of the interrupt is set in the Posted-Interrupts Descriptor and the migration of these interrupts happens during vCPU scheduling. We still update the cached irte, which will be used when changing back to remapping mode, but we avoid

[v10 05/10] iommu, x86: Save the mode (posted or remapped) of an IRTE

2015-06-08 Thread Feng Wu
Add a new field to struct irq_2_iommu, which captures whether the associated IRTE is in posted mode or remapped mode. We update this field when the IRTE is written into the table. Suggested-by: Thomas Gleixner Signed-off-by: Feng Wu Reviewed-by: Thomas Gleixner Acked-by: Joerg Roedel --- driv

[v10 01/10] iommu: Add new member capability to struct irq_remap_ops

2015-06-08 Thread Feng Wu
Add a new member 'capability' to struct irq_remap_ops for storing information about available capabilities such as VT-d Posted-Interrupts. Signed-off-by: Feng Wu Reviewed-by: Jiang Liu Reviewed-by: Thomas Gleixner Acked-by: Joerg Roedel --- arch/x86/include/asm/irq_remapping.h | 4 drive

[v10 07/10] iommu, x86: Add cap_pi_support() to detect VT-d PI capability

2015-06-08 Thread Feng Wu
Add helper function to detect VT-d Posted-Interrupts capability. Signed-off-by: Feng Wu Reviewed-by: Jiang Liu Acked-by: David Woodhouse Reviewed-by: Thomas Gleixner Acked-by: Joerg Roedel --- include/linux/intel-iommu.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/intel

[v10 04/10] iommu, x86: Implement irq_set_vcpu_affinity for intel_ir_chip

2015-06-08 Thread Feng Wu
Interrupt chip callback to set the VCPU affinity for posted interrupts. [ tglx: Use the helper function to copy from the remap irte instead of open coding it. Massage the comment as well ] Signed-off-by: Feng Wu Reviewed-by: Jiang Liu Acked-by: David Woodhouse Reviewed-by: Thomas Gleix

[v10 08/10] iommu, x86: Setup Posted-Interrupts capability for Intel iommu

2015-06-08 Thread Feng Wu
Set Posted-Interrupts capability for Intel iommu when Interrupt Remapping is enabled, clear it when disabled. Signed-off-by: Feng Wu Reviewed-by: Thomas Gleixner Acked-by: Joerg Roedel --- drivers/iommu/intel_irq_remapping.c | 30 ++ drivers/iommu/irq_remapping.c

[v10 02/10] iommu: dmar: Extend struct irte for VT-d Posted-Interrupts

2015-06-08 Thread Feng Wu
From: Thomas Gleixner The IRTE (Interrupt Remapping Table Entry) is either an entry for remapped or for posted interrupts. The hardware distiguishes between remapped and posted entries by bit 15 in the low 64 bit of the IRTE. If cleared the entry is remapped, if set it's posted. The entries have

[v10 03/10] iommu: dmar: Provide helper to copy shared irte fields

2015-06-08 Thread Feng Wu
From: Thomas Gleixner Instead of open coding, provide a helper function to copy the shared irte fields. Signed-off-by: Thomas Gleixner --- include/linux/dmar.h | 12 1 file changed, 12 insertions(+) diff --git a/include/linux/dmar.h b/include/linux/dmar.h index 0dbcabc..e9bc929 1

[v10 09/10] iommu, x86: Provide irq_remapping_cap() interface

2015-06-08 Thread Feng Wu
Add a new interface irq_remapping_cap() to detect whether irq remapping supports new features, such as VT-d Posted-Interrupts. Export the function, so that KVM code can check this and use this mechanism properly. Signed-off-by: Feng Wu Reviewed-by: Jiang Liu Reviewed-by: Thomas Gleixner Acked-

[v10 00/10] Add VT-d Posted-Interrupts support - IOMMU part

2015-06-08 Thread Feng Wu
VT-d Posted-Interrupts is an enhancement to CPU side Posted-Interrupt. With VT-d Posted-Interrupts enabled, external interrupts from direct-assigned devices can be delivered to guests without VMM intervention when guest is running in non-root mode. You can find the VT-d Posted-Interrtups Spec. in

Re: [PATCH v2 2/2] drivers: ata: add support for Ceva sata host controller

2015-06-08 Thread Tejun Heo
cc'ing Hans and quoting whole message. Hans, can you please review this one? Thanks. On Fri, Jun 05, 2015 at 11:32:28AM +0530, Suneel Garapati wrote: > Adds support for Ceva sata host controller on Xilinx > Zynq UltraScale+ MPSoC. > > Signed-off-by: Suneel Garapati > --- > Changes v2 > - Chan

Re: nios2: Export get_cycles

2015-06-08 Thread Stephen Rothwell
Hi Herbert, On Tue, 9 Jun 2015 12:46:46 +0800 Herbert Xu wrote: > > On Mon, Jun 08, 2015 at 09:31:54PM -0700, Guenter Roeck wrote: > > > > nios2 still fails to build with > > > > ERROR: "get_cycles" [crypto/jitterentropy.ko] undefined! > > It's the only arch that doesn't inline get_cycles and

Re: [PATCH 1/2] KVM: MMU: fix SMAP virtualization

2015-06-08 Thread Vinson Lee
On Tue, May 26, 2015 at 7:53 PM, Xiao Guangrong wrote: > > > On 05/26/2015 10:48 PM, Paolo Bonzini wrote: >> >> >> >> On 26/05/2015 16:45, Edward Cree wrote: > > This breaks older compilers that can't initialize anon structures. > > How old ? Even gcc 3.1 says you can use unnamed s

Re: [PATCH kernel v12 33/34] vfio: powerpc/spapr: Register memory and define IOMMU v2

2015-06-08 Thread David Gibson
On Fri, Jun 05, 2015 at 04:35:25PM +1000, Alexey Kardashevskiy wrote: > The existing implementation accounts the whole DMA window in > the locked_vm counter. This is going to be worse with multiple > containers and huge DMA windows. Also, real-time accounting would requite > additional tracking of

Re: [PATCH kernel v12 09/34] vfio: powerpc/spapr: Move locked_vm accounting to helpers

2015-06-08 Thread David Gibson
On Fri, Jun 05, 2015 at 04:35:01PM +1000, Alexey Kardashevskiy wrote: > There moves locked pages accounting to helpers. > Later they will be reused for Dynamic DMA windows (DDW). > > This reworks debug messages to show the current value and the limit. > > This stores the locked pages number in th

Re: [PATCH kernel v12 26/34] powerpc/powernv/ioda2: Introduce pnv_pci_ioda2_set_window

2015-06-08 Thread David Gibson
On Fri, Jun 05, 2015 at 04:35:18PM +1000, Alexey Kardashevskiy wrote: > This is a part of moving DMA window programming to an iommu_ops > callback. pnv_pci_ioda2_set_window() takes an iommu_table_group as > a first parameter (not pnv_ioda_pe) as it is going to be used as > a callback for VFIO DDW c

Re: [PATCH kernel v12 27/34] powerpc/powernv: Implement multilevel TCE tables

2015-06-08 Thread David Gibson
On Fri, Jun 05, 2015 at 04:35:19PM +1000, Alexey Kardashevskiy wrote: > TCE tables might get too big in case of 4K IOMMU pages and DDW enabled > on huge guests (hundreds of GB of RAM) so the kernel might be unable to > allocate contiguous chunk of physical memory to store the TCE table. > > To add

Re: [PATCH kernel v12 32/34] powerpc/mmu: Add userspace-to-physical addresses translation cache

2015-06-08 Thread David Gibson
On Fri, Jun 05, 2015 at 04:35:24PM +1000, Alexey Kardashevskiy wrote: > We are adding support for DMA memory pre-registration to be used in > conjunction with VFIO. The idea is that the userspace which is going to > run a guest may want to pre-register a user space memory region so > it all gets pi

Re: [PATCH v13 5/5] cgroup: implement the PIDs subsystem

2015-06-08 Thread Tejun Heo
Hello, Aleksa. On Sat, Jun 06, 2015 at 10:02:18AM +1000, Aleksa Sarai wrote: ... > +/* > + * Lockless hierarchical accounting (with enforceable limits) derived from > + * mm/page_counter.c. Original copyright notice from page_counter code: > + * > + * --

nios2: Export get_cycles

2015-06-08 Thread Herbert Xu
On Mon, Jun 08, 2015 at 09:31:54PM -0700, Guenter Roeck wrote: > > nios2 still fails to build with > > ERROR: "get_cycles" [crypto/jitterentropy.ko] undefined! It's the only arch that doesn't inline get_cycles and doesn't export it. ---8<--- nios2 is the only architecture that does not inline g

[PATCH] Staging: rts5208: xd: Fixed checkpatch warning

2015-06-08 Thread Nizam Haider
Fixed a warning, else is not generally useful after a break or return. Signed-off-by: Nizam Haider --- drivers/staging/rts5208/xd.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rts5208/xd.c b/drivers/staging/rts5208/xd.c index 8fd108e..10fea7b 100644

Re: [PATCH -rfc 4/4] locking/rtmutex: Support spin on owner (osq)

2015-06-08 Thread Davidlohr Bueso
On Fri, 2015-06-05 at 15:59 +0200, Thomas Gleixner wrote: > On Tue, 19 May 2015, Davidlohr Bueso wrote: > > > > +/* > > + * Lockless alternative to rt_mutex_has_waiters() as we do not need the > > + * wait_lock to check if we are in, for instance, a transitional state > > + * after calling mark_r

Re: [PATCH v13 4/5] cgroup: allow a cgroup subsystem to reject a fork

2015-06-08 Thread Tejun Heo
Hello, Aleksa. Looks pretty good to me in general. Some minor comments below. On Sat, Jun 06, 2015 at 10:02:17AM +1000, Aleksa Sarai wrote: > diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h > index a593e29..17d0046 100644 > --- a/include/linux/cgroup.h > +++ b/include/linux/cgroup.

Re: [PATCH v4 5/7] Watchdog: introduce ARM SBSA watchdog driver

2015-06-08 Thread Guenter Roeck
On 06/08/2015 08:59 PM, Fu Wei wrote: Hi Guenter, On 9 June 2015 at 02:26, Guenter Roeck wrote: On 06/08/2015 09:05 AM, Fu Wei wrote: Hi Gurnter On 3 June 2015 at 01:07, Guenter Roeck wrote: On 06/02/2015 09:55 AM, Fu Wei wrote: Hi Timur, Thanks , feedback inline On 2 June 2015 at

Re: [PATCH 2/2 RESEND] power: reset: Add syscon poweroff device node for APM X-Gene platform

2015-06-08 Thread Tai Tri Nguyen
Hi Dann, On Mon, Jun 8, 2015 at 8:44 PM, Dann Frazier wrote: > On Tue, Jun 2, 2015 at 1:19 PM, Tai Nguyen wrote: >> This patch adds syscon poweroff device node to support poweroff feature >> on APM X-Gene Mustang platform > > hey Tai, > The reboot changes work just fine for me, but poweroff doe

Re: [PATCH] crypto: drbg - use pragmas for disabling optimization

2015-06-08 Thread Guenter Roeck
On 06/08/2015 07:08 PM, Stephan Mueller wrote: Hi, I performed measurements of the upper and lower boundary of the minimum and Shannon entropy for the RNG before the patch and after the patch. The values are very similar which demonstrates that the change does not affect the cryptographic charac

[PATCH v2] Staging: vt6655: Remove unnecessary equality checks in rxtx.c

2015-06-08 Thread Harisangam, Sharvari (S.)
From: Harisangam Sharvari The unnecessary equality checks for bool variable are removed in rxtx.c. These changes were detected with the help of coccinelle tool Signed-off-by: Harisangam Sharvari --- drivers/staging/vt6655/rxtx.c |8 1 file changed, 4 insertions(+), 4 deletions(-)

  1   2   3   4   5   6   7   8   9   >