[PATCH umr] Fix access_vram bug introduced by f105ce1f5c54f3e371f1572292f87cfa9b116b33
Tom St Denis
tom.stdenis at amd.com
Thu Nov 9 13:09:23 UTC 2017
The logic was reversed when PRT support was added.
Signed-off-by: Tom St Denis <tom.stdenis at amd.com>
---
src/lib/read_vram.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/read_vram.c b/src/lib/read_vram.c
index b78d06194add..80f8e056258f 100644
--- a/src/lib/read_vram.c
+++ b/src/lib/read_vram.c
@@ -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) {
--
2.12.0
More information about the amd-gfx
mailing list