-
- Downloads
[HACK] arm64: dts: imx95: switch mali to panthor
Use Panthor to handle the Mali GPU. This also adds some changes
to the panthor driver to handle i.MX95 specific power management:
1. There is a clock APB. Somehow this only exists in the Variscite
tree. The i.MX95 kernel tree from NXP itself does not have it.
But the vendor kernel instead has a second power domain, which
does not exist in the Variscite tree. I'm not sure if the APB
clock requires any frequency changes from devfreq, so for now
I disabled any OPP entries except the default one.
2. The i.MX95 has a second IO memory range related to the GPU,
which is needed to power it on. It's unnamed in the Variscite
kernel tree, but the NXP kernel has a name: "gpumix_blk_ctrl".
It is absolutely mandatory to write a 1 at offset 0x8 in that
memory range to get the GPU powered on. Otherwise acessing the
GPU IO memory range will stall the full system. I'm not sure
if this write needs to be done on any runtime resume, or just
once during system powerup. For now this gets the driver
probing.
Signed-off-by:
Sebastian Reichel <sebastian.reichel@collabora.com>
Showing
- arch/arm64/boot/dts/freescale/imx95.dtsi 6 additions, 7 deletionsarch/arm64/boot/dts/freescale/imx95.dtsi
- drivers/gpu/drm/panthor/panthor_device.c 31 additions, 1 deletiondrivers/gpu/drm/panthor/panthor_device.c
- drivers/gpu/drm/panthor/panthor_device.h 6 additions, 0 deletionsdrivers/gpu/drm/panthor/panthor_device.h
Please register or sign in to comment