-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Linus Torvalds
committed
Jan 21, 2011
1 parent
fea25f4
commit 9030548
Showing
3,131 changed files
with
131,538 additions
and
33,421 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: f00c9e44ad1a9660fe8cd3ca15b6cd9497172eab | ||
refs/heads/master: 4843456c5c341eb57f80f9224362a22665d14107 |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
What: A notification mechanism for thermal related events | ||
Description: | ||
This interface enables notification for thermal related events. | ||
The notification is in the form of a netlink event. |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
APEI output format | ||
~~~~~~~~~~~~~~~~~~ | ||
|
||
APEI uses printk as hardware error reporting interface, the output | ||
format is as follow. | ||
|
||
<error record> := | ||
APEI generic hardware error status | ||
severity: <integer>, <severity string> | ||
section: <integer>, severity: <integer>, <severity string> | ||
flags: <integer> | ||
<section flags strings> | ||
fru_id: <uuid string> | ||
fru_text: <string> | ||
section_type: <section type string> | ||
<section data> | ||
|
||
<severity string>* := recoverable | fatal | corrected | info | ||
|
||
<section flags strings># := | ||
[primary][, containment warning][, reset][, threshold exceeded]\ | ||
[, resource not accessible][, latent error] | ||
|
||
<section type string> := generic processor error | memory error | \ | ||
PCIe error | unknown, <uuid string> | ||
|
||
<section data> := | ||
<generic processor section data> | <memory section data> | \ | ||
<pcie section data> | <null> | ||
|
||
<generic processor section data> := | ||
[processor_type: <integer>, <proc type string>] | ||
[processor_isa: <integer>, <proc isa string>] | ||
[error_type: <integer> | ||
<proc error type strings>] | ||
[operation: <integer>, <proc operation string>] | ||
[flags: <integer> | ||
<proc flags strings>] | ||
[level: <integer>] | ||
[version_info: <integer>] | ||
[processor_id: <integer>] | ||
[target_address: <integer>] | ||
[requestor_id: <integer>] | ||
[responder_id: <integer>] | ||
[IP: <integer>] | ||
|
||
<proc type string>* := IA32/X64 | IA64 | ||
|
||
<proc isa string>* := IA32 | IA64 | X64 | ||
|
||
<processor error type strings># := | ||
[cache error][, TLB error][, bus error][, micro-architectural error] | ||
|
||
<proc operation string>* := unknown or generic | data read | data write | \ | ||
instruction execution | ||
|
||
<proc flags strings># := | ||
[restartable][, precise IP][, overflow][, corrected] | ||
|
||
<memory section data> := | ||
[error_status: <integer>] | ||
[physical_address: <integer>] | ||
[physical_address_mask: <integer>] | ||
[node: <integer>] | ||
[card: <integer>] | ||
[module: <integer>] | ||
[bank: <integer>] | ||
[device: <integer>] | ||
[row: <integer>] | ||
[column: <integer>] | ||
[bit_position: <integer>] | ||
[requestor_id: <integer>] | ||
[responder_id: <integer>] | ||
[target_id: <integer>] | ||
[error_type: <integer>, <mem error type string>] | ||
|
||
<mem error type string>* := | ||
unknown | no error | single-bit ECC | multi-bit ECC | \ | ||
single-symbol chipkill ECC | multi-symbol chipkill ECC | master abort | \ | ||
target abort | parity error | watchdog timeout | invalid address | \ | ||
mirror Broken | memory sparing | scrub corrected error | \ | ||
scrub uncorrected error | ||
|
||
<pcie section data> := | ||
[port_type: <integer>, <pcie port type string>] | ||
[version: <integer>.<integer>] | ||
[command: <integer>, status: <integer>] | ||
[device_id: <integer>:<integer>:<integer>.<integer> | ||
slot: <integer> | ||
secondary_bus: <integer> | ||
vendor_id: <integer>, device_id: <integer> | ||
class_code: <integer>] | ||
[serial number: <integer>, <integer>] | ||
[bridge: secondary_status: <integer>, control: <integer>] | ||
|
||
<pcie port type string>* := PCIe end point | legacy PCI end point | \ | ||
unknown | unknown | root port | upstream switch port | \ | ||
downstream switch port | PCIe to PCI/PCI-X bridge | \ | ||
PCI/PCI-X to PCIe bridge | root complex integrated endpoint device | \ | ||
root complex event collector | ||
|
||
Where, [] designate corresponding content is optional | ||
|
||
All <field string> description with * has the following format: | ||
|
||
field: <integer>, <field string> | ||
|
||
Where value of <integer> should be the position of "string" in <field | ||
string> description. Otherwise, <field string> will be "unknown". | ||
|
||
All <field strings> description with # has the following format: | ||
|
||
field: <integer> | ||
<field strings> | ||
|
||
Where each string in <fields strings> corresponding to one set bit of | ||
<integer>. The bit position is the position of "string" in <field | ||
strings> description. | ||
|
||
For more detailed explanation of every field, please refer to UEFI | ||
specification version 2.3 or later, section Appendix N: Common | ||
Platform Error Record. |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
Device-mapper RAID (dm-raid) is a bridge from DM to MD. It | ||
provides a way to use device-mapper interfaces to access the MD RAID | ||
drivers. | ||
|
||
As with all device-mapper targets, the nominal public interfaces are the | ||
constructor (CTR) tables and the status outputs (both STATUSTYPE_INFO | ||
and STATUSTYPE_TABLE). The CTR table looks like the following: | ||
|
||
1: <s> <l> raid \ | ||
2: <raid_type> <#raid_params> <raid_params> \ | ||
3: <#raid_devs> <meta_dev1> <dev1> .. <meta_devN> <devN> | ||
|
||
Line 1 contains the standard first three arguments to any device-mapper | ||
target - the start, length, and target type fields. The target type in | ||
this case is "raid". | ||
|
||
Line 2 contains the arguments that define the particular raid | ||
type/personality/level, the required arguments for that raid type, and | ||
any optional arguments. Possible raid types include: raid4, raid5_la, | ||
raid5_ls, raid5_rs, raid6_zr, raid6_nr, and raid6_nc. (raid1 is | ||
planned for the future.) The list of required and optional parameters | ||
is the same for all the current raid types. The required parameters are | ||
positional, while the optional parameters are given as key/value pairs. | ||
The possible parameters are as follows: | ||
<chunk_size> Chunk size in sectors. | ||
[[no]sync] Force/Prevent RAID initialization | ||
[rebuild <idx>] Rebuild the drive indicated by the index | ||
[daemon_sleep <ms>] Time between bitmap daemon work to clear bits | ||
[min_recovery_rate <kB/sec/disk>] Throttle RAID initialization | ||
[max_recovery_rate <kB/sec/disk>] Throttle RAID initialization | ||
[max_write_behind <sectors>] See '-write-behind=' (man mdadm) | ||
[stripe_cache <sectors>] Stripe cache size for higher RAIDs | ||
|
||
Line 3 contains the list of devices that compose the array in | ||
metadata/data device pairs. If the metadata is stored separately, a '-' | ||
is given for the metadata device position. If a drive has failed or is | ||
missing at creation time, a '-' can be given for both the metadata and | ||
data drives for a given position. | ||
|
||
NB. Currently all metadata devices must be specified as '-'. | ||
|
||
Examples: | ||
# RAID4 - 4 data drives, 1 parity | ||
# No metadata devices specified to hold superblock/bitmap info | ||
# Chunk size of 1MiB | ||
# (Lines separated for easy reading) | ||
0 1960893648 raid \ | ||
raid4 1 2048 \ | ||
5 - 8:17 - 8:33 - 8:49 - 8:65 - 8:81 | ||
|
||
# RAID4 - 4 data drives, 1 parity (no metadata devices) | ||
# Chunk size of 1MiB, force RAID initialization, | ||
# min recovery rate at 20 kiB/sec/disk | ||
0 1960893648 raid \ | ||
raid4 4 2048 min_recovery_rate 20 sync\ | ||
5 - 8:17 - 8:33 - 8:49 - 8:65 - 8:81 | ||
|
||
Performing a 'dmsetup table' should display the CTR table used to | ||
construct the mapping (with possible reordering of optional | ||
parameters). | ||
|
||
Performing a 'dmsetup status' will yield information on the state and | ||
health of the array. The output is as follows: | ||
1: <s> <l> raid \ | ||
2: <raid_type> <#devices> <1 health char for each dev> <resync_ratio> | ||
|
||
Line 1 is standard DM output. Line 2 is best shown by example: | ||
0 1960893648 raid raid4 5 AAAAA 2/490221568 | ||
Here we can see the RAID type is raid4, there are 5 devices - all of | ||
which are 'A'live, and the array is 2/490221568 complete with recovery. |
Oops, something went wrong.