-
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.
yaml --- r: 347335 b: refs/heads/master c: 9eb127c h: refs/heads/master i: 347333: ba018bd 347331: 93cf8b1 347327: 021a0c3 v: v3
- Loading branch information
Linus Torvalds
committed
Dec 20, 2012
1 parent
a2b625f
commit 08766f6
Showing
2,470 changed files
with
135,430 additions
and
60,941 deletions.
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: 152a2a8b5e1d4cbe91a7c66f1028db15164a3766 | ||
refs/heads/master: 9eb127cc04c4005c8c0708ce92146d91da862b42 |
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 |
---|---|---|
@@ -1,7 +1,101 @@ | ||
What: /sys/devices/system/node/possible | ||
Date: October 2002 | ||
Contact: Linux Memory Management list <linux-mm@kvack.org> | ||
Description: | ||
Nodes that could be possibly become online at some point. | ||
|
||
What: /sys/devices/system/node/online | ||
Date: October 2002 | ||
Contact: Linux Memory Management list <linux-mm@kvack.org> | ||
Description: | ||
Nodes that are online. | ||
|
||
What: /sys/devices/system/node/has_normal_memory | ||
Date: October 2002 | ||
Contact: Linux Memory Management list <linux-mm@kvack.org> | ||
Description: | ||
Nodes that have regular memory. | ||
|
||
What: /sys/devices/system/node/has_cpu | ||
Date: October 2002 | ||
Contact: Linux Memory Management list <linux-mm@kvack.org> | ||
Description: | ||
Nodes that have one or more CPUs. | ||
|
||
What: /sys/devices/system/node/has_high_memory | ||
Date: October 2002 | ||
Contact: Linux Memory Management list <linux-mm@kvack.org> | ||
Description: | ||
Nodes that have regular or high memory. | ||
Depends on CONFIG_HIGHMEM. | ||
|
||
What: /sys/devices/system/node/nodeX | ||
Date: October 2002 | ||
Contact: Linux Memory Management list <linux-mm@kvack.org> | ||
Description: | ||
When CONFIG_NUMA is enabled, this is a directory containing | ||
information on node X such as what CPUs are local to the | ||
node. | ||
node. Each file is detailed next. | ||
|
||
What: /sys/devices/system/node/nodeX/cpumap | ||
Date: October 2002 | ||
Contact: Linux Memory Management list <linux-mm@kvack.org> | ||
Description: | ||
The node's cpumap. | ||
|
||
What: /sys/devices/system/node/nodeX/cpulist | ||
Date: October 2002 | ||
Contact: Linux Memory Management list <linux-mm@kvack.org> | ||
Description: | ||
The CPUs associated to the node. | ||
|
||
What: /sys/devices/system/node/nodeX/meminfo | ||
Date: October 2002 | ||
Contact: Linux Memory Management list <linux-mm@kvack.org> | ||
Description: | ||
Provides information about the node's distribution and memory | ||
utilization. Similar to /proc/meminfo, see Documentation/filesystems/proc.txt | ||
|
||
What: /sys/devices/system/node/nodeX/numastat | ||
Date: October 2002 | ||
Contact: Linux Memory Management list <linux-mm@kvack.org> | ||
Description: | ||
The node's hit/miss statistics, in units of pages. | ||
See Documentation/numastat.txt | ||
|
||
What: /sys/devices/system/node/nodeX/distance | ||
Date: October 2002 | ||
Contact: Linux Memory Management list <linux-mm@kvack.org> | ||
Description: | ||
Distance between the node and all the other nodes | ||
in the system. | ||
|
||
What: /sys/devices/system/node/nodeX/vmstat | ||
Date: October 2002 | ||
Contact: Linux Memory Management list <linux-mm@kvack.org> | ||
Description: | ||
The node's zoned virtual memory statistics. | ||
This is a superset of numastat. | ||
|
||
What: /sys/devices/system/node/nodeX/compact | ||
Date: February 2010 | ||
Contact: Mel Gorman <mel@csn.ul.ie> | ||
Description: | ||
When this file is written to, all memory within that node | ||
will be compacted. When it completes, memory will be freed | ||
into blocks which have as many contiguous pages as possible | ||
|
||
What: /sys/devices/system/node/nodeX/scan_unevictable_pages | ||
Date: October 2008 | ||
Contact: Lee Schermerhorn <lee.schermerhorn@hp.com> | ||
Description: | ||
When set, it triggers scanning the node's unevictable lists | ||
and move any pages that have become evictable onto the respective | ||
zone's inactive list. See mm/vmscan.c | ||
|
||
What: /sys/devices/system/node/nodeX/hugepages/hugepages-<size>/ | ||
Date: December 2009 | ||
Contact: Lee Schermerhorn <lee.schermerhorn@hp.com> | ||
Description: | ||
The node's huge page size control/query attributes. | ||
See Documentation/vm/hugetlbpage.txt |
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,94 @@ | ||
Overriding ACPI tables via initrd | ||
================================= | ||
|
||
1) Introduction (What is this about) | ||
2) What is this for | ||
3) How does it work | ||
4) References (Where to retrieve userspace tools) | ||
|
||
1) What is this about | ||
--------------------- | ||
|
||
If the ACPI_INITRD_TABLE_OVERRIDE compile option is true, it is possible to | ||
override nearly any ACPI table provided by the BIOS with an instrumented, | ||
modified one. | ||
|
||
For a full list of ACPI tables that can be overridden, take a look at | ||
the char *table_sigs[MAX_ACPI_SIGNATURE]; definition in drivers/acpi/osl.c | ||
All ACPI tables iasl (Intel's ACPI compiler and disassembler) knows should | ||
be overridable, except: | ||
- ACPI_SIG_RSDP (has a signature of 6 bytes) | ||
- ACPI_SIG_FACS (does not have an ordinary ACPI table header) | ||
Both could get implemented as well. | ||
|
||
|
||
2) What is this for | ||
------------------- | ||
|
||
Please keep in mind that this is a debug option. | ||
ACPI tables should not get overridden for productive use. | ||
If BIOS ACPI tables are overridden the kernel will get tainted with the | ||
TAINT_OVERRIDDEN_ACPI_TABLE flag. | ||
Complain to your platform/BIOS vendor if you find a bug which is so sever | ||
that a workaround is not accepted in the Linux kernel. | ||
|
||
Still, it can and should be enabled in any kernel, because: | ||
- There is no functional change with not instrumented initrds | ||
- It provides a powerful feature to easily debug and test ACPI BIOS table | ||
compatibility with the Linux kernel. | ||
|
||
|
||
3) How does it work | ||
------------------- | ||
|
||
# Extract the machine's ACPI tables: | ||
cd /tmp | ||
acpidump >acpidump | ||
acpixtract -a acpidump | ||
# Disassemble, modify and recompile them: | ||
iasl -d *.dat | ||
# For example add this statement into a _PRT (PCI Routing Table) function | ||
# of the DSDT: | ||
Store("HELLO WORLD", debug) | ||
iasl -sa dsdt.dsl | ||
# Add the raw ACPI tables to an uncompressed cpio archive. | ||
# They must be put into a /kernel/firmware/acpi directory inside the | ||
# cpio archive. | ||
# The uncompressed cpio archive must be the first. | ||
# Other, typically compressed cpio archives, must be | ||
# concatenated on top of the uncompressed one. | ||
mkdir -p kernel/firmware/acpi | ||
cp dsdt.aml kernel/firmware/acpi | ||
# A maximum of: #define ACPI_OVERRIDE_TABLES 10 | ||
# tables are currently allowed (see osl.c): | ||
iasl -sa facp.dsl | ||
iasl -sa ssdt1.dsl | ||
cp facp.aml kernel/firmware/acpi | ||
cp ssdt1.aml kernel/firmware/acpi | ||
# Create the uncompressed cpio archive and concatenate the original initrd | ||
# on top: | ||
find kernel | cpio -H newc --create > /boot/instrumented_initrd | ||
cat /boot/initrd >>/boot/instrumented_initrd | ||
# reboot with increased acpi debug level, e.g. boot params: | ||
acpi.debug_level=0x2 acpi.debug_layer=0xFFFFFFFF | ||
# and check your syslog: | ||
[ 1.268089] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT] | ||
[ 1.272091] [ACPI Debug] String [0x0B] "HELLO WORLD" | ||
|
||
iasl is able to disassemble and recompile quite a lot different, | ||
also static ACPI tables. | ||
|
||
|
||
4) Where to retrieve userspace tools | ||
------------------------------------ | ||
|
||
iasl and acpixtract are part of Intel's ACPICA project: | ||
http://acpica.org/ | ||
and should be packaged by distributions (for example in the acpica package | ||
on SUSE). | ||
|
||
acpidump can be found in Len Browns pmtools: | ||
ftp://kernel.org/pub/linux/kernel/people/lenb/acpi/utils/pmtools/acpidump | ||
This tool is also part of the acpica package on SUSE. | ||
Alternatively, used ACPI tables can be retrieved via sysfs in latest kernels: | ||
/sys/firmware/acpi/tables |
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
Oops, something went wrong.