Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1765097ybn; Thu, 26 Sep 2019 01:45:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqylSCw6721r37AEQ5QHzOdsyeVwS/YOyZ+A416QDYy1hWL++3C8cv0yHCg0JXpPCivtc4ls X-Received: by 2002:a17:906:768f:: with SMTP id o15mr2026349ejm.42.1569487501235; Thu, 26 Sep 2019 01:45:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569487501; cv=none; d=google.com; s=arc-20160816; b=SQFBkfazlMr7kPB6jZgb4ML9z3n5kW54X+cLBFOgkzEwX3g9MdLbpchiGFjP5RVv6f sXLBSGGbC+3cxwsjTUVL5XPePu748pwpF5dSnd8YSa5AQL7I5Fa/Ad9JYMdGfSpprCVt QQYG0zaJQ70v+QbUbPKXpw8sMyCXgGhJENSOclnqzoUc4ypBTvh8v57kIiozs0/obWwG Rf8B07qOM40eu1hZTB380WN9a08sPc455IThkAWcagU+raeAikJhhCZQ24/MjVYcR6Y2 UzOMy9yRA08kZaTebyJHXCLL/EVgtOUMFEQhrnwe66zXkRFd5aFUCbvNtOYE112w8s6K 1diw== 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; bh=4K6QayeWuHN7G++Aes2bBbtZWiWBV0XiuK7QCpa00uY=; b=WxZKJGqHIZVnT+hXxfAqAtNl+x3tSB3KnIVa3LFmRp/vza75Bx0TvelLubkqSFY62L YLwqhFvRbBuf+PqForRlb8Sk969oceBsvDK9iaC1J/Nhco5nLuZJmjNJiGsl2lGbBgMQ wbflHu/0HUThChvSnxoVlar0naxxnFQtQcwym90H9aDtFTutJbhDQc5x2mB4gb+Ii0Az wOGYaOFvH23m02G81LuUOaHGHXHMncvDxiOzbAjrelS19QSsI89kFOmhlCpb4o0kk22V Vy9MKQN8yCPKzZeXew3D4ZiGgBMWVV3QqjyluXEq0BjYQV+R59eFM9jd/mEEtJwMdZOW T+aQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=hpe.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l22si624548ejz.239.2019.09.26.01.44.37; Thu, 26 Sep 2019 01:45:01 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=hpe.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2502089AbfIXTs4 (ORCPT + 99 others); Tue, 24 Sep 2019 15:48:56 -0400 Received: from mx0b-002e3701.pphosted.com ([148.163.143.35]:23982 "EHLO mx0b-002e3701.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726829AbfIXTsz (ORCPT ); Tue, 24 Sep 2019 15:48:55 -0400 Received: from pps.filterd (m0150245.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x8OJfF6M013965; Tue, 24 Sep 2019 19:48:22 GMT Received: from g4t3425.houston.hpe.com (g4t3425.houston.hpe.com [15.241.140.78]) by mx0b-002e3701.pphosted.com with ESMTP id 2v796vyvy5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 24 Sep 2019 19:48:22 +0000 Received: from g4t3433.houston.hpecorp.net (g4t3433.houston.hpecorp.net [16.208.49.245]) by g4t3425.houston.hpe.com (Postfix) with ESMTP id 620DA8D; Tue, 24 Sep 2019 19:48:21 +0000 (UTC) Received: from swahl-linux (swahl-linux.americas.hpqcorp.net [10.33.153.21]) by g4t3433.houston.hpecorp.net (Postfix) with ESMTP id EFC7346; Tue, 24 Sep 2019 19:48:19 +0000 (UTC) Date: Tue, 24 Sep 2019 14:48:19 -0500 From: Steve Wahl To: Dave Hansen Cc: Steve Wahl , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, Juergen Gross , "Kirill A. Shutemov" , Brijesh Singh , Jordan Borgner , Feng Tang , linux-kernel@vger.kernel.org, Chao Fan , Zhenzhong Duan , Baoquan He , russ.anderson@hpe.com, dimitri.sivanich@hpe.com, mike.travis@hpe.com Subject: Re: [PATCH v2 2/2] x86/boot/64: round memory hole size up to next PMD page. Message-ID: <20190924194819.GB8138@swahl-linux> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,1.0.8 definitions=2019-09-24_07:2019-09-23,2019-09-24 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 lowpriorityscore=0 suspectscore=0 clxscore=1015 mlxscore=0 spamscore=0 bulkscore=0 adultscore=0 mlxlogscore=960 priorityscore=1501 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1908290000 definitions=main-1909240163 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 23, 2019 at 02:20:35PM -0700, Dave Hansen wrote: > On 9/23/19 11:15 AM, Steve Wahl wrote: > > The kernel image map is created using PMD pages, which can include > > some extra space beyond what's actually needed. Round the size of the > > memory hole we search for up to the next PMD boundary, to be certain > > all of the space to be mapped is usable RAM and includes no reserved > > areas. > > This looks good. It also fully closes any possibility that anyone's > future hardware will hit issues like this as long as they mark the > memory reserved, right? I believe that is true. Thanks! > Reviewed-by: Dave Hansen --> Steve Wahl -- Steve Wahl, Hewlett Packard Enterprise