From: Soumyadeep Hore <soumyadeep.hore@intel.com>
To: bruce.richardson@intel.com, manoj.kumar.subbarao@intel.com,
aman.deep.singh@intel.com, dev@dpdk.org
Cc: Paul Greenwalt <paul.greenwalt@intel.com>
Subject: [PATCH v1 1/6] net/ice/base: update crash on invalid topology
Date: Tue, 10 Mar 2026 05:52:05 -0400 [thread overview]
Message-ID: <20260310095218.703423-3-soumyadeep.hore@intel.com> (raw)
In-Reply-To: <20260310095218.703423-1-soumyadeep.hore@intel.com>
From: Paul Greenwalt <paul.greenwalt@intel.com>
In some cases, after NVM update finish and triggers EMPR, FW will return
invalid information about Tx Scheduler topology
(in reply to ice_sched_query_res_alloc(), we end up with 0 as a number
children to allocate in 4th layer, then adding 5th layer nodes would
crash).
As in this scenario we need to reboot the platform anyway, it is safe to
just fail building the scheduler tree.
Add a warning, so we will be sure that this was the case.
Signed-off-by: Paul Greenwalt <paul.greenwalt@intel.com>
Signed-off-by: Soumyadeep Hore <soumyadeep.hore@intel.com>
---
drivers/net/intel/ice/base/ice_sched.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/drivers/net/intel/ice/base/ice_sched.c b/drivers/net/intel/ice/base/ice_sched.c
index be9393a7d6..3a0907eda7 100644
--- a/drivers/net/intel/ice/base/ice_sched.c
+++ b/drivers/net/intel/ice/base/ice_sched.c
@@ -174,6 +174,16 @@ ice_sched_add_node(struct ice_port_info *pi, u8 layer,
return ICE_ERR_PARAM;
}
+ /* After NVM update FW will(in some cases) not return proper
+ * topology, bail out early in such cases
+ * (as there is a need of platform reboot anyway).
+ */
+ if (!parent->children) {
+ ice_debug(hw, ICE_DBG_SCHED, "Parent (teid = 0x%x) hasn't prepared to have children, aborting\n",
+ LE32_TO_CPU(info->parent_teid));
+ return ICE_ERR_PARAM;
+ }
+
/* query the current node information from FW before adding it
* to the SW DB
*/
--
2.47.1
next prev parent reply other threads:[~2026-03-09 21:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-10 9:52 [PATCH v1 0/6] Update ICE Base Driver Soumyadeep Hore
2026-03-10 9:52 ` Soumyadeep Hore [this message]
2026-03-10 9:52 ` [PATCH v1 2/6] net/ice/base: resolve comparison-with-wider-type violations Soumyadeep Hore
2026-03-10 9:52 ` [PATCH v1 3/6] net/ice/base: enable LLDP filter control for E830 Soumyadeep Hore
2026-03-10 9:52 ` [PATCH v1 4/6] net/ice/base: support RDMA on 4+ ports of E830 Soumyadeep Hore
2026-03-10 9:52 ` [PATCH v1 5/6] net/ice/base: add pending admin queue events API Soumyadeep Hore
2026-03-10 9:52 ` [PATCH v1 6/6] net/ice/base: fix 'adjust' timer programming for E830 Soumyadeep Hore
2026-03-10 14:08 ` [PATCH v1 0/6] Update ICE Base Driver Bruce Richardson
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=20260310095218.703423-3-soumyadeep.hore@intel.com \
--to=soumyadeep.hore@intel.com \
--cc=aman.deep.singh@intel.com \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=manoj.kumar.subbarao@intel.com \
--cc=paul.greenwalt@intel.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