From: Igor Paunovic <royalnet026@gmail.com>
To: ZhaoJinming <zhaojinming@uniontech.com>
Cc: Tomeu Vizoso <tomeu@tomeuvizoso.net>,
dri-devel@lists.freedesktop.org,
Igor Paunovic <royalnet026@gmail.com>
Subject: Re: [PATCH v6 2/2] accel/rocket: Fix iommu_group leak and unsafe IRQ register access
Date: Wed, 29 Jul 2026 15:18:16 +0200 [thread overview]
Message-ID: <20260729131816.129422-1-royalnet026@gmail.com> (raw)
In-Reply-To: <20260610071045.3414828-2-zhaojinming@uniontech.com>
Hi Zhao,
I ran into the iommu_group leak independently today - Sashiko flagged
it again on my rocket clks fix [1] - and before writing anything I
went through the lists and found your series, so let me try to help
here rather than duplicate it.
I read v6 2/2 and the review history, and I think the patch got stuck
because it bundles two separate things:
(a) the iommu_group leak in rocket_job_handle_irq(). Your fix for
this is exactly right: reusing the cached core->iommu_group
matches what rocket_job_run() and rocket_reset() already do, and
rocket_core_init() sets up the cache before the IRQ handler can
run and only puts it in rocket_core_fini(). That part is a clean
one-liner with Fixes: 0810d5ad88a1.
(b) the runtime-PM guards around the IRQ register accesses - which is
where each revision drew new review comments.
Would you consider respinning just (a) as a standalone v7? I would be
glad to test it on RK3588 (Orange Pi 5 Plus) and reply with Tested-by:
I have a benchmark here that exercises exactly that line ~150 times
per second with bit-exact output verification. (b) can then be
discussed separately without holding the simple fix hostage.
For what it is worth regarding the AI review noise: the leak is real
but bounded - it happens once per job (the intermediate-task IRQs
return before that line), and the group kobject kref saturates with a
one-time WARN rather than overflowing - and the one-line fix cannot
regress the NULL-group case either, since it passes the same value the
current code already passes. So (a) stands on its own merits.
[1] https://lore.kernel.org/linux-rockchip/20260729092939.118779-1-royalnet026@gmail.com/
Thanks,
Igor Paunovic
next prev parent reply other threads:[~2026-07-29 13:18 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-08 8:38 [PATCH] accel/rocket: Fix dma_fence reference leak on error paths in rocket_job_run() ZhaoJinming
2026-06-08 8:50 ` sashiko-bot
2026-06-08 10:00 ` [PATCH v2] accel/rocket: Fix fence leak, runtime PM leak and WARN in rocket_job_run() error paths ZhaoJinming
2026-06-08 10:38 ` sashiko-bot
2026-06-09 9:33 ` [PATCH v3 1/2] accel/rocket: Fix error path handling in rocket_job_run() ZhaoJinming
2026-06-09 9:33 ` [PATCH v3 2/2] accel/rocket: Fix iommu_group leak and unsafe IRQ register access ZhaoJinming
2026-06-09 9:47 ` sashiko-bot
2026-06-10 3:03 ` [PATCH v4 1/2] accel/rocket: Fix error path handling in rocket_job_run() ZhaoJinming
2026-06-10 3:03 ` [PATCH v4 2/2] accel/rocket: Fix iommu_group leak and unsafe IRQ register access ZhaoJinming
2026-06-10 3:14 ` sashiko-bot
2026-06-10 3:25 ` 赵金明
2026-06-10 6:01 ` [PATCH v5 1/2] accel/rocket: Fix error path handling in rocket_job_run() ZhaoJinming
2026-06-10 6:01 ` [PATCH v5 2/2] accel/rocket: Fix iommu_group leak and unsafe IRQ register access ZhaoJinming
2026-06-10 6:19 ` sashiko-bot
2026-06-10 7:08 ` 赵金明
2026-06-10 7:10 ` [PATCH v6 1/2] accel/rocket: Fix error path handling in rocket_job_run() ZhaoJinming
2026-06-10 7:10 ` [PATCH v6 2/2] accel/rocket: Fix iommu_group leak and unsafe IRQ register access ZhaoJinming
2026-06-10 7:24 ` sashiko-bot
2026-07-29 13:18 ` Igor Paunovic [this message]
2026-09-09 11:45 ` Igor Paunovic
2026-06-10 7:24 ` [PATCH v6 1/2] accel/rocket: Fix error path handling in rocket_job_run() sashiko-bot
2026-06-10 17:55 ` Nicolas Dufresne
2026-06-12 9:03 ` 赵金明
2026-06-10 3:19 ` [PATCH v4 " sashiko-bot
2026-06-09 9:50 ` [PATCH v3 " sashiko-bot
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=20260729131816.129422-1-royalnet026@gmail.com \
--to=royalnet026@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=tomeu@tomeuvizoso.net \
--cc=zhaojinming@uniontech.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 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.