From fa1c67d86e8071fee8873aaa03ab4ece3a189b64 Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Sun, 21 Apr 2024 17:18:10 -0400 Subject: 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. --- runlist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runlist.c') diff --git a/runlist.c b/runlist.c index 2eee01c..22f47ff 100644 --- a/runlist.c +++ b/runlist.c @@ -64,9 +64,9 @@ int get_runlist_iter(struct nvdebug_state *g, int rl_id, struct runlist_iter *rl goto attempt_pramin_access; if (pd_config.is_ver2) - runlist_bar_vaddr = search_page_directory(g, pd_config, runlist_iova); + runlist_bar_vaddr = search_page_directory(g, pd_config, runlist_iova, TARGET_VID_MEM); else - runlist_bar_vaddr = search_v1_page_directory(g, pd_config, runlist_iova); + runlist_bar_vaddr = search_v1_page_directory(g, pd_config, runlist_iova, TARGET_VID_MEM); if (!runlist_bar_vaddr) { printk(KERN_WARNING "[nvdebug] Unable to find runlist %d mapping in BAR2/3 page tables for %x.\n", rl_id, g->chip_id); err = -EOPNOTSUPP; -- cgit v1.2.2