Re: [RFC PATCH 07/11] IB/Verbs: Use management helper has_mcast() and, cap_mcast() for mcast-check

2015-03-30 Thread Jason Gunthorpe
On Mon, Mar 30, 2015 at 10:30:36AM +0200, Michael Wang wrote: > Thus I also agreed check inside mcast_event_handler() is unnecessary, > maybe we can change that logical to WARN_ON(!cap_mcast()) ? Seems reasonable to me. Jason -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH v6 1/4] perf,record: Add clockid parameter

2015-03-30 Thread Stephane Eranian
On Mon, Mar 30, 2015 at 3:24 PM, David Ahern wrote: > On 3/30/15 4:19 PM, Stephane Eranian wrote: >> >> @@ -761,6 +762,12 @@ void perf_evsel__config(struct perf_evsel *evsel, >> struct record_opts *opts) >> attr->disabled = 0; >> attr->enable_on_exec = 0; >>

Re: [PATCH v6 1/4] perf,record: Add clockid parameter

2015-03-30 Thread David Ahern
On 3/30/15 4:19 PM, Stephane Eranian wrote: @@ -761,6 +762,12 @@ void perf_evsel__config(struct perf_evsel *evsel, struct record_opts *opts) attr->disabled = 0; attr->enable_on_exec = 0; } + + if (opts->clockid >= 0) { +

[PATCH v6 1/4] perf,record: Add clockid parameter

2015-03-30 Thread Stephane Eranian
From: Peter Zijlstra Teach perf-record about the new perf_event_attr:{use_+clockid, clockid} fields. Add a simple parameter to set the clock (if any) to be used for the events to be recorded into the dat file. Incorporated improvements suggested by from David Ahern on LKML. Signed-off-by:

[PATCH v6 3/4] perf inject: add jitdump mmap injection support

2015-03-30 Thread Stephane Eranian
This patch adds a --jit option to perf inject. This options injects MMAP records into the perf.data file to cover the jitted code mmaps. It also emits ELF images for each function in the jidump file. Those images are created where the jitdump file is. The MMAP records point to that location as

[PATCH v6 4/4] perf tools: add JVMTI agent library

2015-03-30 Thread Stephane Eranian
This is a standalone JVMTI library to help profile Java jitted code with perf record/perf report. The library is not installed or compiled automatically by perf Makefile. It is not used directly by perf. It is arch agnostic and has been tested on X86 and ARM. It needs to be used with a Java

[PATCH v6 2/4] perf tools: add Java demangling support

2015-03-30 Thread Stephane Eranian
Add Java function descriptor demangling support. Something bfd cannot do. Use the JAVA_DEMANGLE_NORET flag to avoid decoding the return type of functions. Signed-off-by: Stephane Eranian --- tools/perf/util/Build | 1 + tools/perf/util/demangle-java.c | 199

[PATCH v6 0/4] perf: add support for profiling jitted code

2015-03-30 Thread Stephane Eranian
This patch series extends perf record/report/annotate to enable profiling of jitted (just-in-time compiled) code. The current perf tool provides very limited support for profiling jitted code for some runtime environments. But the support is experimental and cannot be used in complex environments.

Re: [PATCH] leds-gpio: Fix error handling and memory leak

2015-03-30 Thread Bryan Wu
On Thu, Mar 26, 2015 at 8:08 PM, Corey Minyard wrote: > On 03/26/2015 08:20 PM, Bryan Wu wrote: >> On Mon, Mar 9, 2015 at 5:43 PM, wrote: >>> From: Corey Minyard >>> >>> The leds-gpio driver would not clean up properly if it failed in some >>> places, and it wasn't freeing its private data.

Re: [PATCH v2 2/2] spi: fsl-dspi: Add ~50ns delay between cs and sck

2015-03-30 Thread Stefan Agner
Hi Aaron, Thanks for the fixes! Some comments below: On 2015-03-30 19:49, Aaron Brice wrote: > Add delay between chip select and clock signals, before clock starts and > after clock stops. This 50ns are specifc to the SPI slave at hand (SRAM) is this correct? If yes, this would probably need

[PATCH 3/3] Input: synaptics - allocate 3 slots to keep stability in image sensors

2015-03-30 Thread Benjamin Tissoires
When slowly dropping 1, 2 and then 3 fingers on an image sensor touchpad, we can see that the first finger gets reassigned a new slot while it did not move. This is due to the kernel tracking algorithm which can not assign correctly the 3 touches, being out of slots. Declaring that we support 3

[PATCH 1/3] Input: mt - prevent balanced slot assignment to assign twice the slot

2015-03-30 Thread Benjamin Tissoires
If two touches are under the dmax distance, it looks like they can now be assigned to the same slot. Add a band aid to prevent such situation and be able to use the balanced slot assignment. Signed-off-by: Benjamin Tissoires --- drivers/input/input-mt.c | 7 ++- 1 file changed, 6

[PATCH 2/3] Revert "Revert "Input: synaptics - use dmax in input_mt_assign_slots""

2015-03-30 Thread Benjamin Tissoires
This reverts commit 09d042a2eb90 ("Revert "Input: synaptics - use dmax in input_mt_assign_slots"") Now that balanced slots assignments seem to be fixed, let's reenable the use in synaptics.c and wait for users to complain if there are still problems. Signed-off-by: Benjamin Tissoires ---

[PATCH 0/3] Balanced slots, attempt #2

2015-03-30 Thread Benjamin Tissoires
Hi, So, it occurs that the balanced slots assignment introduced in v4.0 had some troubles and the Synaptics part was reverted. I tried to spend some time today to figure out a solution, and the only way I can get something from it is to add a band aid in input_mt_set_slots(). It should not be

Re: [PATCH] Document interaction between compaction and the unevictable LRU

2015-03-30 Thread Andrew Morton
On Mon, 30 Mar 2015 14:31:14 -0400 Eric B Munson wrote: > The memory compaction code uses the migration code to do most of the > work in compaction. However, the compaction code interacts with the > unevictable LRU differently than migration code and this difference > should be noted in the

Re: [PATCH 0/3] Handle LEDs with the same name

2015-03-30 Thread Bryan Wu
On Mon, Mar 30, 2015 at 10:45 AM, Ricardo Ribalda Delgado wrote: > This is a rework of the original patch + 3 fixup patches from me. > Contains a lot of feedback from Geert Uytterhoeven > Thanks! > > Ricardo Ribalda Delgado (1): > leds/led-class: Handle LEDs with the same name > > Sakari Ailus

[V8 PATCH 2/3] ACPI / scan: Add support for ACPI _CLS device matching

2015-03-30 Thread Suravee Suthikulpanit
Device drivers typically use ACPI _HIDs/_CIDs listed in struct device_driver acpi_match_table to match devices. However, for generic drivers, we do not want to list _HID for all supported devices. Also, certain classes of devices do not have _CID (e.g. SATA, USB). Instead, we can leverage ACPI

[PATCH v4 07/10] eeprom: qfprom: Add Qualcomm QFPROM support.

2015-03-30 Thread Srinivas Kandagatla
This patch adds QFPROM support driver which is used by other drivers like thermal sensor and cpufreq. On MSM parts there are some efuses (called qfprom) these fuses store things like calibration data, speed bins.. etc. Drivers like cpufreq, thermal sensors would read out this data for configuring

[PATCH v4 10/10] eeprom: Add to MAINTAINERS for eeprom framework

2015-03-30 Thread Srinivas Kandagatla
This patch adds MAINTAINERS to eeprom framework. Signed-off-by: Srinivas Kandagatla --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 358eb01..7094bb0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3721,6 +3721,15 @@ T: git

[PATCH v4 09/10] eeprom: sunxi: Move the SID driver to the eeprom framework

2015-03-30 Thread Srinivas Kandagatla
From: Maxime Ripard Now that we have the EEPROM framework, we can consolidate the common driver code. Move the driver to the framework, and hopefully, it will fix the sysfs file creation race. Signed-off-by: Maxime Ripard [srinivas.kandagatla: Moved to regmap based EEPROM framework]

[PATCH v4 06/10] eeprom: Add simple eeprom-mmio consumer helper functions.

2015-03-30 Thread Srinivas Kandagatla
This patch adds probe and remove helper functions for eeproms which are mmio based, With these helper function new eeprom consumer drivers need very little code add its driver. This code is currently used for qfprom and sunxi-sid eeprom consumer drivers. Signed-off-by: Srinivas Kandagatla ---

[PATCH v4 08/10] eeprom: qfprom: Add bindings for qfprom

2015-03-30 Thread Srinivas Kandagatla
This patch adds bindings for qfprom found in QCOM SOCs. QFPROM driver is based on simple eeprom framework. Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/eeprom/qfprom.txt | 34 ++ 1 file changed, 34 insertions(+) create mode 100644

Re: [PATCH] mm/mmap.c: use while instead of if+goto

2015-03-30 Thread Andrew Morton
On Mon, 30 Mar 2015 23:54:13 +0300 "Kirill A. Shutemov" wrote: > On Mon, Mar 30, 2015 at 09:40:35PM +0200, Rasmus Villemoes wrote: > > The creators of the C language gave us the while keyword. Let's use > > that instead of synthesizing it from if+goto. > > > > Made possible by 6597d783397a

[PATCH v4 05/10] eeprom: Add bindings for simple eeprom framework

2015-03-30 Thread Srinivas Kandagatla
This patch adds bindings for simple eeprom framework which allows eeprom consumers to talk to eeprom providers to get access to eeprom cell data. Signed-off-by: Maxime Ripard [Maxime Ripard: intial version of eeprom framework] Signed-off-by: Srinivas Kandagatla ---

[PATCH v4 03/10] eeprom: Add a simple EEPROM framework for eeprom providers

2015-03-30 Thread Srinivas Kandagatla
This patch adds just providers part of the framework just to enable easy review. Up until now, EEPROM drivers were stored in drivers/misc, where they all had to duplicate pretty much the same code to register a sysfs file, allow in-kernel users to access the content of the devices they were

[PATCH v4 04/10] eeprom: Add a simple EEPROM framework for eeprom consumers

2015-03-30 Thread Srinivas Kandagatla
This patch adds just consumers part of the framework just to enable easy review. Up until now, EEPROM drivers were stored in drivers/misc, where they all had to duplicate pretty much the same code to register a sysfs file, allow in-kernel users to access the content of the devices they were

[V8 PATCH 3/3] ata: ahci_platform: Add ACPI _CLS matching

2015-03-30 Thread Suravee Suthikulpanit
This patch adds ACPI supports for AHCI platform driver, which uses _CLS method to match the device. The following is an example of ASL structure in DSDT for a SATA controller, which contains _CLS package to be matched by the ahci_platform driver: Device (AHC0) // AHCI Controller {

[V8 PATCH 0/3] Introduce ACPI support for ahci_platform driver

2015-03-30 Thread Suravee Suthikulpanit
This patch series introduce ACPI support for AHCI platform driver. Existing ACPI support for AHCI assumes the device controller is a PCI device. Since there is no ACPI _CID for generic AHCI controller, the driver could not use it for matching devices. Therefore, this patch introduces a mechanism

[PATCH v4 02/10] regmap: Introduce regmap_get_reg_stride.

2015-03-30 Thread Srinivas Kandagatla
This patch introduces regmap_get_reg_stride() function which would be used by the infrastructures like eeprom framework built on top of regmap. Mostly this function would be used for sanity checks on inputs within such infrastructure. Signed-off-by: Srinivas Kandagatla ---

[V8 PATCH 1/3] ACPICA: Add ACPI _CLS processing

2015-03-30 Thread Suravee Suthikulpanit
ACPI Device configuration often contain _CLS object to suppy PCI-defined class code for the device. This patch introduces logic to process the _CLS object. Acked-by: Mika Westerberg Reviewed-by: Hanjun Guo Signed-off-by: Suravee Suthikulpanit --- drivers/acpi/acpica/acutils.h | 3 ++

[PATCH v4 01/10] regmap: Introduce regmap_get_max_register.

2015-03-30 Thread Srinivas Kandagatla
This patch introduces regmap_get_max_register() function which would be used by the infrastructures like eeprom framework built on top of regmap. Signed-off-by: Srinivas Kandagatla --- drivers/base/regmap/regmap.c | 12 include/linux/regmap.h | 7 +++ 2 files changed, 19

[PATCH v4 00/10] Add simple EEPROM Framework via regmap.

2015-03-30 Thread Srinivas Kandagatla
Thankyou all for providing inputs and comments on previous versions of this patchset. Here is the v4 of the patchset addressing all the issues raised as part of previous versions review. This patchset adds a new simple EEPROM framework to kernel. Up until now, EEPROM drivers were stored in

Re: [PATCH V5 4/6] perf, x86: handle multiple records in PEBS buffer

2015-03-30 Thread Andi Kleen
> I just said I want a > coherent story about what and why we're doing this. What: is clear, isn't it? Use this capability which has been long designed into PEBS, but not used by perf. Why: The goal is to go to higher sampling rates with comparable or less overhead. Higher sampling rates improve

Re: [Linaro-acpi] [PATCH 1/2] ARM64 / ACPI: Ignore the return error value of acpi_map_gic_cpu_interface()

2015-03-30 Thread Al Stone
On 03/27/2015 06:14 AM, Hanjun Guo wrote: > MADT table scannig will stopped once it gets the errors > returned by the handler, which is acpi_map_gic_cpu_interface() > in for ARM64, so Ignore the return error value to search for > all enabled CPUs for SMP init. I think the comment should say

[PATCH v2 4/4] dt: paz00: define nvec as child of i2c bus

2015-03-30 Thread Andrey Danin
NVEC driver was reimplemented to use tegra i2c. Use common i2c bindings for NVEC node. Signed-off-by: Andrey Danin --- Changes for v2: - swap reg and request-gpios properties - use nvec-slave instead of nvec to keep ABI compatibility - place doc in separate patch ---

RE: [PATCH 19/86] edac/e7xxx: use uapi/linux/pci_ids.h directly

2015-03-30 Thread Gross, Mark
ack > -Original Message- > From: Michael S. Tsirkin [mailto:m...@redhat.com] > Sent: Sunday, March 29, 2015 6:39 AM > To: linux-kernel@vger.kernel.org > Cc: Gross, Mark; Doug Thompson; Borislav Petkov; Mauro Carvalho Chehab; > linux-e...@vger.kernel.org > Subject: [PATCH 19/86]

[PATCH] mmc: sdhci-tegra: convert to use GPIO descriptors

2015-03-30 Thread Mylene JOSSERAND
Modify the driver to handle GPIOs using the descriptor API. Signed-off-by: Mylene JOSSERAND --- drivers/mmc/host/sdhci-tegra.c | 32 1 file changed, 8 insertions(+), 24 deletions(-) diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c

Re: [PATCH 03/17] x86, mpx: trace #BR exceptions

2015-03-30 Thread Steven Rostedt
On Mon, 30 Mar 2015 14:33:30 -0700 Dave Hansen wrote: > On 03/30/2015 02:25 PM, Steven Rostedt wrote: > ... > >> > +#ifdef CONFIG_X86_INTEL_MPX I missed this #ifdef > >> > + > >> > +TRACE_EVENT(bounds_exception_mpx, > ... > >> > +TP_printk("bndcfgu:0x%llx bndstatus:0x%llx", > >> > +

Re: [PATCH] ftracetest: Cope properly with stack tracer not being enabled

2015-03-30 Thread Steven Rostedt
On Mon, 30 Mar 2015 16:21:40 +1100 Michael Ellerman wrote: > If the stack tracer (CONFIG_STACK_TRACER) is disabled, the > fgraph-filter-stack test blows chunks: > > [8] ftrace - function graph filters with stack tracer [FAIL] > + reset_tracer > + echo nop > ./ftracetest: 19: >

Re: [PATCH v7 0/5] vfs: Non-blockling buffered fs read (page cache only)

2015-03-30 Thread Andrew Morton
On Mon, 30 Mar 2015 13:49:37 -0700 Jeremy Allison wrote: > > This implies that the samba main thread also has to avoid any memory > > allocations both direct and within syscall and pagefault - those will > > occasionally exhibit similar worse-case latency. Is this done now? > > We don't do

Re: [PATCH 03/17] x86, mpx: trace #BR exceptions

2015-03-30 Thread Dave Hansen
On 03/30/2015 02:25 PM, Steven Rostedt wrote: ... >> > +#ifdef CONFIG_X86_INTEL_MPX >> > + >> > +TRACE_EVENT(bounds_exception_mpx, ... >> > + TP_printk("bndcfgu:0x%llx bndstatus:0x%llx", >> > + __entry->bndcfgu, >> > + __entry->bndstatus) >> > +); >> > + >> > +#else >> > + >> >

Re: [PATCH 06/17] x86, mpx: trace attempts to find bounds tables

2015-03-30 Thread Steven Rostedt
On Fri, Mar 27, 2015 at 02:53:03PM -0700, Dave Hansen wrote: > b/arch/x86/include/asm/trace/mpx.h | 22 ++ > b/arch/x86/mm/mpx.c|1 + > 2 files changed, 23 insertions(+) > > diff -puN arch/x86/include/asm/trace/mpx.h~mpx-trace_unmap_search >

Re: [PATCH 04/17] x86, mpx: trace entry to bounds exception paths

2015-03-30 Thread Steven Rostedt
On Fri, Mar 27, 2015 at 02:53:00PM -0700, Dave Hansen wrote: > diff -puN arch/x86/include/asm/trace/mpx.h~x86-mpx-trace-1 > arch/x86/include/asm/trace/mpx.h > --- a/arch/x86/include/asm/trace/mpx.h~x86-mpx-trace-12015-03-27 > 14:35:05.164779793 -0700 > +++

Re: [PATCH 03/17] x86, mpx: trace #BR exceptions

2015-03-30 Thread Steven Rostedt
On Fri, Mar 27, 2015 at 02:52:59PM -0700, Dave Hansen wrote: > > --- /dev/null 2014-10-10 16:10:57.316716958 -0700 > +++ b/arch/x86/include/asm/trace/mpx.h2015-03-27 14:35:04.735760444 > -0700 > @@ -0,0 +1,48 @@ > +#undef TRACE_SYSTEM > +#define TRACE_SYSTEM mpx > + > +#if

Re: [PATCH 7/9 net-next] sunrpc: replace if/BUG by BUG_ON

2015-03-30 Thread J. Bruce Fields
Huh, I thought this wasn't recommended: http://lkml.kernel.org/r/20040828125816.206ef7fa.a...@osdl.org "I'd prefer that we not move code which has side-effects into BUG_ONs" --b. On Mon, Mar 30, 2015 at 11:13:15PM +0200, Fabian Frederick wrote: > Signed-off-by: Fabian

Re: [PATCH V5 4/6] perf, x86: handle multiple records in PEBS buffer

2015-03-30 Thread Peter Zijlstra
On Mon, Mar 30, 2015 at 10:11:16PM +0200, Andi Kleen wrote: > > Fair enough. > > For now we can simply only allow multi pebs if only a single > PEBS event is active (non PEBS events don't matter, as we > can just ignore those) > > This would be always on Atom, which only has a single PEBS >

Re: [PATCH 3/4] mm: move lazy free pages to inactive list

2015-03-30 Thread Andrew Morton
On Mon, 30 Mar 2015 14:35:02 +0900 Minchan Kim wrote: > --- a/mm/swap.c > +++ b/mm/swap.c > @@ -866,6 +866,13 @@ void deactivate_file_page(struct page *page) > } > } > > +/** > + * deactivate_page - deactivate a page > + * @page: page to deactivate > + * > + * This function moves @page

[PATCH 1/9 net-next] ipv4: replace if/BUG by BUG_ON

2015-03-30 Thread Fabian Frederick
Signed-off-by: Fabian Frederick --- net/ipv4/devinet.c | 3 +-- net/ipv4/esp4.c | 3 +-- net/ipv4/icmp.c | 3 +-- net/ipv4/ip_output.c | 4 ++-- net/ipv4/ping.c | 3 +-- net/ipv4/tcp_input.c | 8 net/ipv4/tcp_minisocks.c | 4 ++--

[PATCH 3/9 net-next] af_key: replace if/BUG by BUG_ON

2015-03-30 Thread Fabian Frederick
Signed-off-by: Fabian Frederick --- net/key/af_key.c | 25 - 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/net/key/af_key.c b/net/key/af_key.c index 9255fd9..c77dcc9 100644 --- a/net/key/af_key.c +++ b/net/key/af_key.c @@ -889,8 +889,7 @@ static struct

Re: [PATCH 4/4] mm: make every pte dirty on do_swap_page

2015-03-30 Thread Cyrill Gorcunov
On Mon, Mar 30, 2015 at 05:59:15PM +0900, Minchan Kim wrote: > Hi Cyrill, > > On Mon, Mar 30, 2015 at 11:51:12AM +0300, Cyrill Gorcunov wrote: > > On Mon, Mar 30, 2015 at 02:22:50PM +0900, Minchan Kim wrote: > > > 2nd description trial. > > ... > > Hi Minchan, could you please point for which

[PATCH 9/9 net-next] netfilter: replace if/BUG by BUG_ON

2015-03-30 Thread Fabian Frederick
Signed-off-by: Fabian Frederick --- net/netfilter/nfnetlink_log.c | 3 +-- net/netfilter/xt_u32.c| 8 +++- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c index 957b83a..409f5fb 100644 ---

Re: [PATCH] ftracetest: Do not use usleep

2015-03-30 Thread Steven Rostedt
On Thu, 26 Mar 2015 09:32:23 +0900 Namhyung Kim wrote: > The usleep is only provided on distros from Redhat so running ftracetest > on other distro resulted in failures due to the missing usleep. > > The reason of using [u]sleep in the test was to generate (scheduler) > events. But as we use

RE: [PATCH net-next V3 06/23] ptp: bnx2x: convert to the 64 bit get/set time methods.

2015-03-30 Thread Sony Chacko
> From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- > ow...@vger.kernel.org] On Behalf Of Richard Cochran > Sent: Sunday, March 29, 2015 2:12 PM > To: netdev > Cc: linux-kernel; Amir Vadai; Ariel Elior; Arnd Bergmann; Baolin > Wang; Ben Hutchings; Bruce Allan; Carolyn Wyborny; Chris >

[PATCH 7/9 net-next] sunrpc: replace if/BUG by BUG_ON

2015-03-30 Thread Fabian Frederick
Signed-off-by: Fabian Frederick --- net/sunrpc/auth_gss/svcauth_gss.c | 9 +++-- net/sunrpc/svc_xprt.c | 3 +-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/net/sunrpc/auth_gss/svcauth_gss.c b/net/sunrpc/auth_gss/svcauth_gss.c index 1095be9..09f8a1c6 100644 ---

[PATCH 8/9 net-next] rxrpc: replace if/BUG by BUG_ON

2015-03-30 Thread Fabian Frederick
Signed-off-by: Fabian Frederick --- net/rxrpc/ar-accept.c | 6 ++ net/rxrpc/ar-ack.c | 6 ++ net/rxrpc/ar-call.c | 3 +-- net/rxrpc/ar-input.c| 6 ++ net/rxrpc/ar-internal.h | 3 +-- net/rxrpc/ar-key.c | 3 +-- net/rxrpc/ar-recvmsg.c | 16 +---

[PATCH 6/9 net-next] af_packet: replace if/BUG by BUG_ON

2015-03-30 Thread Fabian Frederick
Signed-off-by: Fabian Frederick --- net/packet/af_packet.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index 5102c3c..fb94c39 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c @@ -547,8 +547,7 @@ static void

[PATCH 5/9 net-next] xfrm: replace if/BUG by BUG_ON

2015-03-30 Thread Fabian Frederick
Signed-off-by: Fabian Frederick --- net/xfrm/xfrm_policy.c | 5 ++--- net/xfrm/xfrm_user.c | 27 +-- 2 files changed, 11 insertions(+), 21 deletions(-) diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index 638af06..15de248 100644 ---

[PATCH 2/9 net-next] net: core: replace if/BUG by BUG_ON

2015-03-30 Thread Fabian Frederick
Signed-off-by: Fabian Frederick --- net/core/rtnetlink.c | 3 +-- net/core/skbuff.c| 15 ++- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index b96ac21..ed496d3 100644 --- a/net/core/rtnetlink.c +++

[PATCH 4/9 net-next] ipv6: replace if/BUG by BUG_ON

2015-03-30 Thread Fabian Frederick
Signed-off-by: Fabian Frederick --- net/ipv6/addrconf.c | 3 +-- net/ipv6/esp6.c | 3 +-- net/ipv6/netfilter/nf_conntrack_reasm.c | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index

[PATCH v2 1/4] i2c: tegra: implement slave mode

2015-03-30 Thread Andrey Danin
Initialization code is based on NVEC driver. There is a HW bug in AP20 that was also mentioned in kernel sources for Toshiba AC100. Signed-off-by: Andrey Danin --- Changes for v2: - remove hack from tegra_i2c_clock_disable - replace slave status helper functions with local variables - add

[PATCH 1/1 linux-next] fs/coda/psdev.c: return is not a function

2015-03-30 Thread Fabian Frederick
remove parentheses in returns. Signed-off-by: Fabian Frederick --- fs/coda/psdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/coda/psdev.c b/fs/coda/psdev.c index 8226291..8914ec8 100644 --- a/fs/coda/psdev.c +++ b/fs/coda/psdev.c @@ -193,7 +193,7 @@ static

Re: [PATCH] mm/mmap.c: use while instead of if+goto

2015-03-30 Thread Kirill A. Shutemov
On Mon, Mar 30, 2015 at 09:40:35PM +0200, Rasmus Villemoes wrote: > The creators of the C language gave us the while keyword. Let's use > that instead of synthesizing it from if+goto. > > Made possible by 6597d783397a ("mm/mmap.c: replace find_vma_prepare() > with clearer find_vma_links()"). > >

Re: [PATCH] block: fix blk_stack_limits() regression due to lcm() change

2015-03-30 Thread Martin K. Petersen
> "Mike" == Mike Snitzer writes: Mike> Linux 3.19 commit 69c953c ("lib/lcm.c: lcm(n,0)=lcm(0,n) is 0, not Mike> n") caused blk_stack_limits() to not properly stack queue_limits Mike> for stacked devices (e.g. DM). Mike> Fix this regression by establishing lcm_not_zero() and switching Mike>

Re: [PATCH v7 0/5] vfs: Non-blockling buffered fs read (page cache only)

2015-03-30 Thread Jeremy Allison
On Mon, Mar 30, 2015 at 01:37:58PM -0700, Andrew Morton wrote: > On Mon, 30 Mar 2015 13:32:27 -0700 Jeremy Allison wrote: > > > On Mon, Mar 30, 2015 at 01:26:25PM -0700, Andrew Morton wrote: > > > > > > cons: > > > > > > d) fincore() is more expensive > > > > > > e) fincore() will very

Re: [RFC 1/1 linux-next] checkpatch: don't ask for asm/file.h to linux/file.h unconditionally

2015-03-30 Thread Joe Perches
On Mon, 2015-03-30 at 22:36 +0200, Fabian Frederick wrote: > Currently checkpatch warns when asm/file.h is included and linux/file.h > exists. That conversion can be made when linux/file.h includes asm/file.h > which is not always the case.(See signal.h) [] > diff --git a/scripts/checkpatch.pl

Re: [PATCH] ftracetest: Do not use usleep

2015-03-30 Thread Shuah Khan
On 03/25/2015 06:32 PM, Namhyung Kim wrote: > The usleep is only provided on distros from Redhat so running ftracetest > on other distro resulted in failures due to the missing usleep. > > The reason of using [u]sleep in the test was to generate (scheduler) > events. But as we use 'cat trace |

[PATCH] x86: add ASRock Q1900DC-ITX mainboard reboot quirk

2015-03-30 Thread Stefan Lippers-Hollmann
The ASRock Q1900DC-ITX mainboard (Baytrail-D) hangs randomly in both BIOS and UEFI mode while rebooting unless reboot=pci is used. Add a quirk to reboot via the pci method. Signed-off-by: Stefan Lippers-Hollmann Cc: --- The problem is very intermittent and hard to debug, it might succeed

[PATCH 3/3 linux-next] befs: replace typedef befs_inode_info by structure

2015-03-30 Thread Fabian Frederick
See Documentation/CodingStyle Cc: Andrew Morton Signed-off-by: Fabian Frederick --- fs/befs/befs.h | 7 +++ fs/befs/linuxvfs.c | 7 --- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/fs/befs/befs.h b/fs/befs/befs.h index 11461ab..1fead8d 100644 --- a/fs/befs/befs.h

[PATCH 2/3 linux-next] befs: replace typedef befs_sb_info by structure

2015-03-30 Thread Fabian Frederick
See Documenation/CodingStyle Cc: Andrew Morton Signed-off-by: Fabian Frederick --- fs/befs/befs.h | 9 - fs/befs/datastream.c | 4 ++-- fs/befs/io.c | 2 +- fs/befs/linuxvfs.c | 5 ++--- fs/befs/super.c | 4 ++-- 5 files changed, 11 insertions(+), 13 deletions(-)

[PATCH 1/3 linux-next] befs: replace typedef befs_mount_options by structure

2015-03-30 Thread Fabian Frederick
See Documentation/CodingStyle Cc: Andrew Morton Signed-off-by: Fabian Frederick --- fs/befs/befs.h | 6 +++--- fs/befs/linuxvfs.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/befs/befs.h b/fs/befs/befs.h index 3a7813a..d4751af 100644 --- a/fs/befs/befs.h +++

Re: [PATCH 5/5 linux-next] tpm_ibmvtpm: remove unneccessary message level.

2015-03-30 Thread Peter Hüwe
Am Montag, 30. März 2015, 22:06:08 schrieb Fabian Frederick: > KERN_ERR is implicitely declared in pr_err() > > Signed-off-by: Fabian Frederick Good catch. Acked-by: Peter Huewe If nobody else pulls this one through his tree, I'll apply it probably for 4._2_ (so it might take a while) Peter

[PATCH] tile: nohz: warn if nohz_full uses hypervisor shared cores

2015-03-30 Thread cmetcalf
From: Chris Metcalf The "hypervisor shared" cores are ones that the Tilera hypervisor uses to receive interrupts to manage hypervisor-owned devices. It's a bad idea to try to use those cores with nohz_full, since they will get interrupted unpredictably -- and invisibly to Linux tracing tools,

Re: [PATCH v7 0/5] vfs: Non-blockling buffered fs read (page cache only)

2015-03-30 Thread Andrew Morton
On Mon, 30 Mar 2015 13:32:27 -0700 Jeremy Allison wrote: > On Mon, Mar 30, 2015 at 01:26:25PM -0700, Andrew Morton wrote: > > > > cons: > > > > d) fincore() is more expensive > > > > e) fincore() will very occasionally block > > The above is the killer for Samba. If fincore > returns true

[RFC 1/1 linux-next] checkpatch: don't ask for asm/file.h to linux/file.h unconditionally

2015-03-30 Thread Fabian Frederick
Currently checkpatch warns when asm/file.h is included and linux/file.h exists. That conversion can be made when linux/file.h includes asm/file.h which is not always the case.(See signal.h) Signed-off-by: Fabian Frederick --- scripts/checkpatch.pl | 7 +-- 1 file changed, 5 insertions(+), 2

[PATCH v3 2/2] perf tool: Fix ppid for synthesized fork events

2015-03-30 Thread David Ahern
363b785f38 added synthesized fork events and set a thread's parent id to itself. Since we are already processing /proc//status the ppid can be determined properly. Make it so. Signed-off-by: David Ahern Cc: Don Zickus Cc: Joe Mario Cc: Jiri Olsa --- v3 - removed isspace and newline checks;

[PATCH v2 1/2] perf tool: Refactor comm/tgid lookup

2015-03-30 Thread David Ahern
Rather than parsing /proc/pid/status file one line at a time, read it into a buffer in one shot and search for all strings in one pass. tgid conversion also simplified -- removing the isspace walk. As noted by Arnaldo those are not needed for atoi == strtol calls. Signed-off-by: David Ahern Cc:

Re: [PATCH v2] dma: vdma: Fix compilation warnings

2015-03-30 Thread Stephen Rothwell
Hi Vinod, On Mon, 30 Mar 2015 22:48:46 +0530 Vinod Koul wrote: > > On Mon, Mar 30, 2015 at 06:48:29PM +0530, Kedareswara rao Appana wrote: > > This patch fixes the following compilation warnings. > > In file included from drivers/dma/xilinx/xilinx_vdma.c:26:0: > > include/linux/dmapool.h:18:4:

Re: [patch][resend] MAP_HUGETLB munmap fails with size not 2MB aligned

2015-03-30 Thread Hugh Dickins
On Mon, 30 Mar 2015, KOSAKI Motohiro wrote: > On Thu, Mar 26, 2015 at 10:08 AM, Eric B Munson wrote: > > On 03/26/2015 07:56 AM, Davide Libenzi wrote: > >> On Wed, 25 Mar 2015, David Rientjes wrote: > >> > >>> I looked at this thread at http://marc.info/?t=14139250881 > >>> since I didn't

Re: [PATCH v7 0/5] vfs: Non-blockling buffered fs read (page cache only)

2015-03-30 Thread Jeremy Allison
On Mon, Mar 30, 2015 at 01:26:25PM -0700, Andrew Morton wrote: > > cons: > > d) fincore() is more expensive > > e) fincore() will very occasionally block The above is the killer for Samba. If fincore returns true but when we schedule the pread we block, we're hosed. Once we block, we're done

Re: [PATCH net-next] ethernet: Use bool function returns of true/false instead of 1/0

2015-03-30 Thread Jeff Kirsher
On Sun, 2015-03-29 at 18:25 -0700, Joe Perches wrote: > Use bool constants as the return values instead of 1 and 0. > > Signed-off-by: Joe Perches Acked-by: Jeff Kirsher For the ixgbe changes... > --- > > To be honest I'd might rather get bunches of these, there has to be > a ton > > of them,

[RFC 1/1 linux-next] Btrfs: avoid using NULL compressed_pages in insert_inline_extent()

2015-03-30 Thread Fabian Frederick
insert_inline_extent() checked for compressed_pages to be NULL then it accessed it under compress_type != BTRFS_COMPRESS_NONE. This patch adds BUG() when compress_size != 0, compress_type != BTRFS_COMPRESS_NONE and compresses_pages == 0. Signed-off-by: Fabian Frederick --- fs/btrfs/inode.c | 8

Re: [Qemu-devel] [PATCH v4 12/15] Add optional parameters to QMP command query-cpu-definitions

2015-03-30 Thread Eric Blake
On 03/30/2015 08:28 AM, Michael Mueller wrote: > The patch adds optional parameters to the QMP command query-cpu-definitions. > Thus the signature of routine arch_query_cpu_definitions needs to be changed > for the stub function and all target implementations: > > target-arm > target-i386 >

Re: mceusb: sysfs: cannot create duplicate filename '/class/rc/rc0' (race condition between multiple RC_CORE devices)

2015-03-30 Thread David Härdeman
On 2015-03-30 22:21, Stefan Lippers-Hollmann wrote: On 2015-03-30, David Härdeman wrote: On 2015-03-30 17:30, Stefan Lippers-Hollmann wrote: > This is a follow-up for: >http://lkml.kernel.org/r/<201412181916.18051.s@gmx.de> >http://lkml.kernel.org/r/<201412302211.40801.s@gmx.de>

Re: [PATCH v7 0/5] vfs: Non-blockling buffered fs read (page cache only)

2015-03-30 Thread Andrew Morton
On Mon, 30 Mar 2015 00:36:04 -0700 Christoph Hellwig wrote: > On Fri, Mar 27, 2015 at 08:58:54AM -0700, Jeremy Allison wrote: > > The problem with the above is that we can't tell the difference > > between pread2() returning a short read because the pages are not > > in cache, or because someone

Re: [patch 1/2] mm, doc: cleanup and clarify munmap behavior for hugetlb memory

2015-03-30 Thread Hugh Dickins
On Mon, 30 Mar 2015, Eric B Munson wrote: > On Sun, 29 Mar 2015, Hugh Dickins wrote: > > > > Eric, I apologize for bringing you in to the discussion, and then > > ignoring your input. I understand that you would like MAP_HUGETLB > > to behave more understandably. We can all agree that the

[PATCH 1/1 linux-next] Btrfs: use BTRFS_COMPRESS_NONE instead of 0

2015-03-30 Thread Fabian Frederick
cow_file_range_inline() was called with 0 instead of actual definition. Signed-off-by: Fabian Frederick --- fs/btrfs/inode.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 686331f..f626519 100644 --- a/fs/btrfs/inode.c +++

[PATCH 02/11] clocksource: sun5i: Switch to request_irq

2015-03-30 Thread Daniel Lezcano
From: Maxime Ripard The current code uses setup_irq, while it could perfectly use the much simpler request_irq. Switch to that. Signed-off-by: Maxime Ripard Signed-off-by: Daniel Lezcano --- drivers/clocksource/timer-sun5i.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-)

[PATCH 03/11] clocksource: sun5i: Use of_io_request_and_map

2015-03-30 Thread Daniel Lezcano
From: Maxime Ripard of_iomap doesn't do a request_mem_region on the memory area defined in the DT it maps. Switch to of_io_request_and_map to make sure we're the only users. Signed-off-by: Maxime Ripard Signed-off-by: Daniel Lezcano --- drivers/clocksource/timer-sun5i.c | 3 ++- 1 file

Re: [Qemu-devel] [PATCH v4 11/15] target-s390x: New QMP command query-cpu-model

2015-03-30 Thread Eric Blake
On 03/30/2015 02:17 PM, Eduardo Habkost wrote: > On Mon, Mar 30, 2015 at 04:28:24PM +0200, Michael Mueller wrote: >> This patch implements a new QMP request named 'query-cpu-model'. >> It returns the cpu model of cpu 0 and its backing accelerator. >> >> request: >> {"execute" : "query-cpu-model"

Re: mceusb: sysfs: cannot create duplicate filename '/class/rc/rc0' (race condition between multiple RC_CORE devices)

2015-03-30 Thread Stefan Lippers-Hollmann
Hi On 2015-03-30, David Härdeman wrote: > On 2015-03-30 17:30, Stefan Lippers-Hollmann wrote: > > Hi > > > > This is a follow-up for: > > http://lkml.kernel.org/r/<201412181916.18051.s@gmx.de> > > http://lkml.kernel.org/r/<201412302211.40801.s@gmx.de> > > I can't swear that it's

[PATCH 05/11] clocksource: sun5i: Refactor the current code

2015-03-30 Thread Daniel Lezcano
From: Maxime Ripard Refactor the code in order to remove the global variables and split the clock source and clock events registration in order to ease the addition of the clock notifiers needed to handle the parent clock rate changes. [dlezcano] : Fixed conflict with commit

[PATCH 10/11] clocksource: dw_apb_timer_of: Make IO endian agnostic

2015-03-30 Thread Daniel Lezcano
From: Ben Dooks The dw_apb_timer_of timer is using __raw_readl to access the timer register, which is causing issues when the system is running in big endian mode. Fix this by using readl_relaxed() which should account for the endian settings. This fixes issues where the time jumps around in

Re: [Qemu-devel] [PATCH v4 11/15] target-s390x: New QMP command query-cpu-model

2015-03-30 Thread Eric Blake
On 03/30/2015 08:28 AM, Michael Mueller wrote: > This patch implements a new QMP request named 'query-cpu-model'. > It returns the cpu model of cpu 0 and its backing accelerator. > > request: > {"execute" : "query-cpu-model" } > > answer: > {"return" : {"name": "2827-ga2", "accel": "kvm" }}

Re: [PATCH v4 11/15] target-s390x: New QMP command query-cpu-model

2015-03-30 Thread Eduardo Habkost
On Mon, Mar 30, 2015 at 04:28:24PM +0200, Michael Mueller wrote: > This patch implements a new QMP request named 'query-cpu-model'. > It returns the cpu model of cpu 0 and its backing accelerator. > > request: > {"execute" : "query-cpu-model" } > > answer: > {"return" : {"name": "2827-ga2",

[PATCH 08/11] clocksource: sun4i-timer: Only register a sched_clock on sun4i and sun5i

2015-03-30 Thread Daniel Lezcano
From: Hans de Goede sun6i and newer have an arm arch timer which is a better sched_clock source then the sun4i-timer, and sched_clock does not have priorities, so do not register the sun4i-timer sched_clock at all on sun6i and newer. Signed-off-by: Hans de Goede Signed-off-by: Daniel Lezcano

[PATCH 07/11] clocksource: at91: Make IO endian agnostic

2015-03-30 Thread Daniel Lezcano
From: Ben Dooks Fix the use of __raw IO accessor with the readl/writel_relaxed versions to allow the code to be used on a system running in big endian. Signed-off-by: Ben Dooks Cc: Daniel Lezcano Cc: Thomas Gleixner Cc: Linux Kernel Cc: Linux ARM Kernel Cc: Andrew Victor Cc: Nicolas Ferre

[PATCH 09/11] clocksource: tegra: Maintain CPU endianness

2015-03-30 Thread Daniel Lezcano
From: Dmitry Osipenko Support big-endian kernel by using endian-aware register access functions. Signed-off-by: Dmitry Osipenko Signed-off-by: Daniel Lezcano Acked-by: Thierry Reding --- drivers/clocksource/tegra20_timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 01/11] clocksource: arm_arch_timer: Rename arch_timer_probed to reflect behaviour

2015-03-30 Thread Daniel Lezcano
From: Laurent Pinchart The arch_timer_probed function returns whether the given time doesn't need to be probed. This can be the case when the timer has been probed already, but also when it has no corresponding enabled node in DT. Rename the function to arch_timer_need_probe and invert its

[PATCH 06/11] clocksource: sun5i: Add clock notifiers

2015-03-30 Thread Daniel Lezcano
From: Maxime Ripard The parent clock of the sun5i timer is the AHB clock, which rate might change because of other devices requirements. This is for example the case on the Allwinner A31, where the DMA controller needs a minimum rate higher than the default, that is enforced after the timer

Re: [PATCH v2 RESEND/RFC] timer: make deferrable cpu unbound timers really not bound to a cpu

2015-03-30 Thread Joonwoo Park
Hi Thomas, Please find patch v3 which makes only tick_do_timer_cpu to run deferral timer wheel to reduce cache bouncing and let me know what you think. Thanks, Joonwoo >From 0c91f82a0b43b247f1ed310212ef3aada7ccc9f7 Mon Sep 17 00:00:00 2001 From: Joonwoo Park Date: Thu, 11 Sep 2014 15:34:25

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