RE: [PATCH v5 01/10] pinctrl: generic: Add bi-directional and output-enable

2017-05-12 Thread Chris Brandt
Hi Geert, On Friday, May 12, 2017, Geert Uytterhoeven wrote: > 12 x 16 = 192, not 384. Opps, my math was off! (I think I need another cup of coffee this morning) > Do you need all possible combinations of input, output, and bi-dir? > I assumed they're mutually exclusive. If not, you need 3 b

Re: [PATCH v9 3/3] printk: fix double printing with earlycon

2017-05-12 Thread Petr Mladek
On Thu 2017-05-11 17:41:58, Sergey Senozhatsky wrote: > On (05/11/17 17:24), Sergey Senozhatsky wrote: > > On (05/09/17 10:29), Sabrina Dubroca wrote: > > [..] > > > That's caused a change of behavior in my qemu setup, with this cmdline > > > > > > root=/dev/sda1 console=ttyS1 console=ttyS0 >

Re: [PATCH 4/4] staging: rtl8723bs: checkpatch - resolve indentation and line width

2017-05-12 Thread Matthew Giassa
* Greg KH [2017-05-12 11:30:08 +0200]: On Thu, May 11, 2017 at 06:45:24PM -0700, Matthew Giassa wrote: +#defineREG_INT_MIG_8723B 0x0304 /* Interrupt Migration */ +#defineREG_BCNQ_DESA_8723B 0x0308 /* TX Beacon Descriptor Address +

[v6 0/3] Cavium ThunderX2 SMMUv3 errata workarounds

2017-05-12 Thread Geetha sowjanya
From: Linu Cherian Cavium ThunderX2 SMMUv3 implementation has two Silicon Erratas. 1. Errata ID #74 SMMU register alias Page 1 is not implemented 2. Errata ID #126 SMMU doesnt support unique IRQ lines and also MSI for gerror, eventq and cmdq-sync The following patchset does software wor

[v6 1/3] ACPI/IORT: Fixup SMMUv3 resource size for Cavium ThunderX2 SMMUv3 model

2017-05-12 Thread Geetha sowjanya
From: Linu Cherian Cavium ThunderX2 implementation doesn't support second page in SMMU register space. Hence, resource size is set as 64k for this model. Signed-off-by: Linu Cherian Signed-off-by: Geetha Sowjanya --- drivers/acpi/arm64/iort.c | 10 +- 1 file changed, 9 insertions(+),

[v6 3/3] iommu/arm-smmu-v3: Add workaround for Cavium ThunderX2 erratum #126

2017-05-12 Thread Geetha sowjanya
From: Geetha Sowjanya Cavium ThunderX2 SMMU doesn't support MSI and also doesn't have unique irq lines for gerror, eventq and cmdq-sync. This patch addresses the issue by checking if any interrupt sources are using same irq number, then they are registered as shared irqs. Signed-off-by: Geetha

Re: [PATCH v2] perf report: distinguish between inliners in the same function

2017-05-12 Thread Namhyung Kim
On Fri, May 12, 2017 at 12:37:01PM +0200, Milian Wolff wrote: > On Mittwoch, 10. Mai 2017 07:53:52 CEST Namhyung Kim wrote: > > Hi, > > > > On Wed, May 03, 2017 at 11:35:36PM +0200, Milian Wolff wrote: > > > > > > +static enum match_result match_chain_srcline(struct callchain_cursor_node > > >

[v6 2/3] iommu/arm-smmu-v3: Add workaround for Cavium ThunderX2 erratum #74

2017-05-12 Thread Geetha sowjanya
From: Linu Cherian Cavium ThunderX2 SMMU implementation doesn't support page 1 register space and PAGE0_REGS_ONLY option is enabled as an errata workaround. This option when turned on, replaces all page 1 offsets used for EVTQ_PROD/CONS, PRIQ_PROD/CONS register access with page 0 offsets. SMMU r

[PATCH] pid_ns: Fix race between setns'ed fork() and zap_pid_ns_processes()

2017-05-12 Thread Kirill Tkhai
Imagine we have a pid namespace and a task from its parent's pid_ns, which made setns() to the pid namespace. The task is doing fork(), while the pid namespace's child reaper is dying. We have the race between them: Task from parent pid_ns Child reaper copy_process()

Re: [PATCH 4.4 38/60] USB: serial: sierra: fix bogus alternate-setting assumption

2017-05-12 Thread Greg Kroah-Hartman
On Fri, May 12, 2017 at 02:14:03PM +0200, Johan Hovold wrote: > On Fri, May 12, 2017 at 12:26:17PM +0100, Ben Hutchings wrote: > > On Thu, 2017-05-11 at 16:13 +0200, Greg Kroah-Hartman wrote: > > > 4.4-stable review patch. If anyone has any objections, please let me > > > know. > > > > > > -

Re: [PATCH 4.4 42/60] scsi: scsi_dh_emc: return success in clariion_std_inquiry()

2017-05-12 Thread Greg Kroah-Hartman
On Fri, May 12, 2017 at 12:36:13PM +0100, Ben Hutchings wrote: > On Thu, 2017-05-11 at 16:13 +0200, Greg Kroah-Hartman wrote: > > 4.4-stable review patch. If anyone has any objections, please let me know. > > > > -- > > > > From: Dan Carpenter > > > > commit 4d7d39a18b8b81511f0

Re: [PATCH v2 for-4.12-fixes 2/2] sched/fair: Fix O(# total cgroups) in load balance path

2017-05-12 Thread Tejun Heo
Hello, Vincent. On Thu, May 11, 2017 at 09:02:22AM +0200, Vincent Guittot wrote: > Sorry, what i mean is: > When the group entity of a cfs_rq is enqueued, we are sure that either > the parents is already enqueued or it will be enqueued in the same > sequence. We must be sure that no other branch w

Re: [PATCH 4/4] staging: rtl8723bs: checkpatch - resolve indentation and line width

2017-05-12 Thread Matthew Giassa
* Matthew Giassa [2017-05-12 05:57:44 -0700]: * Greg KH [2017-05-12 11:30:08 +0200]: On Thu, May 11, 2017 at 06:45:24PM -0700, Matthew Giassa wrote: +#defineREG_INT_MIG_8723B 0x0304 /* Interrupt Migration */ +#defineREG_BCNQ_DESA_8723B 0x0308 /*

Re: [PATCH 4/6] tty: serial: lpuart: add imx7ulp support

2017-05-12 Thread Dong Aisheng
On Wed, May 10, 2017 at 01:37:07PM -0700, Stefan Agner wrote: > On 2017-05-09 23:14, Dong Aisheng wrote: > > Hi Stefan, > > > > On Wed, May 10, 2017 at 12:10 PM, Stefan Agner wrote: > >> On 2017-05-09 00:50, Dong Aisheng wrote: > >>> The lpuart of imx7ulp is basically the same as ls1021a. It's al

Re: [PATCH v4 1/2] tpm: Refactor tpm_transmit pulling out tpm_transfer function

2017-05-12 Thread Stefan Berger
On 05/10/2017 07:54 PM, Stefan Berger wrote: Refactor tpm_transmit and pull out code sending the command and receiving the response and put this into tpm_transfer. Signed-off-by: Stefan Berger --- drivers/char/tpm/tpm-interface.c | 121 +++ 1 file changed,

Re: Threads stuck in zap_pid_ns_processes()

2017-05-12 Thread Eric W. Biederman
Vovo Yang writes: > On Fri, May 12, 2017 at 7:19 AM, Eric W. Biederman > wrote: >> Guenter Roeck writes: >> >>> What I know so far is >>> - We see this condition on a regular basis in the field. Regular is >>> relative, of course - let's say maybe 1 in a Milion Chromebooks >>> per day repor

Re: [PATCH v3] clk: at91: Add sama5d2 suspend/resume

2017-05-12 Thread Alexandre Belloni
Hi, On 11/05/2017 at 09:17:41 +0200, Nicolas Ferre wrote: > Le 10/05/2017 à 19:09, Alexandre Belloni a écrit : > > On sama5d2, VDD core maybe be cut while in suspend. This means registers > > will be lost. Ensure they are saved and restored properly. > > > > Signed-off-by: Alexandre Belloni > >

Re: [PATCH v3 0/6] Introduce new mode validation callbacks

2017-05-12 Thread Andrzej Hajda
On 12.05.2017 09:32, Daniel Vetter wrote: > On Thu, May 11, 2017 at 10:05:56AM +0100, Jose Abreu wrote: >> This series is a follow up from the discussion at [1]. We start by >> introducing crtc->mode_valid(), encoder->mode_valid() and >> bridge->mode_valid() callbacks which will be used in followup

Re: [PATCH] usb-musb: keep VBUS on when device is disconnected

2017-05-12 Thread Bin Liu
On Thu, May 11, 2017 at 02:06:28PM -0700, Tony Lindgren wrote: > > Well maybe the minimal fix for now is just pretty much back to > square one of this thread. This should keep VBUS always on. > Then we can figure out some logic to cut VBUS later on. > > And yeah, the state machine is really hard

Re: [PATCH 1/2] xen/input: use string constants from PV protocol

2017-05-12 Thread Oleksandr Andrushchenko
gentle reminder On 05/05/2017 07:43 AM, Oleksandr Andrushchenko wrote: Hello, Dmitry! On 04/21/2017 09:42 AM, Oleksandr Andrushchenko wrote: On 04/21/2017 05:11 AM, Dmitry Torokhov wrote: On Thu, Apr 13, 2017 at 02:38:03PM +0300, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko

Re: [PATCH 2/2] xen/input: add multi-touch support

2017-05-12 Thread Oleksandr Andrushchenko
gentle reminder On 05/05/2017 07:45 AM, Oleksandr Andrushchenko wrote: Hi, Dmitry! On 04/21/2017 09:40 AM, Oleksandr Andrushchenko wrote: Hi, Dmitry! On 04/21/2017 05:10 AM, Dmitry Torokhov wrote: Hi Oleksandr, On Thu, Apr 13, 2017 at 02:38:04PM +0300, Oleksandr Andrushchenko wrote: From

Re: [PATCH v9 3/3] printk: fix double printing with earlycon

2017-05-12 Thread Petr Mladek
On Fri 2017-05-12 14:57:29, Petr Mladek wrote: > On Thu 2017-05-11 17:41:58, Sergey Senozhatsky wrote: > > On (05/11/17 17:24), Sergey Senozhatsky wrote: > > > On (05/09/17 10:29), Sabrina Dubroca wrote: > > > [..] > > > > That's caused a change of behavior in my qemu setup, with this cmdline > > >

[PATCH] usb: musb: tusb6010_omap: Do not reset the other direction's packet size

2017-05-12 Thread Peter Ujfalusi
We have one register for each EP to set the maximum packet size for both TX and RX. If for example an RX programming would happen before the previous TX transfer finishes we would reset the TX packet side. To fix this issue, only modify the TX or RX part of the register. Fixes: 550a7375fe72 ("USB

Re: [PATCH 4/4] staging: rtl8723bs: checkpatch - resolve indentation and line width

2017-05-12 Thread Greg KH
On Fri, May 12, 2017 at 06:24:34AM -0700, Matthew Giassa wrote: > * Matthew Giassa [2017-05-12 05:57:44 -0700]: > > > * Greg KH [2017-05-12 11:30:08 +0200]: > > > > > On Thu, May 11, 2017 at 06:45:24PM -0700, Matthew Giassa wrote: > > > > +#defineREG_INT_MIG_8723B 0x0304

Re: [RFC][PATCH 00/14] VFS: Introduce superblock configuration context [ver #2]

2017-05-12 Thread Anna Schumaker
On 05/11/2017 03:24 PM, David Howells wrote: > Anna Schumaker wrote: > >> Is there any way to split the NFS patch into multiple pieces? > > Are you okay with a patch or two that add code that is unconnected in that > patch, but connected in a later one? Yes, I'm okay with that. Thanks for wo

[PATCH v3 5/9] usb: musb: tusb6010_omap: Create new struct for DMA data/parameters

2017-05-12 Thread Peter Ujfalusi
For the DMA we have ch (channel), dmareq and sync_dev parameters both within the tusb_omap_dma_ch and tusb_omap_dma_ch struct. By creating a common struct the code can be simplified when selecting between the shared or multichannel DMA parameters. Signed-off-by: Peter Ujfalusi Tested-by: Tony Lin

[PATCH v3 3/9] usb: musb: tusb6010: Add MUSB_G_NO_SKB_RESERVE to quirks

2017-05-12 Thread Peter Ujfalusi
When using the g_ncm for networking this flag will make sure that the buffer is alligned to 32bit so the DMA can be used to offload the data movement. Signed-off-by: Peter Ujfalusi Tested-by: Tony Lindgren --- drivers/usb/musb/tusb6010.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH v3 1/9] dmaengine: omap-dma: port_window support correction for both direction

2017-05-12 Thread Peter Ujfalusi
When the port_window support was verified it was done on setup where only the MEM_TO_DEV direction was enabled. This got un-noticed and thus only this direction worked. Now that I have managed to get a setup to verify both direction it turned out that the setup was incorrect: omap_desc members are

[PATCH v3 6/9] usb: musb: tusb6010_omap: Allocate DMA channels upfront

2017-05-12 Thread Peter Ujfalusi
Instead of requesting the DMA channel in tusb_omap_dma_allocate() do it when the controller is created and in runtime work from the DMA channel pool. This change is needed for the DMAengine conversion of the driver since the tusb_omap_dma_allocate() is called in interrupt context which might lead

[PATCH v3 8/9] ARM: OMAP2+: DMA: Add slave map entries for 24xx external request lines

2017-05-12 Thread Peter Ujfalusi
The external request lines are used by tusb6010 on OMAP24xx platforms. Update the map so the driver can use dmaengine API to request the DMA channel. At the same time add temporary map containing only the external DMA request numbers for DT booted case on omap24xx since the tusb6010 stack is not ye

[PATCH v3 2/9] usb: musb: Add quirk to avoid skb reserve in gadget mode

2017-05-12 Thread Peter Ujfalusi
For tusb6010 the DMA functionality only possible if the buffer is 32bit aligned (SYNC access to FIFO) since with ASYNC access the TX/RX offset registers will corrupt eventually. The MUSB_G_NO_SKB_RESERVE will set the quirk_avoids_skb_reserve flag in usb_gadget struct to provide correctly aligned bu

Re: [PATCH] nvme: Change our APST table to be no more aggressive than Intel RSTe

2017-05-12 Thread Mario.Limonciello
> Some testing reports suggest that this will fix the issues we've > seen on Dell laptops. It think it also makes sense to revert the quirk that was created based upon the previous aggressiveness of re-entry to PS4 on those machines. Are you expecting to split that up into a second patch also t

[PATCH v3 9/9] usb: musb: tusb6010_omap: Convert to DMAengine API

2017-05-12 Thread Peter Ujfalusi
With the port_window support in DMAengine and the sDMA driver we can convert the driver to DMAengine. Signed-off-by: Peter Ujfalusi Tested-by: Tony Lindgren --- drivers/usb/musb/tusb6010_omap.c | 201 --- 1 file changed, 80 insertions(+), 121 deletions(-) di

[PATCH v3 7/9] usb: musb: tusb6010: Handle DMA TX completion in DMA callback as well

2017-05-12 Thread Peter Ujfalusi
Handle the DMA TX in a similar way as we do for the RX: in the DMA completion callback. Since we are no longer using DMA completion interrupt for the TX we can as wall keep these interrupts disabled, but keep the handler for debug purposes. Signed-off-by: Peter Ujfalusi Tested-by: Tony Lindgren

[PATCH v3 0/9] usb: musb: tusb6010_omap: Convert to DMAengine

2017-05-12 Thread Peter Ujfalusi
Hi, Changes since v2: - patch 5 from the v1 has been sent separately (usb: musb: tusb6010_omap: Do not reset the other direction's packet size) - Added Tested-by from Tony. Changes since v1: - Fix the port_window support in omap-dma DMAengine driver - MUSB_G_NO_SKB_RESERVE quirk flag addition to

[PATCH 07/36] locking.rst: Update some ReST markups

2017-05-12 Thread Mauro Carvalho Chehab
Correct a few minor issues with ReST notation used on this file (produced by an automatic tool). Signed-off-by: Mauro Carvalho Chehab --- Documentation/kernel-hacking/locking.rst | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Documentation/kernel-hacking/loc

[PATCH 01/36] docs-rst: convert kernel-hacking to ReST

2017-05-12 Thread Mauro Carvalho Chehab
Use pandoc to convert documentation to ReST by calling Documentation/sphinx/tmplcvt script. - Manually adjusted to use ..note and ..warning - Minor fixes for it to be parsed without errors - Use **bold** for emphasis. Signed-off-by: Mauro Carvalho Chehab --- Documentation/DocBook/Makefile

[PATCH 08/36] docs-rst: convert kgdb DocBook to ReST

2017-05-12 Thread Mauro Carvalho Chehab
Use pandoc to convert documentation to ReST by calling Documentation/sphinx/tmplcvt script. Signed-off-by: Mauro Carvalho Chehab --- Documentation/DocBook/Makefile| 2 +- Documentation/DocBook/kgdb.tmpl | 918 - Documentation/dev-tools/index.rst | 1

next-20170510 refcount_inc() on zero / use-after-free in key_lookup()

2017-05-12 Thread Mark Rutland
Hi, While fuzzing next-20170510 on arm64 with Syzkaller, I hit a refcount_inc() on a zero count in __key_get(), called from key_lookup(). The tree was dirty as I was testing with some new hardened string functions, but AFAICT these are not to blame. >From a quick look at key_lookup(), the followi

[PATCH 12/36] docs-rst: conf.py: remove kernel-documentation from LaTeX

2017-05-12 Thread Mauro Carvalho Chehab
There's no kernel-documentation.rst file at Documentation/ anymore. So, remove it from the list of LaTeX-generated documents. Signed-off-by: Mauro Carvalho Chehab --- Documentation/conf.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/Documentation/conf.py b/Documentation/conf.py index 1a

[PATCH 17/36] docs-rst: convert filesystems book to ReST

2017-05-12 Thread Mauro Carvalho Chehab
Use pandoc to convert documentation to ReST by calling Documentation/sphinx/tmplcvt script. Signed-off-by: Mauro Carvalho Chehab --- Documentation/DocBook/Makefile | 2 +- Documentation/DocBook/filesystems.tmpl | 381 - Documentation/conf.py

[PATCH 18/36] docs-rst: filesystems: use c domain references where needed

2017-05-12 Thread Mauro Carvalho Chehab
Instead of just mention the function names, use cross-references to the kernel-doc tags where pertinent. While not all function documentation is included here, I double-checked that all functions mentioned there still exists. Signed-off-by: Mauro Carvalho Chehab --- Documentation/filesystems/in

[PATCH 14/36] docs-rst: add dev-tools book to pdf output

2017-05-12 Thread Mauro Carvalho Chehab
The dev-tools API book was added without the bits required to generate PDF output at the main conf.py. Add them. Signed-off-by: Mauro Carvalho Chehab --- Documentation/conf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/conf.py b/Documentation/conf.py index ce62723491d4..

[PATCH 36/36] docs-rst: convert rapidio book to ReST

2017-05-12 Thread Mauro Carvalho Chehab
Use pandoc to convert documentation to ReST by calling Documentation/sphinx/tmplcvt script. Signed-off-by: Mauro Carvalho Chehab --- Documentation/DocBook/Makefile | 4 +- Documentation/DocBook/rapidio.tmpl | 155 --- Documentation/driver-api/index.rst

Re: [PATCH 21/36] fs: locks: Fix some troubles at kernel-doc comments

2017-05-12 Thread Jeff Layton
On Fri, 2017-05-12 at 11:00 -0300, Mauro Carvalho Chehab wrote: > There are a few syntax violations that cause outputs of > a few comments to not be properly parsed in ReST format. > > No functional changes. > > Signed-off-by: Mauro Carvalho Chehab > --- > fs/locks.c | 18 -- >

Re: [PATCH] pinctrl: when claiming hog, skip maps not served by same device

2017-05-12 Thread Tony Lindgren
* Nikita Yushchenko [170512 01:22]: > >> + /* > >> + * If pctldev is not null, we are claiming hog for it, > >> + * that means, setting that is served by pctldev by itself. > >> + * > >> + * Thus we must skip map that is for this device but is serve

[PATCH V6] perf/x86: add sysfs entry to freeze counter on SMI

2017-05-12 Thread kan . liang
From: Kan Liang Currently, the SMIs are visible to all performance counters. Because many users want to measure everything including SMIs. But in some cases, the SMI cycles should not be count. For example, to calculate the cost of SMI itself. So a knob is needed. When setting FREEZE_WHILE_SMM b

[PATCH 04/36] mutex, futex: adjust kernel-doc markups to generate ReST

2017-05-12 Thread Mauro Carvalho Chehab
There are a few issues on some kernel-doc markups that was causing troubles with kernel-doc output on ReST format. Fix them. No functional changes. Signed-off-by: Mauro Carvalho Chehab --- include/linux/mutex.h | 6 +++--- kernel/futex.c | 40

Re: [PATCH 0/5] net-next: ethernet: add sun8i-emac driver

2017-05-12 Thread Corentin Labbe
On Fri, May 12, 2017 at 06:09:17AM -0700, Mahesh Nanavalla wrote: > Hi All, > > I am new to Ethernet Driver. > > I am working on NanoPI Neo Based on SUN8i-H3 SOC ... > > can any body helpout to up the Ethernet on The NanoPi Neo. > Ouch, you answer to a very old email (1 year!). The best way t

[PATCH 25/36] docs-rst: convert libata book to ReST

2017-05-12 Thread Mauro Carvalho Chehab
Use pandoc to convert documentation to ReST by calling Documentation/sphinx/tmplcvt script. Signed-off-by: Mauro Carvalho Chehab --- Documentation/DocBook/Makefile |2 +- Documentation/DocBook/libata.tmpl | 1625 --- Documentation/driver-api/index.rst

[PATCH 27/36] libata: fix identation on a kernel-doc markup

2017-05-12 Thread Mauro Carvalho Chehab
Sphinx got confused with the markup identation: ./drivers/ata/libata-scsi.c:3402: ERROR: Unexpected indentation. No functional changes. Signed-off-by: Mauro Carvalho Chehab --- drivers/ata/libata-scsi.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/a

Re: [PATCH] nvme: Change our APST table to be no more aggressive than Intel RSTe

2017-05-12 Thread Andy Lutomirski
On Fri, May 12, 2017 at 6:58 AM, wrote: >> Some testing reports suggest that this will fix the issues we've >> seen on Dell laptops. > > It think it also makes sense to revert the quirk that was created based upon > the previous aggressiveness of re-entry to PS4 on those machines. Are you > ex

[PATCH 02/36] kernel-hacking: update document

2017-05-12 Thread Mauro Carvalho Chehab
This document is fairly updated. Yet, some stuff moved to other kernel headers. So, update to point to the right places. While here, adjust some minor ReST markups. Signed-off-by: Mauro Carvalho Chehab --- Documentation/kernel-hacking/index.rst | 179 ++--- 1 file ch

[PATCH 33/36] docs-rst: convert scsi DocBook to ReST

2017-05-12 Thread Mauro Carvalho Chehab
Use pandoc to convert documentation to ReST by calling Documentation/sphinx/tmplcvt script. Signed-off-by: Mauro Carvalho Chehab --- Documentation/DocBook/Makefile | 1 - Documentation/DocBook/scsi.tmpl| 409 - Documentation/driver-api/index.rst

[PATCH 32/36] docs-rst: convert z8530book DocBook to ReST

2017-05-12 Thread Mauro Carvalho Chehab
Use pandoc to convert documentation to ReST by calling Documentation/sphinx/tmplcvt script. Some manual adjustments were required due to some conversion error on some literals. Signed-off-by: Mauro Carvalho Chehab --- Documentation/DocBook/Makefile | 2 +- Documentation/DocBook/z8530b

[PATCH 23/36] fs: eventfd: fix identation on kernel-doc

2017-05-12 Thread Mauro Carvalho Chehab
Sphinx require explicit tags in order to use a list of possible values, otherwise it produces this error: ./fs/eventfd.c:219: WARNING: Option list ends without a blank line; unexpected unindent. Signed-off-by: Mauro Carvalho Chehab --- fs/eventfd.c | 4 ++-- 1 file changed, 2 insertion

[PATCH 05/36] locking.rst: reformat locking table

2017-05-12 Thread Mauro Carvalho Chehab
Use a different markup for this table, in order to make it smaller when seeing in text mode. Signed-off-by: Mauro Carvalho Chehab --- Documentation/kernel-hacking/locking.rst | 37 1 file changed, 14 insertions(+), 23 deletions(-) diff --git a/Documentation/kern

[PATCH 31/36] net: fix some identation issues at kernel-doc markups

2017-05-12 Thread Mauro Carvalho Chehab
Sphinx is very pedantic with regards to identation and escape sequences: ./include/net/sock.h:1967: ERROR: Unexpected indentation. ./include/net/sock.h:1969: ERROR: Unexpected indentation. ./include/net/sock.h:1970: WARNING: Block quote ends without a blank line; unexpected unindent. ./in

[PATCH 09/36] kgdb.rst: Adjust ReST markups

2017-05-12 Thread Mauro Carvalho Chehab
The automatic conversion didn't work too well for this file. It added weird html blocks inside it, and did some weird things for literals. Manually fix it, in order to present a nice display at html/pdf outputs. Signed-off-by: Mauro Carvalho Chehab --- Documentation/dev-tools/kgdb.rst | 489

[PATCH 24/36] fs: jbd2: escape a string with special chars on a kernel-doc

2017-05-12 Thread Mauro Carvalho Chehab
kernel-doc will try to interpret a foo() string, except if properly escaped. Signed-off-by: Mauro Carvalho Chehab --- fs/jbd2/transaction.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/jbd2/transaction.c b/fs/jbd2/transaction.c index fe7f4a373436..38e1dcabbaca 10064

[PATCH 26/36] libata.rst: add c function and struct cross-references

2017-05-12 Thread Mauro Carvalho Chehab
Instead of just using text for functions and structs, use the C domain tags, in order to allow cross-referencing with the kernel-doc markups. Signed-off-by: Mauro Carvalho Chehab --- Documentation/driver-api/libata.rst | 244 ++-- 1 file changed, 124 insertions(+)

[PATCH 21/36] fs: locks: Fix some troubles at kernel-doc comments

2017-05-12 Thread Mauro Carvalho Chehab
There are a few syntax violations that cause outputs of a few comments to not be properly parsed in ReST format. No functional changes. Signed-off-by: Mauro Carvalho Chehab --- fs/locks.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/fs/locks.c b/fs/loc

[PATCH 13/36] docs-rst: add crypto API book to pdf output

2017-05-12 Thread Mauro Carvalho Chehab
The crypto API book was added without the bits required to generate PDF output. Add them. Signed-off-by: Mauro Carvalho Chehab --- Documentation/conf.py| 2 ++ Documentation/crypto/conf.py | 10 ++ 2 files changed, 12 insertions(+) create mode 100644 Documentation/crypto/conf.p

[PATCH 35/36] docs-rst: convert w1 book to ReST

2017-05-12 Thread Mauro Carvalho Chehab
Use pandoc to convert documentation to ReST by calling Documentation/sphinx/tmplcvt script. Signed-off-by: Mauro Carvalho Chehab --- Documentation/DocBook/w1.tmpl | 101 - Documentation/driver-api/index.rst | 1 + Documentation/driver-api/w1.rst| 7

[PATCH 29/36] docs-rst: convert networking book to ReST

2017-05-12 Thread Mauro Carvalho Chehab
Use pandoc to convert documentation to ReST by calling Documentation/sphinx/tmplcvt script. Signed-off-by: Mauro Carvalho Chehab --- Documentation/DocBook/Makefile| 1 - Documentation/DocBook/networking.tmpl | 111 - Documentation/conf.py | 2 +

[PATCH 30/36] net: skbuff.h: properly escape a macro name on kernel-doc

2017-05-12 Thread Mauro Carvalho Chehab
The "%" escape code of kernel-doc only handle letters. It doesn't handle special chars. So, use the ``literal`` notation. That fixes this warning: ./include/linux/skbuff.h:2695: WARNING: Inline literal start-string without end-string. No functional changes. Signed-off-by: Mauro Carvalho Chehab

[PATCH 34/36] scsi: fix some kernel-doc markups

2017-05-12 Thread Mauro Carvalho Chehab
Sphinx is very pedantic with regards to ident/spacing. Fix some kernel-doc markups in order to solve those errors/warnings: ./drivers/scsi/scsicam.c:121: WARNING: Inline emphasis start-string without end-string. ./drivers/scsi/scsicam.c:121: WARNING: Inline emphasis start-string without end-stri

[PATCH 06/36] locking.rst: add captions to two tables

2017-05-12 Thread Mauro Carvalho Chehab
Those tables have a "caption" at the end, but ReST actually expects it on a different way. Signed-off-by: Mauro Carvalho Chehab --- Documentation/kernel-hacking/locking.rst | 66 1 file changed, 34 insertions(+), 32 deletions(-) diff --git a/Documentation/kernel

[PATCH 10/36] conf.py: define a color for important markup on PDF output

2017-05-12 Thread Mauro Carvalho Chehab
As kdbg.rst uses the ".. important::" annotation, let's define a color for PDF output. Signed-off-by: Mauro Carvalho Chehab --- Documentation/conf.py | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/conf.py b/Documentation/conf.py index bfa95c881956..e9480

[PATCH 19/36] fs: jbd2: make jbd2_journal_start() kernel-doc parseable

2017-05-12 Thread Mauro Carvalho Chehab
kernel-doc script expects that a function documentation to be just before the function, otherwise it will be ignored. So, move the kernel-doc markup to the right place. Signed-off-by: Mauro Carvalho Chehab --- fs/jbd2/transaction.c | 38 +++--- 1 file changed, 19

[PATCH 28/36] docs-rst: convert s390-drivers DocBook to ReST

2017-05-12 Thread Mauro Carvalho Chehab
Use pandoc to convert documentation to ReST by calling Documentation/sphinx/tmplcvt script. Signed-off-by: Mauro Carvalho Chehab --- Documentation/DocBook/Makefile| 2 +- Documentation/DocBook/s390-drivers.tmpl | 161 -- Documentation/driver-api/index.

[PATCH 20/36] docs-rst: don't ignore internal functions for jbd2 docs

2017-05-12 Thread Mauro Carvalho Chehab
Those functions are currently ignored, causing references at the documentation to be lost. Don't ignore it. Signed-off-by: Mauro Carvalho Chehab --- Documentation/filesystems/index.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/filesystems/index.rst b/Documentation/filesys

[PATCH 16/36] docs-rst: add userspace API book to pdf output

2017-05-12 Thread Mauro Carvalho Chehab
The userspace API book was added without the bits required to generate PDF output. Add them. Signed-off-by: Mauro Carvalho Chehab --- Documentation/conf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/conf.py b/Documentation/conf.py index bca751960dec..2e215477edf5 100644

[PATCH 22/36] fs: add a blank lines on some kernel-doc comments

2017-05-12 Thread Mauro Carvalho Chehab
Sphinx gets confused when it finds identation without a good reason for it and without a preceding blank line: ./fs/mpage.c:347: ERROR: Unexpected indentation. ./fs/namei.c:4303: ERROR: Unexpected indentation. ./fs/fs-writeback.c:2060: ERROR: Unexpected indentation. No fun

[PATCH 15/36] docs-rst: add sound book to pdf output

2017-05-12 Thread Mauro Carvalho Chehab
The sound subsystem book was added without the bits required to generate PDF output. Add them. Signed-off-by: Mauro Carvalho Chehab --- Documentation/conf.py | 2 ++ Documentation/sound/conf.py | 10 ++ 2 files changed, 12 insertions(+) create mode 100644 Documentation/sound/conf

[PATCH 11/36] docs-rst: conf.py: sort LaTeX documents in alphabetical order

2017-05-12 Thread Mauro Carvalho Chehab
As we add more documents, it makes more sense to sort the entries there in alphabetical order, as it makes easier to check if something is not there. Signed-off-by: Mauro Carvalho Chehab --- Documentation/conf.py | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/D

[PATCH v3 4/9] usb: musb: tusb6010_omap: Use one musb_ep_select call in tusb_omap_dma_program

2017-05-12 Thread Peter Ujfalusi
Having one musb_ep_select() instead the two calls in if/else is the same thing, but makes the code a bit simpler to follow. Signed-off-by: Peter Ujfalusi Tested-by: Tony Lindgren --- drivers/usb/musb/tusb6010_omap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/u

RE: [PATCH 3/3] dts: arm64: add LS1046A DPAA QBMan nodes

2017-05-12 Thread Madalin-Cristian Bucur
> -Original Message- > From: Shawn Guo [mailto:shawn...@kernel.org] > Sent: Friday, March 31, 2017 5:30 AM > On Thu, Mar 30, 2017 at 05:37:52PM +0300, Madalin Bucur wrote: > > Add the QBMan device tree nodes for LS1046A devices. > > > > Signed-off-by: Roy Pledge > > Signed-off-by: Madalin

RE: [PATCH 2/3] dts: arm64: add LS1043A DPAA QBMan nodes

2017-05-12 Thread Madalin-Cristian Bucur
> -Original Message- > From: Shawn Guo [mailto:shawn...@kernel.org] > On Thu, Mar 30, 2017 at 05:37:51PM +0300, Madalin Bucur wrote: > > Add the DPAA 1.x QMan and BMan nodes in the LS1043A device tree. > > > > Signed-off-by: Roy Pledge > > Signed-off-by: Madalin Bucur > > --- > > arch/ar

RE: [PATCH 1/3] dts: arm64: add DPAA QBMan portals

2017-05-12 Thread Madalin-Cristian Bucur
> -Original Message- > From: Shawn Guo [mailto:shawn...@kernel.org] > Sent: Friday, March 31, 2017 4:50 AM > On Thu, Mar 30, 2017 at 05:37:50PM +0300, Madalin Bucur wrote: > > Add the DPAA 1.x DPAA QMan and BMan portal nodes. > > > > Signed-off-by: Roy Pledge > > Signed-off-by: Madalin Buc

[PATCH net-next] tools: hv: Add clean up for included files in Ubuntu net config

2017-05-12 Thread Haiyang Zhang
From: Haiyang Zhang The clean up function is updated to cover duplicate config info in files included by "source" key word in Ubuntu network config. Signed-off-by: Haiyang Zhang --- tools/hv/bondvf.sh | 16 +++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/tool

Re: [PATCH] xfs: avoid harmless gcc-7 warnings

2017-05-12 Thread Joe Perches
On Thu, 2017-05-11 at 14:49 +0200, Arnd Bergmann wrote: > gcc-7 flags the use of integer math inside of a condition > as a potential bug: > > fs/xfs/xfs_bmap_util.c: In function 'xfs_swap_extents_check_format': > fs/xfs/xfs_bmap_util.c:1619:8: error: '<<' in boolean context, did you mean > '<' ?

Re: [PATCH v4 1/5] sched/deadline: Refer to cpudl.elements atomically

2017-05-12 Thread Steven Rostedt
On Fri, 12 May 2017 14:48:45 +0900 Byungchul Park wrote: > cpudl.elements is an instance that should be protected with a spin lock. > Without it, the code would be insane. And how much contention will this add? Spin locks in the scheduler code that are shared among a domain can cause huge latenc

[PATCH v4 1/2] clk: at91: fix clk-generated parenting

2017-05-12 Thread Alexandre Belloni
clk_generated_startup is called after clk_hw_register. So the first call to get_parent will not have the correct value (i.e. 0) and because this is cached, it may never be updated. Signed-off-by: Alexandre Belloni --- drivers/clk/at91/clk-generated.c | 3 +-- 1 file changed, 1 insertion(+), 2 de

[PATCH v4 2/2] clk: at91: Add sama5d2 suspend/resume

2017-05-12 Thread Alexandre Belloni
On sama5d2, VDD core maybe be cut while in suspend. This means registers will be lost. Ensure they are saved and restored properly. Signed-off-by: Alexandre Belloni --- Changes in v4: - only save and restore PCR for used ids drivers/clk/at91/clk-generated.c | 3 + drivers/clk/at91/clk-perip

Re: [PATCH] socfpga_a10: reset CPU1 in socfpga_cpu_kill()

2017-05-12 Thread Dinh Nguyen
On 05/10/2017 12:13 AM, yanjiang@windriver.com wrote: > From: Yanjiang Jin > > Kexec's second kernel would hang if CPU1 isn't reset. > Can you please be a bit more descriptive on the commit log? Is it because when kexec starts, the SMP on the kexec's kernel try to run on CPU1? > Signed-

Re: [PATCH] pid_ns: Fix race between setns'ed fork() and zap_pid_ns_processes()

2017-05-12 Thread Eric W. Biederman
Kirill Tkhai writes: > Imagine we have a pid namespace and a task from its parent's pid_ns, > which made setns() to the pid namespace. The task is doing fork(), > while the pid namespace's child reaper is dying. We have the race > between them: > > Task from parent pid_ns Child reaper

[PATCH] prctl: Allow local CAP_SYS_ADMIN changing exe_file

2017-05-12 Thread Kirill Tkhai
During checkpointing and restore of userspace tasks we bumped into the situation, that it's not possible to restore the tasks, which user namespace does not have uid 0 or gid 0 mapped. People create user namespace mappings like they want, and there is no a limitation on obligatory uid and gid "mus

Re: [PATCH] nvme: Change our APST table to be no more aggressive than Intel RSTe

2017-05-12 Thread Mario.Limonciello
>Yes, mostly. I've written the patch, but I was planning to target it >at 4.12 or 4.13 but not -stable. It's mostly just a cleanup and has >no real power saving benefit since the RSTe timeouts are so absurdly >conservative that I doubt PS4 will happen in practical usage. OK. >Perhaps >in suspe

[PATCH V2] serial: efm32: Fix parity management in 'efm32_uart_console_get_options()'

2017-05-12 Thread Christophe JAILLET
UARTn_FRAME_PARITY_ODD is 0x0300 UARTn_FRAME_PARITY_EVEN is 0x0200 So if the UART is configured for EVEN parity, it would be reported as ODD. Fix it by correctly testing if the 2 bits are set. Fixes: 3afbd89c9639 ("serial/efm32: add new driver") Signed-off-by: Christophe JAILLET --- v2: Add UARTn

Re: [PATCH v2 1/2] net: Added mtu parameter to dev_forward_skb calls

2017-05-12 Thread Fredrik Markström
On Thu, May 11, 2017 at 9:44 PM, Stephen Hemminger wrote: > On Thu, 11 May 2017 21:10:11 +0200 > Fredrik Markström wrote: > >> On Thu, May 11, 2017 at 6:01 PM, Stephen Hemminger >> wrote: >> > On Thu, 11 May 2017 15:46:27 +0200 >> > Fredrik Markstrom wrote: >> > >> >> From: Fredrik Markström >

Re: [PATCH v2 for-4.12-fixes 2/2] sched/fair: Fix O(# total cgroups) in load balance path

2017-05-12 Thread Vincent Guittot
On 12 May 2017 at 15:16, Tejun Heo wrote: > Hello, Vincent. > > On Thu, May 11, 2017 at 09:02:22AM +0200, Vincent Guittot wrote: >> Sorry, what i mean is: >> When the group entity of a cfs_rq is enqueued, we are sure that either >> the parents is already enqueued or it will be enqueued in the same

Re: [PATCH] socfpga_a10: reset CPU1 in socfpga_cpu_kill()

2017-05-12 Thread Mark Rutland
On Wed, May 10, 2017 at 01:13:04AM -0400, yanjiang@windriver.com wrote: > From: Yanjiang Jin > > Kexec's second kernel would hang if CPU1 isn't reset. > > Signed-off-by: Yanjiang Jin > --- > arch/arm/mach-socfpga/platsmp.c | 12 +++- > 1 file changed, 11 insertions(+), 1 deletion(-

Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-12 Thread Alex Williamson
On Fri, 12 May 2017 04:51:43 + "Cheng, Collins" wrote: > Hi Williamson, > > I verified the patch is working for both AMD SR-IOV GPU and Intel SR-IOV NIC. > I don't think it is redundant to check the VF BAR valid before call > sriov_init(), it is safe and saving boot time, also there is no

Re: [PATCH] pid_ns: Fix race between setns'ed fork() and zap_pid_ns_processes()

2017-05-12 Thread Kirill Tkhai
On 12.05.2017 17:26, Eric W. Biederman wrote: > Kirill Tkhai writes: > >> Imagine we have a pid namespace and a task from its parent's pid_ns, >> which made setns() to the pid namespace. The task is doing fork(), >> while the pid namespace's child reaper is dying. We have the race >> between them

Re: Is there an recommended way to refer to bitkeepr commits?

2017-05-12 Thread Eric W. Biederman
Thomas Gleixner writes: > On Fri, 12 May 2017, Michael Ellerman wrote: >> Fixes: BKrev: 3e8e57a1JvR25MkFRNzoz85l2Gzccg ("[PATCH] >> linux-2.5.66-signal-cleanup.patch") >> >> In your tree that is c3c107051660 ("[PATCH] >> linux-2.5.66-signal-cleanup.patch"), >> but you don't have the 3e8e57a1

[PATCH] mdio: mux: fix device_node_continue.cocci warnings

2017-05-12 Thread Julia Lawall
Device node iterators put the previous value of the index variable, so an explicit put causes a double put. In particular, of_mdiobus_register can fail before doing anything interesting, so one could view it as a no-op from the reference count point of view. Generated by: scripts/coccinelle/itera

Re: [PATCH v2] perf report: distinguish between inliners in the same function

2017-05-12 Thread Andi Kleen
Milian Wolff writes: > > I think I'm missing something, but isn't this what this function provides? > The > function above is now being used by the match_chain_inliner function below. > > Ah, or do you mean for code such as this: > > ~ > inline_func_1(); inline_func_2(); This could be hand

Re: [PATCH] pid_ns: Fix race between setns'ed fork() and zap_pid_ns_processes()

2017-05-12 Thread Eric W. Biederman
Kirill Tkhai writes: > On 12.05.2017 17:26, Eric W. Biederman wrote: >> Kirill Tkhai writes: >> >>> Imagine we have a pid namespace and a task from its parent's pid_ns, >>> which made setns() to the pid namespace. The task is doing fork(), >>> while the pid namespace's child reaper is dying. We

Re: [PATCH] prctl: Allow local CAP_SYS_ADMIN changing exe_file

2017-05-12 Thread Cyrill Gorcunov
On Fri, May 12, 2017 at 05:33:36PM +0300, Kirill Tkhai wrote: > During checkpointing and restore of userspace tasks > we bumped into the situation, that it's not possible > to restore the tasks, which user namespace does not > have uid 0 or gid 0 mapped. > > People create user namespace mappings l

<    1   2   3   4   5   6   7   >