diff options
author | Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | 2023-02-14 05:09:56 +0300 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2023-02-22 22:22:03 +0300 |
commit | 32e7083429d46f29080626fe387ff90c086b1fbe (patch) | |
tree | 9e54d3942066c0cb04f0d1f89b3ef168771a0d3f /tools/perf/scripts/python/task-analyzer.py | |
parent | b4fb748f0b734ce1d2e7834998cc599fcbd25d67 (diff) | |
download | linux-32e7083429d46f29080626fe387ff90c086b1fbe.tar.xz |
drm/msm/a5xx: fix context faults during ring switch
The rptr_addr is set in the preempt_init_ring(), which is called from
a5xx_gpu_init(). It uses shadowptr() to set the address, however the
shadow_iova is not yet initialized at that time. Move the rptr_addr
setting to the a5xx_preempt_hw_init() which is called after setting the
shadow_iova, getting the correct value for the address.
Fixes: 8907afb476ac ("drm/msm: Allow a5xx to mark the RPTR shadow as privileged")
Suggested-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/522640/
Link: https://lore.kernel.org/r/20230214020956.164473-5-dmitry.baryshkov@linaro.org
Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions