Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp868561imj; Fri, 15 Feb 2019 08:07:43 -0800 (PST) X-Google-Smtp-Source: AHgI3IY1LZAGufp6iMoLvrk5kG7PuawLcH5ftONwiM6E6miSJlM6jYRAn1RUdD7S6Py80nChaQTi X-Received: by 2002:a65:62d4:: with SMTP id m20mr5805398pgv.215.1550246863451; Fri, 15 Feb 2019 08:07:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550246863; cv=none; d=google.com; s=arc-20160816; b=n62YOYFvllQUdXeWDc9OkqFZCqXNGRz2Ev6yR0PY72dRWKabjn9NLL9EKY0HvVfPiC ozBKlizujQgbfiMZ+zPAZD8P7HT+fgN8FpNTNkPBGtX33sy3a5q1MGIs5g3WLZRUD/tO a4sATV4Mi+HQ1mVx8usIWfVkMJnXNZxSLlUIxckFBFqJXHr38GYqYmO0qssQ3L5NnYuf ReAMVkG6UVKObu4as25JVfj5DXqrEWmAuvzs3GknmvFVlVXmjGW0jFqhVzXfPE2f22Kw mtFAU+qszBMD3RwYi0pQttUNTboLu7myI+tWsKKM5Il+C3lFj4mbZQpQJDVZolWhLi+f Ahmw== 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=HSghZJ6Q0lV+Tg14QtkPolDDA+QQ13lLFmUiGEXiTqQ=; b=PdRFVsOMeKoFFbbd95fkk4m48Pl4ptKbheFraUs78/Co0LnD7rsugntCWkQxblkMhb OokLTGcoDEa4Z0CuhA5tVpR2X3fedukWiGlbtTANX3D/dXDaf5YpcutiEgIDaNkfkGBn T/gvg25BRVF27PFhb2eWphT9cPJaCpLt9ctU+bCh7fZ9t354Onlq9YdeeTY8Xhm8OVaZ e7b1+NmOaffeXwh1NXG1ZvwQXMAis0lLjx/qCo/YVG/hRjlE5An/iMxn6qM1PjeMHdqA snxgdpkSgRDJ0fHexknIGUzmSr1co4m0jUEO8SC5WdHxPk1d9a54xtlNt4OE6//A4MX9 znXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=hUbaNlyu; 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 s17si5477341pgi.513.2019.02.15.08.07.24; Fri, 15 Feb 2019 08:07:43 -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=hUbaNlyu; 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 S2388504AbfBOKZH (ORCPT + 99 others); Fri, 15 Feb 2019 05:25:07 -0500 Received: from mail.skyhub.de ([5.9.137.197]:46750 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726202AbfBOKZG (ORCPT ); Fri, 15 Feb 2019 05:25:06 -0500 Received: from zn.tnic (p200300EC2BCDA500C8964896D8752F51.dip0.t-ipconnect.de [IPv6:2003:ec:2bcd:a500:c896:4896:d875:2f51]) (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 0B37E1EC0324; Fri, 15 Feb 2019 11:25:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1550226305; 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=HSghZJ6Q0lV+Tg14QtkPolDDA+QQ13lLFmUiGEXiTqQ=; b=hUbaNlyuQwkHOerqPlNswNAPzrAOlfzRrgN39q9++Tse1fLQKgK1iggUp3GeMt6E5De9CG tnB2k22q6m3oA88K6BhkxQDghxmy4obQPhnuFJbwfPFBSVW+9XOiBNAq4OGMtwcNSmVIpV BGiEOBLLxT/lMiVIACUdqwNlniUD3aw= Date: Fri, 15 Feb 2019 11:24:58 +0100 From: Borislav Petkov To: 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 Subject: Re: [PATCHv7] x86/kdump: bugfix, make the behavior of crashkernel=X consistent with kaslr Message-ID: <20190215102458.GD10433@zn.tnic> References: <20190125134518.GA23595@dhcp-128-65.nay.redhat.com> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190211204816.GB21473@dhcp-128-65.nay.redhat.com> 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 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. Why would the user need to do anything here?! -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.