diff options
| author | Mark Hatle <mark.hatle@amd.com> | 2022-10-24 15:37:40 -0700 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2022-11-10 15:38:42 -0800 |
| commit | f8185c8a55c94e91b54c2202570486df504ff843 (patch) | |
| tree | 59864f55eff6ad5d9de37c4220be72a2a4a1c896 /meta-xilinx-core/recipes-graphics | |
| parent | a3d466493bcbb11d93f135da696a64e047103da9 (diff) | |
| download | meta-xilinx-f8185c8a55c94e91b54c2202570486df504ff843.tar.gz | |
kernel-module-mali: Switch to using community device-tree names
The community LIMA driver uses a series of names that are different then
the legacy Xilinx names. Moves from the legacy names to the more standard
names.
This will allow us to have a single device tree that works with both the
mali driver, as well as the lima driver.
Interrupt-names:
IRQGP -> gp
IRQGPMMU -> gpmmu
IRQPP0 -> pp0
IRQPPMMU0 -> ppmmu0
IRQPP1 -> pp1
IRQPPMMU1 -> ppmmu1
...
Clock-names:
gpu_pp0 -> core
gpu_pp1 -> bus
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-core/recipes-graphics')
| -rw-r--r-- | meta-xilinx-core/recipes-graphics/mali/kernel-module-mali.bb | 1 | ||||
| -rw-r--r-- | meta-xilinx-core/recipes-graphics/mali/kernel-module-mali/0024-Use-community-device-tree-names.patch | 91 |
2 files changed, 92 insertions, 0 deletions
diff --git a/meta-xilinx-core/recipes-graphics/mali/kernel-module-mali.bb b/meta-xilinx-core/recipes-graphics/mali/kernel-module-mali.bb index cc31cfe5..e86f3ccd 100644 --- a/meta-xilinx-core/recipes-graphics/mali/kernel-module-mali.bb +++ b/meta-xilinx-core/recipes-graphics/mali/kernel-module-mali.bb | |||
| @@ -30,6 +30,7 @@ SRC_URI = " \ | |||
| 30 | file://0021-Use-updated-timekeeping-functions-in-kernel-5.6.patch \ | 30 | file://0021-Use-updated-timekeeping-functions-in-kernel-5.6.patch \ |
| 31 | file://0022-Set-HAVE_UNLOCKED_IOCTL-default-to-true.patch \ | 31 | file://0022-Set-HAVE_UNLOCKED_IOCTL-default-to-true.patch \ |
| 32 | file://0023-Use-PTR_ERR_OR_ZERO-instead-of-PTR_RET.patch \ | 32 | file://0023-Use-PTR_ERR_OR_ZERO-instead-of-PTR_RET.patch \ |
| 33 | file://0024-Use-community-device-tree-names.patch \ | ||
| 33 | " | 34 | " |
| 34 | SRC_URI[md5sum] = "85ea110dd6675c70b7d01af87ec9633c" | 35 | SRC_URI[md5sum] = "85ea110dd6675c70b7d01af87ec9633c" |
| 35 | SRC_URI[sha256sum] = "7a67127341d17640c1fff5dad80258fb2a37c8a2121b81525fe2327e4532ce2b" | 36 | SRC_URI[sha256sum] = "7a67127341d17640c1fff5dad80258fb2a37c8a2121b81525fe2327e4532ce2b" |
diff --git a/meta-xilinx-core/recipes-graphics/mali/kernel-module-mali/0024-Use-community-device-tree-names.patch b/meta-xilinx-core/recipes-graphics/mali/kernel-module-mali/0024-Use-community-device-tree-names.patch new file mode 100644 index 00000000..5b3eeedc --- /dev/null +++ b/meta-xilinx-core/recipes-graphics/mali/kernel-module-mali/0024-Use-community-device-tree-names.patch | |||
| @@ -0,0 +1,91 @@ | |||
| 1 | Use the community device-tree names | ||
| 2 | |||
| 3 | The community LIMA driver uses a series of names that are different then | ||
| 4 | the legacy Xilinx names. Moves from the legacy names to the more standard | ||
| 5 | names. | ||
| 6 | |||
| 7 | This will allow us to have a single device tree that works with both the | ||
| 8 | mali driver, as well as the lima driver. | ||
| 9 | |||
| 10 | Interrupt-names: | ||
| 11 | IRQGP -> gp | ||
| 12 | IRQGPMMU -> gpmmu | ||
| 13 | IRQPP0 -> pp0 | ||
| 14 | IRQPPMMU0 -> ppmmu0 | ||
| 15 | IRQPP1 -> pp1 | ||
| 16 | IRQPPMMU1 -> ppmmu1 | ||
| 17 | ... | ||
| 18 | |||
| 19 | Clock-names: | ||
| 20 | gpu_pp0 -> core | ||
| 21 | gpu_pp1 -> bus | ||
| 22 | |||
| 23 | Signed-off-by: Mark Hatle <mark.hatle@amd.com> | ||
| 24 | |||
| 25 | diff -ur a/linux/mali_kernel_linux.c b/linux/mali_kernel_linux.c | ||
| 26 | --- a/linux/mali_kernel_linux.c 2018-09-17 04:04:48.000000000 -0700 | ||
| 27 | +++ b/linux/mali_kernel_linux.c 2022-10-24 14:01:54.614376177 -0700 | ||
| 28 | @@ -635,11 +635,11 @@ | ||
| 29 | if (IS_ERR(clk_gpu)) | ||
| 30 | return PTR_ERR(clk_gpu); | ||
| 31 | |||
| 32 | - clk_gpu_pp0 = devm_clk_get(&pdev->dev, "gpu_pp0"); | ||
| 33 | + clk_gpu_pp0 = devm_clk_get(&pdev->dev, "core"); | ||
| 34 | if (IS_ERR(clk_gpu_pp0)) | ||
| 35 | return PTR_ERR(clk_gpu_pp0); | ||
| 36 | |||
| 37 | - clk_gpu_pp1 = devm_clk_get(&pdev->dev, "gpu_pp1"); | ||
| 38 | + clk_gpu_pp1 = devm_clk_get(&pdev->dev, "bus"); | ||
| 39 | if (IS_ERR(clk_gpu_pp1)) | ||
| 40 | return PTR_ERR(clk_gpu_pp1); | ||
| 41 | #endif | ||
| 42 | diff -ur a/linux/mali_osk_mali.c b/linux/mali_osk_mali.c | ||
| 43 | --- a/linux/mali_osk_mali.c 2018-09-12 23:52:20.000000000 -0700 | ||
| 44 | +++ b/linux/mali_osk_mali.c 2022-10-24 14:00:28.470380512 -0700 | ||
| 45 | @@ -72,26 +72,26 @@ | ||
| 46 | #define MALI_OSK_RESOURCE_DMA_LOCATION 26 | ||
| 47 | |||
| 48 | static _mali_osk_resource_t mali_osk_resource_bank[MALI_OSK_MAX_RESOURCE_NUMBER] = { | ||
| 49 | - {.description = "Mali_GP", .base = MALI_OFFSET_GP, .irq_name = "IRQGP",}, | ||
| 50 | - {.description = "Mali_GP_MMU", .base = MALI_OFFSET_GP_MMU, .irq_name = "IRQGPMMU",}, | ||
| 51 | - {.description = "Mali_PP0", .base = MALI_OFFSET_PP0, .irq_name = "IRQPP0",}, | ||
| 52 | - {.description = "Mali_PP0_MMU", .base = MALI_OFFSET_PP0_MMU, .irq_name = "IRQPPMMU0",}, | ||
| 53 | - {.description = "Mali_PP1", .base = MALI_OFFSET_PP1, .irq_name = "IRQPP1",}, | ||
| 54 | - {.description = "Mali_PP1_MMU", .base = MALI_OFFSET_PP1_MMU, .irq_name = "IRQPPMMU1",}, | ||
| 55 | - {.description = "Mali_PP2", .base = MALI_OFFSET_PP2, .irq_name = "IRQPP2",}, | ||
| 56 | - {.description = "Mali_PP2_MMU", .base = MALI_OFFSET_PP2_MMU, .irq_name = "IRQPPMMU2",}, | ||
| 57 | - {.description = "Mali_PP3", .base = MALI_OFFSET_PP3, .irq_name = "IRQPP3",}, | ||
| 58 | - {.description = "Mali_PP3_MMU", .base = MALI_OFFSET_PP3_MMU, .irq_name = "IRQPPMMU3",}, | ||
| 59 | - {.description = "Mali_PP4", .base = MALI_OFFSET_PP4, .irq_name = "IRQPP4",}, | ||
| 60 | - {.description = "Mali_PP4_MMU", .base = MALI_OFFSET_PP4_MMU, .irq_name = "IRQPPMMU4",}, | ||
| 61 | - {.description = "Mali_PP5", .base = MALI_OFFSET_PP5, .irq_name = "IRQPP5",}, | ||
| 62 | - {.description = "Mali_PP5_MMU", .base = MALI_OFFSET_PP5_MMU, .irq_name = "IRQPPMMU5",}, | ||
| 63 | - {.description = "Mali_PP6", .base = MALI_OFFSET_PP6, .irq_name = "IRQPP6",}, | ||
| 64 | - {.description = "Mali_PP6_MMU", .base = MALI_OFFSET_PP6_MMU, .irq_name = "IRQPPMMU6",}, | ||
| 65 | - {.description = "Mali_PP7", .base = MALI_OFFSET_PP7, .irq_name = "IRQPP7",}, | ||
| 66 | - {.description = "Mali_PP7_MMU", .base = MALI_OFFSET_PP7_MMU, .irq_name = "IRQPPMMU",}, | ||
| 67 | - {.description = "Mali_PP_Broadcast", .base = MALI_OFFSET_PP_BCAST, .irq_name = "IRQPP",}, | ||
| 68 | - {.description = "Mali_PMU", .base = MALI_OFFSET_PMU, .irq_name = "IRQPMU",}, | ||
| 69 | + {.description = "Mali_GP", .base = MALI_OFFSET_GP, .irq_name = "gp",}, | ||
| 70 | + {.description = "Mali_GP_MMU", .base = MALI_OFFSET_GP_MMU, .irq_name = "gpmmu",}, | ||
| 71 | + {.description = "Mali_PP0", .base = MALI_OFFSET_PP0, .irq_name = "pp0",}, | ||
| 72 | + {.description = "Mali_PP0_MMU", .base = MALI_OFFSET_PP0_MMU, .irq_name = "ppmmu0",}, | ||
| 73 | + {.description = "Mali_PP1", .base = MALI_OFFSET_PP1, .irq_name = "pp1",}, | ||
| 74 | + {.description = "Mali_PP1_MMU", .base = MALI_OFFSET_PP1_MMU, .irq_name = "ppmmu1",}, | ||
| 75 | + {.description = "Mali_PP2", .base = MALI_OFFSET_PP2, .irq_name = "pp2",}, | ||
| 76 | + {.description = "Mali_PP2_MMU", .base = MALI_OFFSET_PP2_MMU, .irq_name = "ppmmu2",}, | ||
| 77 | + {.description = "Mali_PP3", .base = MALI_OFFSET_PP3, .irq_name = "pp3",}, | ||
| 78 | + {.description = "Mali_PP3_MMU", .base = MALI_OFFSET_PP3_MMU, .irq_name = "ppmmu3",}, | ||
| 79 | + {.description = "Mali_PP4", .base = MALI_OFFSET_PP4, .irq_name = "pp4",}, | ||
| 80 | + {.description = "Mali_PP4_MMU", .base = MALI_OFFSET_PP4_MMU, .irq_name = "ppmmu4",}, | ||
| 81 | + {.description = "Mali_PP5", .base = MALI_OFFSET_PP5, .irq_name = "pp5",}, | ||
| 82 | + {.description = "Mali_PP5_MMU", .base = MALI_OFFSET_PP5_MMU, .irq_name = "ppmmu5",}, | ||
| 83 | + {.description = "Mali_PP6", .base = MALI_OFFSET_PP6, .irq_name = "pp6",}, | ||
| 84 | + {.description = "Mali_PP6_MMU", .base = MALI_OFFSET_PP6_MMU, .irq_name = "ppmmu6",}, | ||
| 85 | + {.description = "Mali_PP7", .base = MALI_OFFSET_PP7, .irq_name = "pp7",}, | ||
| 86 | + {.description = "Mali_PP7_MMU", .base = MALI_OFFSET_PP7_MMU, .irq_name = "ppmmu",}, | ||
| 87 | + {.description = "Mali_PP_Broadcast", .base = MALI_OFFSET_PP_BCAST, .irq_name = "pp",}, | ||
| 88 | + {.description = "Mali_PMU", .base = MALI_OFFSET_PMU, .irq_name = "pmu",}, | ||
| 89 | {.description = "Mali_L2", .base = MALI_OFFSET_L2_RESOURCE0,}, | ||
| 90 | {.description = "Mali_L2", .base = MALI_OFFSET_L2_RESOURCE1,}, | ||
| 91 | {.description = "Mali_L2", .base = MALI_OFFSET_L2_RESOURCE2,}, | ||
