Skip to contentSkip to conversation

mei: me: add arrow lake point S DID

PATCH In review Jonathan Cavitt 3 participants 5 messages Feb 28, 2024 – Feb 29, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 mei: me: add arrow lake point S DID

From: Alexander Usyskin <[email protected]>

Add Arrow Lake S device id.

---
 drivers/misc/mei/hw-me-regs.h | 1 +
 drivers/misc/mei/pci-me.c     | 1 +
 2 files changed, 2 insertions(+)
drivers/misc/mei/hw-me-regs.h +1 -0
index 961e5d53a27a8..b10536e4974db 100644
@@ -112,6 +112,7 @@
 #define MEI_DEV_ID_RPL_S      0x7A68  /* Raptor Lake Point S */
 
 #define MEI_DEV_ID_MTL_M      0x7E70  /* Meteor Lake Point M */
+#define MEI_DEV_ID_ARL_S      0x7F68  /* Arrow Lake Point S */
 
 /*
  * MEI HW Section
drivers/misc/mei/pci-me.c +1 -0
index 676d566f38ddf..1a614fb7fdb67 100644
@@ -119,6 +119,7 @@ static const struct pci_device_id mei_me_pci_tbl[] = {
 	{MEI_PCI_DEVICE(MEI_DEV_ID_RPL_S, MEI_ME_PCH15_CFG)},
 
 	{MEI_PCI_DEVICE(MEI_DEV_ID_MTL_M, MEI_ME_PCH15_CFG)},
+	{MEI_PCI_DEVICE(MEI_DEV_ID_ARL_S, MEI_ME_PCH15_CFG)},
 
 	/* required last entry */
 	{0, }
Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/3 mei: me: add arrow lake point H DID

From: Alexander Usyskin <[email protected]>

Add Arrow Lake H device id.

---
 drivers/misc/mei/hw-me-regs.h | 1 +
 drivers/misc/mei/pci-me.c     | 1 +
 2 files changed, 2 insertions(+)
drivers/misc/mei/hw-me-regs.h +1 -0
index b10536e4974db..aac36750d2c54 100644
@@ -113,6 +113,7 @@
 
 #define MEI_DEV_ID_MTL_M      0x7E70  /* Meteor Lake Point M */
 #define MEI_DEV_ID_ARL_S      0x7F68  /* Arrow Lake Point S */
+#define MEI_DEV_ID_ARL_H      0x7770  /* Arrow Lake Point H */
 
 /*
  * MEI HW Section
drivers/misc/mei/pci-me.c +1 -0
index 1a614fb7fdb67..8cf636c540322 100644
@@ -120,6 +120,7 @@ static const struct pci_device_id mei_me_pci_tbl[] = {
 
 	{MEI_PCI_DEVICE(MEI_DEV_ID_MTL_M, MEI_ME_PCH15_CFG)},
 	{MEI_PCI_DEVICE(MEI_DEV_ID_ARL_S, MEI_ME_PCH15_CFG)},
+	{MEI_PCI_DEVICE(MEI_DEV_ID_ARL_H, MEI_ME_PCH15_CFG)},
 
 	/* required last entry */
 	{0, }
Signature · 1 line
2.25.1
#2 lore raw

PATCH 3/3 mei: gsc_proxy: match component when GSC is on different bus

In reply to Jonathan Cavitt

From: Alexander Usyskin <[email protected]>

On Arrow Lake S systems, MEI is no longer strictly connected to bus 0, while graphics remain exclusively on bus 0. Adapt the component matching logic to accommodate this change:

Original behavior: Required both MEI and graphics to be on the same bus 0.

New behavior: Only enforces graphics to be on bus 0 (integrated), allowing MEI to reside on any bus.
This ensures compatibility with Arrow Lake S and maintains functionality for the legacy systems.

---
 drivers/misc/mei/gsc_proxy/mei_gsc_proxy.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
drivers/misc/mei/gsc_proxy/mei_gsc_proxy.c +5 -3
index be52b113aea93..89364bdbb1290 100644
@@ -96,7 +96,8 @@ static const struct component_master_ops mei_component_master_ops = {
  *
  *    The function checks if the device is pci device and
  *    Intel VGA adapter, the subcomponent is SW Proxy
- *    and the parent of MEI PCI and the parent of VGA are the same PCH device.
+ *    and the VGA is on the bus 0 reserved for built-in devices
+ *    to reject discrete GFX.
  *
  * @dev: master device
  * @subcomponent: subcomponent to match (I915_COMPONENT_SWPROXY)
@@ -123,7 +124,8 @@ static int mei_gsc_proxy_component_match(struct device *dev, int subcomponent,
 	if (subcomponent != I915_COMPONENT_GSC_PROXY)
 		return 0;
 
-	return component_compare_dev(dev->parent, ((struct device *)data)->parent);
+	/* Only built-in GFX */
+	return (pdev->bus->number == 0);
 }
 
 static int mei_gsc_proxy_probe(struct mei_cl_device *cldev,
@@ -146,7 +148,7 @@ static int mei_gsc_proxy_probe(struct mei_cl_device *cldev,
 	}
 
 	component_match_add_typed(&cldev->dev, &master_match,
-				  mei_gsc_proxy_component_match, cldev->dev.parent);
+				  mei_gsc_proxy_component_match, NULL);
 	if (IS_ERR_OR_NULL(master_match)) {
 		ret = -ENOMEM;
 		goto err_exit;
Signature · 1 line
2.25.1
#3 lore raw
In reply to Jonathan Cavitt

too late. These patches are already applied in topic/core-for-CI.

Quoted 7 lines · Jonathan Cavitt

From: Alexander Usyskin <[email protected]>

Add Arrow Lake S device id.

For all patches you submit you should add your s-o-b. And also see the rules for patches in topic/core-for-CI:

https://drm.pages.freedesktop.org/maintainer-tools/drm-tip.html#hotfixes-in-topic-core-for-ci

The patches I applied yesterday already follows those rules. See commits:

240b5555409fc mei: gsc_proxy: match component when GSC is on different bus 18f87660e5bfb mei: me: add arrow lake point H DID 0dc48377bbcf3 mei: me: add arrow lake point S DID

Lucas De Marchi

#4 lore raw

✗ Fi.CI.BUILD: failure for series starting with [topic/core-for-CI,1/3] mei: me: add arrow lake point S DID

In reply to Jonathan Cavitt
== Series Details ==

== Series Details ==

Series: series starting with [topic/core-for-CI,1/3] mei: me: add arrow lake point S DID
URL : https://patchwork.freedesktop.org/series/130513/
State : failure

== Summary ==

Error: patch https://patchwork.freedesktop.org/api/1.0/series/130513/revisions/1/mbox/ not applied
Applying: mei: me: add arrow lake point S DID
Using index info to reconstruct a base tree...
M drivers/misc/mei/hw-me-regs.h
M drivers/misc/mei/pci-me.c
Falling back to patching base and 3-way merge...
Auto-merging drivers/misc/mei/pci-me.c
CONFLICT (content): Merge conflict in drivers/misc/mei/pci-me.c
Auto-merging drivers/misc/mei/hw-me-regs.h
CONFLICT (content): Merge conflict in drivers/misc/mei/hw-me-regs.h
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 mei: me: add arrow lake point S DID
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Build failed, no error log produced