Skip to content

Commit 237035b

Browse files
committed
Merge branch 'bits/210-gpu' into asahi-wip
2 parents 158f55b + cec747c commit 237035b

122 files changed

Lines changed: 29691 additions & 385 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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ config DRM_EXEC
220220
config DRM_GPUVM
221221
tristate
222222
depends on DRM
223+
select DRM_EXEC
223224
help
224225
GPU-VM representation providing helpers to manage a GPUs virtual
225226
address space
@@ -291,6 +292,8 @@ config DRM_VGEM
291292

292293
source "drivers/gpu/drm/vkms/Kconfig"
293294

295+
source "drivers/gpu/drm/asahi/Kconfig"
296+
294297
source "drivers/gpu/drm/exynos/Kconfig"
295298

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

drivers/gpu/drm/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,3 +190,4 @@ obj-y += solomon/
190190
obj-$(CONFIG_DRM_SPRD) += sprd/
191191
obj-$(CONFIG_DRM_LOONGSON) += loongson/
192192
obj-$(CONFIG_DRM_POWERVR) += imagination/
193+
obj-$(CONFIG_DRM_ASAHI) += asahi/

drivers/gpu/drm/asahi/Kconfig

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 RUST_APPLE_RTKIT
16+
bool
17+
select APPLE_RTKIT
18+
select APPLE_MBOX
19+
20+
config DRM_ASAHI
21+
tristate "Asahi (DRM support for Apple AGX GPUs)"
22+
depends on RUST
23+
depends on DRM
24+
depends on (ARM64 && ARCH_APPLE) || (COMPILE_TEST && !GENERIC_ATOMIC64)
25+
depends on MMU
26+
select RUST_DRM_SCHED
27+
select IOMMU_SUPPORT
28+
select IOMMU_IO_PGTABLE_LPAE
29+
select RUST_DRM_GEM_SHMEM_HELPER
30+
select RUST_DRM_GPUVM
31+
select RUST_APPLE_RTKIT
32+
help
33+
DRM driver for Apple AGX GPUs (G13x, found in the M1 SoC family)
34+
35+
config DRM_ASAHI_DEBUG_ALLOCATOR
36+
bool "Use debug allocator"
37+
depends on DRM_ASAHI
38+
help
39+
Use an alternate, simpler allocator which significantly reduces
40+
performance, but can help find firmware- or GPU-side memory safety
41+
issues. However, it can also trigger firmware bugs more easily,
42+
so expect GPU crashes.
43+
44+
Say N unless you are debugging firmware structures or porting to a
45+
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)