From patchwork Tue Apr 3 15:32:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 132760 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp3954132ljb; Tue, 3 Apr 2018 08:35:17 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+aqd35L0vSPcOUtPzVeaM6Ywa2ZP3HwEzzHZmGGniZ2rhTW18MFR3UNppJgAuJ0tGCGv1P X-Received: by 10.107.174.214 with SMTP id n83mr12653083ioo.171.1522769717218; Tue, 03 Apr 2018 08:35:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522769717; cv=none; d=google.com; s=arc-20160816; b=rGfoCwH1pw2bBe9mmUPmih53hEtxKillznPhFvtTufx9PESUpVdc4cPV2yKdq0VVXE uGAWSdAIvzysRB+0w1gBhRT98hGtdkKvKFZ9QDgUW54M3MSfFhZHQxERkVY3JziOOCTR siaqL8mDYyQj/Rf28ciV/9fhRot3Fo4u5/UgDRlfv6gHaRzRIb10Mg3VxFLylafXobsj 9e6OoON64R4uyXx8/J0CtJcO15ijz2VHy3VW92QroQ/FcpFiVteO+RLN88eGJ/PDCJbg SFMwVhMZ4uPCE336cM1vZe5Mjef9xIk+wO8T3kALJ5LH65gwmcqFDEmjD+FS9p+lw0k2 Hd7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:references:in-reply-to:message-id:date:to:from :arc-authentication-results; bh=nBBPmQCCzShR0jKEB/u2PMQwHjsvM1SnteuhtBsb9ZI=; b=Q+hdmewJF4Oa5HkMqR0O32wSDplgjCMScLI+jautgVjbKWpu2VHYxpAsdiy9wXlXSo fNZtYDlPSkEYj26OEKIQapPIo87744xyoIhGb5KrTG7ExnC/fN/jflbOi/2d4R7OCpwj tXWj5t0t3XUrFicGHMdNaM0Hx6u4WvBI384xRE8X2cJLfm7aXlzDv6/aNi1xtS3GoWZR /AN/E9lssQiCTABQIlN/OqfzCSgosk2soLzCplYl3q5qy5nAQoG4K3Vvt2QT9Y1UKUAA HkevMT91q+UOLZrsnKRdYv7e/4tKHHLuCJafvMrSo4yMe4hi1lH7+MFxEjOZKveshA91 82og== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id u4-v6si581103itc.137.2018.04.03.08.35.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Apr 2018 08:35:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1f3Nvo-0007nf-F7; Tue, 03 Apr 2018 15:33:08 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1f3Nvm-0007mf-Sy for xen-devel@lists.xen.org; Tue, 03 Apr 2018 15:33:06 +0000 X-Inumbo-ID: 3810d9d1-3754-11e8-9728-bc764e045a96 Received: from foss.arm.com (unknown [217.140.101.70]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTP id 3810d9d1-3754-11e8-9728-bc764e045a96; Tue, 03 Apr 2018 17:32:29 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6709615AB; Tue, 3 Apr 2018 08:33:04 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.206.53]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7BC6B3F24A; Tue, 3 Apr 2018 08:33:03 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Tue, 3 Apr 2018 16:32:37 +0100 Message-Id: <20180403153251.19595-3-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180403153251.19595-1-julien.grall@arm.com> References: <20180403153251.19595-1-julien.grall@arm.com> Subject: [Xen-devel] [for-4.11][PATCH v7 02/16] xen/arm: setup: use maddr_to_mfn rather than _mfn(paddr_to_pfn(...)) X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Julien Grall , Stefano Stabellini , George Dunlap MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Signed-off-by: Julien Grall Reviewed-by: George Dunlap Acked-by: Stefano Stabellini --- Cc: Stefano Stabellini Changes in v6: - Remove the justification from the commit message - Add George's reviewed-by Changes in v4: - Patch added --- xen/arch/arm/setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c index b17797dc97..1ce6a26e84 100644 --- a/xen/arch/arm/setup.c +++ b/xen/arch/arm/setup.c @@ -268,8 +268,8 @@ void __init discard_initial_modules(void) if ( mi->module[i].kind == BOOTMOD_XEN ) continue; - if ( !mfn_valid(_mfn(paddr_to_pfn(s))) || - !mfn_valid(_mfn(paddr_to_pfn(e)))) + if ( !mfn_valid(maddr_to_mfn(s)) || + !mfn_valid(maddr_to_mfn(e)) ) continue; dt_unreserved_regions(s, e, init_domheap_pages, 0);