Move device memory to a weaker type. The new device memory type allows
the system to acknowledge a write to a device before the write has
completed. This is inline with VM_MEMATTR_DEVICE on armv6/armv7.
Sponsored by: Arm Ltd
Differential D38945 Authored by andrew on Mar 7 2023, 2:48 PM.
Details
Summary Move device memory to a weaker type. The new device memory type allows Sponsored by: Arm Ltd
Diff Detail
Event TimelineHerald added a reviewer: manu. · View Herald TranscriptMar 7 2023, 2:48 PM2023-03-07 14:48:36 (UTC+0) Harbormaster completed remote builds in B50188: Diff 118454.Mar 7 2023, 2:48 PM2023-03-07 14:48:36 (UTC+0) andrew retitled this revision from Siwtch the arm64 VM_MEMATTR_DEVICE to nGnRE to Switch the arm64 VM_MEMATTR_DEVICE to nGnRE.Mar 7 2023, 3:46 PM2023-03-07 15:46:44 (UTC+0) Comment Actions Seems legit, but I never can keep all the memory models of arm in my head for more than a minute...
Harbormaster completed remote builds in B50197: Diff 118475.Mar 7 2023, 5:48 PM2023-03-07 17:48:54 (UTC+0) Comment Actions nGnR means the hardware won't merge or reorder memory accesses. nE means it won't acknowledge a write until the device does so, switching to E relaxes this to allow this acknowledgement to happen earlier. Care needs to be taken if we need to check a write has completed but this should be mostly handled as it's also the case on armv6/armv7. This revision was not accepted when it landed; it landed in state Needs Review.Mar 16 2023, 4:46 PM2023-03-16 16:46:41 (UTC+0) Closed by commit rG3473f2832284: Switch the arm64 VM_MEMATTR_DEVICE to nGnRE (authored by andrew). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 118475 sys/arm64/include/vm.h
|
Did you want to also clarify this is available only when sys/endian.h is included?