22 Apr, 2008
1 commit
-
struct oops_cxt needlessly became global.
Signed-off-by: Adrian Bunk
Signed-off-by: Andrew Morton
Signed-off-by: David Woodhouse
07 Feb, 2008
2 commits
-
drivers/mtd/mtdoops.c: In function ‘mtdoops_console_sync’:
drivers/mtd/mtdoops.c:329: error: implicit declaration of function ‘in_interrupt’Signed-off-by: David Woodhouse
-
When the MTD provides a panic_write function, use it.
Signed-off-by: Richard Purdie
Signed-off-by: David Woodhouse
03 Feb, 2008
4 commits
-
Various minor cleaups to mtdoops:
* Don't support the mtd->erasesize < OOPS_PAGE_SIZE case
* Tweak printks and make the device mtdoops connects to more visible
* CON_PRINTBUFFER flag is uneededSigned-off-by: Richard Purdie
Signed-off-by: David Woodhouse -
Add a spinlock to ensure writes to the mtdoops buffer memory are
sequential and don't race.Signed-off-by: Richard Purdie
Signed-off-by: David Woodhouse -
Writing to the flash needs to be done in a workqueue. The console
write functions may be called in any context which can lead to
lockups otherwise.Signed-off-by: Richard Purdie
Signed-off-by: David Woodhouse -
Add further error return code checks to the mtdoops driver.
Signed-off-by: Richard Purdie
Signed-off-by: David Woodhouse
03 Dec, 2007
1 commit
-
Use memcpy instead of open coding a copy loop.
Signed-off-by: Peter Korsgaard
Signed-off-by: David Woodhouse
22 Aug, 2007
1 commit
-
drivers/mtd/mtdoops.c: In function 'mtdoops_inc_counter':
drivers/mtd/mtdoops.c:109: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'
drivers/mtd/mtdoops.c: In function 'mtdoops_console_sync':
drivers/mtd/mtdoops.c:277: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'someone buy Dave an x86_64 box.
Signed-off-by: Andrew Morton
Signed-off-by: David Woodhouse
11 Jul, 2007
1 commit
-
mtdoops wasn't ensuring data was flushed to flash in crash situations
after recent changes in mainline kernels as tracking the
oops_in_progress variable was no longer enough. We can use the "unblank"
console call as a sync call to tell us to write out the buffer though.Therefore add a sync function to mtdoops and call this when console
unblank events occur.Signed-off-by: Richard Purdie
Signed-off-by: David Woodhouse
29 Jun, 2007
1 commit
-
Kernel oops and panic messages are invaluable when debugging crashes.
These messages often don't make it to flash based logging methods (say a
syslog on jffs2) due to the overheads involved in writing to flash.This patch allows you to turn an MTD partition into a circular log
buffer where kernel oops and panic messages are written to. The messages
are obtained by registering a console driver and checking
oops_in_progress. Erases are performed in advance to maximise the
chances of a saving messages.To activate it, add console=ttyMTDx to the kernel commandline (where x
is the mtd device number to use).Signed-off-by: Richard Purdie
Signed-off-by: David Woodhouse