[PATCH v3 2/6] gpu: host1x: Enable gather filter

2017-09-28 Thread Mikko Perttunen
The gather filter is a feature present on Tegra124 and newer where the hardware prevents GATHERed command buffers from executing commands normally reserved for the CDMA pushbuffer which is maintained by the kernel driver. This commit enables the gather filter on all supporting hardware. Signed-of

[PATCH v3 5/6] gpu: host1x: Fix incorrect comment for channel_request

2017-09-28 Thread Mikko Perttunen
This function actually doesn't sleep in the version that was merged. Signed-off-by: Mikko Perttunen Reviewed-by: Dmitry Osipenko --- drivers/gpu/host1x/channel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/host1x/channel.c b/drivers/gpu/host1x/channel.c ind

Re: [PATCH] staging: fsl-mc/dpio: Fix incorrect comparison

2017-09-28 Thread Dan Carpenter
On Thu, Sep 28, 2017 at 03:48:36PM +0300, Dan Carpenter wrote: > On Wed, Sep 27, 2017 at 12:57:28PM -0500, Ioana Radulescu wrote: > > diff --git a/drivers/staging/fsl-mc/bus/dpio/dpio-service.c > > b/drivers/staging/fsl-mc/bus/dpio/dpio-service.c > > index f809682..26922fc 100644 > > --- a/drivers

Re: [PATCH v6 1/3] drm/vc4: Move the DSI clock divider workaround closer to the clock call.

2017-09-28 Thread Thierry Reding
On Wed, Sep 27, 2017 at 12:36:52PM -0700, Eric Anholt wrote: > We want the adjusted_mode->clock to be the actual clock we're > expecting to program, so that consumers see the right values for clock > and vrefresh. > > Signed-off-by: Eric Anholt > --- > drivers/gpu/drm/vc4/vc4_dsi.c | 12 ++--

Re: [RFC v3 7/7] platform/x86: intel_scu_ipc: Use generic Intel IPC device calls

2017-09-28 Thread Alexandre Belloni
On 04/09/2017 at 22:37:27 -0700, sathyanarayanan.kuppusw...@linux.intel.com wrote: > From: Kuppuswamy Sathyanarayanan > > Removed redundant IPC helper functions and refactored the driver to use > generic IPC device driver APIs. > > This patch also cleans-up SCU IPC user drivers to use APIs prov

Re: [PATCH for-next 3/9] RDMA/hns: Add return statement when kzalloc return NULL in hns_roce_v1_recreate_lp_qp

2017-09-28 Thread Leon Romanovsky
On Thu, Sep 28, 2017 at 07:56:59PM +0800, Wei Hu (Xavier) wrote: > > > On 2017/9/28 17:13, Leon Romanovsky wrote: > > On Thu, Sep 28, 2017 at 12:57:28PM +0800, Wei Hu (Xavier) wrote: > > > From: Lijun Ou > > > > > > When lp_qp_work is NULL, it should be returned ENOMEM. This patch > > > mainly fix

Re: [PATCH for-next 8/9] RDMA/hns: Remove unused struct members in hns-abi.h

2017-09-28 Thread Leon Romanovsky
On Thu, Sep 28, 2017 at 07:56:40PM +0800, Wei Hu (Xavier) wrote: > > > On 2017/9/28 17:02, Leon Romanovsky wrote: > > On Thu, Sep 28, 2017 at 12:57:33PM +0800, Wei Hu (Xavier) wrote: > > > From: Lijun Ou > > > > > > This patch mainly deletes some unused struct members for > > > hns_roce_ib_create_

Re: [PATCH v4 4/9] em28xx: fix em28xx_dvb_init for KASAN

2017-09-28 Thread Andrey Ryabinin
On 09/27/2017 04:26 PM, Arnd Bergmann wrote: > On Tue, Sep 26, 2017 at 9:49 AM, Andrey Ryabinin > wrote: >> >> >> On 09/26/2017 09:47 AM, Arnd Bergmann wrote: >>> On Mon, Sep 25, 2017 at 11:32 PM, Arnd Bergmann wrote: > >>> + ret = __builtin_strlen(q); >> >> >> I think this is not correct.

[RFC PATCH 2/4] arm64: dts: exynos: add micro-USB connector node to TM2 platforms

2017-09-28 Thread Andrzej Hajda
Since USB connector bindings are available we can describe it on TM2(e). Signed-off-by: Andrzej Hajda --- .../boot/dts/exynos/exynos5433-tm2-common.dtsi | 47 -- 1 file changed, 44 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2-commo

RE: [PATCH] staging: fsl-mc/dpio: Fix incorrect comparison

2017-09-28 Thread Ruxandra Ioana Radulescu
> -Original Message- > From: Dan Carpenter [mailto:dan.carpen...@oracle.com] > Sent: Thursday, September 28, 2017 3:49 PM > To: Ruxandra Ioana Radulescu > Cc: gre...@linuxfoundation.org; de...@driverdev.osuosl.org; > a...@arndb.de; stuyo...@gmail.com; Roy Pledge ; > linux-kernel@vger.kerne

[RFC PATCH 1/4] dt-bindings: add bindings for USB physical connector

2017-09-28 Thread Andrzej Hajda
These bindings allows to describe most known standard USB connectors and it should be possible to extend it if necessary. USB connectors, beside USB can be used to route other protocols, for example UART, Audio, MHL. In such case every device passing data through the connector should have appropria

[RFC PATCH 3/4] extcon: add possibility to get extcon device by of node

2017-09-28 Thread Andrzej Hajda
Since extcon property is not allowed in DT, extcon subsystem requires another way to get extcon device. Lets try the simplest approach - get edev by of_node. Signed-off-by: Andrzej Hajda --- drivers/extcon/extcon.c | 44 ++-- include/linux/extcon.h | 6 +

[RFC PATCH 0/4] dt-bindings: add bindings for USB physical connector

2017-09-28 Thread Andrzej Hajda
Hi, This patchset introduces USB connector bindings, together with working example. I have added comments in relevant patches to describe possible issues. Regards Andrzej Andrzej Hajda (3): dt-bindings: add bindings for USB physical connector arm64: dts: exynos: add micro-USB connector node

[RFC PATCH 4/4] drm/bridge/sii8620: use micro-USB cable detection logic to detect MHL

2017-09-28 Thread Andrzej Hajda
From: Maciej Purski Currently MHL chip must be turned on permanently to detect MHL cable. It duplicates micro-USB controller's (MUIC) functionality and consumes unnecessary power. Lets use extcon attached to MUIC to enable MHL chip only if it detects MHL cable. Signed-off-by: Maciej Purski Sign

OOPS: linux-4.9.33/fs/pnode.c:propagate_one()

2017-09-28 Thread Philipp Hahn
Hello Eric, we have observed the following OOPS with linux-4.9.33 on several occasions when starting a Docker container: > [ 531.801537] Oops: [#1] SMP > [ 531.801565] Modules linked in: xt_nat veth ipt_MASQUERADE > nf_nat_masquerade_ipv4 xfrm_user xfrm_algo xt_addrtype br_netfilter bridg

Re: [PATCH v6 1/4] sched/clock: interface to allow timestamps early in boot

2017-09-28 Thread Pasha Tatashin
It will be best if we can support TSC sync capability in x86, but seems is not easy. Sure, your hardware achieving sync would be best, but even if it does not, we can still use TSC. Using notsc simple because you fail to sync TSCs is quite crazy. The thing is, we need to support unsync'ed TSC i

[PATCH v3 01/22] dt-bindings: mailbox: add support for mailbox client shared memory

2017-09-28 Thread Sudeep Holla
Many users of the mailbox controllers depend on the shared memory between the two end points to exchange the main data while using simple doorbell mechanism to alert the end points of the presence of a message. This patch defines device tree bindings to represent such shared memory in a generic wa

[PATCH v3 02/22] dt-bindings: arm: add support for ARM System Control and Management Interface(SCMI) protocol

2017-09-28 Thread Sudeep Holla
This patch adds devicetree binding for System Control and Management Interface (SCMI) Message Protocol used between the Application Cores(AP) and the System Control Processor(SCP). The MHU peripheral provides a mechanism for inter-processor communication between SCP's M3 processor and AP. SCP offe

[PATCH v3 12/22] firmware: arm_scmi: add option for polling based performance domain operations

2017-09-28 Thread Sudeep Holla
In order to implement fast CPU DVFS switching, we need to perform all DVFS operations atomically. Since SCMI transfer already provide option to choose between pooling vs interrupt driven(default), we can opt for polling based transfers for set,get performance domain operations. This patch adds opt

[PATCH v3 04/22] firmware: arm_scmi: add basic driver infrastructure for SCMI

2017-09-28 Thread Sudeep Holla
The SCMI is intended to allow OSPM to manage various functions that are provided by the hardware platform it is running on, including power and performance functions. SCMI provides two levels of abstraction, protocols and transports. Protocols define individual groups of system control and manageme

[PATCH v3 21/22] cpufreq: add support for CPU DVFS based on SCMI message protocol

2017-09-28 Thread Sudeep Holla
On some ARM based systems, a separate Cortex-M based System Control Processor(SCP) provides the overall power, clock, reset and system control including CPU DVFS. SCMI Message Protocol is used to communicate with the SCP. This patch adds a cpufreq driver for such systems using SCMI interface to dr

[PATCH v3 22/22] cpufreq: scmi: add support for fast frequency switching

2017-09-28 Thread Sudeep Holla
The cpufreq core provides option for drivers to implement fast_switch callback which is invoked for frequency switching from interrupt context. This patch adds support for fast_switch callback in SCMI cpufreq driver by making use of polling based SCMI transfer. It also sets the flag fast_switch_po

[PATCH v3 20/22] hwmon: add support for sensors exported via ARM SCMI

2017-09-28 Thread Sudeep Holla
Create a driver to add support for SoC sensors exported by the System Control Processor (SCP) via the System Control and Management Interface (SCMI). The supported sensor types is one of voltage, temperature, current, and power. The sensor labels and values provided by the SCP are exported via the

[PATCH v3 18/22] clk: add support for clocks provided by SCMI

2017-09-28 Thread Sudeep Holla
On some ARM based systems, a separate Cortex-M based System Control Processor(SCP) provides the overall power, clock, reset and system control. System Control and Management Interface(SCMI) Message Protocol is defined for the communication between the Application Cores(AP) and the SCP. This patch

[PATCH v3 19/22] hwmon: (core) Add hwmon_max to hwmon_sensor_types enumeration

2017-09-28 Thread Sudeep Holla
It's useful to know the maximum types of sensor supported by hwmon framework. It can be used to allocate some data structures when sorting the monitors based on their type. This will be used by scmi hwmon support. Cc: Guenter Roeck Cc: linux-hw...@vger.kernel.org Signed-off-by: Sudeep Holla ---

[PATCH v3 17/22] firmware: arm_scmi: add device power domain support using genpd

2017-09-28 Thread Sudeep Holla
This patch hooks up the support for device power domain provided by SCMI using the Linux generic power domain infrastructure. Cc: Kevin Hilman Cc: Ulf Hansson Signed-off-by: Sudeep Holla --- drivers/firmware/Kconfig | 13 +++ drivers/firmware/arm_scmi/Makefile | 1

[PATCH v3 16/22] firmware: arm_scmi: add arm_mhu specific mailbox interface

2017-09-28 Thread Sudeep Holla
This patch adds ARM MHU specific mailbox interface for SCMI. Cc: Arnd Bergmann Signed-off-by: Sudeep Holla --- drivers/firmware/arm_scmi/Makefile | 1 + drivers/firmware/arm_scmi/arm_mhu_if.c | 106 + drivers/firmware/arm_scmi/driver.c | 3 + drivers/

[PATCH v3 14/22] firmware: arm_scmi: add per-protocol channels support using idr objects

2017-09-28 Thread Sudeep Holla
In order to maintain the channel information per protocol, we need some sort of list or hashtable to hold all this information. IDR provides sparse array mapping of small integer ID numbers onto arbitrary pointers. In this case the arbitrary pointers can be pointers to the channel information. Thi

[PATCH v3 13/22] firmware: arm_scmi: refactor in preparation to support per-protocol channels

2017-09-28 Thread Sudeep Holla
In order to support per-protocol channels if available, we need to factor out all the mailbox channel information(Tx/Rx payload and channel handle) out of the main SCMI instance information structure. This patch refactors the existing channel information into a separate chan_info structure. Cc: A

[PATCH v3 10/22] firmware: arm_scmi: probe and initialise all the supported protocols

2017-09-28 Thread Sudeep Holla
Now that we have basic support for all the protocols in the specification, let's probe them individually and initialise them. Cc: Arnd Bergmann Signed-off-by: Sudeep Holla --- drivers/firmware/arm_scmi/common.h | 5 +++ drivers/firmware/arm_scmi/driver.c | 82 ++

[PATCH v3 15/22] firmware: arm_scmi: abstract mailbox interface

2017-09-28 Thread Sudeep Holla
Some of the mailbox controller expects controller specific data in order to implement simple doorbell mechanism as expected by SCMI specification. This patch creates a shim layer to abstract the mailbox interface so that it can support any mailbox controller. It also provides default implementatio

[PATCH v3 11/22] firmware: arm_scmi: add support for polling based SCMI transfers

2017-09-28 Thread Sudeep Holla
It would be useful to have options to perform some SCMI transfers atomically by polling for the completion flag instead of interrupt driven. The SCMI specification has option to disable the interrupt and poll for the completion flag in the shared memory. This patch adds support for polling based S

[PATCH v3 08/22] firmware: arm_scmi: add initial support for power protocol

2017-09-28 Thread Sudeep Holla
The power protocol is intended for management of power states of various power domains. The power domain management protocol provides commands to describe the protocol version, discover the implementation specific attributes, set and get the power state of a domain. This patch adds support for the

[PATCH v3 07/22] firmware: arm_scmi: add initial support for clock protocol

2017-09-28 Thread Sudeep Holla
The clock protocol is intended for management of clocks. It is used to enable or disable clocks, and to set and get the clock rates. This protocol provides commands to describe the protocol version, discover various implementation specific attributes, describe a clock, enable and disable a clock an

[PATCH v3 09/22] firmware: arm_scmi: add initial support for sensor protocol

2017-09-28 Thread Sudeep Holla
The sensor protocol provides functions to manage platform sensors, and provides the commands to describe the protocol version and the various attribute flags. It also provides commands to discover various sensors implemented and managed by the platform, read any sensor synchronously or asynchronous

Re: [PATCH] staging: fsl-mc/dpio: Fix incorrect comparison

2017-09-28 Thread gre...@linuxfoundation.org
On Thu, Sep 28, 2017 at 01:07:48PM +, Ruxandra Ioana Radulescu wrote: > > -Original Message- > > From: Dan Carpenter [mailto:dan.carpen...@oracle.com] > > Sent: Thursday, September 28, 2017 3:49 PM > > To: Ruxandra Ioana Radulescu > > Cc: gre...@linuxfoundation.org; de...@driverdev.osu

[PATCH v3 06/22] firmware: arm_scmi: add initial support for performance protocol

2017-09-28 Thread Sudeep Holla
The performance protocol is intended for the performance management of group(s) of device(s) that run in the same performance domain. It includes even the CPUs. A performance domain is defined by a set of devices that always have to run at the same performance level. For example, a set of CPUs that

[PATCH v3 05/22] firmware: arm_scmi: add common infrastructure and support for base protocol

2017-09-28 Thread Sudeep Holla
The base protocol describes the properties of the implementation and provide generic error management. The base protocol provides commands to describe protocol version, discover implementation specific attributes and vendor/sub-vendor identification, list of protocols implemented and the various ag

[PATCH v3 03/22] dt-bindings: arm: scmi: add ARM MHU specific mailbox client bindings

2017-09-28 Thread Sudeep Holla
This patch adds ARM MHU specific mailbox client bindings to support SCMI. Since SCMI specification just requires doorbell mechanism from mailbox controllers, we add mailbox data to specify the doorbell bit(s). Cc: Rob Herring Cc: Mark Rutland Signed-off-by: Sudeep Holla --- .../devicetree/bind

Re: [PATCHv7 11/19] x86/mm: Make STACK_TOP_MAX dynamic

2017-09-28 Thread Kirill A. Shutemov
On Thu, Sep 28, 2017 at 10:29:55AM +0200, Ingo Molnar wrote: > > * Kirill A. Shutemov wrote: > > > For boot-time switching between paging modes, we need to be able to > > change STACK_TOP_MAX at runtime. > > > > The change is trivial and it doesn't affect kernel image size. > > > > Signed-off-

[PATCH v3 00/22] firmware: ARM System Control and Management Interface(SCMI) support

2017-09-28 Thread Sudeep Holla
Hi all, Let me begin admitting that we are introducing yet another protocol to achieve same things as many existing protocols like ARM SCPI, TI SCI, QCOM RPM, Nvidia Tegra BPMP, and so on. All I can say is that this new ARM System Control and Management Interface(SCMI) is more flexible and easily

Re: [PATCH 0/12 v3] Writeback improvements

2017-09-28 Thread John Stoffel
On Wed, Sep 27, 2017 at 02:13:47PM -0600, Jens Axboe wrote: > We've had some issues with writeback in presence of memory reclaim > at Facebook, and this patch set attempts to fix it up. The real > functional change for that issue is patch 10. The rest are cleanups, > as well as the removal of doing

Re: [PATCH v4 2/4] dmaengine: Add STM32 MDMA driver

2017-09-28 Thread Pierre Yves MORDRET
On 09/28/2017 10:13 AM, Vinod Koul wrote: > On Fri, Aug 25, 2017 at 04:31:04PM +0200, Pierre-Yves MORDRET wrote: >> +static int stm32_mdma_probe(struct platform_device *pdev) >> +{ > > [snip] > >> +dmadev = devm_kzalloc(&pdev->dev, sizeof(*dmadev) + sizeof(u32) * count, >> +

[PATCH][ipmi-next] ipmi: remove redundant initialization of bmc

2017-09-28 Thread Colin King
From: Colin Ian King The pointer bmc is being initialized and this initialized value is never being read, so this is assignment redundant and can be removed. Cleans up clang warning: warning: Value stored to 'bmc' during its initialization is never read Signed-off-by: Colin Ian King --- drive

RE: [PATCH] staging: fsl-mc/dpio: Fix incorrect comparison

2017-09-28 Thread Ruxandra Ioana Radulescu
> -Original Message- > From: gre...@linuxfoundation.org [mailto:gre...@linuxfoundation.org] > Sent: Thursday, September 28, 2017 4:18 PM > To: Ruxandra Ioana Radulescu > Cc: Dan Carpenter ; > de...@driverdev.osuosl.org; a...@arndb.de; stuyo...@gmail.com; Roy > Pledge ; linux-kernel@vger.ke

Re: [PATCHv7 12/19] x86/mm: Adjust virtual address space layout in early boot.

2017-09-28 Thread Kirill A. Shutemov
On Thu, Sep 28, 2017 at 10:31:55AM +0200, Ingo Molnar wrote: > > * Kirill A. Shutemov wrote: > > > We need to adjust virtual address space to support switching between > > paging modes. > > > > The adjustment happens in __startup_64(). > > > +#ifdef CONFIG_X86_5LEVEL > > + if (__read_cr4() &

Re: [PATCH v3 3/6] gpu: host1x: Improve debug disassembly formatting

2017-09-28 Thread Joe Perches
On Thu, 2017-09-28 at 15:50 +0300, Mikko Perttunen wrote: > The host1x driver prints out "disassembly" dumps of the command FIFO > and gather contents on submission timeouts. However, the output has > been quite difficult to read with unnecessary newlines and occasional > missing parentheses. I th

Re: [PATCH v4 for 4.14 1/3] membarrier: Provide register expedited private command

2017-09-28 Thread Mathieu Desnoyers
- On Sep 27, 2017, at 9:04 AM, Nicholas Piggin npig...@gmail.com wrote: > On Tue, 26 Sep 2017 20:43:28 + (UTC) > Mathieu Desnoyers wrote: > >> - On Sep 26, 2017, at 1:51 PM, Mathieu Desnoyers >> mathieu.desnoy...@efficios.com wrote: >> >> > Provide a new command allowing processes t

[PATCH] powerpc: Always initialize input array when calling epapr_hypercall()

2017-09-28 Thread Seth Forshee
Several callers to epapr_hypercall() pass an uninitialized stack allocated array for the input arguments, presumably because they have no input arguments. However this can produce errors like this one arch/powerpc/include/asm/epapr_hcalls.h:470:42: error: 'in' may be used uninitialized in this f

[PATCH] selftests/powerpc: Use snprintf to construct DSCR sysfs interface paths

2017-09-28 Thread Seth Forshee
Currently sprintf is used, and while paths should never exceed the size of the buffer it is theoretically possible since dirent.d_name is 256 bytes. As a result this trips -Wformat-overflow, and since the test is built with -Wall -Werror the causes the build to fail. Switch to using snprintf and sk

Re: [RFC v3 7/7] platform/x86: intel_scu_ipc: Use generic Intel IPC device calls

2017-09-28 Thread Guenter Roeck
On 09/28/2017 05:55 AM, Alexandre Belloni wrote: On 04/09/2017 at 22:37:27 -0700, sathyanarayanan.kuppusw...@linux.intel.com wrote: From: Kuppuswamy Sathyanarayanan Removed redundant IPC helper functions and refactored the driver to use generic IPC device driver APIs. This patch also cleans-

[PATCH] timer: Prepare to change timer callback argument type

2017-09-28 Thread Kees Cook
Modern kernel callback systems pass the structure associated with a given callback to the callback function. The timer callback remains one of the legacy cases where an arbitrary unsigned long argument continues to be passed as the callback argument. This has several problems: - This bloats the ti

Re: [PATCHv7 12/19] x86/mm: Adjust virtual address space layout in early boot.

2017-09-28 Thread Ingo Molnar
* Kirill A. Shutemov wrote: > On Thu, Sep 28, 2017 at 10:31:55AM +0200, Ingo Molnar wrote: > > > > * Kirill A. Shutemov wrote: > > > > > We need to adjust virtual address space to support switching between > > > paging modes. > > > > > > The adjustment happens in __startup_64(). > > > > > +

Re: DMA error when sg->offset value is greater than PAGE_SIZE in Intel IOMMU

2017-09-28 Thread Harsh Jain
On 28-09-2017 02:59, Casey Leedom wrote: > Hey Raj, > > Let us know if you need help in gathering more debugging information. For > the time being we've decided to ERRATA the use of the Intel I/O MMU with > IPsec till we Root Cause the issue. But this is still at the top of Harsh's > bug list

Re: [PATCH 0/12 v3] Writeback improvements

2017-09-28 Thread Jens Axboe
On 09/28/2017 03:19 PM, John Stoffel wrote: > On Wed, Sep 27, 2017 at 02:13:47PM -0600, Jens Axboe wrote: >> We've had some issues with writeback in presence of memory reclaim >> at Facebook, and this patch set attempts to fix it up. The real >> functional change for that issue is patch 10. The res

Re: [PATCH v2] iommu/iova: Try harder to allocate from rcache magazine

2017-09-28 Thread Joerg Roedel
On Thu, Sep 28, 2017 at 11:31:23AM +0100, Robin Murphy wrote: > When devices with different DMA masks are using the same domain, or for > PCI devices where we usually try a speculative 32-bit allocation first, > there is a fair possibility that the top PFN of the rcache stack at any > given time ma

[PATCH][drm-next] drm/radeon: make functions alloc_pasid and free_pasid static

2017-09-28 Thread Colin King
From: Colin Ian King The functions alloc_pasid and free_pasid are local to the source and do not need to be in global scope, so make them static. Cleans up sparse warnings: warning: symbol 'alloc_pasid' was not declared. Should it be static? warning: symbol 'free_pasid' was not declared. Should

Re: [PATCH] uio/uio_pci_generic: Add SR-IOV support

2017-09-28 Thread David Woodhouse
On Thu, 2017-09-28 at 08:22 -0400, Don Dutile wrote: > > After reading Alex's response, I now understand Dave's question > better and why the patch won't work in general. UIO doesn't work "in general". It requires a very *specific* userspace driver for the hardware in question, which needs to kno

[PATCH] drm/i915: Replace *_reference/unreference() or *_ref/unref with _get/put()

2017-09-28 Thread Harsha Sharma
Replace instances of drm_framebuffer_reference/unreference() with *_get/put() suffixes and drm_dev_unref with *_put() suffix because get/put is shorter and consistent with the kernel use of *_get/put suffixes . Signed-off-by: Harsha Sharma --- drivers/gpu/drm/i915/i915_pci.c|

Re: [PATCH] lockdep: Print proper scenario if cross deadlock detected at acquisition time

2017-09-28 Thread Boqun Feng
On Wed, Sep 27, 2017 at 01:31:45AM +, Byungchul Park wrote: > > Sometimes, it gives a wrong scenario. For example: > > lock target > lock source > lock parent > lock target > lock parent of parent > lock paren

Re: [PATCH for-next 2/9] RDMA/hns: Factor out the code for checking sdb status into a new function

2017-09-28 Thread Leon Romanovsky
On Thu, Sep 28, 2017 at 12:57:27PM +0800, Wei Hu (Xavier) wrote: > From: Lijun Ou > > It mainly places the lines for checking send doorbell status > into a special functions. As a result, we can directly call it in > check_qp_db_process_status function and keep consistent indenting > style. > > It

Re: [RFC PATCH 1/3] fs: define new read_iter rwf flag

2017-09-28 Thread Matthew Wilcox
On Thu, Sep 28, 2017 at 08:39:31AM -0400, Mimi Zohar wrote: > Writing extended attributes requires exclusively taking the i_rwsem > lock. To synchronize the file hash calculation and writing the file > hash as security.ima xattr, IMA-appraisal takes the i_rwsem lock > exclusively before calculatin

Re: [RESEND] proc, coredump: add CoreDumping flag to /proc/pid/status

2017-09-28 Thread Roman Gushchin
On Wed, Sep 27, 2017 at 04:31:06PM -0700, Andrew Morton wrote: > On Wed, 20 Sep 2017 16:06:34 -0700 Roman Gushchin wrote: > > > Right now there is no convenient way to check if a process is being > > coredumped at the moment. > > > > It might be necessary to recognize such state to prevent killi

Re: [PATCH v4 1/2] x86/unwind: add ORC unwinder

2017-09-28 Thread Josh Poimboeuf
On Thu, Sep 28, 2017 at 08:03:26AM +0200, Juergen Gross wrote: > On 27/09/17 23:08, Josh Poimboeuf wrote: > > On Tue, Aug 08, 2017 at 01:09:08PM -0700, Andy Lutomirski wrote: > >> On Tue, Aug 8, 2017 at 12:13 PM, Josh Poimboeuf > >> wrote: > >>> On Tue, Aug 08, 2017 at 12:03:51PM -0700, Linus Tor

Re: [RFT PATCH v2] gpiolib: allow gpio irqchip to map irqs dynamically

2017-09-28 Thread Grygorii Strashko
On 09/28/2017 03:33 AM, Mika Westerberg wrote: > On Fri, Jul 21, 2017 at 11:49:00AM -0500, Grygorii Strashko wrote: >> Now IRQ mappings are always created for all (allowed) GPIOs in gpiochip in >> gpiochip_irqchip_add_key() which goes against the idea of SPARSE_IRQ and, >> as result, leads to: >>

Re: [PATCH v1 4/5] dmaengine: Add driver for NVIDIA Tegra AHB DMA controller

2017-09-28 Thread Dmitry Osipenko
On 28.09.2017 12:29, Vinod Koul wrote: >> +default: >> +return -EINVAL; >> +} >> + >> +ahb_seq = burst << TEGRA_AHBDMA_CHANNEL_AHB_BURST_SHIFT; >> +ahb_seq |= TEGRA_AHBDMA_CHANNEL_ADDR_WRAP; >> +ahb_seq |= TEGRA_AHBDMA_CHANNEL_INTR_ENB; >> + >> +writel_relaxed(a

[PATCH v5 1/7] genirq: export irq_get_percpu_devid_partition to modules

2017-09-28 Thread Will Deacon
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. Acked-by: Marc Zyngier Acked-by: Thomas Gleixner Signed-

[PATCH v5 0/7] Add support for the ARMv8.2 Statistical Profiling Extension

2017-09-28 Thread Will Deacon
Hi all, This is the seventh posting of the patches previously posted here: rfcv1: http://lists.infradead.org/pipermail/linux-arm-kernel/2017-January/476450.html rfcv2: http://lists.infradead.org/pipermail/linux-arm-kernel/2017-January/479387.html v1: http://lists.infradead.org/piperma

[PATCH v5 3/7] perf/core: Add PERF_AUX_FLAG_COLLISION to report colliding samples

2017-09-28 Thread Will Deacon
The ARM SPE architecture permits an implementation to ignore a sample if the sample is due to be taken whilst another sample is already being produced. In this case, it is desirable to report the collision to userspace, as they may want to lower the sample period. This patch adds a PERF_AUX_FLAG_C

[PATCH v5 2/7] perf/core: Export AUX buffer helpers to modules

2017-09-28 Thread Will Deacon
Perf PMU drivers using AUX buffers cannot be built as modules unless the AUX helpers are exported. This patch exports perf_aux_output_{begin,end,skip} and perf_get_aux to modules. Cc: Peter Zijlstra Signed-off-by: Will Deacon --- kernel/events/ring_buffer.c | 4 1 file changed, 4 insertio

[PATCH v2] staging: fsl-mc/dpio: Fix incorrect comparison

2017-09-28 Thread Ioana Radulescu
For some dpio functions, a cpu id parameter value of -1 is valid and means "any". But when trying to validate this param value against an upper limit, in this case num_possible_cpus(), we risk obtaining the wrong result due to an implicit cast. Avoid an incorrect check result by explicitly compari

[PATCH v5 6/7] drivers/perf: Add support for ARMv8.2 Statistical Profiling Extension

2017-09-28 Thread Will Deacon
The ARMv8.2 architecture introduces the optional Statistical Profiling Extension (SPE). SPE can be used to profile a population of operations in the CPU pipeline after instruction decode. These are either architected instructions (i.e. a dynamic instruction trace) or CPU-specific uops and the choi

Re: [PATCH] drm/i915: Replace *_reference/unreference() or *_ref/unref with _get/put()

2017-09-28 Thread Daniel Vetter
On Thu, Sep 28, 2017 at 07:14:42PM +0530, Harsha Sharma wrote: > Replace instances of drm_framebuffer_reference/unreference() with > *_get/put() suffixes and drm_dev_unref with *_put() suffix > because get/put is shorter and consistent with the > kernel use of *_get/put suffixes . Since this is do

[PATCH v5 5/7] arm64: head: Init PMSCR_EL2.{PA,PCT} when entered at EL2 without VHE

2017-09-28 Thread Will Deacon
When booting at EL2, ensure that we permit the EL1 host to sample physical addresses and physical counter values using SPE. Signed-off-by: Will Deacon --- arch/arm64/kernel/head.S | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/arch/arm64/kernel/head.S b/ar

[PATCH v5 4/7] arm64: sysreg: Move SPE registers and PSB into common header files

2017-09-28 Thread Will Deacon
SPE is part of the v8.2 architecture, so move its system register and field definitions into sysreg.h and the new PSB barrier into barrier.h Finally, move KVM over to using the generic definitions so that it doesn't have to open-code its own versions. Signed-off-by: Will Deacon --- arch/arm64/i

Re: [PATCH v2 RESEND 2/2] x86/mm/KASLR: Do not adapt the size of the direct mapping section for SGI UV system

2017-09-28 Thread Mike Travis
On 9/28/2017 2:01 AM, Ingo Molnar wrote: * Baoquan He wrote: Hi Ingo, On 09/28/17 at 09:56am, Ingo Molnar wrote: diff --git a/arch/x86/mm/kaslr.c b/arch/x86/mm/kaslr.c index af599167fe3c..4d68c08df82d 100644 --- a/arch/x86/mm/kaslr.c +++ b/arch/x86/mm/kaslr.c @@ -27,6 +27,7 @@ #include

[PATCH v5 7/7] dt-bindings: Document devicetree binding for ARM SPE

2017-09-28 Thread Will Deacon
This patch documents the devicetree binding in use for ARM SPE. Cc: Mark Rutland Cc: Rob Herring Signed-off-by: Will Deacon --- Documentation/devicetree/bindings/arm/spe-pmu.txt | 20 1 file changed, 20 insertions(+) create mode 100644 Documentation/devicetree/bindings/ar

[PATCH] iommu/vt-d: Fix scatterlist offset handling

2017-09-28 Thread Robin Murphy
The intel-iommu DMA ops fail to correctly handle scatterlists where sg->offset is greater than PAGE_SIZE - the IOVA allocation is computed appropriately based on the page-aligned portion of the offset, but the mapping is set up relative to sg->page, which means it fails to actually cover the whole

Re: [PATCH] scripts/decodecode: Fix decoding for AArch64 (arm64) instructions

2017-09-28 Thread Will Deacon
On Thu, Sep 28, 2017 at 01:42:31PM +0100, Dave Martin wrote: > On Thu, Sep 28, 2017 at 11:55:47AM +0100, Will Deacon wrote: > > There are a couple of problems with the decodecode script and arm64: > > > > 1. AArch64 objdump refuses to disassemble .4byte directives as instructions, > >insisting

Re: [PATCH 1/3] clk: sunxi-ng: add mux and pll notifiers for A64 CPU clock

2017-09-28 Thread Maxime Ripard
On Thu, Sep 28, 2017 at 10:42:39AM +, icen...@aosc.io wrote: > > On Sat, Sep 23, 2017 at 12:15:29AM +, Icenowy Zheng wrote: > > > The A64 PLL_CPU clock has the same instability if some factor changed > > > without the PLL gated like other SoCs with sun6i-style CCU, e.g. A33, > > > H3. > > >

Re: [PATCH v2 00/16] gpio: Tight IRQ chip integration and banked infrastructure

2017-09-28 Thread Grygorii Strashko
On 09/28/2017 04:56 AM, Thierry Reding wrote: > From: Thierry Reding > > Hi Linus, > > here's the latest series of patches that implement the tighter IRQ chip > integration as well as the banked GPIO infrastructure that we had > discussed a couple of weeks/months back. > > The first couple of

Re: [PATCH v2 01/16] gpio: Implement tighter IRQ chip integration

2017-09-28 Thread Grygorii Strashko
On 09/28/2017 04:56 AM, Thierry Reding wrote: > From: Thierry Reding > > Currently GPIO drivers are required to a GPIO chip and the corresponding > IRQ chip separately, which can result in a lot of boilerplate. Introduce > a new struct gpio_irq_chip, embedded in a struct gpio_chip, that drivers

Re: [PATCH 1/3] clk: sunxi-ng: add mux and pll notifiers for A64 CPU clock

2017-09-28 Thread icenowy
在 2017-09-28 22:20,Maxime Ripard 写道: On Thu, Sep 28, 2017 at 10:42:39AM +, icen...@aosc.io wrote: > On Sat, Sep 23, 2017 at 12:15:29AM +, Icenowy Zheng wrote: > > The A64 PLL_CPU clock has the same instability if some factor changed > > without the PLL gated like other SoCs with sun6i-st

Re: [PATCHv7 12/19] x86/mm: Adjust virtual address space layout in early boot.

2017-09-28 Thread Kirill A. Shutemov
On Thu, Sep 28, 2017 at 03:38:38PM +0200, Ingo Molnar wrote: > > * Kirill A. Shutemov wrote: > > > On Thu, Sep 28, 2017 at 10:31:55AM +0200, Ingo Molnar wrote: > > > > > > * Kirill A. Shutemov wrote: > > > > > > > We need to adjust virtual address space to support switching between > > > > pa

Re: [PATCH] f2fs: order free nid allocator

2017-09-28 Thread Chao Yu
Hi all, It may trigger hungtask in ENOSPC case with fsstress, please ignore this patch before an update. Thanks, On 2017/9/26 19:22, Chao Yu wrote: > Previously, there is no restrict order among free nid allocators, if > there are no free nids being cached in memory, previous allocator will > tr

Re: [PATCH v4 4/9] em28xx: fix em28xx_dvb_init for KASAN

2017-09-28 Thread Arnd Bergmann
On Thu, Sep 28, 2017 at 6:09 AM, Andrey Ryabinin wrote: > On 09/27/2017 04:26 PM, Arnd Bergmann wrote: >> On Tue, Sep 26, 2017 at 9:49 AM, Andrey Ryabinin >> wrote: >> --- a/include/linux/string.h >> +++ b/include/linux/string.h >> @@ -227,7 +227,7 @@ static inline const char *kbasename(const ch

Re: [PATCH 1/3] clk: sunxi-ng: add mux and pll notifiers for A64 CPU clock

2017-09-28 Thread Maxime Ripard
On Thu, Sep 28, 2017 at 02:24:18PM +, icen...@aosc.io wrote: > 在 2017-09-28 22:20,Maxime Ripard 写道: > > On Thu, Sep 28, 2017 at 10:42:39AM +, icen...@aosc.io wrote: > > > > On Sat, Sep 23, 2017 at 12:15:29AM +, Icenowy Zheng wrote: > > > > > The A64 PLL_CPU clock has the same instabilit

Re: [RFT PATCH v2] gpiolib: allow gpio irqchip to map irqs dynamically

2017-09-28 Thread Mika Westerberg
On Thu, Sep 28, 2017 at 09:02:12AM -0500, Grygorii Strashko wrote: > > > On 09/28/2017 03:33 AM, Mika Westerberg wrote: > > On Fri, Jul 21, 2017 at 11:49:00AM -0500, Grygorii Strashko wrote: > >> Now IRQ mappings are always created for all (allowed) GPIOs in gpiochip in > >> gpiochip_irqchip_add_

[PATCH v3] PCIe AER: report uncorrectable errors only to the functions that logged the errors

2017-09-28 Thread Gabriele Paoloni
Currently if an uncorrectable error is reported by an EP the AER driver walks over all the devices connected to the upstream port bus and in turns call the report_error_detected() callback. If any of the devices connected to the bus does not implement dev->driver->err_handler->error_detected() do_r

[PATCH] ARC: [plat-hsdk]: Temporary fix to set CPU frequency to 1GHz

2017-09-28 Thread Eugeniy Paltsev
Add temporary fix to HSDK platform code to setup CPU frequency to 1GHz on early boot. We can remove this fix when smart hsdk pll driver will be introduced, see discussion: https://www.mail-archive.com/linux-snps-arc@lists.infradead.org/msg02689.html Signed-off-by: Eugeniy Paltsev --- arch/arc/pl

Re: [RFC PATCH 1/3] fs: define new read_iter rwf flag

2017-09-28 Thread Mimi Zohar
On Thu, 2017-09-28 at 06:54 -0700, Matthew Wilcox wrote: > On Thu, Sep 28, 2017 at 08:39:31AM -0400, Mimi Zohar wrote: > > Writing extended attributes requires exclusively taking the i_rwsem > > lock. To synchronize the file hash calculation and writing the file > > hash as security.ima xattr, IMA

Re: [PATCH v1 4/5] dmaengine: Add driver for NVIDIA Tegra AHB DMA controller

2017-09-28 Thread Dmitry Osipenko
On 28.09.2017 17:06, Dmitry Osipenko wrote: > On 28.09.2017 12:29, Vinod Koul wrote: >>> + default: >>> + return -EINVAL; >>> + } >>> + >>> + ahb_seq = burst << TEGRA_AHBDMA_CHANNEL_AHB_BURST_SHIFT; >>> + ahb_seq |= TEGRA_AHBDMA_CHANNEL_ADDR_WRAP; >>> + ahb_seq |= TEGRA_AHBDMA_

[tip:timers/urgent] timer: Prepare to change timer callback argument type

2017-09-28 Thread tip-bot for Kees Cook
Commit-ID: 686fef928bba6be13cabe639f154af7d72b63120 Gitweb: https://git.kernel.org/tip/686fef928bba6be13cabe639f154af7d72b63120 Author: Kees Cook AuthorDate: Thu, 28 Sep 2017 06:38:17 -0700 Committer: Thomas Gleixner CommitDate: Thu, 28 Sep 2017 16:30:36 +0200 timer: Prepare to change

Re: [PATCH] scripts/decodecode: Fix decoding for AArch64 (arm64) instructions

2017-09-28 Thread Dave Martin
On Thu, Sep 28, 2017 at 03:14:47PM +0100, Will Deacon wrote: > On Thu, Sep 28, 2017 at 01:42:31PM +0100, Dave Martin wrote: > > On Thu, Sep 28, 2017 at 11:55:47AM +0100, Will Deacon wrote: > > > There are a couple of problems with the decodecode script and arm64: > > > > > > 1. AArch64 objdump ref

[PATCH] mtd: nand: pxa3xx_nand: Update Kconfig information

2017-09-28 Thread Gregory CLEMENT
More and more SoCs use the pxa3xx_nand driver for their controller but the list of them was not updated. This patch add the last SoCs using the driver. Signed-off-by: Gregory CLEMENT --- drivers/mtd/nand/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/na

Re: EBPF-triggered WARNING at mm/percpu.c:1361 in v4-14-rc2

2017-09-28 Thread Daniel Borkmann
On 09/28/2017 01:27 PM, Mark Rutland wrote: Hi, While fuzzing v4.14-rc2 with Syzkaller, I found it was possible to trigger the warning at mm/percpu.c:1361, on both arm64 and x86_64. This appears to require increasing RLIMIT_MEMLOCK, so to the best of my knowledge this cannot be triggered by an u

Re: [PATCH 2/2] percpu: fix iteration to prevent skipping over block

2017-09-28 Thread Tejun Heo
On Wed, Sep 27, 2017 at 04:35:00PM -0500, Dennis Zhou wrote: > The iterator functions pcpu_next_md_free_region and > pcpu_next_fit_region use the block offset to determine if they have > checked the area in the prior iteration. However, this causes an issue > when the block offset is greater than s

[PATCH] lightnvm: pblk: fix changing GC group list for a line

2017-09-28 Thread Rakesh Pandit
pblk_line_gc_list seems to had a bug since the introduction of pblk in getting GC list for a line. In b20ba1bc7 while redesigning GC algorithm it was not fixed correctly. The problem is that even if valid sector count (vsc) is less that mid_thrs (threshold for GC mid list) it would always satisfy

Re: EBPF-triggered WARNING at mm/percpu.c:1361 in v4-14-rc2

2017-09-28 Thread Mark Rutland
On Thu, Sep 28, 2017 at 04:37:46PM +0200, Daniel Borkmann wrote: > On 09/28/2017 01:27 PM, Mark Rutland wrote: > >Hi, > > > >While fuzzing v4.14-rc2 with Syzkaller, I found it was possible to trigger > >the > >warning at mm/percpu.c:1361, on both arm64 and x86_64. This appears to > >require > >in

Re: EBPF-triggered WARNING at mm/percpu.c:1361 in v4-14-rc2

2017-09-28 Thread Tejun Heo
Hello, On Thu, Sep 28, 2017 at 12:27:28PM +0100, Mark Rutland wrote: > diff --git a/mm/percpu.c b/mm/percpu.c > index 59d44d6..f731c45 100644 > --- a/mm/percpu.c > +++ b/mm/percpu.c > @@ -1355,8 +1355,13 @@ static void __percpu *pcpu_alloc(size_t size, size_t > align, bool reserved, > bit

<    1   2   3   4   5   6   7   8   >