Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp323161imp; Wed, 20 Feb 2019 00:33:29 -0800 (PST) X-Google-Smtp-Source: AHgI3IarpVUMNyEqaZLGkskdQvbmgM5Xz4dF5WKXW5XEAmwNFKcQrwTYR27cF1TRntmdrKmun2WW X-Received: by 2002:a17:902:7686:: with SMTP id m6mr26824712pll.262.1550651609332; Wed, 20 Feb 2019 00:33:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550651609; cv=none; d=google.com; s=arc-20160816; b=rFhkNadRFg4cgAxYbbUS4V8+tXDkZaWUnDEczhWQchCWemqMvA65Hhab2F9CsASwI0 bhkNWblP0CXroXZrGxOq6NS3wU09F+a9LNxrMJvHbTvnzzu0EjYnxk0XRm0byykHIHMv vvGK2hgW0C1pGEWg8ML8yNGPD6dW4y0y5MnYgA1nrfX40K9wncDMctgCY33CF/W7K2iL OYI1XUnJUOZDqw7Gbrum/L0Md3YVLt1ogKIXw1kDOLR9NM/K0MKfHMSfWqm6jFqlSn2x sOTWStXb7Hs5jhXWLeR6kyVDR1nRvP7g/eP1kl+aVY9/YTQ0NiS5lg7oAc2Dz+TQNIZn pP1g== 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=j8C4i8UUyK35XNWlsOAQTDRWY0jXzQaWWSVBWTwc+9A=; b=VfB7sCs5KKjsKeOMPJISfJjUHb2H3FMId7RelNWEnCuox5qCSXMy4+iP6Zr5BIwJD5 Eqhsqqjit31l6HSLLtfSNwEyWAYe+Cln9YoEeD1VzfJbnZAczgSlow4eGTWpg9AanVak cUhBVRbI3KHgP+tI+Pbqq5+UH+uKoeeD8gJmHiUvzwYV+p7GsgSO4JKlr6O5fpyAL5KJ jGt9+Ga+Og5vSFLPuEzXUE7rzXkABbObbT+ErzOZRVBSQkfg6WJ9/lSjGvQm0D8KrZjn 4gZn4AZuQLPi51kCZCEm7Wm9jU6tovY/z0RjVJXKNnXWYQyWHNDE7yz9Yjiniooy+WsY sEng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=BTFflSEh; 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 a8si16654208pgt.326.2019.02.20.00.33.13; Wed, 20 Feb 2019 00:33:29 -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=BTFflSEh; 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 S1726217AbfBTIcx (ORCPT + 99 others); Wed, 20 Feb 2019 03:32:53 -0500 Received: from mail.skyhub.de ([5.9.137.197]:53038 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726030AbfBTIcx (ORCPT ); Wed, 20 Feb 2019 03:32:53 -0500 Received: from zn.tnic (p200300EC2BCB850030ABB3F32F386BA9.dip0.t-ipconnect.de [IPv6:2003:ec:2bcb:8500:30ab:b3f3:2f38:6ba9]) (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 5CA631EC0253; Wed, 20 Feb 2019 09:32:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1550651571; 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=j8C4i8UUyK35XNWlsOAQTDRWY0jXzQaWWSVBWTwc+9A=; b=BTFflSEhaVqoYgYs7dMm4da81NyfqrHTAsV8M7paS12Tun4Ikg6PzGtTJibmQMJM/EqpSm 153CggOR541BQEALhtJOGFOzNXmZnHBIltQGKc2aEpRWGxfTv0CPd8KESextLcEWaNTsOY 4YKeLAYeGhwoDdRYqgcq8ocj223UlOQ= Date: Wed, 20 Feb 2019 09:32:41 +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, 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: <20190220083241.GA3447@zn.tnic> References: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190218014820.GA10711@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 Mon, Feb 18, 2019 at 09:48:20AM +0800, Dave Young wrote: > It is ideal if kernel can do it automatically, but I'm not sure if > kernel can predict the swiotlb reserved size automatically. Do you see how even more absurd this gets? If the kernel cannot know the swiotlb reserved size automatically, how is the normal user even supposed to know?! I see swiotlb_size_or_default() so we have a sane default which we fall back to. Now where's the problem with that? -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.