mbox series

[v3,0/7] Add support for Adreno 508/509/512

Message ID 20210113183339.446239-1-angelogioacchino.delregno@somainline.org
Headers show
Series Add support for Adreno 508/509/512 | expand

Message

AngeloGioacchino Del Regno Jan. 13, 2021, 6:33 p.m. UTC
In this patch series, we are adding support for lower end Adreno 5
series GPUs, such as A508, A509 and A512 that we have found in the
Qualcomm SDM630, SDM636 and SDM660 SoCs.

On a note, adding support for these three units, also adds 99% of
the required "things" for another two GPUs, A505 and A506 but, even
if adding them requires literally two lines of code, noone of us has
got any SoC equipped with these ones hence we wouldn't be able to
test. Even though there is basically no reason for them to not work
correctly, kernel side, I chose to avoid adding the two "magic" lines.

Anyway, this patchset also addresses some issues that we've found in
the A5XX part of the Adreno driver, regarding a logic mistake in one
of the VPC protect values and a forced overwrite of the register named
A5XX_PC_DBG_ECO_CNTL, forcing the setting of vtxFifo and primFifo
thresholds that was valid only for higher end GPUs.

This patch series has been tested on the following devices:
 - Sony Xperia XA2 Ultra (SDM630 Nile Discovery)
 - Sony Xperia 10        (SDM630 Ganges Kirin)
 - Sony Xperia 10 Plus   (SDM636 Ganges Mermaid)

Changes in v3:
 - Rebased on 5.11-rc3
 - Changed emails to reflect new ones
 - Tested on F(x)Tec Pro1 and Xperia XZ Premium (MSM8998)

Changes in v2:
 - Define REG_A5XX_UCHE_MODE_CNTL and fix open-coded
   REG_A5XX_VPC_DBG_ECO_CNTL in the all flat shading optimization
   disablement commit, as requested by Rob Clark.

AngeloGioacchino Del Regno (4):
  drm/msm/a5xx: Remove overwriting A5XX_PC_DBG_ECO_CNTL register
  drm/msm/a5xx: Separate A5XX_PC_DBG_ECO_CNTL write from main branch
  drm/msm/a5xx: Add support for Adreno 508, 509, 512 GPUs
  drm/msm/a5xx: Reset VBIF before PC only on A510 and A530

Konrad Dybcio (3):
  drm/msm/a5xx: Fix VPC protect value in gpu_write()
  drm/msm/a5xx: Disable flat shading optimization
  drm/msm/a5xx: Disable UCHE global filter

 drivers/gpu/drm/msm/adreno/a5xx.xml.h      |   2 +
 drivers/gpu/drm/msm/adreno/a5xx_gpu.c      | 195 ++++++++++++++++++---
 drivers/gpu/drm/msm/adreno/a5xx_power.c    |   4 +-
 drivers/gpu/drm/msm/adreno/adreno_device.c |  52 ++++++
 drivers/gpu/drm/msm/adreno/adreno_gpu.h    |  15 ++
 5 files changed, 241 insertions(+), 27 deletions(-)

Comments

patchwork-bot+linux-arm-msm@kernel.org March 1, 2021, 7:59 p.m. UTC | #1
Hello:

This series was applied to qcom/linux.git (refs/heads/for-next):

On Wed, 13 Jan 2021 19:33:32 +0100 you wrote:
> In this patch series, we are adding support for lower end Adreno 5

> series GPUs, such as A508, A509 and A512 that we have found in the

> Qualcomm SDM630, SDM636 and SDM660 SoCs.

> 

> On a note, adding support for these three units, also adds 99% of

> the required "things" for another two GPUs, A505 and A506 but, even

> if adding them requires literally two lines of code, noone of us has

> got any SoC equipped with these ones hence we wouldn't be able to

> test. Even though there is basically no reason for them to not work

> correctly, kernel side, I chose to avoid adding the two "magic" lines.

> 

> [...]


Here is the summary with links:
  - [v3,1/7] drm/msm/a5xx: Remove overwriting A5XX_PC_DBG_ECO_CNTL register
    https://git.kernel.org/qcom/c/8f03c30cb814
  - [v3,2/7] drm/msm/a5xx: Separate A5XX_PC_DBG_ECO_CNTL write from main branch
    https://git.kernel.org/qcom/c/4340b46ad161
  - [v3,3/7] drm/msm/a5xx: Add support for Adreno 508, 509, 512 GPUs
    https://git.kernel.org/qcom/c/1d832ab30ce6
  - [v3,4/7] drm/msm/a5xx: Reset VBIF before PC only on A510 and A530
    https://git.kernel.org/qcom/c/9deba2b8a5b5
  - [v3,5/7] drm/msm/a5xx: Fix VPC protect value in gpu_write()
    https://git.kernel.org/qcom/c/89c1ab960717
  - [v3,6/7] drm/msm/a5xx: Disable flat shading optimization
    https://git.kernel.org/qcom/c/cce212d84415
  - [v3,7/7] drm/msm/a5xx: Disable UCHE global filter
    https://git.kernel.org/qcom/c/3f2bc3856bf1

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html