Re: [PATCH] coresight: STM: Balance enable/disable

2017-01-13 Thread Suzuki K Poulose
On 13/01/17 16:48, Mathieu Poirier wrote: On 10 January 2017 at 04:21, Suzuki K Poulose wrote: The stm is automatically enabled when an application sets the policy via ->link() call back by using coresight_enable(), which keeps the refcount of the current users of the

[PATCH 03/17] spi: fsl: Use kcalloc() in of_fsl_spi_get_chipselects()

2017-01-13 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 13 Jan 2017 13:33:02 +0100 A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus reuse the corresponding function "kcalloc". This issue was detected by

[PATCH 10/17] spi/ppc4xx: Adjust checks for null pointers in two functions

2017-01-13 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 13 Jan 2017 14:56:10 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script "checkpatch.pl" pointed information out like the following. Comparison to NULL could be written !… Thus

[PATCH 05/17] spi: fsl: Combine substrings for two messages

2017-01-13 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 13 Jan 2017 13:50:21 +0100 The script "checkpatch.pl" pointed information out like the following. WARNING: quoted string split across lines Thus fix the affected source code places. Signed-off-by: Markus Elfring

[PATCH 16/17] spi/topcliff-pch: Delete an error message for a failed memory allocation in pch_spi_set_tx()

2017-01-13 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 13 Jan 2017 17:00:08 +0100 Omit an extra message for a memory allocation failure in this function. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Signed-off-by: Markus Elfring

Re: [PATCH] Documentation: cpuset: Fix 'cpuset.tasks' -> 'tasks'

2017-01-13 Thread Jonathan Corbet
On Thu, 12 Jan 2017 14:24:27 -0800 "W. Trevor King" wrote: > This looks like it was accidentally caught up in e21a05cb (doc: > cpuset: Update the cpuset flag file, 2010-02-24). > > While I'm touching the line, also fix the posessive "cpusets" -> > "cpuset's". > >

Re: [PATCH v11 01/12] dt-bindings: display: mediatek: update supported chips

2017-01-13 Thread Rob Herring
On Wed, Jan 11, 2017 at 02:51:02PM +0800, YT Shen wrote: > Add decriptions about supported chips, including MT2701 & MT8173 > > Signed-off-by: YT Shen > --- > Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt | 2 ++ >

Re: irq domain hierarchy vs. chaining w/ PCI MSI-X...

2017-01-13 Thread David Daney
On 01/13/2017 08:15 AM, Marc Zyngier wrote: Thanks Linus for looping me in. On 12/01/17 22:35, David Daney wrote: Hi Thomas, I am trying to figure out how to handle this situation: handle_level_irq() +---+ handle_fasteoi_irq()

[PATCH v4 2/2] reset: make optional functions really optional

2017-01-13 Thread Ramiro Oliveira
The *_get_optional_* functions weren't really optional so this patch makes them really optional. These *_get_optional_* functions will now return NULL instead of an error if no matching reset phandle is found in the DT, and all the reset_control_* functions now accept NULL rstc pointers.

Re: [tpmdd-devel] [PATCH v8 2/2] tpm: add securityfs support for TPM 2.0 firmware event log

2017-01-13 Thread Stefan Berger
On 01/11/2017 02:54 AM, Nayna Jain wrote: Unlike the device driver support for TPM 1.2, the TPM 2.0 does not support the securityfs pseudo files for displaying the firmware event log. This patch enables support for providing the TPM 2.0 event log in binary form. TPM 2.0 event log supports a

Re: [RFC PATCH v2 09/10] drivers/perf: Add support for ARMv8.2 Statistical Profiling Extension

2017-01-13 Thread Kim Phillips
On Fri, 13 Jan 2017 17:03:07 + Will Deacon wrote: > On Fri, Jan 13, 2017 at 10:40:42AM -0600, Kim Phillips wrote: > > On Fri, 13 Jan 2017 16:03:48 + > > Will Deacon wrote: > > > > > +#define DRVNAME "arm_spe_pmu" > > >

[GIT PULL] arm64 fixes for 4.10-rc4

2017-01-13 Thread Catalin Marinas
Hi Linus, Please pull the arm64 fixes below. Thanks. The following changes since commit a121103c922847ba5010819a3f250f1f7fc84ab8: Linux 4.10-rc3 (2017-01-08 14:18:17 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux tags/arm64-fixes

[PATCH] misc: mic: constify virtio_config_ops structures

2017-01-13 Thread Bhumika Goyal
Declare virtio_config_ops structure as const as it is only stored in the config field of a virtio_device structure. This field is of type const, so virtio_config_ops structures having this property can be declared const. Done using Coccinelle: @r1 disable optional_qualifier@ identifier i;

Re: [PATCH v3 01/24] [media] dt-bindings: Add bindings for i.MX media driver

2017-01-13 Thread Steve Longerbeam
On 01/13/2017 03:55 AM, Philipp Zabel wrote: Am Freitag, den 06.01.2017, 18:11 -0800 schrieb Steve Longerbeam: Add bindings documentation for the i.MX media driver. Signed-off-by: Steve Longerbeam --- Documentation/devicetree/bindings/media/imx.txt | 57

Re: [PATCH 3/6 linux-next] fs/affs: make affs exportable

2017-01-13 Thread J. Bruce Fields
On Fri, Jan 13, 2017 at 10:52:54AM -0800, Christoph Hellwig wrote: > On Fri, Jan 13, 2017 at 12:39:12PM -0500, J. Bruce Fields wrote: > > If we're going to reject patches that don't implement get_parent (and I > > think we should), then we should replace "optional but strongly > > recommended"

[PATCH v4 3/4] dt-bindings: add "microchip,24c128" compatible string

2017-01-13 Thread David Lechner
This adds "microchip,24c128" to the list of compatible strings for i2c eeproms. Signed-off-by: David Lechner --- Documentation/devicetree/bindings/eeprom/eeprom.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/eeprom/eeprom.txt

Re: [RFC PATCH v2 09/10] drivers/perf: Add support for ARMv8.2 Statistical Profiling Extension

2017-01-13 Thread Will Deacon
On Fri, Jan 13, 2017 at 10:40:42AM -0600, Kim Phillips wrote: > On Fri, 13 Jan 2017 16:03:48 + > Will Deacon wrote: > > > +#define DRVNAME"arm_spe_pmu" > > PMU is implied. "arm_spe"? As stated before, I'm going for consistency here. Is it

[PATCH 04/17] spi: fsl: Use kmalloc_array() in of_fsl_spi_get_chipselects()

2017-01-13 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 13 Jan 2017 13:37:25 +0100 A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "kmalloc_array". This issue was detected

[PATCH 06/17] spi/mpc52xx: Use kmalloc_array() in mpc52xx_spi_probe()

2017-01-13 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 13 Jan 2017 14:06:10 +0100 * A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "kmalloc_array". This issue was

[PATCH 07/17] spi/mpc52xx: Combine substrings for two messages

2017-01-13 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 13 Jan 2017 14:14:45 +0100 The script "checkpatch.pl" pointed information out like the following. WARNING: quoted string split across lines Thus fix the affected source code places. Signed-off-by: Markus Elfring

Re: [PATCH 36/37] ARM: DRA7: clockdomain: Change the CLKTRCTRL of CM_PCIE_CLKSTCTRL to SW_WKUP

2017-01-13 Thread Tony Lindgren
* Kishon Vijay Abraham I [170112 02:35]: > The PCIe programming sequence in TRM suggests CLKSTCTRL of PCIe should > be set to SW_WKUP. There are no issues when CLKSTCTRL is set to HW_AUTO > in RC mode. However in EP mode, the host system is not able to access the > MEMSPACE and

Re: [PATCH v2] tcp: fix tcp_fastopen unaligned access complaints on sparc

2017-01-13 Thread David Miller
From: Shannon Nelson Date: Thu, 12 Jan 2017 14:24:58 -0800 > Fix up a data alignment issue on sparc by swapping the order > of the cookie byte array field with the length field in > struct tcp_fastopen_cookie, and making it a proper union > to clean up the typecasting.

[GIT PULL] Ceph fixes for 4.10-rc4

2017-01-13 Thread Ilya Dryomov
Hi Linus, The following changes since commit a121103c922847ba5010819a3f250f1f7fc84ab8: Linux 4.10-rc3 (2017-01-08 14:18:17 -0800) are available in the git repository at: https://github.com/ceph/ceph-client.git tags/ceph-for-4.10-rc4 for you to fetch changes up to

Re: [PATCH v4 0/4] Application Data Integrity feature introduced by SPARC M7

2017-01-13 Thread Rob Gardner
On 01/13/2017 09:08 AM, Dave Hansen wrote: On 01/13/2017 07:29 AM, Rob Gardner wrote: so perhaps ADI should simply be disallowed for memory mapped to files, and this particular complication can be avoided. Thoughts? What's a "file" from your perspective? In Linux, shared memory is a file.

Re: [PATCH V2 0/6] gpio: davinci: Redesign driver to accommodate ngpios in one gpio chip

2017-01-13 Thread Grygorii Strashko
On 01/12/2017 10:20 PM, Keerthy wrote: The Davinci GPIO driver is implemented to work with one monolithic Davinci GPIO platform device which may have up to Y(144) gpios. The Davinci GPIO driver instantiates number of GPIO chips with max 32 gpio pins per each during initialization and one IRQ

[PATCH v4 4/4] ARM: dts: Add LEGO MINDSTORMS EV3 dts

2017-01-13 Thread David Lechner
This adds a device tree definition file for LEGO MINDSTORMS EV3. What is working: * Pin muxing * Pinconf * GPIOs * MicroSD card reader * UART on input port 1 * Buttons * LEDs * Poweroff/reset * Flash memory * EEPROM * USB host port * USB peripheral port What is not working/to be added later: *

[PATCH v4 2/4] dt-bindings: Add LEGO MINDSTORMS EV3 compatible specification

2017-01-13 Thread David Lechner
This adds the board level device tree specification for LEGO MINDSTORMS EV3 Signed-off-by: David Lechner --- Documentation/devicetree/bindings/arm/davinci.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/davinci.txt

[PATCH v4 1/4] dt-bindings: Add vendor prefix for LEGO

2017-01-13 Thread David Lechner
Add a vendor prefix for LEGO Systems A/S Signed-off-by: David Lechner --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt

Re: [RFC PATCH v2 05/10] genirq: export irq_get_percpu_devid_partition to modules

2017-01-13 Thread Marc Zyngier
On 13/01/17 16:03, Will Deacon wrote: > Any modular driver using cluster-affine PPIs needs to be able to call > irq_get_percpu_devid_partition so that it can enable the IRQ on the > correct subset of CPUs. > > This patch exports the symbol so that it can be called from within a > module. > > Cc:

Re: [PATCH v4 0/2] Add support rockchip,grf property for RK3399 PMU/GRU

2017-01-13 Thread Heiko Stuebner
Am Dienstag, 10. Januar 2017, 14:15:28 CET schrieb Xing Zheng: > Hi, > The structure rockchip_clk_provider needs to refer the GRF regmap > in somewhere, if the CRU node has not "rockchip,grf" property, > calling syscon_regmap_lookup_by_phandle will return an invalid GRF > regmap, and the MUXGRF

Re: [PATCH 08/10] blk-mq-sched: add framework for MQ capable IO schedulers

2017-01-13 Thread Omar Sandoval
On Fri, Jan 13, 2017 at 12:15:17PM +0100, Hannes Reinecke wrote: > On 01/11/2017 10:40 PM, Jens Axboe wrote: > > This adds a set of hooks that intercepts the blk-mq path of > > allocating/inserting/issuing/completing requests, allowing > > us to develop a scheduler within that framework. > > > >

[PATCH] uprobe: Find last occurrence of ':' when parsing uprobe PATH:OFFSET

2017-01-13 Thread Kenny Yu
Previously, `create_trace_uprobe` found the *first* occurence of the ':' character when parsing `PATH:OFFSET` for a uprobe. However, if the path contains a ':' character, then the function would parse the path incorrectly. Even worse, if the path does not exist, the subsequent call to

Re: [PATCH] regulator: anatop: Add support for "anatop-enable-bit"

2017-01-13 Thread Rob Herring
On Tue, Jan 10, 2017 at 08:30:14AM -0800, Andrey Smirnov wrote: > Add code to support support for "anatop-enable-bit" device-tree > property. This property translates to LINREG_ENABLE bit in real hardware > and is present on 1p1, 2p5 and 3p0 regulators on i.MX6 and 1p0d regulator > on i.MX7. > >

Re: [PATCH v3 1/8] arm: put types.h in uapi

2017-01-13 Thread Russell King - ARM Linux
On Fri, Jan 13, 2017 at 11:46:39AM +0100, Nicolas Dichtel wrote: > This header file is exported, thus move it to uapi. I'm taking this patch, but with the following commit log: Due to the way kbuild works, this header was unintentionally exported back in 2013 when it was created, despite it

Re: [PATCH 05/37] PCI: dwc: Add platform_set_drvdata

2017-01-13 Thread Joao Pinto
Hi, Às 10:25 AM de 1/12/2017, Kishon Vijay Abraham I escreveu: > Add platform_set_drvdata in all designware based drivers to store the > private data structure of the driver so that dev_set_drvdata can be > used to get back private data pointer in add_pcie_port/host_init. > This is in

Re: [PATCH] i2c: i2c-cadence: Don't register the adapter until it's ready

2017-01-13 Thread Mike Looijmans
On 13-01-17 09:37, Wolfram Sang wrote: I would argue that the "info" message means "the I2C adapter is ready for transaction now, and we'll start initializing devices on the bus". That is the case before it calls i2c_add_adapter(). I know what you mean, but i2c_add_adapter does more, and it

Re: [PATCH v8 1/3] dt-bindings: Add support for samsung s6e3ha2 panel binding

2017-01-13 Thread Rob Herring
On Wed, Jan 11, 2017 at 03:33:57PM +0900, Hoegeun Kwon wrote: > The Samsung s6e3ha2 is a 5.7" 1440x2560 AMOLED panel connected > using MIPI-DSI interfaces. > > Signed-off-by: Donghwa Lee > Signed-off-by: Hyungwon Hwang > Signed-off-by: Hoegeun Kwon

[RFC PATCH v3 1/2] tracing: add TRACE_EVENT_MAP_COND

2017-01-13 Thread Julien Desfossez
This new macro allows to hook conditional tracepoint probes to pre-existing trace events. This allows to create specialized versions of the same tracepoint without having to explicitly call every possible tracepoints in the instrumented code. In order to use it, a TRACE_EVENT must already exist,

[RFC PATCH v3 0/2] Extend scheduling tracepoints

2017-01-13 Thread Julien Desfossez
This patchset proposes a way to extend the existing scheduling tracepoints. The intent is to allow to output relevant priority informations based on the scheduling class of the tasks without breaking the existing tracepoints or having to handle the various cases in the scheduler code. The

[RFC PATCH v3 2/2] tracing: add policy-based sched_switch events

2017-01-13 Thread Julien Desfossez
Add 3 new tracepoints: sched_switch_fair, sched_switch_rt and sched_switch_dl. These conditional tracepoints are emitted based on the scheduling class of the next task. Each of these tracepoint gets rid of the prio field from the original sched_switch and replaces it with fields that are relevant

[PATCH 17/17] spi/topcliff-pch: One check less in pch_spi_set_tx()

2017-01-13 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 13 Jan 2017 17:30:46 +0100 Delete a duplicate check after a bit of exception handling was moved into a previous if branch of this function. Signed-off-by: Markus Elfring ---

Re: [PATCH] flow disector: check if arp_eth is null rather than arp

2017-01-13 Thread Eric Dumazet
On Fri, 2017-01-13 at 13:34 +, Colin King wrote: > From: Colin Ian King > > arp is being checked instead of arp_eth to see if the call to > __skb_header_pointer failed. Fix this by checking arp_eth is > null instead of arp. > > CoverityScan CID#1396428 ("Logically

Re: [Xen-devel] [PATCH] xen: do not re-use pirq number cached in pci device msi msg data

2017-01-13 Thread Dan Streetman
On Wed, Jan 11, 2017 at 6:25 PM, Dan Streetman wrote: > On Wed, Jan 11, 2017 at 1:46 PM, Stefano Stabellini > wrote: >> On Wed, 11 Jan 2017, Dan Streetman wrote: >>> On Tue, Jan 10, 2017 at 8:25 PM, Stefano Stabellini >>> wrote:

Re: [PATCH 2/4] clk: rockchip: use rk3288 isp_in clock ids

2017-01-13 Thread Heiko Stuebner
Am Dienstag, 10. Januar 2017, 19:59:18 CET schrieb Jacob Chen: > Reference the newly added isp clock-ids in the clock-tree. > > > Signed-off-by: Jacob Chen applied for 4.11 Thanks Heiko

Re: [PATCH 2/9] tty_port: allow a port to be opened with a tty that has no file handle

2017-01-13 Thread Rob Herring
On Fri, Jan 6, 2017 at 10:26 AM, Rob Herring wrote: > From: Alan Cox > > Let us create tty objects entirely in kernel space. Untested proposal to > show why all the ideas around rewriting half the uart stack are not needed. > > With this a kernel created

[PATCH 11/17] spi/topcliff-pch: Use kcalloc() in pch_spi_handle_dma()

2017-01-13 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 13 Jan 2017 15:25:22 +0100 * Multiplications for the size determination of memory allocations indicated that array data structures should be processed. Thus use the corresponding function "kcalloc". This issue was detected by

Re: [PATCH 16/37] PCI: endpoint: Introduce configfs entry for configuring EP functions

2017-01-13 Thread Christoph Hellwig
Hi Kishon, a couple comments on the configfs layout based on my experiments with your previous drop to implement a NVMe device using it. I don't think most of these configfs files should be present here, as they are properties of the implemented PCIe devices. E.g. for my NVMe device they will

[PATCH][V2] flow dissector: check if arp_eth is null rather than arp

2017-01-13 Thread Colin King
From: Colin Ian King arp is being checked instead of arp_eth to see if the call to __skb_header_pointer failed. Fix this by checking arp_eth is null instead of arp. Also fix to use length hlen rather than hlen - sizeof(_arp); thanks to Eric Dumazet for spotting this

[patch 1/3] KVM: x86: provide realtime host clock via vsyscall notifiers

2017-01-13 Thread Marcelo Tosatti
Expose the realtime host clock and save the TSC value used for the clock calculation. Signed-off-by: Marcelo Tosatti --- arch/x86/kvm/x86.c | 36 1 file changed, 36 insertions(+) v2: unify nsec_base (Radim) Index:

Re: [PATCH 5/6] f2fs: add a kernel thread to issue discard commands asynchronously

2017-01-13 Thread Jaegeuk Kim
On 01/13, Christoph Hellwig wrote: > On Thu, Jan 12, 2017 at 02:44:06PM -0800, Jaegeuk Kim wrote: > > This patch adds a kernel thread to issue discard commands. > > It proposes three states, D_PREP, D_SUBMIT, and D_DONE to identify current > > bio status. > > Why? Instead of creating the

Re: [PATCH v3 2/2] tpm: enhance TPM 2.0 PCR extend to support multiple banks

2017-01-13 Thread Jarkko Sakkinen
On Fri, Jan 13, 2017 at 12:44:15PM +0530, Nayna wrote: > > > On 01/12/2017 11:50 PM, Jarkko Sakkinen wrote: > > On Thu, Jan 12, 2017 at 11:58:10AM -0500, Nayna Jain wrote: > > > The current TPM 2.0 device driver extends only the SHA1 PCR bank > > > but the TCG Specification[1] recommends

Re: [PATCH v4 2/2] dt-bindings: clk: add rockchip,grf property for RK3399

2017-01-13 Thread Rob Herring
On Tue, Jan 10, 2017 at 02:15:30PM +0800, Xing Zheng wrote: > Add support for rockchip,grf property which is used for GRF muxes > on RK3399. > > Signed-off-by: Xing Zheng > --- > > Changes in v4: > - update the decription for rockchip,grf property > > Changes in v3:

[PATCH v1 1/1] x86/platform/intel-mid: Enable RTC on Intel Merrifield

2017-01-13 Thread Andy Shevchenko
Intel Merrifield has legacy RTC in contrast to the rest on Intel MID platforms. Set legacy RTC flag explicitly in architecture initialization code and allocate interrupt for it. Signed-off-by: Andy Shevchenko --- arch/x86/platform/intel-mid/mrfld.c | 1 +

Re: [PATCH] soc: dove: constify reset_control_ops structures

2017-01-13 Thread Gregory CLEMENT
Hi Russell King, On ven., janv. 13 2017, Russell King - ARM Linux wrote: > On Fri, Jan 13, 2017 at 05:36:42PM +0100, Gregory CLEMENT wrote: >> Hi Sebastian, >> >> On lun., janv. 09 2017, Bhumika Goyal wrote: >> >> > Declare reset_control_ops as

Re: [PATCH 1/3] rtc: stm32: remove __exit annotation on remove callback

2017-01-13 Thread Alexandre Belloni
On 13/01/2017 at 16:32:51 +0100, Arnd Bergmann wrote : > The remove function can be called at runtime for a manual 'unbind' > operation and must not be left out from a built-in driver, as kbuild > complains: > > `stm32_rtc_remove' referenced in section `.data.stm32_rtc_driver' of >

Re: [PATCH 2/3] rtc: stm32: fix building without CONFIG_OF

2017-01-13 Thread Alexandre Belloni
On 13/01/2017 at 16:32:52 +0100, Arnd Bergmann wrote : > The new driver has a stray #ifdef in it that causes a build error: > > drivers/rtc/rtc-stm32.c:718:21: error: 'stm32_rtc_of_match' undeclared here > (not in a function); did you mean 'stm32_rtc_pm_ops'? > > As the #ifdef serves no purpose

Re: [PATCH 1/2] rtc: tegra: Sort includes alphabetically

2017-01-13 Thread Alexandre Belloni
On 12/01/2017 at 17:07:42 +0100, Thierry Reding wrote : > From: Thierry Reding > > The ordering of includes is currently completely arbitrary, making it > impossible to decide where to put new includes. Remove the dilemma by > sort the include list alphabetically. > >

Re: [PATCH v5 5/5] Documentation:powerpc: Add device-tree bindings for power-mgt

2017-01-13 Thread Rob Herring
On Tue, Jan 10, 2017 at 02:37:04PM +0530, Gautham R. Shenoy wrote: > From: "Gautham R. Shenoy" > > Document the device-tree bindings defining the the properties under > the @power-mgt node in the device tree that describe the idle states > for Linux running on baremetal

[PATCH 01/17] spi: Use kcalloc() in spi_register_board_info()

2017-01-13 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 13 Jan 2017 12:28:04 +0100 A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus reuse the corresponding function "kcalloc". This issue was detected by

Re: [patch 2/3] KVM: x86: add KVM_HC_CLOCK_OFFSET hypercall

2017-01-13 Thread Radim Krcmar
2017-01-13 13:43-0200, Marcelo Tosatti: > On Fri, Jan 13, 2017 at 04:31:58PM +0100, Radim Krcmar wrote: >> 2017-01-13 10:01-0200, Marcelo Tosatti: >> > Add a hypercall to retrieve the host realtime clock >> > and the TSC value used to calculate that clock read. >> > >> > Used to implement clock

Re: [PATCH RFC v2 5/5] tpm2: expose resource manager via a device link /dev/tpms

2017-01-13 Thread Jason Gunthorpe
On Thu, Jan 12, 2017 at 10:56:28PM +0200, Jarkko Sakkinen wrote: > > dev_t tpm_devt; > > But they should have different major device numbers. major/minors don't really matter these days since they are dynamic Jason

[PATCH 14/17] spi/topcliff-pch: Adjust six checks for null pointers

2017-01-13 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 13 Jan 2017 16:16:05 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script "checkpatch.pl" pointed information out like the following. Comparison to NULL could be written … Thus

Re: [PATCH 07/37] PCI: dwc: designware: Get device pointer at the start of dw_pcie_host_init

2017-01-13 Thread Joao Pinto
Hi! Às 10:25 AM de 1/12/2017, Kishon Vijay Abraham I escreveu: > No functional change. Get device pointer at the beginning of > dw_pcie_host_init instead of getting it all over dw_pcie_host_init. > This is in preparation for splitting struct pcie_port into host and > core structures (Once split

[PATCH 13/17] spi/topcliff-pch: Delete an unnecessary return statement in two functions

2017-01-13 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 13 Jan 2017 15:57:03 +0100 The script "checkpatch.pl" pointed information out like the following. WARNING: void function return statements are not generally useful Thus remove such statements here. Signed-off-by: Markus Elfring

[PATCH 15/17] spi/topcliff-pch: Combine substrings for four messages

2017-01-13 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 13 Jan 2017 16:36:09 +0100 The script "checkpatch.pl" pointed information out like the following. WARNING: quoted string split across lines Thus fix the affected source code places. Signed-off-by: Markus Elfring

Re: [tpmdd-devel] [PATCH RFC v2 5/5] tpm2: expose resource manager via a device link /dev/tpms

2017-01-13 Thread James Bottomley
On Fri, 2017-01-13 at 10:25 -0700, Jason Gunthorpe wrote: > On Thu, Jan 12, 2017 at 10:56:28PM +0200, Jarkko Sakkinen wrote: > > > > dev_t tpm_devt; > > > > But they should have different major device numbers. > > major/minors don't really matter these days since they are dynamic Right,

Re: [tpmdd-devel] [PATCH RFC v2 5/5] tpm2: expose resource manager via a device link /dev/tpms

2017-01-13 Thread Jason Gunthorpe
On Fri, Jan 13, 2017 at 09:40:08AM -0800, James Bottomley wrote: > On Fri, 2017-01-13 at 10:25 -0700, Jason Gunthorpe wrote: > > On Thu, Jan 12, 2017 at 10:56:28PM +0200, Jarkko Sakkinen wrote: > > > > > > dev_t tpm_devt; > > > > > > But they should have different major device numbers. > > > >

[patch 2/3] KVM: x86: add KVM_HC_CLOCK_OFFSET hypercall

2017-01-13 Thread Marcelo Tosatti
Add a hypercall to retrieve the host realtime clock and the TSC value used to calculate that clock read. Used to implement clock synchronization between host and guest. Signed-off-by: Marcelo Tosatti --- Documentation/virtual/kvm/hypercalls.txt | 33

[patch 0/3] KVM virtual PTP driver (v2)

2017-01-13 Thread Marcelo Tosatti
This patchset implements a virtual PTP driver which allows guest to sync its clock to the host clock with high precision ( error is < 10ns). Changelog from v1 Patch1: v2: unify nsec_base (Radim) Patch2: v2: improve documentation (Radim) change hypercall name to KVM_HC_CLOCK_PAIRING (Radim)

Re: [PATCH 1/4] clk: rockchip: add rk3288 isp_in clock ids

2017-01-13 Thread Heiko Stuebner
Am Dienstag, 10. Januar 2017, 19:59:17 CET schrieb Jacob Chen: > Add clock-ids for the isp block of the rk3288. > > > Signed-off-by: Jacob Chen applied for 4.11 Thanks Heiko

Re: [PATCH v3 1/2] tpm: implement TPM 2.0 capability to get active PCR banks

2017-01-13 Thread Jarkko Sakkinen
On Fri, Jan 13, 2017 at 12:54:12PM +0530, Nayna wrote: > > > On 01/12/2017 11:55 PM, Jarkko Sakkinen wrote: > > On Thu, Jan 12, 2017 at 11:58:09AM -0500, Nayna Jain wrote: > > > This patch implements the TPM 2.0 capability TPM_CAP_PCRS to > > > retrieve the active PCR banks from the TPM. This is

Re: [PATCH 11/37] PCI: dwc: Split pcie-designware.c into host and core files

2017-01-13 Thread Joao Pinto
Às 10:26 AM de 1/12/2017, Kishon Vijay Abraham I escreveu: > Split pcie-designware.c into pcie-designware-host.c that contains > the host specific parts of the driver and pcie-designware.c that > contains the parts used by both host driver and endpoint driver. > > Signed-off-by: Kishon Vijay

Re: [PATCH] uprobe: Find last occurrence of ':' when parsing uprobe PATH:OFFSET

2017-01-13 Thread Steven Rostedt
On Fri, 13 Jan 2017 08:58:34 -0800 Kenny Yu wrote: > Previously, `create_trace_uprobe` found the *first* occurence > of the ':' character when parsing `PATH:OFFSET` for a uprobe. > However, if the path contains a ':' character, then the function > would parse the path

Re: [PATCH v2 1/2] iio: distance: srf08: add trivial DT binding

2017-01-13 Thread Rob Herring
On Tue, Jan 10, 2017 at 07:47:44PM +0100, Andreas Klinger wrote: > Add DT binding for devantech,srf08 > Add vendor devantech to vendor list > > Signed-off-by: Andreas Klinger > --- > Documentation/devicetree/bindings/i2c/trivial-devices.txt | 1 + >

[PATCH] perf script: Also allow forcing reading of non-root owned files by root

2017-01-13 Thread Yannick Brosseau
In 2059fc7a5a9e6677, perf report was added the option of forcing reading of non-root owned symbol file. This add the same behavior for perf script. Reported-by: Mark Drayton Signed-off-by: Yannick Brosseau --- tools/perf/builtin-script.c | 3 ++- 1 file changed,

Re: irq domain hierarchy vs. chaining w/ PCI MSI-X...

2017-01-13 Thread Marc Zyngier
On 13/01/17 17:37, David Daney wrote: > On 01/13/2017 08:15 AM, Marc Zyngier wrote: >> Thanks Linus for looping me in. >> >> On 12/01/17 22:35, David Daney wrote: >>> Hi Thomas, >>> >>> I am trying to figure out how to handle this situation: >>> >>>handle_level_irq() >>>

Re: [RFC PATCH v2 10/10] dt-bindings: Document devicetree binding for ARM SPE

2017-01-13 Thread Mark Rutland
On Fri, Jan 13, 2017 at 04:03:49PM +, Will Deacon wrote: > This patch documents the devicetree binding in use for ARM SPE. > > Cc: Mark Rutland > Cc: Rob Herring > Signed-off-by: Will Deacon > --- >

Re: [PATCH v2] partially revert "xen: Remove event channel notification through Xen PCI platform device"

2017-01-13 Thread Boris Ostrovsky
On 01/13/2017 01:26 PM, Stefano Stabellini wrote: > On Fri, 13 Jan 2017, Boris Ostrovsky wrote: >> On 01/12/2017 04:39 PM, Stefano Stabellini wrote: >>> The following commit: >>> >>> commit 72a9b186292d98494f26cfd24a1621796209 >>> Author: KarimAllah Ahmed >>> Date: Fri

[PATCH] s390: virtio: constify virtio_config_ops structures

2017-01-13 Thread Bhumika Goyal
Declare virtio_config_ops structure as const as it is only stored in the config field of a virtio_device structure. This field is of type const, so virtio_config_ops structures having this property can be declared const. Done using Coccinelle: @r1 disable optional_qualifier@ identifier i;

Re: [PATCH] coresight: STM: Balance enable/disable

2017-01-13 Thread Mathieu Poirier
On 10 January 2017 at 04:21, Suzuki K Poulose wrote: > The stm is automatically enabled when an application sets the policy > via ->link() call back by using coresight_enable(), which keeps the > refcount of the current users of the STM. However, the unlink() callback >

Re: [PATCH 3/3] rtc: stm32: use 32-bit cast for BIT() macro

2017-01-13 Thread Arnd Bergmann
On Fri, Jan 13, 2017 at 4:56 PM, Amelie DELAUNAY wrote: > On 01/13/2017 04:32 PM, Arnd Bergmann wrote: >> >> Using the ~ operator on a BIT() constant results in a large 'unsigned >> long' >> constant that won't fit into an 'unsigned int' function argument on 64-bit >>

Re: [PATCH v1 2/2] arm: dts: mt2701: add nor flash node

2017-01-13 Thread Boris Brezillon
On Fri, 13 Jan 2017 17:44:12 +0100 Marek Vasut wrote: > On 01/13/2017 05:28 PM, Boris Brezillon wrote: > > On Fri, 13 Jan 2017 17:13:55 +0100 > > Marek Vasut wrote: > > > >> On 01/13/2017 04:12 PM, Matthias Brugger wrote: > >>> > >>> > >>> On

[PATCH] tools/vm: Add missing Makefile rules

2017-01-13 Thread Daniel Thompson
Currently the tools/vm Makefile has a rather arbitrary implicit build rule; page-types is the first value in TARGETS so lets just build that one! Additionally there is no install rule and this is needed for make -C tools vm_install to work properly. Provide a more sensible implicit build rule and

Re: [PATCH] rcu: Narrow early boot window of illegal synchronous grace periods

2017-01-13 Thread Borislav Petkov
On Thu, Jan 12, 2017 at 06:38:07PM -0800, Paul E. McKenney wrote: > The current preemptible RCU implementation goes through three phases > during bootup. In the first phase, there is only one CPU that is running > with preemption disabled, so that a no-op is a synchronous grace period. > In the

[PATCH 02/17] spi: Adjust checks for null pointers in two functions

2017-01-13 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 13 Jan 2017 13:23:32 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script "checkpatch.pl" pointed information out like the following. Comparison to NULL could be written !… Thus

Re: [PATCH 08/10] blk-mq-sched: add framework for MQ capable IO schedulers

2017-01-13 Thread Hannes Reinecke
On 01/13/2017 05:41 PM, Omar Sandoval wrote: > On Fri, Jan 13, 2017 at 12:15:17PM +0100, Hannes Reinecke wrote: >> On 01/11/2017 10:40 PM, Jens Axboe wrote: >>> This adds a set of hooks that intercepts the blk-mq path of >>> allocating/inserting/issuing/completing requests, allowing >>> us to

Re: [PATCH 3/6 linux-next] fs/affs: make affs exportable

2017-01-13 Thread J. Bruce Fields
On Wed, Jan 04, 2017 at 06:53:31AM +0100, Fabian Frederick wrote: > > > > On 03 January 2017 at 23:29 Al Viro wrote: > > > > > > On Tue, Jan 03, 2017 at 10:30:39PM +0100, Fabian Frederick wrote: > > > Add standard functions making AFFS work with NFS. > > > > > >

[PATCH] KVM: VMX: downgrade warning on unexpected exit code

2017-01-13 Thread Radim Krčmář
2017-01-02 11:23+0100, Dmitry Vyukov: > Hello, > > I've got the following warning while running syzkaller fuzzer: > > WARNING: CPU: 2 PID: 13257 at arch/x86/kvm/vmx.c:8633 > vmx_handle_exit+0x262b/0x38b0 arch/x86/kvm/vmx.c:8633 > vmx: unexpected exit reason 0xb > CPU: 2 PID: 13257 Comm:

[PATCH v4 0/2] reset: Make optional functions really optional.

2017-01-13 Thread Ramiro Oliveira
v4: - Change the way error handling was being processed when in optional mode. v3: - Improve description of changes ocurring in the patchset - Add 2 new return errors. v2: - Make some comments more explicit - Add optional flag to reduce code duplication - Change shared flag from int to

[PATCH v4 1/2] reset: Change shared flag from int to bool

2017-01-13 Thread Ramiro Oliveira
Since the new parameter being added is going to be a bool this patch changes the shared flag from int to bool to match the new parameter. Signed-off-by: Ramiro Oliveira --- drivers/reset/core.c | 8 include/linux/reset.h | 32

RE: [PATCH v2 00/26] IB: Optimize DMA mapping

2017-01-13 Thread Estrin, Alex
Hi Bart, This series applied to 4.10-rc3 breaks hfi1 sdma engines. [ 34.712343] hfi1 :82:00.0: hfi1_0: SDMA (0) engine error: 0x21 state s50_HwHaltWait [ 34.722752] hfi1 :82:00.0: hfi1_0: SDMA (0) descq_head: 0 descq_tail: 3 freecnt: 2044 FLE 0 [ 34.733933] hfi1 :82:00.0:

Re: [PATCH][V2] flow dissector: check if arp_eth is null rather than arp

2017-01-13 Thread Eric Dumazet
On Fri, 2017-01-13 at 18:48 +, Colin King wrote: > From: Colin Ian King > > arp is being checked instead of arp_eth to see if the call to > __skb_header_pointer failed. Fix this by checking arp_eth is > null instead of arp. Also fix to use length hlen rather than

[PATCH v4 0/4] Support for LEGO MINDSTORMS EV3

2017-01-13 Thread David Lechner
This patch series adds support for LEGO MINDSTORMS EV3. This is a TI AM1808 based board. v4 changes: * New patches for device tree bindings specifications * Fixed vendor on eeprom device node v3 changes: * required defconfig patches have been picked up in linux-davinci tree, so this is the

Re: [PATCH] soc: dove: constify reset_control_ops structures

2017-01-13 Thread Russell King - ARM Linux
On Fri, Jan 13, 2017 at 05:36:42PM +0100, Gregory CLEMENT wrote: > Hi Sebastian, > > On lun., janv. 09 2017, Bhumika Goyal wrote: > > > Declare reset_control_ops as const as they are only stored in the ops > > field of a reset_controller_dev structure. This field is of

[PATCH] tools/vm: Add missing Makefile rules

2017-01-13 Thread Daniel Thompson
Currently the tools/vm Makefile has a rather arbitrary implicit build rule; page-types is the first value in TARGETS so lets just build that one! Additionally there is no install rule and this is needed for make -C tools vm_install to work properly. Provide a more sensible implicit build rule and

Re: [RFC PATCH v2 09/10] drivers/perf: Add support for ARMv8.2 Statistical Profiling Extension

2017-01-13 Thread Kim Phillips
On Fri, 13 Jan 2017 16:03:48 + Will Deacon wrote: > +#define DRVNAME "arm_spe_pmu" PMU is implied. "arm_spe"? > +static int arm_spe_pmu_event_init(struct perf_event *event) > +{ > + u64 reg; > + struct perf_event_attr *attr =

[PATCH 12/17] spi/topcliff-pch: Improve size determinations in pch_spi_probe()

2017-01-13 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 13 Jan 2017 15:46:35 +0100 Replace the specification of data structures by pointer dereferences as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer. Signed-off-by: Markus Elfring

Re: [PATCH v1 2/2] arm: dts: mt2701: add nor flash node

2017-01-13 Thread Marek Vasut
On 01/13/2017 05:56 PM, Boris Brezillon wrote: > On Fri, 13 Jan 2017 17:44:12 +0100 > Marek Vasut wrote: > >> On 01/13/2017 05:28 PM, Boris Brezillon wrote: >>> On Fri, 13 Jan 2017 17:13:55 +0100 >>> Marek Vasut wrote: >>> On 01/13/2017

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

2017-01-13 Thread Jonathan Corbet
On Thu, 22 Dec 2016 17:19:34 +0100 Sebastian Andrzej Siewior wrote: > The current CPU hotplug is outdated. During the update to what we > currently have I rewrote it partly and moved to sphinx format. OK, I've applied this (finally) to the docs tree, even though I do kind

Re: [PATCH 12/37] PCI: dwc: Create a new config symbol to enable pci dwc host

2017-01-13 Thread Joao Pinto
Hi Kishon, Às 10:26 AM de 1/12/2017, Kishon Vijay Abraham I escreveu: > Now that pci designware host has a separate file, create a new > config symbol to select the host only driver. This is in preparation > to enable endpoint support to designware driver. > > Signed-off-by: Kishon Vijay Abraham

<    1   2   3   4   5   6   7   8   9   10   >