Skip to content

Commit 630bf20

Browse files
hormstorvalds
authored andcommitted
kdump: use is_kdump_kernel() in sba_init()
o Make use of is_kdump_kernel() rather than checking elfcorehdr_addr directly. o Remove CONFIG_CRASH_DUMP as is_kdump_kernel() is safe to call anywhere o Remove CONFIG_PROC_FS as it is bogus, the check should occur regardless of if CONFIG_PROC_FS is set or not. Signed-off-by: Simon Horman <horms@verge.net.au> Acked-by: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent e515a0d commit 630bf20

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎arch/ia64/hp/common/sba_iommu.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2070,14 +2070,13 @@ sba_init(void)
20702070
if (!ia64_platform_is("hpzx1") && !ia64_platform_is("hpzx1_swiotlb"))
20712071
return 0;
20722072

2073-
#if defined(CONFIG_IA64_GENERIC) && defined(CONFIG_CRASH_DUMP) && \
2074-
defined(CONFIG_PROC_FS)
2073+
#if defined(CONFIG_IA64_GENERIC)
20752074
/* If we are booting a kdump kernel, the sba_iommu will
20762075
* cause devices that were not shutdown properly to MCA
20772076
* as soon as they are turned back on. Our only option for
20782077
* a successful kdump kernel boot is to use the swiotlb.
20792078
*/
2080-
if (elfcorehdr_addr < ELFCORE_ADDR_MAX) {
2079+
if (is_kdump_kernel()) {
20812080
if (swiotlb_late_init_with_default_size(64 * (1<<20)) != 0)
20822081
panic("Unable to initialize software I/O TLB:"
20832082
" Try machvec=dig boot option");

0 commit comments

Comments
 (0)