diff options
author | Tobias Waldekranz <[email protected]> | 2023-12-04 11:08:10 +0100 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-12-05 20:10:16 -0800 |
commit | 7dd12fe34686d89c332b1a05104d18d728591f0a (patch) | |
tree | b0ab61dff55052f7e28f7b4e3c5a50e7fb5029b5 /tools/perf/scripts/python/gecko.py | |
parent | f3c928008ab218055e26917ffdbdaf429e8e616a (diff) |
net: mvmdio: Avoid excessive sleeps in polled mode
Before this change, when operating in polled mode, i.e. no IRQ is
available, every individual C45 access would be hit with a 150us sleep
after the bus access.
For example, on a board with a CN9130 SoC connected to an MV88X3310
PHY, a single C45 read would take around 165us:
root@infix:~$ mdio f212a600.mdio-mii mmd 4:1 bench 0xc003
Performed 1000 reads in 165ms
By replacing the long sleep with a tighter poll loop, we observe a 10x
increase in bus throughput:
root@infix:~$ mdio f212a600.mdio-mii mmd 4:1 bench 0xc003
Performed 1000 reads in 15ms
Signed-off-by: Tobias Waldekranz <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Tested-by: Andrew Lunn <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions