From: Jeremy Linton <jeremy.linton@arm.com>
To: linux-acpi@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org, sudeep.holla@arm.com,
hanjun.guo@linaro.org, lorenzo.pieralisi@arm.com,
rjw@rjwysocki.net, will.deacon@arm.com, catalin.marinas@arm.com,
gregkh@linuxfoundation.org, viresh.kumar@linaro.org,
mark.rutland@arm.com, linux-kernel@vger.kernel.org,
linux-pm@vger.kernel.org, jhugo@codeaurora.org,
wangxiongfeng2@huawei.com, Jonathan.Zhang@cavium.com,
ahs3@redhat.com, Jayachandran.Nair@cavium.com,
austinwc@codeaurora.org, lenb@kernel.org, robert.moore@intel.com,
lv.zheng@intel.com, devel@acpica.org,
Jeremy Linton <jeremy.linton@arm.com>
Subject: [PATCH v4 1/9] ACPICA: Add additional PPTT flags for cache properties
Date: Thu, 9 Nov 2017 15:03:03 -0600 [thread overview]
Message-ID: <20171109210311.25655-2-jeremy.linton@arm.com> (raw)
In-Reply-To: <20171109210311.25655-1-jeremy.linton@arm.com>
The PPTT table has a number of flags that can be set
to describe whether the cache is I/D/U and the allocation
and write policies. Add these flags.
Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
---
include/acpi/actbl1.h | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/include/acpi/actbl1.h b/include/acpi/actbl1.h
index 6b8714a428b6..71f874e2790d 100644
--- a/include/acpi/actbl1.h
+++ b/include/acpi/actbl1.h
@@ -1346,6 +1346,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 {
--
2.13.5
next prev parent reply other threads:[~2017-11-09 21:03 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-09 21:03 [PATCH v4 0/9] Support PPTT for ARM64 Jeremy Linton
2017-11-09 21:03 ` Jeremy Linton [this message]
2017-11-10 17:13 ` [PATCH v4 1/9] ACPICA: Add additional PPTT flags for cache properties Moore, Robert
2017-11-09 21:03 ` [PATCH v4 2/9] ACPI/PPTT: Add Processor Properties Topology Table parsing Jeremy Linton
2017-11-15 9:27 ` Xiongfeng Wang
2017-11-15 15:50 ` Jeremy Linton
2017-11-09 21:03 ` [PATCH v4 3/9] arm64/acpi: Create arch specific cpu to acpi id helper Jeremy Linton
2017-11-20 17:06 ` Sudeep Holla
2017-11-20 17:09 ` Jeremy Linton
2017-11-20 17:14 ` Sudeep Holla
2017-11-09 21:03 ` [PATCH v4 4/9] ACPI: Enable PPTT support on ARM64 Jeremy Linton
2017-11-09 21:03 ` [PATCH v4 5/9] drivers: base: cacheinfo: arm64: Add support for ACPI based firmware tables Jeremy Linton
2017-11-20 16:56 ` Sudeep Holla
2017-11-20 18:02 ` Jeremy Linton
2017-11-20 18:14 ` Sudeep Holla
2017-11-20 22:41 ` Jeremy Linton
2017-11-09 21:03 ` [PATCH v4 6/9] ACPI/PPTT: Add topology parsing code Jeremy Linton
2017-11-09 21:03 ` [PATCH v4 7/9] arm64: Topology, rename cluster_id Jeremy Linton
2017-11-09 21:03 ` [PATCH v4 8/9] arm64: topology: Enable ACPI/PPTT based CPU topology Jeremy Linton
2017-11-09 21:03 ` [PATCH v4 9/9] ACPI: Add PPTT to injectable table list Jeremy Linton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171109210311.25655-2-jeremy.linton@arm.com \
--to=jeremy.linton@arm.com \
--cc=Jayachandran.Nair@cavium.com \
--cc=Jonathan.Zhang@cavium.com \
--cc=ahs3@redhat.com \
--cc=austinwc@codeaurora.org \
--cc=catalin.marinas@arm.com \
--cc=devel@acpica.org \
--cc=gregkh@linuxfoundation.org \
--cc=hanjun.guo@linaro.org \
--cc=jhugo@codeaurora.org \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=lorenzo.pieralisi@arm.com \
--cc=lv.zheng@intel.com \
--cc=mark.rutland@arm.com \
--cc=rjw@rjwysocki.net \
--cc=robert.moore@intel.com \
--cc=sudeep.holla@arm.com \
--cc=viresh.kumar@linaro.org \
--cc=wangxiongfeng2@huawei.com \
--cc=will.deacon@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).