From: sashiko-bot@kernel.org
To: "Zack McKevitt" <zachary.mckevitt@oss.qualcomm.com>,
dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v5 4/4] accel/qaic: Add callbacks for DRM RAS netlink telemetry
Date: Wed, 25 Nov 2026 18:03:35 +0000 [thread overview]
Message-ID: <sashiko-outbox-233897@kernel.org> (raw)
In-Reply-To: <20261124180137.616249-5-zachary.mckevitt@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] accel/qaic: Kconfig depends on default-n DRM_RAS despite
stubbed API
- [Low] accel/qaic: ignored qaic_telemetry_register() failure in
qaic_init()
--
commit 8ce3ab45dd93c62906cce075f4239c57f0d04fc1
Author: Zack McKevitt <zachary.mckevitt@oss.qualcomm.com>
accel/qaic: Add callbacks for DRM RAS netlink telemetry
This commit adds MHI telemetry channel support for QAIC devices and
registers a DRM RAS telemetry node to expose device telemetry fields over
netlink.
> diff --git a/drivers/accel/qaic/Kconfig b/drivers/accel/qaic/Kconfig
> index 116e42d152ca8..6a07db0c402e7 100644
> --- a/drivers/accel/qaic/Kconfig
> +++ b/drivers/accel/qaic/Kconfig
> @@ -8,6 +8,7 @@ config DRM_ACCEL_QAIC
> depends on DRM_ACCEL
> depends on PCI && HAS_IOMEM
> depends on MHI_BUS
> + depends on DRM_RAS
> select CRC32
> select WANT_DEV_COREDUMP
> help
[Severity: Medium]
Does DRM_ACCEL_QAIC need to depend on DRM_RAS?
DRM_RAS defaults to n (and depends on NET), so adding this dependency
causes existing configs with CONFIG_DRM_ACCEL_QAIC enabled to silently
drop the driver during olddefconfig unless CONFIG_DRM_RAS is also enabled.
Since include/drm/drm_ras.h provides no-op stubs for
drm_ras_node_register() and drm_ras_node_unregister() when CONFIG_DRM_RAS
is disabled, qaic_telemetry.c can build without this dependency.
[ ... ]
> diff --git a/drivers/accel/qaic/qaic_drv.c b/drivers/accel/qaic/qaic_drv.c
> index 90c0d31e414ae..6d185151a0a69 100644
> --- a/drivers/accel/qaic/qaic_drv.c
> +++ b/drivers/accel/qaic/qaic_drv.c
[ ... ]
> @@ -854,12 +863,17 @@ static int __init qaic_init(void)
> ret = qaic_ras_register();
> if (ret)
> pr_debug("qaic: qaic_ras_register failed %d\n", ret);
> +
> ret = qaic_ssr_register();
> if (ret) {
> pr_debug("qaic: qaic_ssr_register failed %d\n", ret);
> goto free_bootlog;
> }
>
> + ret = qaic_telemetry_register();
> + if (ret)
> + pr_debug("qaic: qaic_telemetry_register failed %d\n", ret);
> +
> return 0;
>
> free_bootlog:
> @@ -889,6 +903,7 @@ static void __exit qaic_exit(void)
> * reinitializing the link_up state after the cleanup is done.
> */
> link_up = true;
> + qaic_telemetry_unregister();
> qaic_ssr_unregister();
> qaic_ras_unregister();
> qaic_bootlog_unregister();
[Severity: Low]
If qaic_telemetry_register() fails in qaic_init(), module load still
succeeds and leaves qaic_telemetry_mhi_driver unregistered. On module
unload, qaic_exit() unconditionally calls qaic_telemetry_unregister() ->
mhi_driver_unregister() -> driver_unregister(), which hits
WARN(1, "Unexpected driver unregister!\n") because drv->p is NULL. Should
qaic_init() unwind and return the error when qaic_telemetry_register()
fails?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261124180137.616249-1-zachary.mckevitt@oss.qualcomm.com?part=4
next prev parent reply other threads:[~2026-11-25 18:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 18:01 [PATCH v5 0/4] Extend drm_ras for qaic telemetry Zack McKevitt
2026-11-24 18:01 ` [PATCH v5 1/4] drm/drm_ras: Reference-count nodes across netlink handlers Zack McKevitt
2026-11-24 18:01 ` [PATCH v5 2/4] drm/drm_ras: Remove admin-perm flag from list-nodes operation Zack McKevitt
2026-11-24 18:01 ` [PATCH v5 3/4] drm/drm_ras: Extend DRM RAS interface to include telemetry nodes Zack McKevitt
2026-11-24 18:01 ` [PATCH v5 4/4] accel/qaic: Add callbacks for DRM RAS netlink telemetry Zack McKevitt
2026-11-25 18:03 ` sashiko-bot [this message]
2026-11-24 20:19 ` [PATCH v5 0/4] Extend drm_ras for qaic telemetry Rodrigo Vivi
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=sashiko-outbox-233897@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=zachary.mckevitt@oss.qualcomm.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.