Re: [PATCH v5 0/3] mm, proc: Implement /proc//totmaps

2016-09-13 Thread Michal Hocko
On Mon 12-09-16 10:28:53, Sonny Rao wrote: > On Mon, Sep 12, 2016 at 10:15 AM, Michal Hocko wrote: > > On Mon 12-09-16 08:31:36, Sonny Rao wrote: [...] > >> but how about the other fields like Swap, Private_Dirty and > >> Private_Shared? > > > > Private_Shared can be pretty confusing as well witho

Re: [PATCH v2 05/20] docs-rst: CodingStyle.rst: Convert to ReST markup

2016-09-13 Thread Mauro Carvalho Chehab
Em Mon, 12 Sep 2016 19:59:00 -0700 Joe Perches escreveu: > On Mon, 2016-09-12 at 23:17 -0300, Mauro Carvalho Chehab wrote: > > - Fix all chapter identation; > > - add c blocks where needed; > > Assuming this is really useful and people agree with simple > conversions of .txt to .rst (and it do

Re: [PATCH 09/17] kernel-docs.rst: convert it to ReST markup

2016-09-13 Thread Mauro Carvalho Chehab
Em Tue, 13 Sep 2016 03:12:09 +0200 Richard Sailer escreveu: > I just saved the new .rst file and tested it with rst2html and rst2pdf. > Conversion ran without Errors, Markup/Layout looks sensible to me. > > Some nit-picking: > > + > > +BOOKS: (Not on-line) > > + > > + > > +

Re: [PATCH 00/17] Create a book for Kernel development

2016-09-13 Thread Mauro Carvalho Chehab
Em Mon, 12 Sep 2016 10:40:41 -0600 Jonathan Corbet escreveu: > On Mon, 12 Sep 2016 11:47:51 -0300 > Mauro Carvalho Chehab wrote: > > > There are several documents related to Kernel development, where the > > HOWTO working like an index to most of them. > > > > Convert the documents mentioned a

Re: [PATCH 0/9] Move runnable code (tests) from Documentation to selftests

2016-09-13 Thread Jani Nikula
On Sat, 10 Sep 2016, Jonathan Corbet wrote: > On Fri, 9 Sep 2016 16:22:41 -0600 > Shuah Khan wrote: > >> Move runnable code (tests) from Documentation to selftests and update >> Makefiles to work under selftests. >> >> Jon Corbet and I discussed this in an email thread and as per that >> discus

Re: Updating MAINTAINERS and Documentation/video4linux F: patterns

2016-09-13 Thread Jani Nikula
On Sat, 10 Sep 2016, Joe Perches wrote: > After all the moving of video4linux Documentation file locations > around and converting .txt files to .rst, can you please update > the appropriate MAINTAINERS sections and F: patterns? Hmm, for patches doing rename/create/delete, checkpatch could look a

Re: Updating MAINTAINERS and Documentation/video4linux F: patterns

2016-09-13 Thread Mauro Carvalho Chehab
Em Tue, 13 Sep 2016 12:22:51 +0300 Jani Nikula escreveu: > On Sat, 10 Sep 2016, Joe Perches wrote: > > After all the moving of video4linux Documentation file locations > > around and converting .txt files to .rst, can you please update > > the appropriate MAINTAINERS sections and F: patterns?

Re: Updating MAINTAINERS and Documentation/video4linux F: patterns

2016-09-13 Thread Joe Perches
On Tue, 2016-09-13 at 12:22 +0300, Jani Nikula wrote: > > On Sat, 10 Sep 2016, Joe Perches wrote: > After all the moving of video4linux Documentation file locations > around and converting .txt files to .rst, can you please update > the appropriate MAINTAINERS sections and F: patterns? > > Hmm, f

Re: [PATCH 00/17] Create a book for Kernel development

2016-09-13 Thread Jani Nikula
On Mon, 12 Sep 2016, Jonathan Corbet wrote: > - We should think about naming and organization a bit. I would have > called this collection something like development-process, since it's > really focused on the process side of things. Oh, and I would have > included the existing development

Re: [PATCH 2/9] selftests: update filesystems Makefile to work under selftests

2016-09-13 Thread Michael Ellerman
Shuah Khan writes: > Update to work under selftests. dnotify_test will not be run as part of > selftests suite and will not included in install targets. It can be built > separately for now. > > Signed-off-by: Shuah Khan > --- > tools/testing/selftests/filesystems/Makefile | 10 ++ > 1

Re: [PATCH 00/17] Create a book for Kernel development

2016-09-13 Thread Markus Heiser
Am 13.09.2016 um 12:08 schrieb Jani Nikula : > On Mon, 12 Sep 2016, Jonathan Corbet wrote: >> - We should think about naming and organization a bit. I would have >> called this collection something like development-process, since it's >> really focused on the process side of things. Oh, and I

Re: [PATCH 2/9] selftests: update filesystems Makefile to work under selftests

2016-09-13 Thread Shuah Khan
On 09/13/2016 05:56 AM, Michael Ellerman wrote: > Shuah Khan writes: > >> Update to work under selftests. dnotify_test will not be run as part of >> selftests suite and will not included in install targets. It can be built >> separately for now. >> >> Signed-off-by: Shuah Khan >> --- >> tools/t

Re: [PATCH 0/9] Move runnable code (tests) from Documentation to selftests

2016-09-13 Thread Shuah Khan
On 09/13/2016 03:20 AM, Jani Nikula wrote: > On Sat, 10 Sep 2016, Jonathan Corbet wrote: >> On Fri, 9 Sep 2016 16:22:41 -0600 >> Shuah Khan wrote: >> >>> Move runnable code (tests) from Documentation to selftests and update >>> Makefiles to work under selftests. >>> >>> Jon Corbet and I discusse

Re: [PATCH 0/9] Move runnable code (tests) from Documentation to selftests

2016-09-13 Thread Jani Nikula
On Tue, 13 Sep 2016, Shuah Khan wrote: > On 09/13/2016 03:20 AM, Jani Nikula wrote: >> FWIW, I'm in favor of moving *all* the code away from Documentation, not >> just tests. Essentially removing the CONFIG_BUILD_DOCSRC config option, >> and reserving Documentation/Makefile for documentation build

Re: virtio_blk: Less function calls in init_vq() after error detection

2016-09-13 Thread SF Markus Elfring
>> drivers/block/virtio_blk.c | 22 +- >> 1 file changed, 17 insertions(+), 5 deletions(-) > > Can't you see from this diffstat that the patch actually seems to makes > the code more complex? I find that the repeated usage of a bit more error handling code is almost unavoidab

Re: Ping: [PATCH v15 00/13] support "task_isolation" mode

2016-09-13 Thread Francis Giraldeau
On 2016-09-12 08:05 PM, Rafael J. Wysocki wrote: > On Monday, September 12, 2016 11:15:45 PM Rafael J. Wysocki wrote: >> On Monday, September 12, 2016 06:14:44 PM Peter Zijlstra wrote: >>> On Mon, Sep 12, 2016 at 12:01:58PM -0400, Chris Metcalf wrote: On 9/7/2016 5:11 PM, Francis Giraldeau wro

[RFC PATCH] pci: support for configurable PCI endpoint

2016-09-13 Thread Kishon Vijay Abraham I
This patch series *) adds PCI endpoint core layer *) modifies designware/dra7xx driver to be configured in EP mode *) adds a PCI endpoint *test* function driver Known Limitation: *) Does not support multi-function devices TODO: *) access buffers in RC

[RFC PATCH] HACK: pci: controller: dra7xx: disable smart idle

2016-09-13 Thread Kishon Vijay Abraham I
Smart idle prevents RC to access the memory space of this controller. Set the idle mode to smart idle wakeup. This should ideally be done in hwmod. Till it's figured out how to configure it in hwmod, mark this as HACK. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/controller/pci-dra7xx.c

[RFC PATCH] pci: rename *host* directory to *controller*

2016-09-13 Thread Kishon Vijay Abraham I
No functional change. Renamed the *host* directory present inside drivers/pci to *controller*. Some of the controllers present in drivers/pci/host is capable of operating in endpoint mode. So having these drivers in *host* directory might not be appropriate. This is in preparation for adding endpoi

[RFC PATCH] ARM: dts: DRA7: Modify pcie1 dt node for EP mode

2016-09-13 Thread Kishon Vijay Abraham I
Modify pcie1 dt node in order for the controller to operate in endpoint mode. This is used only for testing EP mode. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra7.dtsi | 43 +++ 1 file changed, 11 insertions(+), 32 deletions(-) diff -

[RFC PATCH] pci: controller: dra7xx: Add EP mode support

2016-09-13 Thread Kishon Vijay Abraham I
The PCIe controller integrated in dra7xx SoCs is capable of operating in endpoint mode. Add support for dra7xx SoCs to operate in endpoint mode. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/pci/ti-pci.txt | 30 ++- drivers/pci/controller/Kconfig

[RFC PATCH] misc: add a new host side PCI endpoint test driver

2016-09-13 Thread Kishon Vijay Abraham I
Add PCI endpoint test driver that can verify base address register and legacy interrupt. (TODO: buffer tests and MSI interrupt). The corresponding pci-epf-test function driver should be used on the EP side. Signed-off-by: Kishon Vijay Abraham I --- drivers/misc/Kconfig |7 + driv

[RFC PATCH] pci: controller: split designware into *core* and *host*

2016-09-13 Thread Kishon Vijay Abraham I
No functional change. Split the designware core driver into *core* driver and *host* only driver. This is in preparation to add endpoint support in designware. The *endpoint* driver will reuse the *core* driver. This also modifies the dra7xx code to use the new architecture. TODO: All other platfo

[RFC PATCH] pci: controller: designware: Add EP mode support

2016-09-13 Thread Kishon Vijay Abraham I
Add endpoint mode support to designware driver. This uses the EP Core layer introduced recently to add endpoint mode support. *Any* function driver can now use this designware device to achieve the EP functionality. Signed-off-by: Kishon Vijay Abraham I --- .../devicetree/bindings/pci/designware

[RFC PATCH] Documentation: PCI: guide to use PCI Endpoint Core Layer

2016-09-13 Thread Kishon Vijay Abraham I
Add Documentation to let users enable endpoint mode in the PCI controller and add new PCI endpoint function. Signed-off-by: Kishon Vijay Abraham I --- Documentation/PCI/00-INDEX |2 + Documentation/PCI/pci-endpoint.txt | 199 2 files changed, 201

[RFC PATCH] pci: endpoint: introduce configfs entry for configuring EP functions

2016-09-13 Thread Kishon Vijay Abraham I
Introduce a new configfs entry to configure the EP function (like configuring the standard configuration header entries) and to bind the function with a controller. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/Kconfig |4 +- drivers/pci/endpoint/Makefile |3 +-

[RFC PATCH] pci: endpoint: add EP core layer to enable EP controller and EP functions

2016-09-13 Thread Kishon Vijay Abraham I
Introduce a new EP core layer in order to support endpoint functions in linux kernel. This comprises of EPC library (Endpoint Controller Library) and EPF library (Endpoint Function Library). EPC library implements functions that is specific to an endpoint controller and EPF library implements funct

[RFC PATCH] pci: endpoint: functions: add an EP function to test PCI

2016-09-13 Thread Kishon Vijay Abraham I
This adds a new endpoint function driver (to program the virtual test device) making use of the EP-core library. The complete usage of the test function is described in Documentation/PCI/pci-test.txt (included in this commit). Signed-off-by: Kishon Vijay Abraham I --- Documentation/PCI/00-INDEX

Re: [PATCH 06/17] CodingStyle.rst: use the proper tag for verbatim font

2016-09-13 Thread Jean Delvare
Hi Mauro, On Mon, 12 Sep 2016 11:47:57 -0300, Mauro Carvalho Chehab wrote: > Instead of using "foo", use ``foo`` for the names that are > literal. Because...? > Signed-off-by: Mauro Carvalho Chehab > --- > Documentation/kernel-development/CodingStyle.rst | 98 > > 1 f

Re: Ping: [PATCH v15 00/13] support "task_isolation" mode

2016-09-13 Thread Chris Metcalf
Thanks for your explanation of the TIF_TASK_ISOLATION flag being needed for x86 _TIF_WORK_SYSCALL_ENTRY. It makes perfect sense in retrospect :-) On 9/12/2016 8:20 PM, Francis Giraldeau wrote: On a side note, the NOSIG mode may be confusing for the users. At first, I was expecting that NOSIG be

Re: [PATCH 06/17] CodingStyle.rst: use the proper tag for verbatim font

2016-09-13 Thread Mauro Carvalho Chehab
Em Tue, 13 Sep 2016 19:45:23 +0200 Jean Delvare escreveu: > Hi Mauro, > > On Mon, 12 Sep 2016 11:47:57 -0300, Mauro Carvalho Chehab wrote: > > Instead of using "foo", use ``foo`` for the names that are > > literal. > > Because...? Because it is an usual typographic convention to use monospac

[PATCH v2 3/6] selftests: move ptp tests from Documentation/ptp

2016-09-13 Thread Shuah Khan
Remove ptp from Makefile to move the test to selftests. Update ptp Makefile to work under selftests. ptp will not be run as part of selftests suite and will not be included in install targets. They can be built separately for now. Signed-off-by: Shuah Khan --- Documentation/Makefile

[PATCH v2 0/6] Move runnable code (tests) from Documentation to selftests

2016-09-13 Thread Shuah Khan
Move runnable code (tests) from Documentation to selftests and update Makefiles to work under selftests. Jon Corbet and I discussed this in an email thread and as per that discussion, this patch series moves all the tests that are under the Documentation directory to selftests. There is more runna

[PATCH v2 4/6] selftests: move vDSO tests from Documentation/vDSO

2016-09-13 Thread Shuah Khan
Remove vDSO from Makefile to move the to selftests. Update vDSO Makefile to work under selftests. vDSO will not be run as part of selftests suite and will not be included in install targets. They can be built separately for now. Signed-off-by: Shuah Khan --- Documentation/Makefile

[PATCH v2 2/6] selftests: move prctl tests from Documentation/prctl

2016-09-13 Thread Shuah Khan
Move prctl tests from Documentation/prctl to selftests/prctl. Remove prctl from Makefile to move the test. Update prctl Makefile to work under selftests. prctl will not be run as part of selftests suite and will not be included in install targets. They can be built separately for now. Signed-off-

[PATCH v2 6/6] selftests: move watchdog tests from Documentation/watchdog

2016-09-13 Thread Shuah Khan
Remove watchdog-test from Makefile to move the test to selftests. Add Makefile and .gitignore to for watchdog-test. watchdog-test will not be run as part of selftests suite and will not be included in install targets. It can be built separately for now. Signed-off-by: Shuah Khan --- Documentat

[PATCH v2 1/6] selftests: move dnotify_test from Documentation/filesystems

2016-09-13 Thread Shuah Khan
Move dnotify_test.c, Makefile, and .gitignore from Documentation/filesystems to selftests/filesystems. Remove filesystems build target from Documentation/Makefile and update selftests/filesystems/Makefile to work under selftests. dnotify_test will not be run as part of selftests suite and will not

[PATCH v2 5/6] selftests: move ia64 tests from Documentation/ia64

2016-09-13 Thread Shuah Khan
Remove ia64 from Makefile to move the test to selftests. Update ia64 Makefile to work under selftests. ia64 will not be run as part of selftests suite and will not be included in install targets. They can be built separately for now. The original Makefile built this test on all archirectures and

Re: [PATCH v5 0/3] mm, proc: Implement /proc//totmaps

2016-09-13 Thread Sonny Rao
On Tue, Sep 13, 2016 at 12:12 AM, Michal Hocko wrote: > On Mon 12-09-16 10:28:53, Sonny Rao wrote: >> On Mon, Sep 12, 2016 at 10:15 AM, Michal Hocko wrote: >> > On Mon 12-09-16 08:31:36, Sonny Rao wrote: > [...] >> >> but how about the other fields like Swap, Private_Dirty and >> >> Private_Share

Re: [PATCH v2 6/6] selftests: move watchdog tests from Documentation/watchdog

2016-09-13 Thread Timur Tabi
Shuah Khan wrote: Remove watchdog-test from Makefile to move the test to selftests. Add Makefile and .gitignore to for watchdog-test. watchdog-test will to for? not be run as part of selftests suite and will not be included in install targets. It can be built separately for now. Signed-off

Re: [PATCH v2 6/6] selftests: move watchdog tests from Documentation/watchdog

2016-09-13 Thread Shuah Khan
On 09/13/2016 02:33 PM, Timur Tabi wrote: > Shuah Khan wrote: >> Remove watchdog-test from Makefile to move the test to selftests. >> >> Add Makefile and .gitignore to for watchdog-test. watchdog-test will > > to for? Thanks - will fix that. > >> not be run as part of selftests suite and will n

Re: [PATCH v2 6/6] selftests: move watchdog tests from Documentation/watchdog

2016-09-13 Thread Timur Tabi
Shuah Khan wrote: Is watchdog-simple a test or a sample/example? I thought this is an example, and planning to move that under examples? If this is a test, I will re-do the patch to include it. I guess it's really just a sample. -- Qualcomm Datacenter Technologies, Inc. as an affiliate of Qua

Re: [RFC] fs: add userspace critical mounts event support

2016-09-13 Thread Rob Landley
On 09/02/2016 07:20 PM, Luis R. Rodriguez wrote: > kernel_read_file_from_path() can try to read a file from > the system's filesystem. This is typically done for firmware > for instance, which lives in /lib/firmware. One issue with > this is that the kernel cannot know for sure when the real > fina

Re: [RFC PATCH] pci: support for configurable PCI endpoint

2016-09-13 Thread Kishon Vijay Abraham I
Hi, Will resend the series with patch numbering. Thanks Kishon On Tuesday 13 September 2016 10:40 PM, Kishon Vijay Abraham I wrote: > This patch series > *) adds PCI endpoint core layer > *) modifies designware/dra7xx driver to be configured in EP mode > *) adds a PCI endpoint

[RFC PATCH 04/11] pci: endpoint: functions: add an EP function to test PCI

2016-09-13 Thread Kishon Vijay Abraham I
This adds a new endpoint function driver (to program the virtual test device) making use of the EP-core library. The complete usage of the test function is described in Documentation/PCI/pci-test.txt (included in this commit). Signed-off-by: Kishon Vijay Abraham I --- Documentation/PCI/00-INDEX

[RFC PATCH 00/11] pci: support for configurable PCI endpoint

2016-09-13 Thread Kishon Vijay Abraham I
This patch series *) adds PCI endpoint core layer *) modifies designware/dra7xx driver to be configured in EP mode *) adds a PCI endpoint *test* function driver Known Limitation: *) Does not support multi-function devices TODO: *) access buffers in RC

[RFC PATCH 10/11] ARM: dts: DRA7: Modify pcie1 dt node for EP mode

2016-09-13 Thread Kishon Vijay Abraham I
Modify pcie1 dt node in order for the controller to operate in endpoint mode. This is used only for testing EP mode. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra7.dtsi | 43 +++ 1 file changed, 11 insertions(+), 32 deletions(-) diff -

[RFC PATCH 06/11] pci: controller: split designware into *core* and *host*

2016-09-13 Thread Kishon Vijay Abraham I
No functional change. Split the designware core driver into *core* driver and *host* only driver. This is in preparation to add endpoint support in designware. The *endpoint* driver will reuse the *core* driver. This also modifies the dra7xx code to use the new architecture. TODO: All other platfo

[RFC PATCH 08/11] pci: controller: dra7xx: Add EP mode support

2016-09-13 Thread Kishon Vijay Abraham I
The PCIe controller integrated in dra7xx SoCs is capable of operating in endpoint mode. Add support for dra7xx SoCs to operate in endpoint mode. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/pci/ti-pci.txt | 30 ++- drivers/pci/controller/Kconfig

[RFC PATCH 07/11] pci: controller: designware: Add EP mode support

2016-09-13 Thread Kishon Vijay Abraham I
Add endpoint mode support to designware driver. This uses the EP Core layer introduced recently to add endpoint mode support. *Any* function driver can now use this designware device to achieve the EP functionality. Signed-off-by: Kishon Vijay Abraham I --- .../devicetree/bindings/pci/designware

[RFC PATCH 11/11] HACK: pci: controller: dra7xx: disable smart idle

2016-09-13 Thread Kishon Vijay Abraham I
Smart idle prevents RC to access the memory space of this controller. Set the idle mode to smart idle wakeup. This should ideally be done in hwmod. Till it's figured out how to configure it in hwmod, mark this as HACK. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/controller/pci-dra7xx.c

[RFC PATCH 03/11] Documentation: PCI: guide to use PCI Endpoint Core Layer

2016-09-13 Thread Kishon Vijay Abraham I
Add Documentation to let users enable endpoint mode in the PCI controller and add new PCI endpoint function. Signed-off-by: Kishon Vijay Abraham I --- Documentation/PCI/00-INDEX |2 + Documentation/PCI/pci-endpoint.txt | 199 2 files changed, 201

[RFC PATCH 02/11] pci: endpoint: introduce configfs entry for configuring EP functions

2016-09-13 Thread Kishon Vijay Abraham I
Introduce a new configfs entry to configure the EP function (like configuring the standard configuration header entries) and to bind the function with a controller. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/Kconfig |4 +- drivers/pci/endpoint/Makefile |3 +-

[RFC PATCH 01/11] pci: endpoint: add EP core layer to enable EP controller and EP functions

2016-09-13 Thread Kishon Vijay Abraham I
Introduce a new EP core layer in order to support endpoint functions in linux kernel. This comprises of EPC library (Endpoint Controller Library) and EPF library (Endpoint Function Library). EPC library implements functions that is specific to an endpoint controller and EPF library implements funct

[RFC PATCH 05/11] pci: rename *host* directory to *controller*

2016-09-13 Thread Kishon Vijay Abraham I
No functional change. Renamed the *host* directory present inside drivers/pci to *controller*. Some of the controllers present in drivers/pci/host is capable of operating in endpoint mode. So having these drivers in *host* directory might not be appropriate. This is in preparation for adding endpoi

[RFC PATCH 09/11] misc: add a new host side PCI endpoint test driver

2016-09-13 Thread Kishon Vijay Abraham I
Add PCI endpoint test driver that can verify base address register and legacy interrupt. (TODO: buffer tests and MSI interrupt). The corresponding pci-epf-test function driver should be used on the EP side. Signed-off-by: Kishon Vijay Abraham I --- drivers/misc/Kconfig |7 + driv