Re: [PATCH v2] serial: exar: Fix stuck MSIs

2017-05-13 Thread Jan Kiszka
On 2017-04-24 14:07, Andy Shevchenko wrote: > On Mon, 2017-04-24 at 12:30 +0200, Jan Kiszka wrote: >> After migrating 8250_exar to MSI in 172c33cb61da, we can get stuck >> without further interrupts because of the special wake-up event these >> chips send. They are only cleared by reading INT0. As

Re: [patch v4 resend 2/2] kcmp: Add KCMP_EPOLL_TFD mode to compare epoll target files

2017-05-13 Thread Cyrill Gorcunov
On Sat, May 13, 2017 at 09:55:14AM +0300, Cyrill Gorcunov wrote: > On Fri, May 12, 2017 at 06:45:09PM -0700, Andrei Vagin wrote: > > On Sat, May 13, 2017 at 01:53:40AM +0300, Cyrill Gorcunov wrote: > > > On Sat, May 13, 2017 at 12:41:30AM +0200, Jann Horn wrote: > > > > [resending as plaintext] > >

Re: [kernel-hardening] Re: [PATCH v9 1/4] syscalls: Verify address limit before returning to user-mode

2017-05-13 Thread Christoph Hellwig
On Fri, May 12, 2017 at 10:30:44PM +0200, Peter Zijlstra wrote: > On stack variable length arrays get implemented by the compiler doing > alloca(), and we sadly have a few of those around. I've just got rid of one of those and I wish they would appear entirely as they are horrible in so many diffe

[PATCH 5/8] gpio: exar: Fix reading of directions and values

2017-05-13 Thread Jan Kiszka
First, the logic for translating a register bit to the return code of exar_get_direction and exar_get_value were wrong. And second, there was a flip regarding the register bank in exar_get_direction. Signed-off-by: Jan Kiszka --- drivers/gpio/gpio-exar.c | 8 1 file changed, 4 insertion

[PATCH 2/8] gpio: exar: Fix passing in of parent PCI device

2017-05-13 Thread Jan Kiszka
This fixes reloading of the driver for the same device: First of all, the driver sets drvdata to its own value during probing and does not restore the original value on exit. But this won't help anyway as the core clears drvdata after the driver left. Use stable platform_data instead. Signed-off-

[PATCH 1/8] serial: exar: Preconfigure xr17v35x MPIOs as output

2017-05-13 Thread Jan Kiszka
This is the safe default for GPIOs with unknown external wiring. Signed-off-by: Jan Kiszka --- drivers/tty/serial/8250/8250_exar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/8250/8250_exar.c b/drivers/tty/serial/8250/8250_exar.c index 1270ff163f63

[PATCH 7/8] gpio-exar/8250-exar: Make set of exported GPIOs configurable

2017-05-13 Thread Jan Kiszka
On the SIMATIC, IOT2040 only a single pin is exportable as GPIO, the rest is required to operate the UART. To allow modeling this case, use device properties to specify a (consecutive) pin subset for exporting by the gpio-exar driver. Signed-off-by: Jan Kiszka --- drivers/gpio/gpio-exar.c

[PATCH 1/2] dt-bindings: timer: add nxp tpm timer binding doc

2017-05-13 Thread Dong Aisheng
Adding NXP Low Power Timer/Pulse Width Modulation Module (TPM) binding doc. Cc: Rob Herring Cc: Mark Rutland Cc: devicet...@vger.kernel.org Cc: Daniel Lezcano Cc: Thomas Gleixner Cc: Shawn Guo Cc: Bai Ping Signed-off-by: Dong Aisheng --- .../devicetree/bindings/timer/nxp,tpm-timer.txt|

[PATCH 3/8] gpio: exar: Allocate resources on behalf of the platform device

2017-05-13 Thread Jan Kiszka
Do not allocate resources on behalf of the parent device but on our own. Otherwise, cleanup does not properly work if gpio-exar is removed but not the parent device. Signed-off-by: Jan Kiszka --- drivers/gpio/gpio-exar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dri

[PATCH 2/2] timer: imx-tpm: add imx tpm timer support

2017-05-13 Thread Dong Aisheng
IMX Timer/PWM Module (TPM) supports both timer and pwm function while this patch only adds the timer support. PWM would be added later. The TPM counter, compare and capture registers are clocked by an asynchronous clock that can remain enabled in low power modes. Cc: Daniel Lezcano Cc: Thomas Gl

[PATCH 4/8] gpio: exar: Fix iomap request

2017-05-13 Thread Jan Kiszka
The UART driver already maps the resource for us. Trying to do this here only fails and leaves us with a non-working device. Signed-off-by: Jan Kiszka --- drivers/gpio/gpio-exar.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/gpio/gpio-exar.c b/drivers/gp

[PATCH 8/8] serial: exar: Add support for IOT2040 device

2017-05-13 Thread Jan Kiszka
This implements the setup of RS232 and the switch-over to RS485 or RS422 for the Siemens IOT2040. That uses an EXAR XR17V352 with external logic to switch between the different modes. The external logic is controlled via MPIO pins of the EXAR controller. Only pin 10 can be exported as GPIO on the

[PATCH 6/8] serial: uapi: Add support for bus termination

2017-05-13 Thread Jan Kiszka
The Siemens IOT2040 comes with a RS485 interface that allows to enable or disable bus termination via software. Add a bit to the flags field of serial_rs485 that applications can set in order to request this feature from the hardware. This seems generic enough to add it for everyone. Existing drive

[PATCH 0/8] serial/gpio: exar: Fixes and support for IOT2000

2017-05-13 Thread Jan Kiszka
This makes the gpio-exar driver usable, which was prevented by a number of fatal bugs, and adds support for the SIMATIC IOT2040 to the 8250-exar driver and, indirectly, to gpio-exar as well. It's a cross-subsystem series, so I'm also cross-posting to the serial and gpio lists. Jan Jan Kiszka (8):

Re: [PATCH] usb: gadget: f_fs: use memdup_user

2017-05-13 Thread Dan Carpenter
On Sat, May 13, 2017 at 11:15:59AM +0800, Geliang Tang wrote: > Use memdup_user() helper instead of open-coding to simplify the code. > > Signed-off-by: Geliang Tang > --- > drivers/usb/gadget/function/f_fs.c | 11 +++ > 1 file changed, 3 insertions(+), 8 deletions(-) > > diff --git a/d

[PATCH linux-next] kcmp: fs/epoll -- Wrap kcmp code with CONFIG_CHECKPOINT_RESTORE

2017-05-13 Thread Cyrill Gorcunov
kcmp syscall is build iif CONFIG_CHECKPOINT_RESTORE is selected, so wrap appropriate helpers in epoll code with the config to build it conditionally. Signed-off-by: Cyrill Gorcunov Reported-by: Andrew Morton CC: Andrey Vagin CC: Al Viro CC: Pavel Emelyanov CC: Michael Kerrisk CC: Jason Baron

[PATCH 0/2] Industry-pack bus: Adjustments for two function implementations

2017-05-13 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 13 May 2017 10:45:54 +0200 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete an error message for a failed memory allocation in ipack_device_read_id() Improve a size determination in ipack_bus_register

[PATCH 1/2] ipack: Delete an error message for a failed memory allocation in ipack_device_read_id()

2017-05-13 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 13 May 2017 10:20:07 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Sign

[PATCH 2/2] ipack: Improve a size determination in ipack_bus_register()

2017-05-13 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 13 May 2017 10:37:06 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Mar

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

2017-05-13 Thread Mauro Carvalho Chehab
Hi Jeff, Em Fri, 12 May 2017 10:02:56 -0400 Jeff Layton escreveu: > 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. > > > > Si

Re: [PATCH 03/36] docs-rst: convert kernel-locking to ReST

2017-05-13 Thread Mauro Carvalho Chehab
Em Fri, 12 May 2017 18:57:13 +0200 Markus Heiser escreveu: > Am 12.05.2017 um 15:59 schrieb Mauro Carvalho Chehab > : > > > Use pandoc to convert documentation to ReST by calling > > Documentation/sphinx/tmplcvt script. > > > > - Manually adjust tables with got broken by conversion > > > > Si

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

2017-05-13 Thread Thomas Gleixner
On Fri, 12 May 2017, Eric W. Biederman wrote: > Which leaves me perplexed. The hashes from tglx's current tree: > https://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git > on kernel.org and the hashes in your full history tree differ. > Given that they are in theory the same tree this dis

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

2017-05-13 Thread Mauro Carvalho Chehab
Em Fri, 12 May 2017 15:19:17 -0700 Darren Hart escreveu: > On Sat, May 13, 2017 at 12:11:09AM +0200, Peter Zijlstra wrote: > > On Fri, May 12, 2017 at 06:51:50PM -0300, Mauro Carvalho Chehab wrote: > > > > * Return: > > > > * * 0 - ready to wait > > > > * * 1 - acquired the lock > > > >

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

2017-05-13 Thread Mauro Carvalho Chehab
Em Fri, 12 May 2017 18:35:29 +0200 Markus Heiser escreveu: > Am 12.05.2017 um 15:59 schrieb 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

[PATCH 1/2] fdt: correctly handle uncompressed node names

2017-05-13 Thread Sascha Silbe
When handling uncompressed node names, we need to compare the last component rather than the entire string. Signed-off-by: Sascha Silbe --- scripts/dtc/libfdt/fdt_ro.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/dtc/libfdt/fdt_ro.c b/scripts/dtc/libfdt/fdt_ro.c index 3d00d2eee

[PATCH 2/2] of: fdt: fix unflattening of FDTs containing uncompressed paths

2017-05-13 Thread Sascha Silbe
Probably since commit dfbd4c6eff35 ("drivers/of: Split unflatten_dt_node()"), unflattening an FDT containing uncompressed node names (e.g. "/gpio@d4019000/gpio@0") will abort after scanning the root node because fpsize wasn't updated to include the path len. Signed-off-by: Sascha Silbe --- drive

[PATCH 0/2] FDT fixes for running on native Open Firmware

2017-05-13 Thread Sascha Silbe
Two fixes for bugs in the FDT code I discovered while trying to get the mainline kernel to run on OLPC XO-1.75. XOs are running Open Firmware natively, not just passing down some blob. Sascha Silbe (2): fdt: correctly handle uncompressed node names of: fdt: fix unflattening of FDTs containing

Re: [PATCH v1] samples/bpf: Add a .gitignore for binaries

2017-05-13 Thread Mickaël Salaün
On 13/02/2017 02:43, David Ahern wrote: > On 2/12/17 2:23 PM, Mickaël Salaün wrote: >> diff --git a/samples/bpf/.gitignore b/samples/bpf/.gitignore >> new file mode 100644 >> index ..a7562a5ef4c2 >> --- /dev/null >> +++ b/samples/bpf/.gitignore >> @@ -0,0 +1,32 @@ >> +fds_example >> +l

You Just Won Qatar Foundation Donation**Treat Urgently

2017-05-13 Thread QATAR
Dear Beneficiary, You have been selected to receive (950,000.00 EURO) as charity donations / aid from the Qatar Foundation. Please kindly provide the below information details mention. 1. Your Full Name: 2. Country: 3. Marital Status: 4. Age: 5. Occupation: 6. Telephone: 7. Home Address: Note:

Re: [PATCH] serial: altera_jtaguart: adding iounmap()

2017-05-13 Thread Tobias Klauser
On 2017-05-12 at 23:36:22 +0200, Alexey Khoroshilov wrote: > The driver does ioremap(port->mapbase, ALTERA_JTAGUART_SIZE), > but there is no any iounmap(). > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alexey Khoroshilov Acked-by: Tobias Klauser Thank

[PATCH 4/5] mtd: adjust kernel-docs to avoid Sphinx/kerneldoc warnings

2017-05-13 Thread Mauro Carvalho Chehab
./drivers/mtd/nand/nand_bbt.c:1: warning: no structured comments found ./include/linux/mtd/nand.h:785: ERROR: Unexpected indentation. ./drivers/mtd/nand/nand_base.c:449: WARNING: Definition list ends without a blank line; unexpected unindent. ./drivers/mtd/nand/nand_base.c:1161: ERROR: Unexpected

[PATCH 2/5] docs-rst: convert mtdnand book to ReST

2017-05-13 Thread Mauro Carvalho Chehab
Use pandoc to convert documentation to ReST by calling Documentation/sphinx/tmplcvt script. The tables were manually adjusted to fit into 80 columns. Signed-off-by: Mauro Carvalho Chehab --- Documentation/DocBook/Makefile |1 - Documentation/DocBook/mtdnand.tmpl | 1291 -

[PATCH 5/5] docs-rst: convert sh book to ReST

2017-05-13 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/sh.tmpl | 105 - Documentation/conf.py | 2 + Do

[PATCH 3/5] mtdnand.rst: Fix some typos and group the "::" with previous line

2017-05-13 Thread Mauro Carvalho Chehab
Typo: ored -> ordered While here, group the :: with the previous paragraph, in order to make it visually better when reading as a text file. Signed-off-by: Mauro Carvalho Chehab --- Documentation/driver-api/mtdnand.rst | 24 +++- 1 file changed, 7 insertions(+), 17 d

[PATCH 0/5] Convert more books to ReST

2017-05-13 Thread Mauro Carvalho Chehab
This patch series convert the following books to ReST: - librs - mtdnand - sh And it is based on my previous series of conversion patches. After this series, there will be just one DocBook pending conversion: - lsm (Linux Security Modules) This book is very outdat

[PATCH 1/5] docs-rst: convert librs book to ReST

2017-05-13 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/librs.tmpl | 289 --- Documentation/core-api/index.rst | 1 +

[PATCH] kbuild: add ARM support for tar-pkg

2017-05-13 Thread Sascha Silbe
The fallback code for "unknown" architectures doesn't work on ARM because for ARM (and a couple of other architectures) KBUILD_IMAGE contains only the file name, not the full path. Having an explicit rule also avoids printing the warning for unknown architectures. Signed-off-by: Sascha Silbe ---

[PATCH 2/2] ARM: davinci: PM: Do not free useful resources in normal path in 'davinci_pm_init'

2017-05-13 Thread Christophe JAILLET
This looks spurious to iounmap resources in the normal path of this init function. The 3 ioremap'ed fields of 'pm_config' can be accessed later on in other functions, so it is likely that we should return 'success' before unrolling everything. Fixes: aa9aa1ec2df6 ("ARM: davinci: PM: rework init, r

[GIT PULL] UML changes for v4.12-rc1

2017-05-13 Thread Richard Weinberger
Linus, The following changes since commit a351e9b9fc24e982ec2f0e76379a49826036da12: Linux 4.11 (2017-04-30 19:47:48 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml.git for-linus-4.12-rc1 for you to fetch changes up to ce4586063f1af780b1c6

[PATCH 1/2] ARM: davinci: PM: Free resources in error handling path in 'davinci_pm_init'

2017-05-13 Thread Christophe JAILLET
If 'sram_alloc' fails, we need to free already allocated resources. Fixes: aa9aa1ec2df6 ("ARM: davinci: PM: rework init, remove platform device") Signed-off-by: Christophe JAILLET --- arch/arm/mach-davinci/pm.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach

[GIT PULL] UBI/UBIFS updates for 4.12-rc1

2017-05-13 Thread Richard Weinberger
Linus, The following changes since commit a351e9b9fc24e982ec2f0e76379a49826036da12: Linux 4.11 (2017-04-30 19:47:48 -0700) are available in the git repository at: git://git.infradead.org/linux-ubifs.git tags/upstream-4.12-rc1 for you to fetch changes up to 7bccd12d27b7e358823feb5429731b8ee

[PATCH 12622/12622] Staging: ccree: ssi_cipher: fix brace coding style issue

2017-05-13 Thread Ammly Fredrick
Fixed some coding style issues after running scripts/checkpatch.pl Fixed spelling in ssi_blkcipher_complete(), should be counter not couter. Signed-off-by: Ammly Fredrick --- drivers/staging/ccree/ssi_cipher.c | 72 ++ 1 file changed, 34 insertions(+), 38 del

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

2017-05-13 Thread Sergey Senozhatsky
On (05/12/17 14:57), Petr Mladek wrote: [..] > I have tried to reproduce the problem and started kernel with > console=ttyS1 console=ttyS0 in qemu. It created: > > console_cmdline = {{ > .name = "ttyS"; > .index = 1; //

[PATCH 00/17] convert/reorganize Documentation/security/

2017-05-13 Thread Kees Cook
Hi, This ReSTifies everything under Documentation/security/, and reorganizes some of it (mainly the LSMs) under /admin-guide/ per Jon's request. Since /security/ is already being indexed under the kernel development portion of the sphinx index, I didn't move it, keeping only things that were direc

[PATCH 01/17] doc: ReSTify seccomp_filter.txt

2017-05-13 Thread Kees Cook
This updates seccomp_filter.txt for ReST markup, and moves it under the user-space API index, since it describes how application author can use seccomp. Signed-off-by: Kees Cook --- Documentation/userspace-api/index.rst | 1 + .../seccomp_filter.rst}| 1

[PATCH 11/17] doc: ReSTify Yama.txt

2017-05-13 Thread Kees Cook
Adjusts for ReST markup and moves under LSM admin guide. Signed-off-by: Kees Cook --- .../Yama.txt => admin-guide/LSM/Yama.rst} | 55 -- Documentation/admin-guide/LSM/index.rst| 1 + Documentation/security/00-INDEX| 2 - MAINTAINERS

[PATCH 15/17] doc: ReSTify keys-ecryptfs.txt

2017-05-13 Thread Kees Cook
Adjusts for ReST markup and moves under keys security devel index. Cc: David Howells Cc: Tyler Hicks Signed-off-by: Kees Cook --- Documentation/security/00-INDEX | 2 -- .../security/{keys-ecryptfs.txt => keys/ecryptfs.rst} | 19 --- Documentation/securit

[PATCH 12/17] doc: ReSTify LoadPin.txt

2017-05-13 Thread Kees Cook
Adjusts for ReST markup and moves under LSM admin guide. Signed-off-by: Kees Cook --- .../{security/LoadPin.txt => admin-guide/LSM/LoadPin.rst}| 12 Documentation/admin-guide/LSM/index.rst | 1 + MAINTAINERS

[PATCH 14/17] doc: ReSTify keys.txt

2017-05-13 Thread Kees Cook
This creates a new section in the security development index for kernel keys, and adjusts for ReST markup. Cc: David Howells Signed-off-by: Kees Cook --- Documentation/crypto/asymmetric-keys.txt | 2 +- Documentation/security/00-INDEX| 2 - Documentation/securi

[PATCH 17/17] doc: ReSTify keys-trusted-encrypted.txt

2017-05-13 Thread Kees Cook
Adjusts for ReST markup and moves under keys security devel index. Cc: David Howells Cc: Mimi Zohar Signed-off-by: Kees Cook --- Documentation/security/00-INDEX| 4 --- Documentation/security/conf.py | 8 -- Documentation/security/keys/index.rst

[PATCH 16/17] doc: ReSTify keys-request-key.txt

2017-05-13 Thread Kees Cook
Adjusts for ReST markup and moves under keys security devel index. Cc: David Howells Signed-off-by: Kees Cook --- Documentation/filesystems/nfs/idmapper.txt | 2 +- Documentation/networking/dns_resolver.txt | 2 +- Documentation/security/00-INDEX| 2 - Do

[PATCH 08/17] doc: ReSTify SELinux.txt

2017-05-13 Thread Kees Cook
Adjusts for ReST markup and moves under LSM admin guide. Cc: Paul Moore Signed-off-by: Kees Cook --- .../SELinux.txt => admin-guide/LSM/SELinux.rst}| 18 -- Documentation/admin-guide/LSM/index.rst| 5 + Documentation/security/00-INDEX

[PATCH 07/17] doc: ReSTify and split LSM.txt

2017-05-13 Thread Kees Cook
The existing LSM.txt file covered both usage and development, so split this into two files, one under admin-guide and one under kernel development. Cc: James Morris Signed-off-by: Kees Cook --- .../LSM.txt => admin-guide/LSM/index.rst} | 22 ++ Documentation/admin-g

[PATCH 10/17] doc: ReSTify tomoyo.txt

2017-05-13 Thread Kees Cook
Adjusts for ReST markup and moves under LSM admin guide. Cc: Tetsuo Handa Signed-off-by: Kees Cook --- Documentation/admin-guide/LSM/index.rst| 1 + .../tomoyo.txt => admin-guide/LSM/tomoyo.rst} | 22 -- Documentation/security/00-INDEX|

[PATCH 09/17] doc: ReSTify apparmor.txt

2017-05-13 Thread Kees Cook
Adjusts for ReST markup and moves under LSM admin guide. Cc: John Johansen Signed-off-by: Kees Cook --- .../apparmor.txt => admin-guide/LSM/apparmor.rst} | 36 ++ Documentation/admin-guide/LSM/index.rst| 1 + Documentation/security/00-INDEX|

[PATCH 13/17] doc: ReSTify Smack.txt

2017-05-13 Thread Kees Cook
Adjusts for ReST markup and moves under LSM admin guide. Cc: Casey Schaufler Signed-off-by: Kees Cook --- .../Smack.txt => admin-guide/LSM/Smack.rst}| 273 ++--- Documentation/admin-guide/LSM/index.rst| 1 + Documentation/security/00-INDEX

[PATCH 02/17] doc: ReSTify no_new_privs.txt

2017-05-13 Thread Kees Cook
This updates no_new_privs documentation to ReST markup and adds it to the user-space API documentation. Signed-off-by: Kees Cook --- Documentation/userspace-api/index.rst | 1 + .../no_new_privs.rst} | 44 -- 2 files changed, 26 inse

[PATCH 06/17] doc: security: minor cleanups to build kernel-doc

2017-05-13 Thread Kees Cook
These fixes were needed to parse lsm_hooks.h kernel-doc. More work is needed, but this is the first step. Cc: Casey Schaufler Signed-off-by: Kees Cook --- include/linux/lsm_hooks.h | 25 - 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/include/linux/lsm_

[PATCH 05/17] doc: ReSTify self-protection.txt

2017-05-13 Thread Kees Cook
This updates the credentials API documentation to ReST markup and moves it under the security subsection of kernel API documentation. Signed-off-by: Kees Cook --- Documentation/security/index.rst | 1 + .../{self-protection.txt => self-protection.rst} | 99 ++

[PATCH 04/17] doc: ReSTify credentials.txt

2017-05-13 Thread Kees Cook
This updates the credentials API documentation to ReST markup and moves it under the security subsection of kernel API documentation. Cc: David Howells Signed-off-by: Kees Cook --- Documentation/security/00-INDEX| 2 - .../security/{credentials.txt => credentials.rst} | 2

[PATCH 03/17] doc: ReSTify IMA-templates.txt

2017-05-13 Thread Kees Cook
Adjust IMA-templates.txt for ReST markup and add to the index for security/, under the Kernel API Documentation. Cc: Mimi Zohar Signed-off-by: Kees Cook --- Documentation/security/00-INDEX| 2 - .../{IMA-templates.txt => IMA-templates.rst} | 46 --

Re: [git pull] uaccess-related bits of vfs.git

2017-05-13 Thread Adam Borowski
On Sat, May 13, 2017 at 07:57:45AM +0100, Al Viro wrote: > On Fri, May 12, 2017 at 06:00:44PM -0700, Linus Torvalds wrote: > > But the *first* thing I'd like to do would be to just get rid of > > __get_user/__put_user as a thing. It really does generate nasty code, > > and we might as well just mak

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

2017-05-13 Thread Andy Lutomirski
On Thu, May 11, 2017 at 9:06 PM, Andy Lutomirski wrote: > It seems like RSTe is much more conservative with transition timing > that we are. According to Mario, RSTe programs APST to transition from > active states to the first idle state after 60ms and, thereafter, to > 1000 * the exit latency o

Re: [PATCH 1/2] fdt: correctly handle uncompressed node names

2017-05-13 Thread kbuild test robot
/Sascha-Silbe/fdt-correctly-handle-uncompressed-node-names/20170513-184012 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next config: arm64-alldefconfig (attached as .config) compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https

[PATCH][RFC] x86/irq: Spread vectors on different CPUs

2017-05-13 Thread Chen Yu
Currently we encountered the CPU offline problem on a 16 cores server when doing hibernation: CPU 31 disable failed: CPU has 62 vectors assigned and there are only 0 available. This is because: 1. One of the drivers has declare many vector resource via pci_enable_msix_range(), say, this drive

RE: [tpmdd-devel] [PATCH] Add "shutdown" to "struct class".

2017-05-13 Thread Winkler, Tomas
> The TPM class has some common shutdown code that must be executed for > all drivers. This adds some needed functionality for that The issue with this is, that on some platforms the only storage can be eMMC and TPM is using it,. It has to be ensured that the storage device won't go down befor

[PATCH] mmc: core: Delete an error message for a failed memory allocation in three functions

2017-05-13 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 13 May 2017 14:40:08 +0200 Omit an extra message for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Si

Re: [PATCH 1/2] fdt: correctly handle uncompressed node names

2017-05-13 Thread kbuild test robot
/Sascha-Silbe/fdt-correctly-handle-uncompressed-node-names/20170513-184012 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next config: arm-omap2plus_defconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https

[PATCH] mmc: atmel-mci: Delete an error message for a failed memory allocation in atmci_of_init()

2017-05-13 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 13 May 2017 15:05:28 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Sign

Re: [PATCH 2/2] ARM: davinci: PM: Do not free useful resources in normal path in 'davinci_pm_init'

2017-05-13 Thread walter harms
Am 13.05.2017 13:40, schrieb Christophe JAILLET: > This looks spurious to iounmap resources in the normal path of this init > function. > The 3 ioremap'ed fields of 'pm_config' can be accessed later on in other > functions, so it is likely that we should return 'success' before unrolling > everyt

Re: [PATCH 2/8] gpio: exar: Fix passing in of parent PCI device

2017-05-13 Thread Andy Shevchenko
On Sat, May 13, 2017 at 10:29 AM, Jan Kiszka wrote: > This fixes reloading of the driver for the same device: First of all, > the driver sets drvdata to its own value during probing and does not > restore the original value on exit. But this won't help anyway as the > core clears drvdata after the

Re: [PATCH 3/8] gpio: exar: Allocate resources on behalf of the platform device

2017-05-13 Thread Andy Shevchenko
On Sat, May 13, 2017 at 10:29 AM, Jan Kiszka wrote: > Do not allocate resources on behalf of the parent device but on our own. > Otherwise, cleanup does not properly work if gpio-exar is removed but > not the parent device. This sounds to me like a good catch. FWIW: Reviewed-by: Andy Shevchenko

Re: [PATCH 4/8] gpio: exar: Fix iomap request

2017-05-13 Thread Andy Shevchenko
On Sat, May 13, 2017 at 10:29 AM, Jan Kiszka wrote: > The UART driver already maps the resource for us. Trying to do this here > only fails and leaves us with a non-working device. I hoped this had been tested previously... FWIW: Reviewed-by: Andy Shevchenko > > Signed-off-by: Jan Kiszka > ---

Re: [PATCH 5/8] gpio: exar: Fix reading of directions and values

2017-05-13 Thread Andy Shevchenko
On Sat, May 13, 2017 at 10:29 AM, Jan Kiszka wrote: > First, the logic for translating a register bit to the return code of > exar_get_direction and exar_get_value were wrong. And second, there was > a flip regarding the register bank in exar_get_direction. Again, I wish it was tested in the firs

Re: [RFC][PATCH 0/5] perf/tracing/cpuhotplug: Fix locking order

2017-05-13 Thread Paul E. McKenney
On Fri, May 12, 2017 at 05:34:48PM -0400, Steven Rostedt wrote: > On Fri, 12 May 2017 21:49:56 +0200 [ . . . ] > This means that text_mutex, which was taken by the alternative code, no > longer is taken in cpu hotplug code. That means there's no longer a > deadlock scenario, as we don't have anyp

Re: [git pull] uaccess-related bits of vfs.git

2017-05-13 Thread Brian Gerst
On Sat, May 13, 2017 at 8:05 AM, Adam Borowski wrote: > On Sat, May 13, 2017 at 07:57:45AM +0100, Al Viro wrote: >> On Fri, May 12, 2017 at 06:00:44PM -0700, Linus Torvalds wrote: >> > But the *first* thing I'd like to do would be to just get rid of >> > __get_user/__put_user as a thing. It really

Re: [PATCH 7/8] gpio-exar/8250-exar: Make set of exported GPIOs configurable

2017-05-13 Thread Andy Shevchenko
On Sat, May 13, 2017 at 10:29 AM, Jan Kiszka wrote: > On the SIMATIC, IOT2040 only a single pin is exportable as GPIO, the > rest is required to operate the UART. To allow modeling this case, > use device properties to specify a (consecutive) pin subset for > exporting by the gpio-exar driver. >

Re: [PATCH 8/8] serial: exar: Add support for IOT2040 device

2017-05-13 Thread Andy Shevchenko
On Sat, May 13, 2017 at 10:29 AM, Jan Kiszka wrote: > This implements the setup of RS232 and the switch-over to RS485 or RS422 > for the Siemens IOT2040. That uses an EXAR XR17V352 with external logic > to switch between the different modes. The external logic is controlled > via MPIO pins of the

[PATCH v2 00/18] ARM64: meson: DT cleanups

2017-05-13 Thread Andreas Färber
Hello Kevin, This series fixes several cosmetic issues, on top of your for-next branch. Patches 3-6 rename a node, the rest should all be non-functional changes. PLEASE STOP merging random new nodes at the bottom of DT files! Just like it's a convention to sort new nodes by unit address, it has

[PATCH v2 17/18] arm64: dts: meson-gxm-nexbox-a1: Fix node order

2017-05-13 Thread Andreas Färber
Sort nodes referenced by label alphabetically. Signed-off-by: Andreas Färber --- v1 -> v2: * Rebased (new nodes added) .../arm64/boot/dts/amlogic/meson-gxm-nexbox-a1.dts | 86 +++--- 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/m

Re: Threads stuck in zap_pid_ns_processes()

2017-05-13 Thread Guenter Roeck
On 05/12/2017 01:03 PM, Eric W. Biederman wrote: Guenter Roeck writes: Hi Eric, On Fri, May 12, 2017 at 12:33:01PM -0500, Eric W. Biederman wrote: Guenter Roeck writes: Hi Eric, On Fri, May 12, 2017 at 08:26:27AM -0500, Eric W. Biederman wrote: Vovo Yang writes: On Fri, May 12, 2017

[PATCH v2 03/18] arm64: dts: meson-gxbb-vega-s95: Fix Wifi node name

2017-05-13 Thread Andreas Färber
bcrmf -> brcmf -> wifi Fixes: ab5b24fdd2d5 ("ARM64: dts: meson-gxbb-vega-s95: Add SD/SDIO/MMC and PWM nodes") Cc: Martin Blumenstingl Signed-off-by: Andreas Färber --- v1 -> v2: * Renamed node brmcf -> wifi (Rob) arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 2 +- 1 file changed,

[PATCH v2 04/18] arm64: dts: meson-gxbb-p20x: Fix Wifi node name

2017-05-13 Thread Andreas Färber
bcrmf -> brcmf -> wifi Fixes: ab3943fe57a2 ("ARM64: dts: meson-gxbb: Add P20x Wifi SDIO support") Cc: Neil Armstrong Signed-off-by: Andreas Färber --- v1 -> v2: * Renamed node brmcf -> wifi (Rob) arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 dele

[PATCH v2 05/18] arm64: dts: meson-gx-p23x-q20x: Fix Wifi node name

2017-05-13 Thread Andreas Färber
bcrmf -> brcmf -> wifi Fixes: bb51b5350d2f ("ARM64: dts: Add support for Meson GXM") Cc: Neil Armstrong Signed-off-by: Andreas Färber --- v1 -> v2: * Renamed node brmcf -> wifi (Rob) arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) d

[PATCH v2 13/18] arm64: dts: meson-gxbb-nexbox-a95x: Fix node order

2017-05-13 Thread Andreas Färber
Sort nodes referenced by label alphabetically. Signed-off-by: Andreas Färber --- v1 -> v2: * Rebased (new nodes added) .../boot/dts/amlogic/meson-gxbb-nexbox-a95x.dts| 52 +++--- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/m

[PATCH v2 18/18] arm64: dts: meson-gx-p23x-q20x: Fix node order

2017-05-13 Thread Andreas Färber
Sort nodes referenced by label alphabetically. Signed-off-by: Andreas Färber --- v1 -> v2: * Rebased (new nodes added) .../arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi | 58 +++--- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/m

[PATCH v2 02/18] arm64: dts: amlogic: Sort Makefile

2017-05-13 Thread Andreas Färber
Sort the .dtb files alphabetically to make clear where to add new ones. Signed-off-by: Andreas Färber --- v1 -> v2: * Rebased (new boards added) * Extended commit message arch/arm64/boot/dts/amlogic/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm6

[PATCH v2 16/18] arm64: dts: meson-gxl-s905x-nexbox-a95x: Fix node order

2017-05-13 Thread Andreas Färber
Sort nodes referenced by label alphabetically. Signed-off-by: Andreas Färber --- v1 -> v2: * Rebased (new nodes added) .../dts/amlogic/meson-gxl-s905x-nexbox-a95x.dts| 52 +++--- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/m

[PATCH v2 14/18] arm64: dts: meson-gxbb-p20x: Fix node order

2017-05-13 Thread Andreas Färber
Sort nodes referenced by label alphabetically. Signed-off-by: Andreas Färber --- v1 -> v2: * Rebased (new nodes added) arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi | 62 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/m

[PATCH v2 06/18] arm64: dts: meson-gxl-s905x-khadas-vim: Fix Wifi node name

2017-05-13 Thread Andreas Färber
bcrmf -> brcmf -> wifi Fixes: e15d2774b8c0 ("ARM64: dts: meson-gxl: add support for the Khadas VIM board") Cc: Martin Blumenstingl Signed-off-by: Andreas Färber --- v2: New arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v2 15/18] arm64: dts: meson-gxl: Fix node order

2017-05-13 Thread Andreas Färber
Sort nodes referenced by label alphabetically. Signed-off-by: Andreas Färber --- v1 -> v2: * Rebased (new nodes added) arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 72 +++--- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/m

[PATCH v2 10/18] arm64: dts: meson-gxbb: Fix node order

2017-05-13 Thread Andreas Färber
Sort nodes referenced by label alphabetically. Signed-off-by: Andreas Färber --- v1 -> v2: * Rebased (new nodes added) arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 171 +++- 1 file changed, 91 insertions(+), 80 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/m

[PATCH v2 11/18] arm64: dts: meson-gxbb-odroidc2: Fix node order

2017-05-13 Thread Andreas Färber
Sort nodes referenced by label alphabetically. Signed-off-by: Andreas Färber --- v1 -> v2: * Rebased (new nodes added) .../arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 108 ++--- 1 file changed, 54 insertions(+), 54 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/m

[PATCH v2 09/18] arm64: dts: meson-gxbb-wetek-hub: Reference CVBS node by label

2017-05-13 Thread Andreas Färber
Makes the override safer. Acked-by: Neil Armstrong Signed-off-by: Andreas Färber --- v1 -> v2: * Extended commit message arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi | 2 +- arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-hub.dts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletion

[PATCH v2 07/18] arm64: dts: meson-gxm-nexbox-a1: Drop UART comment

2017-05-13 Thread Andreas Färber
Product pictures show no DB9 connector, so this seems copy&paste. Acked-by: Neil Armstrong Signed-off-by: Andreas Färber --- v1 -> v2: Unchanged arch/arm64/boot/dts/amlogic/meson-gxm-nexbox-a1.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm-nexbox

[PATCH v2 12/18] arm64: dts: meson-gxbb-vega-s95: Fix node order

2017-05-13 Thread Andreas Färber
Sort nodes referenced by label alphabetically. Signed-off-by: Andreas Färber --- v1 -> v2: * Rebased (new nodes added) .../boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 54 +++--- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/m

[PATCH v2 08/18] arm64: dts: meson-gxl-s905x: Comment typo fix

2017-05-13 Thread Andreas Färber
Reviewed-by: Neil Armstrong Signed-off-by: Andreas Färber --- v1 -> v2: Unchanged arch/arm64/boot/dts/amlogic/meson-gxl-s905x.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxl-s905

[PATCH v2 01/18] dt-bindings: arm: amlogic: Reorder boards

2017-05-13 Thread Andreas Färber
Enforce groupment by SoCs, and order alphabetically within the group (with some exceptions). This should facilitate adding new boards. Signed-off-by: Andreas Färber --- v1 -> v2: * Rebased (new boards added) * Pointed out alphabetical order in the binding, too (Rob) Documentation/devicetree

[PATCH v1] staging: ccree: fix all whitespace errors

2017-05-13 Thread Dhiru Kholia
These whitespace issues were found by the checkpatch.pl script. This patch helps in making the staging tree a bit cleaner. Signed-off-by: Dhiru Kholia --- drivers/staging/ccree/TODO| 2 +- drivers/staging/ccree/cc_bitops.h | 6 +- drivers/staging/ccree/cc_crypto_ctx.h

[git pull] Input updates for v4.11-rc0

2017-05-13 Thread Dmitry Torokhov
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus to receive updates for the input subsystem. You will get an updated xpad driver with a few more recognized device IDs, and a new psxpad-spi driver, allowing connecting Playstation 1 and 2 j

  1   2   3   >