Re: [PATCH 4.4 00/43] 4.4.66-stable review

2017-05-02 Thread Shuah Khan
On 05/01/2017 09:59 PM, kernelci.org bot wrote: > stable-rc/linux-4.4.y boot: 100 boots: 0 failed, 100 passed > (v4.4.65-44-gbb57d8400b2e) > > Full Boot Summary: > https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.4.y/kernel/v4.4.65-44-gbb57d8400b2e/ > Full Build Summary: >

Re: [PATCH v2 29/30] dt-bindings: add vendor prefix for bananapi

2017-05-02 Thread Rob Herring
+arm-soc On Mon, May 1, 2017 at 1:58 AM, Sean Wang wrote: > On Fri, 2017-04-28 at 15:37 -0500, Rob Herring wrote: >> On Wed, Apr 26, 2017 at 05:26:13PM +0800, sean.w...@mediatek.com wrote: >> > From: Sean Wang >> > >> > Banana Pi team in Sinovoip Co., Limited which are dedicated to >> > design

Re: [PATCH 1/3] drm: fourcc byteorder: drop DRM_FORMAT_BIG_ENDIAN

2017-05-02 Thread Emil Velikov
Hi Gerd, I did not have the change to follow through the discussion. Pardon if my suggestion have already been discussed. On 2 May 2017 at 14:34, Gerd Hoffmann wrote: > It's unused. > > Suggested-by: Daniel Vetter > Signed-off-by: Gerd Hoffmann > --- > include/uapi/drm/drm_fourcc.h | 2

Re: [PATCH 4.10 00/62] 4.10.14-stable review

2017-05-02 Thread Shuah Khan
On 05/01/2017 10:59 PM, kernelci.org bot wrote: > stable-rc/linux-4.10.y boot: 87 boots: 0 failed, 87 passed > (v4.10.13-63-gcabfe9402479) > > Full Boot Summary: > https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.10.y/kernel/v4.10.13-63-gcabfe9402479/ > Full Build Summary: >

Re: [PATCH 4.9 00/54] 4.9.26-stable review

2017-05-02 Thread Shuah Khan
On 05/01/2017 10:19 PM, kernelci.org bot wrote: > stable-rc/linux-4.9.y boot: 96 boots: 0 failed, 96 passed > (v4.9.25-55-g49bccd4690a2) > > Full Boot Summary: > https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.9.y/kernel/v4.9.25-55-g49bccd4690a2/ > Full Build Summary: >

[PATCH 0/6] mailbox: arm_mhu: add support for subchannels

2017-05-02 Thread Sudeep Holla
Hi Jassi, This series adds subchannel support to ARM MHU mailbox controller driver. Since SCPI never used second slot, we were able to use the existing driver as is. However, that's changing soon and the new SCMI protocol under development needs subchannel support. If you recall when you

[PATCH 1/6] mailbox: arm_mhu: reorder header inclusion and drop unneeded ones

2017-05-02 Thread Sudeep Holla
This patch just re-orders some of the headers includes and also drop the ones that are unnecessary. Cc: Alexey Klimov Cc: Jassi Brar Signed-off-by: Sudeep Holla --- drivers/mailbox/arm_mhu.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git

[PATCH 4/6] mailbox: arm_mhu: re-factor data structure to add subchannel support

2017-05-02 Thread Sudeep Holla
In order to support subchannels, we need a bit of reword around data structures that are per-channel. Since the number of subchannels are not fixed though restricted to maximum of 20, the channel assignment and initialization is move to xlate function. This patch also adds the platform data for

[PATCH 6/6] mailbox: arm_mhu: add name support to record mbox-name

2017-05-02 Thread Sudeep Holla
It's sometimes useful to identify the mailbox controller with the name as specified in the devicetree via mbox-name property especially in a system with multiple controllers. This patch adds support to read and record the mailbox controller name. Cc: Alexey Klimov Cc: Jassi Brar Signed-off-by:

[PATCH 3/6] mailbox: arm_mhu: migrate to threaded irq handler

2017-05-02 Thread Sudeep Holla
In preparation to introduce support for subchannels which require the interrupt handlers to be threaded, this patch moves the existing interrupt handler to threaded handler. Also it moves out the registering and freeing of the handlers from the mailbox startup and shutdown methods. This also is

[PATCH 2/6] Documentation: devicetree: add bindings to support ARM MHU subchannels

2017-05-02 Thread Sudeep Holla
The ARM MHU has mechanism to assert interrupt signals to facilitate inter-processor message based communication. It drives the signal using a 32-bit register, with all 32-bits logically ORed together. It also enables software to set, clear and check the status of each of the bits of this register

[PATCH 5/6] mailbox: arm_mhu: add full support for sub-channels

2017-05-02 Thread Sudeep Holla
We now have the basic infrastructure and binding to support subchannels on ARM MHU controller. This patch adds all the necessary mailbox operations to add support for the sub-channels. Maximum of 32 subchannels are supported on each physical channel, however the total number of subchannels is

RE: [PATCH 3/4] net: macb: Add hardware PTP support

2017-05-02 Thread Rafal Ozieblo
> From: Richard Cochran [mailto:richardcoch...@gmail.com] > Sent: 14 kwietnia 2017 20:29 > To: Rafal Ozieblo > Cc: David Miller ; nicolas.fe...@atmel.com; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; > devicet...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; >

Re: [PATCH RFC v2 5/6] proc: instantiate only pids that we can ptrace on 'limit_pids=1' mount option

2017-05-02 Thread Djalal Harouni
Hello Andy, (Sorry for my late response) On Thu, Apr 27, 2017 at 12:09 AM, Andy Lutomirski wrote: > On Tue, Apr 25, 2017 at 5:23 AM, Djalal Harouni wrote: >> If "limit_pids=1" mount option is set then do not instantiate pids that >> we can not ptrace. "limit_pids=1" means that procfs should

Re: [RESEND PATCH] spi: bcm63xx-hsspi: Export OF device ID table as module aliases

2017-05-02 Thread Jonas Gorski
On 1 May 2017 at 22:13, Andres Galacho wrote: > The device table is required to load modules based on > modaliases. After adding MODULE_DEVICE_TABLE, below entries > for example will be added to module.alias: > alias: of:N*T*Cbrcm,bcm6328-hsspiC* > alias:

error value for "internal error"

2017-05-02 Thread Miklos Szeredi
I've been wondering what to return for soft asserts like this: if (WARN_ON(something unexpected)) return -E; EINVAL doesn't fit because it means the input from userspace was wrong. EIO means something went bad with the hardware. There's no "software error" or

Re: [PATCH] tools/kvm: fix top level makefile

2017-05-02 Thread Paolo Bonzini
On 11/04/2017 17:34, Justin M. Forbes wrote: > The top level tools/Makefile includes kvm_stat as a target in help, but > the actual target is missing. > > Signed-off-by: Justin M. Forbes > --- > tools/Makefile | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git

[PATCH V2] pwm: tegra: Set maximum pwm clock source per SoC tapeout

2017-05-02 Thread Laxman Dewangan
The PWM hardware IP is taped-out with different maximum frequency on different SoCs. >From HW team: Before Tegra186, it is 38.4MHz. In Tegra186, it is 102MHz. Add support to limit the clock source frequency to the maximum IP supported frequency. Provide these values via SoC

Re: net/ipv6: warning in inet6_ifa_finish_destroy

2017-05-02 Thread Mike Manning
On 28/04/17 21:39, Cong Wang wrote: > On Fri, Apr 28, 2017 at 6:08 AM, Andrey Konovalov > wrote: >> Hi, >> >> I've got the following error report while fuzzing the kernel with syzkaller. >> >> On commit 5a7ad1146caa895ad718a534399e38bd2ba721b7 (4.11-rc8). >> >> C reproducer and .config are

Re: [v6,10/23] drivers/fsi: Add device read/write/peek API

2017-05-02 Thread Eddie James
On Apr 10, 2017, at 3:46 PM, Christopher Bostic wrote: From: Jeremy Kerr This change introduces the fsi device API: simple read, write and peek accessors for the devices' address spaces. Includes contributions from Chris Bostic and Edward A. James . Signed-off-by: Edward A. James

Re: [PATCH v4 1/5] dt-bindings: gpu: add bindings for the ARM Mali Midgard GPU

2017-05-02 Thread Rob Herring
On Tue, May 2, 2017 at 6:23 AM, Guillaume Tucker wrote: > Hi Rob, > > On 28/04/17 20:27, Rob Herring wrote: >> >> On Tue, Apr 25, 2017 at 02:16:16PM +0100, Guillaume Tucker wrote: > > >>> diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt >>>

Re: [PATCH 1/3] drm: fourcc byteorder: drop DRM_FORMAT_BIG_ENDIAN

2017-05-02 Thread Gerd Hoffmann
> > diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h > > index 995c8f9c69..305bc34be0 100644 > > --- a/include/uapi/drm/drm_fourcc.h > > +++ b/include/uapi/drm/drm_fourcc.h > > @@ -33,8 +33,6 @@ extern "C" { > > #define fourcc_code(a, b, c, d) ((__u32)(a) | ((__u32)(b)

Re: 4.8.8 kernel trigger OOM killer repeatedly when I have lots of RAM that should be free

2017-05-02 Thread Marc MERLIN
On Tue, May 02, 2017 at 09:44:33AM +0200, Michal Hocko wrote: > On Mon 01-05-17 21:12:35, Marc MERLIN wrote: > > Howdy, > > > > Well, sadly, the problem is more or less back is 4.11.0. The system doesn't > > really > > crash but it goes into an infinite loop with > > [34776.826800] BUG:

Re: [GIT PULL] PCI fixes for v4.10

2017-05-02 Thread Sinan Kaya
On 5/2/2017 6:49 AM, Lukas Wunner wrote: > On Mon, May 01, 2017 at 10:41:20PM -0400, Sinan Kaya wrote: >> On 5/1/2017 9:54 PM, Lukas Wunner wrote: >>> (b) ASPM L1 enabled on boot, but disabled after powering off and back on >>> => I believe Sinan is working on this (+cc). >> >> The decision

Re: [usb-host] question about pointer dereference before null check

2017-05-02 Thread Alan Stern
On Mon, 1 May 2017, Gustavo A. R. Silva wrote: > Hello everybody, > > While taking a look into Coverity ID 100828 I ran into the following > piece of code at drivers/usb/host/ehci-sched.c:1096: > > u32 addr; > int think_time; > int hs_transfers; > > addr =

Hopefully

2017-05-02 Thread Rita Micheal
Dear friend, My name is Mr Micheal Rita, I am the Bill and Exchange (assistant) Manager of Bank of Africa Ouagadougou, Burkina Faso. In my department I discovered an abandoned sum of teen million five hundred thousand United State of American dollars (10.5MILLION USA DOLLARS) in an account that

[PATCH 0/6] md: Fine-tuning for some function implementations

2017-05-02 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 2 May 2017 16:12:34 +0200 Some update suggestions were taken into account from static source code analysis. Markus Elfring (6): Replace seven seq_printf() calls by seq_putc() Replace 17 seq_printf() calls by seq_puts() Adjust four function calls together

[PATCH] Revert "KVM: Support vCPU-based gfn->hva cache"

2017-05-02 Thread Paolo Bonzini
This reverts commit bbd6411513aa8ef3ea02abab61318daf87c1af1e. I've been sitting on this revert for too long and it unfortunately missed 4.11. It's also the reason why I haven't merged ring-based dirty tracking for 4.12. Using kvm_vcpu_memslots in kvm_gfn_to_hva_cache_init and

[PATCH 1/6] md: Replace seven seq_printf() calls by seq_putc()

2017-05-02 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 2 May 2017 14:01:17 +0200 A few single characters should be put into a sequence. Thus use the corresponding function "seq_putc". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/md/md.c | 16

[PATCH 2/6] md: Replace 17 seq_printf() calls by seq_puts()

2017-05-02 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 2 May 2017 14:22:45 +0200 Strings which did not contain data format specifications should be put into a sequence. Thus use the corresponding function "seq_puts". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

[PATCH 3/6] md: Adjust four function calls together with a variable assignment

2017-05-02 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 2 May 2017 15:07:21 +0200 The script "checkpatch.pl" pointed information out like the following. ERROR: do not use assignment in if condition Thus fix affected source code places. Signed-off-by: Markus Elfring --- drivers/md/md.c | 12 1 file

Re: [PATCH 1/3] drm: fourcc byteorder: drop DRM_FORMAT_BIG_ENDIAN

2017-05-02 Thread Pekka Paalanen
On Tue, 2 May 2017 14:53:43 +0100 Emil Velikov wrote: > Hi Gerd, > > I did not have the change to follow through the discussion. > Pardon if my suggestion have already been discussed. > > On 2 May 2017 at 14:34, Gerd Hoffmann wrote: > > It's unused. > > > > Suggested-by: Daniel Vetter > >

Re: [patch 2/2] MM: allow per-cpu vmstat_threshold and vmstat_worker configuration

2017-05-02 Thread Luiz Capitulino
On Tue, 25 Apr 2017 10:57:19 -0300 Marcelo Tosatti wrote: > The per-CPU vmstat worker is a problem on -RT workloads (because > ideally the CPU is entirely reserved for the -RT app, without > interference). The worker transfers accumulated per-CPU > vmstat counters to global counters. This is a

[PATCH 4/6] md: Use seq_puts() in faulty_status()

2017-05-02 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 2 May 2017 15:20:30 +0200 A string which did not contain a data format specification should be put into a sequence. Thus use the corresponding function "seq_puts". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

[PATCH 5/6] md: Adjust six function calls together with a variable assignment in faulty_status()

2017-05-02 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 2 May 2017 15:35:35 +0200 The script "checkpatch.pl" pointed information out like the following. ERROR: do not use assignment in if condition Thus fix the affected source code places. Signed-off-by: Markus Elfring --- drivers/md/faulty.c | 19

Re: [PATCH RFC v2 4/6] proc: support mounting private procfs instances inside same pid namespace

2017-05-02 Thread Djalal Harouni
On Thu, Apr 27, 2017 at 12:13 AM, Andy Lutomirski wrote: > On Tue, Apr 25, 2017 at 5:23 AM, Djalal Harouni wrote: [...] >> We have to align procfs and modernize it to have a per mount context >> where at least the mount option do not propagate to all other mounts, >> then maybe we can continue

[PATCH 6/6] md: Add some spaces for better code readability

2017-05-02 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 2 May 2017 16:00:45 +0200 Use space characters and blank lines at some source code places according to the Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/md/faulty.c | 27 +++ 1 file changed, 15 insertions(+),

Re: [PATCH] usb: gadget: udc: add null check before pointer dereference

2017-05-02 Thread Alan Stern
On Mon, 1 May 2017, Gustavo A. R. Silva wrote: > Add null check before dereferencing dev->regs pointer inside > net2280_led_shutdown() function. > > Addresses-Coverity-ID: 101783 > Signed-off-by: Gustavo A. R. Silva > --- > drivers/usb/gadget/udc/net2280.c | 8 +--- > 1 file changed, 5

Re: [PATCH] md/bitmap: use i_blocksize()

2017-05-02 Thread Geliang Tang
On Sun, Jan 22, 2017 at 09:50:30AM +0800, Geliang Tang wrote: > On Sat, Jan 21, 2017 at 10:13:07AM -0800, Shaohua Li wrote: > > On Fri, Jan 20, 2017 at 10:29:52PM +0800, Geliang Tang wrote: > > > Since i_blocksize() helper has been defined in fs.h, use it instead > > > of open-coding. > > > >

Re: [PATCH 00/14] sched/topology fixes

2017-05-02 Thread Peter Zijlstra
On Fri, Apr 28, 2017 at 03:53:39PM +0200, Peter Zijlstra wrote: > Also, the following occurred to me: > > sg_span & sg_mask == sg_mask > > Therefore, we don't need to do the whole "sg_span &" business. > > Hmm? > @@ -856,7 +857,7 @@ build_sched_groups(struct sched_domain * >

[PATCH V2 0/3] try to save some memory for kmem_cache in some cases

2017-05-02 Thread Wei Yang
kmem_cache is a frequently used data in kernel. During the code reading, I found maybe we could save some space in some cases. 1. On 64bit arch, type int will occupy a word if it doesn't sit well. 2. cpu_slab->partial is just used when CONFIG_SLUB_CPU_PARTIAL is set 3. cpu_partial is just used

[PATCH V2 1/3] mm/slub: pack red_left_pad with another int to save a word

2017-05-02 Thread Wei Yang
On 64bit arch, struct is 8-bytes aligned, so int will occupy a word if it doesn't sits well. This patch pack red_left_pad with reserved to save 8 bytes for struct kmem_cache on a 64bit arch. Signed-off-by: Wei Yang --- include/linux/slub_def.h | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH V2 3/3] mm/slub: wrap kmem_cache->cpu_partial in config CONFIG_SLUB_CPU_PARTIAL

2017-05-02 Thread Wei Yang
kmem_cache->cpu_partial is just used when CONFIG_SLUB_CPU_PARTIAL is set, so wrap it with config CONFIG_SLUB_CPU_PARTIAL will save some space on 32bit arch. This patch wrap kmem_cache->cpu_partial in config CONFIG_SLUB_CPU_PARTIAL and wrap its sysfs too. Signed-off-by: Wei Yang --- v2: define

[PATCH V2 2/3] mm/slub: wrap cpu_slab->partial in CONFIG_SLUB_CPU_PARTIAL

2017-05-02 Thread Wei Yang
cpu_slab's field partial is used when CONFIG_SLUB_CPU_PARTIAL is set, which means we can save a pointer's space on each cpu for every slub item. This patch wrap cpu_slab->partial in CONFIG_SLUB_CPU_PARTIAL and wrap its sysfs too. Signed-off-by: Wei Yang --- v2: define slub_percpu_partial() to

[PATCH] ARM: imx_v6_v7_defconfig: Enable cpufreq governors

2017-05-02 Thread Leonard Crestez
Enable more common cpufreq governors in imx defconfig because this is very useful for testing. In particular you can't use cpufreq-set -f $FREQ without explicitly defining CONFIG_CPU_FREQ_GOV_USERSPACE=y. Signed-off-by: Leonard Crestez --- It might make sense for all governors to be enabled by

Re: [PATCH 2/2] efi/efi_test: drop useless kfree

2017-05-02 Thread Geliang Tang
On Tue, May 02, 2017 at 03:11:45PM +0800, ivanhu wrote: > > > On 04/29/2017 09:42 AM, Geliang Tang wrote: > > Drop useless kfree when memdup_user() failed, since we have already > > called kfree in memdup_user(). > > > > Signed-off-by: Geliang Tang > > --- > >

Re: [PATCH v4 1/5] dt-bindings: gpu: add bindings for the ARM Mali Midgard GPU

2017-05-02 Thread Guillaume Tucker
On 02/05/17 15:13, Rob Herring wrote: On Tue, May 2, 2017 at 6:23 AM, Guillaume Tucker wrote: Hi Rob, On 28/04/17 20:27, Rob Herring wrote: On Tue, Apr 25, 2017 at 02:16:16PM +0100, Guillaume Tucker wrote: diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt

Re: [PATCH v2] IB/i40iw: use setup_timer

2017-05-02 Thread Geliang Tang
On Sat, Apr 29, 2017 at 09:45:27AM -0400, Doug Ledford wrote: > On 4/28/2017 9:37 PM, Geliang Tang wrote: > > Use setup_timer() instead of init_timer() to simplify the code. > > > > Signed-off-by: Geliang Tang > > --- > > Changes in v2: > > - use setup_timer() in i40iw_terminate_start_timer().

Re: [PATCH] vmscan: scan pages until it founds eligible pages

2017-05-02 Thread Minchan Kim
Hi Michal, On Tue, May 02, 2017 at 09:54:32AM +0200, Michal Hocko wrote: > On Tue 02-05-17 14:14:52, Minchan Kim wrote: > > Oops, forgot to add lkml and linux-mm. > > Sorry for that. > > Send it again. > > > > >From 8ddf1c8aa15baf085bc6e8c62ce705459d57ea4c Mon Sep 17 00:00:00 2001 > > From:

Re: [PATCH 06/14] sched/topology,debug: Verify the first group matches the child domain

2017-05-02 Thread Peter Zijlstra
On Mon, May 01, 2017 at 05:13:26PM -0400, Rik van Riel wrote: > On Fri, 2017-04-28 at 15:20 +0200, Peter Zijlstra wrote: > > Signed-off-by: Peter Zijlstra (Intel) > > This could use a changelog. Yes indeed... I put off writing one because $hard, and clearly I forgot entirely :-/ How's this?

Re: [PATCH v2 1/9] dt-bindings: display: sun4i: Add component endpoint ID numbering scheme

2017-05-02 Thread Maxime Ripard
Hi, On Fri, Apr 28, 2017 at 08:48:41AM -0500, Rob Herring wrote: > On Fri, Apr 21, 2017 at 04:38:49PM +0800, Chen-Yu Tsai wrote: > > The Allwinner display pipeline contains many hardware components, some > > of which can consume data from one of multiple upstream components. > > The numbering

Re: [PATCH 00/14] sched/topology fixes

2017-05-02 Thread Lauro Venancio
On 05/02/2017 11:43 AM, Peter Zijlstra wrote: > On Fri, Apr 28, 2017 at 03:53:39PM +0200, Peter Zijlstra wrote: >> Also, the following occurred to me: >> >> sg_span & sg_mask == sg_mask >> >> Therefore, we don't need to do the whole "sg_span &" business. >> >> Hmm? >> @@ -856,7 +857,7 @@

Re: [PATCH 1/4] PCI: add resizeable BAR infrastructure v4

2017-05-02 Thread Christian König
Am 26.04.2017 um 18:45 schrieb Andy Shevchenko: [SNIP] -#define PCI_REBAR_CTRL_NBAR_MASK (7 << 5)/* mask for # bars */ -#define PCI_REBAR_CTRL_NBAR_SHIFT 5 /* shift for # bars */ +#define PCI_REBAR_CTRL_NBAR_MASK (7 << 5)/* mask for # BARs */ +#define

Re: [PATCH v2 1/2] mm: Uncharge poisoned pages

2017-05-02 Thread Laurent Dufour
On 28/04/2017 15:48, Michal Hocko wrote: > On Fri 28-04-17 11:17:34, Laurent Dufour wrote: >> On 28/04/2017 09:31, Michal Hocko wrote: >>> [CC Johannes and Vladimir - the patch is >>> http://lkml.kernel.org/r/1493130472-22843-2-git-send-email-lduf...@linux.vnet.ibm.com] >>> >>> On Fri 28-04-17

[PATCH] input: edt-ft5x06: increase allowed data range for threshold parameter

2017-05-02 Thread Martin Kepplinger
The datasheet and application note does not mention an allowed range for the M09_REGISTER_THRESHOLD parameter. One of our customers needs to set lower values than 20 and they seem to work just fine on EDT EP0xx0M09 with T5x06 touch. So, lacking a known lower limit, we increase the range for

Re: [PATCH 1/3] drm: fourcc byteorder: drop DRM_FORMAT_BIG_ENDIAN

2017-05-02 Thread Gerd Hoffmann
Hi, > I also think that this patch requires more comments than the > commit message has at the moment. > > Removing the definition also removes the possibility to describe a lot > of pixel formats, so that should definitely be mentioned. I think it > would also be good to have some kind of

Re: [PATCH 2/7] perf config: Check list empty before showing configs

2017-05-02 Thread Arnaldo Carvalho de Melo
Em Wed, Apr 26, 2017 at 09:21:03PM +0900, Taeung Song escreveu: > If existent config files contains nothing, > the sections list in config_set can be empty. > > So check not only NULL pointer of config_set but > also the list in config_set. > +++ b/tools/perf/builtin-config.c > @@ -75,7 +75,7

Re: [PATCH] vmscan: scan pages until it founds eligible pages

2017-05-02 Thread Michal Hocko
On Tue 02-05-17 23:51:50, Minchan Kim wrote: > Hi Michal, > > On Tue, May 02, 2017 at 09:54:32AM +0200, Michal Hocko wrote: > > On Tue 02-05-17 14:14:52, Minchan Kim wrote: > > > Oops, forgot to add lkml and linux-mm. > > > Sorry for that. > > > Send it again. > > > > > > >From

Re: [PATCH] Allow to use DMA_CTRL_REUSE flag for all channel types

2017-05-02 Thread Eugeniy Paltsev
Hi Vinod, On Mon, 2017-05-01 at 11:21 +0530, Vinod Koul wrote: > On Fri, Apr 28, 2017 at 04:37:46PM +0300, Eugeniy Paltsev wrote: > > In the current implementation dma_get_slave_caps is used to check > > state of descriptor_reuse option. But dma_get_slave_caps includes > > check if the channel

Re: [PATCH] Remove ARM errata Workarounds 458693 and 460075

2017-05-02 Thread Catalin Marinas
On Tue, May 02, 2017 at 01:27:54PM +0100, Robin Murphy wrote: > On 18/04/17 16:57, Catalin Marinas wrote: > > On Sun, Apr 16, 2017 at 09:04:46AM +0100, Russell King - ARM Linux wrote: > >> On Sat, Apr 15, 2017 at 07:06:06PM -0500, Nisal Menuka wrote: > >>> According to ARM, these errata exist only

Re: [PATCH V2] pwm: tegra: Set maximum pwm clock source per SoC tapeout

2017-05-02 Thread Jon Hunter
On 02/05/17 15:05, Laxman Dewangan wrote: > The PWM hardware IP is taped-out with different maximum frequency > on different SoCs. > > From HW team: > Before Tegra186, it is 38.4MHz. > In Tegra186, it is 102MHz. > > Add support to limit the clock source frequency to the maximum IP >

[GIT PULL] Hardware module parameter annotation for secure boot

2017-05-02 Thread David Howells
Hi Linus, Can you pull this branch, please? It consists of a set of patches that annotate module parameters that configure hardware resources including ioports, iomem addresses, irq lines and dma channels. This allows a future patch to prohibit the use of such module parameters to prevent that

Re: linux-next: Tree for May 2 (xen: events_base.c)

2017-05-02 Thread Randy Dunlap
On 05/01/17 23:47, Stephen Rothwell wrote: > Hi all, > > Please do not add any v4.13 destined material in your linux-next > included branches until after v4.12-rc1 has been released. > > Changes since 20170501: > on x86_64: drivers/built-in.o: In function `set_affinity_irq':

[PATCH tip/core/rcu 0/2] Debloat rcu_segcblist header file

2017-05-02 Thread Paul E. McKenney
Hello! This series debloats the include/linux/rcu_segcblist.h include file: 1. Leave data structures in include/linux/rcu_segcblist.h, but move functions to kernel/rcu/rcu_segcblist.h, courtesy of Ingo Molnar. 2. Move non-trivial functions from

[PATCH tip/core/rcu 2/2] rcu: Separately compile large rcu_segcblist functions

2017-05-02 Thread Paul E. McKenney
This commit creates a new kernel/rcu/rcu_segcblist.c file that contains non-trivial segcblist functions. Trivial functions remain as static inline functions in kernel/rcu/rcu_segcblist.h Reported-by: Linus Torvalds Signed-off-by: Paul E. McKenney Cc: Peter Zijlstra Cc: Thomas Gleixner ---

[PATCH tip/core/rcu 1/2] srcu: Debloat the header

2017-05-02 Thread Paul E. McKenney
From: Ingo Molnar Linus noticed that the has huge inline functions which should not be inline at all. As a first step in cleaning this up, move them all to kernel/rcu/ and only keep an absolute minimum of data type defines in the header: before: -rw-r--r-- 1 mingo mingo 22284 May 2 10:25

RE: Asmedia USB 1343 crashes

2017-05-02 Thread David Laight
From: Thomas Fjellstrom > Sent: 01 May 2017 14:40 > I've got a 970 Pro gaming aura motherboard with an Asmedia 1343 Usb 3.1 > controller. It's been consistently throwing errors and eventually crashing and > becomming unresponsive. ... I've an earlier Asmedia 1042 controller. It has a bug (which I

Re: [PATCH 1/1 linux-next] btrfs: kmap() can't fail

2017-05-02 Thread David Sterba
On Tue, Apr 25, 2017 at 08:11:02PM +0200, Fabian Frederick wrote: > Remove NULL test on kmap() > > Signed-off-by: Fabian Frederick Reviewed-by: David Sterba

Re: [PATCH 2/4] PCI: add functionality for resizing resources v3

2017-05-02 Thread Christian König
Am 26.04.2017 um 19:00 schrieb Andy Shevchenko: On Tue, Apr 25, 2017 at 4:19 PM, Christian König wrote: From: Christian König This allows device drivers to request resizing their BARs. The function only tries to reprogram the windows of the bridge directly above the requesting device and

Re: [PATCH] usb: gadget: udc: add null check before pointer dereference

2017-05-02 Thread Gustavo A. R. Silva
Hi Alan, Quoting Alan Stern : On Mon, 1 May 2017, Gustavo A. R. Silva wrote: Add null check before dereferencing dev->regs pointer inside net2280_led_shutdown() function. Addresses-Coverity-ID: 101783 Signed-off-by: Gustavo A. R. Silva --- drivers/usb/gadget/udc/net2280.c | 8 +--- 1

[PATCH v4 RFT 1/2] powerpc/fadump: reduce memory consumption for capture kernel

2017-05-02 Thread Michal Suchanek
With fadump (dump capture) kernel booting like a regular kernel, it almost needs the same amount of memory to boot as the production kernel, which is unwarranted for a dump capture kernel. But with no option to disable some of the unnecessary subsystems in fadump kernel, that much memory is wasted

[PATCH v4 RFT 2/2] powerpc/fadump: update documentation about 'fadump_append=' parameter

2017-05-02 Thread Michal Suchanek
With the introduction of 'fadump_append=' parameter to pass additional parameters to fadump (capture) kernel, update documentation about it. Signed-off-by: Hari Bathini Signed-off-by: Michal Suchanek --- Documentation/powerpc/firmware-assisted-dump.txt | 8 +++- 1 file changed, 7

Re: [Xen-devel] linux-next: Tree for May 2 (xen: events_base.c)

2017-05-02 Thread Boris Ostrovsky
On 05/02/2017 11:34 AM, Randy Dunlap wrote: > On 05/01/17 23:47, Stephen Rothwell wrote: >> Hi all, >> >> Please do not add any v4.13 destined material in your linux-next >> included branches until after v4.12-rc1 has been released. >> >> Changes since 20170501: >> > on x86_64: > >

Re: [PATCH v2 3/4] iio: accel: adxl345: Setup DATA_READY trigger

2017-05-02 Thread Jonathan Cameron
On 02/05/17 04:01, Rob Herring wrote: > On Sun, Apr 30, 2017 at 7:32 PM, Jonathan Cameron wrote: >> On 29/04/17 08:49, Eva Rachel Retuya wrote: >>> The ADXL345 provides a DATA_READY interrupt function to signal >>> availability of new data. This interrupt function is latched and can be >>>

Re: [usb-host] question about pointer dereference before null check

2017-05-02 Thread Gustavo A. R. Silva
Hi Alan, Quoting Alan Stern : On Mon, 1 May 2017, Gustavo A. R. Silva wrote: Hello everybody, While taking a look into Coverity ID 100828 I ran into the following piece of code at drivers/usb/host/ehci-sched.c:1096: u32 addr; int think_time; int

Re: [PATCH RFC] hugetlbfs 'noautofill' mount option

2017-05-02 Thread Prakash Sangappa
On 5/2/17 3:53 AM, Anshuman Khandual wrote: On 05/01/2017 11:30 PM, Prakash Sangappa wrote: Some applications like a database use hugetblfs for performance reasons. Files on hugetlbfs filesystem are created and huge pages allocated using fallocate() API. Pages are deallocated/freed using

[PATCH] usb: host: remove unnecessary null check

2017-05-02 Thread Gustavo A. R. Silva
Remove unnecessary null check. udev->tt cannot ever be NULL when this section of code runs. Addresses-Coverity-ID: 100828 Cc: Alan Stern Signed-off-by: Gustavo A. R. Silva --- drivers/usb/host/ehci-sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v2 4/4] iio: accel: adxl345: Add support for triggered buffer

2017-05-02 Thread Jonathan Cameron
On 02/05/17 13:23, Eva Rachel Retuya wrote: > On Mon, May 01, 2017 at 01:42:29AM +0100, Jonathan Cameron wrote: > [...] >> Few minor bits inline... I'm a little bit in two minds about the >> holding up waiting for new data when using another trigger... >> >> Jonathan > [...] >>> static int

Re: [PATCH] device-dax: fix sysfs attribute deadlock

2017-05-02 Thread Dan Williams
On Tue, May 2, 2017 at 3:43 AM, Yi Zhang wrote: > Verified this patch on 4.11. > > Tested-by: Yi Zhang Thanks!

Re: [PATCH v3 0/4] Improved seccomp logging

2017-05-02 Thread Andy Lutomirski
On Mon, May 1, 2017 at 7:41 PM, Tyler Hicks wrote: > On 04/27/2017 07:42 PM, Kees Cook wrote: >> On Thu, Apr 27, 2017 at 3:17 PM, Tyler Hicks wrote: >>> Quick update... I finished the move from the high-water mark >>> log_max_action sysctl to the bitmask based actions_logged sysctl. >> >>

Re: [PATCH] mtd: nand: gpio: make nCE GPIO optional

2017-05-02 Thread Brian Norris
Hi Christophe, Boris, On Tue, May 02, 2017 at 11:03:34AM +0200, Boris Brezillon wrote: > On Tue, 2 May 2017 07:47:40 +0200 > Christophe LEROY wrote: > > > Le 01/05/2017 à 23:46, Brian Norris a écrit : > > > On Fri, Feb 10, 2017 at 03:01:10PM +0100, Christophe Leroy wrote: > > >> On some

Re: LKML: "Fixes as per checkpatch.pl" patches

2017-05-02 Thread Joe Perches
On Tue, 2017-05-02 at 18:08 +0300, Ali Kaasinen wrote: > Hellooo, presumably contacted the right people. > > I often browse LKML, and patches saying "Fix style issues as reported by > checkpatch.pl", and Greg responding "That's really vague, you need to be > specific, and only fix one type of

[PATCH tip/core/rcu 0/3] Open-code trivial rcu_cblist accessors

2017-05-02 Thread Paul E. McKenney
Hello! And this series open-codes trivial rcu_cblist structure accessors: 1. Open-code rcu_cblist_empty(p) as !p->head. 2. Open-code rcu_cblist_n_cbs(p) as p->len. 3. Open-code rcu_cblist_n_lazy_cbs(p) as p->len_lazy.

Re: [PATCH v4] irqchip/gicv3-its: Avoid memory over allocation for ITEs

2017-05-02 Thread Marc Zyngier
On Sun, Apr 30 2017 at 3:36:15 pm BST, Shanker Donthineni wrote: > We are always allocating extra 255Bytes of memory to handle ITE > physical address alignment requirement. The kmalloc() satisfies > the ITE alignment since the ITS driver is requesting a minimum > size of ITS_ITT_ALIGN bytes. >

[PATCH tip/core/rcu 1/3] rcu: Open-code the rcu_cblist_empty() function

2017-05-02 Thread Paul E. McKenney
Because the rcu_cblist_empty() just samples the ->head pointer, and because the rcu_cblist structure is quite straightforward, it makes sense to open-code rcu_cblist_empty(p) as !p->head, cutting out a level of indirection. This commit makes this change. Reported-by: Ingo Molnar Signed-off-by:

[PATCH tip/core/rcu 3/3] rcu: Open-code the rcu_cblist_n_lazy_cbs() function

2017-05-02 Thread Paul E. McKenney
Because the rcu_cblist_n_lazy_cbs() just samples the ->len_lazy counter, and because the rcu_cblist structure is quite straightforward, it makes sense to open-code rcu_cblist_n_lazy_cbs(p) as p->len_lazy, cutting out a level of indirection. This commit makes this change. Reported-by: Ingo Molnar

Re: [PATCH] x86: kvm: Avoid guest page table walk when gpa_available is set

2017-05-02 Thread Paolo Bonzini
On 28/04/2017 21:15, Brijesh Singh wrote: > Hi Radim, > >> >> This will probably return false negatives when then vcpu->arch.gpa_val >> couldn't be used anyway (possibly after a VM exits), so it is hard to >> draw a conclusion. >> >> I would really like if we had a solution that passed the gpa

[PATCH tip/core/rcu 2/3] rcu: Open-code the rcu_cblist_n_cbs() function

2017-05-02 Thread Paul E. McKenney
Because the rcu_cblist_n_cbs() just samples the ->len counter, and because the rcu_cblist structure is quite straightforward, it makes sense to open-code rcu_cblist_n_cbs(p) as p->len, cutting out a level of indirection. This commit makes this change. Reported-by: Ingo Molnar Signed-off-by:

Re: [BUG] cannot mount nfs, bisected to 0db10944a76ba ("nfs: Convert to separately allocated bdi")

2017-05-02 Thread Jan Kara
Hello, On Fri 28-04-17 11:56:24, Corentin Labbe wrote: > Since linux next-20170421, mounting nfs give me: > [ 774.994934] [ cut here ] > [ 774.994975] WARNING: CPU: 1 PID: 10284 at /linux-next/fs/sysfs/dir.c:31 > sysfs_warn_dup+0x64/0x74 > [ 774.994985] sysfs: cannot

[PATCH 2/2] ARM: dts: omap4-droid4: Add vibrator

2017-05-02 Thread Sebastian Reichel
Add vibrator to Droid4's device tree. Signed-off-by: Sebastian Reichel --- arch/arm/boot/dts/omap4-droid4-xt894.dts | 38 1 file changed, 38 insertions(+) diff --git a/arch/arm/boot/dts/omap4-droid4-xt894.dts b/arch/arm/boot/dts/omap4-droid4-xt894.dts index

[PATCH 0/2] PWM Vibrator driver

2017-05-02 Thread Sebastian Reichel
Hi, The Motorola Droid 4 has a vibrator, that is connected to two GPIOs. Motorola's stock kernel names them vib_en and vib_dir, which probably stand for vibrator_enable and vibrator_direction. In their stock kernel both GPIOs are toggled using a hrtimer and a custom vibrator "misc" device is

[PATCH 1/2] Input: pwm-vibra: new driver

2017-05-02 Thread Sebastian Reichel
Provide a simple driver for PWM controllable vibrators. It will be used by Motorola Droid 4. Signed-off-by: Sebastian Reichel --- .../devicetree/bindings/input/pwm-vibrator.txt | 60 drivers/input/misc/Kconfig | 11 + drivers/input/misc/Makefile

[PATCH] btrfs: always write superblocks synchronously

2017-05-02 Thread Davidlohr Bueso
Commit b685d3d65ac7 "block: treat REQ_FUA and REQ_PREFLUSH as synchronous" removed REQ_SYNC flag from WRITE_FUA implementation. Since REQ_FUA and REQ_FLUSH flags are stripped from submitted IO when the disk doesn't have volatile write cache and thus effectively make the write async. This was seen

Re: [PATCH 1/1] arm64: Always provide "model name" in /proc/cpuinfo

2017-05-02 Thread Heinrich Schuchardt
On 05/02/2017 01:08 PM, Catalin Marinas wrote: > On Tue, May 02, 2017 at 12:39:13AM +0200, Heinrich Schuchardt wrote: >> There is no need to hide the model name in processes >> that are not PER_LINUX32. >> >> So let us always provide a model name that is easily readable. >> >> Fixes: e47b020a323d

[PATCH v3] arm64: perf: Ignore exclude_hv when kernel is running in HYP

2017-05-02 Thread Ganapatrao Kulkarni
commit d98ecdaca296 ("arm64: perf: Count EL2 events if the kernel is running in HYP") returns -EINVAL when perf system call perf_event_open is called with exclude_hv != exclude_kernel. This change breaks applications on VHE enabled ARMv8.1 platforms. The issue was observed with HHVM application,

[PATCH] ata-sff: always map page before data transfer

2017-05-02 Thread Tycho Andersen
The XPFO [1] patchset may unmap pages from physmap if they happened to be destined for userspace. If such a page is unmapped, it needs to be remapped. Rather than test if a page is in the highmem/xpfo unmapped state, Christoph suggested [2] that we simply always map the page. Suggested-by:

Re: [PATCH v2 2/4] iio: accel: adxl345_core: Introduce set_mode and data_ready functions

2017-05-02 Thread Jonathan Cameron
On 02/05/17 12:39, Eva Rachel Retuya wrote: > On Mon, May 01, 2017 at 01:22:52AM +0100, Jonathan Cameron wrote: > Hello Jonathan, > [...] >>> +static int adxl345_set_mode(struct adxl345_data *data, u8 mode) >>> +{ >>> + struct device *dev = regmap_get_device(data->regmap); >>> + int ret; >>> +

Re: [PATCH 2/2] pid_ns: Introduce ioctl to set vector of ns_last_pid's on ns hierarhy

2017-05-02 Thread Oleg Nesterov
sorry for delay, vacation... On 04/28, Kirill Tkhai wrote: > > On 27.04.2017 19:22, Oleg Nesterov wrote: > > > > Ah, OK, I didn't notice the ns->child_reaper check in > > pidns_for_children_get(). > > > > But note that it doesn't need tasklist_lock too. > > Hm, are there possible strange

Re: [PATCH RFC v2 4/6] proc: support mounting private procfs instances inside same pid namespace

2017-05-02 Thread Andy Lutomirski
On Tue, May 2, 2017 at 7:29 AM, Djalal Harouni wrote: > On Thu, Apr 27, 2017 at 12:13 AM, Andy Lutomirski wrote: >> On Tue, Apr 25, 2017 at 5:23 AM, Djalal Harouni wrote: > [...] >>> We have to align procfs and modernize it to have a per mount context >>> where at least the mount option do not

Re: [GIT PULL] TTY/Serial driver fixes for 4.11-rc4

2017-05-02 Thread Dmitry Vyukov
On Fri, Apr 14, 2017 at 2:30 PM, Greg KH wrote: > On Fri, Apr 14, 2017 at 11:41:26AM +0200, Vegard Nossum wrote: >> On 13 April 2017 at 20:34, Greg KH wrote: >> > On Thu, Apr 13, 2017 at 09:07:40AM -0700, Linus Torvalds wrote: >> >> On Thu, Apr 13, 2017 at 3:50 AM, Vegard Nossum >> >> wrote:

<    5   6   7   8   9   10   11   12   13   >