Continue decoding a PDB when using --vm-decode
PATCH 1/1 Continue decoding a PDB when using --vm-decode
Previously if a PTE was hit with V=0 the decoder would stop. Now it continues but only if you're doing a --vm-decode.
Signed-off-by Tom St Denis <[email protected]>
Reported-by Christian König <[email protected]>
--- src/lib/read_vram.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
src/lib/read_vram.c +4 -4
@@ -241,7 +241,7 @@ static int umr_access_vram_vi(struct umr_asic *asic, uint32_t vmid, (int )pte_fields.valid, (int)pte_fields.system); -if (!pte_fields.valid) +if (pdst && !pte_fields.valid)return -1 ;// compute starting address
@@ -266,7 +266,7 @@ static int umr_access_vram_vi(struct umr_asic *asic, uint32_t vmid, (int )pte_fields.valid, (int)pte_fields.system); -if (!pte_fields.valid) +if (pdst && !pte_fields.valid)return -1 ;// compute starting address
@@ -575,7 +575,7 @@ pde_is_pte:if (!pte_fields.system) pte_fields.page_base_addr -= vm_fb_offset; -if (!pte_fields.prt && !pte_fields.valid) +if (pdst && !pte_fields.prt && !pte_fields.valid)return -1 ;// compute starting address
@@ -625,7 +625,7 @@ pde_is_pte: (int )pte_fields.valid, (int)pte_fields.system); -if (!pte_fields.valid) +if (pdst && !pte_fields.valid)return -1 ;// compute starting address
Signature · 6 lines
2.14.3 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Christian König
Acked-byAm 22.01.2018 um 13:56 schrieb Tom St Denis:
Quoted 5 lines
Previously if a PTE was hit with V=0 the decoder would stop. Now it continues but only if you're doing a --vm-decode.
Signed-off-by Tom St Denis <[email protected]>Reported-by Christian König <[email protected]>
Acked-by Christian König <[email protected]>
Quoted 36 lines
--- src/lib/read_vram.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)src/lib/read_vram.c +3
-3@@ -241,7 +241,7 @@ static int umr_access_vram_vi(struct umr_asic *asic, uint32_t vmid, (int )pte_fields.valid, (int)pte_fields.system); -if (!pte_fields.valid) +if (pdst && !pte_fields.valid)return -1 ;// compute starting address @@ -266,7 +266,7 @@ static int umr_access_vram_vi(struct umr_asic *asic, uint32_t vmid, (int )pte_fields.valid, (int)pte_fields.system); -if (!pte_fields.valid) +if (pdst && !pte_fields.valid)return -1 ;// compute starting address @@ -575,7 +575,7 @@ pde_is_pte:if (!pte_fields.system) pte_fields.page_base_addr -= vm_fb_offset; -if (!pte_fields.prt && !pte_fields.valid) +if (pdst && !pte_fields.prt && !pte_fields.valid)return -1 ;// compute starting address
src/lib/read_vram.c pde_is_pte: · line 631
Quoted 8 lines
src/lib/read_vram.c +1
-1@@ -625,7 +625,7 @@ pde_is_pte: (int )pte_fields.valid, (int)pte_fields.system); -if (!pte_fields.valid) +if (pdst && !pte_fields.valid)return -1 ;// compute starting address
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx