diff options
author | Mel Gorman <mel@csn.ul.ie> | 2008-07-24 00:26:49 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-24 13:47:13 -0400 |
commit | 6b74ab97bc12ce74acec900f1d89a4aee2e4d70d (patch) | |
tree | d9d7b522a4a8f5f605d2e0f7f7a1bcb9d5049a82 /Documentation | |
parent | 9483a578df27fe7603605d565eefe039c1ba5845 (diff) |
mm: add a basic debugging framework for memory initialisation
Boot initialisation is very complex, with significant numbers of
architecture-specific routines, hooks and code ordering. While significant
amounts of the initialisation is architecture-independent, it trusts the data
received from the architecture layer. This is a mistake, and has resulted in
a number of difficult-to-diagnose bugs.
This patchset adds some validation and tracing to memory initialisation. It
also introduces a few basic defensive measures. The validation code can be
explicitly disabled for embedded systems.
This patch:
Add additional debugging and verification code for memory initialisation.
Once enabled, the verification checks are always run and when required
additional debugging information may be outputted via a mminit_loglevel=
command-line parameter.
The verification code is placed in a new file mm/mm_init.c. Ideally other mm
initialisation code will be moved here over time.
Signed-off-by: Mel Gorman <mel@csn.ul.ie>
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: Andy Whitcroft <apw@shadowen.org>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/kernel-parameters.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index 47e7d8794fc..5e20ccb5a73 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt | |||
@@ -1225,6 +1225,14 @@ and is between 256 and 4096 characters. It is defined in the file | |||
1225 | 1225 | ||
1226 | mga= [HW,DRM] | 1226 | mga= [HW,DRM] |
1227 | 1227 | ||
1228 | mminit_loglevel= | ||
1229 | [KNL] When CONFIG_DEBUG_MEMORY_INIT is set, this | ||
1230 | parameter allows control of the logging verbosity for | ||
1231 | the additional memory initialisation checks. A value | ||
1232 | of 0 disables mminit logging and a level of 4 will | ||
1233 | log everything. Information is printed at KERN_DEBUG | ||
1234 | so loglevel=8 may also need to be specified. | ||
1235 | |||
1228 | mousedev.tap_time= | 1236 | mousedev.tap_time= |
1229 | [MOUSE] Maximum time between finger touching and | 1237 | [MOUSE] Maximum time between finger touching and |
1230 | leaving touchpad surface for touch to be considered | 1238 | leaving touchpad surface for touch to be considered |