Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp1508794imp; Fri, 22 Feb 2019 05:07:42 -0800 (PST) X-Google-Smtp-Source: AHgI3IZb4Y6pC665iMMFcyapEjypBipVxLG5fDexZDJrFlYloS7I6r668QBMTmlqaSpAnZbKrxGL X-Received: by 2002:a17:902:14b:: with SMTP id 69mr4035158plb.120.1550840862295; Fri, 22 Feb 2019 05:07:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550840862; cv=none; d=google.com; s=arc-20160816; b=EKPi0/N27OldSPCmYcqfvXJG732J85nw+w6k9ypMlC9nQxJZsikzQfxCQ+Vx/BlKIy l9mdDxZgLyPj+LDZu+wBL5gdRSICCmVt4imzvr3se/pifDK8gUZ8Q2o8vcpkdX2PZr9f S0E2J8lbCwePMsKdcQi93E+s1sNrQzuK/d76Ro8WOv1Wgf4CVmPZ61u/Gb8mWmBg059h Reps1zw/neyTlPfyThkTRbK4PedN523J9OVV+ml42jCVy3JndeM0kMZBUvkELSQ/gDi/ jALAhp33n/ax7I0QcaByJuEkn1G/P9Ri2VQ/EPuk7onUqe37Sm3OhMZswl58ZDDKZKS7 3C4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=UsgC/BzhkNyN1XCJF2SjocUn0g/+vyNcLraLnhaukGQ=; b=RAfEWnhsf6X3u/SNeDG0elxhmo7fHIeuuw0ErNSma3TtqkOlGpUabeEKMSV2tsuv69 HFMoMNhPTpwrB0N16KlLYw2vXgsQcT0sgRrMvTnNSsUKbZ8LnKKZHDkfheeuMgZFT0RX deueFQnGtSBeOqlRZ24hkHpEvvI1Ds544tVEXqAEZ0fYIhY7EMcq2gcdquZrgwt6FCud 3JygAHhS/uJMN0hIPkVCubThadCv6lQr8fr6snH2cC6lyugU8TvmIAazScXmp2i+Ho2H VDadizAfeTJ5/MK+zVC/LeVlM5jhvHVGpJXN3lJKnisfe7jou2xOAL07LD1UoRsA8X7Q hUpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=qSdPPtW1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v7si1284261pgs.304.2019.02.22.05.07.26; Fri, 22 Feb 2019 05:07:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=qSdPPtW1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727153AbfBVNAg (ORCPT + 99 others); Fri, 22 Feb 2019 08:00:36 -0500 Received: from mail.skyhub.de ([5.9.137.197]:38718 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726737AbfBVNAf (ORCPT ); Fri, 22 Feb 2019 08:00:35 -0500 Received: from zn.tnic (p200300EC2BCB3900BC7373EE60FA5555.dip0.t-ipconnect.de [IPv6:2003:ec:2bcb:3900:bc73:73ee:60fa:5555]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id CA1B11EC0573; Fri, 22 Feb 2019 14:00:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1550840434; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=UsgC/BzhkNyN1XCJF2SjocUn0g/+vyNcLraLnhaukGQ=; b=qSdPPtW1F/B5al7xdqUqQzgExYbKIgW+Fglj/bJNTlj4TmqvCgSxveMnpFEtZigo/4vKDm 94wuYxuDZvHz4MkpNHvQ3Bou/4/E4a8w8bCfVFEbXIZ7GgOItVeCpQxL1rxMsmYuhHsF+n wCi/tJ5rrpXAX6rhuLhk9Yf3qdIg+yw= Date: Fri, 22 Feb 2019 14:00:26 +0100 From: Borislav Petkov To: Joerg Roedel , Dave Young Cc: bhe@redhat.com, Jerry Hoemann , x86@kernel.org, Randy Dunlap , kexec@lists.infradead.org, linux-kernel@vger.kernel.org, Pingfan Liu , Mike Rapoport , Andrew Morton , yinghai@kernel.org, vgoyal@redhat.com, iommu@lists.linux-foundation.org, konrad.wilk@oracle.com Subject: Re: [PATCHv7] x86/kdump: bugfix, make the behavior of crashkernel=X consistent with kaslr Message-ID: <20190222130026.GA30766@zn.tnic> References: <20190205081552.GG21801@zn.tnic> <20190206120804.GC10062@dhcp-128-65.nay.redhat.com> <20190211204816.GB21473@dhcp-128-65.nay.redhat.com> <20190215102458.GD10433@zn.tnic> <20190218014820.GA10711@dhcp-128-65.nay.redhat.com> <20190220083241.GA3447@zn.tnic> <20190220094146.GA8597@dhcp-128-65.nay.redhat.com> <20190221171321.GD12997@zn.tnic> <20190222021101.GA11654@dhcp-128-65.nay.redhat.com> <20190222084241.GC8380@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190222084241.GC8380@suse.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 22, 2019 at 09:42:41AM +0100, Joerg Roedel wrote: > The current default of 256MB was found by experiments on a bigger > number of machines, to create a reasonable default that is at least > likely to be sufficient of an average machine. Exactly, and this is what makes sense. The code should try the requested reservation and if it fails, it should try high allocation with default swiotlb size because we need to reserve *some* range. If that reservation succeeds, we should say something along the lines of "... requested range failed, reserved range instead." And then in Documentation/admin-guide/kernel-parameters.txt above the crashkernel= explanations, the allocation strategy of best effort should be explained in short. That the kernel will try to allocate high if the requested allocation didn't succeed and that the user can tweak the allocation with the below options. Bottom line is: the kernel should assist the user and try harder to allocate *some* range for a crash kernel when there's no detailed specification what that range should be. *If* the user adds ,low, high, then the kernel should try only that specified range because the assumption is that the user knows what she's doing. But if the user simply wants a range for a crash kernel without stating where that range should be in particular and it's placement is a don't care - as long as there is a range - then the kernel should simply try high, etc. Makes sense? -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.