dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jiaxing Hu <gahing@gahingwoo.com>
To: royalnet026@gmail.com
Cc: 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: Sat,  5 Sep 2026 17:13:23 +1200	[thread overview]
Message-ID: <20260905051323.189794-1-gahing@gahingwoo.com> (raw)
In-Reply-To: <20260904124659.25971-1-royalnet026@gmail.com>

Hi Igor,

> You are not in the delivery path of my series, so by
> submitting-patches.rst it does not belong on that copy and I would
> drop it there - your Reviewed-by is the credit that matters and it
> stays, on both copies.

Drop it. A Signed-off-by says I passed the patch along, and on your
copy I did not. Reviewed-by is right on both, and the copy in my series
keeps my sign-off because there I did.

> You may want it on RK3576 too, where the same code runs with two
> cores.

Tested on a ROCK 4D, two cores, on next-20260730 with my series and two
patches of my own on top. Unbinding both cores in bind order and binding
them again, twice over:

  bound: 0            both gone, the device torn down
  bound: 2            core 0 and core 1 again
  bound: 0
  bound: 2            core 0 and core 1 again

Without your patch the second unbind never happens and the numbering
walks off the end; with it the count reaches zero and a rebind starts
clean. Nine models then decode with their batched prompt identical to
their token loop.

  Tested-by: Jiaxing Hu <gahing@gahingwoo.com> # RK3576, two cores

On my kernel the first unbind Oopsed even with your patch, and that one
is mine. A patch of mine that keeps the IOMMU domain attached across
jobs detaches it in rocket_job_fini() through core->iommu_group, and
rocket_core_fini() put that group and cleared the pointer before calling
it.

  pc : mutex_lock+0x20/0x54
  lr : iommu_detach_group+0x20/0x40
  rocket_job_fini+0x30/0x5c
  rocket_core_fini+0x40/0x50
  rocket_remove+0x64/0xac

Mainline and my posted series do not detach there, so neither has this.
I mention it because your patch is what made me run unbind at all, and
it found a bug in my unsent work the same afternoon.

Not the kernel's fault, but it cost me an hour: an accel device takes
the next free minor, so after two rebinds the NPU sat at
/dev/accel/accel2 while my userspace opened accel0 and reported no
hardware.

Three clients bit-exact at 900 and 1000 MHz is the test I was hoping
for, and the aggregate at 2.5x one client is what shows the three cores
really did overlap. Thanks for running it before sending.

Cheers,
Jiaxing

  reply	other threads:[~2026-09-05  5:13 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 [this message]
2026-09-05  7:01                               ` Igor Paunovic
2026-08-19 18:47             ` Nicolas Dufresne
2026-09-04 11:19   ` Jiaxing Hu
     [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=20260905051323.189794-1-gahing@gahingwoo.com \
    --to=gahing@gahingwoo.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-rockchip@lists.infradead.org \
    --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