没有合适的资源?快使用搜索试试~ 我知道了~
首页IHI_0070_C_a_System_Memory_Management_Unit_Arm_Architecture_Specification.pdf
IHI_0070_C_a_System_Memory_Management_Unit_Arm_Architecture_Spec...
需积分: 50 547 浏览量
更新于2023-05-25
评论 2
收藏 3.79MB PDF 举报
arm smmu spec. A System Memory Management Unit (SMMU) performs a task that is analogous to that of an MMU in a PE, translating addresses for DMA requests from system I/O devices before the requests are passed into the system interconnect. It is active for DMA only. Traffic in the other direction, from the system or PE to the device, is managed by other means – for example, the PE MMUs.
资源详情
资源评论
资源推荐

Copyright © 2016-2019 Arm Limited or its affiliates. All rights reserved.
Document number: IHI 0070C.a
Arm
®
System Memory Management Unit
Architecture Specification
SMMU architecture versions 3.0, 3.1 and 3.2

Page 2 of 436 Copyright © 2016-2019 Arm or its affiliates. All rights reserved. ARM IHI 0070C.a
Non-Confidential
System Memory Management Unit Architecture Specification
Copyright © 2016-2019 Arm Limited or its affiliates. All rights reserved.
Release information
Changes made to this document:
Date Issue Confidentiality Change
15 September 2016 A Non-Confidential First release
14 June 2017 B Non-Confidential Amendments and clarifications.
16 March 2018 C Non-confidential Update with SMMUv3.2 architecture. Further
amendments and clarifications.
18 July 2019 C.a Non-confidential Amendments and clarifications.
Proprietary Notice
This document is protected by copyright and other related rights and the practice or implementation of the
information contained in this document may be protected by one or more patents or pending patent applications.
No part of this document may be reproduced in any form by any means without the express prior written
permission of Arm. No license, express or implied, by estoppel or otherwise to any intellectual property
rights is granted by this document unless specifically stated.
Your access to the information in this document is conditional upon your acceptance that you will not use or
permit others to use the information for the purposes of determining whether implementations infringe any third
party patents.
THIS DOCUMENT IS PROVIDED “AS IS”. ARM PROVIDES NO REPRESENTATIONS AND NO WARRANTIES,
EXPRESS, IMPLIED OR STATUTORY, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
MERCHANTABILITY, SATISFACTORY QUALITY, NON-INFRINGEMENT OR FITNESS FOR A PARTICULAR
PURPOSE WITH RESPECT TO THE DOCUMENT. For the avoidance of doubt, Arm makes no representation
with respect to, and has undertaken no analysis to identify or understand the scope and content of, patents,
copyrights, trade secrets, or other rights.
This document may include technical inaccuracies or typographical errors.
TO THE EXTENT NOT PROHIBITED BY LAW, IN NO EVENT WILL ARM BE LIABLE FOR ANY DAMAGES,
INCLUDING WITHOUT LIMITATION ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, PUNITIVE, OR
CONSEQUENTIAL DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY,
ARISING OUT OF ANY USE OF THIS DOCUMENT, EVEN IF ARM HAS BEEN ADVISED OF THE POSSIBILITY
OF SUCH DAMAGES.
This document consists solely of commercial items. You shall be responsible for ensuring that any use,
duplication or disclosure of this document complies fully with any relevant export laws and regulations to assure

Page 3 of 436 Copyright © 2016-2019 Arm or its affiliates. All rights reserved. ARM IHI 0070C.a
Non-Confidential
that this document or any portion thereof is not exported, directly or indirectly, in violation of such export laws. Use
of the word “partner” in reference to Arm’s customers is not intended to create or refer to any partnership
relationship with any other company. Arm may make changes to this document at any time and without notice.
If any of the provisions contained in these terms conflict with any of the provisions of any click through or signed
written agreement covering this document with Arm, then the click through or signed written agreement prevails
over and supersedes the conflicting provisions of these terms. This document may be translated into other
languages for convenience, and you agree that if there is any conflict between the English version of this
document and any translation, the terms of the English version of the Agreement shall prevail.
The Arm corporate logo and words marked with ® or ™ are registered trademarks or trademarks of Arm Limited
(or its subsidiaries) in the US and/or elsewhere. All rights reserved. Other brands and names mentioned in this
document may be the trademarks of their respective owners. Please follow Arm’s trademark usage guidelines at
http://www.arm.com/company/policies/trademarks
.
Copyright © 2016-2019 Arm Limited (or its affiliates). All rights reserved.
Arm Limited. Company 02557590 registered in England.
110 Fulbourn Road, Cambridge, England CB1 9NJ.
LES-PRE-20349
Confidentiality Status
This document is Non-Confidential. The right to use, copy and disclose this document may be subject to license
restrictions in accordance with the terms of the agreement entered into by Arm and the party that Arm delivered
this document to.
Product Status
The information in this document is final, that is for a developed product.
Web Address
http://www.arm.com

Page 4 of 436 Copyright © 2016-2019 Arm or its affiliates. All rights reserved. ARM IHI 0070C.a
Non-Confidential
Contents
CONTENTS 4
1 ABOUT THIS DOCUMENT 14
1.1 References 14
1.2 Terms and abbreviations 14
1.3 Document Scope 18
2 INTRODUCTION 19
2.1 History 19
2.2 SMMUv3.0 features 20
2.3 SMMUv3.1 features 21
2.4 SMMUv3.2 features 21
2.5 Permitted implementation of subsets of SMMUv3.x and SMMUv3.(x+1) architectural features 22
2.6 System placement 23
3 OPERATION 26
3.1 Software interface 26
3.2 Stream numbering 26
3.3 Data structures and translation procedure 27
3.3.1 Stream Table lookup 28
3.3.2 StreamIDs to Context Descriptors 30
3.3.3 Configuration and Translation lookup 35
3.3.4 Transaction attributes: incoming, two-stage translation and overrides 37
3.3.5 Translation table descriptors 38
3.4 Address sizes 38
3.4.1 Input address size and Virtual Address size 41
3.4.2 Address alignment checks 42
3.4.3 Address sizes of SMMU-originated accesses 42
3.5 Command and Event queues 44
3.5.1 SMMU circular queues 44
3.5.2 Queue entry visibility semantics 48
3.5.3 Event queue behavior 48

Page 5 of 436 Copyright © 2016-2019 Arm or its affiliates. All rights reserved. ARM IHI 0070C.a
Non-Confidential
3.5.4 Definition of event record write “Commit” 49
3.5.5 Event merging 49
3.6 Structure and queue ownership 50
3.7 Programming registers 51
3.8 Virtualization 51
3.9 Support for PCI Express, PASIDs, PRI and ATS 51
3.9.1 ATS Interface 52
3.9.2 Changing ATS configuration 59
3.10 Support for two Security states 60
3.10.1 Secure State Determination (SSD) 61
3.10.2 Secure commands, events and configuration 62
3.10.3 Secure EL2 and support for Secure stage 2 translation 64
3.11 Reset, Enable and initialization 65
3.12 Fault models, recording and reporting 68
3.12.1 Terminate model 71
3.12.2 Stall model 71
3.12.3 Considerations for client devices using the Stall fault model 75
3.12.4 Virtual Memory paging with SMMU 75
3.12.5 Combinations of fault configuration with two stages 76
3.13 Translation table entries and Access/Dirty flags 78
3.13.1 Software update of flags 78
3.13.2 Access flag hardware update 79
3.13.3 Dirty flag hardware update 80
3.13.4 HTTU behavior summary 81
3.13.5 HTTU with two stages of translation 81
3.13.6 ATS, PRI and translation table flag update 82
3.13.7 Hardware flag update for Cache Maintenance Operations and Destructive Reads 84
3.14 Speculative accesses 84
3.15 Coherency considerations and memory access types 85
3.15.1 Client devices 86
3.16 Embedded implementations 86
3.16.1 Changes to structure and queue storage behavior when fixed/preset 87
3.17 TLB tagging, VMIDs, ASIDs and participation in broadcast TLB maintenance 88
3.17.1 The Global flag in the Translation Table Descriptor 91
3.17.2 Broadcast TLB maintenance from Armv8-A PEs with EL3 in AArch64 92
3.17.3 Broadcast TLB maintenance from ARMv7-A PEs or Armv8-A PEs with EL3 using AArch32 93
3.17.4 Broadcast TLB maintenance in mixed AArch32 and AArch64 systems and with mixed ASID or VMID
sizes 94
剩余435页未读,继续阅读






安全验证
文档复制为VIP权益,开通VIP直接复制

评论0