Re: [PATCH 00/23] kconfig: move compiler capability tests to Kconfig

2018-02-20 Thread Masahiro Yamada
2018-02-20 0:18 GMT+09:00 Ulf Magnusson : >> >> I'm not happy that we in one context can reference CONFIG variables >> directly, but inside the $(call ...) and $(shell ...) needs the $ prefix. >> But I could not come up with something un-ambigious where this could be >> avoided. > > I think we sh

Re: [PATCH 05/10] hwmon: generic-pwm-tachometer: Add generic PWM based tachometer

2018-02-20 Thread Mikko Perttunen
AIUI, the PWM framework already exposes a sysfs node with period information. We should just use that instead of adding a new driver for this. In any case, we cannot add something like this to device tree since it's not a hardware device. Mikko On 21.02.2018 08:58, Rajkumar Rampelli wrote:

[PATCH 01/10] pwm: core: Add support for PWM HW driver with pwm capture only

2018-02-20 Thread Rajkumar Rampelli
Add support for pwm HW driver which has only capture functionality. This helps to implement the PWM based Tachometer driver which reads the PWM output signals from electronic fans. PWM Tachometer captures the period and duty cycle of the PWM signal Signed-off-by: Rajkumar Rampelli --- drivers/p

[PATCH 10/10] arm64: tegra: Add PWM controller on Tegra186 soc

2018-02-20 Thread Rajkumar Rampelli
The NVIDIA Tegra186 SoC has a PWM controller which is used in FAN control use case. Signed-off-by: Rajkumar Rampelli --- arch/arm64/boot/dts/nvidia/tegra186.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra186.dtsi b/arch/arm64/boot/dts/nvidi

[PATCH 04/10] hwmon: generic-pwm-tachometer: Add DT binding details

2018-02-20 Thread Rajkumar Rampelli
Add DT binding details for the PWM based generic tachometer driver which gets the period of the PWM tach-output from Fan via PWM IP having capability of capturing the signal. Signed-off-by: Rajkumar Rampelli --- .../bindings/hwmon/generic-pwm-tachometer.txt | 25 ++ 1 fi

[PATCH 09/10] arm64: defconfig: Enable Generic PWM based Tachometer driver

2018-02-20 Thread Rajkumar Rampelli
Enable Generic PWM based Tachometer driver which implements a simple interface for monitoring the speed of a fan in roatations per minute, and exposes it to the user space by using the hwmon's sysfs interface. Enable this driver as a module in the ARM64 defconfig. Signed-off-by: Rajkumar Rampelli

[PATCH 05/10] hwmon: generic-pwm-tachometer: Add generic PWM based tachometer

2018-02-20 Thread Rajkumar Rampelli
Add generic PWM based tachometer driver via HWMON interface to report the RPM of motor. This drivers get the period/duty cycle from PWM IP which captures the motor PWM output. This driver implements a simple interface for monitoring the speed of a fan and exposes it in roatations per minute (RPM)

[PATCH 03/10] pwm: tegra: Add PWM based Tachometer driver

2018-02-20 Thread Rajkumar Rampelli
PWM Tachometer driver capture the PWM signal which is output of FAN in general and provide the period of PWM signal which is converted to RPM by SW. Add Tegra Tachometer driver which implements the pwm-capture to measure period. Signed-off-by: Rajkumar Rampelli Signed-off-by: Laxman Dewangan --

[PATCH 02/10] dt-bindings: Tegra186 tachometer device tree bindings

2018-02-20 Thread Rajkumar Rampelli
Supply Device tree binding documentation for the NVIDIA Tegra186 SoC's Tachometer Controller Signed-off-by: Rajkumar Rampelli --- .../bindings/pwm/pwm-tegra-tachometer.txt | 31 ++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/binding

[PATCH 06/10] arm64: tegra: Add Tachometer Controller on Tegra186

2018-02-20 Thread Rajkumar Rampelli
The NVIDIA Tegra186 SoC has a Tachometer Controller that analyzes the PWM signal of a Fan and reports the period value through pwm interface. Signed-off-by: Rajkumar Rampelli --- arch/arm64/boot/dts/nvidia/tegra186-p2771-.dts | 5 + arch/arm64/boot/dts/nvidia/tegra186.dtsi | 1

[PATCH 07/10] arm64: tegra: Add PWM based Tachometer support on Tegra186

2018-02-20 Thread Rajkumar Rampelli
Add PWM based Tachometer support on Tegra186 to measure number of rotations of a Fan per minute by using PWM capture interface Signed-off-by: Rajkumar Rampelli --- arch/arm64/boot/dts/nvidia/tegra186.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra1

[PATCH 08/10] arm64: defconfig: enable Nvidia Tegra Tachometer as a module

2018-02-20 Thread Rajkumar Rampelli
Tegra Tachometer driver implements PWM capture to measure period. Enable this driver as a module in the ARM64 defconfig. Signed-off-by: Rajkumar Rampelli --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconf

[PATCH 00/10] Implementation of Tegra Tachometer driver

2018-02-20 Thread Rajkumar Rampelli
The following patches adds support for PWM based Tegra Tachometer driver which implements PWM capture interface to analyze the PWM signal of a electronic fan and reports it in periods and duty cycles. Generic PWM Tachometer implemented to monitor the speed of fan in rpms using PWM interface. RPM o

Re: [keyutils PATCH v2] man: keyctl_read(3): fix documentation for short buffer case

2018-02-20 Thread Eric Biggers
On Thu, Nov 02, 2017 at 11:06:05AM -0700, Eric Biggers wrote: > From: Eric Biggers > > When keyctl_read() is passed a buffer that is too small, the behavior is > inconsistent. Some key types will fill as much of the buffer as > possible, while others won't copy anything. Moreover, the in-kernel

Re: [PATCH v3 14/15] selinux: allow setxattr on rootfs so initramfs code can set them

2018-02-20 Thread Stephen Smalley
On Fri, 2018-02-16 at 20:33 +, Taras Kondratiuk wrote: > From: Victor Kamensky > > initramfs code supporting extended cpio format have ability to > fill extended attributes from cpio archive, but if SELinux enabled > and security server is not initialized yet, selinux callback would > refuse

Re: [PATCH v3 15/15] selinux: delay sid population for rootfs till init is complete

2018-02-20 Thread Stephen Smalley
On Fri, 2018-02-16 at 20:33 +, Taras Kondratiuk wrote: > From: Victor Kamensky > > With initramfs cpio format that supports extended attributes > we need to skip sid population on sys_lsetxattr call from > initramfs for rootfs if security server is not initialized yet. > > Otherwise callback

[PATCH] doc-guide: kernel-doc: add comment about formatting verification

2018-02-20 Thread Mike Rapoport
Currently there is no automated checking for kernel-doc comments except running 'kernel-doc -v -none '. Mention the possibility to run kernel-doc to verify formatting of the comments in the kernel-doc guide. Signed-off-by: Mike Rapoport --- v2: * fix typo * add a sentence about using 'make W=n'

Re: [PATCH 05/17] trace doc: convert trace/ftrace.txt to rst format

2018-02-20 Thread Jonathan Corbet
On Tue, 20 Feb 2018 10:26:44 -0500 Steven Rostedt wrote: > One it should be a separate patch. Two, how does SPDX deal with dual > licenses? Separate them with "OR" on a single line. See Documentation/process/license-rules.rst for details. jon -- To unsubscribe from this list: send the line "un

Re: [PATCH 05/17] trace doc: convert trace/ftrace.txt to rst format

2018-02-20 Thread Steven Rostedt
On Tue, 20 Feb 2018 21:27:00 +0800 "Du, Changbin" wrote: > > > @@ -0,0 +1,3332 @@ > > > + > > > +ftrace - Function Tracer > > > + > > > + > > > +Copyright 2008 Red Hat Inc. > > > + > > > +:Author: Steven Rostedt > > > +:License: The GNU Free Doc

Re: [PATCH] doc-guide: kernel-doc: add comment about formatting verification

2018-02-20 Thread Matthew Wilcox
On Tue, Feb 20, 2018 at 04:54:44PM +0200, Mike Rapoport wrote: > level. > > +Running the ``kernel-doc`` tool with increased verbosity and without actual > +output generation may be used to verify proper formating of the "formatting" > +documentation comments. For example:: > + > + scripts/

[PATCH] doc-guide: kernel-doc: add comment about formatting verification

2018-02-20 Thread Mike Rapoport
Currently there is no automated checking for kernel-doc comments except running 'kernel-doc -v -none '. Mention the possibility to run kernel-doc to verify formatting of the comments in the kernel-doc guide. Signed-off-by: Mike Rapoport --- Documentation/doc-guide/kernel-doc.rst | 6 ++ 1 fi

Re: [PATCH 05/17] trace doc: convert trace/ftrace.txt to rst format

2018-02-20 Thread Du, Changbin
Hi, On Tue, Feb 20, 2018 at 08:28:24AM +0100, Philippe Ombredanne wrote: > Changbin, Steven, > > On Sat, Feb 17, 2018 at 6:39 AM, wrote: > > From: Changbin Du > > > > This converts the plain text documentation to reStructuredText format and > > add it into Sphinx TOC tree. No essential content

Re: [PATCH v2] irqchip/gic-v3-its: Add workaround for ThunderX2 erratum #174

2018-02-20 Thread Marc Zyngier
On Mon, 19 Feb 2018 21:12:10 +, Jayachandran C wrote: > > On Sun, Jan 21, 2018 at 11:35:34AM +, Marc Zyngier wrote: > > On Sun, 21 Jan 2018 07:00:48 +, > > Jayachandran C wrote: > > > > > > On Thu, Jan 18, 2018 at 10:58:20AM +0530, Ganapatrao Kulkarni wrote: > > > > This erratum is ob