[PATCH] Documentation: move Documentation/virtual to Documentation/virt

2019-07-24 Thread Christoph Hellwig
Renaming docs seems to be en vogue at the moment, so fix on of the grossly misnamed directories. We usually never use "virtual" as a shortcut for virtualization in the kernel, but always virt, as seen in the virt/ top-level directory. Fix up the documentation to match that. Fixes: ed16648eb5b8 (

Re: [PATCH] Documentation: move Documentation/virtual to Documentation/virt

2019-07-24 Thread Paolo Bonzini
On 24/07/19 09:24, Christoph Hellwig wrote: > Renaming docs seems to be en vogue at the moment, so fix on of the > grossly misnamed directories. We usually never use "virtual" as > a shortcut for virtualization in the kernel, but always virt, > as seen in the virt/ top-level directory. Fix up the

Re: [PATCH v3 02/12] fpga: dfl: fme: add DFL_FPGA_FME_PORT_RELEASE/ASSIGN ioctl support.

2019-07-24 Thread Greg KH
On Tue, Jul 23, 2019 at 12:51:25PM +0800, Wu Hao wrote: > +/** > + * dfl_fpga_cdev_config_port - configure a port feature dev > + * @cdev: parent container device. > + * @port_id: id of the port feature device. > + * @release: release port or assign port back. > + * > + * This function allows user

Re: [PATCH v3 01/12] fpga: dfl: fme: support 512bit data width PR

2019-07-24 Thread Greg KH
On Tue, Jul 23, 2019 at 12:51:24PM +0800, Wu Hao wrote: > In early partial reconfiguration private feature, it only > supports 32bit data width when writing data to hardware for > PR. 512bit data width PR support is an important optimization > for some specific solutions (e.g. XEON with FPGA integr

Re: [PATCH v3 03/12] fpga: dfl: pci: enable SRIOV support.

2019-07-24 Thread Greg KH
On Tue, Jul 23, 2019 at 12:51:26PM +0800, Wu Hao wrote: > This patch enables the standard sriov support. It allows user to > enable SRIOV (and VFs), then user could pass through accelerators > (VFs) into virtual machine or use VFs directly in host. > > Signed-off-by: Zhang Yi Z > Signed-off-by: X

Re: [PATCH v3 04/12] fpga: dfl: afu: add AFU state related sysfs interfaces

2019-07-24 Thread Greg KH
On Tue, Jul 23, 2019 at 12:51:27PM +0800, Wu Hao wrote: > This patch introduces more sysfs interfaces for Accelerated > Function Unit (AFU). These interfaces allow users to read > current AFU Power State (APx), read / clear AFU Power (APx) > events which are sticky to identify transient APx state,

doc: mds: nitpicking and typo fix

2019-07-24 Thread Pavel Machek
Consistently end sentences, fix typo. Signed-off-by: Pavel Machek commit 310cb17613f46db97cebbd9dc11187961e4b1c69 Author: Pavel Date: Mon May 20 10:46:35 2019 +0200 doc: typo fix, consistency in mds. diff --git a/Documentation/x86/mds.rst b/Documentation/x86/mds.rst index 5d4330b..9983

Re: [PATCH v3 09/12] fpga: dfl: afu: add STP (SignalTap) support

2019-07-24 Thread Greg KH
On Tue, Jul 23, 2019 at 12:51:32PM +0800, Wu Hao wrote: > STP (SignalTap) is one of the private features under the port for > debugging. This patch adds private feature driver support for it > to allow userspace applications to mmap related mmio region and > provide STP service. > > Signed-off-by:

Re: [PATCH v3 09/12] fpga: dfl: afu: add STP (SignalTap) support

2019-07-24 Thread Wu Hao
On Wed, Jul 24, 2019 at 12:11:09PM +0200, Greg KH wrote: > On Tue, Jul 23, 2019 at 12:51:32PM +0800, Wu Hao wrote: > > STP (SignalTap) is one of the private features under the port for > > debugging. This patch adds private feature driver support for it > > to allow userspace applications to mmap r

Re: [PATCH v3 04/12] fpga: dfl: afu: add AFU state related sysfs interfaces

2019-07-24 Thread Wu Hao
On Wed, Jul 24, 2019 at 11:41:10AM +0200, Greg KH wrote: > On Tue, Jul 23, 2019 at 12:51:27PM +0800, Wu Hao wrote: > > This patch introduces more sysfs interfaces for Accelerated > > Function Unit (AFU). These interfaces allow users to read > > current AFU Power State (APx), read / clear AFU Power

Re: [PATCH v3 03/12] fpga: dfl: pci: enable SRIOV support.

2019-07-24 Thread Wu Hao
On Wed, Jul 24, 2019 at 11:37:44AM +0200, Greg KH wrote: > On Tue, Jul 23, 2019 at 12:51:26PM +0800, Wu Hao wrote: > > This patch enables the standard sriov support. It allows user to > > enable SRIOV (and VFs), then user could pass through accelerators > > (VFs) into virtual machine or use VFs dir

Re: [PATCH v3 02/12] fpga: dfl: fme: add DFL_FPGA_FME_PORT_RELEASE/ASSIGN ioctl support.

2019-07-24 Thread Wu Hao
On Wed, Jul 24, 2019 at 11:33:57AM +0200, Greg KH wrote: > On Tue, Jul 23, 2019 at 12:51:25PM +0800, Wu Hao wrote: > > +/** > > + * dfl_fpga_cdev_config_port - configure a port feature dev > > + * @cdev: parent container device. > > + * @port_id: id of the port feature device. > > + * @release: rel

Re: [PATCH v1 1/2] mm/page_idle: Add support for per-pid page_idle using virtual indexing

2019-07-24 Thread Joel Fernandes
On Wed, Jul 24, 2019 at 01:28:42PM +0900, Minchan Kim wrote: > On Tue, Jul 23, 2019 at 10:20:49AM -0400, Joel Fernandes wrote: > > On Tue, Jul 23, 2019 at 03:13:58PM +0900, Minchan Kim wrote: > > > Hi Joel, > > > > > > On Mon, Jul 22, 2019 at 05:32:04PM -0400, Joel Fernandes (Google) wrote: > > >

Re: [PATCH v3 01/12] fpga: dfl: fme: support 512bit data width PR

2019-07-24 Thread Wu Hao
On Wed, Jul 24, 2019 at 11:35:32AM +0200, Greg KH wrote: > On Tue, Jul 23, 2019 at 12:51:24PM +0800, Wu Hao wrote: > > In early partial reconfiguration private feature, it only > > supports 32bit data width when writing data to hardware for > > PR. 512bit data width PR support is an important optim

[PATCH] hung_task: Allow printing warnings every check interval

2019-07-24 Thread Dmitry Safonov
Hung task detector has one timeout and has two associated actions on it: - issuing warnings with names and stacks of blocked tasks - panic() We want switches to panic (and reboot) if there's a task in uninterruptible sleep for some minutes - at that moment something ugly has happened and the box n

[PATCH v15 00/13] TCU patchset v15

2019-07-24 Thread Paul Cercueil
Hi, This is the V15 of my Ingenic TCU patchet. The big change since V14 is that the custom MFD driver (ex patch 04/13) was dropped in favor of a small patch to syscon and a "simple-mfd" compatible. The patchset was based on mips/mips-next, but all of them minus the last one will apply cleanly on

[PATCH v15 01/13] dt-bindings: ingenic: Add DT bindings for TCU clocks

2019-07-24 Thread Paul Cercueil
This header provides clock numbers for the ingenic,tcu DT binding. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek Reviewed-by: Rob Herring Acked-by: Stephen Boyd --- Notes: v2: Use SPDX identifier for the license v3/v4: No change v5: s/

[PATCH v15 02/13] doc: Add doc for the Ingenic TCU hardware

2019-07-24 Thread Paul Cercueil
Add documentation about the Timer/Counter Unit (TCU) present in the Ingenic JZ47xx SoCs. The Timer/Counter Unit (TCU) in Ingenic JZ47xx SoCs is a multi-function hardware block. It features up to to eight channels, that can be used as counters, timers, or PWM. - JZ4725B, JZ4750, JZ4755 only have s

[PATCH v15 03/13] dt-bindings: Add doc for the Ingenic TCU drivers

2019-07-24 Thread Paul Cercueil
Add documentation about how to properly use the Ingenic TCU (Timer/Counter Unit) drivers from devicetree. Signed-off-by: Paul Cercueil Reviewed-by: Rob Herring Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v4: New patch in this series. Corresponds to V2 patches 3-4-5 with

[PATCH v15 04/13] mfd/syscon: Add device_node_to_regmap()

2019-07-24 Thread Paul Cercueil
device_node_to_regmap() is exactly like syscon_node_to_regmap(), but it does not check that the node is compatible with "syscon", and won't attach the first clock it finds to the regmap. The rationale behind this, is that one device node with a standard compatible string "foo,bar" can be covered b

[PATCH v15 05/13] clk: ingenic: Add driver for the TCU clocks

2019-07-24 Thread Paul Cercueil
Add driver to support the clocks provided by the Timer/Counter Unit (TCU) of the JZ47xx SoCs from Ingenic. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v12: New patch v13: - Don't enable/disable the TCU clock on demand. Enable it

[PATCH v15 06/13] irqchip: Add irq-ingenic-tcu driver

2019-07-24 Thread Paul Cercueil
This driver handles the interrupt controller built in the Timer/Counter Unit (TCU) of the JZ47xx SoCs from Ingenic. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek Reviewed-by: Thomas Gleixner --- Notes: v12: New patch v13: No change v14:

[PATCH v15 08/13] clk: jz4740: Add TCU clock

2019-07-24 Thread Paul Cercueil
Add the missing TCU clock to the list of clocks supplied by the CGU for the JZ4740 SoC. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek Acked-by: Stephen Boyd Acked-by: Rob Herring --- Notes: v5: New patch v6-v15: No change drivers/clk/ingenic/

[PATCH v15 07/13] clocksource: Add a new timer-ingenic driver

2019-07-24 Thread Paul Cercueil
This driver handles the TCU (Timer Counter Unit) present on the Ingenic JZ47xx SoCs, and provides the kernel with a system timer, a clocksource and a sched_clock. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek Reviewed-by: Thomas Gleixner --- Notes: v2: U

[PATCH v15 12/13] MIPS: GCW0: Reduce system timer and clocksource to 750 kHz

2019-07-24 Thread Paul Cercueil
The default clock (12 MHz) is too fast for the system timer. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v8: New patch v9: Don't configure clock timer1, as the OS Timer is used as clocksource on this SoC v10: Revert

[PATCH v15 10/13] MIPS: qi_lb60: Reduce system timer and clocksource to 750 kHz

2019-07-24 Thread Paul Cercueil
The default clock (12 MHz) is too fast for the system timer, which fails to report time accurately. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v5: New patch v6: Remove ingenic,clocksource-channel property v7-v15: No change

[PATCH v15 13/13] MIPS: jz4740: Drop obsolete code

2019-07-24 Thread Paul Cercueil
The old clocksource/timer platform code is now obsoleted by the newly introduced TCU drivers. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v5: New patch v6-v11: No change v12: Only remove clocksource code. The rest will event

[PATCH v15 11/13] MIPS: CI20: Reduce system timer and clocksource to 3 MHz

2019-07-24 Thread Paul Cercueil
The default clock (48 MHz) is too fast for the system timer. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v5: New patch v6: Set also the rate for the clocksource channel's clock v7: No change v8: No change v

[PATCH v15 09/13] MIPS: jz4740: Add DTS nodes for the TCU drivers

2019-07-24 Thread Paul Cercueil
Add DTS nodes for the JZ4780, JZ4770 and JZ4740 devicetree files. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v5: New patch v6: Fix register lengths in watchdog/pwm nodes v7: No change v8: - Fix wrong start address

Re: [PATCH] Documentation: move Documentation/virtual to Documentation/virt

2019-07-24 Thread Jonathan Corbet
On Wed, 24 Jul 2019 10:51:36 +0200 Paolo Bonzini wrote: > On 24/07/19 09:24, Christoph Hellwig wrote: > > Renaming docs seems to be en vogue at the moment, so fix on of the > > grossly misnamed directories. We usually never use "virtual" as > > a shortcut for virtualization in the kernel, but al

RE: [PATCH v5] Documentation/checkpatch: Prefer strscpy/strscpy_pad over strcpy/strlcpy/strncpy

2019-07-24 Thread Gote, Nitin R
Hi, > -Original Message- > From: Gote, Nitin R [mailto:nitin.r.g...@intel.com] > Sent: Tuesday, July 23, 2019 2:56 PM > To: Joe Perches ; Kees Cook > Cc: cor...@lwn.net; a...@linux-foundation.org; a...@canonical.com; > linux-doc@vger.kernel.org; kernel-harden...@lists.openwall.com > Subje

Re: [PATCH v5] Documentation/checkpatch: Prefer strscpy/strscpy_pad over strcpy/strlcpy/strncpy

2019-07-24 Thread Joe Perches
On Wed, 2019-07-24 at 18:17 +, Gote, Nitin R wrote: > Hi, Hi again. [] > > > > > 3. Deprecate strncpy() in favor of strscpy() or strscpy_pad(). Please remember there does not exist a single actual use of strscpy_pad in the kernel sources and no apparent real need for it. I don't find one an

[PATCH] Correct documentation for /proc/schedstat

2019-07-24 Thread Phil Frost
Commit 425e0968a25fa3f111f9919964cac079738140b5 ("sched: move code into kernel/sched_stats.h") appears to have inadvertently changed the unit of time from jiffies to nanoseconds as part of the implementation of CFS. Signed-off-by: Phil Frost --- Documentation/scheduler/sched-stats.txt | 10 +

[PATCH v10 0/2] overlayfs override_creds=off

2019-07-24 Thread Mark Salyzyn
Patch series: overlayfs: check CAP_DAC_READ_SEARCH before issuing exportfs_decode_fh Add optional __get xattr method paired to __vfs_getxattr overlayfs: add __get xattr method overlayfs: internal getxattr operations without sepolicy checking overlayfs: override_creds=off option bypass creator_cred

[PATCH v10 2/5] Add optional __get xattr method paired to __vfs_getxattr

2019-07-24 Thread Mark Salyzyn
Add an optional __get xattr method that would be called, if set, only in __vfs_getxattr instead of the regular get xattr method. Signed-off-by: Mark Salyzyn Cc: Miklos Szeredi Cc: Jonathan Corbet Cc: Vivek Goyal Cc: Eric W. Biederman Cc: Amir Goldstein Cc: Randy Dunlap Cc: Stephen Smalley

[PATCH v10 1/5] overlayfs: check CAP_DAC_READ_SEARCH before issuing exportfs_decode_fh

2019-07-24 Thread Mark Salyzyn
Assumption never checked, should fail if the mounter creds are not sufficient. Signed-off-by: Mark Salyzyn Cc: Miklos Szeredi Cc: Jonathan Corbet Cc: Vivek Goyal Cc: Eric W. Biederman Cc: Amir Goldstein Cc: Randy Dunlap Cc: Stephen Smalley Cc: linux-unio...@vger.kernel.org Cc: linux-doc@vg

[PATCH v10 4/5] overlayfs: internal getxattr operations without sepolicy checking

2019-07-24 Thread Mark Salyzyn
Check impure, opaque, origin & meta xattr with no sepolicy audit (using __vfs_getxattr) since these operations are internal to overlayfs operations and do not disclose any data. This became an issue for credential override off since sys_admin would have been required by the caller; whereas would h

[PATCH v10 3/5] overlayfs: add __get xattr method

2019-07-24 Thread Mark Salyzyn
Because of the overlayfs getxattr recursion, the incoming inode fails to update the selinux sid resulting in avc denials being reported against a target context of u:object_r:unlabeled:s0. Solution is to add a _get xattr method that calls the __vfs_getxattr handler so that the context can be read

[PATCH v10 5/5] overlayfs: override_creds=off option bypass creator_cred

2019-07-24 Thread Mark Salyzyn
By default, all access to the upper, lower and work directories is the recorded mounter's MAC and DAC credentials. The incoming accesses are checked against the caller's credentials. If the principles of least privilege are applied, the mounter's credentials might not overlap the credentials of t

Re: [PATCH v1 1/2] mm/page_idle: Add support for per-pid page_idle using virtual indexing

2019-07-24 Thread Joel Fernandes
On Mon, Jul 22, 2019 at 03:06:39PM -0700, Andrew Morton wrote: [snip] > > + *end = *start + count * BITS_PER_BYTE; > > + if (*end > max_frame) > > + *end = max_frame; > > + return 0; > > +} > > + > > > > ... > > > > +static void add_page_idle_list(struct page *page, > > +

Re: [PATCH v10 3/5] overlayfs: add __get xattr method

2019-07-24 Thread Amir Goldstein
On Wed, Jul 24, 2019 at 10:57 PM Mark Salyzyn wrote: > > Because of the overlayfs getxattr recursion, the incoming inode fails > to update the selinux sid resulting in avc denials being reported > against a target context of u:object_r:unlabeled:s0. This description is too brief for me to underst

Re: [PATCH v10 5/5] overlayfs: override_creds=off option bypass creator_cred

2019-07-24 Thread Amir Goldstein
On Wed, Jul 24, 2019 at 10:57 PM Mark Salyzyn wrote: > > By default, all access to the upper, lower and work directories is the > recorded mounter's MAC and DAC credentials. The incoming accesses are > checked against the caller's credentials. > > If the principles of least privilege are applied,