Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp283112imp; Tue, 19 Feb 2019 23:39:54 -0800 (PST) X-Google-Smtp-Source: AHgI3IZln+dRU03MkHVLKOwDGSQnW4YANdGn710Wv6l+ZpPZD7UyIJITdQ+eKClOz6t55kmtIcqq X-Received: by 2002:a63:584e:: with SMTP id i14mr3941292pgm.68.1550648394251; Tue, 19 Feb 2019 23:39:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550648394; cv=none; d=google.com; s=arc-20160816; b=nKKRq0kkzT+RSrJb8cIDd8TtfD/DJSPgD+8RzMfo+zD1qhPDDhr6Dpl4s0rhierEcn I6091kX2lwiuljhl5Y0DHeJiuuYSVdlx+9ftGPbmJ5Tfy+TXu4F8MTOPLON00Ddhwcpo 8lU1Il30pSt3ATa43fr7BbqNkQZUr71j29An8g7S7fpXylgfY5LhAeih9JYbdZbWfLkJ xJCvGA9CAKeRm11wr5J9UPnCw+xL/RRJuhUhkRZumEy7NBKaf4x1JtKD5J63lODDov0X j8p77x37WC55LujqUNunWaVFFsFSlHRgebIUiu3uirYTv7GjuLYxhWLIuSpDeB7G4HLr B77Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=gtGVXohNM/IP6aQpyRt4JKzW9QednskqOIKnMuthC24=; b=adHCp/SW0/WfxkpMHFM+Y+blver0lgwfvS4OlAlK12hn2oPwXGkkwwPbZ1yjz5pb5R 69mUBaEdf6VjFVOHZf38K7+Aj/g4wtr2Ow4VEvH7emfjOnvCErTVC0Y9+wqmwCb1RrDr 7zKykWHwuFbMcDmn4QRuS9pmEmH1hA2aRrC5alDAImOaS5cYVyMzBGlUHcJEkeafEZnH gSL4+8oFXmdnQ5GMzznVrvMtodOMtJ5hOA8HRbWh11o5FVfTDjGQpoTxVZfDsmq+NQXN cL6156hXqcu8dT2hJMETau3LBzfReKpIVlyYuKh5KJrBKPlfu4+Q3SV2+QjIlOEoI5BK 7eqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="D/wsEmqG"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 44si16468245plb.40.2019.02.19.23.39.37; Tue, 19 Feb 2019 23:39:54 -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=@gmail.com header.s=20161025 header.b="D/wsEmqG"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726486AbfBTHi4 (ORCPT + 99 others); Wed, 20 Feb 2019 02:38:56 -0500 Received: from mail-it1-f195.google.com ([209.85.166.195]:51799 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726220AbfBTHi4 (ORCPT ); Wed, 20 Feb 2019 02:38:56 -0500 Received: by mail-it1-f195.google.com with SMTP id y184so13107755itc.1 for ; Tue, 19 Feb 2019 23:38:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gtGVXohNM/IP6aQpyRt4JKzW9QednskqOIKnMuthC24=; b=D/wsEmqGiShOS9LKl4SrTx2FRYRMzYyTNx1wXhkswZf0OLkiBMSfomz695OLIc4nCF j2r9F4Ufz7aMh2KUhkersW9iliIqLPHv6PcXU6KDzJb7aRAl8uvalZatcEVXUT9sHexH ckEcXs30s9yzFsa6yOHf2dd9hRwRQz3rcuQdvja/PwfyahIpbWPqrDe5pJXPA4W2h3JD WlpVhP6wXuH/HE5spHgNhIH6YD+e8p80w3PsXS05UBsEe+Z5yOTtyy9kQ1FPNCvtjTW3 muAHm6rLLfch3n6L82vkPYaHyaMnCeL+koBOjDI/K7CYLzjGaqdmGYOd5k85GJ2JYDQa aE8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gtGVXohNM/IP6aQpyRt4JKzW9QednskqOIKnMuthC24=; b=AZQzujIX8Qm18bCSyfh/CqI+kB8JeimEKZrH2FFG6WPeWZ28uGtCX60Dh/1ruPHiOB VUht7ncv8+t7zTKGT49yrlJGbA9yNZaZMRWEXXWCD9PMhYi3v+ppf0mT+qgbuhqUaYvG JQ6HBWKsRYO81nvNEMckmf9YZJVdqJExBpd81IEBZs1Q8xxtVjNQR5td3nmW6smYoCPG +xMRVHI7ogCe8CgYbjWioG9ldROooKfbf9MS4ot8L0X/R9rVatO4CjAqB2i59oDPziTQ JwuyPz01tU9fTnmkdkAtvX4lT253z9P6LOkxABuZW2VYEiOVpNRaVDWStPB72U8tkG8Y 3ZmA== X-Gm-Message-State: AHQUAubSrpPAxNHMSWLqd2zu0A5HwPd1Z6yFOA29TOrQblEY9ERHN3bm yafiiRevv9qYbSCodnqe+bL39Ipmv3rMNjkFAA== X-Received: by 2002:a02:f5c:: with SMTP id h89mr16270380jad.15.1550648335363; Tue, 19 Feb 2019 23:38:55 -0800 (PST) MIME-Version: 1.0 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> <20190218014820.GA10711@dhcp-128-65.nay.redhat.com> In-Reply-To: <20190218014820.GA10711@dhcp-128-65.nay.redhat.com> From: Pingfan Liu Date: Wed, 20 Feb 2019 15:38:43 +0800 Message-ID: Subject: Re: [PATCHv7] x86/kdump: bugfix, make the behavior of crashkernel=X consistent with kaslr To: Dave Young Cc: Borislav Petkov , 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 18, 2019 at 9:48 AM Dave Young wrote: > > 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. > Agreed, I think it is hard to decide the reserved size automatically. We do not know the requirement for memory of ZONE_DMA32 at boot time. The requirement depends on how many DMA32 devices, and the dynamic payload of them. > 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.