From: Oak Zeng <zengshanjun-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Cc: Oak Zeng <Oak.Zeng-5C7GfCeVMHo@public.gmane.org>
Subject: [PATCH 2/2] drm/amdgpu: Deleted faults kfifo
Date: Thu, 6 Sep 2018 23:28:30 -0400 [thread overview]
Message-ID: <1536290910-6476-2-git-send-email-Oak.Zeng@amd.com> (raw)
In-Reply-To: <1536290910-6476-1-git-send-email-Oak.Zeng-5C7GfCeVMHo@public.gmane.org>
With the change of making fault hash per vm, this is not needed
anymore.
Change-Id: I9427ff1786deaf1f5b7d121a6f7f75f00acfc9b7
Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 5 -----
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 3 ---
drivers/gpu/drm/amd/amdgpu/vega10_ih.c | 9 ---------
3 files changed, 17 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
index 8b220e9..5767a95 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@ -2802,7 +2802,6 @@ int amdgpu_vm_init(struct amdgpu_device *adev, struct amdgpu_vm *vm,
goto error_free_root;
}
- INIT_KFIFO(vm->faults);
vm->fault_credit = 16;
return 0;
@@ -2993,10 +2992,6 @@ void amdgpu_vm_fini(struct amdgpu_device *adev, struct amdgpu_vm *vm)
amdgpu_amdkfd_gpuvm_destroy_cb(adev, vm);
- /* Clear pending page faults from IH when the VM is destroyed */
- while (kfifo_get(&vm->faults, &fault))
- amdgpu_vm_clear_fault(vm->fault_hash, fault);
-
if (vm->pasid) {
unsigned long flags;
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
index 6eb1da1..75842f1 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
@@ -225,9 +225,6 @@ struct amdgpu_vm {
/* Flag to indicate ATS support from PTE for GFX9 */
bool pte_support_ats;
- /* Up to 128 pending retry page faults */
- DECLARE_KFIFO(faults, u64, 128);
-
/* Limit non-retry fault storms */
unsigned int fault_credit;
diff --git a/drivers/gpu/drm/amd/amdgpu/vega10_ih.c b/drivers/gpu/drm/amd/amdgpu/vega10_ih.c
index acbe5a7..7f0ed91 100644
--- a/drivers/gpu/drm/amd/amdgpu/vega10_ih.c
+++ b/drivers/gpu/drm/amd/amdgpu/vega10_ih.c
@@ -265,7 +265,6 @@ static bool vega10_ih_prescreen_iv(struct amdgpu_device *adev)
return true;
}
- /* Track retry faults in per-VM fault FIFO. */
spin_lock(&adev->vm_manager.pasid_lock);
vm = idr_find(&adev->vm_manager.pasid_idr, pasid);
addr = ((u64)(dw5 & 0xf) << 44) | ((u64)dw4 << 12);
@@ -285,14 +284,6 @@ static bool vega10_ih_prescreen_iv(struct amdgpu_device *adev)
goto ignore_iv;
}
}
- /* No locking required with single writer and single reader */
- r = kfifo_put(&vm->faults, key);
- if (!r) {
- /* FIFO is full. Ignore it until there is space */
- amdgpu_vm_clear_fault(vm->fault_hash, key);
- spin_unlock(&adev->vm_manager.pasid_lock);
- goto ignore_iv;
- }
spin_unlock(&adev->vm_manager.pasid_lock);
/* It's the first fault for this address, process it normally */
--
2.7.4
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
next prev parent reply other threads:[~2018-09-07 3:28 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-07 3:28 [PATCH 1/2] drm/amdgpu: Moved fault hash table to amdgpu vm Oak Zeng
[not found] ` <1536290910-6476-1-git-send-email-Oak.Zeng-5C7GfCeVMHo@public.gmane.org>
2018-09-07 3:28 ` Oak Zeng [this message]
2018-09-07 4:16 ` ozeng
[not found] ` <12913b70-925d-2e17-2dc2-491ed8592610-5C7GfCeVMHo@public.gmane.org>
2018-09-07 8:38 ` Christian König
[not found] ` <546c9911-b7af-03c8-b5e2-f2bb07932c0b-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-09-07 14:55 ` Zeng, Oak
[not found] ` <BN6PR12MB1651779BF0B3AE84E1C4430C80000-/b2+HYfkarRSqX7PDniLCgdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-09-07 15:18 ` Christian König
[not found] ` <89e7515f-53f1-9f10-aeb6-7fc1b8df2702-5C7GfCeVMHo@public.gmane.org>
2018-09-07 15:30 ` Zeng, Oak
[not found] ` <BN6PR12MB1651CA24220B91670A75890C80000-/b2+HYfkarRSqX7PDniLCgdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-09-07 15:41 ` Christian König
[not found] ` <0e52fe27-716c-f9d3-9b2c-5540825ffcef-5C7GfCeVMHo@public.gmane.org>
2018-09-07 21:52 ` Zeng, Oak
[not found] ` <BN6PR12MB1651CCA8BB73DE64815EB0B280000-/b2+HYfkarRSqX7PDniLCgdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-09-08 7:16 ` Christian König
[not found] ` <bf233da4-5cd9-d7e4-1e9a-fbef3613bfd6-5C7GfCeVMHo@public.gmane.org>
2018-09-10 21:09 ` Zeng, Oak
2018-09-08 0:27 ` Felix Kuehling
[not found] ` <ab2c26bc-e168-eaae-3d80-826a47b3e0d3-5C7GfCeVMHo@public.gmane.org>
2018-09-08 7:34 ` Christian König
[not found] ` <9b6b78aa-c98a-a741-7ce2-0e7811e1f806-5C7GfCeVMHo@public.gmane.org>
2018-09-10 9:42 ` Christian König
[not found] ` <143b57c2-12d1-8cb1-ddea-a8fe7226e1c4-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-09-10 19:10 ` Felix Kuehling
[not found] ` <8cee8563-2df9-1075-3113-66135cbd14fd-5C7GfCeVMHo@public.gmane.org>
2018-09-11 7:19 ` Christian König
[not found] ` <82fb54c4-8cf2-9033-9fb4-f76e747d7b87-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-09-11 14:09 ` Zeng, Oak
[not found] ` <DM5PR12MB1660F46176F685755F5BC48880040-2J9CzHegvk9mP71xM+BsFwdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-09-11 14:23 ` Christian König
[not found] ` <375d7ba0-1da4-b5b3-6eb9-0d947290ee74-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-09-11 15:02 ` Zeng, Oak
[not found] ` <DM5PR12MB16608D6DAB8D9BFAAE348C4780040-2J9CzHegvk9mP71xM+BsFwdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-09-11 15:15 ` Christian König
2018-09-11 22:00 ` Felix Kuehling
[not found] ` <5b9dc941-3d29-21ca-9f92-ba3512900660-5C7GfCeVMHo@public.gmane.org>
2018-09-12 6:56 ` Christian König
[not found] ` <ea317e02-546b-b296-2456-542e86d62b6e-5C7GfCeVMHo@public.gmane.org>
2018-09-12 15:29 ` Felix Kuehling
[not found] ` <2e37f4d8-9f64-5412-8fa3-9ef1a12c4001-5C7GfCeVMHo@public.gmane.org>
2018-09-12 15:59 ` Christian König
[not found] ` <0fa9086e-49c7-580e-2611-4878c92899f5-5C7GfCeVMHo@public.gmane.org>
2018-09-13 4:45 ` Kuehling, Felix
[not found] ` <DM5PR12MB1707D50758797558D34F17A0921A0-2J9CzHegvk9TCtO+SvGBKwdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-09-13 7:02 ` Christian König
2018-09-12 9:03 ` Christian König
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1536290910-6476-2-git-send-email-Oak.Zeng@amd.com \
--to=zengshanjun-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=Oak.Zeng-5C7GfCeVMHo@public.gmane.org \
--cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox