From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.151.124]) by mx.groups.io with SMTP id smtpd.web12.8942.1638946932422523470 for ; Tue, 07 Dec 2021 23:02:12 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LV6K+9r0; spf=pass (domain: redhat.com, ip: 170.10.151.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1638946929; 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:content-transfer-encoding; bh=IehtzcD8tLHuWFDwMstS4Mi587nzs+VTz1kqJV/HUi0=; b=LV6K+9r0Jtjkt/KwM11IJCywIhKDwLri6rRKaVwOvB6GiNcO/ccm0RM2QhpWVoL9ez6e8n 77Ege8Tgd2ZM80uwLGXR0BxCFqy4t6hanCdMdFsip9wCpLVtXKU/YWxET/XPIpdv3qRidK UFQwN239nasTcXmrXq/n8N4zM+N0QkI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-2-v-NSEOIZOUu5YPB1jyKntw-1; Wed, 08 Dec 2021 02:02:06 -0500 X-MC-Unique: v-NSEOIZOUu5YPB1jyKntw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A993F36393; Wed, 8 Dec 2021 07:02:05 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.5]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C99F2794AB; Wed, 8 Dec 2021 07:01:47 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 19BEC1800091; Wed, 8 Dec 2021 08:01:46 +0100 (CET) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Ard Biesheuvel , Pawel Polawski , Jordan Justen , Jiewen Yao , Gerd Hoffmann Subject: [PATCH v4 0/3] OvmfPkg/PlatformPei: prefer etc/e820 for memory detection Date: Wed, 8 Dec 2021 08:01:43 +0100 Message-Id: <20211208070146.1239368-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Don't use cmos for memory detection if possible. qemu provides the etc/e820 firmware config file as alternative since 2013. v4: - uncrustify & rebase to latest master. v3: - fix CI failure. v2: - fix lowmem detection. - pick up review tags. - add rfc patch to completely drop cmos support. Gerd Hoffmann (3): OvmfPkg/PlatformPei: ScanOrAdd64BitE820Ram improvements OvmfPkg/PlatformPei: prefer etc/e820 for memory detection RFC: OvmfPkg/PlatformPei: stop using cmos for memory detection OvmfPkg/PlatformPei/MemDetect.c | 88 ++++++++++++--------------------- 1 file changed, 31 insertions(+), 57 deletions(-) -- 2.33.1