[PATCH 14/16] drm/amd/display: add else to avoid double destroy clk_mgr
Zhuo, Qingqing (Lillian)
Qingqing.Zhuo at amd.com
Mon Nov 22 17:15:53 UTC 2021
[Public]
Hi Alex,
Thank you for the advice! Last week's DC candidate has in fact already been merged to upstream, but I will bring up your suggestion to the patch author for review.
Thank you,
Lillian
From: Deucher, Alexander <Alexander.Deucher at amd.com>
Sent: Monday, November 22, 2021 10:38 AM
To: Zhuo, Qingqing (Lillian) <Qingqing.Zhuo at amd.com>; amd-gfx at lists.freedesktop.org
Cc: Wang, Chao-kai (Stylon) <Stylon.Wang at amd.com>; Cyr, Aric <Aric.Cyr at amd.com>; Chiu, Solomon <Solomon.Chiu at amd.com>; Li, Sun peng (Leo) <Sunpeng.Li at amd.com>; Wentland, Harry <Harry.Wentland at amd.com>; Leung, Martin <Martin.Leung at amd.com>; Siqueira, Rodrigo <Rodrigo.Siqueira at amd.com>; Li, Roman <Roman.Li at amd.com>; Jacob, Anson <Anson.Jacob at amd.com>; Pillai, Aurabindo <Aurabindo.Pillai at amd.com>; Lin, Wayne <Wayne.Lin at amd.com>; Lipski, Mikita <Mikita.Lipski at amd.com>; Lakha, Bhawanpreet <Bhawanpreet.Lakha at amd.com>; Gutierrez, Agustin <Agustin.Gutierrez at amd.com>; Kotarac, Pavle <Pavle.Kotarac at amd.com>
Subject: Re: [PATCH 14/16] drm/amd/display: add else to avoid double destroy clk_mgr
[Public]
Do you want to change the ASICREV_IS_BEIGE_GOBY_P() check to else if as well? maybe something like:
if (ASICREV_IS_SIENNA_CICHLID_P(clk_mgr_base->ctx->asic_id.hw_internal_rev) ||
ASICREV_IS_DIMGREY_CAVEFISH_P(clk_mgr_base->ctx->asic_id.hw_internal_rev) ||
ASICREV_IS_BEIGE_GOBY_P(clk_mgr_base->ctx->asic_id.hw_internal_rev))
dcn3_clk_mgr_destroy(clk_mgr);
Alex
________________________________
From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org<mailto:amd-gfx-bounces at lists.freedesktop.org>> on behalf of Qingqing Zhuo <qingqing.zhuo at amd.com<mailto:qingqing.zhuo at amd.com>>
Sent: Friday, November 19, 2021 2:43 PM
To: amd-gfx at lists.freedesktop.org<mailto:amd-gfx at lists.freedesktop.org> <amd-gfx at lists.freedesktop.org<mailto:amd-gfx at lists.freedesktop.org>>
Cc: Wang, Chao-kai (Stylon) <Stylon.Wang at amd.com<mailto:Stylon.Wang at amd.com>>; Cyr, Aric <Aric.Cyr at amd.com<mailto:Aric.Cyr at amd.com>>; Chiu, Solomon <Solomon.Chiu at amd.com<mailto:Solomon.Chiu at amd.com>>; Li, Sun peng (Leo) <Sunpeng.Li at amd.com<mailto:Sunpeng.Li at amd.com>>; Wentland, Harry <Harry.Wentland at amd.com<mailto:Harry.Wentland at amd.com>>; Zhuo, Qingqing (Lillian) <Qingqing.Zhuo at amd.com<mailto:Qingqing.Zhuo at amd.com>>; Leung, Martin <Martin.Leung at amd.com<mailto:Martin.Leung at amd.com>>; Siqueira, Rodrigo <Rodrigo.Siqueira at amd.com<mailto:Rodrigo.Siqueira at amd.com>>; Li, Roman <Roman.Li at amd.com<mailto:Roman.Li at amd.com>>; Jacob, Anson <Anson.Jacob at amd.com<mailto:Anson.Jacob at amd.com>>; Pillai, Aurabindo <Aurabindo.Pillai at amd.com<mailto:Aurabindo.Pillai at amd.com>>; Lin, Wayne <Wayne.Lin at amd.com<mailto:Wayne.Lin at amd.com>>; Lipski, Mikita <Mikita.Lipski at amd.com<mailto:Mikita.Lipski at amd.com>>; Lakha, Bhawanpreet <Bhawanpreet.Lakha at amd.com<mailto:Bhawanpreet.Lakha at amd.com>>; Gutierrez, Agustin <Agustin.Gutierrez at amd.com<mailto:Agustin.Gutierrez at amd.com>>; Kotarac, Pavle <Pavle.Kotarac at amd.com<mailto:Pavle.Kotarac at amd.com>>
Subject: [PATCH 14/16] drm/amd/display: add else to avoid double destroy clk_mgr
From: Martin Leung <Martin.Leung at amd.com<mailto:Martin.Leung at amd.com>>
[Why & How]
when changing some code we accidentally
changed else if-> if. reverting that.
Reviewed-by: Aric Cyr <Aric.Cyr at amd.com<mailto:Aric.Cyr at amd.com>>
Acked-by: Qingqing Zhuo <qingqing.zhuo at amd.com<mailto:qingqing.zhuo at amd.com>>
Signed-off-by: Martin Leung <Martin.Leung at amd.com<mailto:Martin.Leung at amd.com>>
---
drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c b/drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c
index 26f96ee32472..9200c8ce02ba 100644
--- a/drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c
+++ b/drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c
@@ -308,8 +308,7 @@ void dc_destroy_clk_mgr(struct clk_mgr *clk_mgr_base)
case FAMILY_NV:
if (ASICREV_IS_SIENNA_CICHLID_P(clk_mgr_base->ctx->asic_id.hw_internal_rev)) {
dcn3_clk_mgr_destroy(clk_mgr);
- }
- if (ASICREV_IS_DIMGREY_CAVEFISH_P(clk_mgr_base->ctx->asic_id.hw_internal_rev)) {
+ } else if (ASICREV_IS_DIMGREY_CAVEFISH_P(clk_mgr_base->ctx->asic_id.hw_internal_rev)) {
dcn3_clk_mgr_destroy(clk_mgr);
}
if (ASICREV_IS_BEIGE_GOBY_P(clk_mgr_base->ctx->asic_id.hw_internal_rev)) {
--
2.25.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20211122/13323667/attachment-0001.htm>
More information about the amd-gfx
mailing list