[PATCH v10 04/16] omap3isp: group device capabilities

2018-05-21 Thread Ezequiel Garcia
From: Gustavo Padovan Instead of putting V4L2_CAP_STREAMING everywhere, set device_caps earlier with this value. v2: move cap->capabilities assignment down (Hans Verkuil) Signed-off-by: Gustavo Padovan --- drivers/media/platform/omap3isp/ispvideo.c | 10 ++ 1 file changed, 6 insertion

[PATCH v10 03/16] hackrf: group device capabilities

2018-05-21 Thread Ezequiel Garcia
From: Gustavo Padovan Instead of putting V4L2_CAP_STREAMING and V4L2_CAP_READWRITE everywhere, set device_caps earlier with these values. Signed-off-by: Gustavo Padovan --- drivers/media/usb/hackrf/hackrf.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers

Re: [PATCH v2] packet: track ring entry use using a shadow ring to prevent RX ring overrun

2018-05-21 Thread Willem de Bruijn
On Mon, May 21, 2018 at 8:57 AM, Jon Rosen (jrosen) wrote: > On Sunday, May 20, 2018 7:22 PM, Willem de Bruijn > wrote: >> On Sun, May 20, 2018 at 6:51 PM, Willem de Bruijn >> wrote: >>> On Sat, May 19, 2018 at 8:07 AM, Jon Rosen wrote: Fix PACKET_RX_RING bug for versions TPACKET_V1 and TP

Re: [External] Re: [PATCH 2/3] include/linux/gfp.h: use unsigned int in gfp_zone

2018-05-21 Thread David Sterba
On Tue, May 15, 2018 at 04:54:04AM -0700, Matthew Wilcox wrote: > > > Subject: btrfs: Allocate extents from ZONE_NORMAL > > > From: Matthew Wilcox > > > > > > If anyone ever passes a GFP_DMA or GFP_MOVABLE allocation flag to > > > allocate_extent_state, it will try to allocate memory from the wro

[PATCH] gpu: drm: etnaviv: Change return type to vm_fault_t

2018-05-21 Thread Souptick Joarder
Use new return type vm_fault_t for fault handler. For now, this is just documenting that the function returns a VM_FAULT value rather than an errno. Once all instances are converted, vm_fault_t will become a distinct type. Ref- commit 1c8f422059ae ("mm: change return type to vm_fault_t") Previous

Re: [tip:locking/core] locking/atomics: Simplify the op definitions in atomic.h some more

2018-05-21 Thread Mark Rutland
On Tue, May 15, 2018 at 08:11:36PM +0200, Peter Zijlstra wrote: > On Tue, May 15, 2018 at 06:53:08PM +0100, Mark Rutland wrote: > > On Tue, May 15, 2018 at 07:10:21PM +0200, Peter Zijlstra wrote: > > > On Tue, May 15, 2018 at 04:43:33PM +0100, Mark Rutland wrote: > > > > I *think* the table can enc

Re: REGRESSION: HiKey eMMC corruption

2018-05-21 Thread John Stultz
On Mon, May 21, 2018 at 2:03 AM, Leo Yan wrote: > Hi Wei, John, > > On Mon, May 21, 2018 at 09:34:04AM +0100, Wei Xu wrote: >> Hi John, >> >> On 2018/5/18 23:59, John Stultz wrote: >> > The last few months have been busy and I've not been ontop of my >> > upstream testing as well as I'd like, but

[PATCH v12 1/2] ARM: cmpxchg64: Only define cmpxchg64() if not using the Thumb instruction set

2018-05-21 Thread Bart Van Assche
Since the implementation of cmpxchg64() uses instructions that are not Thumb instructions, only define cmpxchg64() if not building in Thumb mode. This patch allows the next patch in this series to check for cmpxchg64() support using #if defined(cmpxchg64). Signed-off-by: Bart Van Assche Cc: Catal

[PATCH v12 0/2] blk-mq: Rework blk-mq timeout handling again

2018-05-21 Thread Bart Van Assche
Hello Jens, This patch series reworks blk-mq timeout handling by introducing a state machine per request. Please consider this patch series for inclusion in the upstream kernel. Bart. Changes compared to v11: - Reworked patch 1/2: instead of introducing CONFIG_ARCH_HAVE_CMPXCHG64, make sure th

[PATCH v12 2/2] blk-mq: Rework blk-mq timeout handling again

2018-05-21 Thread Bart Van Assche
Recently the blk-mq timeout handling code was reworked. See also Tejun Heo, "[PATCHSET v4] blk-mq: reimplement timeout handling", 08 Jan 2018 (https://www.mail-archive.com/linux-block@vger.kernel.org/msg16985.html). This patch reworks the blk-mq timeout handling code again. The timeout handling cod

Re: arm64: add missing early clobber in atomic64_dec_if_positive()

2018-05-21 Thread Mark Salter
On Mon, 2018-05-21 at 18:00 +0100, Will Deacon wrote: > Hi Mark, > > Thanks for reporting this. > > On Sat, May 19, 2018 at 08:17:26PM -0400, Mark Salter wrote: > > When running a kernel compiled with gcc8 on a machine using LSE, I > > get: > > > > Unable to handle kernel paging request at virt

Re: [PATCH v2] schedutil: Allow cpufreq requests to be made even when kthread kicked

2018-05-21 Thread Joel Fernandes
Hi Patrick, On Mon, May 21, 2018 at 06:00:50PM +0100, Patrick Bellasi wrote: > On 21-May 08:49, Joel Fernandes wrote: > > On Mon, May 21, 2018 at 11:50:55AM +0100, Patrick Bellasi wrote: > > > On 18-May 11:55, Joel Fernandes (Google.) wrote: > > > > From: "Joel Fernandes (Google)" > > > > > > >

Re: arm64: add missing early clobber in atomic64_dec_if_positive()

2018-05-21 Thread Will Deacon
On Mon, May 21, 2018 at 01:18:39PM -0400, Mark Salter wrote: > On Mon, 2018-05-21 at 18:00 +0100, Will Deacon wrote: > > Hi Mark, > > > > Thanks for reporting this. > > > > On Sat, May 19, 2018 at 08:17:26PM -0400, Mark Salter wrote: > > > When running a kernel compiled with gcc8 on a machine usi

Re: [PATCH] audit: add containerid support for IMA-audit

2018-05-21 Thread Steve Grubb
On Friday, May 18, 2018 12:34:24 PM EDT Mimi Zohar wrote: > On Fri, 2018-05-18 at 11:56 -0400, Richard Guy Briggs wrote: > > On 2018-05-18 10:39, Mimi Zohar wrote: > > > On Fri, 2018-05-18 at 09:54 -0400, Stefan Berger wrote: > > > > On 05/18/2018 08:53 AM, Mimi Zohar wrote: > > > [..] > > > > > >

Re: [PATCH v2]: perf/x86: store user space frame-pointer value on a sample

2018-05-21 Thread Andy Lutomirski
> On May 21, 2018, at 9:51 AM, Alexey Budankov > wrote: > > > Hi Andy, >> On 21.05.2018 17:14, Andy Lutomirski wrote: >> >>> On May 21, 2018, at 5:44 AM, Alexey Budankov >>> wrote: >>> >>> Hi Peter, >>> On 10.05.2018 13:14, Peter Zijlstra wrote: On Thu, May 10, 2018 at 12:42:38P

KASAN: use-after-free Read in irq_bypass_unregister_consumer

2018-05-21 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:0b449a441dac Merge tag 'dmaengine-fix-4.17-rc6' of git://g.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16a44b3780 kernel config: https://syzkaller.appspot.com/x/.config?x=f3b4e30da84ec1ed da

INFO: rcu detected stall in save_stack_trace

2018-05-21 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:0b449a441dac Merge tag 'dmaengine-fix-4.17-rc6' of git://g.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=127ec33780 kernel config: https://syzkaller.appspot.com/x/.config?x=f3b4e30da84ec1ed da

[PATCH] gpu: drm: msm: Change return type to vm_fault_t

2018-05-21 Thread Souptick Joarder
Use new return type vm_fault_t for fault handler. For now, this is just documenting that the function returns a VM_FAULT value rather than an errno. Once all instances are converted, vm_fault_t will become a distinct type. Ref- commit 1c8f422059ae ("mm: change return type to vm_fault_t") Previous

[PATCH v5 5/8] dt-bindings: remoteproc: Add Q6v5 Modem PIL binding for SDM845

2018-05-21 Thread Sibi Sankar
Add new compatible string for Qualcomm SDM845 SoCs Signed-off-by: Sibi Sankar --- Documentation/devicetree/bindings/remoteproc/qcom,q6v5.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,q6v5.txt b/Documentation/devicetree/bindings/remotep

[PATCH v5 6/8] remoteproc: qcom: Introduce reset assert/deassert helper functions

2018-05-21 Thread Sibi Sankar
Adding reset assert/deassert helper functions to handle SoC specific reset sequences. This wil be used by SDM845 to assert and deassert ALT_RESET and MSS_RESET signals. Signed-off-by: Sibi Sankar --- drivers/remoteproc/qcom_q6v5_pil.c | 16 +--- 1 file changed, 13 insertions(+), 3 de

[PATCH v5 8/8] remoteproc: qcom: Allow defining GLINK edge for mss remoteproc

2018-05-21 Thread Sibi Sankar
Add GLINK subdevice to allow definition of GLINK edge as a child of modem-pil. Signed-off-by: Sibi Sankar --- drivers/remoteproc/qcom_q6v5_pil.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_pil.c b/drivers/remoteproc/qcom_q6v5_pil.c index 5e85ce975ef8..765

Re: [PATCH 06/15] drm/sun4i: tcon: Add support for tcon-top

2018-05-21 Thread Jernej Škrabec
Hi, Dne ponedeljek, 21. maj 2018 ob 10:07:59 CEST je Maxime Ripard napisal(a): > On Sat, May 19, 2018 at 08:31:18PM +0200, Jernej Skrabec wrote: > > If SoC has TCON TOP unit, it has to be configured from TCON, since it > > has all information needed. Additionally, if it is TCON TV, it must also >

[PATCH v5 2/8] reset: qcom: AOSS (always on subsystem) reset controller

2018-05-21 Thread Sibi Sankar
Add reset controller driver for Qualcomm SDM845 SoC to control reset signals provided by AOSS for Modem, Venus ADSP, GPU, Camera, Wireless, Display subsystem Signed-off-by: Sibi Sankar --- drivers/reset/Kconfig | 9 +++ drivers/reset/Makefile | 1 + drivers/reset/reset-qco

[PATCH v5 7/8] remoteproc: qcom: Add support for mss remoteproc on SDM845

2018-05-21 Thread Sibi Sankar
>From SDM845, the Q6SS reset sequence on software side has been simplified with the introduction of boot FSM which assists in bringing the Q6 out of reset. SDM845 brings a new reset signal ALT_RESET which is a part of the MSS subsystem hence requires reset clks to be enabled before assert/deassert

[PATCH v5 4/8] remoteproc: Synchronize proxy unvote from multiple contexts

2018-05-21 Thread Sibi Sankar
Synchronize proxy unvote of clks/regs from q6v5_stop and handover interrupt to prevent multiple proxy unvotes for a single rproc start. Signed-off-by: Sibi Sankar --- drivers/remoteproc/qcom_q6v5_pil.c | 73 ++ 1 file changed, 54 insertions(+), 19 deletions(-) diff -

[PATCH v5 3/8] remoteproc: Move proxy unvote to handover irq handler

2018-05-21 Thread Sibi Sankar
Introduce interrupt handler for smp2p ready interrupt to handle start completion. Move the proxy votes for clocks and regulators to the handover interrupt context. Signed-off-by: Sibi Sankar --- drivers/remoteproc/qcom_q6v5_pil.c | 29 +++-- 1 file changed, 23 insertions(

[PATCH v5 0/8] Add support for remoteproc modem-pil on SDM845 SoCs

2018-05-21 Thread Sibi Sankar
This patch series add support for remoteproc Q6v5 modem-pil on Qualcomm SDM845 SoC. The first patch adds AOSS (Always on subsystem) reset driver to provide for mss reset line. The last couple of patches add the resets sequence for Q6 on SDM845 and adds helper functions for arbitrary reset assert/de

[PATCH v5 1/8] dt-bindings: reset: Add AOSS reset bindings for SDM845 SoCs

2018-05-21 Thread Sibi Sankar
Add SDM845 AOSS (always on subsystem) reset controller binding Signed-off-by: Sibi Sankar --- .../bindings/reset/qcom,aoss-reset.txt| 52 +++ include/dt-bindings/reset/qcom,sdm845-aoss.h | 17 ++ 2 files changed, 69 insertions(+) create mode 100644 Documentation/dev

[PATCH v2 1/4] PCI: cadence: Update cdns_pcie_writel function signature

2018-05-21 Thread Alan Douglas
From: Alan Douglas Change cdns_pcie_writel() signature, u16 value changed to u32, since this function should write a long value Signed-off-by: Alan Douglas --- drivers/pci/cadence/pcie-cadence.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/cadence/pcie-cadenc

Re: [PATCHv8] gpio: Remove VLA from gpiolib

2018-05-21 Thread Laura Abbott
On 05/18/2018 02:12 PM, Andy Shevchenko wrote: On Sat, May 19, 2018 at 12:05 AM, Geert Uytterhoeven wrote: On Fri, May 18, 2018 at 10:07 PM, Andy Shevchenko wrote: On Fri, May 18, 2018 at 8:53 PM, Laura Abbott wrote: + bits = mask + BITS_TO_LONGS(chip->ngpio); +

Re: [Xen-devel] [RFC 1/3] xen/balloon: Allow allocating DMA buffers

2018-05-21 Thread Oleksandr Andrushchenko
On 05/21/2018 07:35 PM, Boris Ostrovsky wrote: On 05/21/2018 01:40 AM, Oleksandr Andrushchenko wrote: On 05/19/2018 01:04 AM, Boris Ostrovsky wrote: On 05/17/2018 04:26 AM, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko A commit message would be useful. Sure, v1 will have it

Re: [PATCH v5 04/28] fpga: mgr: add compat_id support

2018-05-21 Thread Alan Tull
On Sun, May 20, 2018 at 10:03 PM, Wu Hao wrote: > On Mon, May 07, 2018 at 04:09:06PM -0500, Alan Tull wrote: >> On Tue, May 1, 2018 at 9:50 PM, Wu Hao wrote: >> >> Hi Hao, >> >> Looks good! >> >> > This patch introduces compat_id support to fpga manager, it adds >> > a fpga_compat_id pointer to f

Re: [PATCH v3 1/2] cpufreq: schedutil: Fix iowait boost reset

2018-05-21 Thread Joel Fernandes
On Mon, May 21, 2018 at 09:51:19AM +0100, Patrick Bellasi wrote: > A more energy efficient update of the IO wait boosting mechanism has > been introduced in: > >commit a5a0809bc58e ("cpufreq: schedutil: Make iowait boost more energy > efficient") > > where the boost value is expected to be:

[PATCH 2/4] staging: lustre: Fix "Possible intergrate"->"Possibly integrate"

2018-05-21 Thread Sabin Mihai Rapan
Trivial fix to spelling mistake in TODO file. Signed-off-by: Sabin Mihai Rapan --- drivers/staging/lustre/TODO | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/TODO b/drivers/staging/lustre/TODO index 94446487748a..5332cdb19bfa 100644 --- a/drivers/stagi

[PATCH 1/4] staging: lustre: Fix "from from"->"from"

2018-05-21 Thread Sabin Mihai Rapan
Trivial fix to spelling mistake in README.txt Signed-off-by: Sabin Mihai Rapan --- drivers/staging/lustre/README.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/README.txt b/drivers/staging/lustre/README.txt index 0676243eea9e..783959240490 100644

[PATCH 3/4] staging: lustre: Fix "unsigned"->"unsigned int"

2018-05-21 Thread Sabin Mihai Rapan
This patch fixes the checkpatch.pl warning: WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: Sabin Mihai Rapan --- .../staging/lustre/include/uapi/linux/lustre/lustre_fiemap.h| 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/s

Re: [PATCH 1/6] ARM: OMAP1: ams-delta: add GPIO lookup tables

2018-05-21 Thread Tony Lindgren
Hi, * Janusz Krzysztofik [180518 14:12]: > Scope of the change is limited to GPIO pins used by board specific > device drivers which will be updated by follow-up patches of the > series. Those are some OMAP GPIO (gpio-0-15) and most of Amstrad Delta > latch2 GPIO bank pins. Remaining pins of thos

[PATCH v2 4/4] staging: lustre: Fix block comments style

2018-05-21 Thread Sabin Mihai Rapan
This patch fixes the checkpatch.pl warning: WARNING:BLOCK_COMMENT_STYLE: Block comments use a trailing */ on a separate line Signed-off-by: Sabin Mihai Rapan --- Changes in v2: - Removed trailing whitespace at lustre_idl.h:1532. .../staging/lustre/include/uapi/linux/lustre/lustre_idl.h | 6

[PATCH v2 00/15] NLS refactor and UTF-8 normalization

2018-05-21 Thread Gabriel Krisman Bertazi
* Archive of previous versions: https://www.spinics.net/lists/linux-fsdevel/msg125523.html The goal of this patchset is to adapt the NLS subsystem to support full UTF-8 normalization and casefold operations for specific versions of unicode. There are many use cases of this feature and, while my

[PATCH v2 01/15] nls: Wrap uni2char/char2uni callers

2018-05-21 Thread Gabriel Krisman Bertazi
Generated with the following coccinele script: @@ expression A, B, C, D; @@ ( - A->uni2char(B, C, D) + nls_uni2char(A, B, C, D) | - A->char2uni(B, C, D) + nls_char2uni(A, B, C, D) ) Signed-off-by: Gabriel Krisman Bertazi --- drivers/staging/ncpfs/ncplib_kernel.c | 8 fs/befs/linux

[PATCH v2 02/15] nls: Wrap charset field access

2018-05-21 Thread Gabriel Krisman Bertazi
Which will simplify further patches. No behavior changes intended. @@ struct nls_table *c; @@ - c->charset + nls_charset_name(c) Signed-off-by: Gabriel Krisman Bertazi --- drivers/staging/ncpfs/ioctl.c | 13 +++-- fs/befs/linuxvfs.c| 4 ++-- fs/cifs/cifs_unicode.c

[PATCH v2 03/15] nls: Wrap charset hooks in ops structure

2018-05-21 Thread Gabriel Krisman Bertazi
With the exception of the struct declaration, this patch was generated by the following Coccinelle script: @nlstable@ identifier p; expression uni2char_fn; expression char2uni_fn; @@ static struct nls_table p = { - .char2uni = char2uni_fn, - .uni2char = uni2char_fn, + .ops = &

[PATCH v2 04/15] nls: Split default charset from NLS core

2018-05-21 Thread Gabriel Krisman Bertazi
Changes since v1: - Fix build as a module (kbuild test robot) Signed-off-by: Gabriel Krisman Bertazi --- fs/nls/Makefile | 1 + fs/nls/nls_core.c| 94 fs/nls/{nls_base.c => nls_default.c} | 93 +++ 3

[PATCH v2 05/15] nls: Split struct nls_charset from struct nls_table

2018-05-21 Thread Gabriel Krisman Bertazi
struct nls_charset carries only the information required to register the charset with the NLS core and generate the nls_table on demand. nls_table is what is given to users to manipulate the encoding. With the exception of the following files (files declaration and default charset), which were edi

[PATCH v2 06/15] nls: Add support for multiple versions of an encoding

2018-05-21 Thread Gabriel Krisman Bertazi
NLS charsets wanting to use this feature can implement the load_create() hook, which creates a nls_table for that specific encoding version. The charset code is responsible for freeing the table memory when the module is removed. Signed-off-by: Gabriel Krisman Bertazi --- fs/nls/nls_core.c |

[PATCH v2 07/15] nls: Add new interface for string comparisons

2018-05-21 Thread Gabriel Krisman Bertazi
The existing stricmp() interface is limited by not accepting separated length parameters for each string being compared. This is a problem for charsets doing normalization or full casefold comparison, since different sized strings can still be matched. To resolve this problem, this patch implemen

[PATCH v2 11/15] scripts: add trie generator for UTF-8

2018-05-21 Thread Gabriel Krisman Bertazi
From: Olaf Weber mkutf8data.c is the source for a program that generates utf8data.h, which contains the trie that utf8norm.c uses. The trie is generated from the Unicode 10.0.0 data files. The format of the utf8data[] table is described in utf8norm.c, which is added in the next patch. Signed-off

[PATCH v2 09/15] nls: Add optional normalization and casefold hooks

2018-05-21 Thread Gabriel Krisman Bertazi
Signed-off-by: Gabriel Krisman Bertazi --- include/linux/nls.h | 28 +++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/include/linux/nls.h b/include/linux/nls.h index 72698d524b42..efd3712f0e81 100644 --- a/include/linux/nls.h +++ b/include/linux/nls.h @@

[PATCH v2 10/15] nls: utf8norm: Add unicode character database files

2018-05-21 Thread Gabriel Krisman Bertazi
From: Olaf Weber Add files from the Unicode Character Database, version 10.0.0, to the source. A helper program that generates a trie used for normalization from these files is part of a separate commit. - Notes on the update from 8.0.0 and 10.0.0: The structure of ucd files and special cases

Re: [PATCH 00/13] convert block layer to bioset_init()/mempool_init()

2018-05-21 Thread Kent Overstreet
On Mon, May 21, 2018 at 12:09:14PM -0400, Mike Snitzer wrote: > On Mon, May 21 2018 at 11:36am -0400, > Jens Axboe wrote: > > > On 5/21/18 9:18 AM, Mike Snitzer wrote: > > > On Mon, May 21 2018 at 11:09am -0400, > > > Jens Axboe wrote: > > > > > >> On 5/21/18 9:04 AM, Mike Snitzer wrote: > > >>

[PATCH v2 13/15] nls: utf8norm: reduce the size of utf8data[]

2018-05-21 Thread Gabriel Krisman Bertazi
From: Olaf Weber Remove the Hangul decompositions from the utf8data trie, and do algorithmic decomposition to calculate them on the fly. To store the decomposition the caller of utf8lookup()/utf8nlookup() must provide a 12-byte buffer, which is used to synthesize a leaf with the decomposition. Tr

[PATCH v2 12/15] nls: utf8norm: Introduce code for UTF-8 normalization

2018-05-21 Thread Gabriel Krisman Bertazi
From: Olaf Weber Supporting functions for UTF-8 normalization are in utf8norm.c with the header utf8norm.h. Two normalization forms are supported: nfkdi and nfkdicf. nfkdi: - Apply unicode normalization form NFKD. - Remove any Default_Ignorable_Code_Point. nfkdicf: - Apply unicode

[PATCH v2 14/15] nls: utf8norm: Integrate utf8norm code with NLS subsystem

2018-05-21 Thread Gabriel Krisman Bertazi
Changes since RFC v2: - Integrate with NLS Changes since RFC v1: - Change error return code from EIO to EINVAL. (Olaf Weber) - Fix issues with strncmp/strcmp. (Olaf Weber) - Remove stack buffer in normalization/casefold. (Olaf Weber) - Include length parameter for second string on compa

[PATCH v2 08/15] nls: Let charsets define the behavior of tolower/toupper

2018-05-21 Thread Gabriel Krisman Bertazi
Instead of always reading from a table, give the charset a chance to implement tolower and toupper it algorithmically. This patch was created using the semantic patch below, with the exception of the header files (hook definitions) and a fix to files that didn't have the tables statically allocate

Why is the length of max mount option a page size??

2018-05-21 Thread Jungsub Shin
Hi, now i'm interested in mount lenght of max mount option. I anaylsis ksys_mount() function in /fs/namespace.c. and find out the length of max mount option is a page size (4096 bytes). I know that almost mount option short and page size is enough to contain almost mount options. but because of o

Re: [PATCH v6 2/2] acpi: apei: Do not panic() on PCIe errors reported through GHES

2018-05-21 Thread Alex G.
On 05/21/2018 09:27 AM, Tyler Baicar wrote: > On 5/21/2018 9:49 AM, Alexandru Gagniuc wrote: (snip) > Hello Alex, > > There is a compile warning if CONFIG_HAVE_ACPI_APEI_NMI is not selected. > >   CC  drivers/acpi/apei/ghes.o > drivers/acpi/apei/ghes.c:483:12: warning: ‘ghes_severity’ defin

[PATCH v2 15/15] nls: utf8norm: Introduce test module for utf8norm implementation

2018-05-21 Thread Gabriel Krisman Bertazi
Changes since RFC v2: - Merge with NLS Changes since RFC v1: - Include comparison tests for matching strings with different lengths. - Include tests for characters included in unicode 8.0.0, 9.0.0 and 10.0.0. Signed-off-by: Gabriel Krisman Bertazi --- fs/nls/Kconfig | 5 +

Re: [PATCH 02/33] mfd: omap-usb-host: use match_string() helper

2018-05-21 Thread Tony Lindgren
* Yisheng Xie [180521 12:11]: > match_string() returns the index of an array for a matching string, > which can be used intead of open coded variant. Looks OK to me: Acked-by: Tony Lindgren

Re: [PATCH v2] schedutil: Allow cpufreq requests to be made even when kthread kicked

2018-05-21 Thread Patrick Bellasi
On 21-May 10:20, Joel Fernandes wrote: > Hi Patrick, > > On Mon, May 21, 2018 at 06:00:50PM +0100, Patrick Bellasi wrote: > > On 21-May 08:49, Joel Fernandes wrote: > > > On Mon, May 21, 2018 at 11:50:55AM +0100, Patrick Bellasi wrote: > > > > On 18-May 11:55, Joel Fernandes (Google.) wrote: > > >

[PATCH] mm: fix race between kmem_cache destroy, create and deactivate

2018-05-21 Thread Shakeel Butt
The memcg kmem cache creation and deactivation (SLUB only) is asynchronous. If a root kmem cache is destroyed whose memcg cache is in the process of creation or deactivation, the kernel may crash. Example of one such crash: general protection fault: [#1] SMP PTI CPU: 1 PID: 17

Re: [PATCH v4 3/3] perf annotate: Support '--group' option

2018-05-21 Thread Arnaldo Carvalho de Melo
Em Mon, May 21, 2018 at 10:57:46PM +0800, Jin Yao escreveu: > With the '--group' option, even for non-explicit group, perf annotate > will enable the group output. > > For example, > > perf record -e cycles,branches ./div > perf annotate main --stdio --group You forgot to make the first line to

Re: [PATCH v3 2/2] cpufreq: schedutil: Cleanup and document iowait boost

2018-05-21 Thread Joel Fernandes
On Mon, May 21, 2018 at 09:51:20AM +0100, Patrick Bellasi wrote: > The iowait boosting code has been recently updated to add a progressive > boosting behavior which allows to be less aggressive in boosting tasks > doing only sporadic IO operations, thus being more energy efficient for > example on

Re: [PATCH v2 0/2] Re: usb-storage: Add quirks to make G-Technology "G-Drive" work

2018-05-21 Thread Alan Stern
On Fri, 18 May 2018, Alexander Kappner wrote: > v2 of this patch implements the FL_ALWAYS_SYNC flag in the UAS driver, and > then > adds the flag as quirks for the device at issue. This allows the G-Drive to > work > under both UAS and usb-storage. > > Alexander Kappner (2): > [usb-storage] A

Re: [PATCH 12/33] clk: bcm2835: use match_string() helper

2018-05-21 Thread Eric Anholt
Yisheng Xie writes: > match_string() returns the index of an array for a matching string, > which can be used intead of open coded variant. > > Cc: Michael Turquette > Cc: Stephen Boyd > Cc: Eric Anholt > Cc: Stefan Wahren > Cc: linux-...@vger.kernel.org > Cc: linux-rpi-ker...@lists.infradead

Re: [PATCH] audit: add containerid support for IMA-audit

2018-05-21 Thread Stefan Berger
On 05/21/2018 12:58 PM, Steve Grubb wrote: On Thursday, May 17, 2018 10:18:13 AM EDT Stefan Berger wrote: audit_log_container_info() then releasing the local context. This version of the record has additional concerns covered here: https://github.com/linux-audit/audit-kernel/issues/52 Followin

INFO: task hung in xlog_grant_head_check

2018-05-21 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:203ec2fed17a Merge tag 'armsoc-fixes' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=11c1ad7780 kernel config: https://syzkaller.appspot.com/x/.config?x=f3b4e30da84ec1ed da

Re: [PATCH v6 14/17] mm: Iterate only over charged shrinkers during memcg shrink_slab()

2018-05-21 Thread Vladimir Davydov
On Mon, May 21, 2018 at 12:17:07PM +0300, Kirill Tkhai wrote: > >> +static unsigned long shrink_slab_memcg(gfp_t gfp_mask, int nid, > >> + struct mem_cgroup *memcg, int priority) > >> +{ > >> + struct memcg_shrinker_map *map; > >> + unsigned long freed = 0; > >> + int ret, i; >

[PATCHv9] gpio: Remove VLA from gpiolib

2018-05-21 Thread Laura Abbott
The new challenge is to remove VLAs from the kernel (see https://lkml.org/lkml/2018/3/7/621) to eventually turn on -Wvla. Using a kmalloc array is the easy way to fix this but kmalloc is still more expensive than stack allocation. Introduce a fast path with a fixed size stack array to cover most c

[RFC PATCH v2 06/12] drivers/xen/swiotlb-xen: update usage of address zone modifiers

2018-05-21 Thread Huaisheng HS1 Ye
Use __GFP_ZONE_MASK to replace (__GFP_DMA | __GFP_HIGHMEM). In function xen_swiotlb_alloc_coherent, it is obvious that __GFP_DMA32 is not the expecting zone type. ___GFP_DMA, ___GFP_HIGHMEM and ___GFP_DMA32 have been deleted from GFP bitmasks, the bottom three bits of GFP mask is reserved for st

Re: [PATCH v3 1/2] regulator: dt-bindings: add QCOM RPMh regulator bindings

2018-05-21 Thread Doug Anderson
Hi, On Fri, May 18, 2018 at 5:46 PM, David Collins wrote: > On 05/17/2018 06:01 PM, Doug Anderson wrote: >> On Thu, May 17, 2018 at 5:16 PM, David Collins >> wrote: >>> On 05/17/2018 02:22 PM, Doug Anderson wrote: On Fri, May 11, 2018 at 7:28 PM, David Collins wrote: > +- qcom,r

[RFC PATCH v2 07/12] fs/btrfs/extent_io: update usage of address zone modifiers

2018-05-21 Thread Huaisheng HS1 Ye
Use __GFP_ZONE_MASK to replace (__GFP_DMA32 | __GFP_HIGHMEM). In function alloc_extent_state, it is obvious that __GFP_DMA is not the expecting zone type. ___GFP_DMA, ___GFP_HIGHMEM and ___GFP_DMA32 have been deleted from GFP bitmasks, the bottom three bits of GFP mask is reserved for storing e

[RFC PATCH v2 08/12] drivers/block/zram/zram_drv: update usage of address zone modifiers

2018-05-21 Thread Huaisheng HS1 Ye
Use __GFP_ZONE_MOVABLE to replace (__GFP_HIGHMEM | __GFP_MOVABLE). ___GFP_DMA, ___GFP_HIGHMEM and ___GFP_DMA32 have been deleted from GFP bitmasks, the bottom three bits of GFP mask is reserved for storing encoded zone number. __GFP_ZONE_MOVABLE contains encoded ZONE_MOVABLE and __GFP_MOVABLE fl

Re: [PATCH] audit: add containerid support for IMA-audit

2018-05-21 Thread Stefan Berger
On 05/21/2018 01:21 PM, Steve Grubb wrote: On Friday, May 18, 2018 12:34:24 PM EDT Mimi Zohar wrote: On Fri, 2018-05-18 at 11:56 -0400, Richard Guy Briggs wrote: On 2018-05-18 10:39, Mimi Zohar wrote: On Fri, 2018-05-18 at 09:54 -0400, Stefan Berger wrote: On 05/18/2018 08:53 AM, Mimi Zohar w

INFO: rcu detected stall in corrupted

2018-05-21 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:771c577c23ba Linux 4.17-rc6 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1713435780 kernel config: https://syzkaller.appspot.com/x/.config?x=982e2df1b9e60b02 dashboard link: https://syzkaller.a

Re: [PATCH v2] schedutil: Allow cpufreq requests to be made even when kthread kicked

2018-05-21 Thread Joel Fernandes
On Mon, May 21, 2018 at 11:50:55AM +0100, Patrick Bellasi wrote: > On 18-May 11:55, Joel Fernandes (Google.) wrote: > > From: "Joel Fernandes (Google)" > > > > Currently there is a chance of a schedutil cpufreq update request to be > > dropped if there is a pending update request. This pending re

[RFC PATCH v2 09/12] mm/vmpressure: update usage of address zone modifiers

2018-05-21 Thread Huaisheng HS1 Ye
Use __GFP_ZONE_MOVABLE to replace (__GFP_HIGHMEM | __GFP_MOVABLE). ___GFP_DMA, ___GFP_HIGHMEM and ___GFP_DMA32 have been deleted from GFP bitmasks, the bottom three bits of GFP mask is reserved for storing encoded zone number. __GFP_ZONE_MOVABLE contains encoded ZONE_MOVABLE and __GFP_MOVABLE fl

Re: [PATCH v2 0/7] mm: pages for hugetlb's overcommit may be able to charge to memcg

2018-05-21 Thread Mike Kravetz
On 05/17/2018 09:27 PM, TSUKADA Koutaro wrote: > Thanks to Mike Kravetz for comment on the previous version patch. > > The purpose of this patch-set is to make it possible to control whether or > not to charge surplus hugetlb pages obtained by overcommitting to memory > cgroup. In the future, I am

Re: INFO: rcu detected stall in corrupted

2018-05-21 Thread David Miller
From: syzbot Date: Mon, 21 May 2018 11:05:02 -0700 > find_match+0x244/0x13a0 net/ipv6/route.c:691 > find_rr_leaf net/ipv6/route.c:729 [inline] > rt6_select net/ipv6/route.c:779 [inline] Hmmm, endless loop in find_rr_leaf or similar?

[PATCH v7 2/2] leds: lm3601x: Introduce the lm3601x LED driver

2018-05-21 Thread Dan Murphy
Introduce the family of LED devices that can drive a torch, strobe or IR LED. The LED driver can be configured with a strobe timer to execute a strobe flash. The IR LED brightness is controlled via the torch brightness register. The data sheet for each the LM36010 and LM36011 LED drivers can be

[PATCH v7 1/2] dt: bindings: lm3601x: Introduce the lm3601x driver

2018-05-21 Thread Dan Murphy
Introduce the device tree bindings for the lm3601x family of LED torch, flash and IR drivers. Reviewed-by: Rob Herring Signed-off-by: Dan Murphy --- v7 - Removed led-sources in favor of reg, fixed malformatted ranges - https://patchwork.kernel.org/patch/10401435/ v6 - Removed multiple led chi

Re: [PATCH 1/6] ARM: OMAP1: ams-delta: add GPIO lookup tables

2018-05-21 Thread Janusz Krzysztofik
On Monday, May 21, 2018 7:35:19 PM CEST Tony Lindgren wrote: > Hi, > > * Janusz Krzysztofik [180518 14:12]: > > Scope of the change is limited to GPIO pins used by board specific > > device drivers which will be updated by follow-up patches of the > > series. Those are some OMAP GPIO (gpio-0-15)

Re: [PATCH v2]: perf/x86: store user space frame-pointer value on a sample

2018-05-21 Thread Alexey Budankov
Hi, On 21.05.2018 20:23, Andy Lutomirski wrote: > >> On May 21, 2018, at 9:51 AM, Alexey Budankov >> wrote: >> >> >> Hi Andy, >>> On 21.05.2018 17:14, Andy Lutomirski wrote: >>> On May 21, 2018, at 5:44 AM, Alexey Budankov wrote: Hi Peter, > On 10.05.2018 13:14, P

Re: INFO: rcu detected stall in corrupted

2018-05-21 Thread Eric Dumazet
On 05/21/2018 11:09 AM, David Miller wrote: > From: syzbot > Date: Mon, 21 May 2018 11:05:02 -0700 > >> find_match+0x244/0x13a0 net/ipv6/route.c:691 >> find_rr_leaf net/ipv6/route.c:729 [inline] >> rt6_select net/ipv6/route.c:779 [inline] > > Hmmm, endless loop in find_rr_leaf or similar? >

[PATCH v2] char: agp: Change return type to vm_fault_t

2018-05-21 Thread Souptick Joarder
Use new return type vm_fault_t for fault handler. For now, this is just documenting that the function returns a VM_FAULT value rather than an errno. Once all instances are converted, vm_fault_t will become a distinct type. Ref-> commit 1c8f422059ae ("mm: change return type to vm_fault_t") was adde

Re: INFO: rcu detected stall in corrupted

2018-05-21 Thread David Ahern
On 5/21/18 12:13 PM, Eric Dumazet wrote: > > > On 05/21/2018 11:09 AM, David Miller wrote: >> From: syzbot >> Date: Mon, 21 May 2018 11:05:02 -0700 >> >>> find_match+0x244/0x13a0 net/ipv6/route.c:691 >>> find_rr_leaf net/ipv6/route.c:729 [inline] >>> rt6_select net/ipv6/route.c:779 [inline] >

RE: [PATCH v2] packet: track ring entry use using a shadow ring to prevent RX ring overrun

2018-05-21 Thread Jon Rosen (jrosen)
On Monday, May 21, 2018 1:07 PM, Willem de Bruijn wrote: >On Mon, May 21, 2018 at 8:57 AM, Jon Rosen (jrosen) wrote: >> On Sunday, May 20, 2018 7:22 PM, Willem de Bruijn >> wrote: >>> On Sun, May 20, 2018 at 6:51 PM, Willem de Bruijn >>> wrote: On Sat, May 19, 2018 at 8:07 AM, Jon Rosen w

Re: [PATCH v6 12/17] mm: Set bit in memcg shrinker bitmap on first list_lru item apearance

2018-05-21 Thread Vladimir Davydov
On Mon, May 21, 2018 at 12:31:34PM +0300, Kirill Tkhai wrote: > On 20.05.2018 10:55, Vladimir Davydov wrote: > > On Fri, May 18, 2018 at 11:43:42AM +0300, Kirill Tkhai wrote: > >> Introduce set_shrinker_bit() function to set shrinker-related > >> bit in memcg shrinker bitmap, and set the bit after

[PATCH] Documentation: document hung_task_panic kernel parameter

2018-05-21 Thread Omar Sandoval
From: Omar Sandoval This parameter has been around since commit e162b39a368f ("softlockup: decouple hung tasks check from softlockup detection") in 2009 but was never documented. Signed-off-by: Omar Sandoval --- Documentation/admin-guide/kernel-parameters.txt | 10 ++ 1 file changed, 1

Re: [PATCH v3 0/5]

2018-05-21 Thread Will Deacon
Hi Marc, Thanks for this. On Fri, May 18, 2018 at 03:39:08PM +0100, Marc Zyngier wrote: > PMUv3 has been introduced with ARMv8 and, while it has only been used > on 64bit systems so far, it would definitely be useful for 32bit > guests running under KVM/arm64, for example. > > There is also the

[PATCH v2] kernel: event: core: Change return type to vm_fault_t

2018-05-21 Thread Souptick Joarder
Use new return type vm_fault_t for fault handler. For now, this is just documenting that the function returns a VM_FAULT value rather than an errno. Once all instances are converted, vm_fault_t will become a distinct type. Ref-> commit 1c8f422059ae ("mm: change return type to vm_fault_t") Signed-

Re: [PATCH 00/13] convert block layer to bioset_init()/mempool_init()

2018-05-21 Thread Mike Snitzer
On Mon, May 21 2018 at 1:37pm -0400, Kent Overstreet wrote: > > Uh, you came across as upset and paranoid to me too. Chalk it up to email? :) Awesome. See how easy it is to make someone with purely constructive questions and feedback come off as upset and paranoid? The tipping point occurs w

Re: [RFC PATCH 01/11] prctl: Support movement of arch prctls out of common code

2018-05-21 Thread Will Deacon
Hi Dave, On Mon, May 14, 2018 at 06:14:17PM +0100, Dave Martin wrote: > The core framework for the prctl() syscall is unloved and looking > rather crusty these days. It also relies on defining ancillary > boilerplate macros for each prctl() in order to control conditional > compilation of the dif

Re: [RFC PATCH 02/11] arm64: Move arch-specific prctls out of core code

2018-05-21 Thread Will Deacon
On Mon, May 14, 2018 at 06:14:18PM +0100, Dave Martin wrote: > This patch moves the arm64-specific prctl call implementations out > of core code and removes redundant boilerplate associated with > them. > > No functional change. > > Signed-off-by: Dave Martin > Cc: Catalin Marinas > Cc: Will De

Re: [PATCH] audit: add containerid support for IMA-audit

2018-05-21 Thread Steve Grubb
Hello Stefan, On Monday, May 21, 2018 1:53:04 PM EDT Stefan Berger wrote: > On 05/21/2018 12:58 PM, Steve Grubb wrote: > > On Thursday, May 17, 2018 10:18:13 AM EDT Stefan Berger wrote: > >>> audit_log_container_info() then releasing the local context. This > >>> version of the record has additio

Re: [PATCH 00/10] Misc block layer patches for bcachefs

2018-05-21 Thread Omar Sandoval
On Mon, May 21, 2018 at 03:11:08PM +, Bart Van Assche wrote: > On Sun, 2018-05-20 at 19:58 -0400, Kent Overstreet wrote: > > On Sun, May 20, 2018 at 11:40:45PM +, Bart Van Assche wrote: > > > On Sun, 2018-05-20 at 19:21 -0400, Kent Overstreet wrote: > > > > I really have better things to do

[PATCH v2] arm: bcm2835: Add the PMU to the devicetree.

2018-05-21 Thread Eric Anholt
This only probes on arm64 so far, but hopefully that driver will be generalized soon. Signed-off-by: Eric Anholt --- arch/arm/boot/dts/bcm2837.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/bcm2837.dtsi b/arch/arm/boot/dts/bcm2837.dtsi index 7704bb029605..beb6c5

Re: Linux messages full of `random: get_random_u32 called from`

2018-05-21 Thread Trent Piepho
On Fri, 2018-05-18 at 19:22 -0400, Theodore Y. Ts'o wrote: > On Fri, May 18, 2018 at 10:56:18PM +, Trent Piepho wrote: > > > > Let's look at what we're doing after this fix: > > Want non-cryptographic random data for UUID, ask kernel for it. > > Kernel has non-cryptographic random data, won't

Re: [PATCH v6 05/17] mm: Assign memcg-aware shrinkers bitmap to memcg

2018-05-21 Thread Vladimir Davydov
On Mon, May 21, 2018 at 01:16:40PM +0300, Kirill Tkhai wrote: > >> +static int memcg_expand_one_shrinker_map(struct mem_cgroup *memcg, > >> + int size, int old_size) > > > > Nit: No point in passing old_size here. You can instead use > > memcg_shrinker_map_size di

Re: [PATCH] audit: add containerid support for IMA-audit

2018-05-21 Thread Steve Grubb
Hello Stefan, On Monday, May 21, 2018 2:04:08 PM EDT Stefan Berger wrote: > On 05/21/2018 01:21 PM, Steve Grubb wrote: > > On Friday, May 18, 2018 12:34:24 PM EDT Mimi Zohar wrote: > >> On Fri, 2018-05-18 at 11:56 -0400, Richard Guy Briggs wrote: > >>> On 2018-05-18 10:39, Mimi Zohar wrote: >

Re: [PATCH 11/12] xfs: convert to bioset_init()/mempool_init()

2018-05-21 Thread Darrick J. Wong
On Sun, May 20, 2018 at 06:25:57PM -0400, Kent Overstreet wrote: > Signed-off-by: Kent Overstreet Looks ok, I guess... Acked-by: Darrick J. Wong --D > --- > fs/xfs/xfs_aops.c | 2 +- > fs/xfs/xfs_aops.h | 2 +- > fs/xfs/xfs_super.c | 11 +-- > 3 files changed, 7 insertions(+), 8 d

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