summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)Author
2013-04-29fmd21 integrationMandy Lavi
Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Prev fmd integration was fmd19 Diffs from fmd19 to fmd21: Added kgHashShift to t_FmPcdHashTableParams Added nonConsistentSp to t_FmPcdManipReassemIpStats sp - 2 layers separation - for future flib integration rtc - 2 layers separation - for future flib integration PFC enhancement (B4 Rev2 FMAN) API addition (for B4 rev 2): FM_PORT_SetPfcPrioritiesMappingToQmanWQ File fsl_fman.h renamed to lnxwrp_fsl_fman.h The name fsl_fman.h has been applied to other fman internal header file In dpaa_eth: Due to renaming of fsl_fman.h to lnxwrp_fsl_fman.h The relevant include lines in some of the files had to change accordingly Change-Id: I8f25c758963a44a75ca8676aad45f7f96767b0b5 Reviewed-on: http://git.am.freescale.net:8181/2069 Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-29fsl/otg: Remove host drv upon otg bring-upRamneek Mehresh
Change have_hcd variable to remove/suspend host driver on completion of otg initilization for otg auto detect Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com> Change-Id: Ibc1c492629eb3afffb43dcb0a574783ad1b209f0 Reviewed-on: http://git.am.freescale.net:8181/1371 Reviewed-by: Li Yang-R58472 <LeoLi@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-29fsl/otg: Combine host/gadget start/resume for ID changeRamneek Mehresh
Make call to fsl_otg_event for each id change event Change-Id: I03eb6cc7d73d0970ae0feac9b9b5dd71ad724167 Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/2260 Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-29fsl/otg: Modify otg_event to start host drvRamneek Mehresh
Add mechanism to start host driver from inside fsl_otg_event upon each id change interrupt Change-Id: I9cb80f9cf6a1fac66d7ea7d5af518f7b36447652 Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/1368 Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-29fsl/otg: Add support to add/remove usb host driverRamneek Mehresh
Add workqueue to add/remove host driver (outside interrupt context) upon each id change Change-Id: Ic9c8330aad04e461be7f0792208ccb4609ab7929 Signed-off-by: Li Yang <leoli@freescale.com> Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/1367 Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-29fsl/otg: Add controller version based ULPI and UTMI phyRamneek Mehresh
Add controller version based ULPI and UTMI phy initialization for otg driver Change-Id: I5f64d5e70ecec7ad341a0e4a1a201f965d628ca6 Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com> Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/1366 Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-28Update pci ep vfio driver according to FSL PAMU.Minghuan Lian
1. According to FSL PAMU implementation, when attaching a device to an iommu_domain, pamu driver will use "fsl,liodn" property of the device. So for each PCI endpoint, this patch adds a pointer to their controller's device node since all endpoints of one controller should use the same liodn. 2. Add "fsl-pci-ep" driver name to vfio_driver_whitelist, so vfio driver can allow user space application to access the PCIE endpoint device. 3. Change EP driver to standard platform driver. 4. Change fsl-pci drvier probe function, when controller is EP mode, it will return -ENODEV not 0, so EP driver can be selected to probe this device. Signed-off-by: Minghuan Lian <Minghuan.Lian@freescale.com> Change-Id: Id1e6d65b8f106df0fc5c809f7f9e6b8833c5d183 Reviewed-on: http://git.am.freescale.net:8181/1735 Reviewed-by: Wood Scott-B07421 <scottwood@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-26crypto: caam - add missing flag for the LOAD/STORE commandsAndrei Varvara
Add Class Context SRC / DEST flags for the LOAD & STORE commands Signed-off-by: Andrei Varvara <andrei.varvara@freescale.com> Change-Id: Icc246fe08186368984eb0984e222d3afed5d96fa Reviewed-on: http://git.am.freescale.net:8181/2177 Reviewed-by: Phillips Kim-R1AAHA <Kim.Phillips@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-26crypto: caam - Add define for Adjust Output Frame Length in PDBAndrei Varvara
Add define for "Adjust Output Frame Length" in order to set the AOFL bit in the IPsec ESP Decapsulation PDB. Signed-off-by: Anca-Jeanina Floarea <anca.floarea@freescale.com> Signed-off-by: Andrei Varvara <andrei.varvara@freescale.com> Change-Id: If0e6638f68d286d41cd3e5bbea0fe0e4b2761649 Reviewed-on: http://git.am.freescale.net:8181/2175 Reviewed-by: Phillips Kim-R1AAHA <Kim.Phillips@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-26crypto: caam - Add defines for CAAM commandsandrei varvara
add defines for: append load immediate command setting SEQ LIODN equal to the Non-SEQ LIODN for the job replace job descriptor command Signed-off-by: Andrei Varvara <andrei.varvara@freescale.com> Change-Id: I0df8346b4cbd7cc85823896418707301c22c5dd5 Reviewed-on: http://git.am.freescale.net:8181/2173 Reviewed-by: Phillips Kim-R1AAHA <Kim.Phillips@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-26crypto: camm - Add defines for overwriting Descriptor's memoryAndrei Varvara
Store command has options to overwrite the Job Desc, Shared Desc or the entire Descriptor in memory, using the address from which the Descriptor was fetched. Signed-off-by: Andrei Varvara <andrei.varvara@freescale.com> Change-Id: I327af4334e56639250ca0fe7f4e9e5e4dbf3de7b Reviewed-on: http://git.am.freescale.net:8181/2172 Reviewed-by: Phillips Kim-R1AAHA <Kim.Phillips@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-26crypto/caam: Add new macros for building extended SEC descriptors (> 64 words)andrei varvara
added all supported math funtion on 8 byte boundary with immediate flag bit set automatically added MATH_SRC0_DPOVRD & MATH_SRC1_DPOVRD The function/defines above are needed for creating descriptors longer than 64 words Signed-off-by: Andrei Varvara <andrei.varvara@freescale.com> Change-Id: I3c4aff0201855eb2c2d2c62944664023ef88d873 Reviewed-on: http://git.am.freescale.net:8181/2171 Reviewed-by: Phillips Kim-R1AAHA <Kim.Phillips@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-26CAAM: Add MATH command to support shld functionAndrei Varvara
Perform 32-bit left shift of DEST and concatenate with left 32 bits of SRC1. {DEST[31:0],SRC1[63:32]} Signed-off-by: Andrei Varvara <andrei.varvara@freescale.com> Acked-by: Mihai Serb <mihai.serb@freescale.com> Change-Id: I0f778f0d2d1f1e41107025ff9669f659be17ff53 Reviewed-on: http://git.am.freescale.net:8181/2170 Reviewed-by: Phillips Kim-R1AAHA <Kim.Phillips@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-26crypto: caam - Fix STORE command to support overwriting Shared Descriptor's ↵Andrei Varvara
memory In case Store command is used with overwrite Shared Descriptor feature there is no need for pointer, it is using the address from which the Shared Descriptor was fetched. Signed-off-by: Andrei Varvara <andrei.varvara@freescale.com> Change-Id: Idd425a9142fc429aba2f134601a36d3da5bea661 Reviewed-on: http://git.am.freescale.net:8181/2169 Reviewed-by: Phillips Kim-R1AAHA <Kim.Phillips@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-26crypto: caam - fix SEQ IN PTR command when RTO or PRE bit is setAndrei Varvara
SEQ IN PTR command does not require pointer if RTO or PRE bit is set Updated desc_constr.h accordingly. Signed-off-by: Andrei Varvara <andrei.varvara@freescale.com> Change-Id: I76d1a8e4cc3ad4c1d38f7bdc0a2c01a1823be357 Reviewed-on: http://git.am.freescale.net:8181/2168 Reviewed-by: Phillips Kim-R1AAHA <Kim.Phillips@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-26fmd: fix the build error for P1023 FmanChunhe Lan
Remove the define of FM_CAPWAP_SUPPORT from P1023/dpaa_integration_ext.h. Or building p1023rds with Fman support will fail with the error message: In file included from drivers/net/ethernet/freescale/fman/src/ wrapper/lnxwrp_ioctls_fm.c:70:0: include/uapi/linux/fmd/Peripherals/fm_pcd_ioctls.h:119:2: error: ................ ................ make[7]: *** [drivers/net/ethernet/freescale/fman/src/wrapper/ lnxwrp_ioctls_fm.o] Error 1 make[6]: *** [drivers/net/ethernet/freescale/fman/src/wrapper] Error 2 make[5]: *** [drivers/net/ethernet/freescale/fman/src] Error 2 make[4]: *** [drivers/net/ethernet/freescale/fman] Error 2 make[3]: *** [drivers/net/ethernet/freescale] Error 2 make[2]: *** [drivers/net/ethernet] Error 2 make[1]: *** [drivers/net] Error 2 make: *** [drivers] Error 2 Signed-off-by: Chunhe Lan <Chunhe.Lan@freescale.com> Change-Id: I38009e5227de84cf47526c024c65ae645b364891 Reviewed-on: http://git.am.freescale.net:8181/2136 Reviewed-by: Zang Tiefei-R61911 <tie-fei.zang@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-26DMA/RaidEngine: FSL RaidEngine driverXuelin Shi
The RaidEngine hardware has the capability to offload RAID5/6 calculations. This driver enables RaidEngine functionality to offload mempcy, xor and pq calculations. This driver integrates with Linux's MD/ASYNC layer. This driver supports non-DPAA/direct mode of operation. Signed-off-by: Harninder Rai <harninder.rai@freescale.com> Signed-off-by: Naveen Burmi <naveenburmi@freescale.com> Signed-off-by: Xuelin Shi <b29237@freescale.com> Change-Id: I2bf4085000d25cf4dc9db68e03cab4f999cda94f Reviewed-on: http://git.am.freescale.net:8181/333 Reviewed-by: Li Yang-R58472 <LeoLi@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-25Move fsl_pci_ep_vfio.h to uapi/linux folderMinghuan Lian
1. File fsl_pci_ep_vfio.h is used for kernel driver and user space application. So move it to the uapi/linux foler. 2. move all the uint32_t members to the bottom of the structure pci_ep_win, for avoiding alignment difference on 32-bit versus 64-bit Signed-off-by: Minghuan Lian <Minghuan.Lian@freescale.com> Change-Id: I307954728bdedded838df7409231b1590f19d340 Reviewed-on: http://git.am.freescale.net:8181/1734 Reviewed-by: Wood Scott-B07421 <scottwood@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-25gianfar: Remove TSTAT_TXF* redefinitionClaudiu Manoil
Should be merged with the following commit: d385252 - "gianfar: Optimization for routed packets by exchanging rx/tx buffers" Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com> Change-Id: If508e4062bce893b0b8dc1830cac38a078d967dd Reviewed-on: http://git.am.freescale.net:8181/2079 Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-25drivers/video: Add support for the Solomon SSD1289 TFT LCD ControllerXie Xiaobo
Add SSD1289 TFT LCD framebuffer driver on TWR-LCD Peripheral Module. It only support Local Bus interface mode now. Signed-off-by: Alison Wang <b18965@freescale.com> Signed-off-by: Xie Xiaobo <X.Xie@freescale.com> Change-Id: I00c8e0fa5d899af04f4df56568c3e015eed0ce45 Reviewed-on: http://git.am.freescale.net:8181/1380 Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-24usb: remove redundant tdi_resetShengzhou Liu
We remove the redundant tdi_reset in ehci_setup since there is already it in ehci_reset. It was observed that the duplicated tdi_reset was causing the PHY_CLK_VALID bit unstable. With this patch, USB will work on P4080DS. Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com> Change-Id: Iabedc12281472cda28375636c568de29f008eaef Reviewed-on: http://git.am.freescale.net:8181/1458 Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-24fsl/ehci: fix failure of checking PHY_CLK_VALID during reinitializationShengzhou Liu
In case of usb phy reinitialization: e.g. insmod usb-module(usb works well) -> rmmod usb-module -> insmod usb-module It found the PHY_CLK_VALID bit didn't work if it's not with the power-on reset. So we just check PHY_CLK_VALID bit during the stage with POR, this can be met by the tricky of checking FSL_SOC_USB_PRICTRL register. Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com> Change-Id: I51879b15c95b78d8768a7a76d7189bd36f9a0c66 Reviewed-on: http://git.am.freescale.net:8181/1463 Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-24Fix USDPAA memory mappings so they can no longer occur at address 0Roy Pledge
which confused any SW checking for NULL pointers Change-Id: Ic0ac5e61f1776ce8d4ddb622e401942ce2750705 Reviewed-on: http://git.am.freescale.net:8181/2062 Reviewed-by: Thorpe Geoff-R01361 <Geoff.Thorpe@freescale.com> Reviewed-by: Ladouceur Jeffrey-R11498 <Jeffrey.Ladouceur@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-24squash! fsl_qman: Set stashing using the IOMMU APIEmil Medve
Signed-off-by: Emil Medve <Emilian.Medve@Freescale.com> Change-Id: I60be3c3f94f50fca47a53328a70a552b74808ad1 Reviewed-on: http://git.am.freescale.net:8181/1772 Reviewed-by: Yoder Stuart-B08248 <stuart.yoder@freescale.com> Reviewed-by: Pledge Roy-R01356 <roy.pledge@freescale.com> Reviewed-by: Wang Haiying-R54964 <Haiying.Wang@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-24gianfar: asf: adding gfar_fast_xmit fundtion for ASF pkt proccessingRajan Gupta
gfar_fast_xmit added for optimizated tx processing for ASF minimum mode. Change-Id: I35c2a21b60bb5ceafab2c1f630ea9863c85ec026 Signed-off-by: Rajan Gupta <rajan.gupta@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/2061 Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-24gianfar: asf: Adding selective cleanup of skb fields for ASF processed pktsRajan Gupta
ASF uses only few skb fields, this patch adds a asf specific skb-reclaim function to reset only ASF used SKB fields. Change-Id: Ia96d887fc2e28fd28402fb412f77ce786da8c8a6 Signed-off-by: Rajan Gupta <rajan.gupta@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/2060 Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-24gianfar: Optimization for routed packets by exchanging rx/tx buffersRajan Gupta
Patch enhances the Gianfar driver performance for the packets that are received by the driver and transmitted by the driver in the same context. Performance is enhanced by exchanging the buffer between the Tx and Rx rings, rather than allocating buffer from kernel or taking it from recycle queue. Patch keeps the TX interupt masked by default and skb cleanup is done in the xmit function just before skb is recybled back to the RX ring. TX interupt is unmasked only when H/W transmit queue is full, in TX interupt handler stopped tx queues are started again when the H/W has cleaned the TX buffer rings. As TX interups are disabled by default, RFC1588 timestamping is not done and 1588 ptp protocol doesnot works with this optimization. Patch gives best performance with DEFAULT_RX_RING_SIZE 32, DEFAULT_TX_RING_SIZE 32, and GFAR_DEV_WEIGHT 32. Patch improves the forwarding performance of offload implementation like ASF by around 50% and linux forwarding performance by 20%. Change-Id: Ie28858fc9b9ea0434c1242843abd7479a31a0de3 Signed-off-by: Rajan Gupta <rajan.gupta@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/1619 Reviewed-by: Manoil Claudiu-B08782 <claudiu.manoil@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-24dpaa_eth: make use of alloc_percpu()Madalin Bucur
Simplify code using alloc_percpu() instead of __alloc_percpu(). Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I8d8f003e7506bdea4113b1ec69aaa54b230b62ea Reviewed-on: http://git.am.freescale.net:8181/1739 Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-24dpaa_eth: use FSL_DPAA_ETH prefix for all config optionsMadalin Bucur
Use consistent naming for Kconfig options in DPAA Ethernet driver. Also updated default configs. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I5603919a9d0649741a9494caed3826605b131903 Reviewed-on: http://git.am.freescale.net:8181/1720 Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-24dpaa_eth: extract debugfs code to its own fileMadalin Bucur
Code cleanup, move debugfs code outside dpaa_eth.c. Also fixed some checkpatch.pl reports in the existing code. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: Ia70e55d367ffd5743f44cee5ce93c83bb3f7594d Reviewed-on: http://git.am.freescale.net:8181/1719 Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-24crypto: caam - Skip RNG instantiation if RNG already instantiatedRuchika Gupta
For SEC with RNG version >= 4, RNG init is performed. However for secure boot scenarios, there may be a case where RNG has already been instantiated by u-boot(B4860) or boot ROM code (C290). In such SoCs, if RNG is instantiated again by crypto driver, it returns "Instantiation error". RNG4 DRNG STATUS register has the status bit to indicate if RNG has already been instantiated Signed-off-by: Ruchika Gupta <ruchika.gupta@freescale.com> Change-Id: I15d4700f04d18687397c5b8e20461f2457652fad Reviewed-on: http://git.am.freescale.net:8181/1676 Reviewed-by: Garg Vakul-B16394 <vakul@freescale.com> Reviewed-by: Geanta Neag Horia Ioan-B05471 <horia.geanta@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-24gianfar: Optimize Tx NAPI poll using TSTAT indicationClaudiu Manoil
Use TSTAT TXF h/w indication to identify the active Tx queues. Simplify the polling routine to make it faster. No need to poll the Tx rings in a loop due to Tx interrupt coalescing plus the fact that Tx polling does not consume NAPI budget, as Tx ring cleanup is run to completion. This contributes to a faster/ more responsive cleanup of Tx rings reducing the possibility of Tx congestion (Tx timeout triggering). Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com> Change-Id: I09b87ef36aa8f51a9814d1fa701364a5e68411ff Reviewed-on: http://git.am.freescale.net:8181/1745 Reviewed-by: Xie Jianhua-B29408 <jianhua.xie@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-23fsl_qbman: Enable preemption in bman_create_affine_portal()Priyanka Jain
bman_create_affine_portal() calls bman_create_portal() which in turn calls request_irq() to register portal_isr. In case of PREEMPT_RT enabled, request_irq() is converted into request_threaded_irq() as portal_isr is threaded IRQ handler. But this request_threaded_irq() can sleep, so it is mandatory to call request_threaded_irq() only from context that can sleep. bman_create_affine_portal() is called from context that is already affine to CPU or in other words this is non-migratable to other CPUs. Hence, it is not required to run this function in non-preemptible context. Enabling preemption will allow subsequent functions to sleep. Call put_affine_portal() on entry i.e. before calling bman_create_portal() to enable preemption. Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com> Fixes CQ: ENGR00259733 kernel crash in bman_init when PREEMPT_RT is enabled Change-Id: I628b6fbc986a5bd980ffa68af4fd1ec7a2661758 Reviewed-on: http://git.am.freescale.net:8181/1717 Reviewed-by: Medve Emilian-EMMEDVE1 <Emilian.Medve@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-23net: Fix skb_recycle functionIoana Radulescu
skb_recycle memsets to zero a large part of the sk_buff structure, including the head_frag field. This is an information that needs to be kept even after the skb is recycled, otherwise a subseqent kfree on the recycled skb may fail. Signed-off-by: Ioana Radulescu <ruxandra.radulescu@freescale.com> Change-Id: Ieca806d86ff1e1f30712cc7caf9b72f152081e4f Reviewed-on: http://git.am.freescale.net:8181/1744 Reviewed-by: Hamciuc Bogdan-BHAMCIU1 <bogdan.hamciuc@freescale.com> Reviewed-by: Bucur Madalin-Cristian-B32716 <madalin.bucur@freescale.com> Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com> Reviewed-by: Manoil Claudiu-B08782 <claudiu.manoil@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-23crypto: caam - Packed RNG vid functionRuchika Gupta
Packed RNG vid function into caam_probe function Signed-off-by: Ruchika Gupta <ruchika.gupta@freescale.com> Change-Id: I3fb28ee0ae4daec89725868900445d36fe7e8795 Reviewed-on: http://git.am.freescale.net:8181/1675 Reviewed-by: Garg Vakul-B16394 <vakul@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-23fsl/usb: No need to map Zero Length Packet for streaming DMASuresh Gupta
ZLP buffer mapping using streaming DMA is not required Signed-off-by: Suresh Gupta <suresh.gupta@freescale.com> Change-Id: Ifa4ee7970160f0b3e473b167bc53803ac30e51b4 Reviewed-on: http://git.am.freescale.net:8181/1319 Reviewed-by: Mehresh Ramneek-B31383 <ramneek.mehresh@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-23fsl/usb: Add FSL USB Gadget entry in platform device id tableSuresh Gupta
Add FSL USB Gadget entry in platform device id table Signed-off-by: Suresh Gupta <suresh.gupta@freescale.com> Change-Id: Iacef40798e9c0fe4e73da8ff871db9051fb30da3 Reviewed-on: http://git.am.freescale.net:8181/1302 Reviewed-by: Mehresh Ramneek-B31383 <ramneek.mehresh@freescale.com> Reviewed-by: Li Yang-R58472 <LeoLi@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-23mtd: fsl_ifc_nand: set NAND_NO_SUBPAGE_WRITEScott Wood
This controllers only does ECC on full-page accesses, even though the ECC consists of multiple steps. fsl_elbc_nand can get away with this because the ECC of an all-0xff region will be all-0xff, but this is not true with the ECC algorithms used by IFC. Signed-off-by: Scott Wood <scottwood@freescale.com> Change-Id: I1d0f036703af097b95ab51441ba0d544d3679c63 Reviewed-on: http://git.am.freescale.net:8181/1183 Reviewed-by: Kushwaha Prabhakar-B32579 <prabhakar@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-22fmd: removed unused definitionMandy Lavi
Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Change-Id: I15fc4457cf4f34813d98ef2a7938c8400b4cbc37 Reviewed-on: http://git.am.freescale.net:8181/1640 Reviewed-by: Lavi Mandy-R52568 <Mandy.Lavi@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-22add pci endpoint vfio driver supportMinghuan Lian
PCI Endpoint driver traverses all the PCI controllers, for each EP mode controller, creates endpoint device corresponding to each physical function and each virtual function. All the endpoint devices belong to the class pci_ep, and are registered to VFIO system. Users can get the basic device information via access file node located in /sys/class/pci_ep/. User space applications can access device via VFIO system. Via ioctl applications can get device information and get/set ATMU settings. Via file operations read/write/mmap applications can respectively read/write/mmap CCSR register region, PCI configuration space (only support reading) inbound window region and outbound window region. Signed-off-by: Minghuan Lian <Minghuan.Lian@freescale.com> Change-Id: Ie08be7850ee6e7d4a85e3e7313519652c06679de Reviewed-on: http://git.am.freescale.net:8181/1105 Reviewed-by: Zang Tiefei-R61911 <tie-fei.zang@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-22Revert "ASF-QOS: Adding API to configure QMAN Scheduler via ASF"Fleming Andrew-AFLEMING
This reverts commit 5f2780e55e6885e1b89c28fc23f998a27a26d455 I must have grabbed this one by accident. A proper solution needs to be discussed. Change-Id: I276218aef9ea663d183a1233d79bf303e2113360 Reviewed-on: http://git.am.freescale.net:8181/1703 Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-19fsl_qman: add debugfs support for query some ceetm featuresHaiying Wang
Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com> Change-Id: I344f564af3cad4d46a1437559ece080dfef59cd2 Reviewed-on: http://git.am.freescale.net:8181/1639 Reviewed-by: Thorpe Geoff-R01361 <Geoff.Thorpe@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-19dpaa_eth: Move bpool refill thresholds to KconfigBogdan Hamciuc
There have been requests to change the thresholds which control the buffer pool replenishment on the private path of DPAA-Ethernet. While we normally discourage this (since these values have been fine-tuned after numerous tests) we nevertheless expose these knobs into the driver's Kconfig. They now default to the original hardcoded values. Signed-off-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com> Change-Id: Ia6634932e16e4fb771317a04110704a5c3bb5e44 Reviewed-on: http://git.am.freescale.net:8181/1629 Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com> Reviewed-by: Radulescu Ruxandra Ioana-B05472 <ruxandra.radulescu@freescale.com> 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-04-19Exports DPAA symbols required in ASFSunil Kumar Kori
Following symbols are exported: dpa_fd_release: Symbol is required to release the FD if any error case occurred in ASF. Change-Id: I122b6cd5da32ab825268a7c080da79865945fe75 Signed-off-by: Sunil Kumar Kori <Sunil.Kori@freescale.com> CR:ENGR00243312 Reviewed-on: http://git.am.freescale.net:8181/1296 Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-19fmd: bypass erratum dTSEC-A003 to allow pause frames disableCristian Sovaiala
Bypass Erratum dTSEC-A003 to allow pauseTime=0 to be set in registry therefore allowing to disable the Pause Frames on TX side. dTSEC-A003: Back-to-back pause requests may cause 1588 TX timestamps out of sync Signed-off-by: Cristian Bercaru <cristian.bercaru@freescale.com> Signed-off-by: Cristian Sovaiala <cristian.sovaiala@freescale.com> Change-Id: Ibbc28d2f345c92da8682e8c59dca2e5a37f9be9a Reviewed-on: http://git.am.freescale.net:8181/1631 Reviewed-by: Radulescu Ruxandra Ioana-B05472 <ruxandra.radulescu@freescale.com> Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-19vfio pci: add fsl pamu implementationBharat Bhushan
This patch adds support for Freescale IOMMU (PAMU - Peripheral Access Management Unit). This is an aperture type of IOMMU. Some of the code is derived from TYPE1 iommu (driver/vfio/vfio_iommu_type1.c). Signed-off-by: Bharat Bhushan <bharat.bhushan@freescale.com> Change-Id: I1e8fe8ef421a258d15e5f6bb9705d671dfcc37ba Reviewed-on: http://git.am.freescale.net:8181/1493 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-04-19fsl iommu: add get_dev_iommu_domainBharat Bhushan
returns the iommu_domain of the requested device for fsl pamu. Use PCI controller dev struct for pci devices as current LIODN schema assign LIODN to PCI controller not PCI device. This will be corrected with proper LIODN schema. Signed-off-by: Bharat Bhushan <bharat.bhushan@freescale.com> Change-Id: Icf07380a0f83e766b994b7a840085396fc470077 Reviewed-on: http://git.am.freescale.net:8181/1491 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-04-19iommu: add api to get iommu_domain of a deviceBharat Bhushan
This api return the iommu domain to which the device is attached. The iommu_domain is required for making API calls related to iommu. Follow up patches which use this API to know iommu maping. Signed-off-by: Bharat Bhushan <bharat.bhushan@freescale.com> Change-Id: Ib4ff98b9e12f32bdbd8ecbe8379b102f7b10efa7 Reviewed-on: http://git.am.freescale.net:8181/1490 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-04-19Add interface to get msi region informationBharat Bhushan
This patch adds interface to get following information - Number of MSI regions (which is number of MSI banks for powerpc). - Get the region address range: Physical page which have the address/addresses used for generating MSI interrupt and size of the page. These are required to create IOMMU (Freescale PAMU) mapping for devices which are directly assigned using VFIO. This patch have hardcoded CCSR_BASE and msi pagesize to 4k. I think this will work as of now but will fix shortly. Signed-off-by: Bharat Bhushan <bharat.bhushan@freescale.com> Change-Id: Idcd3364cbffb9d8936bd48e67079a4bfa6584b98 Reviewed-on: http://git.am.freescale.net:8181/1489 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-04-19iommu: Fix potential memory leak issueBharat Bhushan
The dma_domain->win_arr is allocated when geometry is set. But if domain is destroyed then the allocated memory is not freed. When the dma_domain is created again then dma_domain is allocated again, so previous win_arr pointer is lost and never freed. Signed-off-by: Bharat Bhushan <bharat.bhushan@freescale.com> Change-Id: Ie6d964215c43aa59b9e38ac544169b58aba4bc1a Reviewed-on: http://git.am.freescale.net:8181/1488 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>