diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2012-11-05 09:58:32 -0500 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2012-11-05 09:58:32 -0500 |
commit | 3fd9396af83a1e69eaf9ebb573207431d8f265b6 (patch) | |
tree | f221f5777695de71ea97423c67438bca1746e26c /Documentation | |
parent | e3978cded41dc7b364e74037f56d6bc558c11fd7 (diff) | |
parent | 3d70f8c617a436c7146ecb81df2265b4626dfe89 (diff) |
Merge tag 'v3.7-rc4' into upstream-master
Linux 3.7-rc4
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/00-INDEX | 4 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/arm/atmel-at91.txt | 2 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/input/touchscreen/egalax-ts.txt | 19 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/pinctrl/nvidia,tegra20-pinmux.txt | 2 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/pinctrl/nvidia,tegra30-pinmux.txt | 2 | ||||
-rw-r--r-- | Documentation/firmware_class/README | 26 | ||||
-rw-r--r-- | Documentation/hwmon/fam15h_power | 2 | ||||
-rw-r--r-- | Documentation/zh_CN/IRQ.txt | 39 | ||||
-rw-r--r-- | Documentation/zh_CN/arm64/booting.txt | 156 | ||||
-rw-r--r-- | Documentation/zh_CN/arm64/memory.txt | 93 |
10 files changed, 330 insertions, 15 deletions
diff --git a/Documentation/00-INDEX b/Documentation/00-INDEX index f54273e2ac97..ceb1ff735469 100644 --- a/Documentation/00-INDEX +++ b/Documentation/00-INDEX | |||
@@ -210,6 +210,8 @@ local_ops.txt | |||
210 | - semantics and behavior of local atomic operations. | 210 | - semantics and behavior of local atomic operations. |
211 | lockdep-design.txt | 211 | lockdep-design.txt |
212 | - documentation on the runtime locking correctness validator. | 212 | - documentation on the runtime locking correctness validator. |
213 | lockup-watchdogs.txt | ||
214 | - info on soft and hard lockup detectors (aka nmi_watchdog). | ||
213 | logo.gif | 215 | logo.gif |
214 | - full colour GIF image of Linux logo (penguin - Tux). | 216 | - full colour GIF image of Linux logo (penguin - Tux). |
215 | logo.txt | 217 | logo.txt |
@@ -240,8 +242,6 @@ netlabel/ | |||
240 | - directory with information on the NetLabel subsystem. | 242 | - directory with information on the NetLabel subsystem. |
241 | networking/ | 243 | networking/ |
242 | - directory with info on various aspects of networking with Linux. | 244 | - directory with info on various aspects of networking with Linux. |
243 | nmi_watchdog.txt | ||
244 | - info on NMI watchdog for SMP systems. | ||
245 | nommu-mmap.txt | 245 | nommu-mmap.txt |
246 | - documentation about no-mmu memory mapping support. | 246 | - documentation about no-mmu memory mapping support. |
247 | numastat.txt | 247 | numastat.txt |
diff --git a/Documentation/devicetree/bindings/arm/atmel-at91.txt b/Documentation/devicetree/bindings/arm/atmel-at91.txt index ecc81e368715..d187e9f7cf1c 100644 --- a/Documentation/devicetree/bindings/arm/atmel-at91.txt +++ b/Documentation/devicetree/bindings/arm/atmel-at91.txt | |||
@@ -8,7 +8,7 @@ PIT Timer required properties: | |||
8 | shared across all System Controller members. | 8 | shared across all System Controller members. |
9 | 9 | ||
10 | TC/TCLIB Timer required properties: | 10 | TC/TCLIB Timer required properties: |
11 | - compatible: Should be "atmel,<chip>-pit". | 11 | - compatible: Should be "atmel,<chip>-tcb". |
12 | <chip> can be "at91rm9200" or "at91sam9x5" | 12 | <chip> can be "at91rm9200" or "at91sam9x5" |
13 | - reg: Should contain registers location and length | 13 | - reg: Should contain registers location and length |
14 | - interrupts: Should contain all interrupts for the TC block | 14 | - interrupts: Should contain all interrupts for the TC block |
diff --git a/Documentation/devicetree/bindings/input/touchscreen/egalax-ts.txt b/Documentation/devicetree/bindings/input/touchscreen/egalax-ts.txt new file mode 100644 index 000000000000..df70318a617f --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/egalax-ts.txt | |||
@@ -0,0 +1,19 @@ | |||
1 | * EETI eGalax Multiple Touch Controller | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: must be "eeti,egalax_ts" | ||
5 | - reg: i2c slave address | ||
6 | - interrupt-parent: the phandle for the interrupt controller | ||
7 | - interrupts: touch controller interrupt | ||
8 | - wakeup-gpios: the gpio pin to be used for waking up the controller | ||
9 | as well as uased as irq pin | ||
10 | |||
11 | Example: | ||
12 | |||
13 | egalax_ts@04 { | ||
14 | compatible = "eeti,egalax_ts"; | ||
15 | reg = <0x04>; | ||
16 | interrupt-parent = <&gpio1>; | ||
17 | interrupts = <9 2>; | ||
18 | wakeup-gpios = <&gpio1 9 0>; | ||
19 | }; | ||
diff --git a/Documentation/devicetree/bindings/pinctrl/nvidia,tegra20-pinmux.txt b/Documentation/devicetree/bindings/pinctrl/nvidia,tegra20-pinmux.txt index c8e578263ce2..683fde93c4fb 100644 --- a/Documentation/devicetree/bindings/pinctrl/nvidia,tegra20-pinmux.txt +++ b/Documentation/devicetree/bindings/pinctrl/nvidia,tegra20-pinmux.txt | |||
@@ -93,7 +93,7 @@ Valid values for pin and group names are: | |||
93 | 93 | ||
94 | With some exceptions, these support nvidia,high-speed-mode, | 94 | With some exceptions, these support nvidia,high-speed-mode, |
95 | nvidia,schmitt, nvidia,low-power-mode, nvidia,pull-down-strength, | 95 | nvidia,schmitt, nvidia,low-power-mode, nvidia,pull-down-strength, |
96 | nvidia,pull-up-strength, nvidia,slew_rate-rising, nvidia,slew_rate-falling. | 96 | nvidia,pull-up-strength, nvidia,slew-rate-rising, nvidia,slew-rate-falling. |
97 | 97 | ||
98 | drive_ao1, drive_ao2, drive_at1, drive_at2, drive_cdev1, drive_cdev2, | 98 | drive_ao1, drive_ao2, drive_at1, drive_at2, drive_cdev1, drive_cdev2, |
99 | drive_csus, drive_dap1, drive_dap2, drive_dap3, drive_dap4, drive_dbg, | 99 | drive_csus, drive_dap1, drive_dap2, drive_dap3, drive_dap4, drive_dbg, |
diff --git a/Documentation/devicetree/bindings/pinctrl/nvidia,tegra30-pinmux.txt b/Documentation/devicetree/bindings/pinctrl/nvidia,tegra30-pinmux.txt index c275b70349c1..6f426ed7009e 100644 --- a/Documentation/devicetree/bindings/pinctrl/nvidia,tegra30-pinmux.txt +++ b/Documentation/devicetree/bindings/pinctrl/nvidia,tegra30-pinmux.txt | |||
@@ -83,7 +83,7 @@ Valid values for pin and group names are: | |||
83 | drive groups: | 83 | drive groups: |
84 | 84 | ||
85 | These all support nvidia,pull-down-strength, nvidia,pull-up-strength, | 85 | These all support nvidia,pull-down-strength, nvidia,pull-up-strength, |
86 | nvidia,slew_rate-rising, nvidia,slew_rate-falling. Most but not all | 86 | nvidia,slew-rate-rising, nvidia,slew-rate-falling. Most but not all |
87 | support nvidia,high-speed-mode, nvidia,schmitt, nvidia,low-power-mode. | 87 | support nvidia,high-speed-mode, nvidia,schmitt, nvidia,low-power-mode. |
88 | 88 | ||
89 | ao1, ao2, at1, at2, at3, at4, at5, cdev1, cdev2, cec, crt, csus, dap1, | 89 | ao1, ao2, at1, at2, at3, at4, at5, cdev1, cdev2, cec, crt, csus, dap1, |
diff --git a/Documentation/firmware_class/README b/Documentation/firmware_class/README index 7eceaff63f5f..815b711bcd85 100644 --- a/Documentation/firmware_class/README +++ b/Documentation/firmware_class/README | |||
@@ -18,32 +18,40 @@ | |||
18 | High level behavior (mixed): | 18 | High level behavior (mixed): |
19 | ============================ | 19 | ============================ |
20 | 20 | ||
21 | kernel(driver): calls request_firmware(&fw_entry, $FIRMWARE, device) | 21 | 1), kernel(driver): |
22 | 22 | - calls request_firmware(&fw_entry, $FIRMWARE, device) | |
23 | userspace: | 23 | - kernel searchs the fimware image with name $FIRMWARE directly |
24 | in the below search path of root filesystem: | ||
25 | "/lib/firmware/updates/" UTS_RELEASE, | ||
26 | "/lib/firmware/updates", | ||
27 | "/lib/firmware/" UTS_RELEASE, | ||
28 | "/lib/firmware" | ||
29 | - If found, goto 7), else goto 2) | ||
30 | |||
31 | 2), userspace: | ||
24 | - /sys/class/firmware/xxx/{loading,data} appear. | 32 | - /sys/class/firmware/xxx/{loading,data} appear. |
25 | - hotplug gets called with a firmware identifier in $FIRMWARE | 33 | - hotplug gets called with a firmware identifier in $FIRMWARE |
26 | and the usual hotplug environment. | 34 | and the usual hotplug environment. |
27 | - hotplug: echo 1 > /sys/class/firmware/xxx/loading | 35 | - hotplug: echo 1 > /sys/class/firmware/xxx/loading |
28 | 36 | ||
29 | kernel: Discard any previous partial load. | 37 | 3), kernel: Discard any previous partial load. |
30 | 38 | ||
31 | userspace: | 39 | 4), userspace: |
32 | - hotplug: cat appropriate_firmware_image > \ | 40 | - hotplug: cat appropriate_firmware_image > \ |
33 | /sys/class/firmware/xxx/data | 41 | /sys/class/firmware/xxx/data |
34 | 42 | ||
35 | kernel: grows a buffer in PAGE_SIZE increments to hold the image as it | 43 | 5), kernel: grows a buffer in PAGE_SIZE increments to hold the image as it |
36 | comes in. | 44 | comes in. |
37 | 45 | ||
38 | userspace: | 46 | 6), userspace: |
39 | - hotplug: echo 0 > /sys/class/firmware/xxx/loading | 47 | - hotplug: echo 0 > /sys/class/firmware/xxx/loading |
40 | 48 | ||
41 | kernel: request_firmware() returns and the driver has the firmware | 49 | 7), kernel: request_firmware() returns and the driver has the firmware |
42 | image in fw_entry->{data,size}. If something went wrong | 50 | image in fw_entry->{data,size}. If something went wrong |
43 | request_firmware() returns non-zero and fw_entry is set to | 51 | request_firmware() returns non-zero and fw_entry is set to |
44 | NULL. | 52 | NULL. |
45 | 53 | ||
46 | kernel(driver): Driver code calls release_firmware(fw_entry) releasing | 54 | 8), kernel(driver): Driver code calls release_firmware(fw_entry) releasing |
47 | the firmware image and any related resource. | 55 | the firmware image and any related resource. |
48 | 56 | ||
49 | High level behavior (driver code): | 57 | High level behavior (driver code): |
diff --git a/Documentation/hwmon/fam15h_power b/Documentation/hwmon/fam15h_power index a92918e0bd69..80654813d04a 100644 --- a/Documentation/hwmon/fam15h_power +++ b/Documentation/hwmon/fam15h_power | |||
@@ -10,7 +10,7 @@ Supported chips: | |||
10 | BIOS and Kernel Developer's Guide (BKDG) For AMD Family 15h Processors | 10 | BIOS and Kernel Developer's Guide (BKDG) For AMD Family 15h Processors |
11 | (not yet published) | 11 | (not yet published) |
12 | 12 | ||
13 | Author: Andreas Herrmann <andreas.herrmann3@amd.com> | 13 | Author: Andreas Herrmann <herrmann.der.user@googlemail.com> |
14 | 14 | ||
15 | Description | 15 | Description |
16 | ----------- | 16 | ----------- |
diff --git a/Documentation/zh_CN/IRQ.txt b/Documentation/zh_CN/IRQ.txt new file mode 100644 index 000000000000..956026d5cf82 --- /dev/null +++ b/Documentation/zh_CN/IRQ.txt | |||
@@ -0,0 +1,39 @@ | |||
1 | Chinese translated version of Documentation/IRQ.txt | ||
2 | |||
3 | If you have any comment or update to the content, please contact the | ||
4 | original document maintainer directly. However, if you have a problem | ||
5 | communicating in English you can also ask the Chinese maintainer for | ||
6 | help. Contact the Chinese maintainer if this translation is outdated | ||
7 | or if there is a problem with the translation. | ||
8 | |||
9 | Maintainer: Eric W. Biederman <ebiederman@xmission.com> | ||
10 | Chinese maintainer: Fu Wei <tekkamanninja@gmail.com> | ||
11 | --------------------------------------------------------------------- | ||
12 | Documentation/IRQ.txt 的中文翻译 | ||
13 | |||
14 | 如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文 | ||
15 | 交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻 | ||
16 | 译存在问题,请联系中文版维护者。 | ||
17 | 英文版维护者: Eric W. Biederman <ebiederman@xmission.com> | ||
18 | 中文版维护者: 傅炜 Fu Wei <tekkamanninja@gmail.com> | ||
19 | 中文版翻译者: 傅炜 Fu Wei <tekkamanninja@gmail.com> | ||
20 | 中文版校译者: 傅炜 Fu Wei <tekkamanninja@gmail.com> | ||
21 | |||
22 | |||
23 | 以下为正文 | ||
24 | --------------------------------------------------------------------- | ||
25 | 何为 IRQ? | ||
26 | |||
27 | 一个 IRQ 是来自某个设备的一个中断请求。目前,它们可以来自一个硬件引脚, | ||
28 | 或来自一个数据包。多个设备可能连接到同个硬件引脚,从而共享一个 IRQ。 | ||
29 | |||
30 | 一个 IRQ 编号是用于告知硬件中断源的内核标识。通常情况下,这是一个 | ||
31 | 全局 irq_desc 数组的索引,但是除了在 linux/interrupt.h 中的实现, | ||
32 | 具体的细节是体系结构特定的。 | ||
33 | |||
34 | 一个 IRQ 编号是设备上某个可能的中断源的枚举。通常情况下,枚举的编号是 | ||
35 | 该引脚在系统内中断控制器的所有输入引脚中的编号。对于 ISA 总线中的情况, | ||
36 | 枚举的是在两个 i8259 中断控制器中 16 个输入引脚。 | ||
37 | |||
38 | 架构可以对 IRQ 编号指定额外的含义,在硬件涉及任何手工配置的情况下, | ||
39 | 是被提倡的。ISA 的 IRQ 是一个分配这类额外含义的典型例子。 | ||
diff --git a/Documentation/zh_CN/arm64/booting.txt b/Documentation/zh_CN/arm64/booting.txt new file mode 100644 index 000000000000..28fa325b7461 --- /dev/null +++ b/Documentation/zh_CN/arm64/booting.txt | |||
@@ -0,0 +1,156 @@ | |||
1 | Chinese translated version of Documentation/arm64/booting.txt | ||
2 | |||
3 | If you have any comment or update to the content, please contact the | ||
4 | original document maintainer directly. However, if you have a problem | ||
5 | communicating in English you can also ask the Chinese maintainer for | ||
6 | help. Contact the Chinese maintainer if this translation is outdated | ||
7 | or if there is a problem with the translation. | ||
8 | |||
9 | Maintainer: Will Deacon <will.deacon@arm.com> | ||
10 | Chinese maintainer: Fu Wei <tekkamanninja@gmail.com> | ||
11 | --------------------------------------------------------------------- | ||
12 | Documentation/arm64/booting.txt 的中文翻译 | ||
13 | |||
14 | 如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文 | ||
15 | 交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻 | ||
16 | 译存在问题,请联系中文版维护者。 | ||
17 | |||
18 | 英文版维护者: Will Deacon <will.deacon@arm.com> | ||
19 | 中文版维护者: 傅炜 Fu Wei <tekkamanninja@gmail.com> | ||
20 | 中文版翻译者: 傅炜 Fu Wei <tekkamanninja@gmail.com> | ||
21 | 中文版校译者: 傅炜 Fu Wei <tekkamanninja@gmail.com> | ||
22 | |||
23 | 以下为正文 | ||
24 | --------------------------------------------------------------------- | ||
25 | 启动 AArch64 Linux | ||
26 | ================== | ||
27 | |||
28 | 作者: Will Deacon <will.deacon@arm.com> | ||
29 | 日期: 2012 年 09 月 07 日 | ||
30 | |||
31 | 本文档基于 Russell King 的 ARM 启动文档,且适用于所有公开发布的 | ||
32 | AArch64 Linux 内核代码。 | ||
33 | |||
34 | AArch64 异常模型由多个异常级别(EL0 - EL3)组成,对于 EL0 和 EL1 | ||
35 | 异常级有对应的安全和非安全模式。EL2 是系统管理级,且仅存在于 | ||
36 | 非安全模式下。EL3 是最高特权级,且仅存在于安全模式下。 | ||
37 | |||
38 | 基于本文档的目的,我们将简单地使用‘引导装载程序’(‘boot loader’) | ||
39 | 这个术语来定义在将控制权交给 Linux 内核前 CPU 上执行的所有软件。 | ||
40 | 这可能包含安全监控和系统管理代码,或者它可能只是一些用于准备最小启动 | ||
41 | 环境的指令。 | ||
42 | |||
43 | 基本上,引导装载程序(至少)应实现以下操作: | ||
44 | |||
45 | 1、设置和初始化 RAM | ||
46 | 2、设置设备树数据 | ||
47 | 3、解压内核映像 | ||
48 | 4、调用内核映像 | ||
49 | |||
50 | |||
51 | 1、设置和初始化 RAM | ||
52 | ----------------- | ||
53 | |||
54 | 必要性: 强制 | ||
55 | |||
56 | 引导装载程序应该找到并初始化系统中所有内核用于保持系统变量数据的 RAM。 | ||
57 | 这个操作的执行是设备依赖的。(它可能使用内部算法来自动定位和计算所有 | ||
58 | RAM,或可能使用对这个设备已知的 RAM 信息,还可能使用任何引导装载程序 | ||
59 | 设计者想到的匹配方法。) | ||
60 | |||
61 | |||
62 | 2、设置设备树数据 | ||
63 | --------------- | ||
64 | |||
65 | 必要性: 强制 | ||
66 | |||
67 | 设备树数据块(dtb)大小必须不大于 2 MB,且位于从内核映像起始算起第一个 | ||
68 | 512MB 内的 2MB 边界上。这使得内核可以通过初始页表中的单个节描述符来 | ||
69 | 映射此数据块。 | ||
70 | |||
71 | |||
72 | 3、解压内核映像 | ||
73 | ------------- | ||
74 | |||
75 | 必要性: 可选 | ||
76 | |||
77 | AArch64 内核当前没有提供自解压代码,因此如果使用了压缩内核映像文件 | ||
78 | (比如 Image.gz),则需要通过引导装载程序(使用 gzip 等)来进行解压。 | ||
79 | 若引导装载程序没有实现这个需求,就要使用非压缩内核映像文件。 | ||
80 | |||
81 | |||
82 | 4、调用内核映像 | ||
83 | ------------- | ||
84 | |||
85 | 必要性: 强制 | ||
86 | |||
87 | 已解压的内核映像包含一个 32 字节的头,内容如下: | ||
88 | |||
89 | u32 magic = 0x14000008; /* 跳转到 stext, 小端 */ | ||
90 | u32 res0 = 0; /* 保留 */ | ||
91 | u64 text_offset; /* 映像装载偏移 */ | ||
92 | u64 res1 = 0; /* 保留 */ | ||
93 | u64 res2 = 0; /* 保留 */ | ||
94 | |||
95 | 映像必须位于系统 RAM 起始处的特定偏移(当前是 0x80000)。系统 RAM | ||
96 | 的起始地址必须是以 2MB 对齐的。 | ||
97 | |||
98 | 在跳转入内核前,必须符合以下状态: | ||
99 | |||
100 | - 停止所有 DMA 设备,这样内存数据就不会因为虚假网络包或磁盘数据而 | ||
101 | 被破坏。这可能可以节省你许多的调试时间。 | ||
102 | |||
103 | - 主 CPU 通用寄存器设置 | ||
104 | x0 = 系统 RAM 中设备树数据块(dtb)的物理地址。 | ||
105 | x1 = 0 (保留,将来可能使用) | ||
106 | x2 = 0 (保留,将来可能使用) | ||
107 | x3 = 0 (保留,将来可能使用) | ||
108 | |||
109 | - CPU 模式 | ||
110 | 所有形式的中断必须在 PSTATE.DAIF 中被屏蔽(Debug、SError、IRQ | ||
111 | 和 FIQ)。 | ||
112 | CPU 必须处于 EL2(推荐,可访问虚拟化扩展)或非安全 EL1 模式下。 | ||
113 | |||
114 | - 高速缓存、MMU | ||
115 | MMU 必须关闭。 | ||
116 | 指令缓存开启或关闭都可以。 | ||
117 | 数据缓存必须关闭且无效。 | ||
118 | 外部高速缓存(如果存在)必须配置并禁用。 | ||
119 | |||
120 | - 架构计时器 | ||
121 | CNTFRQ 必须设定为计时器的频率。 | ||
122 | 如果在 EL1 模式下进入内核,则 CNTHCTL_EL2 中的 EL1PCTEN (bit 0) | ||
123 | 必须置位。 | ||
124 | |||
125 | - 一致性 | ||
126 | 通过内核启动的所有 CPU 在内核入口地址上必须处于相同的一致性域中。 | ||
127 | 这可能要根据具体实现来定义初始化过程,以使能每个CPU上对维护操作的 | ||
128 | 接收。 | ||
129 | |||
130 | - 系统寄存器 | ||
131 | 在进入内核映像的异常级中,所有构架中可写的系统寄存器必须通过软件 | ||
132 | 在一个更高的异常级别下初始化,以防止在 未知 状态下运行。 | ||
133 | |||
134 | 引导装载程序必须在每个 CPU 处于以下状态时跳入内核入口: | ||
135 | |||
136 | - 主 CPU 必须直接跳入内核映像的第一条指令。通过此 CPU 传递的设备树 | ||
137 | 数据块必须在每个 CPU 节点中包含以下内容: | ||
138 | |||
139 | 1、‘enable-method’属性。目前,此字段支持的值仅为字符串“spin-table”。 | ||
140 | |||
141 | 2、‘cpu-release-addr’标识一个 64-bit、初始化为零的内存位置。 | ||
142 | |||
143 | 引导装载程序必须生成这些设备树属性,并在跳入内核入口之前将其插入 | ||
144 | 数据块。 | ||
145 | |||
146 | - 任何辅助 CPU 必须在内存保留区(通过设备树中的 /memreserve/ 域传递 | ||
147 | 给内核)中自旋于内核之外,轮询它们的 cpu-release-addr 位置(必须 | ||
148 | 包含在保留区中)。可通过插入 wfe 指令来降低忙循环开销,而主 CPU 将 | ||
149 | 发出 sev 指令。当对 cpu-release-addr 所指位置的读取操作返回非零值 | ||
150 | 时,CPU 必须直接跳入此值所指向的地址。 | ||
151 | |||
152 | - 辅助 CPU 通用寄存器设置 | ||
153 | x0 = 0 (保留,将来可能使用) | ||
154 | x1 = 0 (保留,将来可能使用) | ||
155 | x2 = 0 (保留,将来可能使用) | ||
156 | x3 = 0 (保留,将来可能使用) | ||
diff --git a/Documentation/zh_CN/arm64/memory.txt b/Documentation/zh_CN/arm64/memory.txt new file mode 100644 index 000000000000..83b519314706 --- /dev/null +++ b/Documentation/zh_CN/arm64/memory.txt | |||
@@ -0,0 +1,93 @@ | |||
1 | Chinese translated version of Documentation/arm64/memory.txt | ||
2 | |||
3 | If you have any comment or update to the content, please contact the | ||
4 | original document maintainer directly. However, if you have a problem | ||
5 | communicating in English you can also ask the Chinese maintainer for | ||
6 | help. Contact the Chinese maintainer if this translation is outdated | ||
7 | or if there is a problem with the translation. | ||
8 | |||
9 | Maintainer: Catalin Marinas <catalin.marinas@arm.com> | ||
10 | Chinese maintainer: Fu Wei <tekkamanninja@gmail.com> | ||
11 | --------------------------------------------------------------------- | ||
12 | Documentation/arm64/memory.txt 的中文翻译 | ||
13 | |||
14 | 如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文 | ||
15 | 交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻 | ||
16 | 译存在问题,请联系中文版维护者。 | ||
17 | |||
18 | 英文版维护者: Catalin Marinas <catalin.marinas@arm.com> | ||
19 | 中文版维护者: 傅炜 Fu Wei <tekkamanninja@gmail.com> | ||
20 | 中文版翻译者: 傅炜 Fu Wei <tekkamanninja@gmail.com> | ||
21 | 中文版校译者: 傅炜 Fu Wei <tekkamanninja@gmail.com> | ||
22 | |||
23 | 以下为正文 | ||
24 | --------------------------------------------------------------------- | ||
25 | Linux 在 AArch64 中的内存布局 | ||
26 | =========================== | ||
27 | |||
28 | 作者: Catalin Marinas <catalin.marinas@arm.com> | ||
29 | 日期: 2012 年 02 月 20 日 | ||
30 | |||
31 | 本文档描述 AArch64 Linux 内核所使用的虚拟内存布局。此构架可以实现 | ||
32 | 页大小为 4KB 的 4 级转换表和页大小为 64KB 的 3 级转换表。 | ||
33 | |||
34 | AArch64 Linux 使用页大小为 4KB 的 3 级转换表配置,对于用户和内核 | ||
35 | 都有 39-bit (512GB) 的虚拟地址空间。对于页大小为 64KB的配置,仅 | ||
36 | 使用 2 级转换表,但内存布局相同。 | ||
37 | |||
38 | 用户地址空间的 63:39 位为 0,而内核地址空间的相应位为 1。TTBRx 的 | ||
39 | 选择由虚拟地址的 63 位给出。swapper_pg_dir 仅包含内核(全局)映射, | ||
40 | 而用户 pgd 仅包含用户(非全局)映射。swapper_pgd_dir 地址被写入 | ||
41 | TTBR1 中,且从不写入 TTBR0。 | ||
42 | |||
43 | |||
44 | AArch64 Linux 内存布局: | ||
45 | |||
46 | 起始地址 结束地址 大小 用途 | ||
47 | ----------------------------------------------------------------------- | ||
48 | 0000000000000000 0000007fffffffff 512GB 用户空间 | ||
49 | |||
50 | ffffff8000000000 ffffffbbfffcffff ~240GB vmalloc | ||
51 | |||
52 | ffffffbbfffd0000 ffffffbcfffdffff 64KB [防护页] | ||
53 | |||
54 | ffffffbbfffe0000 ffffffbcfffeffff 64KB PCI I/O 空间 | ||
55 | |||
56 | ffffffbbffff0000 ffffffbcffffffff 64KB [防护页] | ||
57 | |||
58 | ffffffbc00000000 ffffffbdffffffff 8GB vmemmap | ||
59 | |||
60 | ffffffbe00000000 ffffffbffbffffff ~8GB [防护页,未来用于 vmmemap] | ||
61 | |||
62 | ffffffbffc000000 ffffffbfffffffff 64MB 模块 | ||
63 | |||
64 | ffffffc000000000 ffffffffffffffff 256GB 内存空间 | ||
65 | |||
66 | |||
67 | 4KB 页大小的转换表查找: | ||
68 | |||
69 | +--------+--------+--------+--------+--------+--------+--------+--------+ | ||
70 | |63 56|55 48|47 40|39 32|31 24|23 16|15 8|7 0| | ||
71 | +--------+--------+--------+--------+--------+--------+--------+--------+ | ||
72 | | | | | | | | ||
73 | | | | | | v | ||
74 | | | | | | [11:0] 页内偏移 | ||
75 | | | | | +-> [20:12] L3 索引 | ||
76 | | | | +-----------> [29:21] L2 索引 | ||
77 | | | +---------------------> [38:30] L1 索引 | ||
78 | | +-------------------------------> [47:39] L0 索引 (未使用) | ||
79 | +-------------------------------------------------> [63] TTBR0/1 | ||
80 | |||
81 | |||
82 | 64KB 页大小的转换表查找: | ||
83 | |||
84 | +--------+--------+--------+--------+--------+--------+--------+--------+ | ||
85 | |63 56|55 48|47 40|39 32|31 24|23 16|15 8|7 0| | ||
86 | +--------+--------+--------+--------+--------+--------+--------+--------+ | ||
87 | | | | | | | ||
88 | | | | | v | ||
89 | | | | | [15:0] 页内偏移 | ||
90 | | | | +----------> [28:16] L3 索引 | ||
91 | | | +--------------------------> [41:29] L2 索引 (仅使用 38:29 ) | ||
92 | | +-------------------------------> [47:42] L1 索引 (未使用) | ||
93 | +-------------------------------------------------> [63] TTBR0/1 | ||