From patchwork Mon Sep 1 00:53:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laszlo Ersek X-Patchwork-Id: 36329 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f197.google.com (mail-vc0-f197.google.com [209.85.220.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 95A462054F for ; Mon, 1 Sep 2014 00:54:27 +0000 (UTC) Received: by mail-vc0-f197.google.com with SMTP id le20sf15333351vcb.8 for ; Sun, 31 Aug 2014 17:54:27 -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=ViWTmaSj9JHxg0khx0hdl1a96FRqSzOkETARG+Z1Yio=; b=iWv+ucm1J0ILdf9qJTpnmO6bwFUQjDTmNSoyd+yqDHVqKQz+LW5IO8wfapCD4NNSA+ Fre7Bh/fbUsXsaUuetWs1VX3I6I/odgE/W//kkSgKKEISa2IHDgDAaSA4A4GSEYW1R0B xQmjGjyf9aLyIsmFWAEfhIBZrBM4QZJlGLhkNOPNX/qdPKb8T75eN2187XHnRR603k6C 3XL+FRGV0zSFk7SAzpdngxXMhZWw9xyeZ8GG6CyrXgcSqWK8GeiPeg+Q8yj0QB+26iM0 CO3CqD/MHUduvuQg31AZZTG+mwAyPsWLrC0gfEiTABlEPCt7DHeK/WoQY3+6iVR9lDqt OhOA== X-Gm-Message-State: ALoCoQnfUeAeV3dI35voL+CXExiEqlaabl+wV0xi8FVc8uwvdVDnYuE0wITd8gt9I1LlsaETCh++ X-Received: by 10.224.21.129 with SMTP id j1mr14110684qab.7.1409532867413; Sun, 31 Aug 2014 17:54:27 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.47.45 with SMTP id l42ls1828983qga.61.gmail; Sun, 31 Aug 2014 17:54:27 -0700 (PDT) X-Received: by 10.52.137.2 with SMTP id qe2mr19264505vdb.11.1409532867316; Sun, 31 Aug 2014 17:54:27 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id pr2si3505093vdb.23.2014.08.31.17.54.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 31 Aug 2014 17:54:27 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id im17so4764085vcb.4 for ; Sun, 31 Aug 2014 17:54:27 -0700 (PDT) X-Received: by 10.220.79.68 with SMTP id o4mr7940422vck.38.1409532867136; Sun, 31 Aug 2014 17:54:27 -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 uj3csp316279vcb; Sun, 31 Aug 2014 17:54:26 -0700 (PDT) X-Received: by 10.68.136.164 with SMTP id qb4mr35472949pbb.39.1409532866343; Sun, 31 Aug 2014 17:54:26 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ts7si10676320pbc.116.2014.08.31.17.54.25 for ; Sun, 31 Aug 2014 17:54:26 -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 S1752285AbaIAAyT (ORCPT + 25 others); Sun, 31 Aug 2014 20:54:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56345 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752157AbaIAAyN (ORCPT ); Sun, 31 Aug 2014 20:54:13 -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 s810rl9o021345 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 31 Aug 2014 20:53:48 -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 s810rgqW013160; Sun, 31 Aug 2014 20:53:45 -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 1/5] efi: add macro for EFI_MEMORY_UCE memory attribute Date: Mon, 1 Sep 2014 02:53:36 +0200 Message-Id: <1409532820-5027-2-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.173 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: , Add the following macro from the UEFI spec, for completeness: EFI_MEMORY_UCE Memory cacheability attribute: The memory region supports being configured as not cacheable, exported, and supports the "fetch and add" semaphore mechanism. Signed-off-by: Laszlo Ersek --- include/linux/efi.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/efi.h b/include/linux/efi.h index 45cb4ff..b4b1d8d 100644 --- a/include/linux/efi.h +++ b/include/linux/efi.h @@ -92,6 +92,7 @@ typedef struct { #define EFI_MEMORY_WC ((u64)0x0000000000000002ULL) /* write-coalescing */ #define EFI_MEMORY_WT ((u64)0x0000000000000004ULL) /* write-through */ #define EFI_MEMORY_WB ((u64)0x0000000000000008ULL) /* write-back */ +#define EFI_MEMORY_UCE ((u64)0x0000000000000010ULL) /* uncached, exported */ #define EFI_MEMORY_WP ((u64)0x0000000000001000ULL) /* write-protect */ #define EFI_MEMORY_RP ((u64)0x0000000000002000ULL) /* read-protect */ #define EFI_MEMORY_XP ((u64)0x0000000000004000ULL) /* execute-protect */