Re: [PATCH v2 1/1] irqchip: exynos-combiner: Save IRQ enable set on suspend

2015-06-11 Thread Krzysztof Kozlowski
On 12.06.2015 14:43, Javier Martinez Canillas wrote: > The Exynos interrupt combiner IP loses its state when the SoC enters > into a low power state during a Suspend-to-RAM. This means that if a > IRQ is used as a source, the interrupts for the devices are disabled > when the system is resumed

Re: iio: what does in_accel_x_thresh_rising_en ?

2015-06-11 Thread Jonathan Cameron
On 11 June 2015 18:34:12 BST, Martin Kepplinger wrote: >Am 2015-06-10 um 22:49 schrieb Jonathan Cameron: >> On 09/06/15 17:03, Martin Kepplinger wrote: >>> hi >>> >>> Is the in_accel_thresh_rising_value (or falling) threshold value >signed >>> or unsigned? >>> >>> In other words: Is a RISING

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

2015-06-11 Thread Ming Lin
On Wed, 2015-06-10 at 15:06 -0700, Ming Lin wrote: > On Wed, Jun 10, 2015 at 2:46 PM, Mike Snitzer wrote: > > On Wed, Jun 10 2015 at 5:20pm -0400, > > Ming Lin wrote: > > > >> On Mon, Jun 8, 2015 at 11:09 PM, Ming Lin wrote: > >> > On Thu, 2015-06-04 at 17:06 -0400, Mike Snitzer wrote: > >> >>

Re: [PATCH v2] clk: exynos4: Fix wrong clock for Exynos4x12 ADC

2015-06-11 Thread Javier Martinez Canillas
Hello Krzysztof, On Fri, Jun 12, 2015 at 3:53 AM, Krzysztof Kozlowski wrote: > The TSADC gate clock was used in Exynos4x12 DTSI for exynos-adc driver. > However TSADC is present only on Exynos4210 so on Trats2 board (with > Exynos4412 SoC) the exynos-adc driver could not be probed: >ERROR:

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

2015-06-11 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

[RFC PATCH v7 16/37] bpf tools: Relocate eBPF programs

2015-06-11 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

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

2015-06-11 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

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

2015-06-11 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

[RFC PATCH v7 10/37] bpf tools: Collect symbol table from SHT_SYMTAB section

2015-06-11 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

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

2015-06-11 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 v7 12/37] bpf tools: Collect relocation sections from SHT_REL sections

2015-06-11 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

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

2015-06-11 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 ++

[RFC PATCH v7 19/37] bpf tools: Introduce accessors for struct bpf_program

2015-06-11 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:

[PATCH v2 1/1] irqchip: exynos-combiner: Save IRQ enable set on suspend

2015-06-11 Thread Javier Martinez Canillas
The Exynos interrupt combiner IP loses its state when the SoC enters into a low power state during a Suspend-to-RAM. This means that if a IRQ is used as a source, the interrupts for the devices are disabled when the system is resumed from a sleep state so are not triggered. Save the interrupt

[RFC PATCH v7 20/37] bpf tools: Introduce accessors for struct bpf_object

2015-06-11 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

[RFC PATCH v7 00/37] perf tools: filtering events using eBPF programs

2015-06-11 Thread Wang Nan
This is the 7th 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 (028c63b). Compare

[RFC PATCH v7 22/37] perf tools: Make perf depend on libbpf

2015-06-11 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

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

2015-06-11 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

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

2015-06-11 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 v7 06/37] bpf tools: Check endianess and make libbpf fail early

2015-06-11 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

[RFC PATCH v7 26/37] perf tools: Auto detecting kernel build directory

2015-06-11 Thread Wang Nan
This patch detects kernel build directory using a embedded shell script 'kbuild_detector', which does this by checking existance of include/generated/autoconf.h. clang working directory is changed to kbuild directory if it is found, to help user use relative include path. Following patch will

[RFC PATCH v7 24/37] perf tools: Call clang to compile C source to object code

2015-06-11 Thread Wang Nan
This is the core patch for supporting eBPF on-the-fly compiling, does the following work: 1. Search clang compiler using search_program(). 2. Run command template defined in llvm-bpf-cmd-template option in [llvm] config section using read_from_pipe(). Patch of clang and source code

[RFC PATCH v7 25/37] perf tests: Add LLVM test for eBPF on-the-fly compiling

2015-06-11 Thread Wang Nan
Previous patch introduces llvm__compile_bpf() to compile source file to eBPF object. This patch adds testcase to test it. It also test libbpf by opening generated object. Signed-off-by: Wang Nan --- tools/perf/tests/Build | 1 + tools/perf/tests/builtin-test.c | 4 ++

[RFC PATCH v7 02/37] bpf tools: Introduce 'bpf' library to tools

2015-06-11 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

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

2015-06-11 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 ---

[RFC PATCH v7 28/37] perf record: Enable passing bpf object file to --event

2015-06-11 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 v7 05/37] bpf tools: Read eBPF object from buffer

2015-06-11 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

[RFC PATCH v7 27/37] perf tools: Auto detecting kernel include options

2015-06-11 Thread Wang Nan
To help user find correct kernel include options, this patch extracts them from kbuild system by an embedded script kinc_fetch_script, which creates a temporary directory, generates Makefile and an empty dummy.o then use the Makefile to fetch $(NOSTDINC_FLAGS), $(LINUXINCLUDE) and $(EXTRA_CFLAGS)

[RFC PATCH v7 31/37] perf probe: Attach trace_probe_event with perf_probe_event

2015-06-11 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

[RFC PATCH v7 30/37] perf tools: Parse probe points of eBPF programs during preparation

2015-06-11 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

Re: [PATCH 1/1] staging:f81534 Add F81532/534 Driver

2015-06-11 Thread Peter Hung
Greg KH 於 2015/6/12 下午 12:33 寫道: Why not just do the work now to clean up the file and get it merged "properly"? Why put this in staging at all? I'll clear up the file and resend it to usb-serial subsystem mail list. Thanks for your advices. -- With Best Regards, Peter Hung -- To

[RFC PATCH v7 32/37] perf record: Probe at kprobe points

2015-06-11 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 ---

[RFC PATCH v7 23/37] perf tools: Introduce llvm config options

2015-06-11 Thread Wang Nan
This patch introduces [llvm] config section with 5 options. Following patches will use then to config llvm dynamica compiling. 'llvm-utils.[ch]' is introduced in this patch for holding all llvm/clang related stuffs. Example: [llvm] # Path to clang. If omit, search it from $PATH.

[RFC PATCH v7 29/37] perf record: Compile scriptlets if pass '.c' to --event

2015-06-11 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) Allow passing '.c' file to '--event'. parse_events_load_bpf() is expanded to allow caller tell it whether the passed file is source file or

[RFC PATCH v7 33/37] perf record: Load all eBPF object into kernel

2015-06-11 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(+)

[RFC PATCH v7 36/37] perf tools: Suppress probing messages when probing by BPF loading

2015-06-11 Thread Wang Nan
This patch suppress message output by add_perf_probe_events() and del_perf_probe_events() if they are triggered by BPF loading. Before this patch, when using 'perf record' with BPF object/source as event selector, following message will be output: Added new event:

[RFC PATCH v7 01/37] tools build: Add feature check for eBPF API

2015-06-11 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 +-

[RFC PATCH v7 35/37] perf tools: Attach eBPF program to perf event

2015-06-11 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

[RFC PATCH v7 03/37] bpf tools: Allow caller to set printing function

2015-06-11 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

[RFC PATCH v7 34/37] perf tools: Add bpf_fd field to evsel and config it

2015-06-11 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

[RFC PATCH v7 37/37] perf record: Add clang options for compiling BPF scripts

2015-06-11 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 2 options to 'perf record' for this propose: --clang-path and --clang-opt. Signed-off-by: Wang Nan ---

[RFC PATCH v7 21/37] bpf tools: Link all bpf objects onto a list

2015-06-11 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

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

2015-06-11 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 v7 08/37] bpf tools: Collect version and license from ELF sections

2015-06-11 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

Re: [PATCH RESEND] sched: prefer an idle cpu vs an idle sibling for BALANCE_WAKE

2015-06-11 Thread Mike Galbraith
On Thu, 2015-05-28 at 13:05 +0200, Peter Zijlstra wrote: > @@ -5022,22 +5026,28 @@ select_task_rq_fair(struct task_struct *p, int > prev_cpu, int sd_flag, int wake_f >* If both cpu and prev_cpu are part of this domain, >* cpu is a valid SD_WAKE_AFFINE target. >

Re: [PATCH v2] w1: masters: omap_hdq: Add support for 1-wire mode

2015-06-11 Thread Vignesh R
Hi, On Thursday 11 June 2015 09:04 PM, Evgeniy Polyakov wrote: > Hi > > 25.05.2015, 08:15, "Vignesh R" : >>> HDQ mode remains unchanged. >>> >>> Signed-off-by: Vignesh R > > I have no experience with omap_hdq platform, but there are quite a few > questions > related to IO - you never check

Re: [PATCH 2/2] staging: rtl8188eu: remove unused variables

2015-06-11 Thread Sudip Mukherjee
On Thu, Jun 11, 2015 at 06:39:09PM +0530, Sudip Mukherjee wrote: > These variables were being set but not used afterwards. > > --- a/drivers/staging/rtl8188eu/core/rtw_sta_mgt.c > +++ b/drivers/staging/rtl8188eu/core/rtw_sta_mgt.c > @@ -147,18 +147,14 @@ inline struct sta_info >

[PATCH perf/core 4/4] [BUGFIX] perf probe: Show usage even if the last event is skipped

2015-06-11 Thread Masami Hiramatsu
When the last part of converted events are blacklisted or out-of-text, those are skipped and perf probe doesn't show usage examples. This fixes it to show the example even if the last part of event list is skipped. E.g. without this patch, events are added, but suddenly end; # perf probe

[PATCH perf/core 3/4] [BUGFIX] perf probe: Check non-probe-able symbols when using symbol map

2015-06-11 Thread Masami Hiramatsu
Fix to check both of non-exist symbols and kprobe blacklist symbols at symbol-map based converting too. E.g. without this fix, perf-probe failes to write the event. # perf probe vfs_caches_init_early Added new event: Failed to write event: Invalid argument Error: Failed to add

[PATCH perf/core 0/4] perf-probe bugfixes

2015-06-11 Thread Masami Hiramatsu
Hi Arnaldo, Here is a series of bugfix patches for perf-probe. I've fixed some bugs on non-debuginfo environment. This series fixes below bugs; - --list shows the list of probes in stderr. (It is refined from https://lkml.org/lkml/2015/5/30/34) - failed to probe on gcc optimized symbols

[PATCH perf/core 2/4] [BUGFIX] perf probe: Cut off the postfixes from event name

2015-06-11 Thread Masami Hiramatsu
Cut off the postfixes which gcc added for optimized routines from the event name automatically generated from symbol name, since *probe-events doesn't accept it. Those symbols will be used if we don't use debuginfo to find target functions. E.g. without this fix; - # perf probe -va

[PATCH perf/core 1/4] [BUGFIX] perf probe: List probes in stdout

2015-06-11 Thread Masami Hiramatsu
Since commit 5e17b28f1e24 ("perf probe: Add --quiet option to suppress output result message") have replaced printf with pr_info, perf probe -l outputs its result in stderr. However, that is not what the commit expected. e.g. - # perf probe -l > /dev/null probe:vfs_read (on

Re: [PATCH v14 0/3] ARM: rk3288: Add PM Domain support

2015-06-11 Thread Caesar Wang
Hi Kevin, Heiko Thanks for your comments. Sorry for delay reply. 在 2015年04月28日 02:28, Kevin Hilman 写道: Heiko Stübner writes: Am Freitag, 24. April 2015, 16:07:45 schrieb Caesar Wang: Add power domain drivers based on generic power domain for Rockchip platform, and support RK3288.

Re: [PATCH] extcon: Redefine the unique id of supported external connectors without 'enum extcon' type

2015-06-11 Thread Chanwoo Choi
Dear Greg, On 06/12/2015 01:29 PM, Greg KH wrote: > On Fri, Jun 12, 2015 at 11:10:06AM +0900, Chanwoo Choi wrote: >> This patch just redefine the unique id of supported external connectors >> without >> 'enum extcon' type. Because unique id would be used on devictree file(*.dts) >> to >>

RE: [v4 12/16] KVM: kvm-vfio: implement the VFIO skeleton for VT-d Posted-Interrupts

2015-06-11 Thread Wu, Feng
> -Original Message- > From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Friday, June 12, 2015 1:15 AM > To: Wu, Feng > Cc: k...@vger.kernel.org; linux-kernel@vger.kernel.org; pbonz...@redhat.com; > mtosa...@redhat.com; eric.au...@linaro.org > Subject: Re: [v4 12/16] KVM:

RE: [v4 13/16] KVM: x86: kvm-vfio: VT-d posted-interrupts setup

2015-06-11 Thread Wu, Feng
> -Original Message- > From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Friday, June 12, 2015 1:16 AM > To: Wu, Feng > Cc: k...@vger.kernel.org; linux-kernel@vger.kernel.org; pbonz...@redhat.com; > mtosa...@redhat.com; eric.au...@linaro.org > Subject: Re: [v4 13/16] KVM:

Re: [PATCH] extcon: Redefine the unique id of supported external connectors without 'enum extcon' type

2015-06-11 Thread Chanwoo Choi
Dear Greg, On 06/12/2015 01:27 PM, Greg KH wrote: > On Fri, Jun 12, 2015 at 11:10:06AM +0900, Chanwoo Choi wrote: >> This patch just redefine the unique id of supported external connectors >> without >> 'enum extcon' type. Because unique id would be used on devictree file(*.dts) >> to >>

Re: [PATCH 1/1] staging:f81534 Add F81532/534 Driver

2015-06-11 Thread Greg KH
On Fri, Jun 12, 2015 at 11:43:12AM +0800, Peter Hung wrote: > This driver is for Fintek F81532/F81534 USB to Serial Ports IC. > > Features: > 1. F81534 is 1-to-4 & F81532 is 1-to-2 serial ports IC > 2. Support Baudrate from B50 to B150 (excluding B100). > 3.

Re: [PATCH 1/1] usb: core: lpm: set lpm_capable for root hub device

2015-06-11 Thread Greg Kroah-Hartman
On Fri, Jun 12, 2015 at 09:29:37AM +0800, Lu Baolu wrote: > Commit 25cd2882e2fc ("usb/xhci: Change how we indicate a host supports > Link PM.") removed the code to set lpm_capable for USB 3.0 super-speed > root hub. The intention of that change was to avoid touching usb core > internal field,

Re: [PATCH] extcon: Redefine the unique id of supported external connectors without 'enum extcon' type

2015-06-11 Thread Greg KH
On Fri, Jun 12, 2015 at 11:10:06AM +0900, Chanwoo Choi wrote: > This patch just redefine the unique id of supported external connectors > without > 'enum extcon' type. Because unique id would be used on devictree file(*.dts) > to > indicate the specific external connectors like key number of

Re: [PATCH] extcon: Redefine the unique id of supported external connectors without 'enum extcon' type

2015-06-11 Thread Greg KH
On Fri, Jun 12, 2015 at 11:10:06AM +0900, Chanwoo Choi wrote: > This patch just redefine the unique id of supported external connectors > without > 'enum extcon' type. Because unique id would be used on devictree file(*.dts) > to > indicate the specific external connectors like key number of

Re: [PATCH v3 2/2] x86, mwaitt: introduce mwaix delay with a configurable timer

2015-06-11 Thread Huang Rui
On Thu, Jun 11, 2015 at 10:34:15AM -0700, Andy Lutomirski wrote: > On Thu, Jun 11, 2015 at 7:14 AM, Huang Rui wrote: > > MWAITX can enable a timer and a corresponding timer value specified in SW > > P0 clocks. The SW P0 frequency is the same with TSC. The timer provides an > > upper bound on how

Re: [PATCH non-pretimeout 4/7] Watchdog: introduce ARM SBSA watchdog driver

2015-06-11 Thread Timur Tabi
fu@linaro.org wrote: + if (timeout <= gwdt->max_wor_timeout) + writel_relaxed(timeout * gwdt->clk, + gwdt->control_base + SBSA_GWDT_WOR); + else + writel_relaxed(gwdt->max_wor_timeout * gwdt->clk, +

Re: diffs in changelogs

2015-06-11 Thread Joe Perches
On Thu, 2015-06-11 at 20:21 -0700, Andrew Morton wrote: > On Thu, 11 Jun 2015 20:12:59 -0700 Joe Perches wrote: > > > On Thu, 2015-06-11 at 13:40 -0700, Andrew Morton wrote: > > > People often put diff snippets in changelogs. This causes problems > > > when one tries to apply a file containing

[REGRESSION] NFS is creating a hidden port (left over from xs_bind() )

2015-06-11 Thread Steven Rostedt
I recently upgraded my main server to 4.0.4 from 3.19.5 and rkhunter started reporting a hidden port on my box. Running unhide-tcp I see this: # unhide-tcp Unhide-tcp 20121229 Copyright © 2012 Yago Jesus & Patrick Gouin License GPLv3+ : GNU GPL version 3 or later

[PATCH 1/1] staging:f81534 Add F81532/534 Driver

2015-06-11 Thread Peter Hung
This driver is for Fintek F81532/F81534 USB to Serial Ports IC. Features: 1. F81534 is 1-to-4 & F81532 is 1-to-2 serial ports IC 2. Support Baudrate from B50 to B150 (excluding B100). 3. The RTS signal can be transformed their behavior with

Re: [PATCH RESEND] sched: prefer an idle cpu vs an idle sibling for BALANCE_WAKE

2015-06-11 Thread Rik van Riel
On 06/11/2015 04:33 PM, Josef Bacik wrote: > Ugh I'm sorry, I've been running tests trying to get the numbers to look > good when I noticed I was getting some inconsistencies in my results. > Turns out I never actually tested your patch just plain, I had been > testing it with BALANCE_WAKE,

Re: [PATCH v6 2/3] IB/ipath: add counting for MTRR

2015-06-11 Thread Doug Ledford
On 06/11/2015 03:54 PM, Borislav Petkov wrote: > On Thu, Jun 11, 2015 at 10:50:01AM -0700, Luis R. Rodriguez wrote: >> From: "Luis R. Rodriguez" >> >> There is no good reason not to, we eventually delete it as well. >> >> Cc: Toshi Kani >> Cc: Roland Dreier >> Cc: Sean Hefty >> Cc: Hal

linux-next: manual merge of the l2-mtd tree with the mips tree

2015-06-11 Thread Michael Ellerman
Hi Brian, Today's linux-next merge of the l2-mtd tree got a conflict in MAINTAINERS between commit 68c2d21d0126 "MIPS: BCM47xx: Move NVRAM driver to the drivers/firmware/" from the mips tree and commit 02787daadbda "MAINTAINERS: add entry for new brcmnand/ directory" from the l2-mtd tree. I

Re: [PATCH] module: make perm const, change BUG_ON to BUILD_BUG_ON

2015-06-11 Thread Dan Streetman
On Thu, Jun 11, 2015 at 9:43 PM, Rusty Russell wrote: > Dan Streetman writes: >> Change the struct kernel_param.perm field to a const, as it should never >> be changed. Add inline functions that return a const value, which are >> compiled out, for kparam_[un]block_sysfs_r/w() macros to use; and

Re: diffs in changelogs

2015-06-11 Thread Andrew Morton
On Thu, 11 Jun 2015 20:12:59 -0700 Joe Perches wrote: > On Thu, 2015-06-11 at 13:40 -0700, Andrew Morton wrote: > > People often put diff snippets in changelogs. This causes problems > > when one tries to apply a file containing both the changelog and the > > diff because patch(1) tries to

[PATCH tip/perf/core] tools lib traceevent: Fix python/perf.so compiling error

2015-06-11 Thread Wang Nan
'make build-test' finds an error that make_python_perf_so fails due to missing of libtraceevent-dynamic-list: '.../python2' util/setup.py \ --quiet build_ext; \ mkdir -p python && \ cp python_ext_build/lib/perf.so python/ /path/to/ld: cannot open linker script file

Re: [PATCH] kernel/params.c: make use of unused but set variable

2015-06-11 Thread Louis Langholtz
Hi Tejun, On Jun 10, 2015, at 7:54 PM, Tejun Heo wrote: > Hey, Louis. > > On Wed, Jun 10, 2015 at 11:05:21AM -0600, Louis Langholtz wrote: >> The underlying code for sysfs_create_file does call WARN to warn about >> any errors. So it's not like the code is totally silent anyway. Then the >>

[PATCH v3 1/3] NTP: rtc: Add CONFIG_RTC_SYSTOHC_DEVICE for NTP synchronization

2015-06-11 Thread Xunlei Pang
From: Xunlei Pang Currently, CONFIG_RTC_SYSTOHC uses CONFIG_RTC_HCTOSYS_DEVICE which is originally used by CONFIG_RTC_HCTOSYS, but this rtc device has some limiations, for example, it must be battery-backed, be able to work with irq off and through system suspension, etc. So add

Re: [PATCH v2 6/6] regulator: qcom-spmi: Add vendor specific configuration

2015-06-11 Thread Rob Herring
On Thu, Jun 11, 2015 at 7:37 PM, Stephen Boyd wrote: > Add support for over current protection (OCP), pin control > selection, soft start and soft start strength, auto-mode, input > current limiting, and pull down. > > Cc: > Signed-off-by: Stephen Boyd > --- > > Changes from v1: > * New patch

[PATCH v3 2/3] sparc: time: Replace update_persistent_clock() with CONFIG_RTC_SYSTOHC

2015-06-11 Thread Xunlei Pang
From: Xunlei Pang On Sparc systems, update_persistent_clock() uses RTC drivers to do the job, it makes more sense to hand it over to CONFIG_RTC_SYSTOHC. In the long run, all the update_persistent_clock() should migrate to proper class RTC drivers if any and use CONFIG_RTC_SYSTOHC instead.

[PATCH v3 3/3] drivers/rtc/interface.c: Remove rtc_set_mmss()

2015-06-11 Thread Xunlei Pang
From: Xunlei Pang Now rtc_set_mmss() has no users, just remove it. We still have rtc_set_time() doing similar things. Signed-off-by: Xunlei Pang --- drivers/rtc/interface.c | 45 - include/linux/rtc.h | 1 - 2 files changed, 46 deletions(-)

Re: diffs in changelogs

2015-06-11 Thread Joe Perches
On Thu, 2015-06-11 at 13:40 -0700, Andrew Morton wrote: > People often put diff snippets in changelogs. This causes problems > when one tries to apply a file containing both the changelog and the > diff because patch(1) tries to apply the diff which it found in the > changelog. That > eg,

perf: aux area related crash and warnings

2015-06-11 Thread Vince Weaver
The fuzzer turned these up (this is 4.1-rc7 with the fasync patch applied) on a Haswell. I'm listing the crash first, but the warning happened earlier, not sure if it is related. [36298.986117] BUG: spinlock recursion on CPU#4, perf_fuzzer/3410 [36298.992915] lock: 0x88011edf7cd0, .magic:

Re: [PATCH RFC v4 2/4] crypto: add PKE API

2015-06-11 Thread Herbert Xu
On Thu, Jun 11, 2015 at 12:05:44PM -0700, Tadeusz Struk wrote: > > +int crypto_akcipher_setkey(struct crypto_akcipher *tfm, > +const struct public_key *pkey) > +{ > + if (tfm->pkey) > + akcipher_free_key(tfm->pkey); > + > + return akcipher_clone_key(tfm,

next-20150610 - repeated hangs at e1000e_phc_gettime+0x2e/0x60

2015-06-11 Thread Valdis Kletnieks
I'm seeing repeated hard lockups on my Dell Latitude E6530. Helpful info: 0) next-20150603 works, so the problem landed in linux-next in the last week. 1) All 3 times happened while I was at home, using wireless, so the interface didn't have link and was ifconfig'ed down. 2) Remarkably similar

[PATCH v2 0/3] IRQ/Gic-V3:Support Mbigen interrupt controller

2015-06-11 Thread Ma Jun
This patch set is applied to supprot the mbigen device. Mbigen means message based interrupt generator. It locate in ITS or out side of ITS. In fact, mbigen is a kind of interrupt controller collects the irq form non-PCI devices and generate msi interrupt. Hisilicon designed mbigen to reduce

[PATCH v2 1/3] IRQ/Gic-V3: Add mbigen driver to support mbigen interrupt controller

2015-06-11 Thread Ma Jun
This patch contains the mbigen device driver. To support Mbigen device, irq-mbigen.c and mbi.h are added. As a kind of MSI interrupt controller, the mbigen is used as a child domain of ITS domain just like PCI devices does. Change log: ---irq-mbigen.c: the driver of mbigen device.The mbigen

[PATCH v2 2/3] IRQ/Gic-V3: Change arm-gic-its to support the Mbigen interrupt

2015-06-11 Thread Ma Jun
This patch is applied to support the mbigen interrupt. As a kind of MSI interrupt controller, the mbigen is used as a child domain of ITS domain just like PCI devices. So the arm-gic-v3-its and related files are changed. The chip.c is also changed to check irq_ach before it called. Change log:

[PATCH v2 3/3] dt-binding:Documents the mbigen bindings

2015-06-11 Thread Ma Jun
Add the mbigen msi interrupt controller bindings document Signed-off-by: Ma Jun --- Documentation/devicetree/bindings/arm/mbigen.txt | 59 ++ 1 files changed, 59 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/mbigen.txt diff --git

Re: [PATCH RFC v4 2/4] crypto: add PKE API

2015-06-11 Thread Herbert Xu
On Fri, Jun 12, 2015 at 10:42:46AM +0800, Herbert Xu wrote: > On Fri, Jun 12, 2015 at 03:00:42AM +0200, Stephan Mueller wrote: > > > > The testmgr code can mark an entire cipher implementation as fips_allowed=1 > > as > > already done for RSA. However, unlike with the other ciphers, that flag >

Re: [PATCH RFC v4 1/4] MPILIB: add mpi_read_buf(), mpi_copy() and mpi_get_size() helpers

2015-06-11 Thread Herbert Xu
On Thu, Jun 11, 2015 at 12:05:38PM -0700, Tadeusz Struk wrote: > > +/** > + * mpi_get_size() - returns max size required to store the number > + * > + * @a: A multi precision integer for which we want to allocate a bufer > + * > + * Return: size required to store the number > + */ >

Re: [PATCH RFC v4 2/4] crypto: add PKE API

2015-06-11 Thread Herbert Xu
On Fri, Jun 12, 2015 at 03:00:42AM +0200, Stephan Mueller wrote: > > The testmgr code can mark an entire cipher implementation as fips_allowed=1 > as > already done for RSA. However, unlike with the other ciphers, that flag must > go in conjunction with the used key sizes. > > For FIPS mode,

[lkp] [rcu] cd73ca21cd2: No primary result change, +47.6% aim7.time.involuntary_context_switches

2015-06-11 Thread Huang Ying
tat.cgz,/lkp/benchmarks/turbostat.cgz,/lkp/benchmarks/aim7-x86_64.cgz" job_state: finished loadavg: 76.17 66.16 31.35 1/109 3251 start_time: '1433974860' end_time: '1433975225' version: "/lkp/lkp/.src-20150611-021242" echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_g

[PATCH 7/7] perf tools: Update MANIFEST per files removed from kernel

2015-06-11 Thread Arnaldo Carvalho de Melo
From: David Ahern Building perf out of kernel tree is currently broken because the MANIFEST file refers to kernel files that have been removed. With this patch make perf-targz-src-pkg succeeds as does building perf using the generated tarfile. Signed-off-by: David Ahern Link:

[PATCH 2/7] perf record: Amend option summaries

2015-06-11 Thread Arnaldo Carvalho de Melo
From: Peter Zijlstra Because there's too many options and I cannot read, I frequently get confused between -c and -P, and try to do things like: perf record -P 5 -- foo Which does not work; try and make the option description slightly longer and hopefully less confusing. Signed-off-by:

[PATCH 4/7] perf stat: Error out unsupported group leader immediately

2015-06-11 Thread Arnaldo Carvalho de Melo
From: Kan Liang perf stat ignores the unsupported event and continue to count supported event. But if the unsupported event is group leader, perf tool will crash. After applying this patch, the unsupported group leader will error out immediately. Without this patch: $ perf stat -x, -e

[PATCH 1/7] perf tools: Avoid possible race condition in copyfile()

2015-06-11 Thread Arnaldo Carvalho de Melo
From: Milos Vyletel Use unique temporary files when copying to buildid dir to prevent races in case multiple instances are trying to copy same file. This is done by - creating template in form /..XX where the suffix is used by mkstemp() to create unique file - change file mode - copy

[GIT PULL 0/7] perf/core improvements and fixes

2015-06-11 Thread Arnaldo Carvalho de Melo
Hi Ingo, Please consider pulling, - Arnaldo The following changes since commit 028c63b56795206464263fa3bc47094704c2a840: Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core (2015-06-09 11:46:04 +0200) are available in the git

[PATCH 6/7] trace: Beautify perf_event_open syscall

2015-06-11 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Syswide tracing and then running 'stat' and 'trace': $ perf trace -e perf_event_open 1034.649 (0.019 ms): perf/6133 perf_event_open(attr_uptr: 0x36f0360, pid: 16134, cpu: -1, group_fd: -1, flags: FD_CLOEXEC) = -1 EINVAL Invalid argument 1034.670 (0.008 ms):

[PATCH 3/7] perf evsel: Display 0x for hex values when printing the attribute

2015-06-11 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Need to display '0x' prefix for hex values otherwise it is not obvious they are hex. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Link: http://lkml.kernel.org/r/1434027064-7554-1-git-send-email-adrian.hun...@intel.com Signed-off-by: Arnaldo Carvalho de Melo ---

[PATCH 5/7] perf tools: Fix build failure on 32-bit arch

2015-06-11 Thread Arnaldo Carvalho de Melo
From: He Kuang Failed in 32bit arch build like this: CC /opt/h00206996/output/perf/arm32/builtin-record.o util/session.c: In function ‘perf_session__warn_about_errors’: util/session.c:1304:9: error: format ‘%lu’ expects argument of type ‘long unsigned int’,

[PATCH v3 2/4] rtc/lib: Introduce rtc_tm_sub() helper function

2015-06-11 Thread Xunlei Pang
From: Xunlei Pang There're many sites need comparing the two rtc_time variants for many rtc drivers, especially in the instances of rtc_class_ops::set_alarm(). So add this common helper function to make things easy. Suggested-by: Arnd Bergmann Signed-off-by: Xunlei Pang --- v2->v3: Respin

[PATCH] extcon: Redefine the unique id of supported external connectors without 'enum extcon' type

2015-06-11 Thread Chanwoo Choi
This patch just redefine the unique id of supported external connectors without 'enum extcon' type. Because unique id would be used on devictree file(*.dts) to indicate the specific external connectors like key number of input framework. So, I have the plan to move this definitions to following

[PATCH v3 3/4] drivers/rtc/isl1208: Replace deprecated rtc_tm_to_time()

2015-06-11 Thread Xunlei Pang
From: Xunlei Pang isl1208_i2c_set_alarm() uses deprecated rtc_tm_to_time(), which will overflow in year 2106 on 32-bit machines. This patch solves this by: - Replacing rtc_tm_to_time() with rtc_tm_sub() Cc: Herbert Valerio Riedel Signed-off-by: Xunlei Pang --- v2->v3: Rename

  1   2   3   4   5   6   7   8   9   10   >