All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net: ipa: Add IPA_MEM_STATS_DROP_MODEM memory region
@ 2026-09-09  3:07 Esteban Urrutia
  2026-09-10  3:09 ` netdev-bot+sashiko
  0 siblings, 1 reply; 2+ messages in thread
From: Esteban Urrutia @ 2026-09-09  3:07 UTC (permalink / raw)
  To: Alex Elder, Andrew Lunn, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni
  Cc: Nazar Kompanets, netdev, linux-kernel, phone-devel,
	Esteban Urrutia

Add this memory region which is used in IPA v5.0 and higher.

Link: https://github.com/LineageOS/android_kernel_qcom_sm8450-modules/commit/fc71d0972a2453cc29f873d723a355a902c6d69c
Co-developed-by: Nazar Kompanets <xlie7669@gmail.com>
Signed-off-by: Nazar Kompanets <xlie7669@gmail.com>
Signed-off-by: Esteban Urrutia <esteuwu@proton.me>
---
From IPA v5.0 onwards, two memory regions for drop stats exist: one for
the AP (that is, the driver) and one for the modem (Q6).
This patch declares this memory region and only allows its presence if
the IPA version is >=5.0.
---
 drivers/net/ipa/ipa_mem.c | 1 +
 drivers/net/ipa/ipa_mem.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/drivers/net/ipa/ipa_mem.c b/drivers/net/ipa/ipa_mem.c
index 078d32a18dbf..3000aaa24530 100644
--- a/drivers/net/ipa/ipa_mem.c
+++ b/drivers/net/ipa/ipa_mem.c
@@ -166,6 +166,7 @@ static bool ipa_mem_id_valid(struct ipa *ipa, enum ipa_mem_id mem_id)
 			return false;
 		break;
 
+	case IPA_MEM_MODEM_STATS_DROP:
 	case IPA_MEM_AP_V4_FILTER:
 	case IPA_MEM_AP_V6_FILTER:
 		if (version < IPA_VERSION_5_0)
diff --git a/drivers/net/ipa/ipa_mem.h b/drivers/net/ipa/ipa_mem.h
index b25babade787..56703bada07c 100644
--- a/drivers/net/ipa/ipa_mem.h
+++ b/drivers/net/ipa/ipa_mem.h
@@ -68,6 +68,7 @@ enum ipa_mem_id {
 	IPA_MEM_STATS_QUOTA_AP,		/* 0 canaries, optional (IPA v4.0+) */
 	IPA_MEM_STATS_TETHERING,	/* 0 canaries, optional (IPA v4.0+) */
 	IPA_MEM_STATS_DROP,		/* 0 canaries, optional (IPA v4.0+) */
+	IPA_MEM_MODEM_STATS_DROP,	/* 0 canaries, optional (IPA v5.0+) */
 	/* The next 7 filter and route statistics regions are optional */
 	IPA_MEM_STATS_V4_FILTER,	/* 0 canaries (IPA v4.0-v4.2) */
 	IPA_MEM_STATS_V6_FILTER,	/* 0 canaries (IPA v4.0-v4.2) */

---
base-commit: a9d7ced84989ec05be09b4b8428759ef60450a0f
change-id: 20260909-ipa-modem-drop-5fe77241c80f

Best regards,
--  
Esteban Urrutia <esteuwu@proton.me>



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-09-10  3:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-09  3:07 [PATCH] net: ipa: Add IPA_MEM_STATS_DROP_MODEM memory region Esteban Urrutia
2026-09-10  3:09 ` netdev-bot+sashiko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.