All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] drm/amdkfd: Adjust function sequences to avoid unnecessary declarations
@ 2019-10-31  0:17 ` Zhao, Yong
  0 siblings, 0 replies; 36+ messages in thread
From: Zhao, Yong @ 2019-10-31  0:17 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Zhao, Yong

This is cleaner.

Change-Id: I8cdecad387d8c547a088c6050f77385ee1135be1
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
---
 .../gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c  | 19 +++++++------------
 1 file changed, 7 insertions(+), 12 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c b/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c
index 9a4bafb2e175..3b5ca2b1d7a6 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c
@@ -26,18 +26,6 @@
 #include "kfd_pm4_headers_ai.h"
 #include "kfd_pm4_opcodes.h"
 
-static bool initialize_v9(struct kernel_queue *kq, struct kfd_dev *dev,
-			enum kfd_queue_type type, unsigned int queue_size);
-static void uninitialize_v9(struct kernel_queue *kq);
-static void submit_packet_v9(struct kernel_queue *kq);
-
-void kernel_queue_init_v9(struct kernel_queue_ops *ops)
-{
-	ops->initialize = initialize_v9;
-	ops->uninitialize = uninitialize_v9;
-	ops->submit_packet = submit_packet_v9;
-}
-
 static bool initialize_v9(struct kernel_queue *kq, struct kfd_dev *dev,
 			enum kfd_queue_type type, unsigned int queue_size)
 {
@@ -67,6 +55,13 @@ static void submit_packet_v9(struct kernel_queue *kq)
 				kq->pending_wptr64);
 }
 
+void kernel_queue_init_v9(struct kernel_queue_ops *ops)
+{
+	ops->initialize = initialize_v9;
+	ops->uninitialize = uninitialize_v9;
+	ops->submit_packet = submit_packet_v9;
+}
+
 static int pm_map_process_v9(struct packet_manager *pm,
 		uint32_t *buffer, struct qcm_process_device *qpd)
 {
-- 
2.17.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2019-11-07 20:42 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-31  0:17 [PATCH 1/3] drm/amdkfd: Adjust function sequences to avoid unnecessary declarations Zhao, Yong
2019-10-31  0:17 ` Zhao, Yong
     [not found] ` <20191031001739.10764-1-Yong.Zhao-5C7GfCeVMHo@public.gmane.org>
2019-10-31  0:17   ` [PATCH 2/3] drm/amdkfd: only keep release_mem function for Hawaii Zhao, Yong
2019-10-31  0:17     ` Zhao, Yong
     [not found]     ` <20191031001739.10764-2-Yong.Zhao-5C7GfCeVMHo@public.gmane.org>
2019-11-07  4:45       ` Kuehling, Felix
2019-11-07  4:45         ` Kuehling, Felix
     [not found]         ` <31102345-20f7-1b0e-dd2a-f7984b253a07-5C7GfCeVMHo@public.gmane.org>
2019-11-07 16:57           ` Zhao, Yong
2019-11-07 16:57             ` Zhao, Yong
     [not found]             ` <DM6PR12MB2778C141CFEA0006DA2CEC6DF0780-lmeGfMZKVrFSet88YzIdmgdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2019-11-07 17:33               ` Russell, Kent
2019-11-07 17:33                 ` Russell, Kent
     [not found]                 ` <CY4PR1201MB2533087B346C4619F461FF3185780-1iTaO6aE1DCmssYNuJz6EmrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2019-11-07 17:39                   ` Zhao, Yong
2019-11-07 17:39                     ` Zhao, Yong
     [not found]                     ` <41a6b535-ab7a-44f4-2899-f211f5ddc296-5C7GfCeVMHo@public.gmane.org>
2019-11-07 17:47                       ` Kuehling, Felix
2019-11-07 17:47                         ` Kuehling, Felix
     [not found]                         ` <85fd399c-5fa9-bdef-cdf6-433e80ba6407-5C7GfCeVMHo@public.gmane.org>
2019-11-07 18:17                           ` Russell, Kent
2019-11-07 18:17                             ` Russell, Kent
2019-11-07 18:32                           ` Alex Deucher
2019-11-07 18:32                             ` Alex Deucher
     [not found]                             ` <CADnq5_Og4AWKdYFpa8hvmd2XXjr1Wzb_a26gqsq1H6c7NkWmMA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-11-07 18:54                               ` Zhao, Yong
2019-11-07 18:54                                 ` Zhao, Yong
     [not found]                                 ` <DM6PR12MB2778007D58A5332F6A030DA3F0780-lmeGfMZKVrFSet88YzIdmgdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2019-11-07 19:12                                   ` Kuehling, Felix
2019-11-07 19:12                                     ` Kuehling, Felix
     [not found]                                     ` <b4a76aeb-4d2c-c348-01bd-a40124930241-5C7GfCeVMHo@public.gmane.org>
2019-11-07 19:40                                       ` Zhao, Yong
2019-11-07 19:40                                         ` Zhao, Yong
     [not found]                                         ` <DM6PR12MB2778CD10620AEDD371AC088EF0780-lmeGfMZKVrFSet88YzIdmgdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2019-11-07 20:31                                           ` Kuehling, Felix
2019-11-07 20:31                                             ` Kuehling, Felix
     [not found]                                             ` <6e021a24-eeb0-e1e1-d467-87ab48a6c7bc-5C7GfCeVMHo@public.gmane.org>
2019-11-07 20:37                                               ` Zhao, Yong
2019-11-07 20:37                                                 ` Zhao, Yong
2019-11-07 20:42                               ` Kuehling, Felix
2019-11-07 20:42                                 ` Kuehling, Felix
2019-10-31  0:17   ` [PATCH 3/3] drm/amdkfd: Use kernel queue v9 functions for v10 Zhao, Yong
2019-10-31  0:17     ` Zhao, Yong
     [not found]     ` <20191031001739.10764-3-Yong.Zhao-5C7GfCeVMHo@public.gmane.org>
2019-11-07  4:52       ` Kuehling, Felix
2019-11-07  4:52         ` Kuehling, Felix
2019-11-07  4:45   ` [PATCH 1/3] drm/amdkfd: Adjust function sequences to avoid unnecessary declarations Kuehling, Felix
2019-11-07  4:45     ` Kuehling, Felix

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.