Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1897968imj; Sun, 17 Feb 2019 17:57:03 -0800 (PST) X-Google-Smtp-Source: AHgI3IZoFLZCD2wD8SlSe/0iglT+vQIH/nVnq2QCz+4Qox5FqKmQJgn+ugHauBKxjLwH0vMDgVce X-Received: by 2002:a63:f148:: with SMTP id o8mr16690996pgk.337.1550455023479; Sun, 17 Feb 2019 17:57:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550455023; cv=none; d=google.com; s=arc-20160816; b=sJs1KafzX7wadUsBA+l+tc642H3TXHIp2yC7ePO4U9o3jW6ISEfj6TQUeOtcdh+URm 07kwFwdQNTNSKoShTX9w1j6h4P7lXwTaZp3uYkW92EsG7qrE/PPBmKINFzwn/yhd/tD2 80fwbGGsDph3p6h1AaDOdminxi4jdLOeDmAzLPCkmzxKkK7+Y0m2ScrNkeYrW5j5jmmz EGKWbLhVWOKxpTvu+gw79rI+DtP9acgOFbzs08zf+FVkOTIpO+Za5ozSGiEWyaKLL6bv Pc3JunMlnl6KFEw+NZnU7X/ba64cpzs173PVjLFL8TYH8YSu1TV0k+5mCeFrsdsXgF9i lc7Q== 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; bh=Orow1RHH7YiphD7MjiPoJMlgyMIBg/lD40FjDDLGDWQ=; b=mfXJNW7v6dd2/Ro4HOAdD3ter3rAJoGuXPjMnAuhiLm7Eg/h1oSaWvMx2vVlLLCkis f1EoAayCzj9SfcsFJeDU/SZ1ConhePUk44bmq2irMaXZIoWrLiQvjhC+UMAOwEEH+1NN ikgsyOTzoq5nIv7mulFmI72MuHdzXIeQQD2/Wpx91ch50X2fDxGR9m5r23hwlUrpBJJQ C4n2fr//RToX5ZnMXpPMe0qC6k7ltRALsF/wVyh8K+JN0muNZIAMft4wK0JxOkO8hCXr 52qT9FSlhLvO98pc0huaRrxDVImDJkI/n19KgkXUC0seg36DG5yimewdMR8ykq1+HHp/ kswg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z67si12231670pfb.268.2019.02.17.17.56.34; Sun, 17 Feb 2019 17:57:03 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728188AbfBRBsi (ORCPT + 99 others); Sun, 17 Feb 2019 20:48:38 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48844 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726281AbfBRBsi (ORCPT ); Sun, 17 Feb 2019 20:48:38 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CAB04461FF; Mon, 18 Feb 2019 01:48:37 +0000 (UTC) Received: from dhcp-128-65.nay.redhat.com (ovpn-12-23.pek2.redhat.com [10.72.12.23]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BCCBA60139; Mon, 18 Feb 2019 01:48:30 +0000 (UTC) Date: Mon, 18 Feb 2019 09:48:20 +0800 From: Dave Young To: Borislav Petkov 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: <20190218014820.GA10711@dhcp-128-65.nay.redhat.com> References: <20190125140823.GC27998@zn.tnic> <20190131075907.GB19091@dhcp-128-65.nay.redhat.com> <20190131105732.GC6749@zn.tnic> <20190131222732.GA946@anatevka> <20190131234740.GO6749@zn.tnic> <20190204223016.GB11986@anatevka> <20190205081552.GG21801@zn.tnic> <20190206120804.GC10062@dhcp-128-65.nay.redhat.com> <20190211204816.GB21473@dhcp-128-65.nay.redhat.com> <20190215102458.GD10433@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190215102458.GD10433@zn.tnic> User-Agent: Mutt/1.9.5 (2018-04-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Mon, 18 Feb 2019 01:48:38 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/15/19 at 11:24am, Borislav Petkov wrote: > On Tue, Feb 12, 2019 at 04:48:16AM +0800, Dave Young wrote: > > Even we make it automatic in kernel, but we have to have some default > > value for swiotlb in case crashkernel can not find a free region under 4G. > > So this default value can not work for every use cases, people need > > manually use crashkernel=,low and crashkernel=,high in case > > crashkernel=X does not work. > > Why would the user need to find swiotlb range? The kernel has all the > information it requires at its finger tips in order to decide properly. > > The user wants a crashkernel range, the kernel tries the low range => > no workie, then it tries the next range => workie but needs to allocate > swiotlb range so that DMA can happen too. Doh, then the kernel does > allocate that too. It is ideal if kernel can do it automatically, but I'm not sure if kernel can predict the swiotlb reserved size automatically. Let's add more people to seek for comments. > > Why would the user need to do anything here?! > > -- > Regards/Gruss, > Boris. > > Good mailing practices for 400: avoid top-posting and trim the reply.