Skip to contentSkip to conversation

Fix access_vram bug introduced by f105ce1f5c54f3e371f1572292f87cfa9b116b33

PATCH New Tom St Denis 1 participant 1 message Nov 9, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix access_vram bug introduced by f105ce1f5c54f3e371f1572292f87cfa9b116b33

The logic was reversed when PRT support was added.

---
 src/lib/read_vram.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/lib/read_vram.c +1 -1
index b78d06194add..80f8e056258f 100644
@@ -632,7 +632,7 @@ pde_is_pte:
 			(unsigned long long)start_addr, (unsigned long)chunk_size);
 
 		// allow destination to be NULL to simply use decoder
-		if (!pte_fields.valid) {
+		if (pte_fields.valid) {
 			if (pdst) {
 				if (pte_fields.system) {
 					if (umr_access_sram(start_addr, chunk_size, pdst, write_en) < 0) {
Signature · 6 lines
2.12.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx