From: Yige Jiang <yigejiang86@gmail.com>
To: Suzuki K Poulose <suzuki.poulose@arm.com>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Yige Jiang <yigejiang86@gmail.com>,
Mike Leach <mike.leach@arm.com>,
James Clark <james.clark@linaro.org>, Leo Yan <leo.yan@arm.com>,
coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: [PATCH v3 0/3] coresight: Fix fwnode reference leaks on probe failure
Date: Wed, 2 Dec 2026 18:09:17 +0800 [thread overview]
Message-ID: <20261202-coresight-fwnode-v3-0-0a96d911fa55@gmail.com> (raw)
The CoreSight core releases the destination fwnode references acquired
during platform data lookup when registration fails or the device is
unregistered. Move the lookups in TPDM, TNOC and TPDA after the other
probe steps that can fail. TNOC and TPDA also return the trace IDs they
allocated if lookup or registration fails.
Changes in v3:
- Group the three patches in one thread following James Clark's feedback.
No code changes from v2.
- Review: https://lore.kernel.org/r/b83bfb3d-d654-4b99-8ed5-ddbbf90fa6e1@linaro.org
- v2 was posted as three separate threads:
https://lore.kernel.org/r/20261126-coresight-v2-58e559131f2f@gmail.com
https://lore.kernel.org/r/20261126-coresight-v2-9e483a5f35a7@gmail.com
https://lore.kernel.org/r/20261126-coresight-v2-e1077abdea61@gmail.com
Changes in v2:
- Rebase the TPDM fix on the CoreSight next tree.
- Add separate TNOC and TPDA fixes following the review of v1.
- v1: https://lore.kernel.org/all/rc-b1-20261110-vc-178-2d9055f946c8@gmail.com/
Testing on the v2 code: the baseline and patched TPDM, TNOC and TPDA
objects built on arm64 with GCC 14.2.0 and W=1, without warnings.
No hardware or runtime tests were performed.
Yige Jiang (3):
coresight: tpdm: Fix fwnode reference leak on probe failure
coresight: tnoc: Fix fwnode reference leak on probe failure
coresight: tpda: Fix fwnode reference leak on probe failure
drivers/hwtracing/coresight/coresight-tnoc.c | 22 +++++++++++++--------
drivers/hwtracing/coresight/coresight-tpda.c | 29 ++++++++++++++++++----------
drivers/hwtracing/coresight/coresight-tpdm.c | 11 ++++++-----
3 files changed, 39 insertions(+), 23 deletions(-)
base-commit: b7d7462c7f973b65de511db6bebb99fb29946ed8
next reply other threads:[~2026-12-02 10:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 10:09 Yige Jiang [this message]
2026-12-02 10:09 ` [PATCH v3 1/3] coresight: tpdm: Fix fwnode reference leak " Yige Jiang
2026-12-02 10:09 ` [PATCH v3 2/3] coresight: tnoc: " Yige Jiang
2026-12-02 10:09 ` [PATCH v3 3/3] coresight: tpda: " Yige Jiang
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=20261202-coresight-fwnode-v3-0-0a96d911fa55@gmail.com \
--to=yigejiang86@gmail.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=coresight@lists.linaro.org \
--cc=james.clark@linaro.org \
--cc=leo.yan@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mike.leach@arm.com \
--cc=suzuki.poulose@arm.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
all inboxes | Powered by JetHome®