[PATCH 2/3] staging/rdma/hfi1: check return value of kcalloc

2015-12-14 Thread Nicholas Mc Guire
Add a null check after the kcalloc call as proposed by Mike Marciniszyn . Signed-off-by: Nicholas Mc Guire --- Patch was compile tested with: x86_64_defconfig CONFIG_INFINIBAND=m, CONFIG_STAGING=y, CONFIG_STAGING_RDMA=m Patch is against linux-next (localversion-next is -next-20151214

[PATCH 1/3] staging/rdma/hfi1: consolidate kmalloc_array+memset into kcalloc

2015-12-14 Thread Nicholas Mc Guire
(localversion-next is -next-20151214) drivers/staging/rdma/hfi1/chip.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rdma/hfi1/chip.c b/drivers/staging/rdma/hfi1/chip.c index dc69159..31eec8a 100644 --- a/drivers/staging/rdma/hfi1/chip.c +++ b/drivers

[PATCH 3/3] staging/rdma/hfi1: fix build warning

2015-12-14 Thread Nicholas Mc Guire
CONFIG_INFINIBAND=m, CONFIG_STAGING=y, CONFIG_STAGING_RDMA=m Patch is against linux-next (localversion-next is -next-20151214) drivers/staging/rdma/hfi1/chip.c |1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rdma/hfi1/chip.c b/drivers/staging/rdma/hfi1/chip.c index 52d2bd7..

Re: [PATCH] iommu/msm: Use platform_register/unregister_drivers()

2015-12-14 Thread Joerg Roedel
On Wed, Dec 02, 2015 at 05:26:01PM +0100, Thierry Reding wrote: > From: Thierry Reding > > These new helpers simplify implementing multi-driver modules and > properly handle failure to register one driver by unregistering all > previously registered drivers. > > Signed-off-by: Thierry Reding >

RE: [PATCH 4.3 23/71] net: thunder: Check for driver data in nicvf_remove()

2015-12-14 Thread Pavel Fedin
Hello! > stable patches should always match what is in Linus's tree, so I'm not > going to change the commit messages, sorry. Ok, no problem, i just wanted to suggest it to make more sense, because this msg alone doesn't explain anything. But, well, i understand that administrative rules alway

Re: [RFC 1/2] [RFC] mm: Account anon mappings as RLIMIT_DATA

2015-12-14 Thread Quentin Casasnovas
On Sun, Dec 13, 2015 at 11:14:19PM +0300, Cyrill Gorcunov wrote: > When inspecting a vague code inside prctl(PR_SET_MM_MEM) > call (which testing the RLIMIT_DATA value to figure out > if we're allowed to assign new @start_brk, @brk, @start_data, > @end_data from mm_struct) it's been commited that R

Re: [PATCHSET 00/16] perf top: Add multi-thread support (v1)

2015-12-14 Thread David Ahern
On 12/14/15 2:26 AM, Peter Zijlstra wrote: On Fri, Dec 11, 2015 at 08:01:31AM -0700, David Ahern wrote: On 12/11/15 1:11 AM, Ingo Molnar wrote: * Namhyung Kim wrote: IIRC David said that thread per cpu seems too much especially on a large system (like ~1024 cpu). [...] Too much in what fa

Re: [PATCH 2/3] iommu/amd: constify mmu_notifier_ops structures

2015-12-14 Thread Joerg Roedel
On Sun, Nov 29, 2015 at 11:02:50PM +0100, Julia Lawall wrote: > This mmu_notifier_ops structure is never modified, so declare it as > const, like the other mmu_notifier_ops structures. > > Done with the help of Coccinelle. > > Signed-off-by: Julia Lawall > > --- > The patches in this series are

Re: [PATCH] sched/fair: fix mul overflow on 32-bit systems

2015-12-14 Thread Morten Rasmussen
On Mon, Dec 14, 2015 at 03:20:21PM +0100, Peter Zijlstra wrote: > On Mon, Dec 14, 2015 at 01:07:26PM +, Morten Rasmussen wrote: > > > Agreed, >100% is a transient state (which can be rather long) which only > > means over-utilized, nothing more. Would you like the metric itself to > > be chang

Re: [Patch v5 1/2] media: v4l: ti-vpe: Add CAL v4l2 camera capture driver

2015-12-14 Thread Hans Verkuil
On 12/11/2015 11:16 PM, Benoit Parrot wrote: > Mauro Carvalho Chehab wrote on Thu [2015-Dec-03 > 11:19:22 -0200]: >>> +static int cal_enum_framesizes(struct file *file, void *fh, >>> + struct v4l2_frmsizeenum *fsize) >>> +{ >>> + struct cal_ctx *ctx = video_drvdata(file

Re: [PATCH 4/4] iommu/vt-d: Do access checks before calling handle_mm_fault()

2015-12-14 Thread Joerg Roedel
On Fri, Nov 20, 2015 at 03:35:53PM +, David Woodhouse wrote: > Acked-By: David Woodhouse > > As noted, I can't test it right now until I've replaced my test > hardware. Certainly looks better than the last version though :) Okay, thanks. I applied the series to the iommu tree. Patch 1 and 4

Re: [RFCv6 PATCH 09/10] sched: deadline: use deadline bandwidth in scale_rt_capacity

2015-12-14 Thread Luca Abeni
On 12/14/2015 03:02 PM, Vincent Guittot wrote: [...] Small nit: why "average" utilization? I think a better name would be "runqueue utilization" or "local utilization", or something similar... If I understand correctly (sorry if I missed something), this is not an average, but the sum of the util

Re: [PATCH v2] sched/fair: fix mul overflow on 32-bit systems

2015-12-14 Thread Peter Zijlstra
On Mon, Dec 14, 2015 at 03:47:23PM +0300, Andrey Ryabinin wrote: > Make 'r' 64-bit type to avoid overflow in 'r * LOAD_AVG_MAX' > on 32-bit systems: > UBSAN: Undefined behaviour in kernel/sched/fair.c:2785:18 > signed integer overflow: > 87950 * 47742 cannot be represented in type

[PATCH RESEND] misc/bmp085: Enable building as a module

2015-12-14 Thread Ben Hutchings
Commit 985087dbcb02 'misc: add support for bmp18x chips to the bmp085 driver' changed the BMP085 config symbol to a boolean. I see no reason why the shared code cannot be built as a module, so change it back to tristate. Fixes: 985087dbcb02 ("misc: add support for bmp18x chips to the bmp085 drive

[PATCH v3.1 02/17] tools build: Fix feature Makefile dependencies for 'O='

2015-12-14 Thread Josh Poimboeuf
Signed-off-by: Josh Poimboeuf --- tools/build/Makefile.feature | 2 +- tools/build/feature/Makefile | 93 ++-- 2 files changed, 48 insertions(+), 47 deletions(-) diff --git a/tools/build/Makefile.feature b/tools/build/Makefile.feature index b8c31ec..6c051

Re: [PATCH 1/3] Device tree binding documentation for gpio-switch

2015-12-14 Thread Linus Walleij
On Fri, Dec 11, 2015 at 3:06 PM, Rob Herring wrote: > On Fri, Dec 11, 2015 at 6:39 AM, Linus Walleij > wrote: >> On Fri, Dec 4, 2015 at 6:31 PM, Martyn Welch >> wrote: >> >>> This patch adds documentation for the gpio-switch binding. This binding >>> provides a mechanism to bind named links to

[PATCH] drivers:staging:wlan-ng Fix space preferred around that messages

2015-12-14 Thread Bogicevic Sasa
This fixes all "space preferred around that ..." messages from checkpatch.pl Signed-off-by: Bogicevic Sasa --- drivers/staging/wlan-ng/hfa384x_usb.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/staging/wlan-ng/hfa384x_usb.c b/drivers/staging/wlan-ng/hfa384x

Is PROT_SOCK still relevant?

2015-12-14 Thread Jason Newton
I've noted through years difficulties in getting programs in java or python to work in Linux correctly when binding to a "privileged port", requiring various forms of hoop jumping (use of capabilities, iptables redirection, authbind, and the classic newbie mistake of running the program as root) a

Re: [PATCH] sched/fair: fix mul overflow on 32-bit systems

2015-12-14 Thread Peter Zijlstra
On Mon, Dec 14, 2015 at 01:07:26PM +, Morten Rasmussen wrote: > Agreed, >100% is a transient state (which can be rather long) which only > means over-utilized, nothing more. Would you like the metric itself to > be changed to saturate at 100% or just cap it to 100% when used? We already cap i

Re: [PATCH v6 4/5] iommu/mediatek: Add mt8173 IOMMU driver

2015-12-14 Thread Joerg Roedel
On Tue, Dec 08, 2015 at 05:49:12PM +0800, Yong Wu wrote: > +static int mtk_iommu_attach_device(struct iommu_domain *domain, > +struct device *dev) > +{ > + struct mtk_iommu_domain *dom = to_mtk_domain(domain); > + struct mtk_iommu_client_priv *priv = dev->arc

Re: [PATCH 4.3 23/71] net: thunder: Check for driver data in nicvf_remove()

2015-12-14 Thread 'Greg Kroah-Hartman'
On Mon, Dec 14, 2015 at 10:17:52AM +0300, Pavel Fedin wrote: > Hello! > > It's good to apply this to stable, however IMHO commit message should be > changed. Actually, this was fix for a fix, so in theory > 5883d9c6d7e680bcdc7a8a9ed2509cd10dd98206 and > 7750130d93decff06120df0d8ea024ff8a038a21

[PATCH] clk: unchecked return of kmalloc_array

2015-12-14 Thread Nicholas Mc Guire
for shmobile_defconfig (implies CONFIG_ARCH_SHMOBILE_MULTI=y) patch is against linux-next (localversion-next -next-20151214) drivers/clk/shmobile/clk-div6.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/shmobile/clk-div6.c b/drivers/clk/shmobile/clk-div6.c index b4c8d67..e6b7533 100644 --

Re: [PATCH v3 15/17] perf: Finalize subcmd independence

2015-12-14 Thread Josh Poimboeuf
On Mon, Dec 14, 2015 at 11:32:20AM +0100, Jiri Olsa wrote: > On Sun, Dec 13, 2015 at 10:18:15PM -0600, Josh Poimboeuf wrote: > > For the files that will be moved to the subcmd library, remove all their > > perf-specific includes and duplicate any needed functionality. > > > > Signed-off-by: Josh P

Re: [Xen-devel] [PATCH RFC 1/3] xen: export xen_phys_to_bus, xen_bus_to_phys and xen_virt_to_bus

2015-12-14 Thread David Vrabel
On 07/12/15 16:19, Stefano Stabellini wrote: > Signed-off-by: Stefano Stabellini Can you add a brief description about why these are being moved? Then, assuming this is needed in the end: Acked-by: David Vrabel David -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" i

Re: [Xen-devel] [PATCH RFC 0/3] Xen on Virtio

2015-12-14 Thread Michael S. Tsirkin
On Mon, Dec 14, 2015 at 02:00:05PM +, David Vrabel wrote: > On 07/12/15 16:19, Stefano Stabellini wrote: > > Hi all, > > > > this patch series introduces support for running Linux on top of Xen > > inside a virtual machine with virtio devices (nested virt scenario). > > The problem is that Lin

Re: [PATCH v3 14/17] perf: Remove subcmd dependencies on strbuf

2015-12-14 Thread Josh Poimboeuf
On Mon, Dec 14, 2015 at 11:25:51AM +0100, Jiri Olsa wrote: > On Sun, Dec 13, 2015 at 10:18:14PM -0600, Josh Poimboeuf wrote: > > Introduce and use new astrcat() and astrcatf() functions which replace > > the strbuf functionality for subcmd. > > hum, would it be better then to put strbuf into lib a

[PATCH] drivers:staging:wlan-ng Fix all no space necesarry after a cast

2015-12-14 Thread Bogicevic Sasa
This fixes all messages "no space necesarry after a cast" in cfg80211.c file Signed-off-by: Bogicevic Sasa --- drivers/staging/wlan-ng/cfg80211.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/staging/wlan-ng/cfg80211.c b/drivers/staging/w

Re: [PATCH v3 10/17] perf: Provide subcmd configuration at runtime

2015-12-14 Thread Josh Poimboeuf
On Mon, Dec 14, 2015 at 11:33:58AM +0100, Jiri Olsa wrote: > On Sun, Dec 13, 2015 at 10:18:10PM -0600, Josh Poimboeuf wrote: > > SNIP > > > > > typedef int (*config_fn_t)(const char *, const char *, void *); > > extern int perf_default_config(const char *, const char *, void *); > > diff --gi

Re: [PATCH] clk: unchecked return of kmalloc_array

2015-12-14 Thread Nicholas Mc Guire
ed with coccinelle > > Signed-off-by: Nicholas Mc Guire > --- > > patch was compile tested for shmobile_defconfig > (implies CONFIG_ARCH_SHMOBILE_MULTI=y) > > patch is against linux-next (localversion-next -next-20151214) > > drivers/clk/shmobile/clk-div6.c |2 ++ &g

Re: [Xen-devel] [PATCH] xen/x86/pvh: Use HVM's flush_tlb_others op

2015-12-14 Thread Boris Ostrovsky
On 12/14/2015 08:58 AM, David Vrabel wrote: On 13/12/15 00:25, Boris Ostrovsky wrote: Using MMUEXT_TLB_FLUSH_MULTI doesn't buy us much since the hypervisor will likely perform same IPIs as would have the guest. More importantly, using MMUEXT_INVLPG_MULTI may not to invalidate the guest's addres

Re: [PATCH] gpio: pl061: add support for wakeup configuration

2015-12-14 Thread Sudeep Holla
On 14/12/15 14:02, Linus Walleij wrote: On Fri, Nov 27, 2015 at 6:19 PM, Sudeep Holla wrote: The PL061 supports interrupts and those can be wakeup interrupts. We need to provide support for configuring those interrupts as wakeup sources. This patch adds irq_set_wake callback for PL061 so th

Re: [PATCH] pinctrl:Convert the composition of devm_request_mem_region and devm_ioremap to a single call

2015-12-14 Thread Linus Walleij
On Thu, Dec 10, 2015 at 11:31 PM, Tony Lindgren wrote: >> > >> > I think we need to add ourselves to MAINTAINERS for this driver, >> > otherwise we'll keep on missing emails. >> >> Good idea! Patches accepted. > > How about this one below? Patch applied for fixes! Yours, Linus Walleij -- To uns

Re: [PATCH 1/2] zram: Less checks in zram_bvec_write() after error detection

2015-12-14 Thread SF Markus Elfring
>> I suggest to make the affected exception handling a bit more efficient. >> Such source code fine-tuning has got a few special consequences. > > by 'more efficient' you mean saving cpu cycles on 'bvec->bv_len != PAGE_SIZE' > comparison in exception/error path? Yes … > ... > check_strm: >

Re: [PATCH v3 02/17] tools build: Fix feature Makefile dependencies for 'O='

2015-12-14 Thread Josh Poimboeuf
On Mon, Dec 14, 2015 at 11:08:51AM +0100, Jiri Olsa wrote: > On Sun, Dec 13, 2015 at 10:18:02PM -0600, Josh Poimboeuf wrote: > > Signed-off-by: Josh Poimboeuf > > --- > > tools/build/Makefile.feature | 2 +- > > tools/build/feature/Makefile | 95 > > ++--

Re: [PATCH] gpio: pl061: add support for wakeup configuration

2015-12-14 Thread Linus Walleij
On Fri, Nov 27, 2015 at 6:19 PM, Sudeep Holla wrote: > The PL061 supports interrupts and those can be wakeup interrupts. We > need to provide support for configuring those interrupts as wakeup > sources. > > This patch adds irq_set_wake callback for PL061 so that GPIO interrupts > can be configur

Re: [RFC PATCH 0/3] x86: Add support for guest DMA dirty page tracking

2015-12-14 Thread Michael S. Tsirkin
On Mon, Dec 14, 2015 at 03:20:26PM +0800, Yang Zhang wrote: > On 2015/12/14 13:46, Alexander Duyck wrote: > >On Sun, Dec 13, 2015 at 9:22 PM, Yang Zhang wrote: > >>On 2015/12/14 12:54, Alexander Duyck wrote: > >>> > >>>On Sun, Dec 13, 2015 at 6:27 PM, Yang Zhang > >>>wrote: > > On 2015/1

Re: [RFCv6 PATCH 09/10] sched: deadline: use deadline bandwidth in scale_rt_capacity

2015-12-14 Thread Vincent Guittot
On 11 December 2015 at 08:48, Luca Abeni wrote: > Hi Vincent, > > On 12/10/2015 05:11 PM, Vincent Guittot wrote: > [...] >>> >>> If yes, I think your approach is safe (and easier to implement - modulo a >>> small >>> issue when a task terminates of switches to other scheduling policies; I >>> thin

Re: [Xen-devel] [PATCH RFC 0/3] Xen on Virtio

2015-12-14 Thread David Vrabel
On 07/12/15 16:19, Stefano Stabellini wrote: > Hi all, > > this patch series introduces support for running Linux on top of Xen > inside a virtual machine with virtio devices (nested virt scenario). > The problem is that Linux virtio drivers use virt_to_phys to get the > guest pseudo-physical addr

Re: [RFC PATCH 3/3] x86: Create dma_mark_dirty to dirty pages used for DMA by VM guest

2015-12-14 Thread Michael S. Tsirkin
On Sun, Dec 13, 2015 at 01:28:31PM -0800, Alexander Duyck wrote: > This patch is meant to provide the guest with a way of flagging DMA pages > as being dirty to the host when using a direct-assign device within a > guest. The advantage to this approach is that it is fairly simple, however > It cur

Re: [Xen-devel] [PATCH] xen/x86/pvh: Use HVM's flush_tlb_others op

2015-12-14 Thread David Vrabel
On 13/12/15 00:25, Boris Ostrovsky wrote: > Using MMUEXT_TLB_FLUSH_MULTI doesn't buy us much since the hypervisor > will likely perform same IPIs as would have the guest. > > More importantly, using MMUEXT_INVLPG_MULTI may not to invalidate the > guest's address on remote CPU (when, for example, V

[PATCH v4 1/3] clk: qcom: Add A53 PLL support

2015-12-14 Thread Georgi Djakov
Add support for the PLL, which generates the higher range of CPU frequencies on MSM8916 platforms. Signed-off-by: Georgi Djakov --- .../devicetree/bindings/clock/qcom,a53-pll.txt | 18 drivers/clk/qcom/Kconfig |9 ++ drivers/clk/qcom/Makefile

vsp1 BUG_ON() and crash (Re: [PATCH v9 03/12] media: Entities, pads and links)

2015-12-14 Thread Geert Uytterhoeven
On Mon, Feb 14, 2011 at 1:20 PM, Laurent Pinchart wrote: > +media_entity_create_link(struct media_entity *source, u16 source_pad, > +struct media_entity *sink, u16 sink_pad, u32 flags) > +{ > + struct media_link *link; > + struct media_link *backlink; > + > +

[PATCH v4 2/3] clk: qcom: Add regmap mux-div clocks support

2015-12-14 Thread Georgi Djakov
Add support for hardware that can switch both parent clocks and divider at the same time. This avoids generating intermediate frequencies from either the old parent clock and new divider or new parent clock and old divider combinations. Signed-off-by: Georgi Djakov --- drivers/clk/qcom/Makefile

Re: staging: lustre: Less checks in mgc_process_recover_log() after error detection

2015-12-14 Thread Dan Carpenter
On Mon, Dec 14, 2015 at 01:45:11PM +0100, SF Markus Elfring wrote: > >> Do you prefer to stash any changes together for a bigger update step? > > > > Yes. Patches 5 and 6 would be easier to review if they were folded into > > one patch. > > I do not like patch squashing for my update suggestions

[PATCH v4 3/3] clk: qcom: Add A53 clock driver

2015-12-14 Thread Georgi Djakov
Add a driver for the A53 Clock Controller. It is a hardware block that implements a combined mux and half integer divider functionality. It can choose between a fixed-rate clock or the dedicated A53 PLL. The source and the divider can be set both at the same time. This is required for enabling CPU

[PATCH v4 0/3] Add support for Qualcomm A53 CPU clock

2015-12-14 Thread Georgi Djakov
This patchset adds support for the A53 CPU clock and allows scaling of the CPU frequency on msm8916 based platforms. Changes since v3 (https://lkml.org/lkml/2015/8/12/585) * Split driver into two parts - and separate A53 PLL and A53 clock controller drivers. * Drop the safe switch hook patch

Re: [PATCH v1 02/10] clockevents/drivers: add MPS2 Timer driver

2015-12-14 Thread Rob Herring
On Wed, Dec 2, 2015 at 3:33 AM, Vladimir Murzin wrote: > MPS2 platform has simple 32 bits general purpose countdown timers. > > The driver uses the first detected timer as a clocksource and the rest > of the timers as a clockevent > > Signed-off-by: Vladimir Murzin > --- > drivers/clocksource/Kc

Re: [PATCH] i2c: allow building emev2 without slave mode again

2015-12-14 Thread Wolfram Sang
> > What about not ifdeffing the inline function and keep the build error > > whenever someone uses it without I2C_SLAVE being selected? > > The inline function is only added there for the case that I2C_SLAVE is > disabled, so that would be pointless. > > However, what we could do is move the ex

Re: [PATCH v2 3/3] keys, trusted: seal with a TPM2 authorization policy

2015-12-14 Thread Mimi Zohar
On Sun, 2015-12-13 at 17:42 +0200, Jarkko Sakkinen wrote: > TPM2 supports authorization policies, which are essentially > combinational logic statements repsenting the conditions where the data > can be unsealed based on the TPM state. This patch enables to use > authorization policies to seal trus

Re: [PATCH v2 1/3] keys, trusted: fix: *do not* allow duplicate key options

2015-12-14 Thread Mimi Zohar
On Sun, 2015-12-13 at 17:42 +0200, Jarkko Sakkinen wrote: > The trusted keys option parsing allows specifying the same option > multiple times. The last option value specified is used. > > This can be seen as a regression because: > > * No gain. > * Could be problematic if there is be options dep

Re: [PATCH 0/4] gpio: pxa: integrate with pincontrol

2015-12-14 Thread Linus Walleij
On Thu, Dec 10, 2015 at 6:31 PM, Robert Jarzmik wrote: > Linus Walleij writes: > >>>- the GPDR (gpio direction register) shared access bothers me a bit >> >> How is it shared and between what users? > > It's shared between the pin controller and the gpio controller. OK then it may be one of

Re: [patch] drm/tegra: checking for IS_ERR() instead of NULL

2015-12-14 Thread Thierry Reding
On Mon, Aug 17, 2015 at 05:37:03PM +0300, Dan Carpenter wrote: > The tegra_sor_hdmi_find_settings() function returns NULL on error and > not an ERR_PTR. > > Fixes: 459cc2c6800b ('drm/tegra: sor: Add HDMI support') > Signed-off-by: Dan Carpenter Sorry, this fell through the cracks. Applied now, t

Re: [PATCH v1 02/10] clockevents/drivers: add MPS2 Timer driver

2015-12-14 Thread Daniel Lezcano
On 12/02/2015 10:33 AM, Vladimir Murzin wrote: MPS2 platform has simple 32 bits general purpose countdown timers. The driver uses the first detected timer as a clocksource and the rest of the timers as a clockevent Signed-off-by: Vladimir Murzin --- [ ... ] +static void clockevent_mps2_wri

Re: [PATCH 5/9] drm/tegra: dc: add missing of_node_put

2015-12-14 Thread Thierry Reding
On Sat, Oct 24, 2015 at 04:42:31PM +0200, Julia Lawall wrote: > for_each_matching_node performs an of_node_get on each iteration, so > a break out of the loop requires an of_node_put. > > A simplified version of the semantic patch that fixes this problem is as > follows (http://coccinelle.lip6.fr)

Re: [PATCH] crypto: omap-des: Fix "schedule while atomic" bug

2015-12-14 Thread Herbert Xu
On Thu, Dec 10, 2015 at 06:06:59PM +0200, Semen Protsenko wrote: > From: Sam Protsenko > > When using DES module the next bug appears: > > BUG: scheduling while atomic: kworker/0:1/63/0x0102 > > With backtrace as follows: > > << cut here

Re: [PATCH 11/19] clocksource: fix __ftm_clk_init result

2015-12-14 Thread Daniel Lezcano
On 12/14/2015 11:34 AM, Andrzej Hajda wrote: Hi, Ping. [ ... ] Please as you fix this, also fix the caller. freq = __ftm_clk_init(np, "ftm-evt-counter-en", "ftm-evt"); -if (freq <= 0) +if (!freq) and, by the way, isn't there an issue if in the DT "ftm-src" is declared before "ftm-evt" ?

[LINUX RFC v3 3/4] mtd: spi-nor: add dual parallel mode support

2015-12-14 Thread Ranjit Waghmode
This patch adds support for dual parallel configuration mode by: - Adding required parameters like isparallel and shift to spi_nor structure. - Initializing all added parameters in spi_nor_scan() - Updating read_sr() and read_fsr() for getting status from both flashes - Increasing page_size, secto

RE: [PATCHSET v4] netfilter, cgroup: implement cgroup2 path match in xt_cgroup

2015-12-14 Thread Dexuan Cui
--- > net/Kconfig |6 + > net/core/dev.c |3 > net/core/netclassid_cgroup.c | 11 +- > net/core/netprio_cgroup.c| 19 > net/core/scm.c

[LINUX RFC v3 2/4] mtd: add spi_device instance to spi_nor struct

2015-12-14 Thread Ranjit Waghmode
This patch adds struct spi_device instacne to the spi_nor structure. Signed-off-by: Ranjit Waghmode --- V3 Changes: - No change in this patch V2 Changes: - This is new patch, basically splitted on request of Mark Brown --- drivers/mtd/devices/m25p80.c | 1 + include/linux/mtd/sp

Re: [PATCH v2 2/2] integrity: convert digsig to akcipher api

2015-12-14 Thread Mimi Zohar
On Sat, 2015-12-12 at 18:26 -0800, Tadeusz Struk wrote: > Convert asymmetric_verify to akcipher api. > > Signed-off-by: Tadeusz Struk > --- > security/integrity/Kconfig |1 + > security/integrity/digsig_asymmetric.c | 10 +++--- > 2 files changed, 4 insertions(+), 7 deletio

[LINUX RFC v3 4/4] spi: zynqmp: gqspi: add support for dual parallel mode configuration

2015-12-14 Thread Ranjit Waghmode
This patch adds support of dual parallel mode configuration for Zynq Ultrascale+ MPSoC GQSPI controller driver. Signed-off-by: Ranjit Waghmode --- V3 Changes: - No change in this patch V2 Changes: - No change in this patch --- drivers/spi/spi-zynqmp-gqspi.c | 24

Re: [PATCH 1/2] HID: Use multitouch driver for Type Covers

2015-12-14 Thread Bastien Nocera
On Mon, 2015-12-14 at 21:50 +0900, Akihiko Odaki wrote: > Use multitouch driver instead of microsoft one for Microsoft Surface > Type Covers. > > By using MT_CLS_EXPORT_ALL_INPUTS, the keyboards function as well as > the multitouch pads do. I've discussed this a couple of weeks back with Benjamin

[PATCH RFC 1/5] lightnvm: move ppa erase logic to core

2015-12-14 Thread Matias Bjørling
A device may function in single, dual or quad plane mode. The gennvm media manager manages this with explicit helpers. They convert a single ppa to 1, 2 or 4 separate ppas in a ppa list. To aid implementation of recovery and system blocks, this functionality can be moved directly into the core. Si

[PATCH RFC 4/5] lightnvm: introduce nvm_submit_ppa

2015-12-14 Thread Matias Bjørling
Internal logic for both core and media managers, does not have a backing bio for issuing I/Os. Introduce nvm_submit_ppa to allow raw I/Os to be submitted to the underlying device driver. The function request the device, ppa, data buffer and its length and will submit the I/O synchronously to the d

[PATCH RFC 5/5] lightnvm: core on-disk initialization

2015-12-14 Thread Matias Bjørling
An Open-Channel SSD shall be initialized before use. To initialize, we define an on-disk format, that keeps a small set of metadata to bring up the media manager on top of the device. The initial step is introduced to allow a user to format the disks for a given media manager. During format, a sys

[PATCH RFC 0/5] lightnvm: Introduce System Blocks

2015-12-14 Thread Matias Bjørling
Hi, Currently a device is brought up via the media manager, which detects if a device supports it. We like to allow a drive to be intialized to a specific media manager and therefore introduce new functionality in the core to scan a specific set of flash blocks, that maintains what we call system

[PATCH RFC 3/5] lightnvm: add sync support for submit_io

2015-12-14 Thread Matias Bjørling
Allow read and write I/Os to be issued synchronous. Users include the LightNVM core to implement system block support and similar. Signed-off-by: Matias Bjørling --- drivers/nvme/host/lightnvm.c | 7 +++ include/linux/lightnvm.h | 3 +++ 2 files changed, 10 insertions(+) diff --git a/dr

[PATCH RFC 2/5] lightnvm: refactor rqd ppa list into set/free

2015-12-14 Thread Matias Bjørling
A device may be driven in single, double or quad plane mode. In that case, the rqd must have either one, two, or four PPAs set for a single PPA sent to the device. Refactor this logic into their own functions to be shared by program/erase/read in the core. Signed-off-by: Matias Bjørling --- driv

Re: [PATCH 3/4] ARM: dts: rockchip: add eFuse node for rk3066a SoCs

2015-12-14 Thread Heiko Stübner
Am Montag, 14. Dezember 2015, 14:06:06 schrieb Heiko Stübner: > Hi srini, > > Am Montag, 14. Dezember 2015, 09:57:02 schrieb Srinivas Kandagatla: > > Heiko, > > > > Can you take the DT patches in this series via your tree. > > > > I picked up nvmem patches from this series. > > yep that was my

[LINUX RFC v3 1/4] spi: addng support for data stripe feature in core

2015-12-14 Thread Ranjit Waghmode
This patch enables data stripe feature in spi core. This feature is required to support dual parallel mode of ZynqMP GQSPI controller. To achieve the same an API SPI_MASTER_DATA_STRIPE is added. With data stripe enabled, - even bytes i.e. 0, 2, 4,... are transmitted on lower data bus - odd byt

[LINUX RFC v3 0/4] spi: add dual parallel mode support in Zynq MPSoC GQSPI controller

2015-12-14 Thread Ranjit Waghmode
This series adds dual parallel mode support for Zynq Ultrascale+ MPSoC GQSPI controller driver. What is dual parallel mode? --- ZynqMP GQSPI controller supports Dual Parallel mode with following functionalities: 1) Supporting two SPI flash memories operating in parallel. 8

Re: [PATCH] gpio: zynq: Do PM initialization earlier to support gpio hogs

2015-12-14 Thread Linus Walleij
On Thu, Dec 10, 2015 at 12:10 PM, Michal Simek wrote: > GPIO hogs registration is call at the end of gpiochip_add() function. > Calling sequence is: > gpiochip_add -> of_gpiochip_add -> of_gpiochip_scan_hogs -> > gpiod_hog -> gpiochip_request_own_desc -> __gpiod_request -> > chip->request -> zynq

Re: [PATCH] sched/fair: fix mul overflow on 32-bit systems

2015-12-14 Thread Morten Rasmussen
On Mon, Dec 14, 2015 at 12:54:53PM +0100, Peter Zijlstra wrote: > On Mon, Dec 14, 2015 at 06:42:24AM +0800, Yuyang Du wrote: > > > In most cases 'r' shouldn't exceed 1024 and util_sum not significantly > > > exceed 1024*47742, but in extreme cases like spawning lots of new tasks > > > it may potent

Re: [PATCH 3/4] ARM: dts: rockchip: add eFuse node for rk3066a SoCs

2015-12-14 Thread Heiko Stübner
Hi srini, Am Montag, 14. Dezember 2015, 09:57:02 schrieb Srinivas Kandagatla: > Heiko, > > Can you take the DT patches in this series via your tree. > > I picked up nvmem patches from this series. yep that was my plan ... just needed to wait for the nvmem parts to be picked. Thanks for the no

Re: [PATCH] clk: sunxi: fix handling return value of of_property_match_string

2015-12-14 Thread Maxime Ripard
Hi, On Mon, Dec 14, 2015 at 11:06:00AM +0100, Andrzej Hajda wrote: > The function can return negative values, so its result should > be assigned to signed variable. > > The problem has been detected using proposed semantic patch > scripts/coccinelle/tests/assign_signed_to_unsigned.cocci [1]. > >

Re: [PATCH V02 3/5] dmaengine: core: Introduce new, universal API to request a channel

2015-12-14 Thread kbuild test robot
Hi Peter, [auto build test WARNING on slave-dma/next] [also build test WARNING on v4.4-rc5 next-20151214] url: https://github.com/0day-ci/linux/commits/Peter-Ujfalusi/dmaengine-core-Skip-mask-matching-when-it-is-not-provided-to-private_candidate/20151214-192521 base: https://git.kernel.org

[PATCH 1/2] HID: Use multitouch driver for Type Covers

2015-12-14 Thread Akihiko Odaki
Use multitouch driver instead of microsoft one for Microsoft Surface Type Covers. By using MT_CLS_EXPORT_ALL_INPUTS, the keyboards function as well as the multitouch pads do. Signed-off-by: Akihiko Odaki --- drivers/hid/hid-core.c | 14 -- drivers/hid/hid-microsoft.c | 10 ---

[PATCH 2/2] HID: Add new Japanese Surface 3 Pro Type Cover

2015-12-14 Thread Akihiko Odaki
Add support for the new Japanese version of Microsoft Surface 3 Pro Type Cover. Signed-off-by: Akihiko Odaki --- drivers/hid/hid-ids.h | 1 + drivers/hid/hid-multitouch.c| 3 +++ drivers/hid/usbhid/hid-quirks.c | 1 + 3 files changed, 5 insertions(+) diff --git a/drivers/hid/hid-i

[PATCH v2 RESEND 0/4] Drivers: hv: utils: prevent crash when a utility driver is disabled host side

2015-12-14 Thread Vitaly Kuznetsov
Changes since v2: - No changes, this is just a resend. Changes since v1: - Don't re-introduce memory leak in hvt_op_write(), preserve the error code from on_msg() [Dan Carpenter] Original description: I'm observing a crash when a utility driver is disabled host side (e.g. 'Guest services' is d

[PATCH v2 RESEND 2/4] Drivers: hv: utils: rename outmsg_lock

2015-12-14 Thread Vitaly Kuznetsov
As a preparation to reusing outmsg_lock to protect test-and-set openrations on 'mode' rename it the more general 'lock'. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/hv_utils_transport.c | 14 +++--- drivers/hv/hv_utils_transport.h | 2 +- 2 files changed, 8 insertions(+), 8 deletions

Re: WARNING in crypto_wait_for_test

2015-12-14 Thread Herbert Xu
On Thu, Dec 10, 2015 at 03:14:24AM +0100, Stephan Mueller wrote: > > Herbert, alg_bind currently blacklists one bit in the mask and type bit > array. > Shouldn't we instead white-list the allowed bits? Well a bogus mask shouldn't lead to the warning anyway. The warning in question is triggered

[PATCH v2 RESEND 4/4] Drivers: hv: utils: fix crash when device is removed from host side

2015-12-14 Thread Vitaly Kuznetsov
The crash is observed when a service is being disabled host side while userspace daemon is connected to the device: [ 90.244859] general protection fault: [#1] SMP ... [ 90.800082] Call Trace: [ 90.800082] [] __fput+0xc8/0x1f0 [ 90.800082] [] fput+0xe/0x10 ... [ 90.800082] []

[PATCH v2 RESEND 3/4] Drivers: hv: utils: introduce HVUTIL_TRANSPORT_DESTROY mode

2015-12-14 Thread Vitaly Kuznetsov
When Hyper-V host asks us to remove some util driver by closing the appropriate channel there is no easy way to force the current file descriptor holder to hang up but we can start to respond -EBADF to all operations asking it to exit gracefully. As we're setting hvt->mode from two separate contex

[PATCH v2 RESEND 1/4] Drivers: hv: utils: fix memory leak on on_msg() failure

2015-12-14 Thread Vitaly Kuznetsov
inmsg should be freed in case of on_msg() failure to avoid memory leak. Preserve the error code from on_msg(). Signed-off-by: Vitaly Kuznetsov --- Changes since v1: - Preserve the error code from on_msg(). [Dan Carpenter] --- drivers/hv/hv_utils_transport.c | 7 --- 1 file changed, 4 inserti

Re: [PATCH v2 6/8] [Media] vcodec: mediatek: Add Mediatek V4L2 Video Encoder Driver

2015-12-14 Thread Hans Verkuil
Hi Tiffany, My apologies for the long delay, but I finally have time to do a review of this code. On 12/11/2015 10:55 AM, Tiffany Lin wrote: > From: Andrew-CT Chen > > Add v4l2 layer encoder driver for MT8173 > > Signed-off-by: Tiffany Lin > --- > drivers/media/platform/Kconfig

[PATCH v2] sched/fair: fix mul overflow on 32-bit systems

2015-12-14 Thread Andrey Ryabinin
Make 'r' 64-bit type to avoid overflow in 'r * LOAD_AVG_MAX' on 32-bit systems: UBSAN: Undefined behaviour in kernel/sched/fair.c:2785:18 signed integer overflow: 87950 * 47742 cannot be represented in type 'int' Fixes: 9d89c257dfb9 ("sched/fair: Rewrite runnable load and u

Re: staging: lustre: Less checks in mgc_process_recover_log() after error detection

2015-12-14 Thread SF Markus Elfring
>> Can you accept the proposed changes around the affected memory allocations? > > Just leave it as-is if there is no reason. I suggest to make the implementation of the function "mgc_process_recover_log" a bit more efficient. >> Do you prefer to stash any changes together for a bigger update s

Re: [PATCH 2/3 v9] livepatch: add sympos as disambiguator field to klp_reloc

2015-12-14 Thread Miroslav Benes
On Tue, 1 Dec 2015, Chris J Arges wrote: > In cases of duplicate symbols, sympos will be used to disambiguate instead > of val. By default sympos will be 0, and patching will only succeed if > the symbol is unique. Specifying a positive value will ensure that > occurrence of the symbol in kallsyms

[RFC][PATCH] zram: drop partial_io support

2015-12-14 Thread Sergey Senozhatsky
Hello, I've been thinking about this for some time, but didn't have a chance to properly investigate so far. My question is: why do we even bother with partial IO in zram? We set zram->disk->queue->limits.discard_granularity to PAGE_SIZE, just like the rest of queue configuration, e.g. bl

Re: [RFC][PATCH v2] timekeeping: Cap adjustments so they don't exceed the maxadj value

2015-12-14 Thread Miroslav Lichvar
On Thu, Dec 10, 2015 at 11:54:01AM -0800, John Stultz wrote: > Thus its been occasionally noted that users have seen > confusing warnings like: > > Adjusting tsc more than 11% (5941981 vs 7759439) > @@ -1612,13 +1615,32 @@ static __always_inline void > timekeeping_freqadjust(struct timekeepe

Re: [PATCH v4] acpi, apei, arm64: APEI initial support for aarch64.

2015-12-14 Thread Borislav Petkov
On Mon, Dec 14, 2015 at 11:46:59AM +, Will Deacon wrote: > We're in violent agreement. I'm just saying that's *why* > arch_apei_flush_tlb_one exists, as opposed to calling unmap_kernel_range > in the driver (which will attempt IPIs). On arm64, unmap_kernel_range > will actually work correctly,

Re: [PATCH 5/7] staging: lustre: Less checks in mgc_process_recover_log() after error detection

2015-12-14 Thread Dan Carpenter
On Mon, Dec 14, 2015 at 01:04:14PM +0100, SF Markus Elfring wrote: > >> A few checks would be performed by the mgc_process_recover_log() function > >> even if it is known already that the passed variable "pages" contained > >> a null pointer. > >> > >> * Let us return directly if a call of the kcal

Re: [RFC PATCH 2/8] Documentation: arm: define DT cpu capacity bindings

2015-12-14 Thread Juri Lelli
Hi Mark, On 11/12/15 17:49, Mark Brown wrote: > On Thu, Dec 10, 2015 at 05:58:20PM +, Juri Lelli wrote: > > On 10/12/15 15:30, Mark Brown wrote: > > > On Mon, Nov 23, 2015 at 08:06:31PM -0600, Rob Herring wrote: > > > > > In other words, I want to see these numbers have a defined method > >

Re: Re: [PATCH] char:misc minor is overflowing

2015-12-14 Thread Shivnandan Kumar
Hi Alan, Thanks for your reply. Patch is not intended to increase DYNAMIC_MINORS from 64. The error hadling in misc_register is not perfect. Ideally, when misc minor number limit exceed then it should return -EBUSY instead of already reserved minor number. For example, in my case value of "i"

Re: [PATCH] sched/fair: fix mul overflow on 32-bit systems

2015-12-14 Thread Morten Rasmussen
On Fri, Dec 11, 2015 at 11:18:56AM -0800, bseg...@google.com wrote: > Dietmar Eggemann writes: > > IMHO, on 32bit machine we can deal with (2147483648/47742/1024 = 43.9) > > 43 tasks before overflowing. > > > > Can we have a scenario where >43 tasks with se->avg.util_avg=1024 value > > get migrate

Re: 4.4-rc5: ugly warn on: 5 W+X pages found

2015-12-14 Thread Pavel Machek
On Mon 2015-12-14 09:04:03, Pavel Machek wrote: > Hi! > > > Kernel complains: > > And now, we are at -rc5, and kernel still complains... > > ...with a back trace, which is clearly completely useless, and just > there to make it scary and make people report. > > Problem is... noone cares for the

Re: [RFC PATCH 3/7] doc: dt: mtd: partition: add on-flash format binding

2015-12-14 Thread Michal Suchanek
On 14 December 2015 at 11:22, Geert Uytterhoeven wrote: > On Sat, Dec 12, 2015 at 6:51 AM, David Gibson > wrote: >> On Thu, Dec 10, 2015 at 12:43:24PM -0800, Brian Norris wrote: >>> On Mon, Dec 07, 2015 at 12:36:28PM +1100, David Gibson wrote: >>> > On Sat, Dec 05, 2015 at 10:33:30PM +0100, Micha

Possible bug in call_usermodehelper

2015-12-14 Thread NITU Vlad
Hello all, I'm trying to execute a user-space binary from a IRQ context so I started form this module which execute the reboot command. If I adapt this code to execute command with parameters I see that it silently fail. I specify that I use 3.12.47 kernel version. When I started digging into

Re: [PATCH tip/core/rcu 8/9] arm: Use common outgoing-CPU-notification code

2015-12-14 Thread Geert Uytterhoeven
Hi Paul, On Tue, May 12, 2015 at 11:50 PM, Paul E. McKenney wrote: > From: "Paul E. McKenney" > > This commit removes the open-coded CPU-offline notification with new > common code. In particular, this change avoids calling scheduler code > using RCU from an offline CPU that RCU is ignoring. T

Re: [PATCH] vgaarb: fix signal handling in vga_get()

2015-12-14 Thread Kirill A. Shutemov
On Mon, Dec 14, 2015 at 11:20:00AM +0100, David Herrmann wrote: > Hi > > On Mon, Dec 14, 2015 at 9:19 AM, Kirill A. Shutemov > wrote: > > On Thu, Dec 10, 2015 at 11:28:58AM +0100, David Herrmann wrote: > >> Hi > >> > >> On Mon, Nov 30, 2015 at 3:17 AM, Kirill A. Shutemov > >> wrote: > >> > There

<    3   4   5   6   7   8   9   10   11   >