fadump.c (cbecf716ca618fd44feda6bd9a64a8179d031fc5) fadump.c (fbced1546eaaab57a32e56c974ea8acf10c6abd8)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Firmware Assisted dump: A robust mechanism to get reliable kernel crash
4 * dump with assistance from firmware. This approach does not use kexec,
5 * instead firmware assists in booting the kdump kernel while preserving
6 * memory contents. The most of the code implementation has been adapted
7 * from phyp assisted dump implementation written by Linas Vepstas and
8 * Manish Ahuja

--- 278 unchanged lines hidden (view full) ---

287 * This function has been taken from phyp-assisted dump feature implementation.
288 *
289 * returns larger of 256MB or 5% rounded down to multiples of 256MB.
290 *
291 * TODO: Come up with better approach to find out more accurate memory size
292 * that is required for a kernel to boot successfully.
293 *
294 */
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Firmware Assisted dump: A robust mechanism to get reliable kernel crash
4 * dump with assistance from firmware. This approach does not use kexec,
5 * instead firmware assists in booting the kdump kernel while preserving
6 * memory contents. The most of the code implementation has been adapted
7 * from phyp assisted dump implementation written by Linas Vepstas and
8 * Manish Ahuja

--- 278 unchanged lines hidden (view full) ---

287 * This function has been taken from phyp-assisted dump feature implementation.
288 *
289 * returns larger of 256MB or 5% rounded down to multiples of 256MB.
290 *
291 * TODO: Come up with better approach to find out more accurate memory size
292 * that is required for a kernel to boot successfully.
293 *
294 */
295static inline u64 fadump_calculate_reserve_size(void)
295static __init u64 fadump_calculate_reserve_size(void)
296{
297 u64 base, size, bootmem_min;
298 int ret;
299
300 if (fw_dump.reserve_bootvar)
301 pr_warn("'fadump_reserve_mem=' parameter is deprecated in favor of 'crashkernel=' parameter.\n");
302
303 /*

--- 1403 unchanged lines hidden ---
296{
297 u64 base, size, bootmem_min;
298 int ret;
299
300 if (fw_dump.reserve_bootvar)
301 pr_warn("'fadump_reserve_mem=' parameter is deprecated in favor of 'crashkernel=' parameter.\n");
302
303 /*

--- 1403 unchanged lines hidden ---