summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-09-25iommu: Rename iommu_dm_regions into iommu_resv_regionsEric Auger
We want to extend the callbacks used for dm regions and use them for reserved regions. Reserved regions can be - directly mapped regions - regions that cannot be iommu mapped (PCI host bridge windows, ...) - MSI regions (because they belong to another address space or because they are not translated by the IOMMU and need special handling) So let's rename the struct and also the callbacks. Signed-off-by: Eric Auger <eric.auger@redhat.com> Acked-by: Robin Murphy <robin.murphy@arm.com> Reviewed-by: Tomasz Nowicki <tomasz.nowicki@caviumnetworks.com> Tested-by: Tomasz Nowicki <tomasz.nowicki@caviumnetworks.com> Tested-by: Bharat Bhushan <bharat.bhushan@nxp.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
2017-09-25iommu/dma: Allow MSI-only cookiesRobin Murphy
IOMMU domain users such as VFIO face a similar problem to DMA API ops with regard to mapping MSI messages in systems where the MSI write is subject to IOMMU translation. With the relevant infrastructure now in place for managed DMA domains, it's actually really simple for other users to piggyback off that and reap the benefits without giving up their own IOVA management, and without having to reinvent their own wheel in the MSI layer. Allow such users to opt into automatic MSI remapping by dedicating a region of their IOVA space to a managed cookie, and extend the mapping routine to implement a trivial linear allocator in such cases, to avoid the needless overhead of a full-blown IOVA domain. Signed-off-by: Robin Murphy <robin.murphy@arm.com> Reviewed-by: Tomasz Nowicki <tomasz.nowicki@caviumnetworks.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Tested-by: Eric Auger <eric.auger@redhat.com> Tested-by: Tomasz Nowicki <tomasz.nowicki@caviumnetworks.com> Tested-by: Bharat Bhushan <bharat.bhushan@nxp.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
2017-09-25iommu/arm-smmu: Add global SMR masking propertyRobin Murphy
The current SMR masking support using a 2-cell iommu-specifier is primarily intended to handle individual masters with large and/or complex Stream ID assignments; it quickly gets a bit clunky in other SMR use-cases where we just want to consistently mask out the same part of every Stream ID (e.g. for MMU-500 configurations where the appended TBU number gets in the way unnecessarily). Let's add a new property to allow a single global mask value to better fit the latter situation. Acked-by: Mark Rutland <mark.rutland@arm.com> Tested-by: Nipun Gupta <nipun.gupta@nxp.com> Signed-off-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
2017-09-25iommu/arm-smmu: Set SMTNMB_TLBEN in ACR to enable caching of bypass entriesNipun Gupta
The SMTNMB_TLBEN in the Auxiliary Configuration Register (ACR) provides an option to enable the updation of TLB in case of bypass transactions due to no stream match in the stream match table. This reduces the latencies of the subsequent transactions with the same stream-id which bypasses the SMMU. This provides a significant performance benefit for certain networking workloads. With this change substantial performance improvement of ~9% is observed with DPDK l3fwd application (http://dpdk.org/doc/guides/sample_app_ug/l3_forward.html) on NXP's LS2088a platform. Reviewed-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
2017-09-25arm64: defconfig: enable CONFIG_RTC_DRV_PCF85263Zhang Ying-22455
Signed-off-by: Zhang Ying-22455 <ying.zhang22455@nxp.com>
2017-09-25rtc: pcf85263: add NXP PCF85263 support (i2c)Zhang Ying-22455
Added support for NXP PCF85263 RTC (i2c). Signed-off-by: Martin Fuzzey <mfuzzey@parkeon.com> Signed-off-by: Zhang Ying-22455 <ying.zhang22455@nxp.com>
2017-09-25arm64: dts: ls1043a: add pcf85263 rtc nodesZhang Ying-22455
Signed-off-by: Zhang Ying-22455 <ying.zhang22455@nxp.com>
2017-09-25rtc: pcf85263: add NXP PCF85263 support (i2c)Zhang Ying-22455
Added support for NXP PCF85263 RTC (i2c). Signed-off-by: Martin Fuzzey <mfuzzey@parkeon.com> Signed-off-by: Zhang Ying-22455 <ying.zhang22455@nxp.com>
2017-09-25dts: ls1046aqds: include fsl-ls1046a-qds.dts instead of fsl-ls1046a-rdb.dtsZhao Qiang
Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
2017-09-25Add dspi node for fsl-ls1046a-qds-sdk dtsGao Guanhua
Signed-Off-by: Guanhua Gao <guanhua.gao@nxp.com>
2017-09-25dts: ls1046aqds: add "simple-bus" and ranges to fpgaZhao Qiang
Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
2017-09-25arm64: dts: ls1012a: add cpu idle supportYuantian Tang
Signed-off-by: Tang Yuantian <andy.tang@nxp.com>
2017-09-25arm64: dts: ls1043a: add cpu idle supportYuantian Tang
Signed-off-by: Tang Yuantian <andy.tang@nxp.com>
2017-09-25arm64: dts: ls1012a: add USB host controller nodesRan Wang
LS1012A has one USB 3.0(DWC3) controller and one USB 2.0 controller. Signed-off-by: Ran Wang <ran.wang_1@nxp.com>
2017-09-25arm64: dts: ls1046a: Add dis_rxdet_inp3_quirk property to USB3 nodeRan Wang
Add "dis_rxdet_inp3_quirk" bollean property to USB3 node. This property is used to disable rx detection in P3 PHY mode Signed-off-by: Ran Wang <ran.wang_1@nxp.com>
2017-09-25arm64: dts: ls2088ardb: Update nodes for QSPISantan Kumar
-As per board design, different QSPI flash is connected on boards, hence change QSPI flash node from s25fl256s1 to s25fs512ss in device tree. -Enable fast-read support in QSPI node. Signed-off-by: Santan Kumar <santan.kumar@nxp.com>
2017-09-25arm64: dts: ls2081ardb: Update nodes for QSPI, SATA, INA220Santan Kumar
Update ls2081ardb.dts for below nodes: -As per updated board design, different QSPI flash is connected on boards, hence change QSPI flash node from n25q512a to s25fs512ss in device tree. -Enable dual flash support in QSPI node. -Add DTS node for INA220. -Enable SATA node. Signed-off-by: Santan Kumar <santan.kumar@nxp.com> Signed-off-by: Tao Yang <b31903@freescale.com> Signed-off-by: Yogesh Gaur <yogeshnarayan.gaur@nxp.com>
2017-09-25arm64: dts: ls1088: Add Reboot node in dtsiAshish Kumar
Signed-off-by: Ashish Kumar <Ashish.Kumar@nxp.com>
2017-09-25arm64:dts: Add LS1043/46 USDPAA dts files in MakefileAkhil Goyal
Modification required for fsl,dpaa node placement. Now the node is part of soc node. Signed-off-by: Akhil Goyal <akhil.goyal@nxp.com>
2017-09-25arm64: dts: add OH ports on LS1043/46Iordache Florinel-R70177
Signed-off-by: Iordache Florinel-R70177 <florinel.iordache@nxp.com> Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
2017-09-25arm64: dts: ls1021/ls1043/ls1046: add qdma nodesjiaheng.fan
Signed-off-by: jiaheng.fan <jiaheng.fan@nxp.com>
2017-09-25arm64: dts: ls1088a: Add flash node for ls1088a qds and rdbPrabhakar Kushwaha
LS1088AQDS consist of NOR, NAND and FPGA connected over IFC LS1088ARDB consist of NAND and FPGA connected over IFC. So add flash information in ifc node of device tree. Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
2017-09-25arm64: dts: ls208xa: Add QSPI Flash node for RDBSuresh Gupta
This is temporary patch, will rewrite for open source Signed-off-by: Suresh Gupta <suresh.gupta@nxp.com>
2017-09-25arm64: dts: ls2081ardb: Add DTS support for NXP LS2081ARDBPriyanka Jain
This patch add support for NXP LS2081ARDB board which has LS2081A SoC. LS2081A SoC is 40-pin derivative of LS2088A SoC So, from functional perspective both are same. Hence,ls2088a SoC dtsi files are included from ls2081ARDB dts Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
2017-09-25arm64: dts: add iommu-map property in fsl-mc nodeNipun Gupta
Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
2017-09-25crypto: caam/qi2 - setup CG only if supportedHoria Geantă
Even if MC f/w has support for DPSECI Congestion Group (CG), we still have to check whether the dpseci object has been created with this capability before setting it up. Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
2017-09-25crypto: caam/qi2 - add dpseci capabilities supportHoria Geantă
Starting with MC firmware 10.2.0 (*), support has been added to obtain the properties of dpseci objects, such as Congestion Group or Order Preservation. (*) DPSECI object (API) version has not bumped, it's still v5.1; this makes it harder to offer backwards compatibility. Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
2017-09-25crypto: caam/qi2 - fix authenc givencrypt shared descriptorHoria Geantă
authenc givencrypt shared descriptor is being saved in the wrong buffer, i.e. flc[GIVENCRYPT]. For authenc, since .encrypt and .givencrypt cannot coexist: -the same flc[ENCRYPT] buffer is used for the shared descriptor and -flc[GIVENCRYPT] is not used Fixes: 1417145b769f ("crypto: caam/qi2 - add DPAA2-CAAM driver") Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
2017-09-25drivers: firmware: psci: use psci v0.2 to implement sleepYuantian Tang
Technically psci v0.2 can not support system sleep. Unfortunately our PPA only supports psci v0.2. So workaround this by changing psci v1.0 to v0.2 call to implement system sleep. Signed-off-by: Tang Yuantian <andy.tang@nxp.com>
2017-09-25QE: splitted patch from QE for irqZhao Qiang
Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
2017-09-25arm64: dts: ls2088a: add cpu idle supportYuantian Tang
Signed-off-by: Tang Yuantian <andy.tang@nxp.com>
2017-09-25arm64: dts: ls1088a: add cpu idle supportYuantian Tang
Signed-off-by: Tang Yuantian <andy.tang@nxp.com>
2017-09-25dts: ls1021a: update the clockgen nodeYuantian Tang
qoriq clock driver has been updated to parse the clock configuration information defined in driver itself not in dts. Since the new implementation and the bindings have been merged, it is time to update the clock related node and remove redundent clock configuration information from the dts. Signed-off-by: Tang Yuantian <andy.tang@nxp.com>
2017-09-25arm64: dts: ls1088a: Add USB supportyinbo.zhu
Fix the issue that usb is not detected on ls1088ardb Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com> Signed-off-by: Ran Wang <ran.wang_1@nxp.com>
2017-09-25config: enable support for lxd and lxd-bridgeIoana Ciornei
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
2017-09-25multi_v7_defconfig: added config options required for DPAA 1Madalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
2017-09-25lsdk.config: added config options required to run dockerIoana Ciornei
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
2017-09-25add restool ioctl entry to DocumentationIoana Ciornei
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
2017-09-25arm: config: Remove CONFIG_MTD_CFI_BE_BYTE_SWAP in multi_v7_defconfigAlison Wang
For the patch to update struct map_info's swap field based on device characteristics defined in device tree, CONFIG_MTD_CFI_BE_BYTE_SWAP is not used. This patch will remove it in multi_v7_defconfig. Signed-off-by: Alison Wang <alison.wang@nxp.com>
2017-09-25arm64: configs: Remove CONFIG_MTD_CFI_BE_BYTE_SWAP in lsdk.configAlison Wang
For the patch to update struct map_info's swap field based on device characteristics defined in device tree, CONFIG_MTD_CFI_BE_BYTE_SWAP is not used. This patch will remove it in lsdk.config. Signed-off-by: Alison Wang <alison.wang@nxp.com>
2017-09-25config: arm32: enable necessary options for KVM and containersIoana Ciornei
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
2017-09-25arm64:configs: Enable CEPH_FS and XFS_FS in lsdk.configShengzhou Liu
Signed-off-by: Shengzhou Liu <Shengzhou.Liu@nxp.com>
2017-09-25arm64: lsdk.config: Enable CONFIG_OVERLAY_FS in kernelShengzhou Liu
Signed-off-by: Shengzhou Liu <Shengzhou.Liu@nxp.com>
2017-09-25arm: configs: Add lsdk.config for arm32 in lsdkShengzhou Liu
Signed-off-by: Shengzhou Liu <Shengzhou.Liu@nxp.com>
2017-09-25arm64: defconfig: Enable CONFIG_FHANDLEShengzhou Liu
Signed-off-by: Shengzhou Liu <Shengzhou.Liu@nxp.com>
2017-09-25config: multiv8: enable CONFIG_FSL_SDK_DPA insteadZhao Qiang
enable CONFIG_FSL_SDK_DPA instead of CONFIG_HAS_FSL_QBMAN for 32b os on arm64 Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
2017-09-25vfio: fsl-mc: enable CONFIG_VFIO_FSL_MC for arm64 defconfigZhao Qiang
Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
2017-09-25config: splitted config part from QEZhao Qiang
Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
2017-09-25arm64: defconfig: Enable SAI and eDMA supportAlison Wang
This patch adds SAI and eDMA support in the defconfig. Signed-off-by: Alison Wang <alison.wang@nxp.com>
2017-09-25pcie-ep: Fix the memory leak issueLiu Gang
Add the memory free step to avoid the memory leak issue. Signed-off-by: Liu Gang <Gang.Liu@nxp.com> Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>