From patchwork Wed Sep 3 11:32:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laszlo Ersek X-Patchwork-Id: 36592 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f197.google.com (mail-ie0-f197.google.com [209.85.223.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 746F6202E4 for ; Wed, 3 Sep 2014 11:35:22 +0000 (UTC) Received: by mail-ie0-f197.google.com with SMTP id rp18sf43907316iec.0 for ; Wed, 03 Sep 2014 04:35:22 -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=EZJS+Zxsg4Tly/a7Ssj0s1hrA5qPphPi7P+iEhtQECgPh3Xn9QbkIfK/Rfwc9ul8UY RcBspu4Uecsqtkc7W0O0oLWORC1/HNL6Pl7tdxujPQtYHs9DR6RjygXMHv/2sZuVHMKq ZuLj6j106fqQP51ZFYzT7y0AP/Rw0b3YpVIg6ZxuJhHbQjvnogw1mFjEj/CsBVF+epjH ODMqnwyK1cg5Nhhok3osKT6Lx0k85nzmmC9dzZl10ViXZOGKGannudqiW/NGAnrZxGtT kiPqsekCu7EKsevRIIklAD8N8fMoFuURy8+DLgIfFCg6ZRYMOCAe7w7YrrJnStG7VO4W 9jrw== X-Gm-Message-State: ALoCoQl/4VMHp0BFP5NpKQAOAJ7LoIUCGrT8wtPijqPbe6NkFqfUZBWYFvK6siBnjjBVwXYYDadY X-Received: by 10.50.57.111 with SMTP id h15mr19057994igq.3.1409744122095; Wed, 03 Sep 2014 04:35:22 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.102.23 with SMTP id v23ls2754446qge.51.gmail; Wed, 03 Sep 2014 04:35:21 -0700 (PDT) X-Received: by 10.52.61.99 with SMTP id o3mr942247vdr.46.1409744121867; Wed, 03 Sep 2014 04:35:21 -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 dm3si3465927vcb.91.2014.09.03.04.35.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Sep 2014 04:35:21 -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 im17so8526941vcb.4 for ; Wed, 03 Sep 2014 04:35:21 -0700 (PDT) X-Received: by 10.220.190.134 with SMTP id di6mr322210vcb.43.1409744121777; Wed, 03 Sep 2014 04:35:21 -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 uj3csp665997vcb; Wed, 3 Sep 2014 04:35:21 -0700 (PDT) X-Received: by 10.70.59.35 with SMTP id w3mr5394554pdq.51.1409744120875; Wed, 03 Sep 2014 04:35:20 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gg10si10516756pac.188.2014.09.03.04.35.11 for ; Wed, 03 Sep 2014 04:35:12 -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 S932240AbaICLc6 (ORCPT + 25 others); Wed, 3 Sep 2014 07:32:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32065 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756200AbaICLcy (ORCPT ); Wed, 3 Sep 2014 07:32:54 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s83BWUEA008919 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 3 Sep 2014 07:32:31 -0400 Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-89.ams2.redhat.com [10.36.116.89]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s83BWP7S002681; Wed, 3 Sep 2014 07:32:28 -0400 From: Laszlo Ersek To: mingo@kernel.org, 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 v2 1/5] efi: add macro for EFI_MEMORY_UCE memory attribute Date: Wed, 3 Sep 2014 13:32:19 +0200 Message-Id: <1409743943-16934-2-git-send-email-lersek@redhat.com> In-Reply-To: <1409743943-16934-1-git-send-email-lersek@redhat.com> References: <1409743943-16934-1-git-send-email-lersek@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 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 */