drm/amd/display: disable psr whenever applicable
Subsystems (3)
PATCH 1/1 drm/amd/display: disable psr whenever applicable
[Why]
psr feature continues to be enabled for non capable links.
[How]
disable the feature on links that are not capable of the same.
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +8 -2
@@ -60,11 +60,17 @@ static bool link_supports_psrsu(struct dc_link *link)*/ void amdgpu_dm_set_psr_caps (struct dc_link *link) { -if (!(link->connector_signal &SIGNAL_TYPE_EDP )) +if (!(link->connector_signal &SIGNAL_TYPE_EDP )) { +DRM_ERROR ("Disabling PSR as connector is not eDP\n" ) + link->psr_settings.psr_feature_enabled = false;return ; + } -if (link->type == dc_connection_none) +if (link->type == dc_connection_none) { +DRM_ERROR ("Disabling PSR as eDP connection type is invalid\n" ) + link->psr_settings.psr_feature_enabled = false;return ; + }if (link->dpcd_caps.psr_info.psr_version ==0 ) { link->psr_settings.psr_version =DC_PSR_VERSION_UNSUPPORTED ;
Signature · 1 line
2.17.1
+Leo
Quoted 3 lines · Shirish S
[Why]
psr feature continues to be enabled for non capable links.
Do you have more info on what issues you're seeing with this?
Quoted 13 lines
[How]
disable the feature on links that are not capable of the same.Signed-off-by Shirish S <[email protected]>--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +0
-0
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c static bool link_supports_psrsu(struct dc_link *link) · line 64
Quoted 6 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +2
-1@@ -60,11 +60,17 @@ static bool link_supports_psrsu(struct dc_link *link)*/ void amdgpu_dm_set_psr_caps (struct dc_link *link) { -if (!(link->connector_signal &SIGNAL_TYPE_EDP )) +if (!(link->connector_signal &SIGNAL_TYPE_EDP )) { +DRM_ERROR ("Disabling PSR as connector is not eDP\n" )
I don't think we should log an error here.
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c static bool link_supports_psrsu(struct dc_link *link) · line 70
Quoted 7 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +4
-1+ link->psr_settings.psr_feature_enabled = false;return ; + } -if (link->type == dc_connection_none) +if (link->type == dc_connection_none) { +DRM_ERROR ("Disabling PSR as eDP connection type is invalid\n" )
Same here, this doesn't warrant an error log.
Harry
Quoted 6 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +2
-0+ link->psr_settings.psr_feature_enabled = false;return ; + }if (link->dpcd_caps.psr_info.psr_version ==0 ) { link->psr_settings.psr_version =DC_PSR_VERSION_UNSUPPORTED ;
Quoted 7 lines · Harry Wentland
+Leo
Quoted 3 lines · Shirish S
[Why]
psr feature continues to be enabled for non capable links.Do you have more info on what issues you're seeing with this?
Code wise without this change we end up setting "vblank_disable_immediate" parameter to false for the failing links also.
Issue wise there is a remote chance of this leading to eDP/connected monitor not lighting up.
Quoted 9 lines
Quoted 9 lines
[How]
disable the feature on links that are not capable of the same.Signed-off-by Shirish S<[email protected]>--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
Quoted 12 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c static bool link_supports_psrsu(struct dc_link *link) · line 64
Quoted 11 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +2
-1@@ -60,11 +60,17 @@ static bool link_supports_psrsu(struct dc_link *link)*/ void amdgpu_dm_set_psr_caps (struct dc_link *link) { -if (!(link->connector_signal &SIGNAL_TYPE_EDP )) +if (!(link->connector_signal &SIGNAL_TYPE_EDP )) { +DRM_ERROR ("Disabling PSR as connector is not eDP\n" )I don't think we should log an error here.
My objective of logging an error was to inform user/developer that this boot PSR enablement had issues.
Am fine with moving it to INFO or remove it, if you insist.
Thanks for your comments.
Regards,
Shirish S
Quoted 18 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c static bool link_supports_psrsu(struct dc_link *link) · line 70
Quoted 8 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +4
-1+ link->psr_settings.psr_feature_enabled = false;return ; + } -if (link->type == dc_connection_none) +if (link->type == dc_connection_none) { +DRM_ERROR ("Disabling PSR as eDP connection type is invalid\n" )Same here, this doesn't warrant an error log.
Harry
Quoted 6 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +2
-0+ link->psr_settings.psr_feature_enabled = false;return ; + }if (link->dpcd_caps.psr_info.psr_version ==0 ) { link->psr_settings.psr_version =DC_PSR_VERSION_UNSUPPORTED ;
Ping!
Regards,
Shirish S
Quoted 63 lines · Shirish
Quoted 7 lines · Harry Wentland
+Leo
Quoted 3 lines · Shirish S
[Why]
psr feature continues to be enabled for non capable links.Do you have more info on what issues you're seeing with this?
Code wise without this change we end up setting "
vblank_disable_immediate" parameter to false for the failing links also.Issue wise there is a remote chance of this leading to eDP/connected monitor not lighting up.
Quoted 8 lines
Quoted 8 lines
[How]
disable the feature on links that are not capable of the same.Signed-off-by Shirish S<[email protected]>--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)Quoted 12 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c static bool link_supports_psrsu(struct dc_link *link) · line 64
Quoted 11 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +2
-1@@ -60,11 +60,17 @@ static bool link_supports_psrsu(struct dc_link *link)*/ void amdgpu_dm_set_psr_caps (struct dc_link *link) { -if (!(link->connector_signal &SIGNAL_TYPE_EDP )) +if (!(link->connector_signal &SIGNAL_TYPE_EDP )) { +DRM_ERROR ("Disabling PSR as connector is not eDP\n" )I don't think we should log an error here.
My objective of logging an error was to inform user/developer that this boot PSR enablement had issues.
Am fine with moving it to INFO or remove it, if you insist.
Thanks for your comments.
Regards,
Shirish S
Quoted 17 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c static bool link_supports_psrsu(struct dc_link *link) · line 70
Quoted 7 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +4
-1+ link->psr_settings.psr_feature_enabled = false;return ; + } -if (link->type == dc_connection_none) +if (link->type == dc_connection_none) { +DRM_ERROR ("Disabling PSR as eDP connection type is invalid\n" )Same here, this doesn't warrant an error log.
Harry
Quoted 6 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +2
-0+ link->psr_settings.psr_feature_enabled = false;return ; + }if (link->dpcd_caps.psr_info.psr_version ==0 ) { link->psr_settings.psr_version =DC_PSR_VERSION_UNSUPPORTED ;
Leo Li
maintainerQuoted 21 lines · Shirish
Ping!
Regards,
Shirish S
Quoted 14 lines · Shirish
Quoted 7 lines · Harry Wentland
+Leo
Quoted 3 lines · Shirish S
[Why]
psr feature continues to be enabled for non capable links.Do you have more info on what issues you're seeing with this?
Code wise without this change we end up setting "
vblank_disable_immediate" parameter to false for the failing links also.Issue wise there is a remote chance of this leading to eDP/connected monitor not lighting up.
I'm surprised psr_settings.psr_feature_enabled can be 'true' before amdgpu_dm_set_psr_caps() runs. it should default to 'false', and it's set early on during amdgpu_dm_initialize_drm_device() before any other psr-related code runs.
In other words, I don't expect psr_settings.psr_feature_enabled to be 'true' on early return of dm_set_psr_caps().
What are the sequence of events that causes an issue for you?
Quoted 22 lines
Quoted 22 lines
Quoted 21 lines
Quoted 14 lines
[How]
disable the feature on links that are not capable of the same.Signed-off-by Shirish S<[email protected]>--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +0
-0drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c static bool link_supports_psrsu(struct dc_link *link) · line 64
Quoted 6 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +2
-1@@ -60,11 +60,17 @@ static bool link_supports_psrsu(struct dc_link *link)*/ void amdgpu_dm_set_psr_caps (struct dc_link *link) { -if (!(link->connector_signal &SIGNAL_TYPE_EDP )) +if (!(link->connector_signal &SIGNAL_TYPE_EDP )) { +DRM_ERROR ("Disabling PSR as connector is not eDP\n" )I don't think we should log an error here.
Quoted 1 line
Quoted 1 line
My objective of logging an error was to inform user/developer that this boot PSR enablement had issues.
It's not really an issue, PSR simply cannot be enabled on non-eDP or disconnected links. However, it is concerning if we enter this function with psr_feature_enabled == true.
Thanks,
Leo
Quoted 26 lines
Quoted 26 lines
Am fine with moving it to INFO or remove it, if you insist.
Thanks for your comments.
Regards,
Shirish S
Quoted 17 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c static bool link_supports_psrsu(struct dc_link *link) · line 70
Quoted 7 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +4
-1+ link->psr_settings.psr_feature_enabled = false;return ; + } -if (link->type == dc_connection_none) +if (link->type == dc_connection_none) { +DRM_ERROR ("Disabling PSR as eDP connection type is invalid\n" )Same here, this doesn't warrant an error log.
Harry
Quoted 6 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +2
-0+ link->psr_settings.psr_feature_enabled = false;return ; + }if (link->dpcd_caps.psr_info.psr_version ==0 ) { link->psr_settings.psr_version =DC_PSR_VERSION_UNSUPPORTED ;
Quoted 30 lines · Leo Li
Quoted 21 lines · Shirish
Ping!
Regards,
Shirish S
Quoted 14 lines · Shirish
Quoted 7 lines · Harry Wentland
+Leo
Quoted 3 lines · Shirish S
[Why]
psr feature continues to be enabled for non capable links.Do you have more info on what issues you're seeing with this?
Code wise without this change we end up setting "
vblank_disable_immediate" parameter to false for the failing links also.Issue wise there is a remote chance of this leading to eDP/connected monitor not lighting up.
I'm surprised psr_settings.psr_feature_enabled can be 'true' before
amdgpu_dm_set_psr_caps()runs. it should default to 'false', and it's set early on duringamdgpu_dm_initialize_drm_device()before any other psr-related code runs.
Quoted 4 lines
In other words, I don't expect psr_settings.psr_feature_enabled to be 'true' on early return of
dm_set_psr_caps().What are the sequence of events that causes an issue for you?
psr_feature_enabled is set to true by default in https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c#L4264 for DCN 3.0 onwards
(Also, in ChromeOS wherein KMS driver is statically built in kernel, we set PSR feature as enabled as command-line argument via amdgpu_dc_feature_mask.)
Hence, the variable is set to true while entering amdgpu_dm_set_psr_caps().
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 25 lines
Quoted 17 lines
[How]
disable the feature on links that are not capable of the same.Signed-off-by Shirish S<[email protected]>---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c| 10
++++++++--1 file changed, 8 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +0
-0drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c static bool link_supports_psrsu(struct dc_link · line 65
Quoted 7 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +2
-1@@ -60,11 +60,17 @@ static bool link_supports_psrsu(struct dc_link*link) */ void amdgpu_dm_set_psr_caps(struct dc_link *link) { - if (!(link->connector_signal & SIGNAL_TYPE_EDP)) + if (!(link->connector_signal & SIGNAL_TYPE_EDP)) { + DRM_ERROR("Disabling PSR as connector is not eDP\n")I don't think we should log an error here.
Quoted 4 lines
Quoted 1 line
Quoted 1 line
My objective of logging an error was to inform user/developer that this boot PSR enablement had issues.
It's not really an issue, PSR simply cannot be enabled on non-eDP or disconnected links.
Agree, the idea here is to avoid decisions being taken presuming psr_feature_enabled being set on such links, like disabling vblank_disable_immediate <https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c#L4330>etc.,
Regards,
Shirish S
Quoted 31 lines
However, it is concerning if we enter this function with
psr_feature_enabled== true.Thanks,
LeoQuoted 25 lines
Quoted 25 lines
Am fine with moving it to INFO or remove it, if you insist.
Thanks for your comments.
Regards,
Shirish S
Quoted 16 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c static bool link_supports_psrsu(struct dc_link *link)
Quoted 7 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +4
-0+ link->psr_settings.psr_feature_enabled = false; return; + } - if (link->type == dc_connection_none) + if (link->type == dc_connection_none) { + DRM_ERROR("Disabling PSR as eDP connection type is invalid\n")Same here, this doesn't warrant an error log.
Harry
Quoted 5 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +2
-0+ link->psr_settings.psr_feature_enabled = false; return; + } if (link->dpcd_caps.psr_info.psr_version == 0) {
link->psr_settings.psr_version=DC_PSR_VERSION_UNSUPPORTED;
Leo Li
maintainerQuoted 35 lines · Shirish
Quoted 33 lines · Leo Li
Quoted 21 lines · Shirish
Ping!
Regards,
Shirish S
Quoted 14 lines · Shirish
Quoted 7 lines · Harry Wentland
+Leo
Quoted 3 lines · Shirish S
[Why]
psr feature continues to be enabled for non capable links.Do you have more info on what issues you're seeing with this?
Code wise without this change we end up setting "
vblank_disable_immediate" parameter to false for the failing links also.Issue wise there is a remote chance of this leading to eDP/connected monitor not lighting up.
I'm surprised psr_settings.psr_feature_enabled can be 'true' before
amdgpu_dm_set_psr_caps()runs. it should default to 'false', and it's set early on duringamdgpu_dm_initialize_drm_device()before any other psr-related code runs.In other words, I don't expect psr_settings.psr_feature_enabled to be 'true' on early return of
dm_set_psr_caps().
Quoted 7 lines
Quoted 1 line
What are the sequence of events that causes an issue for you?
psr_feature_enabledis set to true by default in https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c#L4264 for DCN 3.0 onwards(Also, in ChromeOS wherein KMS driver is statically built in kernel, we set PSR feature as enabled as command-line argument via
amdgpu_dc_feature_mask.)Hence, the variable is set to true while entering
amdgpu_dm_set_psr_caps().
Hmm, that is a local variable in the function, not the same as link->psr_settings.psr_feature_enabled. Unless I'm missing something, it looks like link->psr_settings.psr_feature_enabled is never set to true.
More below,
Quoted 30 lines
Quoted 30 lines
Quoted 29 lines
Quoted 29 lines
Quoted 14 lines
Quoted 14 lines
[How]
disable the feature on links that are not capable of the same.Signed-off-by Shirish S<[email protected]>---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c| 10
++++++++--1 file changed, 8 insertions(+), 2 deletions(-)Quoted 13 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c static bool link_supports_psrsu(struct dc_link · line 65
Quoted 12 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +2
-1@@ -60,11 +60,17 @@ static bool link_supports_psrsu(struct dc_link*link) */ void amdgpu_dm_set_psr_caps(struct dc_link *link) { - if (!(link->connector_signal & SIGNAL_TYPE_EDP)) + if (!(link->connector_signal & SIGNAL_TYPE_EDP)) { + DRM_ERROR("Disabling PSR as connector is not eDP\n")I don't think we should log an error here.
My objective of logging an error was to inform user/developer that this boot PSR enablement had issues.
Quoted 25 lines
Quoted 2 lines
It's not really an issue, PSR simply cannot be enabled on non-eDP or disconnected links.
Agree, the idea here is to avoid decisions being taken presuming
psr_feature_enabledbeing set on such links, like disablingvblank_disable_immediate<https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c#L4330>etc.,Regards,
Shirish S
Quoted 16 lines
However, it is concerning if we enter this function with
psr_feature_enabled== true.Thanks,
LeoQuoted 10 lines
Quoted 10 lines
Am fine with moving it to INFO or remove it, if you insist.
Thanks for your comments.
Regards,
Shirish S
Quoted 1 line
Quoted 1 line
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +1
-0+ link->psr_settings.psr_feature_enabled = false;
Never the less, explicitly setting to false rather than leaving it as default sounds like a good idea to me.
But I don't see how this fixes an issue.
If this is a readability fix, I suggest changing commit title and description to reflect that.
Thanks,
Leo
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c static bool link_supports_psrsu(struct dc_link *link)
Quoted 6 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +3
-0return; + } - if (link->type == dc_connection_none) + if (link->type == dc_connection_none) { + DRM_ERROR("Disabling PSR as eDP connection type is invalid\n")Same here, this doesn't warrant an error log.
Harry
Quoted 5 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +2
-0+ link->psr_settings.psr_feature_enabled = false; return; + } if (link->dpcd_caps.psr_info.psr_version == 0) {
link->psr_settings.psr_version=DC_PSR_VERSION_UNSUPPORTED;
Quoted 109 lines · Leo Li
Quoted 35 lines · Shirish
Quoted 33 lines · Leo Li
Quoted 21 lines · Shirish
Ping!
Regards,
Shirish S
Quoted 14 lines · Shirish
Quoted 7 lines · Harry Wentland
+Leo
Quoted 3 lines · Shirish S
[Why]
psr feature continues to be enabled for non capable links.Do you have more info on what issues you're seeing with this?
Code wise without this change we end up setting "
vblank_disable_immediate" parameter to false for the failing links also.Issue wise there is a remote chance of this leading to eDP/connected monitor not lighting up.
I'm surprised psr_settings.psr_feature_enabled can be 'true' before
amdgpu_dm_set_psr_caps()runs. it should default to 'false', and it's set early on duringamdgpu_dm_initialize_drm_device()before any other psr-related code runs.In other words, I don't expect psr_settings.psr_feature_enabled to be 'true' on early return of
dm_set_psr_caps().Quoted 7 lines
Quoted 1 line
What are the sequence of events that causes an issue for you?
psr_feature_enabledis set to true by default in https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c#L4264 for DCN 3.0 onwards(Also, in ChromeOS wherein KMS driver is statically built in kernel, we set PSR feature as enabled as command-line argument via
amdgpu_dc_feature_mask.)Hence, the variable is set to true while entering
amdgpu_dm_set_psr_caps().Hmm, that is a local variable in the function, not the same as
link->psr_settings.psr_feature_enabled. Unless I'm missing something, it looks likelink->psr_settings.psr_feature_enabledis never set to true.More below,
Quoted 30 lines
Quoted 30 lines
Quoted 29 lines
Quoted 29 lines
Quoted 14 lines
Quoted 14 lines
[How]
disable the feature on links that are not capable of the same.Signed-off-by Shirish S<[email protected]>---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c| 10
++++++++--1 file changed, 8 insertions(+), 2 deletions(-)Quoted 13 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c static bool link_supports_psrsu(struct · line 65
Quoted 12 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +2
-1@@ -60,11 +60,17 @@ static bool link_supports_psrsu(structdc_link *link) */ void amdgpu_dm_set_psr_caps(struct dc_link *link) { - if (!(link->connector_signal & SIGNAL_TYPE_EDP)) + if (!(link->connector_signal & SIGNAL_TYPE_EDP)) { + DRM_ERROR("Disabling PSR as connector is not eDP\n")I don't think we should log an error here.
My objective of logging an error was to inform user/developer that this boot PSR enablement had issues.
Quoted 25 lines
Quoted 2 lines
It's not really an issue, PSR simply cannot be enabled on non-eDP or disconnected links.
Agree, the idea here is to avoid decisions being taken presuming
psr_feature_enabledbeing set on such links, like disablingvblank_disable_immediate<https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c#L4330>etc.,Regards,
Shirish S
Quoted 16 lines
However, it is concerning if we enter this function with
psr_feature_enabled== true.Thanks,
LeoQuoted 10 lines
Quoted 10 lines
Am fine with moving it to INFO or remove it, if you insist.
Thanks for your comments.
Regards,
Shirish S
Quoted 1 line
Quoted 1 line
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +1
-0+ link->psr_settings.psr_feature_enabled = false;
Quoted 7 lines
Never the less, explicitly setting to false rather than leaving it as default sounds like a good idea to me.
But I don't see how this fixes an issue.
If this is a readability fix, I suggest changing commit title and description to reflect that.
Done.
Patch here: https://patchwork.freedesktop.org/patch/506242/
Regards,
Shirish S
Quoted 19 lines
Thanks,
LeoQuoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c static bool link_supports_psrsu(struct · line 72
Quoted 6 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +3
-0return; + } - if (link->type == dc_connection_none) + if (link->type == dc_connection_none) { + DRM_ERROR("Disabling PSR as eDP connection type is invalid\n")Same here, this doesn't warrant an error log.
Harry
Quoted 5 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +2
-0+ link->psr_settings.psr_feature_enabled = false; return; + } if (link->dpcd_caps.psr_info.psr_version == 0) {
link->psr_settings.psr_version=DC_PSR_VERSION_UNSUPPORTED;