Re: [RFC PATCH v3] sparc64: Add support for Application Data Integrity (ADI)

2017-01-04 Thread Khalid Aziz
On 01/04/2017 05:14 PM, Dave Hansen wrote: On 01/04/2017 04:05 PM, Rob Gardner wrote: What if two different small pages have different tags and khugepaged comes along and tries to collapse them? Will the page be split if a user attempts to set two different tags inside two different small-page

Re: [RFC PATCH v3] sparc64: Add support for Application Data Integrity (ADI)

2017-01-04 Thread Dave Hansen
On 01/04/2017 04:05 PM, Rob Gardner wrote: >> What if two different small pages have different tags and khugepaged >> comes along and tries to collapse them? Will the page be split if a >> user attempts to set two different tags inside two different small-page >> portions of a single THP? > > The

Re: [RFC PATCH v3] sparc64: Add support for Application Data Integrity (ADI)

2017-01-04 Thread Rob Gardner
On 01/04/2017 04:01 PM, Dave Hansen wrote: On 01/04/2017 03:58 PM, Khalid Aziz wrote: How does this all work with large pages? It works with large pages the same way as normal sized pages. The TTE for a large page also will have the mcd bit set in it and tags are set and referenced the same way

Re: [RFC PATCH v3] sparc64: Add support for Application Data Integrity (ADI)

2017-01-04 Thread Dave Hansen
On 01/04/2017 03:58 PM, Khalid Aziz wrote: >> How does this all work with large pages? > > It works with large pages the same way as normal sized pages. The TTE > for a large page also will have the mcd bit set in it and tags are set > and referenced the same way. But does the user setting the ta

Re: [RFC PATCH v3] sparc64: Add support for Application Data Integrity (ADI)

2017-01-04 Thread Khalid Aziz
On 01/04/2017 04:49 PM, Dave Hansen wrote: On 01/04/2017 03:44 PM, Rob Gardner wrote: On 01/04/2017 03:40 PM, Dave Hansen wrote: On 01/04/2017 03:35 PM, Rob Gardner wrote: Tags are not cleared at all when memory is freed, but rather, lazily (and automatically) cleared when memory is allocated.

Re: [RFC PATCH v3] sparc64: Add support for Application Data Integrity (ADI)

2017-01-04 Thread Rob Gardner
On 01/04/2017 03:49 PM, Dave Hansen wrote: On 01/04/2017 03:44 PM, Rob Gardner wrote: On 01/04/2017 03:40 PM, Dave Hansen wrote: On 01/04/2017 03:35 PM, Rob Gardner wrote: Tags are not cleared at all when memory is freed, but rather, lazily (and automatically) cleared when memory is allocated.

Re: [RFC PATCH v3] sparc64: Add support for Application Data Integrity (ADI)

2017-01-04 Thread Dave Hansen
On 01/04/2017 03:46 PM, Khalid Aziz wrote: >> It would also be really nice to see a high-level breakdown explaining >> what you had to modify, especially since this affects all of the system >> calls that take a PROT_* argument. The sample code is nice, but it's no >> substitute for writing it dow

Re: [RFC PATCH v3] sparc64: Add support for Application Data Integrity (ADI)

2017-01-04 Thread Dave Hansen
On 01/04/2017 03:44 PM, Rob Gardner wrote: > On 01/04/2017 03:40 PM, Dave Hansen wrote: >> On 01/04/2017 03:35 PM, Rob Gardner wrote: >>> Tags are not cleared at all when memory is freed, but rather, lazily >>> (and automatically) cleared when memory is allocated. >> What does "allocated" mean in t

Re: [RFC PATCH v3] sparc64: Add support for Application Data Integrity (ADI)

2017-01-04 Thread Khalid Aziz
On 01/04/2017 04:31 PM, Dave Hansen wrote: One other high-level comment: It would be nice to see the arch-independent and x86 portions broken out and explained in their own right, even if they're small patches. It's a bit cruel to make us scroll through a thousand lines of sparc code to see the

Re: [RFC PATCH v3] sparc64: Add support for Application Data Integrity (ADI)

2017-01-04 Thread Khalid Aziz
On 01/04/2017 04:27 PM, Dave Hansen wrote: On 01/04/2017 02:46 PM, Khalid Aziz wrote: This patch extends mprotect to enable ADI (TSTATE.mcde), enable/disable MCD (Memory Corruption Detection) on selected memory ranges, enable TTE.mcd in PTEs, return ADI parameters to userspace and save/restore A

Re: [RFC PATCH v3] sparc64: Add support for Application Data Integrity (ADI)

2017-01-04 Thread Rob Gardner
On 01/04/2017 03:40 PM, Dave Hansen wrote: On 01/04/2017 03:35 PM, Rob Gardner wrote: Tags are not cleared at all when memory is freed, but rather, lazily (and automatically) cleared when memory is allocated. What does "allocated" mean in this context? Physical or virtual? What does this do, f

Re: [RFC PATCH v3] sparc64: Add support for Application Data Integrity (ADI)

2017-01-04 Thread Dave Hansen
On 01/04/2017 03:35 PM, Rob Gardner wrote: > Tags are not cleared at all when memory is freed, but rather, lazily > (and automatically) cleared when memory is allocated. What does "allocated" mean in this context? Physical or virtual? What does this do, for instance? ptr = malloc(PAGE_SI

Re: [RFC PATCH v3] sparc64: Add support for Application Data Integrity (ADI)

2017-01-04 Thread Rob Gardner
On 01/04/2017 03:27 PM, Dave Hansen wrote: On 01/04/2017 02:46 PM, Khalid Aziz wrote: This patch extends mprotect to enable ADI (TSTATE.mcde), enable/disable MCD (Memory Corruption Detection) on selected memory ranges, enable TTE.mcd in PTEs, return ADI parameters to userspace and save/restore A

Re: [RFC PATCH v3] sparc64: Add support for Application Data Integrity (ADI)

2017-01-04 Thread Dave Hansen
One other high-level comment: It would be nice to see the arch-independent and x86 portions broken out and explained in their own right, even if they're small patches. It's a bit cruel to make us scroll through a thousand lines of sparc code to see the bits interesting to us. It would also be re

Re: [RFC PATCH v3] sparc64: Add support for Application Data Integrity (ADI)

2017-01-04 Thread Dave Hansen
On 01/04/2017 02:46 PM, Khalid Aziz wrote: > This patch extends mprotect to enable ADI (TSTATE.mcde), enable/disable > MCD (Memory Corruption Detection) on selected memory ranges, enable > TTE.mcd in PTEs, return ADI parameters to userspace and save/restore ADI > version tags on page swap out/in.

[RFC PATCH v3] sparc64: Add support for Application Data Integrity (ADI)

2017-01-04 Thread Khalid Aziz
ADI is a new feature supported on sparc M7 and newer processors to allow hardware to catch rogue accesses to memory. ADI is supported for data fetches only and not instruction fetches. An app can enable ADI on its data pages, set version tags on them and use versioned addresses to access the data p

Re: [PATCH] Documentation: cpufreq: Update supported powernv processors

2017-01-04 Thread Rafael J. Wysocki
On Wed, Jan 4, 2017 at 11:20 PM, Jonathan Corbet wrote: > On Wed, 04 Jan 2017 23:11:30 +0100 > "Rafael J. Wysocki" wrote: > >> I'm assuming then, that you're going to handle cpufreq docs changes in the >> future. >> >> Some cpufreq patches update the docs too, though, so there may be changes in >

Re: [PATCH] Documentation: cpufreq: Update supported powernv processors

2017-01-04 Thread Jonathan Corbet
On Wed, 04 Jan 2017 23:11:30 +0100 "Rafael J. Wysocki" wrote: > I'm assuming then, that you're going to handle cpufreq docs changes in the > future. > > Some cpufreq patches update the docs too, though, so there may be changes in > there coming from two sources. I saw it wasn't in linux-next ye

Re: [PATCH] Documentation: cpufreq: Update supported powernv processors

2017-01-04 Thread Rafael J. Wysocki
On Wednesday, January 04, 2017 02:35:27 PM Jonathan Corbet wrote: > On Mon, 2 Jan 2017 12:38:15 +0530 > Viresh Kumar wrote: > > > > +The following POWER processors are supported in powernv mode: > > > +POWER8 > > > +POWER9 > > I've applied this to the docs tree, thanks. OK I'm assuming then, t

Re: [PATCH 0/5] kernel-doc tweaks and cleanup of rST vs. non-rST backends

2017-01-04 Thread Jonathan Corbet
On Mon, 2 Jan 2017 16:22:22 +0100 Paolo Bonzini wrote: > these patches are the result of my experiments with using kernel-doc > for QEMU's documentation. Patches 1 and 2 should be relatively > straightforward, as they are simple bugfixes. Patches 3 to 5, instead, > are making the docbook backe

Re: [PATCH 1/3] Doc: Correct PPS doc to reflect code location

2017-01-04 Thread Jonathan Corbet
On Sat, 24 Dec 2016 16:27:29 +0800 Sanjeev wrote: > timepps.h , as well as PPS sample test utilities, are > no longer in the kernel tree. Update documentation > to point to new locations. I've applied the set to the docs tree, thanks. jon -- To unsubscribe from this list: send the line "unsubs

Re: [PATCH] Documentation: fix spelling mistakes of "Celcius" -- > "Celsius"

2017-01-04 Thread Jonathan Corbet
On Wed, 28 Dec 2016 21:51:37 + Colin King wrote: > Documentation/hwmon/ds1621| 8 > Documentation/thermal/nouveau_thermal | 2 +- > 2 files changed, 5 insertions(+), 5 deletions(-) Applied to the docs tree, thanks. jon -- To unsubscribe from this list: send the line "u

Re: [PATCH] Documentation: cpufreq: Update supported powernv processors

2017-01-04 Thread Jonathan Corbet
On Mon, 2 Jan 2017 12:38:15 +0530 Viresh Kumar wrote: > > +The following POWER processors are supported in powernv mode: > > +POWER8 > > +POWER9 I've applied this to the docs tree, thanks. jon -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to ma

Re: [PATCH V2] docs: IIO documentation sphinx conversion

2017-01-04 Thread Jonathan Corbet
On Sun, 1 Jan 2017 12:32:45 + Jonathan Cameron wrote: > This is a manual conversion of the existing DocBook documentation > for IIO. The intent is not to substantially change any of the > content in this patch, but to give a base to build upon. This looks good. Applied to the docs-tree, t

Re: [PATCH] docs: sphinx-extensions: make rstFlatTable work with docutils 0.13

2017-01-04 Thread Dmitry Shachnev
On Sun, Dec 18, 2016 at 01:38:42PM -0700, Jonathan Corbet wrote: > > In docutils 0.13, the return type of get_column_widths method of the > > Table directive has changed [1], which breaks our flat-table directive > > and leads to a TypeError when trying to build the docs [2]. > > > > This patch add

Re: [PATCH 0/5] kernel-doc tweaks and cleanup of rST vs. non-rST backends

2017-01-04 Thread Jani Nikula
On Wed, 04 Jan 2017, Paolo Bonzini wrote: > On 03/01/2017 10:57, Jani Nikula wrote: >> On Mon, 02 Jan 2017, Paolo Bonzini wrote: >>> Hi, >>> >>> these patches are the result of my experiments with using kernel-doc >>> for QEMU's documentation. Patches 1 and 2 should be relatively >>> straightfor

Re: [PATCH 0/5] kernel-doc tweaks and cleanup of rST vs. non-rST backends

2017-01-04 Thread Paolo Bonzini
On 03/01/2017 10:57, Jani Nikula wrote: > On Mon, 02 Jan 2017, Paolo Bonzini wrote: >> Hi, >> >> these patches are the result of my experiments with using kernel-doc >> for QEMU's documentation. Patches 1 and 2 should be relatively >> straightforward, as they are simple bugfixes. Patches 3 to

[PATCH v7 07/12] dt-bindings: iio: iio-mux: document iio-mux bindings

2017-01-04 Thread Peter Rosin
Signed-off-by: Peter Rosin --- .../bindings/iio/multiplexer/io-channel-mux.txt| 39 ++ MAINTAINERS| 6 2 files changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/multiplexer/io-channel-mux.txt

[PATCH v7 06/12] iio: inkern: api for manipulating ext_info of iio channels

2017-01-04 Thread Peter Rosin
Extend the inkern api with functions for reading and writing ext_info of iio channels. Acked-by: Jonathan Cameron Signed-off-by: Peter Rosin --- drivers/iio/inkern.c | 60 include/linux/iio/consumer.h | 37 +++ 2 files

[PATCH v7 00/12] mux controller abstraction and iio/i2c muxes

2017-01-04 Thread Peter Rosin
Hi! v6 -> v7 changes - move from drivers/misc/mux-* to drivers/mux/ [I will remove Cc:s to Arnd and Greg for v8, when/if that happens] - add managed versions of mux_chip_alloc and mux_chip_register - use the above in mux-gpio.c and mux-adg792a.c - also use them to support a simplified binding of

[PATCH v7 05/12] mux: support simplified bindings for single-user gpio mux

2017-01-04 Thread Peter Rosin
Signed-off-by: Peter Rosin --- drivers/mux/mux-core.c | 81 -- drivers/mux/mux-gpio.c | 56 ++ include/linux/mux.h| 7 + 3 files changed, 89 insertions(+), 55 deletions(-) diff --git a/drivers/mux/mux-core.c

[PATCH v7 09/12] dt-bindings: i2c: i2c-mux-simple: document i2c-mux-simple bindings

2017-01-04 Thread Peter Rosin
Signed-off-by: Peter Rosin --- .../devicetree/bindings/i2c/i2c-mux-simple.txt | 81 ++ 1 file changed, 81 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-mux-simple.txt diff --git a/Documentation/devicetree/bindings/i2c/i2c-mux-simple.txt b/Do

[PATCH v7 10/12] i2c: i2c-mux-simple: new driver

2017-01-04 Thread Peter Rosin
This is a generic simple i2c mux that uses the generic multiplexer subsystem to do the muxing. The user can select if the mux is to be mux-locked and parent-locked as described in Documentation/i2c/i2c-topology. Acked-by: Jonathan Cameron Signed-off-by: Peter Rosin --- drivers/i2c/muxes/Kconfi

[PATCH v7 11/12] dt-bindings: mux-adg792a: document devicetree bindings for ADG792A/G mux

2017-01-04 Thread Peter Rosin
Analog Devices ADG792A/G is a triple 4:1 mux. Signed-off-by: Peter Rosin --- .../devicetree/bindings/mux/mux-adg792a.txt| 79 ++ 1 file changed, 79 insertions(+) create mode 100644 Documentation/devicetree/bindings/mux/mux-adg792a.txt diff --git a/Documentation/devi

[PATCH v7 12/12] mux: adg792a: add mux controller driver for ADG792A/G

2017-01-04 Thread Peter Rosin
Analog Devices ADG792A/G is a triple 4:1 mux. Signed-off-by: Peter Rosin --- drivers/mux/Kconfig | 12 drivers/mux/Makefile | 1 + drivers/mux/mux-adg792a.c | 169 ++ 3 files changed, 182 insertions(+) create mode 100644 drivers/mux

[PATCH v7 02/12] dt-bindings: document devicetree bindings for mux-controllers and mux-gpio

2017-01-04 Thread Peter Rosin
Acked-by: Jonathan Cameron Signed-off-by: Peter Rosin --- .../devicetree/bindings/mux/mux-controller.txt | 127 + Documentation/devicetree/bindings/mux/mux-gpio.txt | 68 +++ MAINTAINERS| 5 + 3 files changed, 200 inserti

[PATCH v7 01/12] devres: trivial whitespace fix

2017-01-04 Thread Peter Rosin
Signed-off-by: Peter Rosin --- Documentation/driver-model/devres.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/driver-model/devres.txt b/Documentation/driver-model/devres.txt index ca9d1eb46bc0..dc51fb024190 100644 --- a/Documentation/driver-model/devres.t

[PATCH v7 03/12] mux: minimal mux subsystem and gpio-based mux controller

2017-01-04 Thread Peter Rosin
Add a new minimalistic subsystem that handles multiplexer controllers. When multiplexers are used in various places in the kernel, and the same multiplexer controller can be used for several independent things, there should be one place to implement support for said multiplexer controller. A singl

[PATCH v7 08/12] iio: multiplexer: new iio category and iio-mux driver

2017-01-04 Thread Peter Rosin
When a multiplexer changes how an iio device behaves (for example by feeding different signals to an ADC), this driver can be used to create one virtual iio channel for each multiplexer state. Depends on the generic multiplexer subsystem. Cache any ext_info values from the parent iio channel, cre

[PATCH v7 04/12] dt-bindings: simplified bindings for single-user gpio mux

2017-01-04 Thread Peter Rosin
Signed-off-by: Peter Rosin --- .../devicetree/bindings/mux/mux-controller.txt | 26 ++ 1 file changed, 26 insertions(+) diff --git a/Documentation/devicetree/bindings/mux/mux-controller.txt b/Documentation/devicetree/bindings/mux/mux-controller.txt index 42b2177e5ae1..4e

Re: [PATCH] Documentation: Update CPU hotplug and move it to core-api

2017-01-04 Thread Jani Nikula
On Wed, 04 Jan 2017, Sebastian Andrzej Siewior wrote: > On 2016-12-23 10:03:09 [+0200], Jani Nikula wrote: >> > --- /dev/null >> > +++ b/Documentation/core-api/cpu_hotplug.rst >> > @@ -0,0 +1,372 @@ >> > += >> > +CPU hotplug in the Kernel >> > += >>

Re: [PATCH v2 2/5] arm64: Work around Falkor erratum 1003

2017-01-04 Thread Christoffer Dall
On Thu, Dec 29, 2016 at 05:43:32PM -0500, Christopher Covington wrote: > From: Shanker Donthineni > > On the Qualcomm Datacenter Technologies Falkor v1 CPU, memory accesses may > allocate TLB entries using an incorrect ASID when TTBRx_EL1 is being > updated. Changing the TTBRx_EL1[ASID] and TTBRx

Re: [PATCH 1/2] drm: Document drm_cache interface

2017-01-04 Thread Daniel Vetter
On Wed, Jan 04, 2017 at 09:39:48AM +, Chris Wilson wrote: > On Wed, Jan 04, 2017 at 10:01:37AM +0100, Daniel Vetter wrote: > > On Mon, Jan 02, 2017 at 03:17:05PM -0200, Gabriel Krisman Bertazi wrote: > > > Signed-off-by: Gabriel Krisman Bertazi > > > --- > > > drivers/gpu/drm/drm_cache.c | 23

Re: [PATCH] Documentation: Update CPU hotplug and move it to core-api

2017-01-04 Thread Sebastian Andrzej Siewior
On 2016-12-23 10:03:09 [+0200], Jani Nikula wrote: > > --- /dev/null > > +++ b/Documentation/core-api/cpu_hotplug.rst > > @@ -0,0 +1,372 @@ > > += > > +CPU hotplug in the Kernel > > += > > + > > +:Date: December, 2016 > > +:Author: Sebastian Andrzej S