Re: [PATCH V2 3/4] clk: add managed version of clk_bulk_get_all

2018-03-22 Thread kbuild test robot
Hi Dong, Thank you for the patch! Yet something to improve: [auto build test ERROR on clk/clk-next] [also build test ERROR on v4.16-rc6 next-20180322] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

Re: [v2] staging:fsl-mc: Move DPIO from staging to drivers/soc/fsl

2018-03-22 Thread kbuild test robot
Hi Roy, I love your patch! Yet something to improve: [auto build test ERROR on staging/staging-testing] [also build test ERROR on next-20180322] [cannot apply to linus/master v4.16-rc6] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url

Re: [REGRESSION v4.16-rc6] [PATCH] mqueue: forbid unprivileged user access to internal mount

2018-03-22 Thread Eric W. Biederman
Aleksa Sarai writes: > Hi all, > > Felix reported weird behaviour on 4.16.0-rc6 with regards to mqueue[1], > which was introduced by 36735a6a2b5e ("mqueue: switch to on-demand > creation of internal mount"). > > Basically, the reproducer boils down to being able to mount mqueue if > you create a

[PATCH V3] Input: pm8941-pwrkey: add resin key capabilities

2018-03-22 Thread Tirupathi Reddy
Add resin key support to handle different types of key events defined in different platforms. Signed-off-by: Tirupathi Reddy --- .../bindings/input/qcom,pm8941-pwrkey.txt | 32 + drivers/input/misc/pm8941-pwrkey.c | 81 ++ 2 files changed, 113

[PATCH v3 5/6] dt-bindings: phy-qcom-usb2: Update bindings for sdm845

2018-03-22 Thread Manu Gautam
Update compatible strings for USB2 PHYs on sdm845. There are two QUSB2 PHYs present on sdm845. Few PHY registers programming is different for these PHYs related to electrical parameters, otherwise both are same. Signed-off-by: Manu Gautam --- Documentation/devicetree/bindings/phy/qcom-qusb2-phy.

[PATCH v3 4/6] phy: qcom-qmp: Add QMP V3 USB3 UNI PHY support for sdm845

2018-03-22 Thread Manu Gautam
QMP V3 UNI PHY is a single lane USB3 PHY without support for DisplayPort (DP). Main difference from DP combo QMPv3 PHY is that UNI PHY doesn't have dual RX/TX lanes and no separate DP_COM block for configuration related to type-c or DP. While at it, fix has_pwrdn_delay attribute for USB-DP PHY conf

[PATCH v3 6/6] phy: qcom-qusb2: Add QUSB2 PHYs support for sdm845

2018-03-22 Thread Manu Gautam
There are two QUSB2 PHYs present on sdm845. Update PHY registers programming for both the PHYs related to electrical parameters to improve eye diagram. Signed-off-by: Manu Gautam --- drivers/phy/qualcomm/phy-qcom-qusb2.c | 39 +++ 1 file changed, 39 insertions(+)

[PATCH v3 2/6] phy: qcom-qusb2: Fix crash if nvmem cell not specified

2018-03-22 Thread Manu Gautam
Driver currently crashes due to NULL pointer deference while updating PHY tune register if nvmem cell is NULL. Since, fused value for Tune1/2 register is optional, we'd rather bail out. Fixes: ca04d9d3e1b1 ("phy: qcom-qusb2: New driver for QUSB2 PHY on Qcom chips") Reviewed-by: Vivek Gautam Cc: s

[PATCH v3 3/6] dt-bindings: phy-qcom-qmp: Update bindings for sdm845

2018-03-22 Thread Manu Gautam
Update compatible strings for USB3 PHYs on SDM845. One is QMPv3 DisplayPort-USB combo PHY and other one is USB UNI PHY which is single lane USB3 PHY without DP capability. Reviewed-by: Rob Herring Signed-off-by: Manu Gautam --- Documentation/devicetree/bindings/phy/qcom-qmp-phy.txt | 4 +++- 1

[PATCH v3 0/6] phy: qcom: Updates for USB PHYs on SDM845

2018-03-22 Thread Manu Gautam
SDM845 has two USB instances each with QUSB2 and QMP PHYs. One of the QMP PHY is USB-DP (DisplayPort) combo PHY where as other one is single lane UNI-PHY (without DP support). Changes are related to PHY configuration for electrical parameters tuning to improve eye-diagram and some fixes. Changes s

[PATCH v3 1/6] phy: qcom-qmp: Enable pipe_clk before checking USB3 PHY_STATUS

2018-03-22 Thread Manu Gautam
QMP PHY for USB mode requires pipe_clk for calibration and PLL lock to take place. This clock is output from PHY to GCC clock_ctl and then fed back to QMP PHY and is available from PHY only after PHY is reset and initialized, hence it can't be enabled too early in initialization sequence. Signed-o

Re: linux-next: manual merge of the tip tree with the pm tree

2018-03-22 Thread Ingo Molnar
* Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the tip tree got a conflict in: > > kernel/sched/cpufreq_schedutil.c > > between commit: > > 0953feed3400 ("cpufreq: schedutil: rate limits for SCHED_DEADLINE") Rafael, could you please send that to the scheduler tree?

[REGRESSION v4.16-rc6] [PATCH] mqueue: forbid unprivileged user access to internal mount

2018-03-22 Thread Aleksa Sarai
Hi all, Felix reported weird behaviour on 4.16.0-rc6 with regards to mqueue[1], which was introduced by 36735a6a2b5e ("mqueue: switch to on-demand creation of internal mount"). Basically, the reproducer boils down to being able to mount mqueue if you create a new user namespace, even if you don't

linux-next: manual merge of the akpm-current tree with the tip tree

2018-03-22 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in: fs/ocfs2/filecheck.c between commit: e24e960c7fe2 ("sched/wait, fs/ocfs2: Convert wait_on_atomic_t() usage to the new wait_var_event() API") from the tip tree and commit: 5a5b76d17dc4 ("ocfs2: add kobject f

Re: [PATCH 2/2] powerpc/time: Only set ARCH_HAS_SCALED_CPUTIME on PPC64

2018-03-22 Thread kbuild test robot
Hi Christophe, Thank you for the patch! Yet something to improve: [auto build test ERROR on powerpc/next] [also build test ERROR on v4.16-rc6 next-20180322] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci

Re: [PATCH V2 4/4] video: simplefb: switch to use clk_bulk API to simplify clock operations

2018-03-22 Thread kbuild test robot
Hi Dong, Thank you for the patch! Yet something to improve: [auto build test ERROR on clk/clk-next] [also build test ERROR on v4.16-rc6 next-20180322] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

Re: [PATCH] platform/x86: fujitsu-laptop: Simplify soft key handling

2018-03-22 Thread Jonathan Woithe
On Thu, Mar 22, 2018 at 06:27:16PM -0700, Darren Hart (VMware) wrote: > The hardcoded BIT(X) used in the soft key handling can be confusing and > prone to errors. > > Instead, use the status FLAG_* defines for the sparse keymap index. > Rather than check for each known bit, use a bitmask to filter

Re: [v2] staging:fsl-mc: Move DPIO from staging to drivers/soc/fsl

2018-03-22 Thread kbuild test robot
Hi Roy, I love your patch! Perhaps something to improve: [auto build test WARNING on staging/staging-testing] [also build test WARNING on next-20180322] [cannot apply to linus/master v4.16-rc6] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system

[PATCH] reset: uniphier: add ethernet reset control support for PXs3

2018-03-22 Thread Kunihiko Hayashi
Add reset lines for ethernet controller on PXs3 SoC. Signed-off-by: Kunihiko Hayashi --- drivers/reset/reset-uniphier.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c index e8bb023..fd3afbd 100644 --- a/drivers/reset/reset-un

[PATCH] clk: uniphier: add ethernet clock control support for PXs3

2018-03-22 Thread Kunihiko Hayashi
Add clock control for ethernet controller on PXs3 SoC. Signed-off-by: Kunihiko Hayashi --- drivers/clk/uniphier/clk-uniphier-sys.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/uniphier/clk-uniphier-sys.c b/drivers/clk/uniphier/clk-uniphier-sys.c index d244e72..faadd9b 10064

[PATCH 2/7] staging: ks7010: Fix lines over 80 characters due to comments.

2018-03-22 Thread Quytelda Kahja
There are several instances where comments are spaced so far to the right they cause the line to go over the 80 character limit. Move these comments to above the statements they describe instead. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.c | 19 --- 1 fi

[PATCH 4/7] staging: ks7010: Remove duplicate #define's

2018-03-22 Thread Quytelda Kahja
The AUTH_TYPE_OPEN_SYSTEM and AUTH_TYPE_SHARED_KEY #define lines are duplicated in ks_hostif.h. Replace them both with one set of Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.h | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/staging/ks701

[PATCH 5/7] staging: ks7010: Replace memcmp() operation with ether_addr_equal().

2018-03-22 Thread Quytelda Kahja
Instead of using memcmp() to directly compare BSSIDs, use ether_addr_equal() from 'linux/etherdevice.h'. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/sta

[PATCH 1/7] staging: ks7010: Fix line over 80 characters.

2018-03-22 Thread Quytelda Kahja
There is no reason for comment describing the BSSID check for loop to be spaced so far to the right. Move it above the for loop. Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/ks7010/ks_h

[PATCH 3/7] staging: ks7010: Factor out common members in request structs.

2018-03-22 Thread Quytelda Kahja
Most of the request structures defined in ks_hostif.h have common members: * __le16 phy_type; * __le16 cts_mode; * __le16 scan_type; * __le16 capability; * struct rate_set16_t rate_set; Factor out these members into a common substructure of type 'hostif_request_t'. This allows a large portion of

[PATCH 7/7] staging: ks7010: Remove hostif_infrastructure_set2_request_t.

2018-03-22 Thread Quytelda Kahja
The handling of hostif_infrastructure_set_request_t and hostif_infrastructure_set2_request_t is identical, with the exception of the event type value. Merge the two structs so they can be handled by a single function ('hostif_infrastructure_set_request'). Signed-off-by: Quytelda Kahja --- drive

[PATCH 6/7] staging: ks7010: Factor out repeated code for reading IEs.

2018-03-22 Thread Quytelda Kahja
Some of the code for reading IEs is replicated multiple times in the switch statement for get_ap_information(). Factor that code out into read_ie(). Signed-off-by: Quytelda Kahja --- drivers/staging/ks7010/ks_hostif.c | 31 +++ 1 file changed, 15 insertions(+), 16 de

Re: [PATCH v4 04/24] fpga: add device feature list support

2018-03-22 Thread Wu Hao
On Thu, Mar 22, 2018 at 04:31:05PM -0500, Alan Tull wrote: > On Tue, Feb 13, 2018 at 3:24 AM, Wu Hao wrote: > > Hi Hao, Hi Alan Thanks a lot for the code review and the comments. : ) > > > Device Feature List (DFL) defines a feature list structure that creates > > a link list of feature heade

Re: [PATCH v2 1/6] phy: qcom-qmp: Enable pipe_clk before checking USB3 PHY_STATUS

2018-03-22 Thread Manu Gautam
Hi Stephen, On 3/23/2018 12:13 AM, Stephen Boyd wrote: > Quoting Manu Gautam (2018-03-22 01:50:41) >> QMP PHY for USB mode requires pipe_clk for calibration and PLL lock >> to take place. This lock is output from PHY to GCC clock_ctl and then > s/lock/clock/ Yes, will fix typo. >> fed back to QMP

Re: linux-next: manual merge of the net-next tree with the rdma-fixes tree

2018-03-22 Thread Jason Gunthorpe
On Fri, Mar 23, 2018 at 12:19:00AM -0400, David Miller wrote: > From: Doug Ledford > Date: Thu, 15 Mar 2018 21:18:02 -0400 > > > Here's the commit (from the rdma git repo) with the proper merge fix > > (although it also has other minor merge stuff that needs to be ignored): > > > > 2d873449a202

Re: [PATCH] dlm: prompt the user SCTP is experimental

2018-03-22 Thread Gang He
Hello David, Do you agree to add this prompt to the user? Since sometimes customers attempted to setup SCTP protocol with two rings, but they could not get the expected result, then it maybe bring some concerns to the customer for DLM qualities. Thanks Gang >>> > As you know, DLM module ca

Re: linux-next: manual merge of the net-next tree with the rdma-fixes tree

2018-03-22 Thread David Miller
From: Doug Ledford Date: Thu, 15 Mar 2018 21:18:02 -0400 > Here's the commit (from the rdma git repo) with the proper merge fix > (although it also has other minor merge stuff that needs to be ignored): > > 2d873449a202 (Merge branch 'k.o/wip/dl-for-rc' into k.o/wip/dl-for-next) Really? [davem

Re: [PATCH v4 4/6] infiniband: cxgb4: Eliminate duplicate barriers on weakly-ordered archs

2018-03-22 Thread kbuild test robot
Hi Sinan, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.16-rc6 next-20180322] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

[PATCH v2 2/2] media: Add a driver for the ov7251 camera sensor

2018-03-22 Thread Todor Tomov
The ov7251 sensor is a 1/7.5-Inch B&W VGA (640x480) CMOS Digital Image Sensor from Omnivision. The driver supports the following modes: - 640x480 30fps - 640x480 60fps - 640x480 90fps Output format is MIPI RAW 10. The driver supports configuration via user controls for: - exposure and gain; - ho

[PATCH v2 1/2] dt-bindings: media: Binding document for OV7251 camera sensor

2018-03-22 Thread Todor Tomov
Add the document for ov7251 device tree binding. CC: Rob Herring CC: Mark Rutland CC: devicet...@vger.kernel.org Signed-off-by: Todor Tomov Reviewed-by: Rob Herring --- .../devicetree/bindings/media/i2c/ov7251.txt | 51 ++ 1 file changed, 51 insertions(+) create mod

[PATCH v2 0/2] Add support for ov7251 camera sensor

2018-03-22 Thread Todor Tomov
The ov7251 sensor is a 1/7.5-Inch B&W VGA (640x480) CMOS Digital Image Sensor from Omnivision. -- Version 2: - changed ov7251 node's name in DT binding example; - SPDX licence identifier; - better names for register value def

[PATCH v2 0/2] Add support for ov7251 camera sensor

2018-03-22 Thread Todor Tomov
The ov7251 sensor is a 1/7.5-Inch B&W VGA (640x480) CMOS Digital Image Sensor from Omnivision. -- Version 2: - changed ov7251 node's name in DT binding example; - SPDX licence identifier; - better names for register value def

Re: [PATCH V3] ZBOOT: fix stack protector in compressed boot phase

2018-03-22 Thread Jiaxun Yang
在 2018-03-22四的 22:21 +,James Hogan写道: > On Fri, Mar 16, 2018 at 03:55:16PM +0800, Huacai Chen wrote: > > diff --git a/arch/mips/boot/compressed/decompress.c > > b/arch/mips/boot/compressed/decompress.c > > index fdf99e9..5ba431c 100644 > > --- a/arch/mips/boot/compressed/decompress.c > > +++ b/

[PATCH] [media] vcodec: fix error return value from mtk_jpeg_clk_init()

2018-03-22 Thread Ryder Lee
The error return value should be fixed as it may return EPROBE_DEFER. Cc: Rick Chang Cc: Bin Liu Signed-off-by: Ryder Lee --- drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c

Re: [PATCH v2 0/4] i2c: pca-platform: additional improvements

2018-03-22 Thread Chris Packham
On 07/12/17 23:42, Wolfram Sang wrote: > On Sun, Oct 29, 2017 at 06:29:18PM +0100, Wolfram Sang wrote: >> On Wed, Jul 05, 2017 at 10:13:54PM +1200, Chris Packham wrote: >>> This series addresses some of the points identified by Andy. The series is >>> based on top of i2c/for-next. 2 of the patches

Re: [PATCH 0/8] Move most GPIO documentation to driver-api/gpio/ and ReST

2018-03-22 Thread Linus Walleij
On Fri, Mar 9, 2018 at 12:40 AM, Jonathan Neuschäfer wrote: > Jonathan Neuschäfer (8): > MAINTAINERS: GPIO: Add Documentation/driver-api/gpio/ > Documentation: driver-api: Move gpio.rst to gpio/index.rst > Documentation: gpio: Move introduction to driver-api > Documentation: gpio: Move dr

Re: [usb-next, v3 PATCH] usb: xhci: skip phys initialization of shared hcd

2018-03-22 Thread Chunfeng Yun
On Thu, 2018-03-22 at 13:53 +0100, Greg Kroah-Hartman wrote: > On Thu, Mar 22, 2018 at 08:12:50PM +0800, Chunfeng Yun wrote: > > The phys has already been initialized when add primary hcd, > > including usb2 phys and usb3 phys also if exist, so needn't > > re-parse "phys" property again. > > Wait,

RE: [PATCH] qed: Use true and false for boolean values

2018-03-22 Thread Kalluru, Sudarsana
-Original Message- From: Gustavo A. R. Silva [mailto:gust...@embeddedor.com] Sent: 23 March 2018 01:39 To: Elior, Ariel ; Dept-Eng Everest Linux L2 Cc: net...@vger.kernel.org; linux-kernel@vger.kernel.org; Gustavo A. R. Silva Subject: [PATCH] qed: Use true and false for boolean values

RE: [PATCH v2] cpuidle: poll_state: Add time limit to poll_idle()

2018-03-22 Thread Doug Smythies
On 2018.03.22 12:12 Doug Smythies wrote: >On 2018.03.22 09:32 Rik van Riel wrote: >> On Wed, 2018-03-14 at 13:04 +0100, Peter Zijlstra wrote: >> >>> On x86 we don't have to use that time_check_counter thing, >>> sched_clock() >>> is really cheap, not sure if it makes sense on other platforms. >> >

[PATCH v4 02/22] iommu/vt-d: move device_domain_info to header

2018-03-22 Thread Jacob Pan
Allow both intel-iommu.c and dmar.c to access device_domain_info. Prepare for additional per device arch data used in TLB flush function Signed-off-by: Jacob Pan --- drivers/iommu/intel-iommu.c | 18 -- include/linux/intel-iommu.h | 19 +++ 2 files changed, 19 ins

[PATCH v4 00/22] IOMMU and VT-d driver support for Shared Virtual Address (SVA)

2018-03-22 Thread Jacob Pan
Hi All, Shared virtual address (SVA), a.k.a, Shared virtual memory (SVM) on Intel platforms allow address space sharing between device DMA and applications. SVA can reduce programming complexity and enhance security. To enable SVA in the guest, i.e. shared guest application address space and physi

[PATCH v4 04/22] iommu/vt-d: add bind_pasid_table function

2018-03-22 Thread Jacob Pan
Add Intel VT-d ops to the generic iommu_bind_pasid_table API functions. The primary use case is for direct assignment of SVM capable device. Originated from emulated IOMMU in the guest, the request goes through many layers (e.g. VFIO). Upon calling host IOMMU driver, caller passes guest PASID tabl

[PATCH v4 07/22] iommu/vt-d: fix dev iotlb pfsid use

2018-03-22 Thread Jacob Pan
PFSID should be used in the invalidation descriptor for flushing device IOTLBs on SRIOV VFs. Signed-off-by: Jacob Pan --- drivers/iommu/dmar.c| 6 +++--- drivers/iommu/intel-iommu.c | 16 +++- include/linux/intel-iommu.h | 5 ++--- 3 files changed, 20 insertions(+), 7 delet

[PATCH v4 09/22] iommu/vt-d: add svm/sva invalidate function

2018-03-22 Thread Jacob Pan
When Shared Virtual Address (SVA) is enabled for a guest OS via vIOMMU, we need to provide invalidation support at IOMMU API and driver level. This patch adds Intel VT-d specific function to implement iommu passdown invalidate API for shared virtual address. The use case is for supporting caching

[PATCH v4 03/22] iommu/vt-d: add a flag for pasid table bound status

2018-03-22 Thread Jacob Pan
Adding a flag in device domain into to track whether a guest or user PASID table is bound to a device. Signed-off-by: Jacob Pan --- include/linux/intel-iommu.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/intel-iommu.h b/include/linux/intel-iommu.h index 13b44bb..e4a16dc 100

[PATCH v4 01/22] iommu: introduce bind_pasid_table API function

2018-03-22 Thread Jacob Pan
Virtual IOMMU was proposed to support Shared Virtual Memory (SVM) use in the guest: https://lists.gnu.org/archive/html/qemu-devel/2016-11/msg05311.html As part of the proposed architecture, when an SVM capable PCI device is assigned to a guest, nested mode is turned on. Guest owns the first level

[PATCH v4 08/22] iommu/vt-d: support flushing more translation cache types

2018-03-22 Thread Jacob Pan
When Shared Virtual Memory is exposed to a guest via vIOMMU, extended IOTLB invalidation may be passed down from outside IOMMU subsystems. This patch adds invalidation functions that can be used for additional translation cache types. Signed-off-by: Jacob Pan --- drivers/iommu/dmar.c| 44

[PATCH v4 12/22] iommu: introduce device fault report API

2018-03-22 Thread Jacob Pan
Traditionally, device specific faults are detected and handled within their own device drivers. When IOMMU is enabled, faults such as DMA related transactions are detected by IOMMU. There is no generic reporting mechanism to report faults back to the in-kernel device driver or the guest OS in case

[PATCH v4 13/22] iommu: introduce page response function

2018-03-22 Thread Jacob Pan
IO page faults can be handled outside IOMMU subsystem. For an example, when nested translation is turned on and guest owns the first level page tables, device page request can be forwared to the guest for handling faults. As the page response returns by the guest, IOMMU driver on the host need to p

[PATCH v4 11/22] driver core: add per device iommu param

2018-03-22 Thread Jacob Pan
DMA faults can be detected by IOMMU at device level. Adding a pointer to struct device allows IOMMU subsystem to report relevant faults back to the device driver for further handling. For direct assigned device (or user space drivers), guest OS holds responsibility to handle and respond per device

[PATCH v4 14/22] iommu: handle page response timeout

2018-03-22 Thread Jacob Pan
When IO page faults are reported outside IOMMU subsystem, the page request handler may fail for various reasons. E.g. a guest received page requests but did not have a chance to run for a long time. The irresponsive behavior could hold off limited resources on the pending device. There can be hardw

[PATCH v4 06/22] iommu/vt-d: add definitions for PFSID

2018-03-22 Thread Jacob Pan
When SRIOV VF device IOTLB is invalidated, we need to provide the PF source ID such that IOMMU hardware can gauge the depth of invalidation queue which is shared among VFs. This is needed when device invalidation throttle (DIT) capability is supported. This patch adds bit definitions for checking

[PATCH v4 16/22] iommu/vt-d: report non-recoverable faults to device

2018-03-22 Thread Jacob Pan
Currently, dmar fault IRQ handler does nothing more than rate limited printk, no critical hardware handling need to be done in IRQ context. For some use case such as vIOMMU, it might be useful to report non-recoverable faults outside host IOMMU subsystem. DMAR fault can come from both DMA and inter

[PATCH v4 05/22] iommu: introduce iommu invalidate API function

2018-03-22 Thread Jacob Pan
From: "Liu, Yi L" When an SVM capable device is assigned to a guest, the first level page tables are owned by the guest and the guest PASID table pointer is linked to the device context entry of the physical IOMMU. Host IOMMU driver has no knowledge of caching structure updates unless the guest

[PATCH v4 17/22] iommu/intel-svm: report device page request

2018-03-22 Thread Jacob Pan
If the source device of a page request has its PASID table pointer bound to a guest, the first level page tables are owned by the guest. In this case, we shall let guest OS to manage page fault. This patch uses the IOMMU fault reporting API to send fault events, possibly via VFIO, to the guest OS.

[PATCH v4 18/22] iommu/intel-svm: replace dev ops with fault report API

2018-03-22 Thread Jacob Pan
With the introduction of generic IOMMU device fault reporting API, we can replace the private fault callback functions with standard function and event data. Signed-off-by: Jacob Pan --- drivers/iommu/intel-svm.c | 7 +-- include/linux/intel-svm.h | 20 +++- 2 files changed,

Re: [PATCH] pinctrl: devicetree: Fix dt_to_map_one_config handling of hogs

2018-03-22 Thread Linus Walleij
On Wed, Mar 7, 2018 at 5:12 PM, Charles Keepax wrote: > On Fri, Mar 02, 2018 at 09:42:54AM +0100, Linus Walleij wrote: >> On Wed, Feb 28, 2018 at 4:53 PM, Richard Fitzgerald >> wrote: >> >> > When dt_to_map_one_config() is called with a pinctrl_dev passed >> > in, it should only be using this if

[PATCH v4 20/22] iommu/vt-d: add intel iommu page response function

2018-03-22 Thread Jacob Pan
This patch adds page response support for Intel VT-d. Generic response data is taken from the IOMMU API then parsed into VT-d specific response descriptor format. Signed-off-by: Jacob Pan --- drivers/iommu/intel-iommu.c | 47 + include/linux/intel-iomm

[PATCH v4 15/22] iommu/config: add build dependency for dmar

2018-03-22 Thread Jacob Pan
Intel VT-d interrupts come from both IRQ remapping and DMA remapping. In order to report non-recoverable faults back to device driver, we need to have access to IOMMU fault reporting APIs. This patch adds build depenency to DMAR code where fault IRQ handlers can selectively report faults. Signed-o

[PATCH v4 21/22] trace/iommu: add sva trace events

2018-03-22 Thread Jacob Pan
Signed-off-by: Jacob Pan --- include/trace/events/iommu.h | 112 +++ 1 file changed, 112 insertions(+) diff --git a/include/trace/events/iommu.h b/include/trace/events/iommu.h index 72b4582..e64eb29 100644 --- a/include/trace/events/iommu.h +++ b/include/t

[PATCH v4 10/22] iommu: introduce device fault data

2018-03-22 Thread Jacob Pan
Device faults detected by IOMMU can be reported outside IOMMU subsystem for further processing. This patch intends to provide a generic device fault data such that device drivers can be communicated with IOMMU faults without model specific knowledge. The proposed format is the result of discussion

[PATCH v4 19/22] iommu/intel-svm: do not flush iotlb for viommu

2018-03-22 Thread Jacob Pan
vIOMMU passdown invalidation will be inclusive, PASID cache invalidation includes TLBs. See Intel VT-d Specification Ch 6.5.2.2 for details. Signed-off-by: Jacob Pan --- drivers/iommu/intel-svm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/iommu/intel-svm.c b/d

Re: [PATCH 1/2] resource: add walk_system_ram_res_rev()

2018-03-22 Thread Baoquan He
On 03/22/18 at 07:06pm, Andrew Morton wrote: > On Fri, 23 Mar 2018 08:58:45 +0800 Baoquan He wrote: > > > > erk, this is pretty nasty. Isn't there a better way :( > > > > Yes, this is not efficient. > > > > In struct resource{}, ->sibling list is a singly linked list. I ever > > thought about

[PATCH v4 22/22] iommu: use sva invalidate and device fault trace event

2018-03-22 Thread Jacob Pan
For performance and debugging purposes, these trace events help analyzing device faults and passdown invalidations that interact with IOMMU subsystem. E.g. IOMMU::00:0a.0 type=2 reason=0 addr=0x007ff000 pasid=1 group=1 last=0 prot=1 Signed-off-by: Jacob Pan --- drivers/iommu/iommu.c

Re: [PATCH] perf util: Display warning when perf report/annotate is missing some libs

2018-03-22 Thread Jin, Yao
On 3/22/2018 4:51 PM, Jiri Olsa wrote: On Thu, Mar 22, 2018 at 09:04:10AM +0800, Jin, Yao wrote: On 3/21/2018 11:38 PM, Jiri Olsa wrote: On Wed, Mar 21, 2018 at 10:11:10AM +0800, Jin, Yao wrote: Hi Jiri, I'm still thinking it's worth displaying the warning when perf missing some libraries

Re: [PATCH] pinctrl: stm32: add 'depends on HAS_IOMEM' to fix unmet dependency

2018-03-22 Thread Linus Walleij
On Tue, Mar 6, 2018 at 12:15 PM, Masahiro Yamada wrote: > These configs select MFD_SYSCON, but do not depend on HAS_IOMEM. > > Compile testing on architecture without HAS_IOMEM causes "unmet > direct dependencies" in Kconfig phase. > > Detected by "make ARCH=score allyesconfig". > > Signed-off-by

Re: [PATCH 1/4] dt-bindings: clock: meson: update documentation with hhi syscon

2018-03-22 Thread Rob Herring
On Sun, Mar 18, 2018 at 10:09 AM, Jerome Brunet wrote: > On Sun, 2018-03-18 at 07:52 -0500, Rob Herring wrote: >> On Thu, Mar 15, 2018 at 12:55:42PM +0100, Jerome Brunet wrote: >> > The HHI register region hosts more than just clocks and needs to >> > accessed drivers other than the clock controll

Re: [PATCH] pinctrl: mediatek: mtk-common: use true and false for boolean values

2018-03-22 Thread Linus Walleij
On Tue, Mar 6, 2018 at 12:49 AM, Gustavo A. R. Silva wrote: > Assign true or false to boolean variables instead of an integer value. > > This issue was detected with the help of Coccinelle. > > Signed-off-by: Gustavo A. R. Silva Patch applied. Yours, Linus Walleij

Re: [PATCH v2] pinctrl: pinctrl-single: Fix pcs_request_gpio() when bits_per_mux != 0

2018-03-22 Thread Linus Walleij
On Mon, Feb 19, 2018 at 10:57 PM, David Lechner wrote: > This fixes pcs_request_gpio() in the pinctrl-single driver when > bits_per_mux != 0. It appears this was overlooked when the multiple > pins per register feature was added. > > Fixes: 4e7e8017a80e ("pinctrl: pinctrl-single: enhance to confi

Re: [PATCH] dell_rbu: make firmware payload memory uncachable

2018-03-22 Thread kbuild test robot
Hi Stuart, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.16-rc6 next-20180322] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

答复: 答复: [PATCH] mm/memcontrol.c: speed up to force empty a memory cgroup

2018-03-22 Thread Li,Rongqing
> -邮件原件- > 发件人: linux-kernel-ow...@vger.kernel.org > [mailto:linux-kernel-ow...@vger.kernel.org] 代表 Li,Rongqing > 发送时间: 2018年3月19日 18:52 > 收件人: Michal Hocko > 抄送: linux-kernel@vger.kernel.org; linux...@kvack.org; > cgro...@vger.kernel.org; han...@cmpxchg.org; Andrey Ryabinin > > 主题: 答复:

Re: [PATCH v4 0/5] PINCTRL: Mediatek pinctrl driver for mt2712

2018-03-22 Thread Linus Walleij
On Thu, Mar 22, 2018 at 3:58 AM, Zhiyong Tao wrote: > This series includes five patches: > 1.Add mt2712 pintcrl head file. > 2.Add mt2712 pinctrl device node. > 3.Add mt2712 pinctrl driver. > 4.Support bias-disable of generic and special pins simultaneously. > 5.fix check warnings. > > Changes in

Re: [PATCH v2 2/2] earlycon: Use a pointer table to fix __earlycon_table stride

2018-03-22 Thread kbuild test robot
Hi Daniel, Thank you for the patch! Yet something to improve: [auto build test ERROR on tty/tty-testing] [also build test ERROR on v4.16-rc6 next-20180322] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci

Re: [PATCH] dell_rbu: make firmware payload memory uncachable

2018-03-22 Thread kbuild test robot
Hi Stuart, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.16-rc6 next-20180322] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

syzbot rcu/debugobjects warning

2018-03-22 Thread Joel Fernandes
Hi Paul, Thomas, I received a crash report from syzbot on the android 4.9 kernel and I am looking into it, it seems the debugobjects subsystem is warning that a certain RCU structure is not allocated on the stack, but is annotated to be. [ cut here ] WARNING: CPU: 1 PID: 0

Re: [PATCH net-next] modules: allow modprobe load regular elf binaries

2018-03-22 Thread Luis R. Rodriguez
On Thu, Mar 22, 2018 at 3:15 PM, Andy Lutomirski wrote: > All we need to do is to make sure that, if this is > distributed as a module, that it's init routine doesn't wait for a > long time, right? Yeap. Luis

Re: [virtio-dev] Re: [PATCH v2] virtio_balloon: export hugetlb page allocation counts

2018-03-22 Thread Jason Wang
On 2018年03月22日 11:10, Michael S. Tsirkin wrote: On Thu, Mar 22, 2018 at 09:52:18AM +0800, Jason Wang wrote: On 2018年03月20日 12:26, Jonathan Helman wrote: On Mar 19, 2018, at 7:31 PM, Jason Wang wrote: On 2018年03月20日 06:14, Jonathan Helman wrote: Export the number of successful and failed

linux-next: build warning after merge of the tip tree

2018-03-22 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: lib/swiotlb.c:748:13: warning: 'swiotlb_free_buffer' defined but not used [-Wunused-function] static bool swiotlb_free_buffer(struct device *dev, size_t size, ^~

Re: [PATCH] drm/i915/gvt/scheduler: Remove unnecessary NULL checks in sr_oa_regs

2018-03-22 Thread Zhenyu Wang
On 2018.03.22 21:31:33 +, Chris Wilson wrote: > Quoting Gustavo A. R. Silva (2018-03-22 18:21:54) > > The checks are misleading and not required [1]. > > > > [1] https://lkml.org/lkml/2018/3/19/1792 > > > > Addresses-Coverity-ID: 1466017 > > Cc: Chris Wilson > > Signed-off-by: Gustavo A. R.

答复: [PATCH v8 2/5] dt-bindings: scsi: ufs: add document for hisi-ufs

2018-03-22 Thread liwei (CM)
Hi, Arnd Sorry to bother you again, please take the time to review the patch. Are there any other suggestions? Looking forward to your reply. -邮件原件- 发件人: arndbergm...@gmail.com [mailto:arndbergm...@gmail.com] 代表 Arnd Bergmann 发送时间: 2018年2月19日 17:58 收件人: liwei (CM) 抄送: Rob Herring; Mark Ru

linux-next: manual merge of the tip tree with the pm tree

2018-03-22 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: kernel/sched/cpufreq_schedutil.c between commit: 0953feed3400 ("cpufreq: schedutil: rate limits for SCHED_DEADLINE") from the pm tree and commit: 8f111bc357aa ("cpufreq/schedutil: Rewrite CPUFREQ_RT support") from the

[PATCH] KVM: arm/arm64 : add lpi info in vgic-debug

2018-03-22 Thread Peng Hao
Add lpi debug info to vgic-stat. the printed info like this: SPI 287 0 0100 0 160 -1 LPI 8192 2 00010000 0 160 -1 Signed-off-by: Peng Hao --- virt/kvm/arm/vgic/vgic-debug.c | 61 ++ 1 f

Re: [PATCH 1/2] resource: add walk_system_ram_res_rev()

2018-03-22 Thread Andrew Morton
On Fri, 23 Mar 2018 08:58:45 +0800 Baoquan He wrote: > > erk, this is pretty nasty. Isn't there a better way :( > > Yes, this is not efficient. > > In struct resource{}, ->sibling list is a singly linked list. I ever > thought about changing it to doubly linked list, yet not very sure if > it

Fwd: Secure Proposal..

2018-03-22 Thread Negrelli Laura
Can you work with us ??

[PATCH] ata: ahci-platform: add reset control support

2018-03-22 Thread Kunihiko Hayashi
Add support to get and control a list of resets for the device as optional and shared. These resets must be kept de-asserted until the device is enabled. This is specified as shared because some SoCs like UniPhier series have common reset controls with all ahci controller instances. Signed-off-by

Re: [PATCH 1/2] regulator: add QCOM RPMh regulator driver

2018-03-22 Thread David Collins
Hello Stephen, Thank you for the very detailed review feedback. On 03/21/2018 12:07 PM, Stephen Boyd wrote: > Quoting David Collins (2018-03-16 18:09:10) >> diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig >> index 097f617..e0ecd0a 100644 >> --- a/drivers/regulator/Kconfig >> ++

Re: [PATCHv2 4/4] gpio: Remove VLA from stmpe driver

2018-03-22 Thread Phil Reid
On 23/03/2018 05:43, Laura Abbott wrote: On 03/18/2018 06:29 PM, Phil Reid wrote: On 16/03/2018 02:00, Laura Abbott wrote: The new challenge is to remove VLAs from the kernel (see https://lkml.org/lkml/2018/3/7/621) This patch replaces a VLA with an appropriate call to kmalloc_array. Signed-o

[PATCH] platform/x86: fujitsu-laptop: Simplify soft key handling

2018-03-22 Thread Darren Hart (VMware)
The hardcoded BIT(X) used in the soft key handling can be confusing and prone to errors. Instead, use the status FLAG_* defines for the sparse keymap index. Rather than check for each known bit, use a bitmask to filter for all known soft keys, and use the for_each_set_bit iterator. Cc: Jan-Marek

Re: kernel_selftests.x86.mpx-mini-test_32.fail on skylake platform

2018-03-22 Thread Li Zhijian
Sorry to reply so late. On 3/13/2018 1:34 AM, Dave Hansen wrote: On 03/08/2018 05:24 PM, Li Zhijian wrote: 0Day robot tried to bisect the FBC, but it failed at last. But anyway i want to let you know we had this issue. Can you please bisect this, manually if necessary? Let me know if you need

[PATCH v2] Add an option to dm-verity to validate hashes at most once

2018-03-22 Thread Patrik Torstensson
Add an option to dm-verity to validate hashes at most once to allow platforms that is CPU/memory contraint to be protected by dm-verity against offline attacks. The option introduces a bitset that is used to check if a block has been validated before or not. A block can be validated more than once

Re: [PATCH v2 00/11] kexec_file: Clean up purgatory load

2018-03-22 Thread Dave Young
On 03/21/18 at 12:27pm, Philipp Rudo wrote: > Hi everybody > > here is the updated patch set including Dave's comments. > > Changes v1 -> v2: > * Fix missing memcpy and memset definition in x86 purgatory > introduced by moving the sha256 implementation to common code. > * Update

Re: [PATCH v3 3/3] pinctrl: qcom: Don't allow protected pins to be requested

2018-03-22 Thread Timur Tabi
On 03/22/2018 07:23 PM, Timur Tabi wrote: Also, you don't allocate chip->valid_mask anywhere. So I see now where it's allocated, but something is fishy. I have three TLMMs on my chip: [ 67.107018] gpiochip_init_valid_mask:351 gpiochip->need_valid_mask=1 [ 67.153747] gpiochip_init_valid

[PATCH 01/15] mm/hmm: documentation editorial update to HMM documentation

2018-03-22 Thread jglisse
From: Ralph Campbell This patch updates the documentation for HMM to fix minor typos and phrasing to be a bit more readable. Signed-off-by: Ralph Campbell Signed-off-by: Jérôme Glisse Cc: Stephen Bates Cc: Jason Gunthorpe Cc: Logan Gunthorpe Cc: Evgeny Baskakov Cc: Mark Hairgrove Cc: Joh

[PATCH 05/15] mm/hmm: hmm_pfns_bad() was accessing wrong struct

2018-03-22 Thread jglisse
From: Jérôme Glisse The private field of mm_walk struct point to an hmm_vma_walk struct and not to the hmm_range struct desired. Fix to get proper struct pointer. Signed-off-by: Jérôme Glisse Cc: sta...@vger.kernel.org Cc: Evgeny Baskakov Cc: Ralph Campbell Cc: Mark Hairgrove Cc: John Hubbar

[PATCH 04/15] mm/hmm: unregister mmu_notifier when last HMM client quit v3

2018-03-22 Thread jglisse
From: Jérôme Glisse This code was lost in translation at one point. This properly call mmu_notifier_unregister_no_release() once last user is gone. This fix the zombie mm_struct as without this patch we do not drop the refcount we have on it. Changed since v1: - close race window between a las

  1   2   3   4   5   6   7   8   9   >