summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-09-10dpaa_eth: Fix freeing of frame in error casesIoana Radulescu
In case of a Tx error at FMan level or an ERN, if the frame was marked as recycleable we need to put the buffers in the target pools, otherwise we mess up the pool counters. This was done correctly for the ERN callback, now fixing the Tx error one as well. Signed-off-by: Ioana Radulescu <ruxandra.radulescu@freescale.com> Change-Id: I0faa77a31af9086806713e593da72b03c2bd3223 Reviewed-on: http://git.am.freescale.net:8181/4192 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> Reviewed-on: http://git.am.freescale.net:8181/4470 Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com>
2013-09-10dpaa_eth: Remove dpa_bp pointer from percpu private structureIoana Radulescu
The reference to the buffer pool can be just as easily obtained from the netdev private structure, so do that and reduce the size of the percpu private struct. Signed-off-by: Ioana Radulescu <ruxandra.radulescu@freescale.com> Change-Id: I78aea782014b863994585beccac52567b242a72e Reviewed-on: http://git.am.freescale.net:8181/4194 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> Reviewed-on: http://git.am.freescale.net:8181/4469 Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@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: I9b2516ea76a19487a2f75412722ea21e67247ed2 Reviewed-on: http://git.am.freescale.net:8181/4191 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> Reviewed-on: http://git.am.freescale.net:8181/4471 Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com>
2013-09-10dpaa_eth: Replace per_cpu_ptr with __this_cpu_ptrIoana Radulescu
We randomly used either __this_cpu_ptr() or per_cpu_ptr() on current processor. Use only __this_cpu_ptr() in ordr to make the code more uniform. No functional or performance impact. Signed-off-by: Ioana Radulescu <ruxandra.radulescu@freescale.com> Change-Id: I1d449ec799e8d920935325d283f0ba510ee56e87 Reviewed-on: http://git.am.freescale.net:8181/4193 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> Reviewed-on: http://git.am.freescale.net:8181/4468 Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com>
2013-09-10dpaa_eth: Replace drain callback in dpa_bp structureIoana Radulescu
Instead use a callback for freeing individual buffers acquired from the pool. This solution is more flexible and allows for simpler code when new pools will be added to the driver. Signed-off-by: Ioana Radulescu <ruxandra.radulescu@freescale.com> Change-Id: I52376b5dab53957e497b112df7c42ef18d7a9347 Reviewed-on: http://git.am.freescale.net:8181/4190 Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/4467 Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com>
2013-09-10dpaa_eth: Fix error message in ethtoolCristian Sovaiala
Interfaces only get their PHYs initialized when they are first brought up, therefore running ethtool on an interface that is down prints an error message and returns with error code. Lower the print to debug mode and return non-error code. Signed-off-by: Cristian Sovaiala <cristian.sovaiala@freescale.com> Change-Id: Ic4e9304cf9e6152868af74a31132e92d95713b62 Reviewed-on: http://git.am.freescale.net:8181/4259 Reviewed-by: Radulescu Ruxandra Ioana-B05472 <ruxandra.radulescu@freescale.com> 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> Reviewed-on: http://git.am.freescale.net:8181/4466 Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com>
2013-09-10dpaa_eth: Refill global pool only when below thresholdIoana Radulescu
Don't refill the Rx global pool every time it drops below its target count, instead wait for the number of buffers to drop below a certain threshold. This was not so important until now, but is necessary in view of the recycling mechanism. Signed-off-by: Ioana Radulescu <ruxandra.radulescu@freescale.com> Change-Id: I341f6bf7bd746465cf6d17644a4edbd1b3d20aba Reviewed-on: http://git.am.freescale.net:8181/4189 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> Reviewed-on: http://git.am.freescale.net:8181/4464 Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com>
2013-09-10dpaa_eth: Reorder recycling conditionsIoana Radulescu
Reorganize a bit the recycling code without any actual changes in the logic. Reordering of conditions based on which is most likely to fail first brings a bit of performance improvement in case no recycling is actually done. Signed-off-by: Ioana Radulescu <ruxandra.radulescu@freescale.com> Change-Id: I6cf3995576b756d9aec678f92f679ee1fa461587 Reviewed-on: http://git.am.freescale.net:8181/4188 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> Reviewed-on: http://git.am.freescale.net:8181/4465 Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com>
2013-09-10dpaa_eth: free bp platform deviceMadalin Bucur
The platform device was not released. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I44c134aba26f5eca5cad60fba3d0051ae9f99c8f Reviewed-on: http://git.am.freescale.net:8181/3911 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Radulescu Ruxandra Ioana-B05472 <ruxandra.radulescu@freescale.com> Reviewed-by: Rivera Jose-B46482 <Jose.G.Rivera@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/4462 Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-09-10dpaa_eth: fix non-smp buildMadalin Bucur
Cleanup includes and fix non-smp build, removed unnecessary info. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I32596b8eb0c4b674de1f3684993d1ba09f20947e Reviewed-on: http://git.am.freescale.net:8181/3856 Reviewed-by: Bucur Madalin-Cristian-B32716 <madalin.bucur@freescale.com> Reviewed-by: Rivera Jose-B46482 <Jose.G.Rivera@freescale.com> Tested-by: Rivera Jose-B46482 <Jose.G.Rivera@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/4461 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-09-10Adds ASF as default configuration to the Kernel.Sunil Kumar Kori
Signed-off-by: Sunil Kumar Kori <Sunil.Kori@freescale.com> Earlier to enable ASF hooks in Linux, we are required to enable ASF support using "make menuconfig" before compiling Linux. This patch enables ASF support as default Kernel configuration and also will enable required configuratuin flags by ASF. Change-Id: I3467513f782cecef0bbcdf0c9aa4bb9be4f9f195 Reviewed-on: http://git.am.freescale.net:8181/4488 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-10dpaa_eth: solve several code style issuesMadalin Bucur
Fix a series of checkpatch complaints in the dpaa_eth code. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I341d5835bb0a4491456947b8e1ae714e095cd580 Reviewed-on: http://git.am.freescale.net:8181/3811 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Rivera Jose-B46482 <Jose.G.Rivera@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/4460 Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-09-10dpaa_eth: move non-upstreamable common code to dpaa_eth_baseMadalin Bucur
The common code contains some parts that are not used in the private interface code. Moved that code to a new file. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I5095bc0e7503c413d39e78cd5dff7bf84eebaca9 Reviewed-on: http://git.am.freescale.net:8181/3810 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Rivera Jose-B46482 <Jose.G.Rivera@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/4458 Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-09-10dpa_eth: fix function typeMadalin Bucur
The wrong return type of dpa_bp_priv_seed() caused a crash on the termination optimized driver flavor. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I22cec61c063a901a4d8fd40653fb4fe2cba31435 Reviewed-on: http://git.am.freescale.net:8181/3696 Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Radulescu Ruxandra Ioana-B05472 <ruxandra.radulescu@freescale.com> Reviewed-by: Hamciuc Bogdan-BHAMCIU1 <bogdan.hamciuc@freescale.com> Reviewed-by: Rivera Jose-B46482 <Jose.G.Rivera@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/4457 Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-09-07Merge branch 'sdk-v1.4.x' into sdk-kernel-3.8J. German Rivera
Conflicts temporarily resolved for: drivers/net/ethernet/freescale/dpa/dpaa_eth.c Permanent solution needs to be provided by the author of commit ec6aa025.
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-05dpaa_eth: fix coccinelle code analysis issuesCristian Bercaru
Assign boolean constants to boolean variables instead of integer constants. Signed-off-by: Cristian Bercaru <cristian.bercaru@freescale.com> Change-Id: Ib7ecb86273355d0dd6c4f06fe410d572e613c570 Reviewed-on: http://git.am.freescale.net:8181/4021 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Bucur Madalin-Cristian-B32716 <madalin.bucur@freescale.com> Reviewed-by: Radulescu Ruxandra Ioana-B05472 <ruxandra.radulescu@freescale.com> Reviewed-by: Rivera Jose-B46482 <Jose.G.Rivera@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/4459 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-05Merge branch 'sdk-v1.4.x' into sdk-kernel-3.8J. German Rivera
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-04Merge branch 'sdk-v1.4.x' into sdk-kernel-3.8J. German Rivera
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-04ASF:IPSEC: Fix for OUT SA not offloaded in case of dynamic rekeying.Nikhil Agarwal
Signed-off-by: Nikhil Agarwal <nikhil.agarwal@freescale.com> Change-Id: Ibbbaf9bbacf43532c57341a4ef87995c5f1c6053 Reviewed-on: http://git.am.freescale.net:8181/4286 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Malik Sandeep-B02416 <Sandeep.Malik@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.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-03Merge branch 'sdk-v1.4.x' into sdk-kernel-3.8J. German Rivera
2013-09-03Removed dump_frag() duplicate definitionJ. German Rivera
2013-08-30Merge branch 'sdk-v1.4.x' into sdk-kernel-3.8J. German Rivera
2013-08-30Merge branch 'b4860rev2' into sdk-kernel-3.8J. 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-29fsl/usb: Workaround for USB erratum-A005728Suresh Gupta
PHY_CLK_VALID bit for UTMI PHY in USBDR does not set even if PHY is providing valid clock. Workaround for this involves resetting of PHY and check PHY_CLK_VALID bit multiple times. If PHY_CLK_VALID bit is still not set even after 5 retries, it would be safe to deaclare that PHY clock is not available. This erratum is applicable for USBDR less then ver 2.4. Signed-off-by: Suresh Gupta <B42813@freescale.com> Change-Id: Ib2637f038020ec2429e4fbe196713fd66585ab17 Reviewed-on: http://git.am.freescale.net:8181/4209 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Wrobel Heinz-R39252 <Heinz.Wrobel@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-28dpaa_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-27Merge branch 'sdk-v1.4.x' into sdk-kernel-3.8J. German Rivera
2013-08-27Merge branch 'b4860rev2' into sdk-v1.4.xJ. German Rivera
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>