* [PATCH v1 1/3] misc: amd-sbi: Add revision support for AMD Venice platform
@ 2026-03-18 11:27 Akshay Gupta
2026-03-18 11:27 ` [PATCH v1 2/3] misc: amd-sbi: Add check to probe only SBRMI devices Akshay Gupta
2026-03-18 11:27 ` [PATCH v1 3/3] misc: amd-sbi: Add device tree mapping for AMD " Akshay Gupta
0 siblings, 2 replies; 3+ messages in thread
From: Akshay Gupta @ 2026-03-18 11:27 UTC (permalink / raw)
To: linux-kernel
Cc: gregkh, arnd, linux, naveenkrishna.chatradhi, Anand.Umarji, Akshay Gupta
The AMD Venice platform uses revision 0x31 and a two-byte register
address size. Add the revision to the CPUID and MCAMSR protocol
functions to ensure correct protocol identification.
Reviewed-by: Naveen Krishna Chatradhi <naveenkrishna.chatradhi@amd.com>
Signed-off-by: Akshay Gupta <Akshay.Gupta@amd.com>
---
drivers/misc/amd-sbi/rmi-core.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/misc/amd-sbi/rmi-core.c b/drivers/misc/amd-sbi/rmi-core.c
index c3a58912d6db..1d4933c69dd2 100644
--- a/drivers/misc/amd-sbi/rmi-core.c
+++ b/drivers/misc/amd-sbi/rmi-core.c
@@ -214,6 +214,7 @@ static int rmi_cpuid_read(struct sbrmi_data *data,
goto exit_unlock;
break;
case 0x21:
+ case 0x31:
ret = rmi_cpuid_input_ext(data, msg, thread);
if (ret)
goto exit_unlock;
@@ -327,6 +328,7 @@ static int rmi_mca_msr_read(struct sbrmi_data *data,
goto exit_unlock;
break;
case 0x21:
+ case 0x31:
ret = rmi_mcamsr_input_ext(data, msg, thread);
if (ret)
goto exit_unlock;
--
2.34.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v1 2/3] misc: amd-sbi: Add check to probe only SBRMI devices
2026-03-18 11:27 [PATCH v1 1/3] misc: amd-sbi: Add revision support for AMD Venice platform Akshay Gupta
@ 2026-03-18 11:27 ` Akshay Gupta
2026-03-18 11:27 ` [PATCH v1 3/3] misc: amd-sbi: Add device tree mapping for AMD " Akshay Gupta
1 sibling, 0 replies; 3+ messages in thread
From: Akshay Gupta @ 2026-03-18 11:27 UTC (permalink / raw)
To: linux-kernel
Cc: gregkh, arnd, linux, naveenkrishna.chatradhi, Anand.Umarji, Akshay Gupta
AMD OOB devices are differentiated by their Instance ID, with SBRMI
assigned Instance ID 1. Since the device ID match does not consider
the Instance ID, add an explicit check to restrict probing to only
the SBRMI device and exclude other OOB devices.
Reviewed-by: Naveen Krishna Chatradhi <naveenkrishna.chatradhi@amd.com>
Signed-off-by: Akshay Gupta <Akshay.Gupta@amd.com>
---
drivers/misc/amd-sbi/rmi-i2c.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/drivers/misc/amd-sbi/rmi-i2c.c b/drivers/misc/amd-sbi/rmi-i2c.c
index f0cc99000b69..04182358bebb 100644
--- a/drivers/misc/amd-sbi/rmi-i2c.c
+++ b/drivers/misc/amd-sbi/rmi-i2c.c
@@ -170,6 +170,16 @@ static int sbrmi_i3c_probe(struct i3c_device *i3cdev)
struct regmap *regmap;
int rev, ret;
+ /*
+ * AMD OOB devices are distinguished by their Instance ID.
+ * For SBRMI, the Instance ID is 1. Since the device ID match
+ * does not account for the Instance ID, the following check
+ * ensures that only the SBRMI device is probed, excluding
+ * other OOB devices.
+ */
+ if (I3C_PID_INSTANCE_ID(i3cdev->desc->info.pid) != 1)
+ return -ENXIO;
+
regmap = devm_regmap_init_i3c(i3cdev, &sbrmi_regmap_config);
if (IS_ERR(regmap))
return PTR_ERR(regmap);
--
2.34.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v1 3/3] misc: amd-sbi: Add device tree mapping for AMD SBRMI devices
2026-03-18 11:27 [PATCH v1 1/3] misc: amd-sbi: Add revision support for AMD Venice platform Akshay Gupta
2026-03-18 11:27 ` [PATCH v1 2/3] misc: amd-sbi: Add check to probe only SBRMI devices Akshay Gupta
@ 2026-03-18 11:27 ` Akshay Gupta
1 sibling, 0 replies; 3+ messages in thread
From: Akshay Gupta @ 2026-03-18 11:27 UTC (permalink / raw)
To: linux-kernel
Cc: gregkh, arnd, linux, naveenkrishna.chatradhi, Anand.Umarji, Akshay Gupta
Add device tree mapping to enable SBRMI device support across
different models and steppings on the AMD Venice platform.
Reviewed-by: Naveen Krishna Chatradhi <naveenkrishna.chatradhi@amd.com>
Signed-off-by: Akshay Gupta <Akshay.Gupta@amd.com>
---
drivers/misc/amd-sbi/rmi-i2c.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/misc/amd-sbi/rmi-i2c.c b/drivers/misc/amd-sbi/rmi-i2c.c
index 04182358bebb..37e5ea83bf97 100644
--- a/drivers/misc/amd-sbi/rmi-i2c.c
+++ b/drivers/misc/amd-sbi/rmi-i2c.c
@@ -222,6 +222,10 @@ static void sbrmi_i3c_remove(struct i3c_device *i3cdev)
static const struct i3c_device_id sbrmi_i3c_id[] = {
/* PID for AMD SBRMI device */
I3C_DEVICE_EXTRA_INFO(0x112, 0x0, 0x2, NULL),
+ I3C_DEVICE_EXTRA_INFO(0x0, 0x0, 0x118, NULL), /* Socket:0, Venice */
+ I3C_DEVICE_EXTRA_INFO(0x0, 0x100, 0x118, NULL), /* Socket:1, Venice */
+ I3C_DEVICE_EXTRA_INFO(0x112, 0x0, 0x119, NULL), /* Socket:0, Venice */
+ I3C_DEVICE_EXTRA_INFO(0x112, 0x100, 0x119, NULL), /* Socket:1, Venice */
{}
};
MODULE_DEVICE_TABLE(i3c, sbrmi_i3c_id);
--
2.34.1
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-03-18 11:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-18 11:27 [PATCH v1 1/3] misc: amd-sbi: Add revision support for AMD Venice platform Akshay Gupta
2026-03-18 11:27 ` [PATCH v1 2/3] misc: amd-sbi: Add check to probe only SBRMI devices Akshay Gupta
2026-03-18 11:27 ` [PATCH v1 3/3] misc: amd-sbi: Add device tree mapping for AMD " Akshay Gupta
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®