AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] drm/amd/display: Add ASICREV_IS_PICASSO
@ 2019-05-14 17:49 Harry Wentland
       [not found] ` <20190514174935.28605-1-harry.wentland-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Harry Wentland @ 2019-05-14 17:49 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
  Cc: Alexander.Deucher-5C7GfCeVMHo, Harry Wentland,
	Tony.Cheng-5C7GfCeVMHo, Nicholas.Kazlauskas-5C7GfCeVMHo

[WHY]
We only want to load DMCU FW on Picasso and Raven 2, not on Raven 1.

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
---
 drivers/gpu/drm/amd/display/include/dal_asic_id.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

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 1a9b7507784f..072d8d7debf5 100644
--- a/drivers/gpu/drm/amd/display/include/dal_asic_id.h
+++ b/drivers/gpu/drm/amd/display/include/dal_asic_id.h
@@ -139,13 +139,14 @@
 #define RAVEN1_F0 0xF0
 #define RAVEN_UNKNOWN 0xFF
 
-#if defined(CONFIG_DRM_AMD_DC_DCN1_01)
-#define ASICREV_IS_RAVEN2(eChipRev) ((eChipRev >= RAVEN2_A0) && (eChipRev < 0xF0))
-#endif /* DCN1_01 */
 #define ASIC_REV_IS_RAVEN(eChipRev) ((eChipRev >= RAVEN_A0) && eChipRev < RAVEN_UNKNOWN)
 #define RAVEN1_F0 0xF0
 #define ASICREV_IS_RV1_F0(eChipRev) ((eChipRev >= RAVEN1_F0) && (eChipRev < RAVEN_UNKNOWN))
 
+#if defined(CONFIG_DRM_AMD_DC_DCN1_01)
+#define ASICREV_IS_PICASSO(eChipRev) ((eChipRev >= PICASSO_A0) && (eChipRev < RAVEN2_A0))
+#define ASICREV_IS_RAVEN2(eChipRev) ((eChipRev >= RAVEN2_A0) && (eChipRev < 0xF0))
+#endif /* DCN1_01 */
 
 #define FAMILY_RV 142 /* DCN 1*/
 
-- 
2.21.0

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

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

end of thread, other threads:[~2019-05-14 20:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-14 17:49 [PATCH 1/3] drm/amd/display: Add ASICREV_IS_PICASSO Harry Wentland
     [not found] ` <20190514174935.28605-1-harry.wentland-5C7GfCeVMHo@public.gmane.org>
2019-05-14 17:49   ` [PATCH 2/3] drm/amd/display: Don't load DMCU for Raven 1 Harry Wentland
2019-05-14 17:49   ` [PATCH 3/3] drm/amd/display: Drop DCN1_01 guards Harry Wentland
     [not found]     ` <20190514174935.28605-3-harry.wentland-5C7GfCeVMHo@public.gmane.org>
2019-05-14 18:02       ` Kazlauskas, Nicholas
     [not found]         ` <6373fba9-967a-8ea0-ceb4-45dc8f599a73-5C7GfCeVMHo@public.gmane.org>
2019-05-14 18:16           ` Harry Wentland
2019-05-14 18:20   ` [PATCH 1/3] drm/amd/display: Add ASICREV_IS_PICASSO Kazlauskas, Nicholas
     [not found]     ` <387c6572-f872-44e1-3b41-de6ae957646d-5C7GfCeVMHo@public.gmane.org>
2019-05-14 20:24       ` Harry Wentland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox