Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 72056C2D0E4 for ; Mon, 23 Nov 2020 13:07:40 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 008832075A for ; Mon, 23 Nov 2020 13:07:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="gq8l43NE" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 008832075A Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.34226.65101 (Exim 4.92) (envelope-from ) id 1khBYv-0004um-O1; Mon, 23 Nov 2020 13:07:21 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 34226.65101; Mon, 23 Nov 2020 13:07:21 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khBYv-0004uf-K9; Mon, 23 Nov 2020 13:07:21 +0000 Received: by outflank-mailman (input) for mailman id 34226; Mon, 23 Nov 2020 13:07:19 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khBYt-0004uW-Td for xen-devel@lists.xenproject.org; Mon, 23 Nov 2020 13:07:19 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 71f9fffa-fa58-4f14-9a61-f23540af3381; Mon, 23 Nov 2020 13:07:19 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 45A5DAF40; Mon, 23 Nov 2020 13:07:18 +0000 (UTC) Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khBYt-0004uW-Td for xen-devel@lists.xenproject.org; Mon, 23 Nov 2020 13:07:19 +0000 X-Inumbo-ID: 71f9fffa-fa58-4f14-9a61-f23540af3381 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 71f9fffa-fa58-4f14-9a61-f23540af3381; Mon, 23 Nov 2020 13:07:19 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1606136838; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SG87VMAsY8N17K1dmsmWhSR2FvjwB2NZUALLHbpffng=; b=gq8l43NEgSqWOEbo7Ep9zAtsGsWKRh8RjNVicrs4ba0lLNc+rYiCtGY+azAA7qBCXT2FjI BY+9NmDYCWmxr7Iwz6BLpl0QU68EXUe8R12OLAr+SwBKJzrBMKc8XOsSKJw4JdyZz1oEMa UrRErnzA3JsFADlaFn/3K3M8aglnQnU= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 45A5DAF40; Mon, 23 Nov 2020 13:07:18 +0000 (UTC) Subject: Re: [PATCH] x86: E801 memory "map" use implies no ACPI To: Andrew Cooper Cc: Wei Liu , =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= , "xen-devel@lists.xenproject.org" References: <18ca8671-1478-3dc8-7b91-041dbc18829f@suse.com> From: Jan Beulich Message-ID: <293cc4e1-af95-586c-d908-a392aa9179ef@suse.com> Date: Mon, 23 Nov 2020 14:07:17 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit On 23.11.2020 13:37, Andrew Cooper wrote: > On 20/11/2020 12:45, Jan Beulich wrote: >> ACPI mandates use of E820 (or newer, e.g. EFI), and in fact firmware >> has been observed to include E820_ACPI ranges in what E801 reports as >> available (really "configured") memory. >> >> Signed-off-by: Jan Beulich >> --- >> TBD: Alternatively we could drop all use of E801 (and older), since >> there shouldn't be any 64-bit systems not supporting the more >> modern E820. > > I'd definitely be in favour of deleting the legacy logic.  The very fact > that firmware has been observed to include E820_ACPI in E801 maps shows > that the change here isn't correct in practice. Mind explaining yourself? I don't see how the change here wouldn't be correct in practice. Inclusion of ACPI table space in E801 data simply means either the OS is ACPI-enabled, in which case it won't use E801, or it's not (or use of ACPI was disabled there by some means) in which case it's fine to re-use the memory as normal RAM. > I think we should go further and depend on the bootloader providing the > memory/video/etc details, which also rips out a lot of 16bit handling > code in the trampoline. I wouldn't go this far just yet. We've not been using boot loader provided memory map data so far, so a first step would imo be to validate that boot loader provided data is consistent with raw E820 one. We don't want to chance getting screwed up by an old, buggy boot loader. > Judging by the context below, I think we should also drop various ACPI > related options.  Given its ubiquity these days, turning various bits of > ACPI off is only going to make problems worse. Probably, but an orthogonal change (and iirc I did recently suggest the same in a different context). I have to admit that I'd be weary of regressions if we did so, and if anyone in fact used any of these options. At the very least I think we would better verbosely deprecate these (sub)options first, for one or even two release cycles. I still recall us (SUSE) dropping a custom patch we had been carrying (and which was rejected upstream) changing the default IO-APIC ack mode for single IO-APIC systems to old-style, resulting in an instant report that some director's or even VP's laptop broke. Hence, despite the upstream rejection, we've now been carrying this change for perhaps over 10 years. Any change in such areas feels like it could suffer similar fallout. Jan