powerpc/fadump: make is_kdump_kernel() return false when fadump is active
authorHari Bathini <hbathini@linux.ibm.com>
Tue, 12 Sep 2023 08:29:50 +0000 (13:59 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 18 Sep 2023 02:23:27 +0000 (12:23 +1000)
commitb098f1c32365304633077d73e4ae21c72d4241b3
tree5cbf389d90d43c7596b8b405c2ad58194f6ab1da
parent86328b338c3996b814417dd68e3f899a1a649059
powerpc/fadump: make is_kdump_kernel() return false when fadump is active

Currently, is_kdump_kernel() returns true in crash dump capture kernel
for both kdump and fadump crash dump capturing methods, as both these
methods set elfcorehdr_addr. Some restrictions enforced for crash dump
capture kernel, based on is_kdump_kernel(), are specifically meant for
kdump case and not desirable for fadump - eg. IO queues restriction in
device drivers. So, define is_kdump_kernel() to return false when f/w
assisted dump is active.

Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
Acked-by: Baoquan He <bhe@redhat.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230912082950.856977-2-hbathini@linux.ibm.com
arch/powerpc/include/asm/kexec.h
arch/powerpc/kernel/crash_dump.c