Re: [bisected][regression] drm: amdgpu: system hangs on tty login prompt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The attached patch should fix this.

Alex

On Thu, Dec 23, 2021 at 2:04 PM Tareque Md.Hanif
<tarequemd.hanif@xxxxxxxxx> wrote:
>
> Hi,
>
> I have been testing the 5.16-rc6 kernel and it hangs on tty login prompt on my laptop. Sometimes it lets me to login but "startx" hangs the system. The system is booting fine in 5.15.7.
>
> So I bisected the bug.
>
> first bad commit: [f7f12b25823c0dce1165b390522d29f99c4585b4] drm/amdgpu: default to true in amdgpu_device_asic_has_dc_support
>
> Reverting this commit fixes the issue.
>
> Device Information:
> Laptop model: Dell Inspiron 15 5567
> GPU 0: Intel HD Graphics 620
> GPU 1: AMD ATI Radeon R7 M445
>
> Regards,
> Tareque.
>
From 7b076f1ab562211d2f21d22f2ff9920503796f06 Mon Sep 17 00:00:00 2001
From: Alex Deucher <alexander.deucher@xxxxxxx>
Date: Thu, 23 Dec 2021 14:13:02 -0500
Subject: [PATCH] drm/amdgpu: no DC support for headless chips

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

Fixes: f7f12b25823c0d ("drm/amdgpu: default to true in amdgpu_device_asic_has_dc_support")
Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 9dc86c5a1cad..58e2034984de 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -3166,6 +3166,14 @@ 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:
+	case CHIP_ARCTURUS:
+	case CHIP_ALDEBARAN:
+		/* chips with no display hardware */
+		return false;
 #if defined(CONFIG_DRM_AMD_DC)
 	case CHIP_TAHITI:
 	case CHIP_PITCAIRN:
-- 
2.33.1


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux