From patchwork Fri Nov 17 23:42:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Schmauss, Erik" X-Patchwork-Id: 119235 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp1139604qgn; Fri, 17 Nov 2017 15:46:48 -0800 (PST) X-Google-Smtp-Source: AGs4zMaInex3aPQYPTgdy1Z4aJ9ZrOeS+gWt2aqPG5M0FZnttN3GstwCPAmzrLq0KMPNUgEtl5wT X-Received: by 10.98.7.74 with SMTP id b71mr3721768pfd.172.1510962407920; Fri, 17 Nov 2017 15:46:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510962407; cv=none; d=google.com; s=arc-20160816; b=yUqkYQc6LddnozpRu56vDS5wrOxNn9zcPI2vY0fJFpY2Wymj5oq4E+/jcVO97bAy8E Dvrtqz4khpDWKWuM+wrY+ginBvOgPyf5RzwZUyaZmuwl+L4pualup/TFFXRaqRXE+//8 gx7K4CLzdVyihfU1BU5sd+vgU5Lbbtvmx5ouYVggep0DEdSRMFLIlxqghSwOwPDsZA+4 0oX7GRjVwKhKdhh7UVCeRHj9H2U+dx/fXLbpN1IDRABxXcSOvFVXnSFsmbLTknGBh1DY 2e8pO+sgpFD0C3vh/gachiiqofcSNwvaHenKOfldiJTS6DH+qLdjCxhV7TYgCms/vm6o p0Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=pBUM0/vbW3h6YZOPjNORLjQ3ld9/XIPruzYOTne30aY=; b=b0d8cpELvUwb2nM6zCPs4nW4tLIFUCUtQRiNpv2Mm2lA+vaas7KiKG1HwNJ7swOi9i DzA7QwJ7F66s9NJjbn1XyPFJ+D72sGL7d7aiTgnkhK4wnj2KLugEPGpbz6QgerkbJ5vx +bTo7SmjxpVUDEJ0YA2gv8A4A19l6mvlBnaB7P4nX1Knz2hOr/Wip2MrgVe0M7MRS4mJ 1+tRB4kkjtXUOZSrvRgJtB2awQyBGLjScGxujFVtDHqNn3r1PDZPrpKH+WoPLtURuyHO PEKlXa5pEddQYIBLIHfWFHguMPd42yS/jeq7dCNvS1qcDbQDnfCGBDSy7eADcvDaEAJu V4/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y38si3661695plh.61.2017.11.17.15.46.47; Fri, 17 Nov 2017 15:46:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-acpi-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-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161069AbdKQXqq (ORCPT + 7 others); Fri, 17 Nov 2017 18:46:46 -0500 Received: from mga02.intel.com ([134.134.136.20]:39440 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161767AbdKQXqp (ORCPT ); Fri, 17 Nov 2017 18:46:45 -0500 Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Nov 2017 15:46:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,411,1505804400"; d="scan'208";a="177058342" Received: from bartok.jf.intel.com ([10.54.75.154]) by fmsmga005.fm.intel.com with ESMTP; 17 Nov 2017 15:46:45 -0800 From: Erik Schmauss To: linux-acpi@vger.kernel.org Cc: Jeremy Linton , Bob Moore , Erik Schmauss Subject: [PATCH 14/15] ACPICA: ACPI 6.2: Additional PPTT flags Date: Fri, 17 Nov 2017 15:42:29 -0800 Message-Id: <20171117234230.913-15-erik.schmauss@intel.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171117234230.913-1-erik.schmauss@intel.com> References: <20171117234230.913-1-erik.schmauss@intel.com> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org From: Jeremy Linton ACPICA commit fba3ae99b2bc514ca34f0d7b2609c2a043582784 The ACPI 6.2 spec has flags to describe cache allocation, write back, and whether it is an instruction, data or unified cache. Link: https://github.com/acpica/acpica/commit/fba3ae99 Signed-off-by: Jeremy Linton Signed-off-by: Bob Moore Signed-off-by: Erik Schmauss --- include/acpi/actbl1.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -- 2.13.6 -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/acpi/actbl1.h b/include/acpi/actbl1.h index 178661f1b896..4c304bf4d591 100644 --- a/include/acpi/actbl1.h +++ b/include/acpi/actbl1.h @@ -1441,6 +1441,20 @@ struct acpi_pptt_cache { #define ACPI_PPTT_MASK_CACHE_TYPE (0x0C) /* Cache type */ #define ACPI_PPTT_MASK_WRITE_POLICY (0x10) /* Write policy */ +/* Attributes describing cache */ +#define ACPI_PPTT_CACHE_READ_ALLOCATE (0x0) /* Cache line is allocated on read */ +#define ACPI_PPTT_CACHE_WRITE_ALLOCATE (0x01) /* Cache line is allocated on write */ +#define ACPI_PPTT_CACHE_RW_ALLOCATE (0x02) /* Cache line is allocated on read and write */ +#define ACPI_PPTT_CACHE_RW_ALLOCATE_ALT (0x03) /* Alternate representation of above */ + +#define ACPI_PPTT_CACHE_TYPE_DATA (0x0) /* Data cache */ +#define ACPI_PPTT_CACHE_TYPE_INSTR (1<<2) /* Instruction cache */ +#define ACPI_PPTT_CACHE_TYPE_UNIFIED (2<<2) /* Unified I & D cache */ +#define ACPI_PPTT_CACHE_TYPE_UNIFIED_ALT (3<<2) /* Alternate representation of above */ + +#define ACPI_PPTT_CACHE_POLICY_WB (0x0) /* Cache is write back */ +#define ACPI_PPTT_CACHE_POLICY_WT (1<<4) /* Cache is write through */ + /* 2: ID Structure */ struct acpi_pptt_id {