dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: support <support@armdesigner.com>
To: archive <archive@mail-archive.com>,
	 dri-devel <dri-devel@lists.freedesktop.org>
Cc: linux-pm <linux-pm@vger.kernel.org>,
	 linux-rockchip <linux-rockchip@lists.infradead.org>
Subject: Re: RK3576: rockchip-pm-domain fw_devlink device-link failures for nested power-domain nodes
Date: Mon, 17 Aug 2026 18:23:28 +0800	[thread overview]
Message-ID: <202608171823281751347@armdesigner.com> (raw)
In-Reply-To: 202608171522158625086@armdesigner.com

[-- Attachment #1: Type: text/plain, Size: 3109 bytes --]

Hi Subair,
We have encountered the same "Failed to create device link (0x180)" warnings across our Rockchip BSP development, not only on RK3576 but also on RK3588 and RK3568. This is not an RK3576-specific DTS issue.
As Sebastian Reichel explained in the accel: rocket NPU thread earlier this year [1], the root cause is a fundamental cyclic dependency in the Rockchip power-controller driver: the PM domain controller may depend on a regulator supplied via I2C, while the I2C controller itself sits in a power domain managed by the same controller. fw_devlink detects this cycle, gives up, and prints the warning.
For the specific pattern you are seeing ― where the failed supplier is "soc" rather than an I2C PMIC ― the mechanism is slightly different. The nested power-domain child nodes (power-domain@0/power-domain@1, etc.) are consumed internally by rockchip_pm_add_one_domain(), but fw_devlink treats them as potential devices. It sees their clocks references and attempts to create proxy device links. Since the child fwnodes have no associated struct device, the links fail and fall back to the parent ("soc").
Regarding your three options:
Option 2 (driver-level fix) is the most practical path. In rockchip_pm_domain_probe(), after parsing each child node via rockchip_pm_add_one_domain(), the driver could mark the child fwnode with FWNODE_FLAG_NOT_DEVICE. This tells fw_devlink to skip link creation for that node and walk up to the parent (power-controller) device instead. Something like:
for_each_available_child_of_node(np, np_child) {
    /* ... existing domain registration ... */
    fwnode_set_flag(&np_child->fwnode, FWNODE_FLAG_NOT_DEVICE);
}

This is targeted, does not affect other platforms, and requires no DT binding changes. The same approach could be applied recursively for nested sub-domains (power-domain@0/power-domain@1).
Option 1 (DT change) would be fragile ― the DT binding already correctly describes the power-domain topology, and adding a non-standard annotation property would be a workaround rather than a fix.
Option 3 (OF/fw_devlink core change) is the proper long-term fix but, as Sebastian noted, requires restructuring how the Rockchip power-controller driver registers its provider. This is unlikely to land in the near term.
In our production BSPs (RK3588/RK3568), we have been treating these warnings as cosmetic ― the affected domains function correctly because rockchip_pd_power() handles dependencies internally. However, on RK3576 with its deeper nesting of power-domain child nodes, the volume of warnings is noticeably larger.
We would be happy to test a patch for option 2 on RK3588, RK3568, and RK3576 hardware if someone picks it up.
[1] https://lists.freedesktop.org/archives/dri-devel/2026-June/573801.html
Best regards,

Owen

*************************************************************
Boardcon Embedded Design
Skype: Boardcon
Tel: +86-13537685878
Fax: 86-755-27571552
Email: support@armdesigner.com
Website: http://armdesigner.com
www.boardcon.com
*************************************************************


[-- Attachment #2: Type: text/html, Size: 11317 bytes --]

  reply	other threads:[~2026-08-19  6:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-17  7:22 RK3576: rockchip-pm-domain fw_devlink device-link failures for nested power-domain nodes support
2026-08-17 10:23 ` support [this message]
2026-08-17 11:17 ` support
     [not found] <33aa66b2-cd6d-416d-b1ef-20cc83e0ee10@hotmail.com>
2026-08-14  7:17 ` Muhammed Subair
  -- strict thread matches above, loose matches on Subject: below --
2026-08-12  5:44 Muhammed Subair

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=202608171823281751347@armdesigner.com \
    --to=support@armdesigner.com \
    --cc=archive@mail-archive.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    /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