Repository navigation
Calibrate the Cortex-A72's memory path to the Raspberry Pi 4 - #374
Merged
Merged
Conversation
The bus moved bus_width bytes every core cycle over one channel each way. bus_clock_divider now sets how many core cycles a beat takes, as the Cortex-A72's 128-bit port runs at an integer fraction of the core clock, and bus_channels chooses the organisation: RequestResponse, one channel out carrying an address and any write data and one back carrying read data or an acknowledgement, as TileLink and gem5's crossbar have and the bus had; or Axi, AXI's five channels, so reads and writes queue only behind their own kind.
Memory is the Pi's LPDDR4-3200 on the command-level controller, behind the A72's 128-bit AXI port (TRM 7.7). The port's clock fraction is unpublished and fitted to the Pi's C fill, one beat every 8 core cycles, and the bus crossing's latency to its 16 MB chase. C copy, fitted to neither, now runs at 2,261 MB/s against the Pi's 2,253.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves the Cortex-A72 calibration onto LPDDR4 (#373) behind a model of the A72's system port, closing the bandwidth gap in #370.
Clock the system bus and let it have AXI's channels
bus_clock_divider: core cycles per bus beat, so a bus is a width at its own clock. The A72's 128-bit port runs at 1:1 or N:1 of the core clock (TRM 7.7).bus_channelsselects the channel organisation:RequestResponse, the default and the previous model: one channel out carrying an address and any write data, one back carrying read data or an acknowledgement, as TileLink and gem5's crossbar do.Axi: AXI's five channels, so reads and writes queue only behind their own kind.make accuracyreports every program's error unchanged.Calibrate the Cortex-A72's memory path to the Raspberry Pi 4
MemoryController.Lpddr4(density="Gb16"): two 16-bit channels of 16 Gb dies, from Micron's datasheets.bus_width=16andbus_channels="Axi"from the TRM.bus_clock_divider=8is fitted to the Pi's C fill. Every tinymembench fill on the Pi, NEON and non-temporal stores included, stops near 3 GB/s, a quarter of the memory's peak, so the limit is the port.bus_latency=5is fitted to the Pi's 16 MB chase.Checked locally
make accuracy: unchanged.make lockstep-ci: 858/858.ref cortex-a72andref linuxwith 4 harts: 376/376.