Skip to content

Commit 68f1f9d

Browse files
committed
Merge branch 'bits/210-gpu' into asahi-wip
2 parents 91f37b7 + cc565d3 commit 68f1f9d

Some content is hidden

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

114 files changed

+26464
-417
lines changed

MAINTAINERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14696,6 +14696,8 @@ F: net/mctp/
1469614696

1469714697
MAPLE TREE
1469814698
M: Liam R. Howlett <Liam.Howlett@oracle.com>
14699+
R: Alice Ryhl <aliceryhl@google.com>
14700+
R: Andrew Ballance <andrewjballance@gmail.com>
1469914701
L: maple-tree@lists.infradead.org
1470014702
L: linux-mm@kvack.org
1470114703
S: Supported
@@ -14704,6 +14706,8 @@ F: include/linux/maple_tree.h
1470414706
F: include/trace/events/maple_tree.h
1470514707
F: lib/maple_tree.c
1470614708
F: lib/test_maple_tree.c
14709+
F: rust/helpers/maple_tree.c
14710+
F: rust/kernel/maple_tree.rs
1470714711
F: tools/testing/radix-tree/maple.c
1470814712
F: tools/testing/shared/linux/maple_tree.h
1470914713

drivers/gpu/drm/Kconfig

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

295295
source "drivers/gpu/drm/vkms/Kconfig"
296296

297+
source "drivers/gpu/drm/asahi/Kconfig"
298+
297299
source "drivers/gpu/drm/exynos/Kconfig"
298300

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

drivers/gpu/drm/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ obj-y += tiny/
215215
obj-$(CONFIG_DRM_PL111) += pl111/
216216
obj-$(CONFIG_DRM_TVE200) += tve200/
217217
obj-$(CONFIG_DRM_ADP) += adp/
218+
obj-$(CONFIG_DRM_ASAHI) += asahi/
218219
obj-$(CONFIG_DRM_XEN) += xen/
219220
obj-$(CONFIG_DRM_VBOXVIDEO) += vboxvideo/
220221
obj-$(CONFIG_DRM_LIMA) += lima/

drivers/gpu/drm/asahi/Kconfig

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