drm/amd/display: eDP fast bootup does not work for pre-raven asic
Subsystems (3)
PATCH 1/1 drm/amd/display: eDP fast bootup does not work for pre-raven asic
From: hersen wu <[email protected]>
[Why] bios will light up eDP before sw driver loaded. sw driver will check if eDP lighted up by bios by reading BIOS_SCRATCH_3. If yes, sw driver will not power down eDP power, phy to save time. definition of BIOS_SCRATCH_3 are missed for pre-raven asic. this cuase eDP fast boot up not work. for some eDP panel, even AMD dp tx send NoVideoStream_flag =1 and dpcd 0x600=2, eDP rx may not handle properly. this may cause short period flash on screen.
[How] add definition of BIOS_SCRATCH_3 for all asic
--- drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c | 3 +-- drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c | 2 ++ drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c | 2 ++ drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c | 2 ++ drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c | 1 + drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c | 2 ++ 6 files changed, 10 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c +1 -2
@@ -83,8 +83,7 @@ uint32_t bios_get_vga_enabled_displays( {uint32_t active_disp =1 ; -if (bios->regs->BIOS_SCRATCH_3)/*follow up with other asic, todo*/ - active_disp =REG_READ (BIOS_SCRATCH_3 ) &0XFFFF ; + active_disp =REG_READ (BIOS_SCRATCH_3 ) &0XFFFF ;return active_disp; }
drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c +2 -0
@@ -76,6 +76,7 @@#ifndef mmBIOS_SCRATCH_2#define mmBIOS_SCRATCH_2 0x05CB +#define mmBIOS_SCRATCH_3 0x05CC#define mmBIOS_SCRATCH_6 0x05CF#endif
@@ -365,6 +366,7 @@ static const struct dce_abm_mask abm_mask = {#define DCFE_MEM_PWR_CTRL_REG_BASE 0x1b03static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3, .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 };
drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c +2 -0
@@ -84,6 +84,7 @@#ifndef mmBIOS_SCRATCH_2#define mmBIOS_SCRATCH_2 0x05CB +#define mmBIOS_SCRATCH_3 0x05CC#define mmBIOS_SCRATCH_6 0x05CF#endif
@@ -369,6 +370,7 @@ static const struct dce110_clk_src_mask cs_mask = { };static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3, .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 };
drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c +2 -0
@@ -76,6 +76,7 @@#ifndef mmBIOS_SCRATCH_2#define mmBIOS_SCRATCH_2 0x05CB +#define mmBIOS_SCRATCH_3 0x05CC#define mmBIOS_SCRATCH_6 0x05CF#endif
@@ -376,6 +377,7 @@ static const struct dce110_clk_src_mask cs_mask = { };static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3, .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 };
drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c +1 -0
@@ -442,6 +442,7 @@ struct dce_i2c_hw *dce120_i2c_hw_create(return dce_i2c_hw; }static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3 +NBIO_BASE (mmBIOS_SCRATCH_3_BASE_IDX), .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 +NBIO_BASE (mmBIOS_SCRATCH_6_BASE_IDX) };
drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c +2 -0
@@ -77,6 +77,7 @@#ifndef mmBIOS_SCRATCH_2#define mmBIOS_SCRATCH_2 0x05CB +#define mmBIOS_SCRATCH_3 0x05CC#define mmBIOS_SCRATCH_6 0x05CF#endif
@@ -358,6 +359,7 @@ static const struct dce110_clk_src_mask cs_mask = { };static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3, .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 };
Signature · 6 lines
2.7.4 _______________________________________________ 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): 1547505375-13003-1-git-send-email-sunpeng.li-5C7GfCeVMHo@public.gmane.org
Dear Hersen, dear Leo,
Some nitpicks. Could you not put the problem statement in the commit message summary, but the solution? For example:
Quoted 1 line
Fix eDP fast bootup for pre-raven asics
Quoted 3 lines · On 01/14/19 23:36, [email protected] wrote:
From: hersen wu <[email protected]>
[Why] bios will light up eDP before sw driver loaded. sw driver will
*is* loaded
Quoted 3 lines
check if eDP lighted up by bios by reading
BIOS_SCRATCH_3. If yes, sw driver will not power down eDP power, phy to save time. definition ofBIOS_SCRATCH_3are missed for pre-raven asic. this
are *missing*
Quoted 1 line
cuase eDP fast boot up not work. for some eDP panel, even AMD dp tx
*causes* … *to* not work.
Quoted 1 line
send
NoVideoStream_flag=1 and dpcd 0x600=2, eDP rx may not handle
send*s*?
Quoted 1 line
properly. this may cause short period flash on screen.
Is that in the eDP specification?
Quoted 1 line
[How] add definition of
BIOS_SCRATCH_3for all asic
How was this tested?
Quoted 19 lines
CC Harry Wentland <[email protected]>Signed-off-by hersen wu <[email protected]>Reviewed-by Charlene Liu <[email protected]>Acked-by Yongqiang Sun <[email protected]>Acked-by Leo Li <[email protected]>--- drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c | 3 +-- drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c | 2 ++ drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c | 2 ++ drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c | 2 ++ drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c | 1 + drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c | 2 ++ 6 files changed, 10 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c +0
-0
drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c uint32_t bios_get_vga_enabled_displays( · line 86
Quoted 6 lines
drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c +1
-2@@ -83,8 +83,7 @@ uint32_t bios_get_vga_enabled_displays( {uint32_t active_disp =1 ; -if (bios->regs->BIOS_SCRATCH_3)/*follow up with other asic, todo*/ - active_disp =REG_READ (BIOS_SCRATCH_3 ) &0XFFFF ; + active_disp =REG_READ (BIOS_SCRATCH_3 ) &0XFFFF ;
So why is the if statement removed?
drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c uint32_t bios_get_vga_enabled_displays( · line 88
Quoted 2 lines
drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c +0
-0return active_disp; }
[…]
Kind regards,
Paul
_______________________________________________
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): 7940e423-a2f0-80dd-f9c9-7f0789572658-KUpvgZVWgV9o1qOY/[email protected]
Quoted 21 lines · Paul Menzel
Dear Hersen, dear Leo,
Some nitpicks. Could you not put the problem statement in the commit message summary, but the solution? For example:
Quoted 1 line
Fix eDP fast bootup for pre-raven asics
Quoted 3 lines · On 01/14/19 23:36, [email protected] wrote:
From: hersen wu <[email protected]>
[Why] bios will light up eDP before sw driver loaded. sw driver will
*is* loaded
Quoted 3 lines
check if eDP lighted up by bios by reading
BIOS_SCRATCH_3. If yes, sw driver will not power down eDP power, phy to save time. definition ofBIOS_SCRATCH_3are missed for pre-raven asic. thisare *missing*
Quoted 7 lines
Quoted 1 line
cuase eDP fast boot up not work. for some eDP panel, even AMD dp tx
*causes* … *to* not work.
Quoted 1 line
send
NoVideoStream_flag=1 and dpcd 0x600=2, eDP rx may not handlesend*s*?
Will be correcting these on submission, thanks!
Quoted 8 lines
Quoted 2 lines
properly. this may cause short period flash on screen.
Is that in the eDP specification?
Quoted 1 line
[How] add definition of
BIOS_SCRATCH_3for all asicHow was this tested?
Hersen may be able to provide more details on the specs. AFAIK it was tested on a stoney laptop where we were able to reproduce the issue. It was fixed after this.
Quoted 23 lines
Quoted 23 lines
CC Harry Wentland <[email protected]>Signed-off-by hersen wu <[email protected]>Reviewed-by Charlene Liu <[email protected]>Acked-by Yongqiang Sun <[email protected]>Acked-by Leo Li <[email protected]>--- drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c | 3 +-- drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c | 2 ++ drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c | 2 ++ drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c | 2 ++ drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c | 1 + drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c | 2 ++ 6 files changed, 10 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c +0
-0@@ -83,8 +83,7 @@ uint32_t bios_get_vga_enabled_displays( {uint32_t active_disp =1 ;
Quoted 5 lines
drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c uint32_t bios_get_vga_enabled_displays( · line 86
Quoted 3 lines
drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c +1
-2-if (bios->regs->BIOS_SCRATCH_3)/*follow up with other asic, todo*/ - active_disp =REG_READ (BIOS_SCRATCH_3 ) &0XFFFF ; + active_disp =REG_READ (BIOS_SCRATCH_3 ) &0XFFFF ;So why is the if statement removed?
The SCRATCH_3 register is defined for all ASICs now, so there's no need to check.
Thanks,
Leo
Quoted 9 lines
drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c uint32_t bios_get_vga_enabled_displays( · line 88
Quoted 3 lines
drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c +0
-0return active_disp; }[…]
Kind regards,
Quoted 8 lines
Paul
_______________________________________________
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
Deucher, Alexander
Reviewed-by Harry Wentland Reviewed-by Reviewed-by Charlene Liu Acked-by Yongqiang Sun Acked-by Leo LiCan this patch be reverted with this change?
commit 95f05a3a2e6895ecfd8b4f64b5d6c6cf0b6a3f4a
Author: Alex Deucher <[email protected]> Date: Thu Aug 16 15:35:21 2018 -0500
drm/amdgpu/display: disable eDP fast boot optimization on DCE8
Seems to cause blank screens.
Other than that, it looks good to me.
________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of [email protected] <[email protected]>
Sent: Monday, January 14, 2019 5:36:15 PM
To: [email protected]
Cc: Wentland, Harry; Wu, Hersen
Subject: [PATCH] drm/amd/display: eDP fast bootup does not work for pre-raven asic
From: hersen wu <[email protected]>
[Why] bios will light up eDP before sw driver loaded. sw driver will check if eDP lighted up by bios by reading BIOS_SCRATCH_3. If yes, sw driver will not power down eDP power, phy to save time. definition of BIOS_SCRATCH_3 are missed for pre-raven asic. this cuase eDP fast boot up not work. for some eDP panel, even AMD dp tx send NoVideoStream_flag =1 and dpcd 0x600=2, eDP rx may not handle properly. this may cause short period flash on screen.
[How] add definition of BIOS_SCRATCH_3 for all asic
--- drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c | 3 +-- drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c | 2 ++ drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c | 2 ++ drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c | 2 ++ drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c | 1 + drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c | 2 ++ 6 files changed, 10 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c +1 -2
@@ -83,8 +83,7 @@ uint32_t bios_get_vga_enabled_displays( {uint32_t active_disp =1 ; -if (bios->regs->BIOS_SCRATCH_3)/*follow up with other asic, todo*/ - active_disp =REG_READ (BIOS_SCRATCH_3 ) &0XFFFF ; + active_disp =REG_READ (BIOS_SCRATCH_3 ) &0XFFFF ;return active_disp; }
drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c +2 -0
@@ -76,6 +76,7 @@#ifndef mmBIOS_SCRATCH_2#define mmBIOS_SCRATCH_2 0x05CB +#define mmBIOS_SCRATCH_3 0x05CC#define mmBIOS_SCRATCH_6 0x05CF#endif
@@ -365,6 +366,7 @@ static const struct dce_abm_mask abm_mask = {#define DCFE_MEM_PWR_CTRL_REG_BASE 0x1b03static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3, .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 };
drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c +2 -0
@@ -84,6 +84,7 @@#ifndef mmBIOS_SCRATCH_2#define mmBIOS_SCRATCH_2 0x05CB +#define mmBIOS_SCRATCH_3 0x05CC#define mmBIOS_SCRATCH_6 0x05CF#endif
@@ -369,6 +370,7 @@ static const struct dce110_clk_src_mask cs_mask = { };static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3, .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 };
drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c +2 -0
@@ -76,6 +76,7 @@#ifndef mmBIOS_SCRATCH_2#define mmBIOS_SCRATCH_2 0x05CB +#define mmBIOS_SCRATCH_3 0x05CC#define mmBIOS_SCRATCH_6 0x05CF#endif
@@ -376,6 +377,7 @@ static const struct dce110_clk_src_mask cs_mask = { };static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3, .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 };
drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c +1 -0
@@ -442,6 +442,7 @@ struct dce_i2c_hw *dce120_i2c_hw_create(return dce_i2c_hw; }static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3 +NBIO_BASE (mmBIOS_SCRATCH_3_BASE_IDX), .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 +NBIO_BASE (mmBIOS_SCRATCH_6_BASE_IDX) };
drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c +2 -0
@@ -77,6 +77,7 @@#ifndef mmBIOS_SCRATCH_2#define mmBIOS_SCRATCH_2 0x05CB +#define mmBIOS_SCRATCH_3 0x05CC#define mmBIOS_SCRATCH_6 0x05CF#endif
@@ -358,6 +359,7 @@ static const struct dce110_clk_src_mask cs_mask = { };static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3, .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 };
--
2.7.4
_______________________________________________
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): BN6PR12MB1809BE511C1770BED3E4349DF7810-/b2+HYfkarSEx6ez0IUAagdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
Wu, Hersen
Reviewed-by Harry Wentland Reviewed-by Alex Deucher Reviewed-by Charlene Liu Acked-by Yongqiang Sun Acked-by Leo LiHi, Alex,
Hersen's change is for older version of eDP fast boot up ( bios_get_vga_enabled_displays is called). Chrome tree source still use bios_get_vga_enabled_displays for fast boot up.
Harry's change is new implementation of eDP fast boot up.
Hersen's change will not revert Harry's change.
Thanks,
Hersen
From: Deucher, Alexander <[email protected]>
Sent: Tuesday, January 15, 2019 10:43 AM
To: Li, Sun peng (Leo) <[email protected]>; [email protected]
Cc: Wentland, Harry <[email protected]>; Wu, Hersen <[email protected]>
Subject: Re: [PATCH] drm/amd/display: eDP fast bootup does not work for pre-raven asic
Can this patch be reverted with this change?
commit 95f05a3a2e6895ecfd8b4f64b5d6c6cf0b6a3f4a
Author: Alex Deucher <[email protected]<mailto:[email protected]>> Date: Thu Aug 16 15:35:21 2018 -0500
drm/amdgpu/display: disable eDP fast boot optimization on DCE8
Seems to cause blank screens.
Other than that, it looks good to me.
________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org<mailto:[email protected]>> on behalf of [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>
Sent: Monday, January 14, 2019 5:36:15 PM
To: [email protected]<mailto:[email protected]>
Cc: Wentland, Harry; Wu, Hersen
Subject: [PATCH] drm/amd/display: eDP fast bootup does not work for pre-raven asic
From: hersen wu <[email protected]<mailto:[email protected]>>
[Why] bios will light up eDP before sw driver loaded. sw driver will check if eDP lighted up by bios by reading BIOS_SCRATCH_3. If yes, sw driver will not power down eDP power, phy to save time. definition of BIOS_SCRATCH_3 are missed for pre-raven asic. this cuase eDP fast boot up not work. for some eDP panel, even AMD dp tx send NoVideoStream_flag =1 and dpcd 0x600=2, eDP rx may not handle properly. this may cause short period flash on screen.
[How] add definition of BIOS_SCRATCH_3 for all asic
--- drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c | 3 +-- drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c | 2 ++ drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c | 2 ++ drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c | 2 ++ drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c | 1 + drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c | 2 ++ 6 files changed, 10 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c +1 -2
@@ -83,8 +83,7 @@ uint32_t bios_get_vga_enabled_displays( {uint32_t active_disp =1 ; -if (bios->regs->BIOS_SCRATCH_3)/*follow up with other asic, todo*/ - active_disp =REG_READ (BIOS_SCRATCH_3 ) &0XFFFF ; + active_disp =REG_READ (BIOS_SCRATCH_3 ) &0XFFFF ;return active_disp; }
drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c +2 -0
@@ -76,6 +76,7 @@#ifndef mmBIOS_SCRATCH_2#define mmBIOS_SCRATCH_2 0x05CB +#define mmBIOS_SCRATCH_3 0x05CC#define mmBIOS_SCRATCH_6 0x05CF#endif
@@ -365,6 +366,7 @@ static const struct dce_abm_mask abm_mask = {#define DCFE_MEM_PWR_CTRL_REG_BASE 0x1b03static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3, .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 };
drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c +2 -0
@@ -84,6 +84,7 @@#ifndef mmBIOS_SCRATCH_2#define mmBIOS_SCRATCH_2 0x05CB +#define mmBIOS_SCRATCH_3 0x05CC#define mmBIOS_SCRATCH_6 0x05CF#endif
@@ -369,6 +370,7 @@ static const struct dce110_clk_src_mask cs_mask = { };static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3, .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 };
drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c +2 -0
@@ -76,6 +76,7 @@#ifndef mmBIOS_SCRATCH_2#define mmBIOS_SCRATCH_2 0x05CB +#define mmBIOS_SCRATCH_3 0x05CC#define mmBIOS_SCRATCH_6 0x05CF#endif
@@ -376,6 +377,7 @@ static const struct dce110_clk_src_mask cs_mask = { };static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3, .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 };
drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c +1 -0
@@ -442,6 +442,7 @@ struct dce_i2c_hw *dce120_i2c_hw_create(return dce_i2c_hw; }static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3 +NBIO_BASE (mmBIOS_SCRATCH_3_BASE_IDX), .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 +NBIO_BASE (mmBIOS_SCRATCH_6_BASE_IDX) };
drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c +2 -0
@@ -77,6 +77,7 @@#ifndef mmBIOS_SCRATCH_2#define mmBIOS_SCRATCH_2 0x05CB +#define mmBIOS_SCRATCH_3 0x05CC#define mmBIOS_SCRATCH_6 0x05CF#endif
@@ -358,6 +359,7 @@ static const struct dce110_clk_src_mask cs_mask = { };static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3, .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 };
--
2.7.4
_______________________________________________
amd-gfx mailing list [email protected]<mailto:[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): DM5PR1201MB255383E2B49EFBE55ABA16D4FD810-grEf7a3NxMAXo4eMau56LGrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/[email protected]
I'm not sure I understand. If we were to apply your proposed patch, could we revert 95f05a3a2e6895ecfd8b4f64b5d6c6 ?
Thanks,
Alex
Quoted 207 lines · Hersen
Hi, Alex,
Hersen’s change is for older version of eDP fast boot up (
bios_get_vga_enabled_displaysis called).Chrome tree source still use
bios_get_vga_enabled_displaysfor fast boot up.Harry’s change is new implementation of eDP fast boot up.
Hersen’s change will not revert Harry’s change.
Thanks,
Hersen
From: Deucher, Alexander <[email protected]>
Sent: Tuesday, January 15, 2019 10:43 AM
To: Li, Sun peng (Leo) <[email protected]>; [email protected]
Cc: Wentland, Harry <[email protected]>; Wu, Hersen <[email protected]>
Subject: Re: [PATCH] drm/amd/display: eDP fast bootup does not work for pre-raven asicCan this patch be reverted with this change?
commit
95f05a3a2e6895ecfd8b4f64b5d6c6cf0b6a3f4aAuthor: Alex Deucher <[email protected]> Date: Thu Aug 16 15:35:21 2018 -0500drm/amdgpu/display: disable eDP fast boot optimization on DCE8
Seems to cause blank screens.
Reviewed-by Harry Wentland <[email protected]>Signed-off-by Alex Deucher <[email protected]>Other than that, it looks good to me.
Reviewed-by Alex Deucher <[email protected]>________________________________
From: amd-gfx <[email protected]> on behalf of [email protected] <[email protected]>
Sent: Monday, January 14, 2019 5:36:15 PM
To: [email protected]
Cc: Wentland, Harry; Wu, Hersen
Subject: [PATCH] drm/amd/display: eDP fast bootup does not work for pre-raven asicFrom: hersen wu <[email protected]>
[Why] bios will light up eDP before sw driver loaded. sw driver will check if eDP lighted up by bios by reading
BIOS_SCRATCH_3. If yes, sw driver will not power down eDP power, phy to save time. definition ofBIOS_SCRATCH_3are missed for pre-raven asic. this cuase eDP fast boot up not work. for some eDP panel, even AMD dp tx sendNoVideoStream_flag=1 and dpcd 0x600=2, eDP rx may not handle properly. this may cause short period flash on screen.[How] add definition of
BIOS_SCRATCH_3for all asicCC Harry Wentland <[email protected]>Signed-off-by hersen wu <[email protected]>Reviewed-by Charlene Liu <[email protected]>Acked-by Yongqiang Sun <[email protected]>Acked-by Leo Li <[email protected]>--- drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c | 3 +-- drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c | 2 ++ drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c | 2 ++ drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c | 2 ++ drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c | 1 + drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c | 2 ++ 6 files changed, 10 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c +1
-2@@ -83,8 +83,7 @@ uint32_t bios_get_vga_enabled_displays( {uint32_t active_disp =1 ; -if (bios->regs->BIOS_SCRATCH_3)/*follow up with other asic, todo*/ - active_disp =REG_READ (BIOS_SCRATCH_3 ) &0XFFFF ; + active_disp =REG_READ (BIOS_SCRATCH_3 ) &0XFFFF ;return active_disp; }drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c +2
-0@@ -76,6 +76,7 @@#ifndef mmBIOS_SCRATCH_2#define mmBIOS_SCRATCH_2 0x05CB +#define mmBIOS_SCRATCH_3 0x05CC#define mmBIOS_SCRATCH_6 0x05CF#endif @@ -365,6 +366,7 @@ static const struct dce_abm_mask abm_mask = {#define DCFE_MEM_PWR_CTRL_REG_BASE 0x1b03static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3, .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 };drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c +2
-0@@ -84,6 +84,7 @@#ifndef mmBIOS_SCRATCH_2#define mmBIOS_SCRATCH_2 0x05CB +#define mmBIOS_SCRATCH_3 0x05CC#define mmBIOS_SCRATCH_6 0x05CF#endif @@ -369,6 +370,7 @@ static const struct dce110_clk_src_mask cs_mask = { };static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3, .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 };drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c +2
-0@@ -76,6 +76,7 @@#ifndef mmBIOS_SCRATCH_2#define mmBIOS_SCRATCH_2 0x05CB +#define mmBIOS_SCRATCH_3 0x05CC#define mmBIOS_SCRATCH_6 0x05CF#endif @@ -376,6 +377,7 @@ static const struct dce110_clk_src_mask cs_mask = { };static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3, .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 };drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c +1
-0@@ -442,6 +442,7 @@ struct dce_i2c_hw *dce120_i2c_hw_create(return dce_i2c_hw; }static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3 +NBIO_BASE (mmBIOS_SCRATCH_3_BASE_IDX), .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 +NBIO_BASE (mmBIOS_SCRATCH_6_BASE_IDX) };drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c +2
-1@@ -77,6 +77,7 @@#ifndef mmBIOS_SCRATCH_2#define mmBIOS_SCRATCH_2 0x05CB +#define mmBIOS_SCRATCH_3 0x05CC#define mmBIOS_SCRATCH_6 0x05CF#endif @@ -358,6 +359,7 @@ static const struct dce110_clk_src_mask cs_mask = { };static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3, .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 }; --2.7.4
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 4 lines
_______________________________________________
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): CADnq5_Mbw7ptXuXSM15P6oNcs1hQfmk6B+8C5D0G7m92VBG1fA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
My change will NOT revert 95f05a3a2e6895ecfd8b4f64b5d6c6.
Thanks
Hersen
-----Original Message-----
From: Alex Deucher <[email protected]>
Sent: Tuesday, January 15, 2019 12:01 PM
To: Wu, Hersen <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Li, Sun peng (Leo) <[email protected]>; [email protected]; Wentland, Harry <[email protected]>
Subject: Re: [PATCH] drm/amd/display: eDP fast bootup does not work for pre-raven asic
I'm not sure I understand. If we were to apply your proposed patch, could we revert 95f05a3a2e6895ecfd8b4f64b5d6c6 ?
Thanks,
Alex
Quoted 211 lines · Hersen
Hi, Alex,
Hersen’s change is for older version of eDP fast boot up (
bios_get_vga_enabled_displaysis called).Chrome tree source still use
bios_get_vga_enabled_displaysfor fast boot up.Harry’s change is new implementation of eDP fast boot up.
Hersen’s change will not revert Harry’s change.
Thanks,
Hersen
From: Deucher, Alexander <[email protected]>
Sent: Tuesday, January 15, 2019 10:43 AM
To: Li, Sun peng (Leo) <[email protected]>; [email protected]
Cc: Wentland, Harry <[email protected]>; Wu, Hersen <[email protected]>
Subject: Re: [PATCH] drm/amd/display: eDP fast bootup does not work for pre-raven asicCan this patch be reverted with this change?
commit
95f05a3a2e6895ecfd8b4f64b5d6c6cf0b6a3f4aAuthor: Alex Deucher <[email protected]> Date: Thu Aug 16 15:35:21 2018 -0500drm/amdgpu/display: disable eDP fast boot optimization on DCE8
Seems to cause blank screens.
Reviewed-by Harry Wentland <[email protected]>Signed-off-by Alex Deucher <[email protected]>Other than that, it looks good to me.
Reviewed-by Alex Deucher <[email protected]>________________________________
From: amd-gfx <[email protected]> on behalf of [email protected] <[email protected]>
Sent: Monday, January 14, 2019 5:36:15 PM
To: [email protected]
Cc: Wentland, Harry; Wu, Hersen
Subject: [PATCH] drm/amd/display: eDP fast bootup does not work for pre-raven asicFrom: hersen wu <[email protected]>
[Why] bios will light up eDP before sw driver loaded. sw driver will check if eDP lighted up by bios by reading
BIOS_SCRATCH_3. If yes, sw driver will not power down eDP power, phy to save time. definition ofBIOS_SCRATCH_3are missed for pre-raven asic. this cuase eDP fast boot up not work. for some eDP panel, even AMD dp tx sendNoVideoStream_flag=1 and dpcd 0x600=2, eDP rx may not handle properly. this may cause short period flash on screen.[How] add definition of
BIOS_SCRATCH_3for all asicCC Harry Wentland <[email protected]>Signed-off-by hersen wu <[email protected]>Reviewed-by Charlene Liu <[email protected]>Acked-by Yongqiang Sun <[email protected]>Acked-by Leo Li <[email protected]>--- drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c | 3 +-- drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c | 2 ++ drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c | 2 ++ drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c | 2 ++ drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c | 1 + drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c | 2 ++ 6 files changed, 10 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c +1
-2@@ -83,8 +83,7 @@ uint32_t bios_get_vga_enabled_displays( {uint32_t active_disp =1 ; -if (bios->regs->BIOS_SCRATCH_3)/*follow up with other asic, todo*/ - active_disp =REG_READ (BIOS_SCRATCH_3 ) &0XFFFF ; + active_disp =REG_READ (BIOS_SCRATCH_3 ) &0XFFFF ;return active_disp; }drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c +2
-0@@ -76,6 +76,7 @@#ifndef mmBIOS_SCRATCH_2#define mmBIOS_SCRATCH_2 0x05CB +#define mmBIOS_SCRATCH_3 0x05CC#define mmBIOS_SCRATCH_6 0x05CF #endif@@ -365,6 +366,7 @@ static const struct dce_abm_mask abm_mask = {#define DCFE_MEM_PWR_CTRL_REG_BASE 0x1b03static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3, .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 };drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c +2
-0@@ -84,6 +84,7 @@#ifndef mmBIOS_SCRATCH_2#define mmBIOS_SCRATCH_2 0x05CB +#define mmBIOS_SCRATCH_3 0x05CC#define mmBIOS_SCRATCH_6 0x05CF #endif@@ -369,6 +370,7 @@ static const struct dce110_clk_src_mask cs_mask = { };static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3, .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 };drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c +2
-0@@ -76,6 +76,7 @@#ifndef mmBIOS_SCRATCH_2#define mmBIOS_SCRATCH_2 0x05CB +#define mmBIOS_SCRATCH_3 0x05CC#define mmBIOS_SCRATCH_6 0x05CF #endif@@ -376,6 +377,7 @@ static const struct dce110_clk_src_mask cs_mask = { };static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3, .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 };drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c +2
-0@@ -442,6 +442,7 @@ struct dce_i2c_hw *dce120_i2c_hw_create(return dce_i2c_hw; }static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3 + +NBIO_BASE (mmBIOS_SCRATCH_3_BASE_IDX), .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 +NBIO_BASE (mmBIOS_SCRATCH_6_BASE_IDX) };drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c +2
-1@@ -77,6 +77,7 @@#ifndef mmBIOS_SCRATCH_2#define mmBIOS_SCRATCH_2 0x05CB +#define mmBIOS_SCRATCH_3 0x05CC#define mmBIOS_SCRATCH_6 0x05CF #endif@@ -358,6 +359,7 @@ static const struct dce110_clk_src_mask cs_mask = { };static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3, .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 }; --2.7.4
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 4 lines
_______________________________________________
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): DM5PR1201MB2553FF75089AC4B01F05962CFD810-grEf7a3NxMAXo4eMau56LGrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/[email protected]
So 95f05a3a2e6895ecfd8b4f64b5d6c6 is still valid even with your patch and we should keep it? Thanks
Alex
________________________________
From: Wu, Hersen
Sent: Tuesday, January 15, 2019 12:04:30 PM
To: Alex Deucher
Cc: Deucher, Alexander; Li, Sun peng (Leo); [email protected]; Wentland, Harry
Subject: RE: [PATCH] drm/amd/display: eDP fast bootup does not work for pre-raven asic
My change will NOT revert 95f05a3a2e6895ecfd8b4f64b5d6c6.
Thanks
Hersen
-----Original Message-----
From: Alex Deucher <[email protected]>
Sent: Tuesday, January 15, 2019 12:01 PM
To: Wu, Hersen <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Li, Sun peng (Leo) <[email protected]>; [email protected]; Wentland, Harry <[email protected]>
Subject: Re: [PATCH] drm/amd/display: eDP fast bootup does not work for pre-raven asic
I'm not sure I understand. If we were to apply your proposed patch, could we revert 95f05a3a2e6895ecfd8b4f64b5d6c6 ?
Thanks,
Alex
Quoted 211 lines · Hersen
Hi, Alex,
Hersen’s change is for older version of eDP fast boot up (
bios_get_vga_enabled_displaysis called).Chrome tree source still use
bios_get_vga_enabled_displaysfor fast boot up.Harry’s change is new implementation of eDP fast boot up.
Hersen’s change will not revert Harry’s change.
Thanks,
Hersen
From: Deucher, Alexander <[email protected]>
Sent: Tuesday, January 15, 2019 10:43 AM
To: Li, Sun peng (Leo) <[email protected]>; [email protected]
Cc: Wentland, Harry <[email protected]>; Wu, Hersen <[email protected]>
Subject: Re: [PATCH] drm/amd/display: eDP fast bootup does not work for pre-raven asicCan this patch be reverted with this change?
commit
95f05a3a2e6895ecfd8b4f64b5d6c6cf0b6a3f4aAuthor: Alex Deucher <[email protected]> Date: Thu Aug 16 15:35:21 2018 -0500drm/amdgpu/display: disable eDP fast boot optimization on DCE8
Seems to cause blank screens.
Reviewed-by Harry Wentland <[email protected]>Signed-off-by Alex Deucher <[email protected]>Other than that, it looks good to me.
Reviewed-by Alex Deucher <[email protected]>________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of [email protected] <[email protected]>
Sent: Monday, January 14, 2019 5:36:15 PM
To: [email protected]
Cc: Wentland, Harry; Wu, Hersen
Subject: [PATCH] drm/amd/display: eDP fast bootup does not work for
pre-raven asicFrom: hersen wu <[email protected]>
[Why] bios will light up eDP before sw driver loaded. sw driver will check if eDP lighted up by bios by reading
BIOS_SCRATCH_3. If yes, sw driver will not power down eDP power, phy to save time. definition ofBIOS_SCRATCH_3are missed for pre-raven asic. this cuase eDP fast boot up not work. for some eDP panel, even AMD dp tx sendNoVideoStream_flag=1 and dpcd 0x600=2, eDP rx may not handle properly. this may cause short period flash on screen.[How] add definition of
BIOS_SCRATCH_3for all asicCC Harry Wentland <[email protected]>Signed-off-by hersen wu <[email protected]>Reviewed-by Charlene Liu <[email protected]>Acked-by Yongqiang Sun <[email protected]>Acked-by Leo Li <[email protected]>--- drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c | 3 +-- drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c | 2 ++ drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c | 2 ++ drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c | 2 ++ drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c | 1 + drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c | 2 ++ 6 files changed, 10 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c +1
-2@@ -83,8 +83,7 @@ uint32_t bios_get_vga_enabled_displays( {uint32_t active_disp =1 ; -if (bios->regs->BIOS_SCRATCH_3)/*follow up with other asic, todo*/ - active_disp =REG_READ (BIOS_SCRATCH_3 ) &0XFFFF ; + active_disp =REG_READ (BIOS_SCRATCH_3 ) &0XFFFF ;return active_disp; }drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c +2
-0@@ -76,6 +76,7 @@#ifndef mmBIOS_SCRATCH_2#define mmBIOS_SCRATCH_2 0x05CB +#define mmBIOS_SCRATCH_3 0x05CC#define mmBIOS_SCRATCH_6 0x05CF #endif@@ -365,6 +366,7 @@ static const struct dce_abm_mask abm_mask = {#define DCFE_MEM_PWR_CTRL_REG_BASE 0x1b03static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3, .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 };drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c +2
-0@@ -84,6 +84,7 @@#ifndef mmBIOS_SCRATCH_2#define mmBIOS_SCRATCH_2 0x05CB +#define mmBIOS_SCRATCH_3 0x05CC#define mmBIOS_SCRATCH_6 0x05CF #endif@@ -369,6 +370,7 @@ static const struct dce110_clk_src_mask cs_mask = { };static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3, .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 };drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c +2
-0@@ -76,6 +76,7 @@#ifndef mmBIOS_SCRATCH_2#define mmBIOS_SCRATCH_2 0x05CB +#define mmBIOS_SCRATCH_3 0x05CC#define mmBIOS_SCRATCH_6 0x05CF #endif@@ -376,6 +377,7 @@ static const struct dce110_clk_src_mask cs_mask = { };static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3, .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 };drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c +2
-0@@ -442,6 +442,7 @@ struct dce_i2c_hw *dce120_i2c_hw_create(return dce_i2c_hw; }static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3 + +NBIO_BASE (mmBIOS_SCRATCH_3_BASE_IDX), .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 +NBIO_BASE (mmBIOS_SCRATCH_6_BASE_IDX) };drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c +2
-1@@ -77,6 +77,7 @@#ifndef mmBIOS_SCRATCH_2#define mmBIOS_SCRATCH_2 0x05CB +#define mmBIOS_SCRATCH_3 0x05CC#define mmBIOS_SCRATCH_6 0x05CF #endif@@ -358,6 +359,7 @@ static const struct dce110_clk_src_mask cs_mask = { };static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3, .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 }; --2.7.4
_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 4 lines
_______________________________________________
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): BN6PR12MB1809D016156DD31C51A185F5F7810-/b2+HYfkarSEx6ez0IUAagdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
Hi, Alex,
You are right!
Thanks,
Hersen
From: Deucher, Alexander <[email protected]>
Sent: Tuesday, January 15, 2019 12:18 PM
To: Wu, Hersen <[email protected]>; Alex Deucher <[email protected]>
Cc: Li, Sun peng (Leo) <[email protected]>; [email protected]; Wentland, Harry <[email protected]>
Subject: Re: [PATCH] drm/amd/display: eDP fast bootup does not work for pre-raven asic
So 95f05a3a2e6895ecfd8b4f64b5d6c6 is still valid even with your patch and we should keep it? Thanks
Alex
________________________________
From: Wu, Hersen
Sent: Tuesday, January 15, 2019 12:04:30 PM
To: Alex Deucher
Cc: Deucher, Alexander; Li, Sun peng (Leo); [email protected]<mailto:[email protected]>; Wentland, Harry
Subject: RE: [PATCH] drm/amd/display: eDP fast bootup does not work for pre-raven asic
My change will NOT revert 95f05a3a2e6895ecfd8b4f64b5d6c6.
Thanks
Hersen
-----Original Message-----
From: Alex Deucher <[email protected]<mailto:[email protected]>>
Sent: Tuesday, January 15, 2019 12:01 PM
To: Wu, Hersen <[email protected]<mailto:[email protected]>>
Cc: Deucher, Alexander <[email protected]<mailto:[email protected]>>; Li, Sun peng (Leo) <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]>; Wentland, Harry <[email protected]<mailto:[email protected]>>
Subject: Re: [PATCH] drm/amd/display: eDP fast bootup does not work for pre-raven asic
I'm not sure I understand. If we were to apply your proposed patch, could we revert 95f05a3a2e6895ecfd8b4f64b5d6c6 ?
Thanks,
Alex
Quoted 211 lines · On Tue, Jan 15, 2019 at 11:57 AM Wu, Hersen…
Hi, Alex,
Hersen's change is for older version of eDP fast boot up (
bios_get_vga_enabled_displaysis called).Chrome tree source still use
bios_get_vga_enabled_displaysfor fast boot up.Harry's change is new implementation of eDP fast boot up.
Hersen's change will not revert Harry's change.
Thanks,
Hersen
From: Deucher, Alexander <[email protected]<mailto:[email protected]>>
Sent: Tuesday, January 15, 2019 10:43 AM
To: Li, Sun peng (Leo) <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]>
Cc: Wentland, Harry <[email protected]<mailto:[email protected]>>; Wu, Hersen <[email protected]<mailto:[email protected]>>
Subject: Re: [PATCH] drm/amd/display: eDP fast bootup does not work
for pre-raven asicCan this patch be reverted with this change?
commit
95f05a3a2e6895ecfd8b4f64b5d6c6cf0b6a3f4aAuthor: Alex Deucher <[email protected]<mailto:[email protected]>> Date: Thu Aug 16 15:35:21 2018 -0500drm/amdgpu/display: disable eDP fast boot optimization on DCE8
Seems to cause blank screens.
Other than that, it looks good to me.
________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org<mailto:amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>> on behalf of [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>
Sent: Monday, January 14, 2019 5:36:15 PM
To: [email protected]<mailto:[email protected]>
Cc: Wentland, Harry; Wu, Hersen
Subject: [PATCH] drm/amd/display: eDP fast bootup does not work for
pre-raven asicFrom: hersen wu <[email protected]<mailto:[email protected]>>
[Why] bios will light up eDP before sw driver loaded. sw driver will check if eDP lighted up by bios by reading
BIOS_SCRATCH_3. If yes, sw driver will not power down eDP power, phy to save time. definition ofBIOS_SCRATCH_3are missed for pre-raven asic. this cuase eDP fast boot up not work. for some eDP panel, even AMD dp tx sendNoVideoStream_flag=1 and dpcd 0x600=2, eDP rx may not handle properly. this may cause short period flash on screen.[How] add definition of
BIOS_SCRATCH_3for all asicCC Harry Wentland <[email protected]<mailto:[email protected]>>Signed-off-by hersen wu <[email protected]<mailto:[email protected]>>--- drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c | 3 +-- drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c | 2 ++ drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c | 2 ++ drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c | 2 ++ drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c | 1 + drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c | 2 ++ 6 files changed, 10 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c +1
-2@@ -83,8 +83,7 @@ uint32_t bios_get_vga_enabled_displays( {uint32_t active_disp =1 ; -if (bios->regs->BIOS_SCRATCH_3)/*follow up with other asic, todo*/ - active_disp =REG_READ (BIOS_SCRATCH_3 ) &0XFFFF ; + active_disp =REG_READ (BIOS_SCRATCH_3 ) &0XFFFF ;return active_disp; }drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c +2
-0@@ -76,6 +76,7 @@#ifndef mmBIOS_SCRATCH_2#define mmBIOS_SCRATCH_2 0x05CB +#define mmBIOS_SCRATCH_3 0x05CC#define mmBIOS_SCRATCH_6 0x05CF #endif@@ -365,6 +366,7 @@ static const struct dce_abm_mask abm_mask = {#define DCFE_MEM_PWR_CTRL_REG_BASE 0x1b03static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3, .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 };drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c +2
-0@@ -84,6 +84,7 @@#ifndef mmBIOS_SCRATCH_2#define mmBIOS_SCRATCH_2 0x05CB +#define mmBIOS_SCRATCH_3 0x05CC#define mmBIOS_SCRATCH_6 0x05CF #endif@@ -369,6 +370,7 @@ static const struct dce110_clk_src_mask cs_mask = { };static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3, .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 };drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c +2
-0@@ -76,6 +76,7 @@#ifndef mmBIOS_SCRATCH_2#define mmBIOS_SCRATCH_2 0x05CB +#define mmBIOS_SCRATCH_3 0x05CC#define mmBIOS_SCRATCH_6 0x05CF #endif@@ -376,6 +377,7 @@ static const struct dce110_clk_src_mask cs_mask = { };static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3, .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 };drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c +2
-0@@ -442,6 +442,7 @@ struct dce_i2c_hw *dce120_i2c_hw_create(return dce_i2c_hw; }static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3 + +NBIO_BASE (mmBIOS_SCRATCH_3_BASE_IDX), .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 +NBIO_BASE (mmBIOS_SCRATCH_6_BASE_IDX) };drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c +2
-1@@ -77,6 +77,7 @@#ifndef mmBIOS_SCRATCH_2#define mmBIOS_SCRATCH_2 0x05CB +#define mmBIOS_SCRATCH_3 0x05CC#define mmBIOS_SCRATCH_6 0x05CF #endif@@ -358,6 +359,7 @@ static const struct dce110_clk_src_mask cs_mask = { };static const struct bios_registers bios_regs = { + .BIOS_SCRATCH_3 = mmBIOS_SCRATCH_3, .BIOS_SCRATCH_6 = mmBIOS_SCRATCH_6 }; --2.7.4
_______________________________________________
amd-gfx mailing list [email protected]<mailto:[email protected]>
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 4 lines
_______________________________________________
amd-gfx mailing list [email protected]<mailto:[email protected]>
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx