Skip to content

Commit b7e8a40

Browse files
author
msubram
committed
2 parents b76d987 + 35edec7 commit b7e8a40

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • src/runtime_src/core/edge/drm/zocl/common

src/runtime_src/core/edge/drm/zocl/common/zocl_bo.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,12 +1290,14 @@ static bool check_for_reserved_memory(uint64_t start_addr, size_t size)
12901290
struct resource res_mem;
12911291
int err;
12921292

1293-
mem_np = of_find_node_by_name(NULL, "reserved-memory");
1293+
mem_np = of_find_node_by_path("/reserved-memory");
12941294
if(!mem_np)
12951295
return false;
12961296

12971297
/* Traverse through all the child nodes */
12981298
for (np_it = NULL; (np_it = of_get_next_child(mem_np, np_it)) != NULL;) {
1299+
if (!of_property_read_bool(np_it, "no-map"))
1300+
continue;
12991301
err = of_address_to_resource(np_it, 0, &res_mem);
13001302
if (!err) {
13011303
/* Check the given address and size fall

0 commit comments

Comments
 (0)