Re: 3.19.0 / kswap0 bug

2015-02-26 Thread Vlastimil Babka
On 02/21/2015 05:16 PM, Pavol Cupka wrote: > Hi list, > > I am encountering a bug on my desktop PC. Running gentoo-sources > (patches for gentoo) 3.19.0, gcc 4.8.4, glibc 2.19 Although there don't seem to be many gentoo patches on top, you should try reproducing this with vanilla 3.19 kernel firs

Re: [PATCH] pinctrl: at91: move lock/unlock_as_irq calls into request/release resources methods

2015-02-26 Thread Jean-Christophe PLAGNIOL-VILLARD
> On Feb 26, 2015, at 9:32 PM, Nicolas Ferre wrote: > > Le 08/02/2015 19:23, Boris Brezillon a écrit : >> The gpiochip_lock_as_irq call can fail and return an error, while the >> irq_startup is not expected to fail (returns an unsigned int which is not >> checked by irq core code). >> >> irq_re

Re: [PATCH 6/6] qlcnic_dcb.c : possible division by zero.

2015-02-26 Thread Sergei Shtylyov
Hello. On 02/26/2015 12:56 AM, Ameen Ali wrote: Whenever there is a division it is usually worthwhile to add some belt'n'braces code to ensure that cnt != 0, otherwise a machine signal can occur. Signed-off-by : Ameen Ali --- drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c | 2 +- 1 file

Re: [PATCH v2] coresight-stm: adding driver for CoreSight STM component

2015-02-26 Thread Mathieu Poirier
On 25 February 2015 at 22:53, Shawn Guo wrote: > On Wed, Feb 25, 2015 at 04:32:32PM -0700, Mathieu Poirier wrote: >> diff --git a/Documentation/ABI/testing/sysfs-bus-coresight-devices-stm >> b/Documentation/ABI/testing/sysfs-bus-coresight-devices-stm >> new file mode 100644 >> index .

Re: [PATCH 2/3 v3] x86: entry_64.S: always allocate complete "struct pt_regs"

2015-02-26 Thread Sabrina Dubroca
2015-02-26, 14:54:33 +0100, Denys Vlasenko wrote: > On Thu, Feb 26, 2015 at 1:11 PM, Denys Vlasenko > wrote: > > On Thu, Feb 26, 2015 at 10:55 AM, Denys Vlasenko > > wrote: > >> On Wed, Feb 25, 2015 at 10:59 PM, Andy Lutomirski > >> wrote: > >> In addition to my previous tests, I ran my home ma

Re: [PATCH v6 1/3] dmaengine: Add support for APM X-Gene SoC DMA engine driver

2015-02-26 Thread Ben Dooks
On 26/02/15 12:31, Rameshwar Sahu wrote: > Hi Vinod, > > > On Tue, Feb 24, 2015 at 6:23 PM, Rameshwar Prasad Sahu wrote: >> This patch implements the APM X-Gene SoC DMA engine driver. The APM X-Gene >> SoC DMA engine consists of 4 DMA channels for performing DMA operations. >> These DMA operatio

Re: [PATCH v2 1/1] drivers/bus: fsl-mc object allocator driver

2015-02-26 Thread Alexander Graf
On 24.02.15 23:50, J. German Rivera wrote: > The fsl-mc object allocator driver manages "allocatable" fsl-mc > objects such as DPBPs, DPMCPs and DPCONs. It provides services to I'd recommend to explain what these abbreviations mean. It's ridiculously hard to remember what they are about. So plea

Re: [PATCH v2 1/1] drivers/bus: fsl-mc object allocator driver

2015-02-26 Thread Alexander Graf
On 24.02.15 23:50, J. German Rivera wrote: > The fsl-mc object allocator driver manages "allocatable" fsl-mc > objects such as DPBPs, DPMCPs and DPCONs. It provides services to > other fsl-mc drivers to allocate/deallocate these types of objects. Oh sorry, what I forgot to mention in the other m

Re: [PATCH 0/3 v6] drivers/bus: Freescale Management Complex bus driver patch series

2015-02-26 Thread Alexander Graf
On 27.01.15 15:35, Stuart Yoder wrote: > Hi Arnd/Alex, > > German has posted an example driver for the fsl-mc bus in his RFC > "[RFC PATCH 1/1] drivers/bus: fsl-mc object allocator driver". > > In addition I have made available the skeleton for a driver for > one of the objects/devices (crypto)

[PATCH v6 1/6] Documentation: dts: Documentation entry to explain how to use PWM FAN as a cooling device

2015-02-26 Thread Lukasz Majewski
Explanation of several properties, which allow PWM fan working as a cooling device, have been embraced in this commit. Signed-off-by: Lukasz Majewski Acked-by: Eduardo Valentin --- Changes for v2: - Rename cooling-pwm-values to cooling-levels - Remove default-pulse-width property and stick to de

Re: [PATCH v3 3/3] of: support passing console options with stdout-path

2015-02-26 Thread Peter Hurley
Hi Andrew, On 02/26/2015 08:46 AM, Andrew Lunn wrote: > On Thu, Feb 26, 2015 at 06:55:22AM -0500, Peter Hurley wrote: >> On 11/27/2014 12:56 PM, Leif Lindholm wrote: >>> Support specifying console options (like with console=ttyXN,) >>> by appending them to the stdout-path property after a separati

[PATCH 2/8] zram: use idr instead of `zram_devices' array

2015-02-26 Thread Sergey Senozhatsky
This patch makes some preparations for dynamic device ADD/REMOVE functionality via /dev/zram-control interface. Remove `zram_devices' array and switch to id-to-pointer translation (idr). idr doesn't bloat zram struct with additional members, f.e. list_head, yet still provides ability to match the

[PATCH 0/8] introduce dynamic device creation/removal

2015-02-26 Thread Sergey Senozhatsky
Hello, this patchset introduces dynamic (on demand) zram device add-remove functionality via /dev/zram-control interface. Two ioctl commands are defined as of now (accessible in user-space via new zram.h header file): -- ZRAM_CTL_ADD add new device (generates device_id automatically or use

[PATCH 4/8] zram: add dynamic device add/remove functionality

2015-02-26 Thread Sergey Senozhatsky
Introduce /dev/zram-control interface which lets user-space to add a new zram device (ZRAM_CTL_ADD ioctl) or remove the existing one (ZRAM_CTL_REMOVE ioctl). This patch adds only two ioctl operations: add device and remove device. There is no support for `automatic' device_id generation in this pa

[PATCH 3/8] zram: factor out device reset from reset_store()

2015-02-26 Thread Sergey Senozhatsky
Device reset currently consists of two steps: a) holding ->bd_mutex we ensure that there are no device users (bdev->bd_openers) b) and internal part (executed under bdev->bd_mutex and partially under zram->init_lock) that resets the device - frees allocated memory and returns the device back to it

[PATCH 6/8] zram: allow automatic new zram device_id assignment

2015-02-26 Thread Sergey Senozhatsky
If no particular device_id was requested (passed -1 to zram_add()) during new zram device creation, generate one automatically and return it back. So, schematically, device creation can be done as: dev_id = ioctl ZRAM_CTL_ADD -1 # dev_id == 1 or error code init device zra

Re: [PATCH v7 3/3] drivers/bus: Device driver for FSL-MC DPRC devices

2015-02-26 Thread Alexander Graf
On 24.02.15 23:21, J. German Rivera wrote: > A DPRC (Data Path Resource Container) is an isolation device > that contains a set of DPAA networking devices to be > assigned to an isolation domain (e.g., a virtual machine). > > Signed-off-by: J. German Rivera > Signed-off-by: Stuart Yoder > ---

Re: [PATCH v6 6/6] hwmon: pwm-fan: Code for using PWM FAN as a cooling device

2015-02-26 Thread Guenter Roeck
On 02/26/2015 05:59 AM, Lukasz Majewski wrote: The PWM FAN device can now be used as a thermal cooling device. Necessary infrastructure has been added in this commit. Signed-off-by: Lukasz Majewski Acked-by: Eduardo Valentin --- Changes for v2: - Replace pwm_fan_cooling_states with pwm_fan_coo

Re: Trying to use 'perf probe' to debug perf itself

2015-02-26 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 26, 2015 at 01:57:42PM +0900, Masami Hiramatsu escreveu: > (2015/02/25 22:25), Arnaldo Carvalho de Melo wrote: > > Em Wed, Feb 25, 2015 at 11:53:16AM +0900, Masami Hiramatsu escreveu: > >> (2015/02/25 3:49), Arnaldo Carvalho de Melo wrote: > >> Hmm, strange. Could you tell me the versio

Re: [PATCH 2/4] mm, procfs: account for shmem swap in /proc/pid/smaps

2015-02-26 Thread Jerome Marchand
On 02/26/2015 02:51 PM, Vlastimil Babka wrote: > Currently, /proc/pid/smaps will always show "Swap: 0 kB" for shmem-backed > mappings, even if the mapped portion does contain pages that were swapped out. > This is because unlike private anonymous mappings, shmem does not change pte > to swap entry,

Re: [PATCH v6 6/6] hwmon: pwm-fan: Code for using PWM FAN as a cooling device

2015-02-26 Thread Lukasz Majewski
Hi Guenter, > On 02/26/2015 05:59 AM, Lukasz Majewski wrote: > > The PWM FAN device can now be used as a thermal cooling device. > > Necessary infrastructure has been added in this commit. > > > > Signed-off-by: Lukasz Majewski > > Acked-by: Eduardo Valentin > > --- > > Changes for v2: > > - Rep

Re: [PATCH v8 7/7] x86, mm: Add set_memory_wt() for WT

2015-02-26 Thread Toshi Kani
On Thu, 2015-02-26 at 12:30 +0100, Ingo Molnar wrote: > * Toshi Kani wrote: > > > On Wed, 2015-02-25 at 08:22 +0100, Ingo Molnar wrote: > > > * Toshi Kani wrote: > > > > > > > +int set_pages_array_wt(struct page **pages, int addrinarray) > > > > +{ > > > > + return _set_pages_array(pages,

Re: [GIT PULL] please pull file-locking related changes for v3.20

2015-02-26 Thread J. Bruce Fields
On Thu, Feb 26, 2015 at 11:00:46AM +, One Thousand Gnomes wrote: > On Tue, 17 Feb 2015 11:13:39 -0800 > Linus Torvalds wrote: > > > On Tue, Feb 17, 2015 at 11:08 AM, J. Bruce Fields > > wrote: > > > > > > I agree that it's weird, but I think it's what we're stuck with. > > > > And if by "w

[PATCH 8/8] ARM OMAP2+ GPMC: fix programming/showing reserved timing parameters

2015-02-26 Thread Robert ABEL
GPMC_CONFIG1_i parameters CLKACTIVATIONTIME and WAITMONITORINGTIME have reserved values. Raise an error if calculated timings try to program reserved values. GPMC_CONFIG1_i ATTACHEDDEVICEPAGELENGTH and DEVICESIZE were already checked when parsing the DT. Explicitly comment invalid values on gpmc_

Re: [PATCH v3 3/3] of: support passing console options with stdout-path

2015-02-26 Thread Andrew Lunn
> Sorry if I was unclear. My question was not _whether_ to fix this > for earlycon, but rather _how_. > > IOW, is the ':' character accepted as a path terminator for > 1. all nodes, so fix this in fdt_path_offset(); > 2. only chosen nodes; > 3. unique to stdout-path, so fix this in early_init_dt_s

[PATCH 7/8] ARM OMAP2+ GPMC: fix WAITMONITORINGTIME divider bug

2015-02-26 Thread Robert ABEL
The WAITMONITORINGTIME is expressed as a number of GPMC_CLK clock cycles, even though the access is defined as asynchronous, and no GPMC_CLK clock is provided to the external device. Still, GPMCFCLKDIVIDER is used as a divider for the GPMC clock, so it must be programmed to define the correct WAITM

[PATCH 1/8] ARM OMAP2+ GPMC: don't undef DEBUG

2015-02-26 Thread Robert ABEL
OMAP2+ GPMC driver undefines DEBUG, which makes it unnecessarily hard to turn DEBUG on. Remove the offending lines. Signed-off-by: Robert ABEL --- drivers/memory/omap-gpmc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/memory/omap-gpmc.c b/drivers/memory/omap-gpmc.c index 24696f5

Re: [PATCH] KVM: SVM: fix interrupt injection (apic->isr_count always 0)

2015-02-26 Thread Paolo Bonzini
On 25/02/2015 20:41, Radim Krčmář wrote: > 2015-02-25 17:00+0100, Borislav Petkov: >> Hi, >> >> commit in $Subject breaks my kvm guest on AMD host, causing it to do the >> following below. Mouse doesn't work anymore in the guest, network is >> gone too. >> >> Reverting it fixes the issue. > > Th

Re: [PATCH perf/core ] [BUGFIX] perf-probe: Fix get_real_path to free allocated memory in error path

2015-02-26 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 26, 2015 at 05:25:04PM +0900, Masami Hiramatsu escreveu: > Fix get_real_path to free allocated memory when comp_dir > is used for complementing path and getting an error. While reviewing this patch I noticed this is needed, ack? - Arnaldo diff --git a/tools/perf/util/probe-event.c

[PATCH 0/8] ARM OMAP2+ GPMC: fixes and bus children

2015-02-26 Thread Robert ABEL
These are the changes I proposed in three separate patchsets #([1], [2], [3]) rebased to 3.19 as well as new changes for little bugs I noticed while preparing this patchset. 1. DEBUG was undefined in source code --> remove offending lines 2. add capability to have busses as children of the GPMC an

[PATCH 5/8] ARM OMAP2+ GPMC: always program GPMCFCLKDIVIDER

2015-02-26 Thread Robert ABEL
The WAITMONITORINGTIME is expressed as a number of GPMC_CLK clock cycles, even though the access is defined as asynchronous, and no GPMC_CLK clock is provided to the external device. Still, GPMCFCLKDIVIDER is used as a divider for the GPMC clock, so it must be programmed to define the correct WAITM

[PATCH 6/8] ARM OMAP2+ GPMC: calculate GPMCFCLKDIVIDER based on WAITMONITORINGTIME

2015-02-26 Thread Robert ABEL
The WAITMONITORINGTIME is expressed as a number of GPMC_CLK clock cycles, even though the access is defined as asynchronous, and no GPMC_CLK clock is provided to the external device. Still, GPMCFCLKDIVIDER is used as a divider for the GPMC clock, so it must be programmed to define the correct WAITM

[PATCH 4/8] ARM OMAP2+ GPMC: change get_gpmc_timing_reg output for DTS

2015-02-26 Thread Robert ABEL
DTS output was formatted to require additional work when copy-pasting into DTS. Nano-second timings were replaced with interval of values that produce the same number of clock ticks. Signed-off-by: Robert ABEL --- drivers/memory/omap-gpmc.c | 35 ++- 1 file change

[PATCH 2/8] ARM OMAP2+ GPMC: add bus children

2015-02-26 Thread Robert ABEL
This patch adds support for spawning buses as children of the GPMC. Signed-off-by: Robert ABEL --- drivers/memory/omap-gpmc.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/memory/omap-gpmc.c b/drivers/memory/omap-gpmc.c index 5cabac8..74a8c52 1006

[PATCH 4/8] ARM OMAP2+ GPMC: fix debug output alignment

2015-02-26 Thread Robert ABEL
GPMC debug output is aligned to 10 characters for field names. However, some fields have bigger names, screwing up the alignment. Consequently, alignment was changed to longest field name (17 chars) for now. Signed-off-by: Robert ABEL --- drivers/memory/omap-gpmc.c | 2 +- 1 file changed, 1 inse

Re: [PATCH -next 00/13] Extensible console matching & direct earlycon

2015-02-26 Thread Peter Hurley
Hi Rob, On 02/24/2015 03:20 PM, Rob Herring wrote: > On Tue, Feb 24, 2015 at 1:53 PM, Peter Hurley > wrote: [...] Direct earlycon This feature enables arches and proms to start an earlycon directly, rather than requiring an "earlycon=" command line parameter. Devicetre

Re: [RFC PATCH 1/3] eeprom: Add a simple EEPROM framework

2015-02-26 Thread Srinivas Kandagatla
On 26/02/15 13:21, Maxime Ripard wrote: On Thu, Feb 26, 2015 at 09:16:27AM +, Srinivas Kandagatla wrote: I think we are making simple eeprom framework too smart which will break in future. IMHO, Anything on top of eeprom interface that interprets the data should not go into the eeprom fra

Re: [PATCH 3/4] mm, shmem: Add shmem resident memory accounting

2015-02-26 Thread Jerome Marchand
On 02/26/2015 02:51 PM, Vlastimil Babka wrote: > From: Jerome Marchand > > Currently looking at /proc//status or statm, there is no way to > distinguish shmem pages from pages mapped to a regular file (shmem > pages are mapped to /dev/zero), even though their implication in > actual memory use is

Re: [PATCH -next 00/13] Extensible console matching & direct earlycon

2015-02-26 Thread Rob Herring
On Thu, Feb 26, 2015 at 8:48 AM, Peter Hurley wrote: > Hi Rob, > > On 02/24/2015 03:20 PM, Rob Herring wrote: >> On Tue, Feb 24, 2015 at 1:53 PM, Peter Hurley >> wrote: > > [...] > > Direct earlycon > > This feature enables arches and proms to start an earlycon directly, > rather

Re: [perf/core PATCH v5 2/4] perf buildid-cache: Add --purge FILE to remove all caches of FILE

2015-02-26 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 26, 2015 at 03:54:47PM +0900, Masami Hiramatsu escreveu: > @@ -285,6 +308,7 @@ int cmd_buildid_cache(int argc, const char **argv, > bool force = false; > char const *add_name_list_str = NULL, > *remove_name_list_str = NULL, > +*purge_name_lis

Re: [perf/core PATCH v5 3/4] perf-buildid-cache: Use pr_debug instead of verbose && pr_info

2015-02-26 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 26, 2015 at 03:54:54PM +0900, Masami Hiramatsu escreveu: > Use pr_debug instead of the combination of verbose and pr_info. > > "if (verbose) pr_info(...)" is same as "pr_debug(...)", replace it. This one doesn't apply because 2/4 got delayed. - Arnaldo -- To unsubscribe from this lis

Re: [PATCH 4/8] ARM OMAP2+ GPMC: change get_gpmc_timing_reg output for DTS

2015-02-26 Thread Sergei Shtylyov
Hello. On 02/26/2015 05:45 PM, Robert ABEL wrote: DTS output was formatted to require additional work when copy-pasting into DTS. Nano-second timings were replaced with interval of values that produce the same number of clock ticks. Signed-off-by: Robert ABEL --- drivers/memory/omap-gpmc.

Re: [PATCH] x86, traps: install gates using IST after cpu_init().

2015-02-26 Thread Andy Lutomirski
On Wed, Feb 25, 2015 at 10:15 PM, Wang Nan wrote: > X86_TRAP_NMI, X86_TRAP_DF and X86_TRAP_MC use their own stack. Those > stacks are invalid until cpu_init() installs TSS. > > This patch moves setting of the 3 gates after cpu_init(). > > Signed-off-by: Wang Nan > --- > > If I understand correctl

Re: [PATCH 2/3 v3] x86: entry_64.S: always allocate complete "struct pt_regs"

2015-02-26 Thread Andy Lutomirski
On Feb 26, 2015 1:55 AM, "Denys Vlasenko" wrote: > > On Wed, Feb 25, 2015 at 10:59 PM, Andy Lutomirski wrote: > > On Wed, Feb 25, 2015 at 1:28 PM, Denys Vlasenko wrote: > >> On 02/25/2015 09:10 PM, Andy Lutomirski wrote: > >> This part? > >> > >> .macro FORK_LIKE func > >> ENTRY(stub_\f

Re: [perf/core PATCH v5 4/4] perf-buildid-cache: Show usage with incorrect params

2015-02-26 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 26, 2015 at 03:55:01PM +0900, Masami Hiramatsu escreveu: > Show usage if no action is specified or unexpected parameter > is given. In other words, be more user friendly. Thanks for doing that! Doesn't apply due to previous patches being delayer at the moment. - Arnaldo > Signed-of

Re: [PATCH] x86: fix a bug introduced by "allocate full pt_regs" commit

2015-02-26 Thread Andy Lutomirski
On Thu, Feb 26, 2015 at 6:08 AM, Denys Vlasenko wrote: > If syscall_trace_enter_phase1 returns 0, > code restores %rax from pt_regs->ax, but should restore it from > pt_regs->orig_ax. > > The bug crept in because LOAD_ARGS macro was very sublty different > from RESTORE_ARGS, it had only two callsi

Re: [GIT PULL] please pull file-locking related changes for v3.20

2015-02-26 Thread J. Bruce Fields
On Thu, Feb 26, 2015 at 09:45:00AM -0500, J. Bruce Fields wrote: > On Thu, Feb 26, 2015 at 11:00:46AM +, One Thousand Gnomes wrote: > > On Tue, 17 Feb 2015 11:13:39 -0800 > > Linus Torvalds wrote: > > > > > On Tue, Feb 17, 2015 at 11:08 AM, J. Bruce Fields > > > wrote: > > > > > > > > I agr

Re: [PATCH 4/7] x86: entry.S: use JZ mnemonic after TEST, not JE

2015-02-26 Thread Andy Lutomirski
On Thu, Feb 26, 2015 at 6:13 AM, Denys Vlasenko wrote: > On Thu, Feb 26, 2015 at 12:04 AM, Borislav Petkov wrote: >> On Wed, Feb 25, 2015 at 01:00:16AM +0100, Denys Vlasenko wrote: >>> After TEST insn, JE actually performs "jump if zero", >>> let's use JZ mnemonic instead. >>> >>> No code changes

Re: [PATCH] x86, traps: maps all IDTs to fixmap area.

2015-02-26 Thread Andy Lutomirski
On Wed, Feb 25, 2015 at 11:06 PM, Wang Nan wrote: > The reason why mapping idt_table to fixmap area should also be applied > to debug_idt_table and trace_idt_table. This patch does same thing for > all IDTs. > > Signed-off-by: Wang Nan > --- > > I believe trace_idt_table and debug_idt_table shoul

Re: [PATCH V7 1/1] perf tool:perf diff support for different binaries

2015-02-26 Thread Arnaldo Carvalho de Melo
Em Mon, Feb 09, 2015 at 05:39:44AM +, kan.li...@intel.com escreveu: > From: Kan Liang > Currently, the perf diff only works with same binaries. That's because > it compares the symbol start address. It doesn't work if the perf.data > comes from different binaries. This patch matches the symbol

Re: [PATCH 2/4] x86: get rid of KERNEL_STACK_OFFSET

2015-02-26 Thread Andy Lutomirski
On Thu, Feb 26, 2015 at 3:42 AM, Ingo Molnar wrote: > > * Andy Lutomirski wrote: > >> >> I added that in and applied this patch. >> > >> > So this is not just slightly buggy, it's fundamentally >> > wrong as well as it removes the possibility of an RSP >> > value optimization from the 64-bit path

[PATCH 2/5] can: kvaser_usb: Read all messages in a bulk-in URB buffer

2015-02-26 Thread Ahmed S. Darwish
From: Ahmed S. Darwish The Kvaser firmware can only read and write messages that are not crossing the USB endpoint's wMaxPacketSize boundary. While receiving commands from the CAN device, if the next command in the same URB buffer crossed that max packet size boundary, the firmware puts a zero-le

Re: [tip:x86/asm] x86/traps: Enable DEBUG_STACK after cpu_init() for TRAP_DB/BP

2015-02-26 Thread Andy Lutomirski
On Thu, Feb 26, 2015 at 5:12 AM, tip-bot for Wang Nan wrote: > Commit-ID: b4d8327024637cb2a1f7910dcb5d0ad7a096f473 > Gitweb: http://git.kernel.org/tip/b4d8327024637cb2a1f7910dcb5d0ad7a096f473 > Author: Wang Nan > AuthorDate: Thu, 26 Feb 2015 13:49:39 +0800 > Committer: Ingo Molnar > Co

[PATCH 3/5] can: kvaser_usb: Utilize all possible tx URBs

2015-02-26 Thread Ahmed S. Darwish
From: Ahmed S. Darwish The driver currently limits the number of outstanding, not yet ACKed, transfers to 16 URBs. Meanwhile, the Kvaser firmware provides its actual max supported number of outstanding transmissions in its reply to the CMD_GET_SOFTWARE_INFO message. One example is the UsbCan-II

[PATCH 1/5] can: kvaser_usb: Avoid double free on URB submission failures

2015-02-26 Thread Ahmed S. Darwish
From: Ahmed S. Darwish Upon a URB submission failure, the driver calls usb_free_urb() but then manually frees the URB buffer by itself. Meanwhile usb_free_urb() has alredy freed out that transfer buffer since we're the only code path holding a reference to this URB. Remove two of such invalid m

Re: [RFC PATCH 0/3] genirq: mixing IRQF_NO_SUSPEND and wakeup sources on shared IRQs

2015-02-26 Thread Rafael J. Wysocki
On Thursday, February 26, 2015 09:03:47 AM Boris Brezillon wrote: > Hi Rafael, > > On Wed, 25 Feb 2015 22:59:36 +0100 > "Rafael J. Wysocki" wrote: > > > On Tuesday, February 24, 2015 10:55:59 AM Boris Brezillon wrote: > > > Hello, > > > > > > I put the > > > IRQF_NO_SUSPEND_SAFE/IRQF_TIMER_SIB

Re: [PATCH 2/2] cpusets,isolcpus: add file to show isolated cpus in cpuset

2015-02-26 Thread Rik van Riel
On 02/26/2015 06:05 AM, Zefan Li wrote: >> +static void cpuset_seq_print_isolcpus(struct seq_file *sf, struct cpuset >> *cs) >> +{ >> +cpumask_var_t my_isolated_cpus; >> + >> +if (!alloc_cpumask_var(&my_isolated_cpus, GFP_KERNEL)) >> +return; >> + > > Make it return -ENOMEM ?

[PATCH 5/5] can: kvaser_usb: Fix tx queue start/stop race conditions

2015-02-26 Thread Ahmed S. Darwish
From: Ahmed S. Darwish A number of tx queue wake-up events went missing due to the outlined scenario below. Start state is a pool of 16 tx URBs, active tx_urbs count = 15, with the netdev tx queue open. start_xmit() tx_acknowledge()

Re: [PATCH 2/4] x86: get rid of KERNEL_STACK_OFFSET

2015-02-26 Thread Andy Lutomirski
On Thu, Feb 26, 2015 at 7:21 AM, Andy Lutomirski wrote: > On Thu, Feb 26, 2015 at 3:42 AM, Ingo Molnar wrote: >> >> * Andy Lutomirski wrote: >> >>> >> I added that in and applied this patch. >>> > >>> > So this is not just slightly buggy, it's fundamentally >>> > wrong as well as it removes the

[PATCH 4/5] can: kvaser_usb: Use can-dev unregistration mechanism

2015-02-26 Thread Ahmed S. Darwish
From: Ahmed S. Darwish Use can-dev's unregister_candev() instead of directly calling networking unregister_netdev(). While both are functionally equivalent, unregister_candev() might do extra stuff in the future than just calling networking layer unregistration code. Signed-off-by: Ahmed S. Darw

Re: [PATCH v2 0/4] input: ft5x06: Fix userspace reported maximum value

2015-02-26 Thread Markus Pargmann
Hi Maxime, On Tue, Feb 24, 2015 at 05:55:08PM +0100, Maxime Ripard wrote: > Hi Markus, > > On Mon, Feb 23, 2015 at 10:49:36PM +0100, Markus Pargmann wrote: > > Hi, > > > > On Thu, Nov 13, 2014 at 03:06:54PM +0100, Maxime Ripard wrote: > > > Hi, > > > > > > The current ft5x06 reports to the user

Re: Re: [PATCH v2 3/3] efi: Capsule update with user helper interface

2015-02-26 Thread Andy Lutomirski
On Wed, Feb 25, 2015 at 3:47 AM, Borislav Petkov wrote: > On Tue, Feb 24, 2015 at 12:49:09PM +, Kweh, Hock Leong wrote: >> So the process steps basically look like this: >> 1.) cat capsule_ticket===> acquire a number and lock mutex then >>

Re: [PATCH 3.2 055/152] x86_64, switch_to(): Load TLS descriptors before switching DS and ES

2015-02-26 Thread Andy Lutomirski
On Tue, Feb 24, 2015 at 7:23 PM, Brian Gerst wrote: > On Tue, Feb 24, 2015 at 3:08 PM, Denys Vlasenko > wrote: >> On Tue, Feb 24, 2015 at 9:02 PM, Andy Lutomirski wrote: This currently fails in 32-bit kernels (at least in qemu): / # ./es_test Allocated GDT index 7 [FAIL]

Re: [PATCHv3 13/17] tile: expose number of page table levels

2015-02-26 Thread Chris Metcalf
On 2/26/2015 6:35 AM, Kirill A. Shutemov wrote: We would want to use number of page table level to define mm_struct. Let's expose it as CONFIG_PGTABLE_LEVELS. Signed-off-by: Kirill A. Shutemov Cc: Chris Metcalf Tested-by: Guenter Roeck --- arch/tile/Kconfig | 5 + 1 file changed, 5 insert

[PATCH] Documentation: DT: omap_serial: document missing properties and add an example

2015-02-26 Thread Matt Porter
The omap_serial.txt binding documentation lacks a number of properties that are used in DTS files for platforms incorporating this peripheral. Fix this by documenting the missing required and optional fields and add an example. Signed-off-by: Matt Porter --- .../devicetree/bindings/serial/omap_s

Re: [PATCH] capabilities: Ambient capability set V1

2015-02-26 Thread Serge E. Hallyn
On Wed, Feb 25, 2015 at 02:25:19PM -0600, Christoph Lameter wrote: > On Wed, 25 Feb 2015, Serge Hallyn wrote: > > > Yeah we could make this > > Well doing that breaks su. Don't what exactly? You're saying that doing pI' = pI pA' = pA (pA is ambient) pP' = (X & fP) | (pI & (fI | pA)) pE' = pP'

lguest: bug in lg_irq_enable?

2015-02-26 Thread Denys Vlasenko
ENTRY(lg_irq_enable) /* * The reverse of irq_disable, this sets lguest_data.irq_enabled to * X86_EFLAGS_IF (ie. "Interrupts enabled"). */ movl $X86_EFLAGS_IF, lguest_data+LGUEST_DATA_irq_enabled /* * But now we need to check if the Host wa

Re: [PATCH v4 2/8] arm64: dts: exynos: Add dts files for 64-bit Exynos5433 SoC

2015-02-26 Thread Arnd Bergmann
On Thursday 26 February 2015 17:18:41 Chanwoo Choi wrote: > I add following aliases and serial_1/serial_3 dt node in board dtsi: > I tested that change the alias of serial_x node. > > aliases { > serial0 = &serial_1; > serial1 = &serial_3; >

Re: [RFC PATCH 0/3] genirq: mixing IRQF_NO_SUSPEND and wakeup sources on shared IRQs

2015-02-26 Thread Boris Brezillon
On Thu, 26 Feb 2015 16:44:16 +0100 "Rafael J. Wysocki" wrote: > On Thursday, February 26, 2015 09:03:47 AM Boris Brezillon wrote: > > Hi Rafael, > > > > On Wed, 25 Feb 2015 22:59:36 +0100 > > "Rafael J. Wysocki" wrote: > > > > > On Tuesday, February 24, 2015 10:55:59 AM Boris Brezillon wrote:

[PATCH] USB: pl2303: disable break on shutdown

2015-02-26 Thread Johan Hovold
Currently an enabled break state is not disabled on final close nor on re-open and has to be disabled manually. Fix this by disabling break on port shutdown. Reported-by: Jari Ruusu Tested-by: Jari Ruusu Signed-off-by: Johan Hovold --- drivers/usb/serial/pl2303.c | 18 +- 1 fi

[PATCH] x86/microcode/intel: Out of bounds memory read when reading extended header.

2015-02-26 Thread Quentin Casasnovas
Improper pointer arithmetics when calculating the address of the extended header could lead to an out of bounds memory read and kernel panic. Signed-off-by: Quentin Casasnovas --- arch/x86/kernel/cpu/microcode/intel_early.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git

Re: [PATCH -next 00/13] Extensible console matching & direct earlycon

2015-02-26 Thread Peter Hurley
On 02/26/2015 09:58 AM, Rob Herring wrote: > On Thu, Feb 26, 2015 at 8:48 AM, Peter Hurley > wrote: >> Hi Rob, >> >> On 02/24/2015 03:20 PM, Rob Herring wrote: >>> On Tue, Feb 24, 2015 at 1:53 PM, Peter Hurley >>> wrote: >> >> [...] >> >> Direct earlycon >> >> This feature enables a

[PATCH 2/3] ARM: dts: Add WiFi module support for Peach boards

2015-02-26 Thread Javier Martinez Canillas
Peach Pit and Pi boards have a WiFi module that is always powered but needs toggling an enable pin and ungating a 32kHz reference clock as part of their power sequencing. Add a dev node for the SDIO slot and a MMC power sequence provider. Signed-off-by: Javier Martinez Canillas --- arch/arm/boo

[PATCHv2 3/3] vme: tsi148: Master windows support USERx and CR/CSR accesses, not slaves

2015-02-26 Thread Dmitry Kalinkin
From: Martyn Welch The tsi148 driver is registering the slave images as supporting the "USER" access modes and CR/CSR access mode rather than the master images as it should. Remove the incorrect case entries for these modes from the tsi148_slave_set() function, stop registering slave_images as s

[PATCH 0/3] ARM: dts: Peach boards WiFi and audio support

2015-02-26 Thread Javier Martinez Canillas
Hello Kukjin, This series adds support for the remaining peripherals that were not supported in the Exynos5420 Peach Pit and Exynos5800 Peach Pi boards. Javier Martinez Canillas (2): ARM: dts: Mux XMMCnDATA[0] pad correctly for Exynos5420 boards. ARM: dts: Add WiFi module support for Peach bo

[PATCHv2 0/3] mmap() for vme_user and CR/CSR fix for master

2015-02-26 Thread Dmitry Kalinkin
Dear all, mmap() on VME bridge devices is a feature present in many existing Linux and UNIX drivers. The proposed solution follows the approach so that mmap() offsets are coherent with read() and write() offsets, which seems to be the only manner compatible with the current vme_user API. It also

[PATCH 3/3] ARM: dts: Add mclk entry for Peach Pit/Pi boards

2015-02-26 Thread Javier Martinez Canillas
From: Tushar Behera On Peach Pit and Pi boards, the Exynos SoC XCLKOUT pin provides master clock (mclk) to the codec. So make it a clock consumer. Signed-off-by: Tushar Behera Signed-off-by: Javier Martinez Canillas --- arch/arm/boot/dts/exynos5420-peach-pit.dts | 2 ++ arch/arm/boot/dts/exyn

[PATCHv2 2/3] staging: vme: mmap() support for vme_user

2015-02-26 Thread Dmitry Kalinkin
We also make sure that user won't be able to reconfigure the window while it is mmap'ed. Signed-off-by: Dmitry Kalinkin Cc: Igor Alekseev --- drivers/staging/vme/devices/vme_user.c | 85 ++ drivers/vme/vme.c | 26 +++ include/linux/vm

[PATCH 1/3] ARM: dts: Mux XMMCnDATA[0] pad correctly for Exynos5420 boards.

2015-02-26 Thread Javier Martinez Canillas
The Exynos5420 SoC has 3 sets of 8 pads used as data lines for the 3 MMC/SD/SDIO slots. These needs to be muxed as SD_n_DATA instead of a GPIO or external interrupt to allow the MMC controller to communicate with the attached cards or SDIO devices. Which data lines needs to be muxed as SD_n_DATA d

[PATCHv2 1/3] staging: vme: use image mutex for ioctl()

2015-02-26 Thread Dmitry Kalinkin
This implements more granular locking in vme_user_ioctl() by using separate locks for each devfs device. This also provides a synchronization between vme_user_read(), vme_user_write() and vme_user_ioctl(). Signed-off-by: Dmitry Kalinkin Cc: Igor Alekseev --- drivers/staging/vme/devices/vme_use

Re: Re: [PATCH v2 3/3] efi: Capsule update with user helper interface

2015-02-26 Thread Borislav Petkov
On Thu, Feb 26, 2015 at 07:30:54AM -0800, Andy Lutomirski wrote: > How can the error code be propagated? Would that echo command fail in > case of error? Yeah, either that or we can put the error code in the sysfs file which userspace can cat. -- Regards/Gruss, Boris. ECO tip #101: Trim yo

RE: [PATCH 0/3] ARM: dts: Peach boards WiFi and audio support

2015-02-26 Thread Kukjin Kim
Javier Martinez Canillas wrote: > > Hello Kukjin, > Hi, > This series adds support for the remaining peripherals that were not > supported in the Exynos5420 Peach Pit and Exynos5800 Peach Pi boards. > > Javier Martinez Canillas (2): > ARM: dts: Mux XMMCnDATA[0] pad correctly for Exynos5420 bo

[PATCH] Btrfs:__add_inode_ref: out of bounds memory read when looking for extended ref.

2015-02-26 Thread Quentin Casasnovas
Improper arithmetics when calculting the address of the extended ref could lead to an out of bounds memory read and kernel panic. Signed-off-by: Quentin Casasnovas --- fs/btrfs/tree-log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git fs/btrfs/tree-log.c fs/btrfs/tree-log.c in

Re: [RFC][PATCH v3] sched/rt: Use IPI to trigger RT task push migration instead of pulling

2015-02-26 Thread Steven Rostedt
On Wed, 25 Feb 2015 22:26:44 -0500 Steven Rostedt wrote: > +static int find_next_push_cpu(struct rq *rq) > +{ > + struct rq *next_rq; > + int cpu; > + > + while (1) { > + cpu = rto_next_cpu(rq); > + if (cpu >= nr_cpu_ids) > + break; > +

Re: [PATCH 0/3] ARM: dts: Peach boards WiFi and audio support

2015-02-26 Thread Javier Martinez Canillas
Hello Kukjin, On 02/26/2015 04:55 PM, Kukjin Kim wrote: > Javier Martinez Canillas wrote: >> >> After this series all the peripherals in the Peach boards are working >> at least at a basic level, more work is needed to make the ASoC audio >> driver more robust or the WiFi chip to support highspee

Re: [PATCH 4/7] x86: entry.S: use JZ mnemonic after TEST, not JE

2015-02-26 Thread Borislav Petkov
On Thu, Feb 26, 2015 at 07:16:28AM -0800, Andy Lutomirski wrote: > I'm declaring a temporary moratorium on new development here until > the already-queued stuff is in -tip, looks okay, and we're in an > appropriate part of the cycle. The series is already huge. > > IOW I'm not applying this or the

Re: [PATCH] i915: stack address leak when failing to read registers.

2015-02-26 Thread Quentin Casasnovas
(Removing stable from CC...) Ping on this? On Mon, Feb 02, 2015 at 02:58:36PM +0100, Quentin Casasnovas wrote: > It is possible for the *_read*() functions to fail, in which case it'll > leave its third argument untouched. Most of the code do not check the > return value of *_read*() functions,

Re: [PATCH v5 0/7] platform/chrome: Add user-space dev inferface support

2015-02-26 Thread Simon Glass
Hi Olof, On 25 February 2015 at 17:59, Olof Johansson wrote: > On Tue, Feb 17, 2015 at 07:26:50PM -0700, Simon Glass wrote: >> Hi, >> >> On 16 February 2015 at 01:19, Javier Martinez Canillas >> wrote: >> > Hello Olof, >> > >> > On 02/02/2015 12:26 PM, Javier Martinez Canillas wrote: >> >> Hello

Re: [RFC][PATCH] module: Optimize __module_address() using a latched RB-tree

2015-02-26 Thread Mathieu Desnoyers
- Original Message - > From: "Peter Zijlstra" > To: "Andi Kleen" > Cc: "Andi Kleen" , x...@kernel.org, > linux-kernel@vger.kernel.org, "mathieu desnoyers" > , o...@redhat.com, > paul...@linux.vnet.ibm.com, ru...@rustcorp.com.au, > mi...@kernel.org > Sent: Thursday, February 26, 2015 6:4

[PATCH v2 0/2] Add support for Broadcom keypad controller

2015-02-26 Thread Scott Branden
This series of patchsets contains the Broadcom keypad controller driver and device tree binding documentation. Changes from v1: - updated dt documentation to remove to matrix-keymap.txt - removed bcm_kp_remove as it is not necessary - removed key-interrupt-trigger-type dt binding - added bcm_kp_re

Re: [PATCH -next 00/13] Extensible console matching & direct earlycon

2015-02-26 Thread Rob Herring
On Thu, Feb 26, 2015 at 9:54 AM, Peter Hurley wrote: > On 02/26/2015 09:58 AM, Rob Herring wrote: >> On Thu, Feb 26, 2015 at 8:48 AM, Peter Hurley >> wrote: >>> Hi Rob, >>> >>> On 02/24/2015 03:20 PM, Rob Herring wrote: On Tue, Feb 24, 2015 at 1:53 PM, Peter Hurley wrote: [...] >>>

[PATCH] spi: fsl-spi: use of_iomap() to map parameter ram on CPM1

2015-02-26 Thread Christophe Leroy
On CPM2, the SPI parameter RAM is dynamically allocated in the dualport RAM whereas in CPM1, it is statically allocated to a default address with capability to relocate it somewhere else via the use of CPM micropatch. The address of the parameter RAM is given by the boot loader and expected to be m

[PATCH 6/7] kprobes: Check kprobes_all_disarmed in kprobe_disarmed()

2015-02-26 Thread Petr Mladek
The global kprobes_all_disarmed flag says that all Kprobes are disarmed even when they are marked as enabled. Therefore the flag should get checked by kprobe_disarmed(). Signed-off-by: Petr Mladek --- kernel/kprobes.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --gi

[PATCH 3/7] kprobes: Propagate error from disarm_kprobe_ftrace()

2015-02-26 Thread Petr Mladek
Also disarm_kprobe_ftrace() could fail, for example if there is an internal error in the Kprobe code and we try to unregister some Kprobe that is not registered. If we fail to unregister the ftrace function, we still could try to disarm the Kprobe by removing the filter. This is why the first erro

[PATCH v2 1/2] Input: bcm-keypad: add device tree bindings

2015-02-26 Thread Scott Branden
Documents the Broadcom keypad controller device tree bindings. Reviewed-by: Ray Jui Signed-off-by: Scott Branden --- .../devicetree/bindings/input/brcm,bcm-keypad.txt | 108 + 1 file changed, 108 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/brcm

[PATCH 4/7] kprobes: Keep consistent state of kprobes_all_disarmed

2015-02-26 Thread Petr Mladek
kprobes_all_disarmed global flag says that Kprobes are disarmed even when the Kprobe-specific KPROBE_FLAG_DISABLED is not set. The global flag is currently set by arm_all_probes() and disarm_all_probes() functions even when they were not able to switch all Kprobes. It might result in further error

[PATCH v2 2/2] Input: bcm-keypad: Add Broadcom keypad controller

2015-02-26 Thread Scott Branden
Add driver for Broadcom's keypad controller. Broadcom Keypad controller is used to interface a SoC with a matrix-type keypad device. The keypad controller supports multiple row and column lines. A key can be placed at each intersection of a unique row and a unique column. The keypad controller can

[PATCH 7/7] kprobes: Mark globally disabled Kprobes in debugfs interface

2015-02-26 Thread Petr Mladek
Kprobes might get globally disabled by writing to /sys/kernel/debug/kprobes/enabled but this situation is not visible in /sys/kernel/debug/kprobes/list. This patch updates the list, so that it shows [GLOBALLY DISABLED] when the related Kprobe is enabled but globally disabled. It also updates the

[PATCH 2/7] kprobes: Propagate error from arm_kprobe_ftrace()

2015-02-26 Thread Petr Mladek
arm_kprobe_ftrace() could fail, especially after introducing ftrace IPMODIFY flag and LifePatching. registry_kprobe() and registry_aggr_kprobe() do not mind about the error because the kprobe gets disabled and they keep it registered. But enable_kprobe() should propagate the error because its tas

Re: [PATCH 4/7] x86: entry.S: use JZ mnemonic after TEST, not JE

2015-02-26 Thread Andy Lutomirski
On Thu, Feb 26, 2015 at 7:59 AM, Borislav Petkov wrote: > On Thu, Feb 26, 2015 at 07:16:28AM -0800, Andy Lutomirski wrote: >> I'm declaring a temporary moratorium on new development here until >> the already-queued stuff is in -tip, looks okay, and we're in an >> appropriate part of the cycle. The

<    1   2   3   4   5   6   7   8   >