Skip to content

Commit f9c67b0

Browse files
Karunika Choostevenprice-arm
authored andcommitted
drm/panthor: Add support for Mali-Gx20 and Mali-Gx25 GPUs
This patch adds firmware binary and GPU model naming support for Mali-Gx20 and Mali-Gx25 GPUs. Reviewed-by: Steven Price <steven.price@arm.com> Reviewed-by: Liviu Dudau <liviu.dudau@arm.com> Signed-off-by: Karunika Choo <karunika.choo@arm.com> Signed-off-by: Steven Price <steven.price@arm.com> Link: https://lore.kernel.org/r/20250807162633.3666310-8-karunika.choo@arm.com
1 parent dd11c7d commit f9c67b0

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

drivers/gpu/drm/panthor/panthor_fw.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,3 +1405,5 @@ MODULE_FIRMWARE("arm/mali/arch10.8/mali_csffw.bin");
14051405
MODULE_FIRMWARE("arm/mali/arch10.10/mali_csffw.bin");
14061406
MODULE_FIRMWARE("arm/mali/arch10.12/mali_csffw.bin");
14071407
MODULE_FIRMWARE("arm/mali/arch11.8/mali_csffw.bin");
1408+
MODULE_FIRMWARE("arm/mali/arch12.8/mali_csffw.bin");
1409+
MODULE_FIRMWARE("arm/mali/arch13.8/mali_csffw.bin");

drivers/gpu/drm/panthor/panthor_hw.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,24 @@ static char *get_gpu_model_name(struct panthor_device *ptdev)
3535
fallthrough;
3636
case GPU_PROD_ID_MAKE(11, 3):
3737
return "Mali-G615";
38+
case GPU_PROD_ID_MAKE(12, 0):
39+
if (shader_core_count >= 10 && ray_intersection)
40+
return "Mali-G720-Immortalis";
41+
else if (shader_core_count >= 6)
42+
return "Mali-G720";
43+
44+
fallthrough;
45+
case GPU_PROD_ID_MAKE(12, 1):
46+
return "Mali-G620";
47+
case GPU_PROD_ID_MAKE(13, 0):
48+
if (shader_core_count >= 10 && ray_intersection)
49+
return "Mali-G925-Immortalis";
50+
else if (shader_core_count >= 6)
51+
return "Mali-G725";
52+
53+
fallthrough;
54+
case GPU_PROD_ID_MAKE(13, 1):
55+
return "Mali-G625";
3856
}
3957

4058
return "(Unknown Mali GPU)";

0 commit comments

Comments
 (0)