diff options
author | Colin Patrick McCabe <cmccabe@nvidia.com> | 2012-11-07 14:49:23 +0900 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 12:41:30 -0700 |
commit | a6bb49d1df31a20d7ed650af9151825eabeda6a0 (patch) | |
tree | 684d09f7136a065b5137fd48f3d50ffdb771c7c4 /arch/arm/mach-tegra/board.h | |
parent | 863536a6abd916b42d47102443b62880d56b58f0 (diff) |
Add nvdumper kernel module to monitor reboots
The nvdumper kernel module tracks whether the system has been rebooted
cleanly. It does this by writing 'dirty' to a fixed physical memory
address when the kernel starts. Then, on a planned reboot, we write
'clean' to this location. The bootloader can then examine this location
and see if the reboot was dirty or clean. It will dump the contents of
memory after a dirty reboot.
Bug 895895
Change-Id: I31e552da9bf6218cefb77f76f7488fcf9a9151b1
Signed-off-by: Joshua Cha <joshuac@nvidia.com>
Reviewed-on: http://git-master/r/161969
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board.h')
-rw-r--r-- | arch/arm/mach-tegra/board.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board.h b/arch/arm/mach-tegra/board.h index 14c231848f5f..f1a003eabead 100644 --- a/arch/arm/mach-tegra/board.h +++ b/arch/arm/mach-tegra/board.h @@ -27,6 +27,10 @@ #include <linux/power_supply.h> #include <linux/memory.h> +#ifdef CONFIG_TEGRA_NVDUMPER +#define NVDUMPER_RESERVED_SIZE 4096UL +#endif + #define ADD_FIXED_VOLTAGE_REG(_name) (&_name##_fixed_voltage_device) /* Macro for defining fixed voltage regulator */ @@ -117,6 +121,9 @@ extern unsigned long tegra_vpr_start; extern unsigned long tegra_vpr_size; extern unsigned long tegra_lp0_vec_start; extern unsigned long tegra_lp0_vec_size; +#ifdef CONFIG_TEGRA_NVDUMPER +extern unsigned long nvdumper_reserved; +#endif extern bool tegra_lp0_vec_relocate; extern unsigned long tegra_grhost_aperture; |