Skip to contentSkip to conversation

drm/amdgpu: no DC support for headless chips

PATCH In review Alex Deucher 3 participants 3 messages Dec 27, 2021 – Dec 28, 2021

Subsystems (2)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

PATCH 1/1 drm/amdgpu: no DC support for headless chips

Chips with no display hardware should return false for DC support.

v2: drop Arcturus and Aldebaran

Fixes f7f12b25823c0d ("drm/amdgpu: default to true in amdgpu_device_asic_has_dc_support")
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +6 -0
index 9dc86c5a1cad..694c3726e0f4 100644
@@ -3166,6 +3166,12 @@ static void amdgpu_device_detect_sriov_bios(struct amdgpu_device *adev)
 bool amdgpu_device_asic_has_dc_support(enum amd_asic_type asic_type)
 {
 	switch (asic_type) {
+#ifdef CONFIG_DRM_AMDGPU_SI
+	case CHIP_HAINAN:
+#endif
+	case CHIP_TOPAZ:
+		/* chips with no display hardware */
+		return false;
 #if defined(CONFIG_DRM_AMD_DC)
 	case CHIP_TAHITI:
 	case CHIP_PITCAIRN:
Signature · 1 line
2.33.1
Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only]

Quoted 43 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: Tuesday, December 28, 2021 1:12 AM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Tareque Md . Hanif <[email protected]>
Subject: [PATCH] drm/amdgpu: no DC support for headless chips

Chips with no display hardware should return false for DC support.

v2: drop Arcturus and Aldebaran

Fixes f7f12b25823c0d ("drm/amdgpu: default to true in

amdgpu_device_asic_has_dc_support")

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +6 -0
index 9dc86c5a1cad..694c3726e0f4 100644
@@ -3166,6 +3166,12 @@ static void
 amdgpu_device_detect_sriov_bios(struct amdgpu_device *adev)
 bool amdgpu_device_asic_has_dc_support(enum amd_asic_type asic_type)
 {
 	switch (asic_type) {
+#ifdef CONFIG_DRM_AMDGPU_SI
+	case CHIP_HAINAN:
+#endif
+	case CHIP_TOPAZ:
+		/* chips with no display hardware */
+		return false;
 #if defined(CONFIG_DRM_AMD_DC)
 	case CHIP_TAHITI:

case CHIP_PITCAIRN:
--
2.33.1

Reviewed-by on v1 1/1
#2 lore raw
In reply to Alex Deucher

[Public]

Regards,
Guchun

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: Tuesday, December 28, 2021 1:12 AM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Tareque Md . Hanif <[email protected]>
Subject: [PATCH] drm/amdgpu: no DC support for headless chips

Chips with no display hardware should return false for DC support.

v2: drop Arcturus and Aldebaran

Fixes f7f12b25823c0d ("drm/amdgpu: default to true in amdgpu_device_asic_has_dc_support")
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +6 -1
index 9dc86c5a1cad..694c3726e0f4 100644
@@ -3166,6 +3166,12 @@ static void amdgpu_device_detect_sriov_bios(struct amdgpu_device *adev)  bool amdgpu_device_asic_has_dc_support(enum amd_asic_type asic_type)  {
 	switch (asic_type) {
+#ifdef CONFIG_DRM_AMDGPU_SI
+	case CHIP_HAINAN:
+#endif
+	case CHIP_TOPAZ:
+		/* chips with no display hardware */
+		return false;
 #if defined(CONFIG_DRM_AMD_DC)
 	case CHIP_TAHITI:
 	case CHIP_PITCAIRN:
--

2.33.1