summaryrefslogtreecommitdiff
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-26KVM: PPC: e500v2: Fix __write_host_tlbe() build breakage (2)Mihai Caraman
Fix a leftwover build error on e500v2. Signed-off-by: Mihai Caraman <mihai.caraman@freescale.com> Change-Id: I8de7db48765ea20c8902431d95dc3009e6688068 Reviewed-on: http://git.am.freescale.net:8181/2141 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-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-26powerpc/defconfig: Add P1023RDB platform support to p1023rds_defconfigChunhe Lan
Signed-off-by: Chunhe Lan <Chunhe.Lan@freescale.com> Change-Id: I80daf98852e1dc1821a733a9ce7273bcfdab0fea Reviewed-on: http://git.am.freescale.net:8181/2127 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-25KVM: PPC: e500v2: Fix __write_host_tlbe() build breakageMihai Caraman
Fix __write_host_tlbe() build breakage introduced my multiple LPIDs. Signed-off-by: Mihai Caraman <mihai.caraman@freescale.com> Change-Id: Id6aba584d334e3bc4c0bf05ae67a330862140a97 Reviewed-on: http://git.am.freescale.net:8181/2107 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-25powerpc/fsl-booke64: Enable ePAPR HV support in defconfigLaurentiu Tudor
Change-Id: I49885d7dd7f715a7250a8d7e98f7d2f34af415b3 Signed-off-by: Laurentiu Tudor <Laurentiu.Tudor@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/1746 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-25KVM: PPC: cache flush for kernel managed pagesBharat Bhushan
Kernel can only access pages which maps as memory. So flush only the valid kernel pages. Signed-off-by: Bharat Bhushan <bharat.bhushan@freescale.com> Change-Id: I6be636be7049d6bddab338f0288a9997fdc2e9ed Reviewed-on: http://git.am.freescale.net:8181/2108 Reviewed-by: Yoder Stuart-B08248 <stuart.yoder@freescale.com> 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-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-25kvm/ppc: don't call complete_mmio_load when it's a storeScott Wood
complete_mmio_load writes back the mmio result into the destination register. Doing this on a store results in register corruption. Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Alexander Graf <agraf@suse.de>
2013-04-25powerpc/fsl: removed qoriq-sec4.1-0.dtsi.Vakul Garg
Removing qoriq-sec4.1-0.dtsi as it is not used by any soc anymore. Signed-off-by: Vakul Garg <vakul@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2013-04-25powerpc/fsl: Add property for 'era' in SEC dts crypto nodeVakul Garg
The crypto node now contains a new property 'fsl,sec-era'. This is required so that applications can retrieve era info without having to be able to read SEC's register space. Signed-off-by: Vakul Garg <vakul@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2013-04-25powerpc/85xx: Add TWR-P1025 board supportXie Xiaobo
TWR-P1025 Overview ----------------- 512Mbyte DDR3 (on board DDR) 64MB Nor Flash eTSEC1: Connected to RGMII PHY AR8035 eTSEC3: Connected to RGMII PHY AR8035 Two USB2.0 Type A One microSD Card slot One mini-PCIe slot One mini-USB TypeB dual UART Change-Id: I30d2b481ecba3d67f9484a5194a9278be34d44a4 Signed-off-by: Michael Johnston <michael.johnston@freescale.com> Signed-off-by: Xie Xiaobo <X.Xie@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/1153 Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-25powerpc/dpaa: fix mdio dependencyShaohui Xie
commit ec6aa02560e69e08b4ef1be02fb066d9d70529ee use FSL_DPAA_ETH prefix, so the mdio dependency should also be changed accordingly. Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com> Change-Id: I97697d33dbd1f8da2b504bb45b8d45aa489a0a96 Reviewed-on: http://git.am.freescale.net:8181/2081 Reviewed-by: Bucur Madalin-Cristian-B32716 <madalin.bucur@freescale.com> Reviewed-by: Hamciuc Bogdan-BHAMCIU1 <bogdan.hamciuc@freescale.com> 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-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-24Fix the compilation error in MSI iova calculationBharat Bhushan
There were couple of issue: - MSIIR address is uint64_t while it was passed to a function which expect this to dma_addr_t. And dma_addr_t can be 32 bit also. - do_div() expect uint64_t as first parameter while it was passed dma_addr_t. Both of these changed be uint64_t. Signed-off-by: Bharat Bhushan <bharat.bhushan@freescale.com> Signed-off-by: Harninder Rai <harninder.rai@freescale.com> Change-Id: Icca7eafef4fa63bc5daf355ebc0ba85a2111495a Reviewed-on: http://git.am.freescale.net:8181/1732 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-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-24powerpc: Add RMan support in device tree for B4860 platformMinghuan Lian
Signed-off-by: Minghuan Lian <Minghuan.Lian@freescale.com> Change-Id: I10b0bb444cfe59047bca166c74eab38f77916dc0 Reviewed-on: http://git.am.freescale.net:8181/1334 Reviewed-by: Aggrwal Poonam-B10812 <Poonam.Aggrwal@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-24KVM: PPC: Book3E HV: Handle lwepx faultsMihai Caraman
It's time to address the FIXME comment about lwepx faults. The faults happen when the external context is not longer available in TLBs. On HW mutithreaded cores with shared TLBs guest entries can be evicted by secundary threads right after guest exit. Just handle lwepx faults as a regular guest tlb miss interrupts. Signed-off-by: Mihai Caraman <mihai.caraman@freescale.com> Change-Id: I56cbd2498d8fac7bcf9e7b87f1e9b27a504e73f8 Reviewed-on: http://git.am.freescale.net:8181/1541 Reviewed-by: Wood Scott-B07421 <scottwood@freescale.com> Reviewed-by: Craciun Diana Madalina-STFD002 <Diana.Craciun@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-24KVM: PPC: e500mc: Workaround guest missing tlbwe conditionalMihai Caraman
e6500 has threads but does not have TLB write conditional. Currently HW threads are exposed to guests as cores so locks are not an option. Workaround this for guests not allowing one core's threads to use same LPID simultaneous. The VM's LPID allocation scheme associate one LPID per HW tread index. This limits the number of VM's to (number of LPIDs - 1)/ (threads per core), which for T4240 processor means 31. Signed-off-by: Mihai Caraman <mihai.caraman@freescale.com> Change-Id: Ib1ba743f0f81084decbb26ebcef00d49df814c6c Reviewed-on: http://git.am.freescale.net:8181/1750 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-23powerpc/e6500: fully disable threadsScott Wood
smt-enabled=off doesn't actually stop the secondary thread from being enabled, as that's done early in a hard-coded way. This is a hack to prevent that from happening with minimal side effects. With this patch, if CONFIG_PPC_DISABLE_THREADS=y, threads are unconditionally disabled, without regard to the kernel command line. If you want to enable threads, you must build with CONFIG_PPC_DISABLE_THREADS=n. Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Andy Fleming <afleming@freescale.com> (cherry picked from commit 7d0a33c23e85e085dcf4e6cea47de714e8f34073) Change-Id: I578cb4ae43fa6fab0f75b24ce763667dbeb72d69 Reviewed-on: http://git.am.freescale.net:8181/1706 Reviewed-by: Schmitt Richard-B43082 <B43082@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>