From: sashiko-bot@kernel.org
To: "Tomeu Vizoso" <tomeu.vizoso@gmail.com>
Cc: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org,
robh@kernel.org, conor+dt@kernel.org, media-ci@linuxtv.org
Subject: Re: [PATCH v3 03/16] dt-bindings: remoteproc: k3-dsp: Allow referencing the timers' power domains
Date: Fri, 23 Oct 2026 06:48:38 +0000 [thread overview]
Message-ID: <sashiko-outbox-182363@kernel.org> (raw)
In-Reply-To: <20261023-thames-v3-3-3ab40aa17157@tomeuvizoso.net>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dt-bindings: remoteproc: k3-dsp: misuse of power-domains for external timers
--
commit aa9adcac4a1bc9840a117c81a03e4ac0dade71bd
Author: Tomeu Vizoso <tomeu.vizoso@gmail.com>
dt-bindings: remoteproc: k3-dsp: Allow referencing the timers' power domains
This commit adds optional power-domains and power-domain-names properties
to the TI K3 DSP remoteproc binding so a client driver can hold the power
domains of two SoC timers used by the running firmware.
> diff --git a/Documentation/devicetree/bindings/remoteproc/ti,k3-dsp-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/ti,k3-dsp-rproc.yaml
> index d6319c8e96f8c..80eaef0a19b8d 100644
> --- a/Documentation/devicetree/bindings/remoteproc/ti,k3-dsp-rproc.yaml
> +++ b/Documentation/devicetree/bindings/remoteproc/ti,k3-dsp-rproc.yaml
> @@ -76,6 +76,23 @@ properties:
> # Optional properties:
> # --------------------
>
> + power-domains:
> + description: |
> + Power domains of the SoC timers the running firmware ticks on and
> + times its work out with. The firmware programs these timers itself
> + and makes no power request for them, and the timers' own nodes are
> + reserved for it, so nothing else requests their power; a client
> + driver of the firmware holds them on while it drives the processor.
> + The processor's own power is managed through ti,sci-dev-id, not here.
> + items:
> + - description: power domain of the first timer
> + - description: power domain of the second timer
> +
> + power-domain-names:
> + items:
> + - const: timer1
> + - const: timer2
[Severity: Medium]
Should the standard power-domains property on the DSP node be used to
describe the power domains of external SoC timer peripherals rather than
the DSP device's own power domain?
In device tree bindings, power-domains on a device node specifies the power
domain(s) to which that device itself belongs. On TI K3 SoCs, the timer
peripherals already have their own device tree nodes (such as main_timer1
and main_timer2 in arch/arm64/boot/dts/ti/k3-am62p-j722s-common-main.dtsi)
which declare their own power-domains, clocks, and assigned-clocks.
Duplicating the timers' power-domains phandles onto the DSP node prevents
the binding from using power-domains for the processor's own power domain
(as done in ti,k3-r5f-rproc.yaml) and encodes a firmware-specific
workaround instead of referencing the timer nodes via phandles (similar to
ti,timers in ti,omap-remoteproc.yaml).
Additionally, requiring two fixed entries (timer1 and timer2) per DSP node
even when a single core only drives one timer appears to be shaped around
Linux's genpd_dev_pm_attach() behavior: as noted in the device tree patch
(arch/arm64/boot/dts/ti/k3-j722s-ti-ipc-firmware.dtsi), specifying two
entries keeps the platform bus from automatically attaching a single domain
to the K3 remoteproc device during platform_probe(), which would otherwise
set core->dev->pm_domain and cause dev_pm_domain_attach_list() in
thames_core_get_timers() (drivers/accel/thames/thames_core.c) to fail with
-EEXIST.
Could the binding reference the timer nodes via a phandle property instead
of repurposing power-domains on the DSP node around Linux genpd attachment
semantics?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261023-thames-v3-0-3ab40aa17157@tomeuvizoso.net?part=3
next prev parent reply other threads:[~2026-10-23 6:48 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-23 6:39 [PATCH v3 00/16] New DRM accel driver for Texas Instruments' C7x DSPs Tomeu Vizoso
2026-10-23 6:39 ` [PATCH v3 01/16] dt-bindings: remoteproc: k3-dsp: Add the L2 auxiliary and DRU regions Tomeu Vizoso
2026-10-23 6:39 ` [PATCH v3 02/16] dt-bindings: remoteproc: k3-dsp: Allow a second sub-mailbox Tomeu Vizoso
2026-10-26 7:49 ` Krzysztof Kozlowski
2026-10-26 7:49 ` Krzysztof Kozlowski
2026-10-23 6:39 ` [PATCH v3 03/16] dt-bindings: remoteproc: k3-dsp: Allow referencing the timers' power domains Tomeu Vizoso
2026-10-23 6:48 ` sashiko-bot [this message]
2026-10-26 7:51 ` Krzysztof Kozlowski
2026-10-26 7:51 ` Krzysztof Kozlowski
2026-10-23 6:39 ` [PATCH v3 04/16] accel/thames: Add header with IPC definitions Tomeu Vizoso
2026-10-23 6:39 ` [PATCH v3 05/16] accel/thames: Add driver for the C7x DSPs in TI SoCs Tomeu Vizoso
2026-10-23 7:37 ` sashiko-bot
2026-10-23 6:39 ` [PATCH v3 06/16] accel/thames: Create a context per client on device open Tomeu Vizoso
2026-10-23 7:27 ` sashiko-bot
2026-10-23 6:39 ` [PATCH v3 07/16] accel/thames: Add IOCTLs for BO creation and mapping Tomeu Vizoso
2026-10-23 7:40 ` sashiko-bot
2026-10-26 10:07 ` Christian König
2026-10-23 6:39 ` [PATCH v3 08/16] accel/thames: Add support for submitting DMA operations Tomeu Vizoso
2026-10-23 7:16 ` sashiko-bot
2026-10-23 6:39 ` [PATCH v3 09/16] accel/thames: Add IOCTLs for job creation and submission Tomeu Vizoso
2026-10-26 10:10 ` Christian König
2026-10-23 6:39 ` [PATCH v3 10/16] accel/thames: Recover from faults and timeouts Tomeu Vizoso
2026-10-23 6:39 ` [PATCH v3 11/16] accel/thames: Add IOCTL for memory synchronization Tomeu Vizoso
2026-10-23 6:53 ` sashiko-bot
2026-10-23 6:39 ` [PATCH v3 12/16] accel/thames: Install memory mappings populated and dirty Tomeu Vizoso
2026-10-23 7:34 ` sashiko-bot
2026-10-23 6:39 ` [PATCH v3 13/16] Documentation: accel/thames: Add initial docs Tomeu Vizoso
2026-10-23 6:39 ` [PATCH v3 14/16] arm64: dts: ti: k3-j722s: Add the AUX L2 SRAM and DRU regions Tomeu Vizoso
2026-10-23 6:39 ` [PATCH v3 15/16] arm64: dts: ti: k3-j722s: Add second submailbox to the C7x cores Tomeu Vizoso
2026-10-23 6:39 ` [PATCH v3 16/16] arm64: dts: ti: k3-j722s: Reference the power domains of the C7x timers Tomeu Vizoso
2026-10-23 7:17 ` 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=sashiko-outbox-182363@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=media-ci@linuxtv.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=tomeu.vizoso@gmail.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.