All of lore.kernel.org
 help / color / mirror / Atom feed
From: Quentin Schulz <quentin.schulz@cherry.de>
To: Trevor Woerner <twoerner@gmail.com>,
	yocto-patches@lists.yoctoproject.org
Subject: Re: [meta-rockchip][PATCH 1/2] kernel: only add the rocket NPU fragment on rk3588s
Date: Fri, 27 Nov 2026 12:52:49 +0100	[thread overview]
Message-ID: <6b21fbb2-cc3f-4553-a6f2-cfb202bdb89e@cherry.de> (raw)
In-Reply-To: <20261127114049.3566943-1-twoerner@gmail.com>

Hi Trevor,

On 11/27/26 12:40 PM, Trevor Woerner wrote:
> The fragment was appended for every rockchip machine, so setting

No? It's clearly only added when you set ENABLE_UPSTREAM_RKNPU boolean. 
Don't set it for SoCs that don't support it?

> ENABLE_UPSTREAM_RKNPU made the kernel config audit warn on all the
> others: the driver only supports RK3588's NPU, and on 32-bit machines it
> cannot be enabled at all. Use the rk3588s override, as the mesa
> PACKAGECONFIG already does.
> 

Mesa probably should be using :rockchip as well. The knob is enough. 
Otherwise every time there'll be a new SoC supported by Rocket, we'll 
need to enable ENABLE_UPSTREAM_RKNPU (or document it's supported) in the 
SoC .inc file, then update linux-rockchip.inc as well as mesa.bbappend 
to add an SoC-specific override, which is totally unnecessary.

The same logic applies to the stateless VPU for example (c.f. 
ENABLE_STATELESS_VPU_GST). We probably also should have a kernel config 
fragment to enable the appropriate stateless video codecs in the kernel 
(hantro, rkvdec, rkvdec2, ...).

> Cc: Quentin Schulz <quentin.schulz@cherry.de>
> AI-Generated: codex/claude-opus 5.5 (xhigh)
> Signed-off-by: Trevor Woerner <twoerner@gmail.com>
> ---
>   recipes-kernel/linux/linux-rockchip.inc | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/recipes-kernel/linux/linux-rockchip.inc b/recipes-kernel/linux/linux-rockchip.inc
> index f91492ee7968..006d9f0ecf14 100644
> --- a/recipes-kernel/linux/linux-rockchip.inc
> +++ b/recipes-kernel/linux/linux-rockchip.inc
> @@ -37,4 +37,4 @@ SRC_URI:append:nanopi-r4s = " file://realtek-r8169.cfg"
>   KERNEL_FEATURES:append:rockchip = " bsp/rockchip/lttng.scc"
>   KERNEL_FEATURES:append:rockchip:arm = " bsp/rockchip/remove-non-rockchip-arch-arm.scc"
>   KERNEL_FEATURES:append:rockchip:aarch64 = " bsp/rockchip/remove-non-rockchip-arch-arm64.scc"
> -KERNEL_FEATURES:append:rockchip = "${@' bsp/rockchip/rocket-npu.scc' if bb.utils.to_boolean(d.getVar('ENABLE_UPSTREAM_RKNPU'), False) else ''}"
> +KERNEL_FEATURES:append:rk3588s = "${@' bsp/rockchip/rocket-npu.scc' if bb.utils.to_boolean(d.getVar('ENABLE_UPSTREAM_RKNPU'), False) else ''}"


  parent reply	other threads:[~2026-11-27 11:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27 11:40 [meta-rockchip][PATCH 1/2] kernel: only add the rocket NPU fragment on rk3588s Trevor Woerner
2026-11-27 11:40 ` [meta-rockchip][PATCH 2/2] kernel: build the rocket NPU driver as a module Trevor Woerner
2026-11-27 12:03   ` Quentin Schulz
2026-12-01 11:49   ` Trevor Woerner
2026-11-27 11:52 ` Quentin Schulz [this message]
2026-11-27 12:11   ` [meta-rockchip][PATCH 1/2] kernel: only add the rocket NPU fragment on rk3588s Trevor Woerner
2026-11-27 12:32     ` [yocto-patches] " Quentin Schulz
2026-12-01 11:47 ` [meta-rockchip][PATCH v2] rknpu: gate the NPU support on a machine feature Trevor Woerner

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=6b21fbb2-cc3f-4553-a6f2-cfb202bdb89e@cherry.de \
    --to=quentin.schulz@cherry.de \
    --cc=twoerner@gmail.com \
    --cc=yocto-patches@lists.yoctoproject.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 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.