diff options
author | Joshua Bakita <bakitajoshua@gmail.com> | 2024-04-21 17:18:10 -0400 |
---|---|---|
committer | Joshua Bakita <bakitajoshua@gmail.com> | 2024-04-21 17:18:10 -0400 |
commit | fa1c67d86e8071fee8873aaa03ab4ece3a189b64 (patch) | |
tree | 423bfee00a5a21ac549d46315aacc6ac3ec4fb6a /runlist.c | |
parent | 613b1589a3da73cdc5e9313d65bc7c723f574531 (diff) |
Match aperture when doing page table searches
Previously, addresses of any aperture would match. This can result
in very confusing results when attempting to verify that a mapping
correctly exists.
Diffstat (limited to 'runlist.c')
-rw-r--r-- | runlist.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -64,9 +64,9 @@ int get_runlist_iter(struct nvdebug_state *g, int rl_id, struct runlist_iter *rl | |||
64 | goto attempt_pramin_access; | 64 | goto attempt_pramin_access; |
65 | 65 | ||
66 | if (pd_config.is_ver2) | 66 | if (pd_config.is_ver2) |
67 | runlist_bar_vaddr = search_page_directory(g, pd_config, runlist_iova); | 67 | runlist_bar_vaddr = search_page_directory(g, pd_config, runlist_iova, TARGET_VID_MEM); |
68 | else | 68 | else |
69 | runlist_bar_vaddr = search_v1_page_directory(g, pd_config, runlist_iova); | 69 | runlist_bar_vaddr = search_v1_page_directory(g, pd_config, runlist_iova, TARGET_VID_MEM); |
70 | if (!runlist_bar_vaddr) { | 70 | if (!runlist_bar_vaddr) { |
71 | printk(KERN_WARNING "[nvdebug] Unable to find runlist %d mapping in BAR2/3 page tables for %x.\n", rl_id, g->chip_id); | 71 | printk(KERN_WARNING "[nvdebug] Unable to find runlist %d mapping in BAR2/3 page tables for %x.\n", rl_id, g->chip_id); |
72 | err = -EOPNOTSUPP; | 72 | err = -EOPNOTSUPP; |