mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 16:17:41 -04:00
drm/msm: Fix bv_fence being used as bv_rptr
The bv_fence field of rbmemptrs was being used incorrectly as the BV rptr shadow pointer in some places. Add a bv_rptr field and change the code to use that instead. Reviewed-by: Akhil P Oommen <quic_akhilpo@quicinc.com> Tested-by: Rob Clark <robdclark@gmail.com> Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on SM8650-QRD Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on SM8550-QRD Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on SM8450-HDK Signed-off-by: Antonino Maniscalco <antomani103@gmail.com> Patchwork: https://patchwork.freedesktop.org/patch/618010/ Signed-off-by: Rob Clark <robdclark@chromium.org>
This commit is contained in:
committed by
Rob Clark
parent
9852d85ec9
commit
76a28f4c0c
@@ -1129,7 +1129,7 @@ static int hw_init(struct msm_gpu *gpu)
|
||||
/* ..which means "always" on A7xx, also for BV shadow */
|
||||
if (adreno_is_a7xx(adreno_gpu)) {
|
||||
gpu_write64(gpu, REG_A7XX_CP_BV_RB_RPTR_ADDR,
|
||||
rbmemptr(gpu->rb[0], bv_fence));
|
||||
rbmemptr(gpu->rb[0], bv_rptr));
|
||||
}
|
||||
|
||||
/* Always come up on rb 0 */
|
||||
|
||||
@@ -31,6 +31,7 @@ struct msm_rbmemptrs {
|
||||
volatile uint32_t rptr;
|
||||
volatile uint32_t fence;
|
||||
/* Introduced on A7xx */
|
||||
volatile uint32_t bv_rptr;
|
||||
volatile uint32_t bv_fence;
|
||||
|
||||
volatile struct msm_gpu_submit_stats stats[MSM_GPU_SUBMIT_STATS_COUNT];
|
||||
|
||||
Reference in New Issue
Block a user