[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241231063434.26998-4-shubhrajyoti.datta@amd.com>
Date: Tue, 31 Dec 2024 12:04:32 +0530
From: Shubhrajyoti Datta <shubhrajyoti.datta@....com>
To: Krzysztof Kozlowski <krzk@...nel.org>, Rob Herring <robh@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Borislav Petkov <bp@...en8.de>, Tony Luck
<tony.luck@...el.com>, James Morse <james.morse@....com>, "Mauro Carvalho
Chehab" <mchehab@...nel.org>, Robert Richter <rric@...nel.org>, "Shubhrajyoti
Datta" <shubhrajyoti.datta@....com>, <linux-kernel@...r.kernel.org>,
<devicetree@...r.kernel.org>, <linux-edac@...r.kernel.org>
CC: <git@....com>
Subject: [PATCH v3 3/5] cdx: add DDRMC commands
Add the commands for getting the DDRMC properties.
Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@....com>
---
(no changes since v1)
drivers/cdx/controller/mc_cdx_pcol.h | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/drivers/cdx/controller/mc_cdx_pcol.h b/drivers/cdx/controller/mc_cdx_pcol.h
index 832a44af963e..174270e148f3 100644
--- a/drivers/cdx/controller/mc_cdx_pcol.h
+++ b/drivers/cdx/controller/mc_cdx_pcol.h
@@ -302,6 +302,12 @@
#define MC_CMD_CDX_BUS_ENUM_DEVICES_OUT_DEVICE_COUNT_OFST 0
#define MC_CMD_CDX_BUS_ENUM_DEVICES_OUT_DEVICE_COUNT_LEN 4
+/* Number of registers */
+#define MC_CMD_EDAC_GET_DDR_CONFIG_OUT_WORD_LENGTH_OFST 0
+#define MC_CMD_EDAC_GET_DDR_CONFIG_OUT_WORD_LENGTH_LEN 4
+/* Number of registers for the DDR controller */
+#define MC_CMD_EDAC_GET_DDR_CONFIG_OUT_REGISTER_VALUES_OFST 4
+#define MC_CMD_EDAC_GET_DDR_CONFIG_OUT_REGISTER_VALUES_LEN 4
/***********************************/
/*
* MC_CMD_CDX_BUS_GET_DEVICE_CONFIG
@@ -587,6 +593,16 @@
/* MC_CMD_CDX_DEVICE_CONTROL_SET_OUT msgresponse */
#define MC_CMD_CDX_DEVICE_CONTROL_SET_OUT_LEN 0
+/***********************************/
+/* MC_CMD_EDAC_GET_DDR_CONFIG
+ * Provides detailed configuration for the DDR controller of the given index.
+ */
+#define MC_CMD_EDAC_GET_DDR_CONFIG 0x3
+
+/* MC_CMD_EDAC_GET_DDR_CONFIG_IN msgrequest */
+#define MC_CMD_EDAC_GET_DDR_CONFIG_IN_CONTROLLER_INDEX_OFST 0
+#define MC_CMD_EDAC_GET_DDR_CONFIG_IN_CONTROLLER_INDEX_LEN 4
+
/***********************************/
/*
* MC_CMD_CDX_DEVICE_CONTROL_GET
--
2.17.1
Powered by blists - more mailing lists