4 years agoChanges to reflect PORT Mac address in Port2 (Slice1) DEV.PRU-ICSS-PROFINET-SWITCH_02.01.00.09.RC9
Changes to reflect PORT Mac address in Port2 (Slice1)
Modification to configure Mac addresses in both ICSS
4 years agoBugfixes for RGMII_CFG when both ports are negotiated different speeds DEV.PRU-ICSS-PROFINET-SWITCH_02.01.00.09.RC5
Bugfixes for RGMII_CFG when both ports are negotiated different speeds
Signed-off-by: Pratheesh Gangadhar <pratheesh@ti.com>
Signed-off-by: Pratheesh Gangadhar <pratheesh@ti.com>
RGMII config bugfix for when both ports have negotiated different speeds
Signed-off-by: Pratheesh Gangadhar <pratheesh@ti.com>
Signed-off-by: Pratheesh Gangadhar <pratheesh@ti.com>
Removing EMAC_IOCTL_CONFIGURE_MSMC_BASEADDRESS and mem_map updates
Signed-off-by: Pratheesh Gangadhar <pratheesh@ti.com>
Signed-off-by: Pratheesh Gangadhar <pratheesh@ti.com>
Update firmware headers. Fix emac_soc.c offset issues
Signed-off-by: Pratheesh Gangadhar <pratheesh@ti.com>
Signed-off-by: Pratheesh Gangadhar <pratheesh@ti.com>
Revert "replacing tab by space."
This reverts commit 83dcb5385d42bedf8fe6ca792e5f4209771990a1.
# Conflicts:
# src/v5/emac_ioctl.c
This reverts commit 83dcb5385d42bedf8fe6ca792e5f4209771990a1.
# Conflicts:
# src/v5/emac_ioctl.c
Revert "Aligning switch_mem_map.h headers"
This reverts commit 4a93bb6c4e391a7da43d75b6f357af33544f1ea5.
This reverts commit 4a93bb6c4e391a7da43d75b6f357af33544f1ea5.
Aligning switch_mem_map.h headers
4 years agoOptimizations to emac_poll using PHYSTS register - see 3.7x reduction in worst case... DEV.PRU-ICSS-PROFINET-SWITCH_02.01.00.09.RC4
Optimizations to emac_poll using PHYSTS register - see 3.7x reduction in worst case time to 145us
Signed-off-by: Pratheesh Gangadhar <pratheesh@ti.com>
Signed-off-by: Pratheesh Gangadhar <pratheesh@ti.com>
PRSDK-6254 back porting to Processor SDK 5.2 baseline
Signed-off-by: Pratheesh Gangadhar <pratheesh@ti.com>
Signed-off-by: Pratheesh Gangadhar <pratheesh@ti.com>
Merge Tinku's fixes from 6b1e6b9a748d66c8f136074285fadad621720c91
Signed-off-by: Pratheesh Gangadhar <pratheesh@ti.com>
Signed-off-by: Pratheesh Gangadhar <pratheesh@ti.com>
Fixes from Tinku's 654b97f85f4
Not fully functional due to RGMII CFG issue for interposer card
Signed-off-by: Pratheesh Gangadhar <pratheesh@ti.com>
Not fully functional due to RGMII CFG issue for interposer card
Signed-off-by: Pratheesh Gangadhar <pratheesh@ti.com>
Bugfixes identified for 100M during testing
Signed-off-by: Pratheesh Gangadhar <pratheesh@ti.com>
Signed-off-by: Pratheesh Gangadhar <pratheesh@ti.com>
Fixing switch test application build issue
Signed-off-by: Pratheesh Gangadhar <pratheesh@ti.com>
Signed-off-by: Pratheesh Gangadhar <pratheesh@ti.com>
Changing TXIPG @ 1G to 104 ns, fixing comments
Signed-off-by: Pratheesh Gangadhar <pratheesh@ti.com>
Signed-off-by: Pratheesh Gangadhar <pratheesh@ti.com>
Merge remote-tracking branch 'remotes/origin/dev_emac_lld_pn_tsn_fdb_ageing_ioctl' into dev_emac_lld_pntsn_inc2_release
# Conflicts:
# src/v5/emac_drv_v5.c
# Conflicts:
# src/v5/emac_drv_v5.c
Back porting PRSDK-6229
am65xx: Use SOC configuration base addresses instead of local copy in drv
Signed-off-by: Pratheesh Gangadhar <pratheesh@ti.com>
am65xx: Use SOC configuration base addresses instead of local copy in drv
Signed-off-by: Pratheesh Gangadhar <pratheesh@ti.com>
Back porting PRSDK-3817 to Processor SDK 5.2 baseline
Signed-off-by: Pratheesh Gangadhar <pratheesh@ti.com>
Signed-off-by: Pratheesh Gangadhar <pratheesh@ti.com>
Merge remote-tracking branch 'remotes/origin/dev_a0230313_emac_PINDSW_3340' into dev_emac_lld_pntsn_inc2_release
replacing tab by space.
PINDSW-3480
PRSDK-6253-Added IOCTL to configure ageing timeout.Default configuration of the time out value added in init code
Merge remote-tracking branch 'remotes/origin/dev_emac_lld_pntsn_inc2_release' into dev_emac_lld_pn_tsn_fdb_ageing_ioctl
# Conflicts:
# emac_drv.h
# emac_ioctl.h
# Conflicts:
# emac_drv.h
# emac_ioctl.h
4 years agoMerge remote-tracking branch 'remotes/origin/review_PRSDK-5868' into dev_emac_lld_pnt... DEV.PRU-ICSS-PROFINET-SWITCH_02.01.00.09.RC2
Merge remote-tracking branch 'remotes/origin/review_PRSDK-5868' into dev_emac_lld_pntsn_inc2_release
am65xx: Unit test update for trace utility integration
register trace callback with emac driver
update configuration files re-direct system output to UART
unit test fixes.
Signed-off-by: Tinku Mannan <tmannan@ti.com>
register trace callback with emac driver
update configuration files re-direct system output to UART
unit test fixes.
Signed-off-by: Tinku Mannan <tmannan@ti.com>
am65xx: Adding debug trace support in emac driver
Signed-off-by: Tinku Mannan <tmannan@ti.com>
Signed-off-by: Tinku Mannan <tmannan@ti.com>
am65xx: Unit test update to verify packet less than 60 bytes is zero padded
packet send via emac_send which is less than 60 bytes will be zero padded
upto 60 bytes and packet length will be set to 60 bytes by the driver at
time of emac_send.
Signed-off-by: Tinku Mannan <tmannan@ti.com>
packet send via emac_send which is less than 60 bytes will be zero padded
upto 60 bytes and packet length will be set to 60 bytes by the driver at
time of emac_send.
Signed-off-by: Tinku Mannan <tmannan@ti.com>
icss_dualmac: makeversions: limit version string to 32 bytes
* It has been observed that 33 bytes breaks functionality.
Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
* It has been observed that 33 bytes breaks functionality.
Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
Need to memory map NBO CFG registers for A53
am65xx: Update to sync with pruss driver
PRUICSS_create needs to be called with PRUICCSS_INSTANCE_THREE
for 3rd instance.
Signed-off-by: Tinku Mannan <tmannan@ti.com>
PRUICSS_create needs to be called with PRUICCSS_INSTANCE_THREE
for 3rd instance.
Signed-off-by: Tinku Mannan <tmannan@ti.com>
Additional Design doc update
Design doc update
Aligning to master branch
Aligning to the latest firmware
4 years agoMerge remote-tracking branch 'remotes/origin/master' into dev_emac_lld_pntsn_inc2_release
Merge remote-tracking branch 'remotes/origin/master' into dev_emac_lld_pntsn_inc2_release
Merge remote-tracking branch 'remotes/origin/dev_emac_lld_pntsn_inc2_release_PRSDK-6024' into dev_emac_lld_pntsn_inc2_release
PRSDK-6024:Added review comments
PRSDK-6024:Fixed build issues. Other fixes
Release notes and version update for 6.0
Updates to align with the latest firmware
am57xx: Fix in tx enqueue logic
to allow enqueing of multiple descriptors to DMA for transmission in
1 shot
minor cleanup
Signed-off-by: Tinku Mannan <tmannan@ti.com>
to allow enqueing of multiple descriptors to DMA for transmission in
1 shot
minor cleanup
Signed-off-by: Tinku Mannan <tmannan@ti.com>
am65xx: Zero pad transmit packet that is less than 60 bytes
Signed-off-by: Tinku Mannan <tmannan@ti.com>
Signed-off-by: Tinku Mannan <tmannan@ti.com>
dual mac F/W: fix out of order SCHED_CHECK_DMA bug
Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
dual_mac F/W: remove unused code for buffers used by switch
Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
dual_mac F/W: update buffer pool tail with disabled TM
Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
Added IOCTL to configure MSMC base address
AM57xx: emac: Fix for sending packet out of directed port
Need to update the TO_PORT_EN and TO_PORT fields of TX buffer descriptor
when directing packet of of specified port.
Signed-off-by: Tinku Mannan <tmannan@ti.com>
Need to update the TO_PORT_EN and TO_PORT fields of TX buffer descriptor
when directing packet of of specified port.
Signed-off-by: Tinku Mannan <tmannan@ti.com>
K2G: Fix cache primitive call for packet RX for DSP use case
Need to invalidate the descriptor prior to invalidating the buffer
Need to perform cache primitives on descriptor and buffer
when replenishing RX free queue
Signed-off-by: Tinku Mannan <tmannan@ti.com>
Need to invalidate the descriptor prior to invalidating the buffer
Need to perform cache primitives on descriptor and buffer
when replenishing RX free queue
Signed-off-by: Tinku Mannan <tmannan@ti.com>
PRSDK-5812 Addressing Review comments
Move local to global conversion func to SOC specific file from driver.
Add a function pointer for local to global cache function to the
hwAttrs sturcture.
Update driver functions to use the hwAttrs function pointer for
converting any local to global cache address.
Move local to global conversion func to SOC specific file from driver.
Add a function pointer for local to global cache function to the
hwAttrs sturcture.
Update driver functions to use the hwAttrs function pointer for
converting any local to global cache address.
Fix local to global address conversion
Fixing a compilation issue identified
Accounting for non-zero MSMC_START_OFFSET
EMAC was using incorrect port q size macro.
MSMC_END_OFFSET includes all MSMC memory and not just Tx Q usage
MSMC_END_OFFSET includes all MSMC memory and not just Tx Q usage
Merge remote-tracking branch 'remotes/origin/dev_emac_lld_pn_tsn_incorrect_macro_for_port_q_size' into dev_emac_lld_pntsn_inc2_release
Fixing a compilation issue identified
Merge remote-tracking branch 'remotes/origin/dev_emac_lld_pn_tsn_incorrect_macro_for_port_q_size' into dev_emac_lld_pntsn_inc2_release
Accounting for non-zero MSMC_START_OFFSET
EMAC was using incorrect port q size macro.
MSMC_END_OFFSET includes all MSMC memory and not just Tx Q usage
MSMC_END_OFFSET includes all MSMC memory and not just Tx Q usage
Merge remote-tracking branch 'remotes/origin/review_PRSDK-5955' into dev_emac_lld_pntsn_inc2_release
Enabling FDB ageing timeout IOCTL - Part 1
1. Partial changes to enable FDB ageing IOCTL.
2. Changes not yet compiled
1. Partial changes to enable FDB ageing IOCTL.
2. Changes not yet compiled
am65xx: Fix link status being returned for 2nd port of ICSSG instance
When polling for link status of 2nd port of ICSSG instance, phy address
of 1st port was being used.
cleanup of mdio implementation in driver
Signed-off-by: Tinku Mannan <tmannan@ti.com>
When polling for link status of 2nd port of ICSSG instance, phy address
of 1st port was being used.
cleanup of mdio implementation in driver
Signed-off-by: Tinku Mannan <tmannan@ti.com>
remove unused code from TX_ERR handler
Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
4 years agoMerge remote-tracking branch 'remotes/origin/master' into dev_emac_lld_pntsn_inc2_release
Merge remote-tracking branch 'remotes/origin/master' into dev_emac_lld_pntsn_inc2_release
# Conflicts:
# test/EmacLoopbackTest/test_utils_switch_k3.c
# Conflicts:
# test/EmacLoopbackTest/test_utils_switch_k3.c
am65xx: Unit test update for testing directed packet on specific port
Signed-off-by: Tinku Mannan <tmannan@ti.com>
Signed-off-by: Tinku Mannan <tmannan@ti.com>
am65xx; IOCTL command buffers need to cache size aligned for R5 use case
Signed-off-by: Tinku Mannan <tmannan@ti.com>
Signed-off-by: Tinku Mannan <tmannan@ti.com>
am65xx: Unit test updates to for TX port queue check verification
increased size of port queue array allocated from MSMC per latest
ICSSG switch FW requirements.
Moved port queue allocation to MSMC_SRAM from MSMC_SRAM_H
Signed-off-by: Tinku Mannan <tmannan@ti.com>
increased size of port queue array allocated from MSMC per latest
ICSSG switch FW requirements.
Moved port queue allocation to MSMC_SRAM from MSMC_SRAM_H
Signed-off-by: Tinku Mannan <tmannan@ti.com>
am65xx: Adding TX port queue size field to EMAC_FW_APP_CONFIG
passed in at time of emac_open to perform TX port queue size check to
ensure there is enough memory provided by the app to configure ICSSG
SWITCH host/port and host egress queues.
Adding macro to define port queue size per instance
passed in at time of emac_open to perform TX port queue size check to
ensure there is enough memory provided by the app to configure ICSSG
SWITCH host/port and host egress queues.
Adding macro to define port queue size per instance
Modifying Switch mem map
Previous commit failed to update the change
Previous commit failed to update the change
Updating firmware headers
am65xx: Unit test updates to for TX port queue check verification
increased size of port queue array allocated from MSMC per latest
ICSSG switch FW requirements.
Moved port queue allocation to MSMC_SRAM from MSMC_SRAM_H
Signed-off-by: Tinku Mannan <tmannan@ti.com>
increased size of port queue array allocated from MSMC per latest
ICSSG switch FW requirements.
Moved port queue allocation to MSMC_SRAM from MSMC_SRAM_H
Signed-off-by: Tinku Mannan <tmannan@ti.com>
am65xx: Adding TX port queue size field to EMAC_FW_APP_CONFIG
passed in at time of emac_open to perform TX port queue size check to
ensure there is enough memory provided by the app to configure ICSSG
SWITCH host/port and host egress queues.
Signed-off-by: Tinku Mannan <tmannan@ti.com>
passed in at time of emac_open to perform TX port queue size check to
ensure there is enough memory provided by the app to configure ICSSG
SWITCH host/port and host egress queues.
Signed-off-by: Tinku Mannan <tmannan@ti.com>
PRSDk-4453 Update config file to be generic for SMP and non SMP mode
Update makefile to invoke top level SMp config for SMP test cases.
Update AM572x EVM cfg file to be generic for both SMp and non SMP test
case
Update makefile to invoke top level SMp config for SMP test cases.
Update AM572x EVM cfg file to be generic for both SMp and non SMP test
case
PRSDK-4453 Addressing review comments
Removed redundant config file for Audio loopback SMP example.
Update existing config file to enable support for SMP and non SMP
mode.
Removed redundant config file for Audio loopback SMP example.
Update existing config file to enable support for SMP and non SMP
mode.
PRSDK-4453 Update libProfile inline with makefile BUILD_PROFILE macro
Remove hardcoded library profile for the driver components
Update config file to get library profile from the makefile macros
Remove hardcoded library profile for the driver components
Update config file to get library profile from the makefile macros
PRSDK-4453 Add SMP enabled support for A53 core
Update makefile and component makefile to add entry for SMP enabled
examples
Update makefile and component makefile to add entry for SMP enabled
examples
PRSDK-4453 Add SMP enabled BIOS project for AM572x EVM
Add project text file and RTSC config file for SMP enabled Test project
Add project text file and RTSC config file for SMP enabled Test project
PRSDK-4453 Update config file to remove board dependancy
Update config file to remove board and SCI components to remove board
name dependency.
Update config file to remove board and SCI components to remove board
name dependency.
PRSDK-4453 Update RTSC config file to load PDK components
Update UART example/test RTSC config file ti load PDK driver components
and OSAL package during compilation.
Update UART example/test RTSC config file ti load PDK driver components
and OSAL package during compilation.
am65xx: firmware: makefile: fix clean command for windows build
Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
am65xx: Need to free back descriptors from MGMT2 free channel.
Update includes to not free packet descriptor back to application for
tx completion processing when TX completion is a result of sending MGMT
request to firmware.
Signed-off-by: Tinku Mannan <tmannan@ti.com>
Update includes to not free packet descriptor back to application for
tx completion processing when TX completion is a result of sending MGMT
request to firmware.
Signed-off-by: Tinku Mannan <tmannan@ti.com>
am65xx: Enabling testing of TX TS for ICSSG SWITCH use case
Signed-off-by: Tinku Mannan <tmannan@ti.com>
Signed-off-by: Tinku Mannan <tmannan@ti.com>
am65xx: Updating to use latest ICSSG SWITCH firmware headers
Signed-off-by: Tinku Mannan <tmannan@ti.com>
Signed-off-by: Tinku Mannan <tmannan@ti.com>
am65xx: test app updates to verify IOCTL commands.
added test to add upto max vlan entries to vlan table.
added counters to sync alloc and free pkt callbacks.
minor cleanup.
Signed-off-by: Tinku Mannan <tmannan@ti.com>
added test to add upto max vlan entries to vlan table.
added counters to sync alloc and free pkt callbacks.
minor cleanup.
Signed-off-by: Tinku Mannan <tmannan@ti.com>
am65xx: Fix return value of IOCTL command reqeust when IOCTL command fails.
Signed-off-by: Tinku Mannan <tmannan@ti.com>
Signed-off-by: Tinku Mannan <tmannan@ti.com>
dm firmware: set TX timestamp valid bit
Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
implement TX_ERR handler
Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
Adding ts_valid flag to tx_ts callback
am65xx: EMAC driver fixes
Fix port number used to poll for tx completion events for switch events
Fix in emac open for check for getFwCfg function pointer
Signed-off-by: Tinku Mannan <tmannan@ti.com>
Fix port number used to poll for tx completion events for switch events
Fix in emac open for check for getFwCfg function pointer
Signed-off-by: Tinku Mannan <tmannan@ti.com>
am65xx: Use MSMC3_H section for ICSSG firmware port queues
Signed-off-by: Tinku Mannan <tmannan@ti.com>
Signed-off-by: Tinku Mannan <tmannan@ti.com>
am65xx: Test update to include emac_close API call.
Signed-off-by: Tinku Mannan <tmannan@ti.com>
Signed-off-by: Tinku Mannan <tmannan@ti.com>
am65xx: IOCTL command structs stored as part of emac mcb
removed stack reference to IOCTL command structs and
using ones as part of emac mcb.
Signed-off-by: Tinku Mannan <tmannan@ti.com>
removed stack reference to IOCTL command structs and
using ones as part of emac mcb.
Signed-off-by: Tinku Mannan <tmannan@ti.com>
am65xx:Free pkt descriptors back to app at time of emac_close
Update includes cleanup of emac_drv_v5.h
Update includes cleanup of emac_drv_v5.h
PINDSW-3266
PVID = 0x0FFE is also not accepted.
PVID = 0x0FFE is also not accepted.
PINDSW-3266
Fixing DUT is accepting VIDs = 0x000 while it should be from 1 to 4094
Fixing DUT is accepting VIDs = 0x000 while it should be from 1 to 4094
PRE_EMPTION_ADD_FRAG_SIZE_LOCAL offset is assigned only one byte, making corresponding changes in driver.
Aligning to the latest version of switch_mem_map.h
Incorporating review comments to remove doc reference
Changes to FDB IOCTL
1. There can now be two FID_C2 values for two ports
2. Earlier assumption was that the FDI_C2 value for both ports would be
identical but that's not correct
1. There can now be two FID_C2 values for two ports
2. Earlier assumption was that the FDI_C2 value for both ports would be
identical but that's not correct
Update memmap headers to align with firmware
Signed-off-by: Pratheesh Gangadhar <pratheesh@ti.com>
Signed-off-by: Pratheesh Gangadhar <pratheesh@ti.com>