From: Mauro Rossi <issor.oruam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Cc: mike-4+n8WJKc9ve9FHfhHBbuYA@public.gmane.org,
ckoenig.leichtzumerken-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
Mauro Rossi <issor.oruam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
sylvain.bertrand-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
alexander.deucher-5C7GfCeVMHo@public.gmane.org,
harry.wentland-5C7GfCeVMHo@public.gmane.org
Subject: [PATCH v2 01/10] drm/amd/display: add asics info for SI parts
Date: Wed, 17 Oct 2018 10:35:04 +0200 [thread overview]
Message-ID: <20181017083513.20913-2-issor.oruam@gmail.com> (raw)
In-Reply-To: <20181017083513.20913-1-issor.oruam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Asics info retrieved from si_id.h in https://github.com/GPUOpen-Tools/CodeXL
Tree path:
./CodeXL/Components/ShaderAnalyzer/AMDTBackEnd/Include/Common/asic_reg/si_id.h
---
.../gpu/drm/amd/display/include/dal_asic_id.h | 40 +++++++++++++++++++
.../gpu/drm/amd/display/include/dal_types.h | 3 ++
2 files changed, 43 insertions(+)
diff --git a/drivers/gpu/drm/amd/display/include/dal_asic_id.h b/drivers/gpu/drm/amd/display/include/dal_asic_id.h
index 4f501ddcfb8d..5b600c9445bd 100644
--- a/drivers/gpu/drm/amd/display/include/dal_asic_id.h
+++ b/drivers/gpu/drm/amd/display/include/dal_asic_id.h
@@ -30,6 +30,34 @@
* ASIC internal revision ID
*/
+/* DCE60 (based on si_id.h in GPUOpen-Tools CodeXL) */
+#define SI_TAHITI_P_A0 0x01
+#define SI_TAHITI_P_B0 0x05
+#define SI_TAHITI_P_B1 0x06
+#define SI_PITCAIRN_PM_A0 0x14
+#define SI_PITCAIRN_PM_A1 0x15
+#define SI_CAPEVERDE_M_A0 0x28
+#define SI_CAPEVERDE_M_A1 0x29
+#define SI_OLAND_M_A0 0x3C
+#define SI_HAINAN_V_A0 0x46
+
+#define SI_UNKNOWN 0xFF
+
+#define ASIC_REV_IS_TAHITI_P(rev) \
+ ((rev >= SI_TAHITI_P_A0) && (rev < SI_PITCAIRN_PM_A0))
+
+#define ASIC_REV_IS_PITCAIRN_PM(rev) \
+ ((rev >= SI_PITCAIRN_PM_A0) && (rev < SI_CAPEVERDE_M_A0))
+
+#define ASIC_REV_IS_CAPEVERDE_M(rev) \
+ ((rev >= SI_CAPEVERDE_M_A0) && (rev < SI_OLAND_M_A0))
+
+#define ASIC_REV_IS_OLAND_M(rev) \
+ ((rev >= SI_OLAND_M_A0) && (rev < SI_HAINAN_V_A0))
+
+#define ASIC_REV_IS_HAINAN_V(rev) \
+ ((rev >= SI_HAINAN_V_A0) && (rev < SI_UNKNOWN))
+
/* DCE80 (based on ci_id.h in Perforce) */
#define CI_BONAIRE_M_A0 0x14
#define CI_BONAIRE_M_A1 0x15
@@ -150,12 +178,24 @@
/*
* ASIC chip ID
*/
+
+/* DCE60 */
+#define DEVICE_ID_SI_TAHITI_P_6780 0x6780
+#define DEVICE_ID_SI_PITCAIRN_PM_6800 0x6800
+#define DEVICE_ID_SI_PITCAIRN_PM_6808 0x6808
+#define DEVICE_ID_SI_CAPEVERDE_M_6820 0x6820
+#define DEVICE_ID_SI_CAPEVERDE_M_6828 0x6828
+#define DEVICE_ID_SI_OLAND_M_6600 0x6600
+#define DEVICE_ID_SI_OLAND_M_6608 0x6608
+#define DEVICE_ID_SI_HAINAN_V_6660 0x6660
+
/* DCE80 */
#define DEVICE_ID_KALINDI_9834 0x9834
#define DEVICE_ID_TEMASH_9839 0x9839
#define DEVICE_ID_TEMASH_983D 0x983D
/* Asic Family IDs for different asic family. */
+#define FAMILY_SI 110 /* Southern Islands: Tahiti (P), Pitcairn (PM), Cape Verde (M), Oland (M), Hainan (V) */
#define FAMILY_CI 120 /* Sea Islands: Hawaii (P), Bonaire (M) */
#define FAMILY_KV 125 /* Fusion => Kaveri: Spectre, Spooky; Kabini: Kalindi */
#define FAMILY_VI 130 /* Volcanic Islands: Iceland (V), Tonga (M) */
diff --git a/drivers/gpu/drm/amd/display/include/dal_types.h b/drivers/gpu/drm/amd/display/include/dal_types.h
index 89627133e188..c79f42544aae 100644
--- a/drivers/gpu/drm/amd/display/include/dal_types.h
+++ b/drivers/gpu/drm/amd/display/include/dal_types.h
@@ -34,6 +34,9 @@ struct dc_bios;
enum dce_version {
DCE_VERSION_UNKNOWN = (-1),
+ DCE_VERSION_6_0,
+ DCE_VERSION_6_1,
+ DCE_VERSION_6_4,
DCE_VERSION_8_0,
DCE_VERSION_8_1,
DCE_VERSION_8_3,
--
2.17.1
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
next prev parent reply other threads:[~2018-10-17 8:35 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-17 8:35 [PATCH v2] drm/amd/display: add SI support to AMD DC Mauro Rossi
[not found] ` <20181017083513.20913-1-issor.oruam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-10-17 8:35 ` Mauro Rossi [this message]
2018-10-17 8:35 ` [PATCH v2 02/10] drm/amd/display: dc/dce: add DCE6 support (v2) Mauro Rossi
[not found] ` <20181017083513.20913-3-issor.oruam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-10-17 19:47 ` Wentland, Harry
[not found] ` <a5028d9a-c12c-6856-f4ed-a602783a85a7-5C7GfCeVMHo@public.gmane.org>
2018-10-27 9:55 ` Mauro Rossi
2019-02-08 16:43 ` Mauro Rossi
2018-10-17 8:35 ` [PATCH v2 03/10] drm/amd/display: dc/core: add DCE6 support Mauro Rossi
[not found] ` <20181017083513.20913-4-issor.oruam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-10-17 19:50 ` Wentland, Harry
[not found] ` <c7882ed4-9a83-8838-8966-c1f725fa4a18-5C7GfCeVMHo@public.gmane.org>
2018-10-17 19:53 ` Wentland, Harry
2018-10-17 8:35 ` [PATCH v2 04/10] drm/amd/display: dc/bios: add support for DCE6 Mauro Rossi
[not found] ` <20181017083513.20913-5-issor.oruam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-10-17 19:53 ` Wentland, Harry
[not found] ` <4366d902-ebd2-50ac-9f6c-ba14da12f084-5C7GfCeVMHo@public.gmane.org>
2018-10-17 20:10 ` Alex Deucher
[not found] ` <CADnq5_PeTsiUnqZ+MOA8h6_rzD+d_fn1uv+Z0sOUNXJabUnwCg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-10-17 20:16 ` Wentland, Harry
[not found] ` <ee9d5e75-798d-8277-0bda-402056706de5-5C7GfCeVMHo@public.gmane.org>
2018-10-17 20:42 ` Alex Deucher
[not found] ` <CADnq5_M0+N91dYW7v5XftPsBVxVb-t36=8x4EOrnjZDfheDiZw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-10-17 21:14 ` Wentland, Harry
2018-10-17 8:35 ` [PATCH v2 05/10] drm/amd/display: dc/gpio: " Mauro Rossi
2018-10-17 8:35 ` [PATCH v2 06/10] drm/amd/display: dc/i2caux: " Mauro Rossi
2018-10-17 8:35 ` [PATCH v2 07/10] drm/amd/display: dc/irq: " Mauro Rossi
[not found] ` <20181017083513.20913-8-issor.oruam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-10-17 20:12 ` Wentland, Harry
[not found] ` <995415f5-052a-a534-0550-b92a3bee05f6-5C7GfCeVMHo@public.gmane.org>
2019-01-02 0:12 ` [PATCH] WIP: drm/amd/display: dc/irq: use dce_6_0_{d,sh_mask}.h Mauro Rossi
[not found] ` <20190102001202.31313-1-issor.oruam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2019-01-09 19:07 ` Mauro Rossi
[not found] ` <CAEQFVGZ=T-oE9yeC=apjBgOn1WXxFxzgSy1RVjdnwaQ7buw-Yg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-01-10 1:57 ` Mauro Rossi
2018-10-17 8:35 ` [PATCH v2 08/10] drm/amd/display: amdgpu_dm: add SI support (v2) Mauro Rossi
2018-10-17 8:35 ` [PATCH v2 09/10] drm/amdgpu: enable DC support for SI parts (v2) Mauro Rossi
2018-10-17 8:35 ` [PATCH v2 10/10] drm/amd/display: enable SI support in the Kconfig (v2) Mauro Rossi
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=20181017083513.20913-2-issor.oruam@gmail.com \
--to=issor.oruam-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=alexander.deucher-5C7GfCeVMHo@public.gmane.org \
--cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
--cc=ckoenig.leichtzumerken-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=harry.wentland-5C7GfCeVMHo@public.gmane.org \
--cc=mike-4+n8WJKc9ve9FHfhHBbuYA@public.gmane.org \
--cc=sylvain.bertrand-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox