summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-02-22Fix fragment list ordering in USDPAA DMA memoryRoy Pledge
In certain cases the order of the fragment list in the USDPAA DMA system could become misorded leading incorrect mapping addresses being returned. This ensures that the ordering is correct Signed-off-by: Roy Pledge <Roy.Pledge@freescale.com> Change-Id: I99fe5fbd4b7f31e45277aa9bc3840c1cd0b7d1fc Reviewed-on: http://git.am.freescale.net:8181/8940 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Haiying Wang <Haiying.Wang@freescale.com> Reviewed-by: Geoff Thorpe <Geoff.Thorpe@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2014-02-18powerpc/85xx: add sysfs for pw20 state and altivec idleWang Dongsheng
Add a sys interface to enable/diable pw20 state or altivec idle, and control the wait entry time. Enable/Disable interface: 0, disable. 1, enable. /sys/devices/system/cpu/cpuX/pw20_state /sys/devices/system/cpu/cpuX/altivec_idle Set wait time interface:(Nanosecond) /sys/devices/system/cpu/cpuX/pw20_wait_time /sys/devices/system/cpu/cpuX/altivec_idle_wait_time Example: Base on TBfreq is 41MHZ. 1~48(ns): TB[63] 49~97(ns): TB[62] 98~195(ns): TB[61] 196~390(ns): TB[60] 391~780(ns): TB[59] 781~1560(ns): TB[58] ... Signed-off-by: Wang Dongsheng <dongsheng.wang@freescale.com> [scottwood@freescale.com: change ifdef] Signed-off-by: Scott Wood <scottwood@freescale.com> Change-Id: Ief3f07f89902f8f3c1a40feefc0b6f1fb9bb9eb3 Reviewed-on: http://git.am.freescale.net:8181/8666 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Yang Li <LeoLi@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/8896
2014-02-18fmd, dpaa_eth: fix function name fm_mac_set_rx_pause_framesCristian Bercaru
Replace 'fm_mac_set_rx_ignore_pause_frames' with 'fm_mac_set_rx_pause_frames'. 'fm_mac_set_rx_pause_frames' correctly reflects the functionality of the function. One might wrongly believe that calling 'fm_mac_set_rx_ignore_pause_frames' with parameter 'en' set to 'true' disables pause frames reception on that interface, when the function in fact enables pause frames. Signed-off-by: Cristian Bercaru <cristian.bercaru@freescale.com> Change-Id: I83253a70ee95d706dab0cd1b88f40ed8c51376c5 Reviewed-on: http://git.am.freescale.net:8181/8719 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2014-02-18dpa_ipsec: Patch to update the append_math_ldshift command.Sandeep Malik
This patch updates the append_math_ldshift command to append_math_shld. Signed-off-by: Sandeep Malik <Sandeep.Malik@freescale.com> Change-Id: Icade31ac19f7ac8c370f9afdc14d542ac606feef Reviewed-on: http://git.am.freescale.net:8181/8900 Reviewed-by: Horia Ioan Geanta Neag <horia.geanta@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2014-02-18ASF_IPSEC: Added some more commands in desc_constr.h toSandeep Malik
support 3des-xcbc in ASF desc_constr.h has been modified to provide commands which are required to support 3des-xcbc Also added a minor correction in disassembler of decriptor which caused kernel crash on printing the descriptor using dis-assembler CR:ENGR00272350 Signed-off-by: Nipun Gupta <nipun.gupta@freescale.com> Signed-off-by: Sandeep Malik <Sandeep.Malik@freescale.com> Change-Id: I7d25e8898f3fd7bdc88b3d689434534c4a017bca Reviewed-on: http://git.am.freescale.net:8181/8827 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Horia Ioan Geanta Neag <horia.geanta@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2014-02-18dpa_offload: Sync P4080DS offloading DTS filesMarian Chereji
Updated the P4080DS DTS example files for DPA offloading applications to bring them to the version delivered with SDK 1.5. Signed-off-by: Marian Chereji <marian.chereji@freescale.com> Change-Id: I36ceef07304fca5b65b450f93cfe66fc308a16ff Reviewed-on: http://git.am.freescale.net:8181/8833 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Radu-Andrei Bulie <Radu.Bulie@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2014-02-18dpa_offload: Sync B4860QDS offloading DTS filesMarian Chereji
Updated the B4860QDS DTS example files for DPA offloading applications to bring them to the version delivered with SDK 1.5. Change-Id: I07532902ce0024a00913b8d2c8de25e863b42bd7 Signed-off-by: Marian Chereji <marian.chereji@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/8834 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Radu-Andrei Bulie <Radu.Bulie@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2014-02-18dpa_offload: Sync B4420QDS offloading DTS filesMarian Chereji
Updated the B4420QDS DTS example files for DPA offloading applications to bring them to the version delivered with SDK 1.5. Signed-off-by: Marian Chereji <marian.chereji@freescale.com> Change-Id: Ic40b3f4f9d5e4df9213918ce7aed2dca99423465 Reviewed-on: http://git.am.freescale.net:8181/8836 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Radu-Andrei Bulie <Radu.Bulie@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2014-02-18dpa_offload: Sync P2041RDB offloading DTS filesMarian Chereji
Updated the P2041RDB DTS example files for DPA offloading applications to bring them to the version delivered with SDK 1.5. Signed-off-by: Marian Chereji <marian.chereji@freescale.com> Change-Id: I036dd27c9b85dac605a9da98e82089dcea7d97ce Reviewed-on: http://git.am.freescale.net:8181/8837 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Radu-Andrei Bulie <Radu.Bulie@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2014-02-18DMA:Freescale: change BWC from 256 bytes to 1024 bytesHongbo Zhang
Freescale DMA has a feature of BandWidth Control (ab. BWC), which is currently 256 bytes and should be changed to 1024 bytes for best DMA throughput. Changing BWC from 256 to 1024 will improve DMA performance much, in cases whatever one channel is running or multi channels are running simultanously, large or small buffers are copied. And this change doesn't impact memory access performance remarkably, lmbench tests show that for some cases the memory performance are decreased very slightly, while the others are even better. Tested on T4240. Signed-off-by: Hongbo Zhang <hongbo.zhang@freescale.com> Change-Id: Ib488fab0414f49f3ba1cf09328e305743e3a4c73 Reviewed-on: http://git.am.freescale.net:8181/7362 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Scott Wood <scottwood@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2014-02-18rtc: ds3232 make it possible to share an irqBharat Bhushan
It's possible to have RTC irq shared with other device (e.g. t4240qds board shares ds3232irq with phy one). Handle this in driver. Signed-off-by: Bharat Bhushan <Bharat.Bhushan@freescale.com> Change-Id: Ifdec5e78afaa3228ef20870110c98329731075d7 Reviewed-on: http://git.am.freescale.net:8181/8788 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Dongsheng Wang <dongsheng.wang@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2014-02-18dpaa_eth: fix PM functions for proxy driverMarian Rotariu
Run-time information regarding proxy interface should be stored and acquired only through dev_set_drvdata() and dev_get_drvdata() primitives. This information is essential for macless driver capability of controling a MAC device. Change-Id: Icaad66952874e5835b1086c0aa225ae331fc6f5f Signed-off-by: Marian Rotariu <marian.rotariu@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/8725 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com> Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> (cherry picked from commit 50e51c4f00960b29644398532cf2481e46945f9e) Reviewed-on: http://git.am.freescale.net:8181/8908 Tested-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com>
2014-02-18dpaa_eth: Fix invalid reference for macless driverMarian Rotariu
A common macless driver does not have MAC device control capabilities. Therefore its proxy_dev reference will be NULL. All common operation used also by the macless driver with MAC device control capabilities that use this reference should be properly guarded. Signed-off-by: Marian Rotariu <marian.rotariu@freescale.com> Change-Id: I1cbb51a64d9251d1dbf7597c7c95e0227007beb4 Reviewed-on: http://git.am.freescale.net:8181/8724 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com> (cherry picked from commit 210462a5048889279c035392e62ff400fe9d6c6c) Reviewed-on: http://git.am.freescale.net:8181/8907 Tested-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com>
2014-02-17crypto: caam - fix ERA retrieval functionAlex Porosanu
SEC ERA has to be retrieved by reading the "fsl,sec-era" property from the device tree. This property is updated/filled in by u-boot. Signed-off-by: Alex Porosanu <alexandru.porosanu@freescale.com> Reviewed-by: Horia Geanta <horia.geanta@freescale.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2014-02-13dpaa_offload: add dts files for T4Tibuleac Ioana-B41516
Added dts files for the ipsec_offload app Change-Id: Id5602a59e96fcecb242c7c12b81c67b34998f8db Signed-off-by: Tibuleac Ioana-B41516 <ioana.tibuleac@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/8742 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Marian-Cornel Chereji <marian.chereji@freescale.com> Reviewed-by: Radu-Andrei Bulie <Radu.Bulie@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2014-02-13powerpc/pci: Remove the calling pcibios_setup_devices() in ↵Chunhe Lan
pcibios_enable_device() For devices which are hot-plugged, when they are re-scanned, the pcibios_setup_device is called from pcibios_add_device if bus setup is complete. So remove the calling pcibios_setup _devices() from pcibios_enable_device(). With this change, device setup code is called exactly once for both static and hot plugged devices. Signed-off-by: Chunhe Lan <Chunhe.Lan@freescale.com> Change-Id: I5b29412daabbb8ebebc0d198fa3bf30889a7e58c Reviewed-on: http://git.am.freescale.net:8181/8706 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Scott Wood <scottwood@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2014-02-13dpa_offload: Sync dpa_ipsec w/ SDK 1.5Andrei Varvara
Updated the DPA IPSec component to bring it to the version delivered with SDK 1.5 Change-Id: Ia8e178c2d5d3a08587dfa06850ced9c0b1a23bed Signed-off-by: Andrei Varvara <andrei.varvara@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/8723 Reviewed-by: Marian-Cornel Chereji <marian.chereji@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2014-02-13dpa_offload: Sync dpa_stats w/ SDK 1.5Marian Chereji
Updated the dpa_stats component to bring it to the version delivered with SDK 1.5. Change-Id: I362609004a16b9950384b50f3635d26cb60ef7c2 Signed-off-by: Marian Chereji <marian.chereji@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/8717 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Andrei Varvara <andrei.varvara@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2014-02-13dpa_offload: Resync dpa_classifier w/ SDK 1.5Marian Chereji
Updated the dpa_classifier component to bring it to the version delivered with SDK 1.5. Change-Id: I0bfad6dd46c64d55517de58def73525dc7714d07 Signed-off-by: Marian Chereji <marian.chereji@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/8716 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Andrei Varvara <andrei.varvara@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2014-02-13fmd/PCD: Export LLD APIs to all kernel modules which use DPAA value addedJianhua Xie
Old codes only support exporting LLD APIs(FMAN_PORT_*/FMAN_PCD_*) to DPAA offload module. In fact, other kernel modules which use DPAA value added may need those LLD APIs as well. This patch removes the limitation which only exports LLD API to DPAA offload kernel module. Signed-off-by: Jianhua Xie <jianhua.xie@freescale.com> Signed-off-by: Wang Dongsheng <dongsheng.wang@freescale.com> Change-Id: I129ed44947b90def3a8b0391078eef95825b3fb5 Reviewed-on: http://git.am.freescale.net:8181/8738 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2014-02-13vfio: using upstream defined stash attributesBharat Bhushan
This fixes below compilation error: drivers/vfio/vfio_iommu_fsl_pamu.c: In function 'vfio_handle_get_attr': drivers/vfio/vfio_iommu_fsl_pamu.c:622:32: error: storage size of 'stash' isn't known struct iommu_stash_attribute stash; ^ drivers/vfio/vfio_iommu_fsl_pamu.c:622:32: warning: unused variable 'stash' [-Wunused-variable] drivers/vfio/vfio_iommu_fsl_pamu.c: In function 'vfio_handle_set_attr': drivers/vfio/vfio_iommu_fsl_pamu.c:685:32: error: storage size of 'stash' isn't known struct iommu_stash_attribute stash; ^ drivers/vfio/vfio_iommu_fsl_pamu.c:685:32: warning: unused variable 'stash' [-Wunused-variable] make[2]: *** [drivers/vfio/vfio_iommu_fsl_pamu.o] Error 1 make[1]: *** [drivers/vfio] Error 2 Signed-off-by: Bharat Bhushan <Bharat.Bhushan@freescale.com> Change-Id: I5ab6b54ef32748f8099cb7b9a434fb607672ceba Reviewed-on: http://git.am.freescale.net:8181/8700 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Scott Wood <scottwood@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2014-02-10dpaa_eth: remove unnecessary checkMadalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: Ie97ed82463c34a6472b4f13a4ddfb6c83c6d91da Reviewed-on: http://git.am.freescale.net:8181/8653 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com>
2014-02-10dpaa_eth: removed some dead codeMadalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I32c0977cc390a36c8a45152f546884782622e4e4 Reviewed-on: http://git.am.freescale.net:8181/8652 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com>
2014-02-10dpaa_eth: silence checkpatch complaintMadalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I9447a3840310c0475dcabae963d0cd5f1e2db105 Reviewed-on: http://git.am.freescale.net:8181/8651 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com>
2014-02-10dpaa_eth: include dpaa_1588.h only when requiredMadalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: Ic498939ea33b665f4f6248eb0f4e8d5f000446d8 Reviewed-on: http://git.am.freescale.net:8181/8650 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com>
2014-02-10dpaa_eth: include headers only where requiredMadalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I979d2a799d2b36e3285bcb4f1b82a56c248c90d6 Reviewed-on: http://git.am.freescale.net:8181/8649 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com>
2014-02-10dpaa_eth: include mac.h where requiredMadalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: Id2e7c768df4faf1230b7e52cc3de6bc601a9184c Reviewed-on: http://git.am.freescale.net:8181/8648 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com> Reviewed-by: Ruxandra Ioana Radulescu <ruxandra.radulescu@freescale.com>
2014-02-10dpaa_eth: minor change in OP headersMadalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I9ca1e994594d784cf89b8c5f7ed41e4c0ef03d6f Reviewed-on: http://git.am.freescale.net:8181/8647 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com>
2014-02-10dpaa_eth: use proper name for FSL_FMAN_TESTMadalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I7e4834a95e6c1b1653b5773fbbc14e6070b2629d Reviewed-on: http://git.am.freescale.net:8181/8646 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com> Reviewed-by: Ruxandra Ioana Radulescu <ruxandra.radulescu@freescale.com>
2014-02-10dpaa_eth: minor Makefile changesMadalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: Ibec913fdae43bf785852e803e1821d1f651272f5 Reviewed-on: http://git.am.freescale.net:8181/8645 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com> Reviewed-by: Ruxandra Ioana Radulescu <ruxandra.radulescu@freescale.com> Reviewed-by: Marian Cristian Rotariu <marian.rotariu@freescale.com>
2014-02-07gianfar: Fix portabilty issues for ethtool and ptpClaudiu Manoil
Fixes unhandled register write in gianfar_ethtool.c. Fixes following endianess related functional issues, reported by sparse as well, i.e.: gianfar_ethtool.c:1058:33: warning: incorrect type in argument 1 (different base types) expected unsigned int [unsigned] [usertype] value got restricted __be32 [usertype] ip4src gianfar_ethtool.c:1164:33: warning: restricted __be16 degrades to integer gianfar_ethtool.c:1669:32: warning: invalid assignment: ^= left side has type restricted __be16 right side has type int Solves all the sparse warnings for mixig normal pointers with __iomem pointers for gianfar_ptp.c, i.e.: gianfar_ptp.c:163:32: warning: incorrect type in argument 1 (different address spaces) expected unsigned int [noderef] <asn:2>*addr got unsigned int *<noident> Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com> Signed-off-by: David S. Miller <davem@davemloft.net> Change-Id: I9352396008149eb93cfe174510f87f8371310a63 Reviewed-on: http://git.am.freescale.net:8181/8631 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Tested-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com>
2014-02-06dpaa_eth: CONFIG_FSL_DPAA_1588 selects CONFIG_FSL_DPAA_TSMadalin Bucur
As there is a large common codebase between CONFIG_FSL_DPAA_1588 and CONFIG_FSL_DPAA_TS changed Kconfig to automatically select CONFIG_FSL_DPAA_TS when CONFIG_FSL_DPAA_1588 is selected. This simplifies the codebase and reduces the amount of changes in the code specific to CONFIG_FSL_DPAA_1588. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I28505dbc7fb291510b34050133d371c91cbe0128 Reviewed-on: http://git.am.freescale.net:8181/8560 Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com> (cherry picked from commit 8a5964eddea4133fa3c6a3750b7a5a2e458a253c) Reviewed-on: http://git.am.freescale.net:8181/8637
2014-02-06dpaa_eth: several small fixesMadalin Bucur
Fixed several type mismatches reported by static analisys tools. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I33e8a74e5c362488262849929fef07383750189c Reviewed-on: http://git.am.freescale.net:8181/8559 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com> Reviewed-by: Ruxandra Ioana Radulescu <ruxandra.radulescu@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com> (cherry picked from commit 3ed6acd336eedc15f2bd6f7c05638b5a145c70d2) Reviewed-on: http://git.am.freescale.net:8181/8636
2014-02-06dpaa_eth: fix checkpatch issueMadalin Bucur
Small checkpatch issue in mac.c Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: Ie88e3aa7163ccf68954933cf8bf1cbc6e067ce83 Reviewed-on: http://git.am.freescale.net:8181/8558 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com> Reviewed-by: Ruxandra Ioana Radulescu <ruxandra.radulescu@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com> (cherry picked from commit e701dd92c598f656fc342933b6274ec369bc1f61) Reviewed-on: http://git.am.freescale.net:8181/8635
2014-02-05GIANFAR : Porting ASF to non-DPA platform.Alok Makhariya
Descripion : This patch add hooks for offloading packets to ASF. Change-Id: Icf765cbedf13cd92a5623e973b9e8111e22e34c6 CQID : ENGR00297244 Signed-off-by: Alok Makhariya <B46187@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/8517 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Claudiu Manoil <claudiu.manoil@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2014-02-05crypto: caam - make UIO JR driver depend on CONFIG_UIOAlex Porosanu
One could enable the UIO JR driver even if UIO is not enabled in the kernel configuration. This leads to compilation errors. This patch makes the UIO JR driver available if and only if UIO support is available in the kernel configuration. Change-Id: I4664c9839ae2b7e0794487c0f411e67d39d59365 Signed-off-by: Alex Porosanu <alexandru.porosanu@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/8543 Reviewed-by: Ruchika Gupta <ruchika.gupta@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2014-01-29vfio: Fix compilation errorBharat Bhushan
Replaced DOMAIN_ATTR_PAMU_ENABLE with DOMAIN_ATTR_FSL_PAMU_ENABLE and 'DOMAIN_ATTR_PAMU_STASH' with 'DOMAIN_ATTR_FSL_PAMU_STASH' as per upstream PAMU driver. Signed-off-by: Bharat Bhushan <Bharat.Bhushan@freescale.com> Change-Id: I5e8d18d42d4a253479308e2d1becd1bce3e768bb Reviewed-on: http://git.am.freescale.net:8181/7710 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Scott Wood <scottwood@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2014-01-29dpaa_eth: rename dpa-ethtool.c to dpaa_ethtool.cMadalin Bucur
Rename dpa-ethtool.c for file naming uniformity. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I8e1e3e36d8327d5e8f55562ffbd919971e3649c9 Reviewed-on: http://git.am.freescale.net:8181/8121 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Ruxandra Ioana Radulescu <ruxandra.radulescu@freescale.com> (cherry picked from commit f24cc85c55242927f9f980f2a01394eb1950e9f8) Reviewed-on: http://git.am.freescale.net:8181/8471
2014-01-29dpaa_eth: move DPA_SGT_MAX_ENTRIES to dpaa_eth_common.hMadalin Bucur
Move declaration to common header and remove duplicate declaration. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: Iff252ec5a050d72525fc194a6a71ede14e2d6bcf Reviewed-on: http://git.am.freescale.net:8181/8120 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Ruxandra Ioana Radulescu <ruxandra.radulescu@freescale.com> (cherry picked from commit 9c24862ca5eb42ebb944c52baba3c99ce1936d55) Reviewed-on: http://git.am.freescale.net:8181/8470
2014-01-29dpaa_eth: fix checkpatch issues in dpaa_eth_trace.hMadalin Bucur
Fix most of the checkpatch reports in dpaa_eth_trace.h. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I5ba2a79d16a5824698aff4a95d811801c966a6fc Reviewed-on: http://git.am.freescale.net:8181/8119 Reviewed-by: Ruxandra Ioana Radulescu <ruxandra.radulescu@freescale.com> (cherry picked from commit d659fc4a11226c917cea2ce96f7c8c43e0c9e4f5) Reviewed-on: http://git.am.freescale.net:8181/8469
2014-01-29dpaa_eth: newline and whitespace fixesMadalin Bucur
Fixed some minor issues. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I7d64e04d0d7489ba083269eab12c0004245f008d Reviewed-on: http://git.am.freescale.net:8181/8118 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Ruxandra Ioana Radulescu <ruxandra.radulescu@freescale.com> (cherry picked from commit 92dd303256e153b15de5a52715222580d8cc6317) Reviewed-on: http://git.am.freescale.net:8181/8467
2014-01-29dpaa_eth: remove typedef for dpa_fq_cbs_tMadalin Bucur
Fix checkpatch report by removing typedef for dpa_fq_cbs_t. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: Ia7cb7a7524b01ae05fb0849016cdab46abf55de1 Reviewed-on: http://git.am.freescale.net:8181/8117 Reviewed-by: Ruxandra Ioana Radulescu <ruxandra.radulescu@freescale.com> (cherry picked from commit 500081b4bd86f5b9d4ae00c1307bd1a14df4d2c4) Reviewed-on: http://git.am.freescale.net:8181/8466
2014-01-29dpaa_eth: moved two variablesMadalin Bucur
Moved dpa_rx_extra_headroom and dpa_max_frm from dpaa_eth.c to dpaa_eth_common.c. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I053d0e560cb0192030b038cb7b09612dd6e0174e Reviewed-on: http://git.am.freescale.net:8181/8116 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Ruxandra Ioana Radulescu <ruxandra.radulescu@freescale.com> (cherry picked from commit eb8d5565a28bdb9ef4eff681e755f5022f4b5cae) Reviewed-on: http://git.am.freescale.net:8181/8465
2014-01-29dpaa_eth: remove unused entry in MakefileMadalin Bucur
Remove one unused entry in Makefile. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: Iaf5c1692da71594904f80f9199dab81964f50301 Reviewed-on: http://git.am.freescale.net:8181/8115 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Ruxandra Ioana Radulescu <ruxandra.radulescu@freescale.com> (cherry picked from commit 84440cfd5d1ec377ad43f53a5da57a43ad764d8d) Reviewed-on: http://git.am.freescale.net:8181/8463
2014-01-29dpaa_eth: remove CONFIG_FSL_DPAA_ETH_WQ_LEGACYMadalin Bucur
De-feature obsolete option CONFIG_FSL_DPAA_ETH_WQ_LEGACY and default to CONFIG_FSL_DPAA_ETH_WQ_MULTI behavior. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I2a68309d494ea2016dab6989281f76216b069f51 Reviewed-on: http://git.am.freescale.net:8181/8114 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com> Reviewed-by: Ruxandra Ioana Radulescu <ruxandra.radulescu@freescale.com> (cherry picked from commit 765648bf1b6b2b4d2fdf43d1bb7c99ca25b83ec0) Reviewed-on: http://git.am.freescale.net:8181/8462
2014-01-29dpaa_eth: remove CONFIG_FSL_DPAA_TX_RECYCLEMadalin Bucur
The option to enable or disable Tx recycling for FMan v3 platforms was wrong - the recycling code is always assuming that recycling is turned on and the config option only selected the hw type. When running on FMan v3 with this option disabled the non-FMan v3 recycling implementation was used erroneously. Replacing the config option with the FMan v3 option. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: Ide82bcf2679df6768ea926865d92daa5a1db0447 Reviewed-on: http://git.am.freescale.net:8181/8113 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Ruxandra Ioana Radulescu <ruxandra.radulescu@freescale.com> (cherry picked from commit f7b794777e3fda0511a241763a98a35c0a1bc784) Reviewed-on: http://git.am.freescale.net:8181/8461
2014-01-23crypto: caam/qi - fix listlock access method Horia Geanta
Use interrupt-safe version of spin_lock_* for listlock, since the lock is used also in interrupt context. If not, deadlocks can occur - for e.g.: -CPU 1 takes listlock when doing caam_qi_enqueue() -net_rx_action preempts CPU1, CPU1 tries to take listlock in fd_to_drv_req()->lookup_drv_req() INFO: rcu_sched self-detected stall on CPU { 1} (t=5250 jiffies g=92 c=91 q=9) Call Trace: [c00000017ffa3210] [c000000000008e08] .show_stack+0x78/0x1e0 (unreliable) [c00000017ffa32e0] [c0000000000ac74c] .rcu_check_callbacks+0x41c/0x850 [c00000017ffa3400] [c000000000049508] .update_process_times+0x48/0x90 [c00000017ffa3490] [c00000000008750c] .tick_sched_handle.isra.12+0x3c/0x50 [c00000017ffa3500] [c00000000008770c] .tick_sched_timer+0x5c/0xa0 [c00000017ffa35a0] [c0000000000641d0] .__run_hrtimer.isra.31+0x80/0x130 [c00000017ffa3630] [c000000000064e60] .hrtimer_interrupt+0x130/0x3d0 [c00000017ffa3730] [c00000000000ff24] .timer_interrupt+0x114/0x1c0 [c00000017ffa37d0] [c000000000017e84] exc_0x900_common+0x104/0x108 --- Exception: 901 at ._raw_spin_lock+0x30/0x70 LR = .lookup_drv_req+0x100/0x1d0 [c00000017ffa3ac0] [c00000017ffa3b70] 0xc00000017ffa3b70 (unreliable) [c00000017ffa3b60] [c00000000058223c] .fd_to_drv_req+0x3c/0xd0 [c00000017ffa3c00] [c000000000582398] .caam_rsp_fq_dqrr_cb+0xc8/0x210 [c00000017ffa3c90] [c0000000005ac0cc] .qman_p_poll_dqrr+0x26c/0x2f0 [c00000017ffa3d50] [c000000000581fe8] .caam_qi_poll+0x28/0x70 [c00000017ffa3de0] [c0000000005f8840] .net_rx_action+0x180/0x280 [c00000017ffa3ea0] [c000000000040e60] .__do_softirq+0x150/0x260 [c00000017ffa3f90] [c000000000014660] .call_do_softirq+0x14/0x24 [c000000176df33f0] [c000000000005284] .do_softirq+0x104/0x140 --- Exception: c000000000affde0 at .__copy_tofrom_user_base+0x98/0x5fc LR = .copy_to_user+0x40/0x60 [c000000176df3490] [c0000000000417c8] .irq_exit+0xb8/0x110 (unreliable) [c000000176df3510] [c000000000004e34] .do_IRQ+0xb4/0x1e0 [c000000176df35c0] [c00000000001776c] exc_0x500_common+0xfc/0x100 --- Exception: 501 at ._raw_spin_lock+0x24/0x70 LR = .caam_qi_enqueue+0x150/0x380 [c000000176df38b0] [c000000000581c9c] .caam_qi_enqueue+0xbc/0x380 (unreliable) [c000000176df3970] [80000000005b0858] .tls_decrypt+0xd8/0x180 [caamalg_qi] [c000000176df3a20] [80000000004e28c8] .cryptodev_cipher_decrypt+0xd8/0x190 [cryptodev] [c000000176df3aa0] [80000000004e4794] .crypto_auth_run+0x414/0xe90 [cryptodev] [c000000176df3bc0] [80000000004e1424] .cryptodev_compat_ioctl+0x264/0x480 [cryptodev] [c000000176df3d10] [c00000000016b3b8] .compat_sys_ioctl+0xd8/0x1b40 [c000000176df3e30] [c000000000000598] syscall_exit+0x0/0xd0 Signed-off-by: Horia Geanta <horia.geanta@freescale.com> Change-Id: Ie92ae6f4d30118359d71cbd6d548e7d6f17086de Reviewed-on: http://git.am.freescale.net:8181/7369 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Alexandru Porosanu <alexandru.porosanu@freescale.com> Reviewed-by: Yashpal Dutta <yashpal.dutta@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com> (cherry picked from commit 3b191cf6494af0157a4dda48aadf2f5597d0c144) Change-Id: Ie92ae6f4d30118359d71cbd6d548e7d6f17086de Reviewed-on: http://git.am.freescale.net:8181/7385 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2014-01-23crypto: caam/qi - fix aead job descriptor Horia Geanta
aead job descriptor is not initialized correctly: platform caam_qi.0: Error: 0x40003401 in CAAM response FD platform caam_qi.0: Rsp status: 0x40003401: DECO: desc idx 52: SGT Length Error. The descriptor is trying to read more data than is contained in the SGT table. Fix it by using exactly the same logic as for caam. Signed-off-by: Horia Geanta <horia.geanta@freescale.com> Change-Id: Ia4695d6929cfbe34b83789a3719bfd9d51c8d0e6 Reviewed-on: http://git.am.freescale.net:8181/7370 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Alexandru Porosanu <alexandru.porosanu@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com> (cherry picked from commit c5021a423929fe719cfa7885565c8210f2fc40a7) Change-Id: Ia4695d6929cfbe34b83789a3719bfd9d51c8d0e6 Reviewed-on: http://git.am.freescale.net:8181/7753 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2014-01-22fsl_qman: Remove dead codeEmil Medve
This fixes the following smatch warning(s): qm_shutdown_fq() info: ignoring unreachable code. Signed-off-by: Emil Medve <Emilian.Medve@Freescale.com> Change-Id: I75c1dfbb61c6aad1a4e9c098f7da8a041353fdd6 Reviewed-on: http://git.am.freescale.net:8181/8174 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Haiying Wang <Haiying.Wang@freescale.com> Reviewed-by: Emilian Medve <Emilian.Medve@freescale.com>
2014-01-22fsl_qman: Fix loop exit conditionEmil Medve
This fixes the following smatch warning: qm_dqrr_init() warn: we never enter this loop Signed-off-by: Emil Medve <Emilian.Medve@Freescale.com> Change-Id: I522ff720a441c23b1642e3437c4e03b072d2a678 Reviewed-on: http://git.am.freescale.net:8181/8172 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Haiying Wang <Haiying.Wang@freescale.com> Reviewed-by: Emilian Medve <Emilian.Medve@freescale.com>