summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-10-02Merge branch 'b4860rev2' into sdk-v1.4.xJ. German Rivera
2013-10-02dpa_offload: Allow statistics enable on NEXT_TABLE classifier table entriesMarian Chereji
The DPA classifier allowed the user to enable statistics only for "enqueue" and "drop" type table entries. It now allows the user to enable statistics also for the "next_table" type table entries. Change-Id: I9d57af14922170a7554431b7ba5abcaaaeac04ac Signed-off-by: Marian Chereji <marian.chereji@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/5151 Reviewed-by: Floarea Anca Jeanina-B12569 <anca.floarea@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-02dpa_offload: Fix de-allocation of uninitialized valueAnca Jeanina FLOAREA
The tbl pointer is dereference without it being previously initialized. The code should use variable cnode instead of tbl in case DPA Stats counters of type DPA_STATS_CNT_CLASSIF_NODE is being created. Signed-off-by: Anca Jeanina FLOAREA <anca.floarea@freescale.com> Change-Id: I10f8cd233f850c339e82d44522f2005dfb9ab27f Reviewed-on: http://git.am.freescale.net:8181/5149 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Marian-Cornel Chereji <marian.chereji@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-02dpa_offload: Fix double free pointer issue in DPA multicast componentRadu Bulie
replic_grp_params variable would be freed a second time if the multicast group creation function failed to obtain a group handle from the FMD driver or imported from the user. The patch fixes the issue by freeing the resource, before any checks are performed on the group handle. Signed-off-by: Radu Bulie <radu.bulie@freescale.com> Change-Id: I547b0a2d476e1cd57aa3b561efa9a2cba99b7e3f Reviewed-on: http://git.am.freescale.net:8181/5147 Reviewed-by: Bulie Radu-Andrei-B37577 <Radu.Bulie@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Marian-Cornel Chereji <marian.chereji@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-09-30dpa_offload: Propagate error code when IPSec module fails to recognize ioctl ↵Marian Chereji
command IPSec module used to silently fail when an ioctl command was not recognized. This may cause applications to take inconsistent (uninitialized) data as granted. Signed-off-by: Marian Chereji <marian.chereji@freescale.com> Change-Id: Id2ec3b0894d9d80332c279c976127c1d40345c7e Reviewed-on: http://git.am.freescale.net:8181/5038 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Varvara Andrei-B21317 <andrei.varvara@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-09-27Merge branch 'b4860rev2' into sdk-v1.4.xJ. German Rivera
2013-09-27dpa_offload: Fix static index initialization in DPA ClassifierMarian Chereji
The static indexes used in recursive functions "init_hm_chain" and "remove_hm_chain" were not initialized. Also, "remove_hm_chain" was not decrementing this index as it removed header manipulations. Signed-off-by: Marian Chereji <marian.chereji@freescale.com> Change-Id: I00bd44c00749578a4c785741082e0ad2c1076c27 Reviewed-on: http://git.am.freescale.net:8181/4412 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-09-27dpa_offload: Improve debug printing in DPA ClassifierMarian Chereji
Signed-off-by: Marian Chereji <marian.chereji@freescale.com> Change-Id: Ibe6ba10afc6447cf284b27cc7e3caed854eab304 Reviewed-on: http://git.am.freescale.net:8181/4413 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-09-27dpa_offload: Change memory allocation to support 512 countersAnca Jeanina FLOAREA
The driver fails to allocate a huge amount of memory in order to support 512 counters. Fixed it by changing memory allocation from static to dynamic for certain structure members. Counters that do not support the modify action will continue to have the memory allocated static. Change-Id: Ibdf76a9ce9e1a11d590166a2f93bbfd282edbeea Signed-off-by: Anca Jeanina FLOAREA <anca.floarea@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/5009 Reviewed-by: Zanoschi Aurelian-B43522 <Aurelian.Zanoschi@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-09-27dpa_offload: Allow 0xff masks for HASH classifier table entriesMarian Chereji
As key masks are not supported in HASH tables, the DPA Classifier was refusing to add an entry to a HASH table with a key that had any mask (mask pointer not NULL). This was changed so that the DPA Classifier can recognize a 0xff mask all over and ignore it. Any other (more complex) mask will still be refused. Change-Id: I0732d873fa5d10def4f2646c2bd248aadcffa736 Signed-off-by: Marian Chereji <marian.chereji@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/4911 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-09-20Merge branch 'b4860rev2' into sdk-v1.4.xJ. German Rivera
2013-09-19dpa_offload : get SEC output frame buffer size from user spaceAlexandru Badicioiu
SEC shared descriptor requires output frame buffer size in the preheader to correctly create the output frame as scatter-gather when the buffer size is less than frame size. Signed-off-by: Alexandru Badicioiu <alexandru.badicioiu@freescale.com> Change-Id: I344296bd541d0f9a8645469f51b33be69373a42b Reviewed-on: http://git.am.freescale.net:8181/4829 Reviewed-by: Varvara Andrei-B21317 <andrei.varvara@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-09-18Merge branch 'b4860rev2' into sdk-v1.4.xJ. German Rivera
2013-09-18fsl/powerpc: fix cpu_setup_fsl_booke.S build errorWang Dongsheng
when we use corenet32_smp_defconfig. Occur, the following error: cpu_setup_fsl_booke.S:83: undefined reference to `.has_pw20_altivec_idle' cpu_setup_fsl_booke.S:108: undefined reference to `.has_pw20_altivec_idle' The root cause is "bl .has_pw20_altivec_idle", the "." is only for 64bit, should be "bl has_pw20_altivec_idle". Signed-off-by: Wang Dongsheng <dongsheng.wang@freescale.com> Change-Id: I13b654b400313a351e50b4105eabb9affa013c34 Reviewed-on: http://git.am.freescale.net:8181/4779 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Zhao Chenhui-B35336 <chenhui.zhao@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-09-17Merge branch 'b4860rev2' into sdk-v1.4.xJ. German Rivera
2013-09-17fsl/powerpc: fix kernel cannot boot under topazWang Dongsheng
when we have embedded hypervisor functionality, the MMUCFG[LPIDSIZE] is not zero, this is issue will occur. asm functions (setup_altivec_idle + setup_pw20_idle) that overwrite register r4. Register r4 holds the second parameter of the setup___setup_cpu_e* functions and is a pointer to the cpu spec features. Under baremetal the param is not used so the problem doesn't show up, but under hypervisor it is used. Signed-off-by: Wang Dongsheng <dongsheng.wang@freescale.com> Tested-by: Laurentiu Tudor <Laurentiu.Tudor@freescale.com> Change-Id: I0fe5f7814ff0a77988f3b8540933a522f3217679 Reviewed-on: http://git.am.freescale.net:8181/4789 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Tudor Laurentiu-B10716 <Laurentiu.Tudor@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-09-16Fix USDPAA dma_mem allocator when blocks needed to be splitRoy Pledge
Also rework the fragment management to eliminate fragmentation Signed-off-by: Roy Pledge <Roy.Pledge@freescale.com> Change-Id: Ieb1aaf3b7d7e3d42b78efe2411952f10bbd2803d Reviewed-on: http://git.am.freescale.net:8181/4774 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Wang Haiying-R54964 <Haiying.Wang@freescale.com> Reviewed-by: Thorpe Geoff-R01361 <Geoff.Thorpe@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-09-16KVM: PPC: e500: Fix SPR PWRMGTCR0 typoMihai Caraman
Fix SPR PWRMGTCR0 typo Signed-off-by: Mihai Caraman <mihai.caraman@freescale.com> Change-Id: I3699ec72ed96e74cb5ba04aeef1d4f0c1e79d944 Reviewed-on: http://git.am.freescale.net:8181/4746 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Wood Scott-B07421 <scottwood@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-09-13fmd: fix again muram size for b4860rev2Mandy Lavi
Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Change-Id: I4ce7f181158f5df8191eea7ad75c0e84cfd01f1b Reviewed-on: http://git.am.freescale.net:8181/4573 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Zanoschi Aurelian-B43522 <Aurelian.Zanoschi@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-09-13KVM: PPC: e500: Fix default TLB for victim hintMihai Caraman
TLB search for victim hint in KVM relied on host to set default TLB. When hardware tablewalk support is enabled the kernel sets TLB0 as default which led KVM to evict the bolted entry. Set and restore the default TLB when searching for victim hint. Signed-off-by: Mihai Caraman <mihai.caraman@freescale.com> Change-Id: Idaa65fda62787a2b9b02641649b8c411ffe458fa Reviewed-on: http://git.am.freescale.net:8181/4698 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Wood Scott-B07421 <scottwood@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-09-12KVM: PPC: e500: Emulate power management control SPRMihai Caraman
e6500 rev2 Linux guest uses power management SPR to enable idle power down for a core and its devices setting up the idle count period at boot time. The host already controls the power management configuration and the guest will benefit from them, so emulate the guest requests as a nop. Signed-off-by: Mihai Caraman <mihai.caraman@freescale.com> Change-Id: Ic6be4493d89c82760500f21318ae326cabb74107 Reviewed-on: http://git.am.freescale.net:8181/4701 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Wood Scott-B07421 <scottwood@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-09-12powerpc/85xx: fix pw20&altivec idle can not work after cpuhotplug restoreWang Dongsheng
PW20 & AltiVec idle should be enabled, when the cpuhotplug restore. Signed-off-by: Wang Dongsheng <dongsheng.wang@freescale.com> Change-Id: Ib4d2ac24eedde0a6a814f3b5f0b42ca03e20494c Reviewed-on: http://git.am.freescale.net:8181/4269 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Wood Scott-B07421 <scottwood@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-09-12Merge branch 'b4860rev2' into sdk-v1.4.xJ. German Rivera
2013-09-11dpa_offload : fix kernel segfault in ipsec_offload application on b4420qdsAlexandru Badicioiu
Signed-off-by: Alexandru Badicioiu <alexandru.badicioiu@freescale.com> Change-Id: I3e168076370ccace0d970fc1afc32b87d90dc891 Reviewed-on: http://git.am.freescale.net:8181/4641 Reviewed-by: Chereji Marian-Cornel-R27762 <marian.chereji@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-09-11dpaa_eth: Fix kernel crash with timestamp support onIoana Radulescu
Recent changes in the driver moved the allocation of the skb on Rx past the point where the timestamp/1588 code used the skb. Reorder a bit the code to avoid NULL pointer dereferencing. Signed-off-by: Ioana Radulescu <ruxandra.radulescu@freescale.com> Change-Id: I09929c13bc88048be77c8678c1fb9956fec41039 Reviewed-on: http://git.am.freescale.net:8181/4443 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Bucur Madalin-Cristian-B32716 <madalin.bucur@freescale.com> Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-09-10dpa_offload: Leave stats counters Ids memory allocated for asynchronous ↵Marian Chereji
statistics requests When the DPA Stats is processing asynchronous requests, the memory allocated for the counter Ids and fed to the processing tasklet must NOT be released in the get_counters call, because the tasklet would work on invalid memory space later on. This memory must be released only when the event which signals the completion of the async request is consumed by the user space. Signed-off-by: Marian Chereji <marian.chereji@freescale.com> Change-Id: I49481a244305fb468781d3f3b1305698b554055f Reviewed-on: http://git.am.freescale.net:8181/4562 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Zanoschi Aurelian-B43522 <Aurelian.Zanoschi@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-09-10dpa_offload: Leave stats counters Ids memory allocated for asynchronous ↵Marian Chereji
statistics requests When the DPA Stats is processing asynchronous requests, the memory allocated for the counter Ids and fed to the processing tasklet must NOT be released in the get_counters call, because the tasklet would work on invalid memory space later on. This memory must be released only when the event which signals the completion of the async request is consumed by the user space. Signed-off-by: Marian Chereji <marian.chereji@freescale.com> Change-Id: I49481a244305fb468781d3f3b1305698b554055f Reviewed-on: http://git.am.freescale.net:8181/4562 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Zanoschi Aurelian-B43522 <Aurelian.Zanoschi@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-09-10dpaa_eth: Fix kernel crash with timestamp support onIoana Radulescu
Recent changes in the driver moved the allocation of the skb on Rx past the point where the timestamp/1588 code used the skb. Reorder a bit the code to avoid NULL pointer dereferencing. Signed-off-by: Ioana Radulescu <ruxandra.radulescu@freescale.com> Change-Id: I09929c13bc88048be77c8678c1fb9956fec41039 Reviewed-on: http://git.am.freescale.net:8181/4443 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Bucur Madalin-Cristian-B32716 <madalin.bucur@freescale.com> Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-09-10dpaa_eth: Fix draining of buffer poolsIoana Radulescu
When draining buffers in batches of eight, we must take into account the fact that BMan will return an error code if there are less than eight buffers left in the pool; when this happens, drain the remaining buffers one by one. And since we're at buffer pool cleanup, make sure allocated bpools get freed in case of errors inside the probe function. Signed-off-by: Ioana Radulescu <ruxandra.radulescu@freescale.com> Change-Id: Id0ae7ed369ded0fff7359ae20b6bf5df64e77fa1 Reviewed-on: http://git.am.freescale.net:8181/4442 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Bucur Madalin-Cristian-B32716 <madalin.bucur@freescale.com> Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-09-10fsl_qman: Fix flipping of CSCI interrupt bitBogdan Hamciuc
Commit 88d4c504 "fsl_qman: implement CEETM CCSCI and update some ccg APIs" inadvertently flips the QM_PIRQ_CSCI bit, reactivating a bug which allowed congestion state to become irreversible because of a missed interrupt. Clearing the CSCI bit puts the system back on track. Signed-off-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com> Change-Id: I18ffa06a694911567a7a690c7a7aa1e7b4cd85b9 Reviewed-on: http://git.am.freescale.net:8181/3031 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Wang Haiying-R54964 <Haiying.Wang@freescale.com> Reviewed-by: Ladouceur Jeffrey-R11498 <Jeffrey.Ladouceur@freescale.com> Reviewed-by: Thorpe Geoff-R01361 <Geoff.Thorpe@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-09-10fsl_qman: Fix flipping of CSCI interrupt bitBogdan Hamciuc
Commit 88d4c504 "fsl_qman: implement CEETM CCSCI and update some ccg APIs" inadvertently flips the QM_PIRQ_CSCI bit, reactivating a bug which allowed congestion state to become irreversible because of a missed interrupt. Clearing the CSCI bit puts the system back on track. Signed-off-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com> Change-Id: I18ffa06a694911567a7a690c7a7aa1e7b4cd85b9 Reviewed-on: http://git.am.freescale.net:8181/3031 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Wang Haiying-R54964 <Haiying.Wang@freescale.com> Reviewed-by: Ladouceur Jeffrey-R11498 <Jeffrey.Ladouceur@freescale.com> Reviewed-by: Thorpe Geoff-R01361 <Geoff.Thorpe@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-09-06dpa_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. Signed-off-by: Aurelian Zanoschi <Aurelian.Zanoschi@freescale.com> Change-Id: Ia97506a8a95e2c764f5176d35497f0ac95cb97cc Reviewed-on: http://git.am.freescale.net:8181/4447 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-09-06powerpc/fs: Add VFAT file-system configsRamneek Mehresh
Add CONFIG_NLS_CODEPAGE_437, CONFIG_NLS_CODEPAGE_850, CONFIG_NLS_ISO8859_1 in default configs for 85xx and 86xx socs. Required for mounting vfat file-systems on USB devices Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com> Change-Id: I6b521f46e6a69a783147bf304ea74e189e89bf8a Reviewed-on: http://git.am.freescale.net:8181/4502 Reviewed-by: Aggrwal Poonam-B10812 <Poonam.Aggrwal@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Gupta Suresh-B42813 <suresh.gupta@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-09-06dpa_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. Signed-off-by: Aurelian Zanoschi <Aurelian.Zanoschi@freescale.com> Change-Id: Ia97506a8a95e2c764f5176d35497f0ac95cb97cc Reviewed-on: http://git.am.freescale.net:8181/4447 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-09-05dpaa_eth: Fix double counting of dropped framesIoana Radulescu
When the stack drops an incoming frame it also increments the rx_dropped counter in the netdevice stats. We were also updating this counter inside the driver, resulting in incorrect statistics for dropped frames. Signed-off-by: Ioana Radulescu <ruxandra.radulescu@freescale.com> Change-Id: Ieeef79a277f62cf935c779e0e93b018d4e2b284c Reviewed-on: http://git.am.freescale.net:8181/4441 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Bucur Madalin-Cristian-B32716 <madalin.bucur@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-09-05perf: Adding exports for perf functions for external PMUStephen George
Signed-off-by: Stephen George <stephen.george@freescale.com>
2013-09-05perf: Exporting perf PMU functionsStephen George
These exports allow a perf PMU to be implemented as a module instead of being restricted to being a built-in. Signed-off-by: Stephen George <stephen.george@freescale.com>
2013-09-04Revert "powerpc: remove default -mtune=power7/power4 flag"J. German Rivera
This reverts commit 0d22173d1a7cc3b094144a1dadc8164fca023fbf, which needed to be reverted, as it causes a compilation error for the linux kernel, when built for the 85xx/e6500rev2_defconfig configuration. See CR ENGR00278263.
2013-09-04Merge branch 'b4860rev2' into sdk-v1.4.xJ. German Rivera
2013-09-04powerpc/smp: fix build issueWang Dongsheng
Fix build problem caused by typo introduced by 18621b8153 (build error: unused variable 'smp_85xx_ops') Signed-off-by: Wang Dongsheng <dongsheng.wang@freescale.com> Change-Id: I256530961f98a2bc81a62bf0911628979438d61c Reviewed-on: http://git.am.freescale.net:8181/4039 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Wood Scott-B07421 <scottwood@freescale.com> Reviewed-by: Bhushan Bharat-R65777 <Bharat.Bhushan@freescale.com> Reviewed-by: Rivera Jose-B46482 <Jose.G.Rivera@freescale.com>
2013-09-04powerpc: dying cpus spins by defaultBharat Bhushan
When a cpu is dying, the dying cpu finally runs ppc_md.cpu_die(). Default set the ppc_md.cpu_die points to generic_mach_cpu_die(), which set the CPU state to CPU_DEAD and spins. Also fix to dereference guts_regs only when it is not NULL. Signed-off-by: Bharat Bhushan <bharat.bhushan@freescale.com> Change-Id: I9372cb382d8306b429b9a94555c7e2123c53cd27 Reviewed-on: http://git.am.freescale.net:8181/3735 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Wood Scott-B07421 <scottwood@freescale.com> Reviewed-by: Yoder Stuart-B08248 <stuart.yoder@freescale.com> Reviewed-by: Rivera Jose-B46482 <Jose.G.Rivera@freescale.com>
2013-09-04powerpc: mpc85xx: generic timer sync is no more neededBharat Bhushan
Now in all socs which require timebase sync we have guts based timer sync mechanism and we should not use be using generic timebase sync anymore. This patch removes the generic timbase sync for KEXEC also as this can also use same guts based timebase sync. Signed-off-by: Bharat Bhushan <bharat.bhushan@freescale.com> Change-Id: Ie1e5b55887862c6798ce45003cadcb4adb8d564a Reviewed-on: http://git.am.freescale.net:8181/3912 Reviewed-by: Wood Scott-B07421 <scottwood@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Yoder Stuart-B08248 <stuart.yoder@freescale.com> Reviewed-by: Rivera Jose-B46482 <Jose.G.Rivera@freescale.com>
2013-09-03dpa_offload: Increase maximum number of statistics counters to 512Marian Chereji
The maximum number of counters that can be created was limited to 128. This fix extends this value to 512. Signed-off-by: Marian Chereji <marian.chereji@freescale.com> Change-Id: I8a78f6b543d5a7b013a40ee192078986b6278b27 Reviewed-on: http://git.am.freescale.net:8181/4326 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Zanoschi Aurelian-B43522 <Aurelian.Zanoschi@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-09-03Removed dump_frag() duplicate definitionJ. German Rivera
2013-08-30Merge branch 'b4860rev2' into sdk-v1.4.xJ. German Rivera
2013-08-30powerpc: Update KBUILD_AFLAGS with core specific optionsCatalin Udma
Update also KBUILD_AFLAGS specifying the target core for CONFIG_E500 -mcpu=e5500/e500mc/8540 Add also -msoft-float. Signed-off-by: Catalin Udma <catalin.udma@freescale.com> Change-Id: Ibaf93105792b84dae836c7020ff708ed7afbad6a Reviewed-on: http://git.am.freescale.net:8181/3764 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-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>