From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.groups.io with SMTP id smtpd.web08.10879.1629868942478008140 for ; Tue, 24 Aug 2021 22:22:23 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EgL98lUq; spf=pass (domain: redhat.com, ip: 216.205.24.124, mailfrom: philmd@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1629868941; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0m54IX3kAp/1FCIfNSBkoT9QNHiEkZW+VaOqv9sL+ag=; b=EgL98lUqv/V7HD+CKesGcnMNDo4weTGMLzNT12q9XPvzNbmx3pixcJLRDlihrArJhkHs0e 9tqjIVhIPOpJ0LT1UV07+PVObHONvS17o/RTKX5dxDXDwwIH2XH0FtLJsi//ssPxLLu4fR Cfmytgl1xj5snvxXC32iQ+yvq3BjYjs= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-209-Gw06fGrKML6Y2A9r5DNhWg-1; Wed, 25 Aug 2021 01:22:20 -0400 X-MC-Unique: Gw06fGrKML6Y2A9r5DNhWg-1 Received: by mail-wr1-f72.google.com with SMTP id q11-20020a5d61cb0000b02901550c3fccb5so6240802wrv.14 for ; Tue, 24 Aug 2021 22:22:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=0m54IX3kAp/1FCIfNSBkoT9QNHiEkZW+VaOqv9sL+ag=; b=OB7oKWPAJg4T9oYOcJVcrjwH8tD1txw8ETj1gJCpP13OE12b2W1A02/5/k65I9pjgh ALruca9hc6zQdfuTOmfIGdMZobNa5WeDEczpJObDQCj2oINN/M9yRnr3fhT2pU2jVonf LDmiVwKcGVMozU55UwooyNimnWQkgUNdsmFKk2GUBMxcrX7npB2Sb2KehBQ+KUp70Fku 378YNE5XkafzjzvRf3cRiE/tdERSF9Q/EhL6RTaZocP460v7rmw22qxshGWzHQvueW7q hNEa4mz+YubAh5bAKyDmsyZcHAdCVLOq0Pd0GQ9qj/E40ji4m/4WGFKmQKfCeeuqQ/Nj RwMQ== X-Gm-Message-State: AOAM531Ji+rcLdaZt6m1xXtX7fgnnIGUyTSVv5lr68FOA+BaQVLZKeeP mtFI0+qe8tSeT8c67O1xCohSjMSi9fsgjfXFnrLzFv52MEAAw3wUeV4FCBKbMTP0JRDvxfdwBsk Pcz0mhTm+s08Lzg== X-Received: by 2002:adf:e604:: with SMTP id p4mr6739795wrm.37.1629868939073; Tue, 24 Aug 2021 22:22:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxG+gGQovHKYdosPZ5DCuXvCjK+nzScifFkrLjlEq6DL2sTPtEobo2FckAOYtENGHi99hPgYQ== X-Received: by 2002:adf:e604:: with SMTP id p4mr6739785wrm.37.1629868938920; Tue, 24 Aug 2021 22:22:18 -0700 (PDT) Return-Path: Received: from [192.168.1.36] (163.red-83-52-55.dynamicip.rima-tde.net. [83.52.55.163]) by smtp.gmail.com with ESMTPSA id t64sm2353288wma.48.2021.08.24.22.22.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Aug 2021 22:22:18 -0700 (PDT) Subject: Re: [edk2-devel] [PATCH 1/2] OvmfPkg/PlatformPei: ScanOrAdd64BitE820Ram improvements To: devel@edk2.groups.io, kraxel@redhat.com References: <20210819081110.1612205-1-kraxel@redhat.com> <20210819081110.1612205-2-kraxel@redhat.com> From: =?UTF-8?B?UGhpbGlwcGUgTWF0aGlldS1EYXVkw6k=?= Message-ID: <42a017f3-25a9-6df3-b44a-c0dab839afd9@redhat.com> Date: Wed, 25 Aug 2021 07:22:17 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210819081110.1612205-2-kraxel@redhat.com> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 8/19/21 10:11 AM, Gerd Hoffmann wrote: > Add a bool parameter to ScanOrAdd64BitE820Ram to explicitly specify > whenever ScanOrAdd64BitE820Ram should add HOBs for high memory (above > 4G) or scan only. > > Also add a lowmem parameter so ScanOrAdd64BitE820Ram > can report the memory size below 4G. > > This allows a more flexible usage of ScanOrAdd64BitE820Ram, > a followup patch will use it for all memory detection. > > No functional change. > > Signed-off-by: Gerd Hoffmann > --- > OvmfPkg/PlatformPei/MemDetect.c | 28 +++++++++++++++++++++------- > 1 file changed, 21 insertions(+), 7 deletions(-) Reviewed-by: Philippe Mathieu-Daude