drm/msm/a6xx: Remove unneeded GBIF unhalt
Subsystems (4)
PATCH 1/1 drm/msm/a6xx: Remove unneeded GBIF unhalt
Commit e812744c5f95 ("drm: msm: a6xx: Add support for A618") added a universal GBIF un-halt into a6xx_start(). This can cause problems for a630 targets which do not use GBIF and might have access protection enabled on the region now occupied by the GBIF registers.
But it turns out that we didn't need to unhalt the GBIF in this path since the stop function already takes care of that after executing a flush but before turning off the headswitch. We should be confident that the GBIF is open for business when we restart the hardware.
---
drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 12 ------------ 1 file changed, 12 deletions(-)
drivers/gpu/drm/msm/adreno/a6xx_gpu.c +0 -12
@@ -378,18 +378,6 @@ static int a6xx_hw_init(struct msm_gpu *gpu)struct a6xx_gpu *a6xx_gpu =to_a6xx_gpu (adreno_gpu);int ret; -/* -* During a previous slumber, GBIF halt is asserted to ensure -* no further transaction can go through GPU before GPU -* headswitch is turned off. -* -* This halt is deasserted once headswitch goes off but -* incase headswitch doesn't goes off clear GBIF halt -* here to ensure GPU wake-up doesn't fail because of -* halted GPU transactions. -*/ -gpu_write (gpu,REG_A6XX_GBIF_HALT ,0x0 ); -/* Make sure the GMU keeps the GPU on while we set it up */ a6xx_gmu_set_oob (&a6xx_gpu->gmu,GMU_OOB_GPU_SET );
Signature · 1 line
2.7.4
+jstultz
Quoted 41 lines · Jordan Crouse
Commit
e812744c5f95("drm: msm: a6xx: Add support for A618") added a universal GBIF un-halt intoa6xx_start(). This can cause problems for a630 targets which do not use GBIF and might have access protection enabled on the region now occupied by the GBIF registers.But it turns out that we didn't need to unhalt the GBIF in this path since the stop function already takes care of that after executing a flush but before turning off the headswitch. We should be confident that the GBIF is open for business when we restart the hardware.
Signed-off-by Jordan Crouse <[email protected]>---
drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 12 ------------ 1 file changed, 12 deletions(-)drivers/gpu/drm/msm/adreno/a6xx_gpu.c +0
-13@@ -378,18 +378,6 @@ static int a6xx_hw_init(struct msm_gpu *gpu)struct a6xx_gpu *a6xx_gpu =to_a6xx_gpu (adreno_gpu);int ret; -/* -* During a previous slumber, GBIF halt is asserted to ensure -* no further transaction can go through GPU before GPU -* headswitch is turned off. -* -* This halt is deasserted once headswitch goes off but -* incase headswitch doesn't goes off clear GBIF halt -* here to ensure GPU wake-up doesn't fail because of -* halted GPU transactions. -*/ -gpu_write (gpu,REG_A6XX_GBIF_HALT ,0x0 ); -/* Make sure the GMU keeps the GPU on while we set it up */ a6xx_gmu_set_oob (&a6xx_gpu->gmu,GMU_OOB_GPU_SET ); --
Quoted 1 line
2.7.4
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 6 lines · Jordan Crouse
Commit
e812744c5f95("drm: msm: a6xx: Add support for A618") added a universal GBIF un-halt intoa6xx_start(). This can cause problems for a630 targets which do not use GBIF and might have access protection enabled on the region now occupied by the GBIF registers.
Quoted 6 lines
But it turns out that we didn't need to unhalt the GBIF in this path since the stop function already takes care of that after executing a flush but before turning off the headswitch. We should be confident that the GBIF is open for business when we restart the hardware.
Signed-off-by Jordan Crouse <[email protected]>
Sorry, yesterday got busy with other things and I didn't get around to testing your patch, but I have tested earlier with my own patch which is identical:
https://git.linaro.org/people/john.stultz/android-dev.git/commit/?h=dev/db845c-mainline-WIP&id=4e6a2e84dd77fe74faa1a6b797eb0ee7bf11ffd7
So, I think I can safely add:
Thanks so much for the quick turnaround on this!
-john
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 6 lines · Jordan Crouse
Commit
e812744c5f95("drm: msm: a6xx: Add support for A618") added a universal GBIF un-halt intoa6xx_start(). This can cause problems for a630 targets which do not use GBIF and might have access protection enabled on the region now occupied by the GBIF registers.
Quoted 6 lines
But it turns out that we didn't need to unhalt the GBIF in this path since the stop function already takes care of that after executing a flush but before turning off the headswitch. We should be confident that the GBIF is open for business when we restart the hardware.
Signed-off-by Jordan Crouse <[email protected]>
Quoted 29 lines
---
drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 12 ------------ 1 file changed, 12 deletions(-)drivers/gpu/drm/msm/adreno/a6xx_gpu.c +0
-13@@ -378,18 +378,6 @@ static int a6xx_hw_init(struct msm_gpu *gpu)struct a6xx_gpu *a6xx_gpu =to_a6xx_gpu (adreno_gpu);int ret; -/* -* During a previous slumber, GBIF halt is asserted to ensure -* no further transaction can go through GPU before GPU -* headswitch is turned off. -* -* This halt is deasserted once headswitch goes off but -* incase headswitch doesn't goes off clear GBIF halt -* here to ensure GPU wake-up doesn't fail because of -* halted GPU transactions. -*/ -gpu_write (gpu,REG_A6XX_GBIF_HALT ,0x0 ); -/* Make sure the GMU keeps the GPU on while we set it up */ a6xx_gmu_set_oob (&a6xx_gpu->gmu,GMU_OOB_GPU_SET ); --
Quoted 1 line
2.7.4
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel