14 Dec, 2020
40 commits
-
PFE driver enhancements to load the PE firmware from filesystem
when the firmware is not found in FDT.Signed-off-by: Chaitanya Sakinam
-
Due to carrier extended bug the phy counter IEEE_rx_drop counter is
incremented some times and phy reports the packet has crc error.
Because of this PFE revalidates all the packets that are marked crc
error by phy. Now, the counter phy reports is till bogus and this
patch decrements the counter by pfe revalidated (and are crc ok)
counter amount.Signed-off-by: Chaitanya Sakinam
-
The macro, "LOAD_PFEFIRMWARE_FROM_FILESYSTEM" is been disabled to load
the firmware from FDT by default. Enabling the macro will load the
firmware from filesystem.Also, the Makefile is now tuned to build pfe as per the config option
Signed-off-by: Chaitanya Sakinam
-
avoid return value overwrite at the end of function.
LF-2136, LF-2137 and Coverity CID: 8879341, 8879364Signed-off-by: Chaitanya Sakinam
-
Avoiding header inclusions that are not necessary and also that are
causing header inclusion recursion.LF-2102 and Coverity CID: 240838
Signed-off-by: Chaitanya Sakinam
-
proper err return in error case.
LF-1806 and Coverity CID: 10468592Signed-off-by: Chaitanya Sakinam
-
avoid out-of-bound writes with proper error handling
LF-1654, LF-1652 and Coverity CID: 3335106, 3335090Signed-off-by: Chaitanya Sakinam
-
proper handling to avoid out-of-bound access
LF-1642, LF-1641 and Coverity CID: 240910, 240891Signed-off-by: Chaitanya Sakinam
-
proper checks added and handled for return value.
LF-1644 and Coverity CID: 241888Signed-off-by: Chaitanya Sakinam
-
proper initialization of scalar variable.
LF-1653 and Coverity CID: 3335101Signed-off-by: Chaitanya Sakinam
-
avoid out-of-bound writes with proper error handling
LF-1654, LF-1652 and Coverity CID: 3335106, 3335090Signed-off-by: Chaitanya Sakinam
-
variable name corrected
LF-1656 and Coverity CID: 3335119Signed-off-by: Chaitanya Sakinam
-
Proper initialization of scalar variable
LF-1657 and Coverity CID: 3335133Signed-off-by: Chaitanya Sakinam
-
corrected nesting level
LF-1661 and Coverity CID: 8879316Signed-off-by: Chaitanya Sakinam
-
Update Kconfig to cope with upstream change
commit 84af7a6194e4 ("checkpatch: kconfig: prefer 'help' over
'---help---'").Signed-off-by: Dong Aisheng
-
The correct setting for the RGMII ports on LS1012ARDB is to
enable delay on both Tx and Rx. So the phy mode to be matched
is PHY_INTERFACE_MODE_RGMII_ID.Signed-off-by: Chaitanya Sakinam
Signed-off-by: Anji Jagarlmudi -
FDT prepared in uboot now has pfe firmware part of it.
These changes will read the firmware by default from it and tries to load
the elf into the PFE PEs. This help build the pfe driver pasrt of kernel.Signed-off-by: Chaitanya Sakinam
Signed-off-by: Anji J -
firmware structure's data variable is the actual elf data. It has been
dereferenced in multiple functions and this has been reduced.Signed-off-by: Chaitanya Sakinam
Signed-off-by: Anji J -
It has been observed that the function pfe_get_gemac_if_properties() is
been called blindly for the next two child nodes. There might be some
cases where it may go wrong and that lead to missing interfaces.
with these changes it is ensured thats not the case.Signed-off-by: Chaitanya Sakinam
Signed-off-by: Anji J -
Set ethtool_ops->supported_coalesce_params to let
the core reject unsupported coalescing parameters.Signed-off-by: Anji Jagarlmudi
-
Fix the kernel crash when MAC addr is not passed in dtb.
Signed-off-by: Anji Jagarlmudi
-
Signed-off-by: Li Yang
-
LS1012A MAC PCS block has an erratum that is seen with specific PHY AR803x.
The issue is triggered by the (spec-compliant) operation of the AR803x PHY
on the LS1012A-FRWY board.Due to this, good FCS packet is reported as error
packet by MAC, so for these error packets FCS should be validated and
discard only real error packets in PFE Rx packet path.Signed-off-by: Nagesh Koneti
Signed-off-by: Nagesh Koneti -
Currently, the rules for configuring search paths in Kbuild have
changed: https://lkml.org/lkml/2019/5/13/37This will lead the below error:
fatal error: pfe/pfe.h: No such file or directory
Fix it by adding $(srctree)/ prefix to the search paths.
Signed-off-by: Ting Liu
-
To be consistent with upstream API change.
Signed-off-by: Li Yang
-
RAM area used by PFE should be mapped using memremap() instead of
directly traslating physical addr to virtual. This will ensure proper
checks are done before the area is used.Signed-off-by: Calvin Johnson
-
Commit ("soc: fsl: guts: make fsl_guts_get_svr() static") has
made fsl_guts_get_svr() static and hence use generic soc_device
infrastructure to check SoC revision.Signed-off-by: Calvin Johnson
-
Setting link mode bits have changed with the integration of
commit (3c1bcc8 net: ethernet: Convert phydev advertize and
supported from u32 to link mode). Adapt to the new method of
setting and clearing the link mode bits.Signed-off-by: Calvin Johnson
-
- separate mdio initialization from mac initialization
- Define pfe_mdio_priv_s structure to hold mii_bus structure and other
related data.
- Modify functions to work with the separted mdio init model.Signed-off-by: Calvin Johnson
-
- remove gemac-bus-id related code that is unused.
- remove unused prototype gemac_set_mdc_div.Signed-off-by: Calvin Johnson
-
- arrange members of struct mii_bus in sequence matching phy.h
- if mdio node is defined, use of_mdiobus_register to register
child nodes (phy devices) available on the mdio bus.
- remove of_phy_register_fixed_link from pfe_phy_init as it is being
handled in pfe_get_gemac_if_properties
- remove mdio enabled check
- skip phy init, if no PHY or fixed-linkSigned-off-by: Calvin Johnson
-
- Use "phy-handle" and of_* functions to get phy node and fixed-link
parameters- Reorganize phy parameters and initialize them only if phy-handle
or fixed-link is defined in the dtb.- correct typo pfe_get_gemac_if_proprties to pfe_get_gemac_if_properties
Signed-off-by: Calvin Johnson
-
- remove redundant hwfeature init
- remove unused vars from ls1012a_eth_platform_data
- To handle ls1012a errata_a010897, PPFE driver requires GUTS driver
to be compiled in. Select FSL_GUTS when PPFE driver is compiled.Signed-off-by: Calvin Johnson
-
Replace license text with corresponding SPDX identifiers and update the
format of existing SPDX identifiers to follow the new guideline
Documentation/process/license-rules.rst.Signed-off-by: Calvin Johnson
-
interrupt coalescing of 100 usec is added.
Signed-off-by: Akhil Goyal
Signed-off-by: Sachin Saxena -
HIF interrupts are enabled using ioctl from user space,
and epoll wait from user space wakes up when there is an HIF
interrupt.Signed-off-by: Akhil Goyal
-
Read and IOCTL support is added. Application would need to open,
read/ioctl the /dev/pfe_us_cdev device.
select is pending as it requires a wait_queue.Signed-off-by: Shreyansh Jain
Signed-off-by: Calvin Johnson -
In cases where MAC is not connected to a normal MDIO-managed PHY
device, and instead to a switch, it is configured as a "fixed-link".
Code to handle this scenario is added here.phy_node in the dtb is checked to identify a fixed-link.
On identification of a fixed-link, it is registered and connected.Signed-off-by: Calvin Johnson
-
Resolve the following indentation warning:
drivers/staging/fsl_ppfe/pfe_ls1012a_platform.c:
In function ‘pfe_get_gemac_if_proprties’:
drivers/staging/fsl_ppfe/pfe_ls1012a_platform.c:96:2:
warning: this ‘else’ clause does not guard...
[-Wmisleading-indentation]
else
^~~~
drivers/staging/fsl_ppfe/pfe_ls1012a_platform.c:98:3:
note: ...this statement, but the latter is misleadingly indented as
if it were guarded by the ‘else’
pdata->ls1012a_eth_pdata[port].mdio_muxval = phy_id;
^~~~~Signed-off-by: Calvin Johnson
-
Replace magic numbers and some cosmetic changes.
Signed-off-by: Calvin Johnson