Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp3961110imc; Sun, 24 Feb 2019 17:54:39 -0800 (PST) X-Google-Smtp-Source: AHgI3IY3HWo5zdWE5ZPivwjL8CO7ZdR2cHtYKBBt+CQPhNeNvYWJen6GFLUq/Qxm+XMfojLOV3Jl X-Received: by 2002:a17:902:28e6:: with SMTP id f93mr7591434plb.264.1551059679179; Sun, 24 Feb 2019 17:54:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551059679; cv=none; d=google.com; s=arc-20160816; b=GtPOq9faXHt2JdRUGzPdHfeRM5fcmAR0TOF2Jh7L/T+BBrUjD7NHYeb0cacxsOsgbk gdkhSNaAxncD3ubg44iDgQq3EKKdqe8rhM5JO6m0VoAPxaHnQTm80Pyyh87XJ5jdlHbc d+2DWq+HabBIvuUnIgQbvCkVgP58iKB67roCFWhqqsPdHa1OXdkSeV81aYTe7jedhpFZ SUzoH6IxWDntNq7U1IQcBjqMnJZ7pb+EcmVvI7ktEhqW22XxgMZm2HUBR1vD8aa8InTe 1C3o26iOEEDbwwcAGszoJfJAaYt2bwrrzpjQq4hWdf6f8JPWec2qLiJ3VFYt1pebPSgF tqwA== 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=Ty/d+T3+atEDIdbJi1veQD3g0plCxVVL8asU2IDtvSY=; b=gWVqYG42qGeofTD9uwlneuGUU0Uh3Wfx9GpgdQCzSzAvGRDzP0X8qJIDA3REWoOAd4 acYV7Pn4P5f6WkrssuIn4s6XD1G5W52VCxjnJoTRgVY/C8Lt7TRI5DACIgXa3wvMR51E tooevJwZOY10w7CiRIrESzpuZsXIQGYjWuXCi/nHKljJBHdzFA43tSMqQ2QJUjjh5ySD CDwzh8UutOV3/tEffSyn+Jrkbr1IzBQ7Ira5J2REZLBrZasJeCGic1aghcPssTEqfLMn SZMJ3i8xrXdAL5+GoqKzIR1Hsw/x0b0iGg0MnHPSEVa1mdw+2Qjy+01AJZgsjnonXt0t 9tWg== 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 x13si8105754pge.375.2019.02.24.17.54.23; Sun, 24 Feb 2019 17:54:39 -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 S1728195AbfBYBx5 (ORCPT + 99 others); Sun, 24 Feb 2019 20:53:57 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55680 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725991AbfBYBx5 (ORCPT ); Sun, 24 Feb 2019 20:53:57 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 063183001952; Mon, 25 Feb 2019 01:53:57 +0000 (UTC) Received: from dhcp-128-65.nay.redhat.com (ovpn-12-131.pek2.redhat.com [10.72.12.131]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1880560BE7; Mon, 25 Feb 2019 01:53:49 +0000 (UTC) Date: Mon, 25 Feb 2019 09:53:46 +0800 From: Dave Young To: Pingfan Liu Cc: Borislav Petkov , Joerg Roedel , Baoquan He , Jerry Hoemann , x86@kernel.org, Randy Dunlap , kexec@lists.infradead.org, LKML , Mike Rapoport , Andrew Morton , Yinghai Lu , 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: <20190225015346.GC1941@dhcp-128-65.nay.redhat.com> References: <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> <20190222130026.GA30766@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.5 (2018-04-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Mon, 25 Feb 2019 01:53:57 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/24/19 at 09:25pm, Pingfan Liu wrote: > On Fri, Feb 22, 2019 at 9:00 PM Borislav Petkov wrote: > > > > 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." > > > Maybe I misunderstood you, but does "requested range failed" mean that > user specify the range? If yes, then it should be the duty of user as > you said later, not the duty of kernel" If you go with the changes in your current patch it is needed to say something like: "crashkernel: can not find free memory under 4G, reserve XM@.. instead" Also need to print the reserved low memory area in case ,high being used. But for 896M -> 4G, the 896M faulure is not necessary to show in dmesg, it is some in kernel logic. Thanks Dave