]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/panfrost: Add support for AARCH64_4K page table format
authorAriel D'Alessandro <ariel.dalessandro@collabora.com>
Mon, 24 Mar 2025 18:57:59 +0000 (15:57 -0300)
committerSteven Price <steven.price@arm.com>
Mon, 31 Mar 2025 11:12:15 +0000 (12:12 +0100)
commitf49dfccc76fe41d3beee31ead97c4a798b79a615
tree482b8e921e5e35674a026a7d65aefcc85ebc20b0
parentdb599be9f393f74fc437b21d16adc50debd5ad2c
drm/panfrost: Add support for AARCH64_4K page table format

Currently, Panfrost only supports MMU configuration in "LEGACY" (as
Bifrost calls it) mode, a (modified) version of LPAE "Large Physical
Address Extension", which in Linux we've called "mali_lpae".

This commit adds support for conditionally enabling AARCH64_4K page
table format. To achieve that, a "GPU optional quirks" field was added
to `struct panfrost_features` with the related flag.

Note that, in order to enable AARCH64_4K mode, the GPU variant must have
the HW_FEATURE_AARCH64_MMU feature flag present.

Signed-off-by: Ariel D'Alessandro <ariel.dalessandro@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Adrián Larumbe <adrian.larumbe@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://lore.kernel.org/r/20250324185801.168664-5-ariel.dalessandro@collabora.com
drivers/gpu/drm/panfrost/panfrost_device.h
drivers/gpu/drm/panfrost/panfrost_mmu.c
drivers/gpu/drm/panfrost/panfrost_regs.h