Skip to content

Commit 5d3202d

Browse files
committed
Merge branch 'bits/210-gpu' into asahi-wip
2 parents 755f043 + bee9c96 commit 5d3202d

83 files changed

Lines changed: 23791 additions & 12 deletions

Some content is hidden

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

drivers/gpu/drm/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,8 @@ config DRM_VGEM
372372

373373
source "drivers/gpu/drm/vkms/Kconfig"
374374

375+
source "drivers/gpu/drm/asahi/Kconfig"
376+
375377
source "drivers/gpu/drm/exynos/Kconfig"
376378

377379
source "drivers/gpu/drm/rockchip/Kconfig"

drivers/gpu/drm/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,3 +220,4 @@ obj-y += solomon/
220220
obj-$(CONFIG_DRM_SPRD) += sprd/
221221
obj-$(CONFIG_DRM_LOONGSON) += loongson/
222222
obj-$(CONFIG_DRM_POWERVR) += imagination/
223+
obj-$(CONFIG_DRM_ASAHI) += asahi/

drivers/gpu/drm/asahi/Kconfig

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
3+
config RUST_DRM_SCHED
4+
bool
5+
select DRM_SCHED
6+
7+
config RUST_DRM_GEM_SHMEM_HELPER
8+
bool
9+
select DRM_GEM_SHMEM_HELPER
10+
11+
config RUST_DRM_GPUVM
12+
bool
13+
select DRM_GPUVM
14+
15+
config DRM_ASAHI
16+
tristate "Asahi (DRM support for Apple AGX GPUs)"
17+
depends on RUST
18+
depends on DRM
19+
depends on (ARM64 && ARCH_APPLE) || (COMPILE_TEST && !GENERIC_ATOMIC64)
20+
depends on MMU
21+
depends on IOMMU_SUPPORT
22+
select RUST_DRM_SCHED
23+
select IOMMU_IO_PGTABLE_LPAE
24+
select RUST_DRM_GEM_SHMEM_HELPER
25+
select RUST_DRM_GPUVM
26+
select RUST_APPLE_RTKIT
27+
help
28+
DRM driver for Apple AGX GPUs (G13x, found in the M1 SoC family)
29+
30+
config DRM_ASAHI_DEBUG_ALLOCATOR
31+
bool "Use debug allocator"
32+
depends on DRM_ASAHI
33+
help
34+
Use an alternate, simpler allocator which significantly reduces
35+
performance, but can help find firmware- or GPU-side memory safety
36+
issues. However, it can also trigger firmware bugs more easily,
37+
so expect GPU crashes.
38+
39+
Say N unless you are debugging firmware structures or porting to a
40+
new firmware version.

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)