drm/amd/display: Don't load DMCU for Raven 1 (v2)
PATCH 1/1 drm/amd/display: Don't load DMCU for Raven 1 (v2)
From: Harry Wentland <[email protected]>
[WHY]
Some early Raven boards had a bad SBIOS that doesn't play nicely with the DMCU FW. We thought the issues were fixed by ignoring errors on DMCU load but that doesn't seem to be the case. We've still seen reports of users unable to boot their systems at all.
[HOW]
Disable DMCU load on Raven 1. Only load it for Raven 2 and Picasso.
v2: Fix ifdef (Alex)
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +10 -2
@@ -29,6 +29,7 @@#include "dm_services_types.h" #include "dc.h" #include "dc/inc/core_types.h" +#include "dal_asic_id.h" #include "vid.h" #include "amdgpu.h"
@@ -640,7 +641,7 @@ static void amdgpu_dm_fini(struct amdgpu_device *adev)static int load_dmcu_fw (struct amdgpu_device *adev) { -const char *fw_name_dmcu; +const char *fw_name_dmcu =NULL ;int r;const struct dmcu_firmware_header_v1_0 *hdr;
@@ -663,7 +664,14 @@ static int load_dmcu_fw(struct amdgpu_device *adev)case CHIP_VEGA20 :return 0 ;case CHIP_RAVEN : - fw_name_dmcu =FIRMWARE_RAVEN_DMCU ; +#if defined(CONFIG_DRM_AMD_DC_DCN1_01 ) +if (ASICREV_IS_PICASSO (adev->external_rev_id)) + fw_name_dmcu =FIRMWARE_RAVEN_DMCU ; +else if (ASICREV_IS_RAVEN2 (adev->external_rev_id)) + fw_name_dmcu =FIRMWARE_RAVEN_DMCU ; + else +#endif +return 0 ;break ;default :DRM_ERROR ("Unsupported ASIC type: 0x%X\n" , adev->asic_type);
Signature · 1 line
2.20.1
Hi
Curious to know what this means for folk that have newer Raven1 boards that didn't have issues loading the firmware
Cheers
Mike
Quoted 66 lines · Alex Deucher
From: Harry Wentland <[email protected]>
[WHY]
Some early Raven boards had a bad SBIOS that doesn't play nicely with the DMCU FW. We thought the issues were fixed by ignoring errors on DMCU load but that doesn't seem to be the case. We've still seen reports of users unable to boot their systems at all.[HOW]
Disable DMCU load on Raven 1. Only load it for Raven 2 and Picasso.v2: Fix ifdef (Alex)
Signed-off-by Harry Wentland <[email protected]>Reviewed-by Nicholas Kazlauskas <[email protected]>Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +10
-3@@ -29,6 +29,7 @@#include "dm_services_types.h" #include "dc.h" #include "dc/inc/core_types.h" +#include "dal_asic_id.h" #include "vid.h" #include "amdgpu.h" @@ -640,7 +641,7 @@ static void amdgpu_dm_fini(struct amdgpu_device *adev)static int load_dmcu_fw (struct amdgpu_device *adev) { -const char *fw_name_dmcu; +const char *fw_name_dmcu =NULL ;int r;const struct dmcu_firmware_header_v1_0 *hdr;@@ -663,7 +664,14 @@ static int load_dmcu_fw(struct amdgpu_device *adev)case CHIP_VEGA20 :return 0 ;case CHIP_RAVEN : - fw_name_dmcu =FIRMWARE_RAVEN_DMCU ; +#if defined(CONFIG_DRM_AMD_DC_DCN1_01 ) +if (ASICREV_IS_PICASSO (adev->external_rev_id)) + fw_name_dmcu =FIRMWARE_RAVEN_DMCU ; +else if (ASICREV_IS_RAVEN2 (adev->external_rev_id)) + fw_name_dmcu =FIRMWARE_RAVEN_DMCU ; + else +#endif +return 0 ;break ;default :DRM_ERROR ("Unsupported ASIC type: 0x%X\n" , adev->asic_type); --2.20.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 5 lines · Mike Lothian
Hi
Curious to know what this means for folk that have newer Raven1 boards that didn't have issues loading the firmware
You won't get ABM I think. ABM is the automatic backlight management.
Alex
Quoted 72 lines
Cheers
Mike
Quoted 66 lines · Alex Deucher
From: Harry Wentland <[email protected]>
[WHY]
Some early Raven boards had a bad SBIOS that doesn't play nicely with the DMCU FW. We thought the issues were fixed by ignoring errors on DMCU load but that doesn't seem to be the case. We've still seen reports of users unable to boot their systems at all.[HOW]
Disable DMCU load on Raven 1. Only load it for Raven 2 and Picasso.v2: Fix ifdef (Alex)
Signed-off-by Harry Wentland <[email protected]>Reviewed-by Nicholas Kazlauskas <[email protected]>Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +10
-3@@ -29,6 +29,7 @@#include "dm_services_types.h" #include "dc.h" #include "dc/inc/core_types.h" +#include "dal_asic_id.h" #include "vid.h" #include "amdgpu.h" @@ -640,7 +641,7 @@ static void amdgpu_dm_fini(struct amdgpu_device *adev)static int load_dmcu_fw (struct amdgpu_device *adev) { -const char *fw_name_dmcu; +const char *fw_name_dmcu =NULL ;int r;const struct dmcu_firmware_header_v1_0 *hdr;@@ -663,7 +664,14 @@ static int load_dmcu_fw(struct amdgpu_device *adev)case CHIP_VEGA20 :return 0 ;case CHIP_RAVEN : - fw_name_dmcu =FIRMWARE_RAVEN_DMCU ; +#if defined(CONFIG_DRM_AMD_DC_DCN1_01 ) +if (ASICREV_IS_PICASSO (adev->external_rev_id)) + fw_name_dmcu =FIRMWARE_RAVEN_DMCU ; +else if (ASICREV_IS_RAVEN2 (adev->external_rev_id)) + fw_name_dmcu =FIRMWARE_RAVEN_DMCU ; + else +#endif +return 0 ;break ;default :DRM_ERROR ("Unsupported ASIC type: 0x%X\n" , adev->asic_type); --2.20.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
I realise you don't want to enable this as it's breaking some people's systems, but could we add a new boot parameter to force it for working systems? Or check against a black list maybe?
Quoted 84 lines · Alex Deucher
Quoted 5 lines · Mike Lothian
Hi
Curious to know what this means for folk that have newer Raven1 boards that didn't have issues loading the firmware
You won't get ABM I think. ABM is the automatic backlight management.
Alex
Quoted 72 lines
Cheers
Mike
Quoted 66 lines · Alex Deucher
From: Harry Wentland <[email protected]>
[WHY]
Some early Raven boards had a bad SBIOS that doesn't play nicely with the DMCU FW. We thought the issues were fixed by ignoring errors on DMCU load but that doesn't seem to be the case. We've still seen reports of users unable to boot their systems at all.[HOW]
Disable DMCU load on Raven 1. Only load it for Raven 2 and Picasso.v2: Fix ifdef (Alex)
Signed-off-by Harry Wentland <[email protected]>Reviewed-by Nicholas Kazlauskas <[email protected]>Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +10
-3@@ -29,6 +29,7 @@#include "dm_services_types.h" #include "dc.h" #include "dc/inc/core_types.h" +#include "dal_asic_id.h" #include "vid.h" #include "amdgpu.h" @@ -640,7 +641,7 @@ static void amdgpu_dm_fini(struct amdgpu_device *adev)static int load_dmcu_fw (struct amdgpu_device *adev) { -const char *fw_name_dmcu; +const char *fw_name_dmcu =NULL ;int r;const struct dmcu_firmware_header_v1_0 *hdr;@@ -663,7 +664,14 @@ static int load_dmcu_fw(struct amdgpu_device *adev)case CHIP_VEGA20 :return 0 ;case CHIP_RAVEN : - fw_name_dmcu =FIRMWARE_RAVEN_DMCU ; +#if defined(CONFIG_DRM_AMD_DC_DCN1_01 ) +if (ASICREV_IS_PICASSO (adev->external_rev_id)) + fw_name_dmcu =FIRMWARE_RAVEN_DMCU ; +else if (ASICREV_IS_RAVEN2 (adev->external_rev_id)) + fw_name_dmcu =FIRMWARE_RAVEN_DMCU ; + else +#endif +return 0 ;break ;default :DRM_ERROR ("Unsupported ASIC type: 0x%X\n" , adev->asic_type); --2.20.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 4 lines · Mike Lothian
I realise you don't want to enable this as it's breaking some people's systems, but could we add a new boot parameter to force it for working systems? Or check against a black list maybe?
We could probably add a whitelist. I'm not sure what the best way to id the working systems are though.
Alex
Quoted 86 lines · Alex Deucher
Quoted 84 lines · Mike Lothian
Quoted 5 lines
Hi
Curious to know what this means for folk that have newer Raven1 boards that didn't have issues loading the firmware
You won't get ABM I think. ABM is the automatic backlight management.
Alex
Quoted 72 lines
Cheers
Mike
Quoted 66 lines · Alex Deucher
From: Harry Wentland <[email protected]>
[WHY]
Some early Raven boards had a bad SBIOS that doesn't play nicely with the DMCU FW. We thought the issues were fixed by ignoring errors on DMCU load but that doesn't seem to be the case. We've still seen reports of users unable to boot their systems at all.[HOW]
Disable DMCU load on Raven 1. Only load it for Raven 2 and Picasso.v2: Fix ifdef (Alex)
Signed-off-by Harry Wentland <[email protected]>Reviewed-by Nicholas Kazlauskas <[email protected]>Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +10
-3@@ -29,6 +29,7 @@#include "dm_services_types.h" #include "dc.h" #include "dc/inc/core_types.h" +#include "dal_asic_id.h" #include "vid.h" #include "amdgpu.h" @@ -640,7 +641,7 @@ static void amdgpu_dm_fini(struct amdgpu_device *adev)static int load_dmcu_fw (struct amdgpu_device *adev) { -const char *fw_name_dmcu; +const char *fw_name_dmcu =NULL ;int r;const struct dmcu_firmware_header_v1_0 *hdr;@@ -663,7 +664,14 @@ static int load_dmcu_fw(struct amdgpu_device *adev)case CHIP_VEGA20 :return 0 ;case CHIP_RAVEN : - fw_name_dmcu =FIRMWARE_RAVEN_DMCU ; +#if defined(CONFIG_DRM_AMD_DC_DCN1_01 ) +if (ASICREV_IS_PICASSO (adev->external_rev_id)) + fw_name_dmcu =FIRMWARE_RAVEN_DMCU ; +else if (ASICREV_IS_RAVEN2 (adev->external_rev_id)) + fw_name_dmcu =FIRMWARE_RAVEN_DMCU ; + else +#endif +return 0 ;break ;default :DRM_ERROR ("Unsupported ASIC type: 0x%X\n" , adev->asic_type); --2.20.1
_______________________________________________
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): CADnq5_N48x5Zas_HWTN1JdEgUUmFadsSiu5_1uZmRgaDw+qraw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Alex,
Are any of these non-booting systems laptops? If all the laptops don't have this issue, is there a way we can detect we are on mobile and load the DMCU? Seeing as ABM and PSR are both practically only used on mobile, maybe we can check for that. This way we only enable it on systems that actually need the features. I am guessing the number of Raven Ridge laptops is much much smaller than the number of motherboards which can potentially support Raven Ridge.
Quoted 96 lines · On vrijdag 24 mei 2019 18:49:27 CEST you wrote:
Quoted 3 lines · Mike Lothian
I realise you don't want to enable this as it's breaking some people's systems, but could we add a new boot parameter to force it for working systems? Or check against a black list maybe?
We could probably add a whitelist. I'm not sure what the best way to id the working systems are though.
Alex
Quoted 86 lines · Alex Deucher
Quoted 85 lines · Mike Lothian
Quoted 4 lines
Hi
Curious to know what this means for folk that have newer Raven1 boards that didn't have issues loading the firmware
You won't get ABM I think. ABM is the automatic backlight management.
Alex
Quoted 75 lines
Cheers
Mike
Quoted 70 lines · Alex Deucher
From: Harry Wentland <harry.wentland at amd.com>
[WHY]
Some early Raven boards had a bad SBIOS that doesn't play nicely with
the DMCU FW. We thought the issues were fixed by ignoring errors on DMCU
load but that doesn't seem to be the case. We've still seen reports of
users unable to boot their systems at all.[HOW]
Disable DMCU load on Raven 1. Only load it for Raven 2 and Picasso.v2: Fix ifdef (Alex)
Signed-off-by Harry Wentland <harry.wentland at amd.com>Reviewed-by Nicholas Kazlauskas <nicholas.kazlauskas at amd.com>Signed-off-by Alex Deucher <alexander.deucher at amd.com>Cc stable at vger.kernel.org---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.cindex995f9df66142..bcb1a93c0b4c100644drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1
-0@@ -29,6 +29,7 @@#include "dm_services_types.h" #include "dc.h" #include "dc/inc/core_types.h" +#include "dal_asic_id.h" #include "
vid.h"
#include "amdgpu.h"drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1
-1@@ -640,7 +641,7 @@ static void amdgpu_dm_fini(struct amdgpu_device *adev)static int load_dmcu_fw (struct amdgpu_device *adev) { -const char *fw_name_dmcu; +const char *fw_name_dmcu =NULL ;int r; const struct dmcu_firmware_header_v1_0 *hdr;drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +8
-1@@ -663,7 +664,14 @@ static int load_dmcu_fw(struct amdgpu_device *adev)case CHIP_VEGA20 :return 0 ;case CHIP_RAVEN : - fw_name_dmcu =FIRMWARE_RAVEN_DMCU ; +#if defined(CONFIG_DRM_AMD_DC_DCN1_01 ) +if (ASICREV_IS_PICASSO (adev->external_rev_id)) + fw_name_dmcu =FIRMWARE_RAVEN_DMCU ; +else if (ASICREV_IS_RAVEN2 (adev->external_rev_id)) + fw_name_dmcu =FIRMWARE_RAVEN_DMCU ; + else +#endif +return 0 ;
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
break; default: DRM_ERROR("Unsupported ASIC type: 0x%X\n", adev->asic_type);
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 8 lines · Samantha McVey
Alex,
Are any of these non-booting systems laptops? If all the laptops don't have this issue, is there a way we can detect we are on mobile and load the DMCU? Seeing as ABM and PSR are both practically only used on mobile, maybe we can check for that. This way we only enable it on systems that actually need the features. I am guessing the number of Raven Ridge laptops is much much smaller than the number of motherboards which can potentially support Raven Ridge.
Mostly if not exclusively laptops. DMCU doesn't really have much use on desktops since there is no eDP panel in most cases. We don't currently support PSR so it's really only ABM.
Alex
Quoted 217 lines · On vrijdag 24 mei 2019 18:49:27 CEST you wrote:
Quoted 214 lines · Mike Lothian
Quoted 6 lines
I realise you don't want to enable this as it's breaking some people's
systems, but could we add a new boot parameter to force it for working
systems? Or check against a black list maybe?
We could probably add a whitelist. I'm not sure what the best way to
id the working systems are though.
Alex
Quoted 193 lines · Alex Deucher
Quoted 192 lines · Mike Lothian
Quoted 8 lines
Hi
Curious to know what this means for folk that have newer Raven1 boards
that didn't have issues loading the firmware
You won't get ABM I think. ABM is the automatic backlight management.
Alex
Quoted 171 lines
Cheers
Mike
Quoted 161 lines · Alex Deucher
From: Harry Wentland <harry.wentland at amd.com>
[WHY]
Some early Raven boards had a bad SBIOS that doesn't play nicely
with
the DMCU FW. We thought the issues were fixed by ignoring errors on
DMCU
load but that doesn't seem to be the case. We've still seen reports
of
users unable to boot their systems at all.
[HOW]
Disable DMCU load on Raven 1. Only load it for Raven 2 and Picasso.
v2: Fix ifdef (Alex)
Signed-off-by Harry Wentland <harry.wentland at amd.com>Reviewed-by Nicholas Kazlauskas <nicholas.kazlauskas at amd.com>Signed-off-by Alex Deucher <alexander.deucher at amd.com>Cc stable at vger.kernel.org---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c| 12 ++++++++++--1 file changed, 10 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.cindex
995f9df66142..bcb1a93c0b4c100644---
a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c+++
b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c(quoted diff) +0
-0@@ -29,6 +29,7 @@ #include "dm_services_types.h" #include "dc.h"#include "
dc/inc/core_types.h"+#include "
dal_asic_id.h"#include "
vid.h"#include "
amdgpu.h"(quoted diff) +0
-0@@ -640,7 +641,7 @@ static void amdgpu_dm_fini(struct amdgpu_device *adev) static int load_dmcu_fw(struct amdgpu_device *adev){
- const char
*fw_name_dmcu;+ const char
*fw_name_dmcu= NULL;int r;
const struct
dmcu_firmware_header_v1_0*hdr;(quoted diff) +0
-0@@ -663,7 +664,14 @@ static int load_dmcu_fw(struct amdgpu_device *adev)case
CHIP_VEGA20:return 0;
case
CHIP_RAVEN:-
fw_name_dmcu=FIRMWARE_RAVEN_DMCU;(quoted diff) +8
-0+#if defined(CONFIG_DRM_AMD_DC_DCN1_01) + if (ASICREV_IS_PICASSO(adev->external_rev_id)) + fw_name_dmcu = FIRMWARE_RAVEN_DMCU; + else if (ASICREV_IS_RAVEN2(adev->external_rev_id)) + fw_name_dmcu = FIRMWARE_RAVEN_DMCU; + else +#endif + return 0;break;
default:
DRM_ERROR("Unsupported ASIC type: 0x%X\n",
adev->asic_type);--
2.20.1
_______________________________________________
amd-gfx mailing list
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
amd-gfx at lists.freedesktop.org
_______________________________________________
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