All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] drm/amdgpu: set APU flag based on IP discovery table
@ 2022-01-21 20:22 Alex Deucher
  2022-01-21 20:22 ` [PATCH 2/5] drm/amdgpu: move PX checking into amdgpu_device_ip_early_init Alex Deucher
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Alex Deucher @ 2022-01-21 20:22 UTC (permalink / raw)
  To: amd-gfx; +Cc: Alex Deucher

Use the IP versions to set the APU flag when necessary.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
index e6a26b554254..ddbe13c9e4c7 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
@@ -1253,6 +1253,19 @@ int amdgpu_discovery_set_ip_blocks(struct amdgpu_device *adev)
 		return -EINVAL;
 	}
 
+	switch (adev->ip_versions[GC_HWIP][0]) {
+	case IP_VERSION(9, 1, 0):
+	case IP_VERSION(9, 2, 2):
+	case IP_VERSION(9, 3, 0):
+	case IP_VERSION(10, 1, 3):
+	case IP_VERSION(10, 3, 1):
+	case IP_VERSION(10, 3, 3):
+		adev->flags |= AMD_IS_APU;
+		break;
+	default:
+		break;
+	}
+
 	if (adev->ip_versions[XGMI_HWIP][0] == IP_VERSION(4, 8, 0))
 		adev->gmc.xgmi.supported = true;
 
-- 
2.34.1


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

end of thread, other threads:[~2022-01-24  5:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-21 20:22 [PATCH 1/5] drm/amdgpu: set APU flag based on IP discovery table Alex Deucher
2022-01-21 20:22 ` [PATCH 2/5] drm/amdgpu: move PX checking into amdgpu_device_ip_early_init Alex Deucher
2022-01-21 20:22 ` [PATCH 3/5] drm/amdgpu: move runtime pm init after drm and fbdev init Alex Deucher
2022-01-21 20:22 ` [PATCH 4/5] drm/amdgpu: handle BACO synchronization with secondary funcs Alex Deucher
2022-01-24  3:50   ` Quan, Evan
2022-01-21 20:22 ` [PATCH 5/5] drm/amdgpu: convert amdgpu_display_supported_domains() to IP versions Alex Deucher
2022-01-24  5:42 ` [PATCH 1/5] drm/amdgpu: set APU flag based on IP discovery table Liu, Aaron

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.