All of lore.kernel.org
 help / color / mirror / Atom feed
From: Felix Kuehling <Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
	oded.gabbay-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: Yong Zhao <Yong.Zhao-5C7GfCeVMHo@public.gmane.org>,
	Felix Kuehling <Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
Subject: [PATCH 6/6] drm/amdkfd: Enable Raven for KFD
Date: Thu, 12 Jul 2018 17:24:54 -0400	[thread overview]
Message-ID: <1531430694-23966-7-git-send-email-Felix.Kuehling@amd.com> (raw)
In-Reply-To: <1531430694-23966-1-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>

From: Yong Zhao <Yong.Zhao@amd.com>

Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
---
 drivers/gpu/drm/amd/amdkfd/kfd_device.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device.c b/drivers/gpu/drm/amd/amdkfd/kfd_device.c
index 572235c..1b04871 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_device.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_device.c
@@ -70,6 +70,21 @@ static const struct kfd_device_info carrizo_device_info = {
 	.needs_pci_atomics = false,
 	.num_sdma_engines = 2,
 };
+
+static const struct kfd_device_info raven_device_info = {
+	.asic_family = CHIP_RAVEN,
+	.max_pasid_bits = 16,
+	.max_no_of_hqd  = 24,
+	.doorbell_size  = 8,
+	.ih_ring_entry_size = 8 * sizeof(uint32_t),
+	.event_interrupt_class = &event_interrupt_class_v9,
+	.num_of_watch_points = 4,
+	.mqd_size_aligned = MQD_SIZE_ALIGNED,
+	.supports_cwsr = true,
+	.needs_iommu_device = true,
+	.needs_pci_atomics = true,
+	.num_sdma_engines = 1,
+};
 #endif
 
 static const struct kfd_device_info hawaii_device_info = {
@@ -259,6 +274,7 @@ static const struct kfd_deviceid supported_devices[] = {
 	{ 0x9875, &carrizo_device_info },	/* Carrizo */
 	{ 0x9876, &carrizo_device_info },	/* Carrizo */
 	{ 0x9877, &carrizo_device_info },	/* Carrizo */
+	{ 0x15DD, &raven_device_info },		/* Raven */
 #endif
 	{ 0x67A0, &hawaii_device_info },	/* Hawaii */
 	{ 0x67A1, &hawaii_device_info },	/* Hawaii */
-- 
2.7.4

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

  parent reply	other threads:[~2018-07-12 21:24 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-12 21:24 [PATCH 0/6] Raven support for KFD Felix Kuehling
     [not found] ` <1531430694-23966-1-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2018-07-12 21:24   ` [PATCH 1/6] drm/amdkfd: Consolidate duplicate memory banks info in topology Felix Kuehling
     [not found]     ` <1531430694-23966-2-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2018-07-13 19:24       ` Alex Deucher
2018-07-12 21:24   ` [PATCH 2/6] drm/amdkfd: Make SDMA engine number an ASIC-dependent variable Felix Kuehling
     [not found]     ` <1531430694-23966-3-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2018-07-13 19:25       ` Alex Deucher
2018-07-12 21:24   ` [PATCH 3/6] drm/amdkfd: Avoid flooding dmesg on Raven due to IOMMU issues Felix Kuehling
     [not found]     ` <1531430694-23966-4-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2018-07-13 19:25       ` Alex Deucher
2018-07-12 21:24   ` [PATCH 4/6] drm/amdkfd: Workaround to accommodate Raven too many PPR issue Felix Kuehling
     [not found]     ` <1531430694-23966-5-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2018-07-13 19:26       ` Alex Deucher
2018-07-12 21:24   ` [PATCH 5/6] drm/amdkfd: Optimize out some duplicated code in kfd_signal_iommu_event() Felix Kuehling
     [not found]     ` <1531430694-23966-6-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2018-07-13 19:27       ` Alex Deucher
2018-07-12 21:24   ` Felix Kuehling [this message]
     [not found]     ` <1531430694-23966-7-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2018-07-13 19:28       ` [PATCH 6/6] drm/amdkfd: Enable Raven for KFD Alex Deucher
2018-07-12 22:28   ` [PATCH 0/6] Raven support " Mike Lothian
     [not found]     ` <CAHbf0-Fv9npKsGZmgrNLmx6tS7800YOP4ijFEWGjCa3EwfzftQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-07-13 19:20       ` Felix Kuehling
2018-07-13 20:17 [PATCH 0/6] Raven support for KFD v2 Felix Kuehling
     [not found] ` <1531513068-3805-1-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2018-07-13 20:17   ` [PATCH 6/6] drm/amdkfd: Enable Raven for KFD Felix Kuehling
     [not found]     ` <1531513068-3805-7-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2018-07-30 13:33       ` Paul Menzel
     [not found]         ` <a4f4f2e1-5f2f-2ca4-ce74-e3e76690c7bb-KUpvgZVWgV9o1qOY/usvUg@public.gmane.org>
2018-07-30 13:53           ` Oded Gabbay
2018-07-30 18:25           ` Felix Kuehling

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=1531430694-23966-7-git-send-email-Felix.Kuehling@amd.com \
    --to=felix.kuehling-5c7gfcevmho@public.gmane.org \
    --cc=Yong.Zhao-5C7GfCeVMHo@public.gmane.org \
    --cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=oded.gabbay-Re5JQEeQqe8AvxtiuMwx3w@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 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.