diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3973-drm-amdkfd-Query-vmid-pasid-mapping-through-stored-i.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3973-drm-amdkfd-Query-vmid-pasid-mapping-through-stored-i.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3973-drm-amdkfd-Query-vmid-pasid-mapping-through-stored-i.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3973-drm-amdkfd-Query-vmid-pasid-mapping-through-stored-i.patch new file mode 100644 index 00000000..dd41e462 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3973-drm-amdkfd-Query-vmid-pasid-mapping-through-stored-i.patch @@ -0,0 +1,36 @@ +From b41ffc6180649d02c93de7bf15c81f44c2a56ee4 Mon Sep 17 00:00:00 2001 +From: Yong Zhao <Yong.Zhao@amd.com> +Date: Wed, 25 Sep 2019 17:06:12 -0400 +Subject: [PATCH 3973/4256] drm/amdkfd: Query vmid pasid mapping through stored + info for non HWS + +Because we record the mapping under non HWS mode in the software, +we can query pasid through vmid using the stored mapping instead of +reading from ATC registers. + +This also prepares for the defeatured ATC block in future ASICs. + +Change-Id: I781cb9d30dc0cc93379908ff1cf8da798bb26f13 +Signed-off-by: Yong Zhao <Yong.Zhao@amd.com> +Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> +--- + drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c b/drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c +index ab8a695c4a3c..ee82632cfed4 100644 +--- a/drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c ++++ b/drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c +@@ -58,8 +58,7 @@ static bool event_interrupt_isr_v9(struct kfd_dev *dev, + memcpy(patched_ihre, ih_ring_entry, + dev->device_info->ih_ring_entry_size); + +- pasid = dev->kfd2kgd->get_atc_vmid_pasid_mapping_pasid( +- dev->kgd, vmid); ++ pasid = dev->dqm->vmid_pasid[vmid]; + + /* Patch the pasid field */ + patched_ihre[3] = cpu_to_le32((le32_to_cpu(patched_ihre[3]) +-- +2.17.1 + |