Hi Marek and Alexander, On 28/02/2025 10:21, Alexander Stein wrote: > Hi Marek, > > Am Donnerstag, 27. Februar 2025, 17:58:08 CET schrieb Marek Vasut: >> The instance of the GPU populated in Freescale i.MX95 is the >> Mali G310, add support for this variant. >> >> Signed-off-by: Marek Vasut <ma...@denx.de> >> --- >> Cc: Boris Brezillon <boris.brezil...@collabora.com> >> Cc: Conor Dooley <conor...@kernel.org> >> Cc: David Airlie <airl...@gmail.com> >> Cc: Fabio Estevam <feste...@gmail.com> >> Cc: Krzysztof Kozlowski <krzk...@kernel.org> >> Cc: Liviu Dudau <liviu.du...@arm.com> >> Cc: Maarten Lankhorst <maarten.lankho...@linux.intel.com> >> Cc: Maxime Ripard <mrip...@kernel.org> >> Cc: Pengutronix Kernel Team <ker...@pengutronix.de> >> Cc: Philipp Zabel <p.za...@pengutronix.de> >> Cc: Rob Herring <r...@kernel.org> >> Cc: Sascha Hauer <s.ha...@pengutronix.de> >> Cc: Sebastian Reichel <s...@kernel.org> >> Cc: Shawn Guo <shawn...@kernel.org> >> Cc: Simona Vetter <sim...@ffwll.ch> >> Cc: Steven Price <steven.pr...@arm.com> >> Cc: Thomas Zimmermann <tzimmerm...@suse.de> >> Cc: devicet...@vger.kernel.org >> Cc: dri-devel@lists.freedesktop.org >> Cc: i...@lists.linux.dev >> Cc: linux-arm-ker...@lists.infradead.org >> --- >> drivers/gpu/drm/panthor/panthor_drv.c | 1 + >> drivers/gpu/drm/panthor/panthor_gpu.c | 1 + >> 2 files changed, 2 insertions(+) >> >> diff --git a/drivers/gpu/drm/panthor/panthor_drv.c >> b/drivers/gpu/drm/panthor/panthor_drv.c >> index 06fe46e320738..2504a456d45c4 100644 >> --- a/drivers/gpu/drm/panthor/panthor_drv.c >> +++ b/drivers/gpu/drm/panthor/panthor_drv.c >> @@ -1591,6 +1591,7 @@ static struct attribute *panthor_attrs[] = { >> ATTRIBUTE_GROUPS(panthor); >> >> static const struct of_device_id dt_match[] = { >> + { .compatible = "fsl,imx95-mali" }, /* G310 */ No sure the comment about G310 is needed.
>> { .compatible = "rockchip,rk3588-mali" }, >> { .compatible = "arm,mali-valhall-csf" }, >> {} >> diff --git a/drivers/gpu/drm/panthor/panthor_gpu.c >> b/drivers/gpu/drm/panthor/panthor_gpu.c >> index 0f07ef7d9aea7..2371ab8e50627 100644 >> --- a/drivers/gpu/drm/panthor/panthor_gpu.c >> +++ b/drivers/gpu/drm/panthor/panthor_gpu.c >> @@ -67,6 +67,7 @@ struct panthor_model { >> } >> >> static const struct panthor_model gpu_models[] = { >> + GPU_MODEL(g310, 0, 0), /* NXP i.MX95 */ We can remove the comment about the SoC. This GPU model could be found in other vendor platforms. > > Are you sure about 0, 0? With this I get >> [drm] mali-unknown id 0xac74 major 0x0 minor 0x0 status 0x1 > > Using GPU_MODEL(g310, 10, 4) I get: >> [drm] mali-g310 id 0xac74 major 0x0 minor 0x0 status 0x1 I'd agree it should be GPU_MODEL(g310, 10, 4). Unless the GPU version has been changed by the vendor? > Note the output is GPU_VER_MAJOR() but this table is for GPU_ARCH_MAJOR() > (and the corresponding minor). > > Best regards, > Alexander > >> GPU_MODEL(g610, 10, 7), >> {}, >> }; >> > > Kind regards, Florent