Skip to contentSkip to conversation

Continue decoding a PDB when using --vm-decode

PATCH In review Tom St Denis 2 participants 2 messages Jan 22, 2018 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

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.

---
 src/lib/read_vram.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
src/lib/read_vram.c +4 -4
index 32b024529b12..491a55f69d49 100644
@@ -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

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Am 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.

Quoted 36 lines
---
  src/lib/read_vram.c | 8 ++++----
  1 file changed, 4 insertions(+), 4 deletions(-)
src/lib/read_vram.c +3 -3
index 32b024529b12..491a55f69d49 100644
@@ -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