From patchwork Mon Sep 1 00:53:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laszlo Ersek X-Patchwork-Id: 36331 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f198.google.com (mail-qc0-f198.google.com [209.85.216.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 046092054F for ; Mon, 1 Sep 2014 00:54:52 +0000 (UTC) Received: by mail-qc0-f198.google.com with SMTP id r5sf17049219qcx.1 for ; Sun, 31 Aug 2014 17:54:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:subject:date :message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=dZfPxP6QdUm03pDkC+6FF/hg5D6L19qNvj+ke6BITKg=; b=joqec65Y2eXAh+PbmZt+qH9ptvniJtHlHXoNm5hgyFXQVD3u6whBAFGpmSFPklI2l4 KAWFXRd4//4xatUzYpX+/0lNZZsm8JXTxk676Fv9PE8gQWN2N2gQ78CbM20puIDz5aW+ TCY4YmkCp67J3/IyM0krxOExCDVtbSshYiUXdLx7eyS2Ff3MJwtyJxv2eTIdeQOccp1t 7Mjzidyb7AcXdGeca60x6Zse6+ZgbMLmXEhJvzAJtD00xPRXxSY047GTEnAI4AjAZJau qdn1S/Q2/NsgbJyfd8M+krBywtpZWWlUQHQjfFSJhKiV+m5bRn3tCvriKr8BNdqJmjRO 7F3g== X-Gm-Message-State: ALoCoQli0rOrRdXLSgJKy3vVitwMsXJNJcrFXH0I/Y8xy44r9AO/Nf87BQZc7m4QfxVJ3enL+nth X-Received: by 10.224.169.20 with SMTP id w20mr14136289qay.4.1409532891885; Sun, 31 Aug 2014 17:54:51 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.96.42 with SMTP id j39ls1927551qge.89.gmail; Sun, 31 Aug 2014 17:54:51 -0700 (PDT) X-Received: by 10.52.138.210 with SMTP id qs18mr19012571vdb.18.1409532891809; Sun, 31 Aug 2014 17:54:51 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id o8si3405940vda.105.2014.08.31.17.54.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 31 Aug 2014 17:54:51 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.176 as permitted sender) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id ik5so4828838vcb.35 for ; Sun, 31 Aug 2014 17:54:51 -0700 (PDT) X-Received: by 10.220.250.142 with SMTP id mo14mr22749381vcb.26.1409532891731; Sun, 31 Aug 2014 17:54:51 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp316298vcb; Sun, 31 Aug 2014 17:54:51 -0700 (PDT) X-Received: by 10.68.226.65 with SMTP id rq1mr7319908pbc.131.1409532890920; Sun, 31 Aug 2014 17:54:50 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zz2si11370460pac.62.2014.08.31.17.54.50 for ; Sun, 31 Aug 2014 17:54:50 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752522AbaIAAy2 (ORCPT + 25 others); Sun, 31 Aug 2014 20:54:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:21445 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752194AbaIAAyP (ORCPT ); Sun, 31 Aug 2014 20:54:15 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s810rqwx019048 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 31 Aug 2014 20:53:52 -0400 Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-38.ams2.redhat.com [10.36.116.38]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s810rgqY013160; Sun, 31 Aug 2014 20:53:50 -0400 From: Laszlo Ersek To: linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, x86@kernel.org, linux-ia64@vger.kernel.org, matt.fleming@intel.com, msalter@redhat.com, lersek@redhat.com Subject: [PATCH 3/5] x86: efi: format EFI memory type & attrs with efi_md_typeattr_format() Date: Mon, 1 Sep 2014 02:53:38 +0200 Message-Id: <1409532820-5027-4-git-send-email-lersek@redhat.com> In-Reply-To: <1409532820-5027-1-git-send-email-lersek@redhat.com> References: <1409532820-5027-1-git-send-email-lersek@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lersek@redhat.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Signed-off-by: Laszlo Ersek --- arch/x86/platform/efi/efi.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c index 850da94..ae2573a 100644 --- a/arch/x86/platform/efi/efi.c +++ b/arch/x86/platform/efi/efi.c @@ -210,9 +210,12 @@ static void __init print_efi_memmap(void) for (p = memmap.map, i = 0; p < memmap.map_end; p += memmap.desc_size, i++) { + char buf[64]; + md = p; - pr_info("mem%02u: type=%u, attr=0x%llx, range=[0x%016llx-0x%016llx) (%lluMB)\n", - i, md->type, md->attribute, md->phys_addr, + pr_info("mem%02u: %s range=[0x%016llx-0x%016llx) (%lluMB)\n", + i, efi_md_typeattr_format(buf, sizeof(buf), md), + md->phys_addr, md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT), (md->num_pages >> (20 - EFI_PAGE_SHIFT))); }