Skip to contentSkip to conversation

drm/amdgpu: Don't default to DC support for Kaveri and older

PATCH Superseded Harry Wentland 2 participants 3 messages May 7, 2018 – May 8, 2018 2 messages not in the archive

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 drm/amdgpu: Don't default to DC support for Kaveri and older

We've had a number of users report failures to detect and light up display with DC with LVDS and VGA. These connector types are not currently supported with DC. I'd like to add support but unfortunately don't have a system with LVDS or VGA available.

In order not to cause regressions we should probably fallback to the non-DC driver for ASICs that support VGA and LVDS.

These ASICs are:
* Bonaire
* Kabini
* Kaveri

ASIC support can always be force enabled with amdgpu.dc=1

v2: Keep Hawaii on DC

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +9 -1
index 887f7c9e84e0..0a23134147b7 100644
@@ -2141,9 +2141,17 @@ bool amdgpu_device_asic_has_dc_support(enum amd_asic_type asic_type)
 	switch (asic_type) {
 #if defined(CONFIG_DRM_AMD_DC)
 	case CHIP_BONAIRE:
-	case CHIP_HAWAII:
 	case CHIP_KAVERI:
 	case CHIP_KABINI:
+		/*
+		 * We have systems in the wild with these ASICs that require
+		 * LVDS and VGA support which is not supported with DC.
+		 *
+		 * Fallback to the non-DC driver here by default so as not to
+		 * cause regressions.
+		 */
+		return amdgpu_dc > 0;
+	case CHIP_HAWAII:
 	case CHIP_MULLINS:
 	case CHIP_CARRIZO:
 	case CHIP_STONEY:
Signature · 6 lines
2.17.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 20180507232446.32747-1-harry.wentland-5C7GfCeVMHo@public.gmane.org

#2 lore raw

You need to include mullins as well. It's the same feature set as kabini.

Alex

________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Harry Wentland <[email protected]>
Sent: Monday, May 7, 2018 7:24 PM
To: [email protected]; Deucher, Alexander
Cc: Wentland, Harry
Subject: [PATCH v2] drm/amdgpu: Don't default to DC support for Kaveri and older

We've had a number of users report failures to detect and light up display with DC with LVDS and VGA. These connector types are not currently supported with DC. I'd like to add support but unfortunately don't have a system with LVDS or VGA available.

In order not to cause regressions we should probably fallback to the non-DC driver for ASICs that support VGA and LVDS.

These ASICs are:
* Bonaire
* Kabini
* Kaveri

ASIC support can always be force enabled with amdgpu.dc=1

v2: Keep Hawaii on DC

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +9 -1
index 887f7c9e84e0..0a23134147b7 100644
@@ -2141,9 +2141,17 @@ bool amdgpu_device_asic_has_dc_support(enum amd_asic_type asic_type)
         switch (asic_type) {
 #if defined(CONFIG_DRM_AMD_DC)
         case CHIP_BONAIRE:
-       case CHIP_HAWAII:
         case CHIP_KAVERI:
         case CHIP_KABINI:
+               /*
+                * We have systems in the wild with these ASICs that require
+                * LVDS and VGA support which is not supported with DC.
+                *
+                * Fallback to the non-DC driver here by default so as not to
+                * cause regressions.
+                */
+               return amdgpu_dc > 0;
+       case CHIP_HAWAII:
         case CHIP_MULLINS:
         case CHIP_CARRIZO:
         case CHIP_STONEY:

--
2.17.0

_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): BN6PR12MB18096ADF9B084D707CBA502DF79A0-/b2+HYfkarSEx6ez0IUAagdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org

#4 lore raw
Quoted 2 lines · Alexander

You need to include mullins as well.  It's the same feature set as kabini.

Good catch. v3 incoming.

Quoted 49 lines

Alex

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
*From:* amd-gfx <[email protected]> on behalf of Harry Wentland <[email protected]> *Sent:* Monday, May 7, 2018 7:24 PM
*To:* [email protected]; Deucher, Alexander
*Cc:* Wentland, Harry
*Subject:* [PATCH v2] drm/amdgpu: Don't default to DC support for Kaveri and older

We've had a number of users report failures to detect and light up
display with DC with LVDS and VGA. These connector types are not
currently supported with DC. I'd like to add support but unfortunately
don't have a system with LVDS or VGA available.

In order not to cause regressions we should probably fallback to the non-DC driver for ASICs that support VGA and LVDS.

These ASICs are:
 * Bonaire
 * Kabini
 * Kaveri

ASIC support can always be force enabled with amdgpu.dc=1

v2: Keep Hawaii on DC

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 10 +++++++++-

 1 file changed, 9 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0 -0
index 887f7c9e84e0..0a23134147b7 100644
@@ -2141,9 +2141,17 @@ bool amdgpu_device_asic_has_dc_support(enum amd_asic_type asic_type)
          switch (asic_type) {
  #if defined(CONFIG_DRM_AMD_DC)

         case CHIP_BONAIRE:
-       case CHIP_HAWAII:
         case CHIP_KAVERI:
         case CHIP_KABINI:
+               /*
+                * We have systems in the wild with these ASICs that require +                * LVDS and VGA support which is not supported with DC. +                *

Quoted 15 lines

+                * Fallback to the non-DC driver here by default so as not to +                * cause regressions.
+                */
+               return amdgpu_dc > 0;
+       case CHIP_HAWAII:
         case CHIP_MULLINS:
         case CHIP_CARRIZO:
         case CHIP_STONEY:

Signature · 6 lines
2.17.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx