Skip to content

Commit 7198e6b

Browse files
committed
drm/msm: add a3xx gpu support
Add initial support for a3xx 3d core. So far, with hardware that I've seen to date, we can have: + zero, one, or two z180 2d cores + a3xx or a2xx 3d core, which share a common CP (the firmware for the CP seems to implement some different PM4 packet types but the basics of cmdstream submission are the same) Which means that the eventual complete "class" hierarchy, once support for all past and present hw is in place, becomes: + msm_gpu + adreno_gpu + a3xx_gpu + a2xx_gpu + z180_gpu This commit splits out the parts that will eventually be common between a2xx/a3xx into adreno_gpu, and the parts that are even common to z180 into msm_gpu. Note that there is no cmdstream validation required. All memory access from the GPU is via IOMMU/MMU. So as long as you don't map silly things to the GPU, there isn't much damage that the GPU can do. Signed-off-by: Rob Clark <[email protected]>
1 parent 902e6eb commit 7198e6b

File tree

16 files changed

+2695
-16
lines changed

16 files changed

+2695
-16
lines changed

drivers/gpu/drm/msm/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ ifeq (, $(findstring -W,$(EXTRA_CFLAGS)))
44
endif
55

66
msm-y := \
7+
adreno/adreno_gpu.o \
8+
adreno/a3xx_gpu.o \
79
hdmi/hdmi.o \
810
hdmi/hdmi_connector.o \
911
hdmi/hdmi_i2c.o \
@@ -18,7 +20,10 @@ msm-y := \
1820
msm_connector.o \
1921
msm_drv.o \
2022
msm_fb.o \
21-
msm_gem.o
23+
msm_gem.o \
24+
msm_gem_submit.o \
25+
msm_gpu.o \
26+
msm_ringbuffer.o
2227

2328
msm-$(CONFIG_DRM_MSM_FBDEV) += msm_fbdev.o
2429

0 commit comments

Comments
 (0)