Re: [PATCH v2 06/15] ima: add parser of digest lists metadata

2017-11-20 Thread Roberto Sassu
On 11/19/2017 12:23 AM, Mimi Zohar wrote: Hi Serge, On Fri, 2017-11-17 at 22:20 -0600, Serge E. Hallyn wrote: On Tue, Nov 07, 2017 at 11:37:01AM +0100, Roberto Sassu wrote: from a predefined position (/etc/ima/digest_lists/metadata), when rootfs becomes available. Digest lists must be loaded b

Re: [PATCH V2 2/3] perf/x86/intel/bm.c: Add Intel Branch Monitoring support

2017-11-20 Thread Peter Zijlstra
On Fri, Nov 17, 2017 at 05:54:05PM -0800, Megha Dey wrote: > + mutex_lock(&bm_counter_mutex); > + for (i = 0; i < BM_MAX_COUNTERS; i++) { > + if (bm_counter_owner[i] == NULL) { > + counter_to_use = i; > + bm_counter_owner[i] = event; > +

Re: [PATCH v4 1/6] PM / core: Add LEAVE_SUSPENDED driver flag

2017-11-20 Thread Ulf Hansson
On 18 November 2017 at 15:31, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Define and document a new driver flag, DPM_FLAG_LEAVE_SUSPENDED, to > instruct the PM core and middle-layer (bus type, PM domain, etc.) > code that it is desirable to leave the device in runtime suspend > after s

Re: [PATCH v4 5/6] PM / core: Direct handling of DPM_FLAG_LEAVE_SUSPENDED

2017-11-20 Thread Ulf Hansson
On 18 November 2017 at 15:41, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Make the PM core handle DPM_FLAG_LEAVE_SUSPENDED directly for > devices whose "noirq", "late" and "early" driver callbacks are > invoked directly by it. This indicates that your target for this particular change

Re: [PATCH v2 06/15] ima: add parser of digest lists metadata

2017-11-20 Thread Mimi Zohar
On Mon, 2017-11-20 at 10:40 +0100, Roberto Sassu wrote: > On 11/19/2017 12:23 AM, Mimi Zohar wrote: > > Hi Serge, > > > > On Fri, 2017-11-17 at 22:20 -0600, Serge E. Hallyn wrote: > >> On Tue, Nov 07, 2017 at 11:37:01AM +0100, Roberto Sassu wrote: > >>> from a predefined position (/etc/ima/digest_

Re: [PATCH V2 3/3] x86, bm: Add documentation on Intel Branch Monitoring

2017-11-20 Thread Jiri Olsa
On Fri, Nov 17, 2017 at 05:54:06PM -0800, Megha Dey wrote: SNIP > +IV. User-configurable inputs > + > + > +Several sysfs entries are provided in /sys/devices/intel_bm/ to configure > +controls for the supported hardware heuristics. > + > +1. LBR freeze: /sys/devices/in

Re: [PATCH V2 2/3] perf/x86/intel/bm.c: Add Intel Branch Monitoring support

2017-11-20 Thread Jiri Olsa
On Fri, Nov 17, 2017 at 05:54:05PM -0800, Megha Dey wrote: SNIP > +/* Branch Monitoring default and mask values */ > +#define BM_MAX_WINDOW_SIZE 0x3ff > +#define BM_MAX_THRESHOLD 0x7f > +#define BM_MAX_EVENTS6 > +#define BM_WINDOW_SIZE_SHIFT 8

Re: [PATCH] doc: linux-wpan: Fulfill the description of missed 802.15.4 APIs

2017-11-20 Thread Jian-Hong Pan
Hi, 2017-11-20 0:19 GMT+08:00 Alexander Aring : > Hi, > > On Sat, Nov 18, 2017 at 10:55 AM, Jian-Hong Pan > wrote: >> There are more functions and operations which must be used or implemented >> in each IEEE 802.15.4 device driver, but are not mentioned in the Device >> drivers API section of Do

Re: [PATCH v2 06/15] ima: add parser of digest lists metadata

2017-11-20 Thread Serge E. Hallyn
Quoting Mimi Zohar (zo...@linux.vnet.ibm.com): > On Mon, 2017-11-20 at 10:40 +0100, Roberto Sassu wrote: > > On 11/19/2017 12:23 AM, Mimi Zohar wrote: > > > Hi Serge, > > > > > > On Fri, 2017-11-17 at 22:20 -0600, Serge E. Hallyn wrote: > > >> On Tue, Nov 07, 2017 at 11:37:01AM +0100, Roberto Sass

Re: [PATCH] documentation/svga.txt: update outdated file

2017-11-20 Thread Jonathan Corbet
On Sun, 19 Nov 2017 10:02:20 -0800 Randy Dunlap wrote: > Drop CONFIG_VIDEO_400_HACK info completely. > Drop CONFIG_VIDEO_RETAIN and CONFIG_VIDEO_LOCAL completely. > Drop CONFIG_VIDEO_COMPACT and CONFIG_VIDEO_VESA info completely. > Drop CONFIG_VIDEO_SVGA info since it has been removed. > Drop cha

Re: [PATCH RFC v3 3/6] sched/idle: Add a generic poll before enter real idle path

2017-11-20 Thread Daniel Lezcano
On 20/11/2017 08:05, Quan Xu wrote: [ ... ] But the irq_timings stuff is heading into the same direction, with a more complex prediction logic which should tell you pretty good how long that idle period is going to be and in case of an interrupt heavy workload this >

Re: [PATCH] Documentation: fix profile= options in kernel-parameters.txt

2017-11-20 Thread Jonathan Corbet
On Sun, 19 Nov 2017 21:08:11 -0800 Randy Dunlap wrote: > From: Randy Dunlap > > Correctly the formatting of several additions to the profile= option > that have been added by using and listing the choices > for it. Applied, thanks. jon -- To unsubscribe from this list: send the line "unsubsc

Re: [PATCH 1/2] Documentation: add Sorting section to kernel-api

2017-11-20 Thread Jonathan Corbet
On Wed, 15 Nov 2017 19:19:19 -0800 Randy Dunlap wrote: > Add sort() and list_sort() to the kernel API documentation in a > new "Sorting" section. Neither of these patches applies to current docs-next. Seems they conflict with the math functions docs that somebody added...:) Not hard to fix up,

Re: [PATCH] Check all .c files for bad kernel-doc comments

2017-11-20 Thread Matthew Wilcox
On Mon, Oct 30, 2017 at 12:40:20PM +0900, Masahiro Yamada wrote: > 2017-10-28 4:41 GMT+09:00 Matthew Wilcox : > > From: Matthew Wilcox > > > > Implement a '-none' output mode for kernel-doc which will only output > > warning messages, and suppresses the warning message about there being > > no ker

Re: [PATCH] Check all .c files for bad kernel-doc comments

2017-11-20 Thread Jonathan Corbet
On Mon, 20 Nov 2017 10:40:40 -0800 Matthew Wilcox wrote: > > ifeq ($(KBUILD_ENABLE_EXTRA_GCC_CHECKS),) > > cmd_checkdoc = $(srctree)/scripts/kernel-doc -none $< ; > > endif > > Thanks! v2 below. Jon, could you apply? Done, thanks. jon -- To unsubscribe from this list: send the line "unsubs

Re: [PATCHv2] of: Document exactly what of_find_node_by_name() puts

2017-11-20 Thread Rob Herring
On Fri, Nov 17, 2017 at 08:53:21AM -0800, Stephen Boyd wrote: > It isn't clear if this function of_node_put()s the 'from' > argument, or the node it searches. Clearly indicate which > variable is touched. Fold in some more fixes from Randy too > because we're in the area. > > Cc: Randy Dunlap > S

Re: [PATCH 1/2] Documentation: add Sorting section to kernel-api

2017-11-20 Thread Randy Dunlap
On 11/20/17 10:09, Jonathan Corbet wrote: > On Wed, 15 Nov 2017 19:19:19 -0800 > Randy Dunlap wrote: > >> Add sort() and list_sort() to the kernel API documentation in a >> new "Sorting" section. > > Neither of these patches applies to current docs-next. Seems they > conflict with the math func

[PATCH 0/2] Documentation: Add guidance on CONFIG default value

2017-11-20 Thread Darren Hart
From: "Darren Hart (VMware)" Document the preference for "default n" in kconfig-language.txt, and reference that in the submit-checklist.rst. Darren Hart (VMware) (2): Documentation/kbuild: Add guidance for the use of default Documentation/process: Add CONFIG default value to submit-checklis

[PATCH 1/2] Documentation/kbuild: Add guidance for the use of default

2017-11-20 Thread Darren Hart
From: "Darren Hart (VMware)" Document the preference [1] for new CONFIG options to "default n" (or not use default at all) in order to minimizes changes to the config, especially to avoid "make oldconfig" growing unnecessarily from release to release. Document the exceptions where it is acceptab

[PATCH 2/2] Documentation/process: Add CONFIG default value to submit-checklist

2017-11-20 Thread Darren Hart
From: "Darren Hart (VMware)" Add default value review to the submit checklist, referring to the preference for "default n" from the previous patch added to Documentation/kbuild/kconfig-language.txt. Cc: "Yann E. MORIN" Cc: Masahiro Yamada Cc: Michal Marek Cc: Jonathan Corbet Cc: linux-kbu...

Re: [PATCH v5 11/11] intel_sgx: driver documentation

2017-11-20 Thread Jarkko Sakkinen
On Sat, Nov 18, 2017 at 12:34:33AM +0100, Thomas Gleixner wrote: > This is architecural. From the cursory read of that series it seems there > are two parts to it: > > 1) The actual core handling, which should be in arch/x86 because that > hardly qualifies as a 'platform' device driver. >

Re: [PATCH v5 11/11] intel_sgx: driver documentation

2017-11-20 Thread Jarkko Sakkinen
On Fri, Nov 17, 2017 at 03:46:45PM -0800, Darren Hart wrote: > On Sat, Nov 18, 2017 at 12:34:33AM +0100, Thomas Gleixner wrote: > > On Fri, 17 Nov 2017, Darren Hart wrote: > > > > @intel: I removed intel-sgx-kernel-...@lists.01.org from CC because I can > > do without the silly moderation spam of

[PATCH v3 04/12] dt-bindings: fsi: Add P9 OCC hwmon device documentation

2017-11-20 Thread Eddie James
From: "Edward A. James" Document the bindings for the FSI-based OCC hwmon device. Signed-off-by: Edward A. James --- .../devicetree/bindings/fsi/ibm,p9-occ-hwmon.txt | 16 1 file changed, 16 insertions(+) create mode 100644 Documentation/devicetree/bindings/fsi/ibm,p9

[PATCH v3 05/12] hwmon: Add On-Chip Controller (OCC) hwmon driver

2017-11-20 Thread Eddie James
From: "Edward A. James" The OCC is a device embedded on a POWER processor that collects and aggregates sensor data from the processor and system. The OCC can provide the raw sensor data as well as perform thermal and power management on the system. This driver provides a hwmon interface to the O

[PATCH v3 01/12] Documentation: hwmon: Add OCC documentation

2017-11-20 Thread Eddie James
From: "Edward A. James" Document the hwmon interface for the OCC. Signed-off-by: Edward A. James --- Documentation/hwmon/occ | 75 + 1 file changed, 75 insertions(+) create mode 100644 Documentation/hwmon/occ diff --git a/Documentation/hwmon/oc

[PATCH v3 12/12] hwmon (occ): Add sysfs notification for errors and throttling

2017-11-20 Thread Eddie James
From: "Edward A. James" In order to aid application usage of the error, throttling, and presence count properties, use sysfs_notify to notify users of change on these attributes. Signed-off-by: Edward A. James --- drivers/hwmon/occ/common.c | 53 --

[PATCH v3 08/12] hwmon (occ): Add sensor types and versions

2017-11-20 Thread Eddie James
From: "Edward A. James" Add structures to define all sensor types and versions. Add sysfs show and store functions for each sensor type. Add a method to construct the "set user power cap" command and send it to the OCC. Add rate limit to polling the OCC (in case user-space reads our hwmon entries

[PATCH v3 11/12] hwmon (occ): Add error handling

2017-11-20 Thread Eddie James
From: "Edward A. James" Add logic to detect a number of error scenarios on the OCC. Export any errors through an additional non-hwmon device attribute. The error counting and state verification are required by the OCC hardware specification. Signed-off-by: Edward A. James --- drivers/hwmon/occ

[PATCH v3 10/12] hwmon (occ): Add non-hwmon attributes

2017-11-20 Thread Eddie James
From: "Edward A. James" Create device attributes for additional OCC properties that do not belong as hwmon sensors. These provide additional information as to the state of the processor and system. Signed-off-by: Edward A. James --- drivers/hwmon/occ/common.c | 93 +

[PATCH v3 09/12] hwmon (occ): Add sensor attributes and register hwmon device

2017-11-20 Thread Eddie James
From: "Edward A. James" Setup the sensor attributes for every OCC sensor found by the first poll response. Register the attributes with hwmon. Add hwmon documentation for the driver. Signed-off-by: Edward A. James --- drivers/hwmon/occ/common.c | 450 +++

[PATCH v3 07/12] hwmon (occ): Parse OCC poll response

2017-11-20 Thread Eddie James
From: "Edward A. James" Add method to parse the response from the OCC poll command. This only needs to be done during probe(), since the OCC shouldn't change the number or format of sensors while it's running. The parsed response allows quick access to sensor data, as well as information on the n

[PATCH v3 02/12] Documentation: ABI: Add occ-hwmon driver sysfs documentation

2017-11-20 Thread Eddie James
From: "Edward A. James" Detail the sysfs attributes provided by the occ-hwmon driver. Signed-off-by: Edward A. James --- Documentation/ABI/testing/sysfs-driver-occ-hwmon | 85 1 file changed, 85 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-driver-o

[PATCH v3 06/12] hwmon (occ): Add command transport method for P8 and P9

2017-11-20 Thread Eddie James
From: "Edward A. James" For the P8 OCC, add the procedure to send a command to the OCC over I2C bus. This involves writing the OCC command registers with serial communication operations (SCOMs) interpreted by the I2C slave. For the P9 OCC, add a procedure to use the OCC in-kernel API to send a co

[PATCH v3 03/12] dt-bindings: i2c: Add P8 OCC hwmon device documentation

2017-11-20 Thread Eddie James
From: "Edward A. James" Document the bindings for I2C-based OCC hwmon device. Signed-off-by: Edward A. James --- .../devicetree/bindings/i2c/ibm,p8-occ-hwmon.txt | 25 ++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/ibm,p8-occ

[PATCH v3 00/12] hwmon: Add On-Chip Controller hwmon driver

2017-11-20 Thread Eddie James
From: "Edward A. James" This series adds a hwmon driver to support the OCC on POWER8 and POWER9 processors. The OCC is an embedded processor that provides realtime power and thermal monitoring and management. This driver has two different platform drivers as a "base" for the hwmon interface, as

Re: [PATCH v4 1/6] PM / core: Add LEAVE_SUSPENDED driver flag

2017-11-20 Thread Rafael J. Wysocki
On Mon, Nov 20, 2017 at 1:25 PM, Ulf Hansson wrote: > On 18 November 2017 at 15:31, Rafael J. Wysocki wrote: >> From: Rafael J. Wysocki >> >> Define and document a new driver flag, DPM_FLAG_LEAVE_SUSPENDED, to >> instruct the PM core and middle-layer (bus type, PM domain, etc.) >> code that it i

Re: [PATCH] docs: add submitting-pull-requests.rst

2017-11-20 Thread Tobin C. Harding
On Wed, Nov 15, 2017 at 04:09:32PM +0200, Jani Nikula wrote: > On Wed, 15 Nov 2017, "Tobin C. Harding" wrote: > > On Tue, Nov 14, 2017 at 04:48:16PM -0700, Jonathan Corbet wrote: > > > > Awesome comments Jon, I knew there would be more to writing docs than > > first met the eye. > > > >> On Wed, 1