summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-08-30Revert "dpa_offload: Added Traffic Manager user-space counter implementation" Rivera Jose-B46482
This reverts commit 658fb7c23113780e96ac8fc2503a058d49377281 This change has a bug related to misuse of the mutex_trylock() API (see line 3965) and causes non-obvious merge conflicts when merging to sdk-v1.4.x. Please rework this patch to ensure these issues are solved. Change-Id: If6be2d7fc98e3b3f0689b8c8abd241216adfd2f9 Reviewed-on: http://git.am.freescale.net:8181/4327 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-08-29dpa_offload: Reduce the size of the IPv4 header options fieldMarian Chereji
According to RFC 791, the size of the IPv4 header (options included) is represented on 4 bits (IHL), hence it can be an absolute maximum of 15 * 4 = 60 bytes. The IPv4 options buffer size field in the fsl_dpa_offload.h header file, in the ipv4_header data structure, was declared as an "unsigned int" and this was causing a static analysis warning in dpa_classifier. The field was reduced to uint8_t which is more than enough to store the size of the IPv4 frame options. Signed-off-by: Marian Chereji <marian.chereji@freescale.com> Change-Id: I69fb1307329b68da652ed85d659aa10e34c5af67 Reviewed-on: http://git.am.freescale.net:8181/4264 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Bulie Radu-Andrei-B37577 <Radu.Bulie@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-08-28fmd: fix muram size for b4860rev2Mandy Lavi
Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Change-Id: Id1be0b2511e5c36fd785f8ee72f4189305c7ac71 Reviewed-on: http://git.am.freescale.net:8181/4105 Reviewed-by: Bucur Madalin-Cristian-B32716 <madalin.bucur@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-08-28fsl_qman: fix the incorrect return for xsfdr read in debugfsHaiying Wang
and fix the mask value for correctly getting the XSFDR value. Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com> Change-Id: I72ba857bd01b93ca6042e354c7ca8c391f430e83 Reviewed-on: http://git.am.freescale.net:8181/4059 Reviewed-by: Thorpe Geoff-R01361 <Geoff.Thorpe@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2014-04-27dpaa_eth/mac: Sync with the unique MDIO bus name for "fixed-link" PHY(s)Shruti Kanetkar
'9e6c643 phy/fixed: use an unique MDIO bus name' changed the name of the fixed PHY bus to "fixed-0". This update has been already done for the non-dpaa SoC(s) in 'e5c7d1f of/mdio: fix fixed link bus name' Signed-off-by: Shruti Kanetkar <Shruti@Freescale.com> Change-Id: Ie2ead771bc74a2b62c26eca6b5618bdebbe1eb61 Reviewed-on: http://git.am.freescale.net:8181/4129 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Hamciuc Bogdan-BHAMCIU1 <bogdan.hamciuc@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-08-28dpa_offload: Added Traffic Manager user-space counter implementationAurelian Zanoschi
Added support for Traffic Manager user-space DPA Stats counter in driver. The Traffic Manager counters can be used both from user-space or kernel-space depending on the user needs. If the counter is created from user-space, all the retrieving mechanism is implemented in user-space and same happens for kernel-space case. The counters is marked as a user-space counter and the kernel will provide for this counter only the offset where the user-space library to write the statistics of the counter. This patch corrects some compilation warnings caused by QMan CEETM API changes. Change-Id: I48c4df286ab78efe2a16d46c4fd376d153732944 Signed-off-by: Aurelian Zanoschi <Aurelian.Zanoschi@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/4196 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Chereji Marian-Cornel-R27762 <marian.chereji@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-08-27Update the operation mapping settings required by the DSP side for MapleVarun Sethi
and DMA. For the DSP side the basic requirement for stashing is to prevent device initiated reads and writes going to the DDR. RWNITC and WWSOT operation mappings aid in achieving these objectives. Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com> Change-Id: I1634ff877d9c8e7c6a3de95aee4a3848cc149973 Reviewed-on: http://git.am.freescale.net:8181/4128 Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com> Tested-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-08-27Enhance get_stash_id API to get the stashid for DSP L2 cache.Varun Sethi
The stashid for the DSP cluster L2 cache is programmed by SDOS. Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com> Change-Id: I7a8203e2dd99e6ccfeacd25305378a4c33becac2 Reviewed-on: http://git.am.freescale.net:8181/4036 Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com> Tested-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-08-27Check for valid window before proceeding to set the stash or the omi attribute.Varun Sethi
Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com> Change-Id: I6bbad9f1f1240fa23ae6997f5a0cdc6cb49228e1 Reviewed-on: http://git.am.freescale.net:8181/4035 Reviewed-by: Yoder Stuart-B08248 <stuart.yoder@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com> Tested-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-08-26Modify USDPAA DMA mapping code to allow non power of 4 mappingsRoy Pledge
This patch modifies the USDPAA code to allow non power of 4 DMA maps. The code will use multiple TLB1 entries if needed. DMA maps are still phyically and virually contiguous. Signed-off-by: Roy Pledge <Roy.Pledge@freescale.com> Change-Id: I42942067059a3c06f0b0d031d266d228295c7c45 Reviewed-on: http://git.am.freescale.net:8181/3857 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Wang Haiying-R54964 <Haiying.Wang@freescale.com> Reviewed-by: Rivera Jose-B46482 <Jose.G.Rivera@freescale.com>
2013-08-26Add API to allocate specific portals based on index. This allows an ↵Roy Pledge
application to get back the exact portal it was previously using by specifing the portals index value. Signed-off-by: Roy Pledge <Roy.Pledge@freescale.com> Change-Id: I8233816f0519731eb65b3671d68a01266eee42dd Reviewed-on: http://git.am.freescale.net:8181/4002 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Ladouceur Jeffrey-R11498 <Jeffrey.Ladouceur@freescale.com> Reviewed-by: Wang Haiying-R54964 <Haiying.Wang@freescale.com> Reviewed-by: Rivera Jose-B46482 <Jose.G.Rivera@freescale.com>
2013-08-26powerpc/85xx: add hardware automatically enter pw20 stateWang Dongsheng
Using hardware features make core automatically enter PW20 state. Set a TB count to hardware, the effective count begins when PW10 is entered. When the effective period has expired, the core will proceed from PW10 to PW20 if no exit conditions have occurred during the period. Signed-off-by: Wang Dongsheng <dongsheng.wang@freescale.com> Change-Id: I199d6bedeb045f421da69d8ce99c45bea517fc32 Reviewed-on: http://git.am.freescale.net:8181/3948 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Wood Scott-B07421 <scottwood@freescale.com> Reviewed-by: Rivera Jose-B46482 <Jose.G.Rivera@freescale.com>
2013-08-26powerpc/85xx: add hardware automatically enter altivec idle stateWang Dongsheng
Each core's AltiVec unit may be placed into a power savings mode by turning off power to the unit. Core hardware will automatically power down the AltiVec unit after no AltiVec instructions have executed in N cycles. The AltiVec power-control is triggered by hardware. Signed-off-by: Wang Dongsheng <dongsheng.wang@freescale.com> Change-Id: I613fba4492d3d65dcf903d13735bc9e45e5d443c Reviewed-on: http://git.am.freescale.net:8181/3731 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Wood Scott-B07421 <scottwood@freescale.com> Reviewed-by: Rivera Jose-B46482 <Jose.G.Rivera@freescale.com>
2013-08-26Add operation mapping for DMA controller and Maple.Varun Sethi
These are required for ALU DSP stashing use case. Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com> Change-Id: I7efacb81b60d23e6e5f91632547f8b9a04028a1f Reviewed-on: http://git.am.freescale.net:8181/3442 Reviewed-by: Yoder Stuart-B08248 <stuart.yoder@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-08-26Add operation mapping for PMAN.Varun Sethi
Setup and operation mapping index for PMAN. Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com> Change-Id: I4384a247491293260c1da1d4cf6cfc3b2bec2034 Reviewed-on: http://git.am.freescale.net:8181/3441 Reviewed-by: Yoder Stuart-B08248 <stuart.yoder@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-08-26Make stash id and operation mapping index per window attributes.Varun Sethi
Stash ID and operation mapping can now be set per dma window. Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com> Change-Id: I987abbcba0575fea1b43843c2bce342f4eae4df2 Reviewed-on: http://git.am.freescale.net:8181/3439 Reviewed-by: Yoder Stuart-B08248 <stuart.yoder@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Conflicts: drivers/iommu/fsl_pamu.c drivers/iommu/fsl_pamu.h drivers/iommu/fsl_pamu_domain.c
2013-08-26Move operation mapping index to iommu.h.Varun Sethi
Represent operation mappings as an enum. These have been moved to iommu.h to support IOMMU API for setting operation mappings per window. Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com> Change-Id: I900274f8ed703b9e10a4b3fb7d6653bd8c3a080d Reviewed-on: http://git.am.freescale.net:8181/3438 Reviewed-by: Yoder Stuart-B08248 <stuart.yoder@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-08-26Introduce an API for setting operation mapping index per window.Varun Sethi
This API can be used for setting operation mapping per DMA window. Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com> Change-Id: Iea6d7993f09bddbaae94c475fd192f5106784bde Reviewed-on: http://git.am.freescale.net:8181/3440 Reviewed-by: Yoder Stuart-B08248 <stuart.yoder@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Conflicts: drivers/iommu/fsl_pamu.c drivers/iommu/fsl_pamu.h drivers/iommu/fsl_pamu_domain.c Change-Id: Iea6d7993f09bddbaae94c475fd192f5106784bde Reviewed-on: http://git.am.freescale.net:8181/3440 Reviewed-by: Schmitt Richard-B43082 <B43082@freescale.com> Tested-by: Schmitt Richard-B43082 <B43082@freescale.com>
2013-08-26Updates to device trees for B4860 for DSP clusters and their L2 cachesPoonam Aggrwal
B4860 has 1 PPC core cluster and 3 DSP core clusters. Similarly B4420 has 1 PPC core cluster and 1 DSP core cluster. Each DSP core cluster consists of 2 SC3900 cores and a shared L2 cache. 1. Add DSP clusters for B4420 2. Reorganized the L2 cache nodes such that they now appear in only the soc specific dtsi files(b4860si-post.dtsi and b4420si-post.dtsi). Earlier they were shown partly in common b4si-post.dtsi and si specific b4860si-post.dtsi files . 3. Fixed an issue in b4860si-pre.dtsi, now DSP cluster correctly point to their respective L2 caches Signed-off-by: Poonam Aggrwal <poonam.aggrwal@freescale.com> Signed-off-by: Shaveta Leekha <shaveta@freescale.com> Change-Id: Ie09007f4c596fc5947e0b4b005225b8b1f9aa443 Reviewed-on: http://git.am.freescale.net:8181/4005 Reviewed-by: Sethi Varun-B16395 <Varun.Sethi@freescale.com> Reviewed-by: Rivera Jose-B46482 <Jose.G.Rivera@freescale.com> Tested-by: Rivera Jose-B46482 <Jose.G.Rivera@freescale.com>
2013-08-26dpa_offload : fix kernel segfault in ipsec_offload applicationAlexandru Badicioiu
Buffer pool id for frames enqueued to ipsec_offload inbound macless interface must match the interface bpid. Signed-off-by: Alexandru Badicioiu <alexandru.badicioiu@freescale.com>
2013-08-12fmd: remove unused macrosMandy Lavi
Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Change-Id: If2fda57aaf42719d0a3aae2256d513856583913b Reviewed-on: http://git.am.freescale.net:8181/3427 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-08-12fmd: handle erratum A006981Mandy Lavi
Changes open dma allocation to workaround erratum A006981 Also verify that it applies only to B4-rev1 while rev2 should have this erratum fixed Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Change-Id: Icc0552269da9ad80763e8ad1394d6ad67ee143a8 Reviewed-on: http://git.am.freescale.net:8181/3428 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-08-12fmd: add more details to fman_chosen_node_device_tree DocumentaionMandy Lavi
Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Change-Id: I8bf5700cadb8e40dd68728f8aa78ba1a4d70f054 Reviewed-on: http://git.am.freescale.net:8181/3429 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-08-12fmd: better support debug in preemptible kernelMandy Lavi
Prevent sleeping function to be called from invalid context Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Change-Id: I1fa7619489248c823d55a96b00cc4b7bd75bbf6d Reviewed-on: http://git.am.freescale.net:8181/3430 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-08-10qman: Add CI-stashing support for QMan rev3.0 or laterHaiying Wang
Signed-off-by: Geoff Thorpe <Geoff.Thorpe@freescale.com> Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com> Change-Id: Icda6a8547559ab45ceea7160cde566ca022e92e8 Reviewed-on: http://git.am.freescale.net:8181/3698 Reviewed-by: Schmitt Richard-B43082 <B43082@freescale.com> Tested-by: Schmitt Richard-B43082 <B43082@freescale.com>
2013-08-10qman: remove eqcr_cmodeGeoff Thorpe
It was unused, and confusing efforts to implement support for EQCR_CI-stashing. Signed-off-by: Geoff Thorpe <Geoff.Thorpe@freescale.com> Change-Id: Ia390a4b4b54efba60b4e9b12a73b7d1ec88bf530 Reviewed-on: http://git.am.freescale.net:8181/3697 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Wang Haiying-R54964 <Haiying.Wang@freescale.com> Reviewed-by: Schmitt Richard-B43082 <B43082@freescale.com>
2013-08-09dpa_offload: dpa_ipsec - Update create SA function to set hmd to invalidAndrei Varvara
DPA Classifier API was updated by adding a new attribute (hmd) to the struct dpa_cls_tbl_next_table_desc. DPA IPSec is using the classifier feature for linking two tables, if inbound policy verification is required but does not require the hmd option. A minor update had to be made to set the hdm to -1 (not valid) otherwise the 0 value would have been concidered valid by classifier and crash since not hmd is required here. Signed-off-by: Andrei Varvara <andrei.varvara@freescale.com> Change-Id: I76eccbf6a60b7d563540de539be5144112c1567c Reviewed-on: http://git.am.freescale.net:8181/3474 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Reviewed-by: Schmitt Richard-B43082 <B43082@freescale.com> Tested-by: Schmitt Richard-B43082 <B43082@freescale.com>
2013-08-09dpa_offload: dpa_ipsec - Add support for NULL encryptionAndrei Varvara
The dpa ipsec component was not supporting ESP with NULL encryption. The patch is adding this suport. Signed-off-by: Andrei Varvara <andrei.varvara@freescale.com> Change-Id: I89111367e60c4592289687b0a13d84ac2911d23c Reviewed-on: http://git.am.freescale.net:8181/3473 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Reviewed-by: Schmitt Richard-B43082 <B43082@freescale.com> Tested-by: Schmitt Richard-B43082 <B43082@freescale.com>
2013-08-09crypto: caam - Add define for NULL encryptionAndrei Varvara
This define is required for making descriptors with NULL encryption. Change-Id: If71ee727f18f1ea23a6bbe67b03046d526897a52 Signed-off-by: Andrei Varvara <andrei.varvara@freescale.com> Change-Id: I61ef1a7d6bcf115f99f5160f76154c09e5f7f7da Reviewed-on: http://git.am.freescale.net:8181/3472 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Reviewed-by: Schmitt Richard-B43082 <B43082@freescale.com> Tested-by: Schmitt Richard-B43082 <B43082@freescale.com>
2013-08-09dpa_offload: Copy multicast group and header manipulation descriptors to ↵Radu Bulie
userspace during look-up by key or by ref operations Multicast group and hmanip descriptors were copied to userspace in classifier wrapper during look-up by key or by ref operations. The patch fixes the above issue. Signed-off-by: Radu Bulie <radu.bulie@freescale.com> Change-Id: Ibba7869bcbe339a3ef23bd4071a3aaa682fe7b9d Reviewed-on: http://git.am.freescale.net:8181/3353 Reviewed-by: Bulie Radu-Andrei-B37577 <Radu.Bulie@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Chereji Marian-Cornel-R27762 <marian.chereji@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Reviewed-by: Schmitt Richard-B43082 <B43082@freescale.com> Tested-by: Schmitt Richard-B43082 <B43082@freescale.com>
2013-08-09dpa_offload: Copy storage profile id to userspace during look-up by key or ↵Radu Bulie
by ref operations Not all parameters were copied to userspace in classifier wrapper during look-up by key or by ref operations. The patch fixes the above issue. Change-Id: I4c33455a327c8dfd6fd0fa28d13cc7e28b856714 Signed-off-by: Radu Bulie <radu.bulie@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/3281 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Chereji Marian-Cornel-R27762 <marian.chereji@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-08-08fmd: add ioctl support to both xxTableGetMissStatistics functionsMandy Lavi
FM_PCD_MatchTableGetMissStatistics and FM_PCD_HashTableGetMissStatistics Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Change-Id: I56a02300f4603245344effc898ff9fdd137d8e4c Reviewed-on: http://git.am.freescale.net:8181/3905 Reviewed-by: Schmitt Richard-B43082 <B43082@freescale.com> Tested-by: Schmitt Richard-B43082 <B43082@freescale.com>
2013-08-08fmd: add T4/B4 definition FM_NO_GUARANTEED_RESET_VALUESMandy Lavi
Apparently reset values of B4/T4 in fmd are not completely reliable. will use this definition to force fman init values. Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Change-Id: Id0b16cf7faf8c53ab9741bcd370e27e91a9ab2a0 Reviewed-on: http://git.am.freescale.net:8181/3904 Reviewed-by: Chereji Marian-Cornel-R27762 <marian.chereji@freescale.com> Tested-by: Schmitt Richard-B43082 <B43082@freescale.com> Reviewed-by: Schmitt Richard-B43082 <B43082@freescale.com>
2013-08-08dpa_offload: Add support in DPA Stats for miss statisticsAnca Jeanina FLOAREA
Added support in DPA Stats to retrieve the statistics for the miss-entry of either a Classification Node or a Classification Table. The user can request statistics for miss-entry by providing the key set to NULL. The Classification counter API was changed in order to allow the user to provide NULL instead of a valid key. Signed-off-by: Anca Jeanina FLOAREA <anca.floarea@freescale.com> Change-Id: Id871766e5cc7b494c934096829e12af15ded7544 Reviewed-on: http://git.am.freescale.net:8181/3830 Reviewed-by: Zanoschi Aurelian-B43522 <Aurelian.Zanoschi@freescale.com> Reviewed-by: Chereji Marian-Cornel-R27762 <marian.chereji@freescale.com> Reviewed-by: Schmitt Richard-B43082 <B43082@freescale.com> Tested-by: Schmitt Richard-B43082 <B43082@freescale.com>
2013-08-08dpa_offload: Add possibility to query classification table miss action detailsMarian Chereji
Added a new function to query classification table miss action details. This function is only advertised as internal API and is needed by the DPA Stats component to acquire Miss Action Statistics. Signed-off-by: Marian Chereji <marian.chereji@freescale.com> Change-Id: If9f506316c887bc44ebd5363c526a8f4fda3da1c Reviewed-on: http://git.am.freescale.net:8181/3829 Reviewed-by: Schmitt Richard-B43082 <B43082@freescale.com> Tested-by: Schmitt Richard-B43082 <B43082@freescale.com>
2013-08-08fmd: support retrieval of more statistics countersMandy Lavi
- miss entry in a CC Node - miss entry in the hash table Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Change-Id: Iacbebff6f8f7ef1fa9c97b24d1072515f5098860 Reviewed-on: http://git.am.freescale.net:8181/3828 Reviewed-by: Lavi Mandy-R52568 <Mandy.Lavi@freescale.com> Reviewed-by: Chereji Marian-Cornel-R27762 <marian.chereji@freescale.com> Reviewed-by: Schmitt Richard-B43082 <B43082@freescale.com> Tested-by: Schmitt Richard-B43082 <B43082@freescale.com>
2013-08-07powerpc/b4860: Add StarCore/SC3900 nodes in B4860 device filesShaveta Leekha
- Add dsp nodes in B4860 pre silicon device file - Add L2 cache nodes for dsp/Starcores in B4860 post silicon file Signed-off-by: Shaveta Leekha <shaveta@freescale.com> Change-Id: I10329607b97961a44f46bc814032fc9faa0e7f96 Reviewed-on: http://git.am.freescale.net:8181/3693 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Sethi Varun-B16395 <Varun.Sethi@freescale.com> Reviewed-by: Wood Scott-B07421 <scottwood@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Reviewed-by: Rivera Jose-B46482 <Jose.G.Rivera@freescale.com> Tested-by: Rivera Jose-B46482 <Jose.G.Rivera@freescale.com>
2013-08-07powerpc/fsl-booke: Work around erratum A-006958Scott Wood
Erratum A-006598 says that 64-bit mftb is not atomic -- it's subject to a similar race condition as doing mftbu/mftbl on 32-bit. The lower half of timebase is updated before the upper half; thus, we can share the workaround for a similar bug on Cell. This workaround involves looping if the lower half of timebase is zero, thus avoiding the need for a scratch register (other than CR0). This workaround must be avoided when the timebase is frozen, such as during the timebase sync code. This deals with kernel and vdso accesses, but other userspace accesses will of course need to be fixed elsewhere. Signed-off-by: Scott Wood <scottwood@freescale.com> Change-Id: I88da5fef252872ba17c4496ed1a053dc4be645af --- v2: Share the Cell workaround instead of using the workaround suggested by the erratum. Reviewed-on: http://git.am.freescale.net:8181/3749 Reviewed-by: Rivera Jose-B46482 <Jose.G.Rivera@freescale.com> Tested-by: Rivera Jose-B46482 <Jose.G.Rivera@freescale.com>
2013-08-07powerpc/e6500: skip rev1 errata workaround on rev2Scott Wood
"default y" prevents the mere absence of those config lines from turning off the errata. Signed-off-by: Scott Wood <scottwood@freescale.com> Change-Id: Ib825e8c5941f422990a997a79412669bda677d79 Reviewed-on: http://git.am.freescale.net:8181/3748 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Rivera Jose-B46482 <Jose.G.Rivera@freescale.com>
2013-08-02powerpc/dts: fix sRIO and RMan error interrupts for b4860Minghuan Lian
For B4 platform, MPIC EISR register is in reversed bitmap order, instead of "Error interrupt source 0-31. Bit 0 represents SRC0." the correct ordering is "Error interrupt source 0-31. Bit 0 represents SRC31." This patch is to fix sRIO and RMan EISR bit value of error interrupts in dts node. Signed-off-by: Minghuan Lian <Minghuan.Lian@freescale.com> Change-Id: I3eacf5ebee6da5ac847d6ab93fe1e38a07e57176 Reviewed-on: http://git.am.freescale.net:8181/3616 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Wood Scott-B07421 <scottwood@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Reviewed-by: Schmitt Richard-B43082 <B43082@freescale.com> Tested-by: Schmitt Richard-B43082 <B43082@freescale.com>
2013-07-19Merge remote-tracking branch 'fsl_devel/b4860rev2' into sdk1.4Andy Fleming
2013-07-18dpa_offload: Add direct scheme support for classifier miss actionRadu Bulie
This patch enables the direct schemesupport when a miss action is configured. Signed-off-by: Radu Bulie <radu.bulie@freescale.com> Change-Id: Ie16ab1e611a06b026fb5927ec2efea314bb0e2e1 Reviewed-on: http://git.am.freescale.net:8181/3354 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Chereji Marian-Cornel-R27762 <marian.chereji@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-07-18dpa_offload: Add separate resource pointer for multicast group import operationRadu Bulie
When multicast group was preallocated from a xml PCD file, the handle to the group was given as a multicast group parameter. To align the multicast component with header manipulation and classifier components, the group handle will be given as a resource input parameter to the function that creates a multicast group. Signed-off-by: Radu Bulie <radu.bulie@freescale.com> Change-Id: I254d1c681cc016513d4cb569e0dfcf5c56478163 Reviewed-on: http://git.am.freescale.net:8181/3279 Reviewed-by: Chereji Marian-Cornel-R27762 <marian.chereji@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-07-18fmd: COMPAT array size increased in order to be able to map more ccnode idsMandy Lavi
Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> ENGR00270413 Change-Id: I9ca855698d1eaa93b7cb131d811f4c9dd6c72088 Reviewed-on: http://git.am.freescale.net:8181/3297 Reviewed-by: Bucur Madalin-Cristian-B32716 <madalin.bucur@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-07-18fmd: fix wrapper error when adding range statistics countersMandy Lavi
Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> ENGR00269928 Change-Id: I7fa7fec2f1eef4b8233ed0d0069e30557adb4bda Reviewed-on: http://git.am.freescale.net:8181/3296 Reviewed-by: Bucur Madalin-Cristian-B32716 <madalin.bucur@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-07-18fmd: fix ambiguity with naming of ports in sysfsMandy Lavi
Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> ENGR00258538 Change-Id: If05f2a070c35c9884782d879566b04f40accfab8 Reviewed-on: http://git.am.freescale.net:8181/3295 Reviewed-by: Chereji Marian-Cornel-R27762 <marian.chereji@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-07-18fmd: exposed muram free size through sysfsMandy Lavi
Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Change-Id: I69b5d2f92045daa71fd8dd6765596397fe736ef5 Reviewed-on: http://git.am.freescale.net:8181/3292 Reviewed-by: Bucur Madalin-Cristian-B32716 <madalin.bucur@freescale.com> Reviewed-by: Hamciuc Bogdan-BHAMCIU1 <bogdan.hamciuc@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-07-18dpa_offload: Add DPA Stats driver support for udev devicesAurelian Zanoschi
The device file in the file system is created automatically at init by the driver without need of any mknod commands. Change-Id: Ib0d5d4a47d3e92ec3d7a8813223017e0c24503a5 Signed-off-by: Aurelian Zanoschi <Aurelian.Zanoschi@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/2881 Reviewed-by: Varvara Andrei-B21317 <andrei.varvara@freescale.com> Reviewed-by: Floarea Anca Jeanina-B12569 <anca.floarea@freescale.com> Reviewed-by: Chereji Marian-Cornel-R27762 <marian.chereji@freescale.com> Reviewed-by: Bulie Radu-Andrei-B37577 <Radu.Bulie@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-07-12Put the PCI specific code in the PAMU driver under CONFIG_PCI.Varun Sethi
This fixes the problem where the kernel build breaks, when PCI support is disabled. Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com> Change-Id: I698626ec0a40ba81ef132890bc339c6be10d8673 Reviewed-on: http://git.am.freescale.net:8181/3282 Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-07-12Put the PCI specific code in the PAMU driver under CONFIG_PCI.Varun Sethi
This fixes the problem where the kernel build breaks, when PCI support is disabled. Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com> Change-Id: I698626ec0a40ba81ef132890bc339c6be10d8673 Reviewed-on: http://git.am.freescale.net:8181/3282 Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>