Skip to content

Commit 0452fd5

Browse files
committed
drm/asahi: Add the Asahi driver for Apple AGX GPUs
Signed-off-by: Asahi Lina <[email protected]>
1 parent a53956c commit 0452fd5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+16379
-0
lines changed

drivers/gpu/drm/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,8 @@ source "drivers/gpu/drm/solomon/Kconfig"
360360

361361
source "drivers/gpu/drm/sprd/Kconfig"
362362

363+
source "drivers/gpu/drm/asahi/Kconfig"
364+
363365
config DRM_HYPERV
364366
tristate "DRM Support for Hyper-V synthetic video device"
365367
depends on DRM && PCI && MMU && HYPERV

drivers/gpu/drm/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,3 +197,4 @@ obj-y += gud/
197197
obj-$(CONFIG_DRM_HYPERV) += hyperv/
198198
obj-y += solomon/
199199
obj-$(CONFIG_DRM_SPRD) += sprd/
200+
obj-$(CONFIG_DRM_ASAHI) += asahi/

drivers/gpu/drm/asahi/Kconfig

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
3+
config DRM_ASAHI
4+
tristate "Asahi (DRM support for Apple AGX GPUs)"
5+
depends on RUST
6+
depends on DRM
7+
depends on (ARM64 && ARCH_APPLE) || (COMPILE_TEST && !GENERIC_ATOMIC64)
8+
depends on MMU
9+
select DRM_SCHED
10+
select IOMMU_SUPPORT
11+
select IOMMU_IO_PGTABLE_LPAE
12+
select DRM_GEM_SHMEM_HELPER
13+
help
14+
DRM driver for Apple AGX GPUs (G13x, found in the M1 SoC family)
15+
16+
config DRM_ASAHI_DEBUG_ALLOCATOR
17+
bool "Use debug allocator"
18+
depends on DRM_ASAHI
19+
help
20+
Use an alternate, simpler allocator which significantly reduces
21+
performance, but can help find firmware- or GPU-side memory safety
22+
issues.

drivers/gpu/drm/asahi/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
3+
obj-$(CONFIG_DRM_ASAHI) += asahi.o

0 commit comments

Comments
 (0)