Devicetree
 help / color / mirror / Atom feed
From: Alessio Belle <Alessio.Belle@imgtec.com>
To: "ikerpedrosam@gmail.com" <ikerpedrosam@gmail.com>
Cc: "alex@ghiti.fr" <alex@ghiti.fr>,
	Luigi Santivetti <Luigi.Santivetti@imgtec.com>,
	"robh@kernel.org" <robh@kernel.org>,
	"tzimmermann@suse.de" <tzimmermann@suse.de>,
	"simona@ffwll.ch" <simona@ffwll.ch>,
	"imagination@lists.freedesktop.org"
	<imagination@lists.freedesktop.org>,
	"mripard@kernel.org" <mripard@kernel.org>,
	"pjw@kernel.org" <pjw@kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>,
	"maarten.lankhorst@linux.intel.com"
	<maarten.lankhorst@linux.intel.com>,
	"troy.mitchell@linux.spacemit.com"
	<troy.mitchell@linux.spacemit.com>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"palmer@dabbelt.com" <palmer@dabbelt.com>,
	"krzk+dt@kernel.org" <krzk+dt@kernel.org>,
	"spacemit@lists.linux.dev" <spacemit@lists.linux.dev>,
	"dlan@kernel.org" <dlan@kernel.org>,
	"conor+dt@kernel.org" <conor+dt@kernel.org>,
	"airlied@gmail.com" <airlied@gmail.com>,
	"linux-riscv@lists.infradead.org"
	<linux-riscv@lists.infradead.org>,
	"aou@eecs.berkeley.edu" <aou@eecs.berkeley.edu>
Subject: Re: [PATCH v2] riscv: dts: spacemit: k1: add PowerVR GPU device node
Date: Thu, 3 Dec 2026 17:15:37 +0000	[thread overview]
Message-ID: <d148927af0eecb9cbe564f53fbccfd9b0980daea.camel@imgtec.com> (raw)
In-Reply-To: <20261118-orangepi-gpu-v2-1-f68676f844eb@gmail.com>

Hi Iker,

On Wed, 2026-11-18 at 19:59 +0100, Iker Pedrosa wrote:
> Add PowerVR Rogue GPU device node for SpacemiT K1 SoC.
> 
> The GPU is integrated within the SoC and enabled by default.
> 
> Signed-off-by: Iker Pedrosa <ikerpedrosam@gmail.com>
> ---
> Add PowerVR Rogue GPU (BXE-2-32) device tree node for SpacemiT K1 SoC.
> 
> This series depends on:
> - Yixun Lan's power domain series [1], which provides the genpd-based
>   GPU power domain driver required for proper power sequencing.
> - Baihui Liang's dt-bindings patch [2], which adds the spacemit,k1-gpu
>   compatible string to the img,powervr-rogue binding.
> 
> The GPU firmware is not yet available upstream. A copy can be found
> at [3].
> 
> With this series applied on top of [1] and [2], the full GPU bring-up
> path works end-to-end on hardware:
> - Power domain: GPU power island on/off via APMU
> - Clock: GPU clock enabled/gated through CCU
> - Reset: GPU reset line deasserted
> - Firmware: PowerVR RISC-V firmware loads and signals ready
> - DMA: dma-ranges correctly maps CPU-to-GPU physical addresses
> - DRM: kernel exposes /dev/dri/card0 and /dev/dri/renderD128
> - IRQ: GPU interrupt registered, firmware watchdog running
> 
> Userspace rendering requires Mesa's PowerVR Vulkan driver
> (imagination-experimental).

Is this Mesa version < 25.3.0 and if so, any particular reason for using that
version (one that still has the -experimental tag)?

Did you only do lower level testing like above, or also tried running complex
applications and possibly Vulkan CTS?
Do you have a vulkaninfo --summary to share?

Thanks,
Alessio

> 
> [1] https://lore.kernel.org/linux-riscv/20261008-04-k3-pm-support-v2-0-6f778a53dd2d@kernel.org/
> [2] https://lore.kernel.org/linux-riscv/20261015-spacemit-gpu-binding-v1-1-a7a23c7e7788@linux.spacemit.com/
> [3] https://gitlab.freedesktop.org/imagination/linux-firmware/-/blob/powervr/powervr/rogue_36.29.52.182_v1.fw
> ---
> Changes in v2:
> - Removed board-specific enablement (GPU now enabled by default in SoC)
> - Simplified commit message as per maintainer feedback
> - Dropped redundant status = "disabled" from GPU node
> - Link to v1: https://lore.kernel.org/r/20261015-orangepi-gpu-v1-0-03566a615660@gmail.com
> ---
>  arch/riscv/boot/dts/spacemit/k1.dtsi | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/arch/riscv/boot/dts/spacemit/k1.dtsi b/arch/riscv/boot/dts/spacemit/k1.dtsi
> index 3fabfd34114b..7f2573d869ca 100644
> --- a/arch/riscv/boot/dts/spacemit/k1.dtsi
> +++ b/arch/riscv/boot/dts/spacemit/k1.dtsi
> @@ -5,6 +5,7 @@
>  
>  #include <dt-bindings/clock/spacemit,k1-syscon.h>
>  #include <dt-bindings/phy/phy.h>
> +#include <dt-bindings/power/spacemit,k1-power.h>
>  
>  #include "k1-pdma.h"
>  
> @@ -1119,6 +1120,16 @@ multimedia-bus {
>  			#size-cells = <2>;
>  			dma-ranges = <0x0 0x00000000 0x0 0x00000000 0x0 0x80000000>,
>  				     <0x0 0x80000000 0x1 0x00000000 0x3 0x80000000>;
> +
> +			gpu: gpu@cac00000 {
> +				compatible = "spacemit,k1-gpu", "img,img-bxe-2-32", "img,img-rogue";
> +				reg = <0x0 0xcac00000 0x0 0x80000>;
> +				interrupts = <75>;
> +				clocks = <&syscon_apmu CLK_GPU>;
> +				clock-names = "core";
> +				resets = <&syscon_apmu RESET_GPU>;
> +				power-domains = <&syscon_apmu K1_PMDOMAIN_GPU>;
> +			};
>  		};
>  
>  		network-bus {
> 
> ---
> base-commit: be95fa81c04dd67616faaa2872babb9ac39d4251
> change-id: 20260413-orangepi-gpu-02d839d6506f
> 
> Best regards,


      parent reply	other threads:[~2026-12-03 17:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-18 18:59 [PATCH v2] riscv: dts: spacemit: k1: add PowerVR GPU device node Iker Pedrosa
2026-11-18 19:09 ` sashiko-bot
2026-11-23 18:19   ` Iker Pedrosa
2026-11-22 18:44 ` Frédéric Mahé
2026-11-23 18:41   ` Iker Pedrosa
2026-11-27  5:59     ` Troy Mitchell
2026-11-26 12:53 ` Yixun Lan
2026-12-03 17:15 ` Alessio Belle [this message]

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=d148927af0eecb9cbe564f53fbccfd9b0980daea.camel@imgtec.com \
    --to=alessio.belle@imgtec.com \
    --cc=Luigi.Santivetti@imgtec.com \
    --cc=airlied@gmail.com \
    --cc=alex@ghiti.fr \
    --cc=aou@eecs.berkeley.edu \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dlan@kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=ikerpedrosam@gmail.com \
    --cc=imagination@lists.freedesktop.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=palmer@dabbelt.com \
    --cc=pjw@kernel.org \
    --cc=robh@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=spacemit@lists.linux.dev \
    --cc=troy.mitchell@linux.spacemit.com \
    --cc=tzimmermann@suse.de \
    /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