From: sashiko-bot@kernel.org
To: "Vishnu Reddy" <busanna.reddy@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, conor+dt@kernel.org, robh@kernel.org,
krzk+dt@kernel.org
Subject: Re: [PATCH v5 02/14] iommu: Add iris-vpu-bus to iommu_buses
Date: Fri, 08 May 2026 23:42:19 +0000 [thread overview]
Message-ID: <20260508234220.A2D7DC2BCB0@smtp.kernel.org> (raw)
In-Reply-To: <20260509-glymur-v5-2-7fbb340c5dbd@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] Improper Abstraction and Architectural Violation
- [Medium] Technical Inaccuracy in Commit Message
--
commit 61e281d574bca776edc5305b6c70e207b44fa3e0
Author: Vikash Garodia <vikash.garodia@oss.qualcomm.com>
iommu: Add iris-vpu-bus to iommu_buses
This commit adds the iris_vpu_bus_type to the iommu_buses array in the core
IOMMU subsystem. This allows the bus to register notifier callbacks for
device addition and removal to set up the IOMMU context.
> Add iris-vpu-bus to iommu_buses[] to register the bus notifier callbacks
> for device add and removal events. This ensures that when a device is
> registered on iris-vpu-bus, the notifier triggers dma_configure(),
> which sets up the IOMMU context for that device.
Is this description of the notifier sequence accurate?
Looking at iommu_bus_notifier() in drivers/iommu/iommu.c, the
BUS_NOTIFY_ADD_DEVICE event actually triggers iommu_probe_device(), which
establishes the IOMMU group.
The dma_configure() routine is invoked separately by the driver core,
specifically via really_probe() in drivers/base/dd.c, during driver binding.
Could the commit message be updated to reflect the actual device model flow?
> diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c
> index fccdbaf6dbd57..903a8bd118be6 100644
> --- a/drivers/iommu/iommu.c
> +++ b/drivers/iommu/iommu.c
[ ... ]
> @@ -179,6 +180,9 @@ static const struct bus_type * const iommu_buses[] = {
> #ifdef CONFIG_CDX_BUS
> &cdx_bus_type,
> #endif
> +#ifdef CONFIG_QCOM_IRIS_VPU_BUS
> + &iris_vpu_bus_type,
> +#endif
> };
>
> /*
Does modifying the generic IOMMU framework's iommu_buses[] array to include
a vendor-specific bus violate abstraction boundaries?
It appears the driver creates a custom bus type (iris_vpu_bus_type) purely
to provide a custom .dma_configure callback for passing an iommu_fid.
Could standard Linux device model methodologies be used instead, such as
instantiating child platform_device nodes or utilizing the auxiliary_bus
framework, to avoid tight coupling between the core IOMMU subsystem and
vendor-specific driver details?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260509-glymur-v5-0-7fbb340c5dbd@oss.qualcomm.com?part=2
next prev parent reply other threads:[~2026-05-08 23:42 UTC|newest]
Thread overview: 74+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-08 18:59 [PATCH v5 00/14] media: iris: Add support for glymur platform Vishnu Reddy
2026-05-08 18:59 ` [PATCH v5 01/14] media: iris: Add iris vpu bus support Vishnu Reddy
2026-05-08 19:16 ` Dmitry Baryshkov
2026-05-09 17:05 ` Vishnu Reddy
2026-05-08 23:20 ` sashiko-bot
2026-05-08 18:59 ` [PATCH v5 02/14] iommu: Add iris-vpu-bus to iommu_buses Vishnu Reddy
2026-05-08 19:16 ` Dmitry Baryshkov
2026-05-08 23:42 ` sashiko-bot [this message]
2026-05-13 13:09 ` Vikash Garodia
2026-05-08 18:59 ` [PATCH v5 03/14] media: iris: Fix VM count passed to firmware Vishnu Reddy
2026-05-08 19:20 ` Dmitry Baryshkov
2026-05-15 11:18 ` Vishnu Reddy
2026-05-08 18:59 ` [PATCH v5 04/14] dt-bindings: media: qcom,venus: Remove clock, power-domain, and iommus from common schema Vishnu Reddy
2026-05-08 19:22 ` Dmitry Baryshkov
2026-05-09 17:04 ` Vishnu Reddy
2026-05-13 13:29 ` Dmitry Baryshkov
2026-05-13 18:54 ` Vishnu Reddy
2026-05-13 19:07 ` Dmitry Baryshkov
2026-05-14 14:34 ` Krzysztof Kozlowski
2026-05-08 18:59 ` [PATCH v5 05/14] dt-bindings: media: qcom,glymur-iris: Add glymur video codec Vishnu Reddy
2026-05-08 18:59 ` [PATCH v5 06/14] media: iris: Add context bank hooks for platform specific initialization Vishnu Reddy
2026-05-09 0:41 ` sashiko-bot
2026-05-08 18:59 ` [PATCH v5 07/14] media: iris: Enable Secure PAS support with IOMMU managed by Linux Vishnu Reddy
2026-05-08 19:05 ` Trilok Soni
2026-05-11 8:06 ` Mukesh Ojha
2026-05-08 20:20 ` Dmitry Baryshkov
2026-05-11 8:01 ` Mukesh Ojha
2026-05-13 13:42 ` Dmitry Baryshkov
2026-05-13 18:54 ` Vishnu Reddy
2026-05-13 19:09 ` Dmitry Baryshkov
2026-05-09 2:05 ` sashiko-bot
2026-05-08 18:59 ` [PATCH v5 08/14] media: iris: Rename clock and power domain macros to use vcodec prefix Vishnu Reddy
2026-05-08 20:22 ` Dmitry Baryshkov
2026-05-09 17:07 ` Vishnu Reddy
2026-05-13 13:47 ` Dmitry Baryshkov
2026-05-13 14:10 ` Vikash Garodia
2026-05-13 14:18 ` Dmitry Baryshkov
2026-05-14 9:15 ` Konrad Dybcio
2026-05-15 10:24 ` Dmitry Baryshkov
2026-05-09 2:18 ` sashiko-bot
2026-05-08 18:59 ` [PATCH v5 09/14] media: iris: Use power domain type to look up pd_devs index Vishnu Reddy
2026-05-08 20:44 ` Dmitry Baryshkov
2026-05-09 17:02 ` Vishnu Reddy
2026-05-08 18:59 ` [PATCH v5 10/14] media: iris: Add power sequence for Glymur Vishnu Reddy
2026-05-08 20:54 ` Dmitry Baryshkov
2026-05-11 16:12 ` Vishnu Reddy
2026-05-13 13:49 ` Dmitry Baryshkov
2026-05-13 18:55 ` Vishnu Reddy
2026-05-09 2:56 ` sashiko-bot
2026-05-08 19:00 ` [PATCH v5 11/14] media: iris: Add support to select core for dual core platforms Vishnu Reddy
2026-05-08 21:00 ` Dmitry Baryshkov
2026-05-11 16:12 ` Vishnu Reddy
2026-05-13 13:51 ` Dmitry Baryshkov
2026-05-13 18:55 ` Vishnu Reddy
2026-05-13 19:10 ` Dmitry Baryshkov
2026-05-13 19:23 ` Vishnu Reddy
2026-05-13 20:51 ` Dmitry Baryshkov
2026-05-09 3:55 ` sashiko-bot
2026-05-08 19:00 ` [PATCH v5 12/14] media: iris: Add platform data for glymur Vishnu Reddy
2026-05-08 21:05 ` Dmitry Baryshkov
2026-05-11 16:15 ` Vishnu Reddy
2026-05-13 14:17 ` Dmitry Baryshkov
2026-05-13 14:30 ` Vikash Garodia
2026-05-13 16:03 ` Dmitry Baryshkov
2026-05-13 17:01 ` Vikash Garodia
2026-05-13 18:50 ` Dmitry Baryshkov
2026-05-09 4:23 ` sashiko-bot
2026-05-08 19:00 ` [PATCH v5 13/14] arm64: dts: qcom: glymur: Add iris video node Vishnu Reddy
2026-05-08 19:27 ` Dmitry Baryshkov
2026-05-09 16:56 ` Vishnu Reddy
2026-05-13 13:55 ` Dmitry Baryshkov
2026-05-13 18:56 ` Vishnu Reddy
2026-05-08 19:00 ` [PATCH v5 14/14] arm64: dts: qcom: glymur-crd: Enable iris video codec node Vishnu Reddy
2026-05-08 23:54 ` Dmitry Baryshkov
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=20260508234220.A2D7DC2BCB0@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=busanna.reddy@oss.qualcomm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=robh@kernel.org \
--cc=sashiko@lists.linux.dev \
/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.