diff options
Diffstat (limited to 'arch/powerpc/include/asm/fadump.h')
-rw-r--r-- | arch/powerpc/include/asm/fadump.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/fadump.h b/arch/powerpc/include/asm/fadump.h index 1e7a33592e29..188776befaf9 100644 --- a/arch/powerpc/include/asm/fadump.h +++ b/arch/powerpc/include/asm/fadump.h | |||
@@ -48,6 +48,10 @@ | |||
48 | 48 | ||
49 | #define memblock_num_regions(memblock_type) (memblock.memblock_type.cnt) | 49 | #define memblock_num_regions(memblock_type) (memblock.memblock_type.cnt) |
50 | 50 | ||
51 | /* Alignement per CMA requirement. */ | ||
52 | #define FADUMP_CMA_ALIGNMENT (PAGE_SIZE << \ | ||
53 | max_t(unsigned long, MAX_ORDER - 1, pageblock_order)) | ||
54 | |||
51 | /* Firmware provided dump sections */ | 55 | /* Firmware provided dump sections */ |
52 | #define FADUMP_CPU_STATE_DATA 0x0001 | 56 | #define FADUMP_CPU_STATE_DATA 0x0001 |
53 | #define FADUMP_HPTE_REGION 0x0002 | 57 | #define FADUMP_HPTE_REGION 0x0002 |
@@ -141,6 +145,7 @@ struct fw_dump { | |||
141 | unsigned long fadump_supported:1; | 145 | unsigned long fadump_supported:1; |
142 | unsigned long dump_active:1; | 146 | unsigned long dump_active:1; |
143 | unsigned long dump_registered:1; | 147 | unsigned long dump_registered:1; |
148 | unsigned long nocma:1; | ||
144 | }; | 149 | }; |
145 | 150 | ||
146 | /* | 151 | /* |
@@ -200,7 +205,7 @@ struct fad_crash_memory_ranges { | |||
200 | unsigned long long size; | 205 | unsigned long long size; |
201 | }; | 206 | }; |
202 | 207 | ||
203 | extern int is_fadump_boot_memory_area(u64 addr, ulong size); | 208 | extern int is_fadump_memory_area(u64 addr, ulong size); |
204 | extern int early_init_dt_scan_fw_dump(unsigned long node, | 209 | extern int early_init_dt_scan_fw_dump(unsigned long node, |
205 | const char *uname, int depth, void *data); | 210 | const char *uname, int depth, void *data); |
206 | extern int fadump_reserve_mem(void); | 211 | extern int fadump_reserve_mem(void); |