Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stm32h7: merge eth and eth_dma MPU regions #1669

Merged
merged 2 commits into from
Mar 20, 2024
Merged

stm32h7: merge eth and eth_dma MPU regions #1669

merged 2 commits into from
Mar 20, 2024

Conversation

hawkw
Copy link
Member

@hawkw hawkw commented Mar 20, 2024

Currently, the stm32h7 chip config defines two separate MPU regions for the Ethernet peripheral, eth and eth_dma. But, these regions are contiguous in memory. So, we can combine them into one region and get an entire MPU slot back, which seems nice.

Currently, the stm32h7 chip config defines two separate MPU regions for
the Ethernet peripheral, `eth` and `eth_dma`. But, these regions are
contiguous in memory. So, we can combine them into one region and get an
entire MPU slot back, which seems nice.
@hawkw hawkw requested review from cbiffle and mkeeter March 20, 2024 18:51
Copy link
Collaborator

@mkeeter mkeeter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, provided that you test it on a Gimletlet or equivalent before merging 😄

@hawkw
Copy link
Member Author

hawkw commented Mar 20, 2024

Looks good, provided that you test it on a Gimletlet or equivalent before merging 😄

eliza@theseus $ humility net ip
humility: attached via ST-Link V3
MAC address:  0e:1d:de:f0:d9:21
IPv6 address: fe80::0c1d:deff:fef0:d921

eliza@theseus $ ping fe80::0c1d:deff:fef0:d921%eth0
PING fe80::0c1d:deff:fef0:d921%eth0 (fe80::c1d:deff:fef0:d921%eth0) 56 data bytes
64 bytes from fe80::c1d:deff:fef0:d921%eth0: icmp_seq=2 ttl=64 time=0.219 ms
64 bytes from fe80::c1d:deff:fef0:d921%eth0: icmp_seq=3 ttl=64 time=0.233 ms
64 bytes from fe80::c1d:deff:fef0:d921%eth0: icmp_seq=4 ttl=64 time=0.238 ms
64 bytes from fe80::c1d:deff:fef0:d921%eth0: icmp_seq=5 ttl=64 time=0.250 ms
64 bytes from fe80::c1d:deff:fef0:d921%eth0: icmp_seq=6 ttl=64 time=0.354 ms
64 bytes from fe80::c1d:deff:fef0:d921%eth0: icmp_seq=7 ttl=64 time=0.284 ms
64 bytes from fe80::c1d:deff:fef0:d921%eth0: icmp_seq=8 ttl=64 time=0.315 ms
^X64 bytes from fe80::c1d:deff:fef0:d921%eth0: icmp_seq=9 ttl=64 time=0.228 ms
^C
--- fe80::0c1d:deff:fef0:d921%eth0 ping statistics ---
9 packets transmitted, 8 received, 11.1111% packet loss, time 8211ms
rtt min/avg/max/mdev = 0.219/0.265/0.354/0.045 ms

@hawkw
Copy link
Member Author

hawkw commented Mar 20, 2024

haha cool CI failure appears to be downloading humility, will rerun: https://github.com/oxidecomputer/hubris/actions/runs/8364354965/job/22899505454?pr=1669

@hawkw hawkw merged commit 9edefbe into master Mar 20, 2024
103 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants