Skip to content

Adreno A5XX support

Jordan Crouse dri-devel linux-arm-msm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 of 12 patches 16 repliesIn review

9 of 12 patches are in this archive. The cover letter announces 12.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12drm/msm: gpu: Cut down the list of "generic" registers to the ones we usedrivers/gpu/drm/msm/adreno/a3xx_gpu.c drivers/gpu/drm/msm/adreno/a4xx_gpu.c drivers/gpu/drm/msm/adreno/adreno_gpu.h+0 -2150 replies
3/12drm/msm: gpu Add new gpu register read/write functionsdrivers/gpu/drm/msm/adreno/a4xx_gpu.c drivers/gpu/drm/msm/msm_gpu.h+41 -100 replies
4/12drm/msm: Add adreno_gpu_write64()drivers/gpu/drm/msm/adreno/a3xx_gpu.c drivers/gpu/drm/msm/adreno/a4xx_gpu.c drivers/gpu/drm/msm/adreno/adreno_gpu.c +1 more+34 -50 replies
7/12drm/msm: Disable interrupts during initdrivers/gpu/drm/msm/adreno/adreno_device.c drivers/gpu/drm/msm/adreno/adreno_gpu.c+7 -00 replies
8/12drm/msm: gpu: Add A5XX target supportdrivers/gpu/drm/msm/Makefile drivers/gpu/drm/msm/adreno/a5xx_gpu.c drivers/gpu/drm/msm/adreno/a5xx_gpu.h +5 more+938 -90 replies
9/12drm/msm: gpu: Add support for the GPMUdrivers/gpu/drm/msm/Makefile drivers/gpu/drm/msm/adreno/a5xx_gpu.c drivers/gpu/drm/msm/adreno/a5xx_gpu.h +3 more+431 -30 replies
10/12firmware: qcom_scm: Add qcom_scm_gpu_zap_resume()drivers/firmware/qcom_scm-32.c drivers/firmware/qcom_scm-64.c drivers/firmware/qcom_scm.c +2 more+30 -014 replies
11/12drm/msm: Add a quick and dirty PIL loaderdrivers/gpu/drm/msm/adreno/a5xx_gpu.c+166 -02 replies
12/12drm/msm: gpu: Use the zap shader on 5XX if we candrivers/gpu/drm/msm/adreno/a5xx_gpu.c+70 -25 replies

Reviews trailers per patch

1 of 9 patches has a Reviewed-by or Acked-by.

PatchJordan CrouseStanimir Varbanov
1/12
3/12
4/12
7/12
8/12
9/12
10/12A-b A-b
11/12
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/12] Adreno A5XX support

All, here is initial kernel support for the Adreno A5XX family of GPUs found on the QTI Snapdragon 820 and 821 among others.

This stack turns on the A5XX hardware and initializes the GPMU (Graphics Power Management Unit) which is a microcontroller to assist with more independent power management. This initial stack is mainly concerned with getting the GPU/GPMU operational. Hopefully future improvements will actually tune it for better power.

The last three patches in the stack take the GPU out of "secure" mode. When the GPU is in secure mode it can only read/write from memory that is locked by the secure components of the SoC. By default the GPU comes up in secure mode - to get out of it we need to use SCM to load a special shader that "zaps" the persistent memory and registers and then we can execute a GPU command to take us out of secure. This code should compile cleanly against upstream but there are some changes coming in on other trees to make it functional for the Snapdragon 820/821.

And since the GPU isn't very interesting unless it can draw a triangle or two, Rob Clark has been hard at work on the user side of things and has a great chunk of functionality ready for Mesa:

https://lists.freedesktop.org/archives/freedreno/2016-November/000852.html

So I think this should be everything we need to make the A5XX useful for the community. Please enjoy.

Best regards,
Jordan

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel