dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jiaxing Hu <gahing@gahingwoo.com>
To: nicolas@ndufresne.ca
Cc: royalnet026@gmail.com, tomeu@tomeuvizoso.net,
	linux-rockchip@lists.infradead.org,
	dri-devel@lists.freedesktop.org
Subject: Re: [RFC] accel/rocket: DVFS on RK3588 - a hardware constraint, and some numbers
Date: Fri,  4 Sep 2026 23:19:02 +1200	[thread overview]
Message-ID: <20260904111902.87135-1-gahing@gahingwoo.com> (raw)
In-Reply-To: <c495dae1976dab842d77f4a4a142217eb77b6fb7.camel@ndufresne.ca>

Hi Nicolas,

> In the DTS, I've removed the assigned clock/freq, to me keeping it
> would be toward forward compatibility, and is fine, but I don't
> always fully grasp all the subtil trap of DT compatibility

A data point from RK3576, where one clock feeds both NPU cores and the
convolution buffer they share.

With no assigned rate the block comes up at 786.432 MHz, and no board
sets vdd_npu_s0, so it runs on whatever the PMIC boots with: 750 mV
here, where Rockchip's own table asks 800 mV of its 800 MHz step. One
core is exact there. Two cores with jobs in flight at the same time
write single words wrong. A pass is 5400 rows of a batched matrix
multiply, each row against the same multiply done one row at a time:

  786 MHz, 750 mV    11 to 25 wrong rows a pass
  594 MHz, 750 mV    0, 0, 0, 0
  786 MHz, 800 mV    0, 0, 0, 0
  786 MHz, 850 mV    0, 0, 0, 0

So the assigned rate is load bearing until something else carries the
rail. If your OPP table carries it, dropping the rate is better than
keeping it. If the driver may also run with no OPP table, which is
what you say it should do, then the DTS still needs a rate that is
correct at the voltage the board boots with.

Does that hold on RK3588, where the three cores share one clock too?

Cheers,
Jiaxing

  parent reply	other threads:[~2026-09-04 11:19 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-01 13:16 [RFC] accel/rocket: DVFS on RK3588 - a hardware constraint, and some numbers Igor Paunovic
2026-08-01 19:32 ` Jiaxing Hu
2026-08-02 12:04   ` Igor Paunovic
2026-08-15 18:24     ` Tomeu Vizoso
2026-08-17 18:22 ` Nicolas Dufresne
2026-08-18  7:27   ` Igor Paunovic
2026-08-18 12:12     ` Jonas Karlman
2026-08-18 12:30       ` Jonas Karlman
2026-08-19  5:52         ` Igor Paunovic
2026-08-19  9:40           ` Jonas Karlman
2026-08-19 12:59             ` Igor Paunovic
2026-08-19 16:20               ` Jonas Karlman
2026-08-19 18:48                 ` Igor Paunovic
2026-08-19 20:07                   ` Hüseyin BIYIK
2026-09-02 11:04                     ` Igor Paunovic
2026-09-03  9:16                       ` Igor Paunovic
     [not found]                         ` <2f88072c-6aa3-4294-a35d-722d1c7a405c@email.android.com>
2026-09-03 18:51                           ` Igor Paunovic
2026-09-04 11:08                         ` Jiaxing Hu
2026-09-04 12:46                           ` Igor Paunovic
2026-09-05  5:13                             ` Jiaxing Hu
2026-09-05  7:01                               ` Igor Paunovic
2026-08-19 18:47             ` Nicolas Dufresne
2026-09-04 11:19   ` Jiaxing Hu [this message]
     [not found] <DKDOBW9CJ2Y3.10EEIZDTXPYJZ@cknow-tech.com>
2026-08-01 14:40 ` Igor Paunovic
2026-08-01 16:29   ` Diederik de Haas

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=20260904111902.87135-1-gahing@gahingwoo.com \
    --to=gahing@gahingwoo.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=nicolas@ndufresne.ca \
    --cc=royalnet026@gmail.com \
    --cc=tomeu@tomeuvizoso.net \
    /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