Hello Chris Wang,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/48734
to review the following change.
Change subject: mb/google/zork/: add edp tunning parameter to fix the edp noise ......................................................................
mb/google/zork/: add edp tunning parameter to fix the edp noise
needs to adjust edp phy setting to fix the edp noise for WWAN.
DP_VS_LEVEL0_PREEMPH_LEVEL0, = 0x00 (0.4v 0db) swing 0, pre-emphasis 0) COMMON_MAR_DEEMPH_NOM = 0x004B COMMON_SELDEEMPH60 = 0x0 CMD_BUS_GLOBAL_FOR_TX_LANE0 = 0x80
Signed-off-by: Chris Wang chris.wang@amd.corp-partner.google.com Change-Id: Ibe720e26d2257e05a989eaa1fd85d542005cf6a6 --- M src/mainboard/google/zork/variants/vilboz/overridetree.cb 1 file changed, 13 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/34/48734/1
diff --git a/src/mainboard/google/zork/variants/vilboz/overridetree.cb b/src/mainboard/google/zork/variants/vilboz/overridetree.cb index a3c2c97..b6a886c 100644 --- a/src/mainboard/google/zork/variants/vilboz/overridetree.cb +++ b/src/mainboard/google/zork/variants/vilboz/overridetree.cb @@ -23,6 +23,19 @@ register "telemetry_vddcr_soc_slope_mA" = "20001" register "telemetry_vddcr_soc_offset" = "168"
+ # eDP phy tunning settings + register "dp_phy_override" = "ENABLE_EDP_TUNINGSET" + register "edp_phy_sel" = "0x1" + register "edp_version" = "0x0" + register "edp_table_size" = "0x05" + + register "edp_tuningset" = "{ + .dp_vs_pemph_level = 0x0, + .deemph_6db4 = 0x004b, + .boostadj = 0x0, + .margin_deemph = 0x80, + }" + # USB OC pin mapping register "usb_port_overcurrent_pin[1]" = "USB_OC_NONE" # LTE instead of USB C1
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/48734 )
Change subject: mb/google/zork/: add edp tunning parameter to fix the edp noise ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/c/coreboot/+/48734/1/src/mainboard/google/zork/v... File src/mainboard/google/zork/variants/vilboz/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/48734/1/src/mainboard/google/zork/v... PS1, Line 26: # eDP phy tunning settings 'tunning' may be misspelled - perhaps 'tuning'?
Hello Chris Wang,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/48734
to look at the new patch set (#2).
Change subject: mb/google/zork/: add edp tunning parameter to fix the edp noise ......................................................................
mb/google/zork/: add edp tunning parameter to fix the edp noise
needs to adjust edp phy setting to fix the edp noise for WWAN.
DP_VS_LEVEL0_PREEMPH_LEVEL0, = 0x00 (0.4v 0db) swing 0, pre-emphasis 0) COMMON_MAR_DEEMPH_NOM = 0x004B COMMON_SELDEEMPH60 = 0x0 CMD_BUS_GLOBAL_FOR_TX_LANE0 = 0x80
BUG=b:171269338 BRANCH=none TEST=Build; Verify the UPD was pass to system integrated table
Signed-off-by: Chris Wang chris.wang@amd.corp-partner.google.com Change-Id: Ibe720e26d2257e05a989eaa1fd85d542005cf6a6 --- M src/mainboard/google/zork/variants/vilboz/overridetree.cb 1 file changed, 13 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/34/48734/2
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/48734 )
Change subject: mb/google/zork/: add edp tunning parameter to fix the edp noise ......................................................................
Patch Set 2:
(1 comment)
https://review.coreboot.org/c/coreboot/+/48734/2//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/48734/2//COMMIT_MSG@7 PS2, Line 7: mb/google/zork/ Please remove the trailing /.
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/48734 )
Change subject: mb/google/zork/: add edp tunning parameter to fix the edp noise ......................................................................
Patch Set 3:
(1 comment)
File src/mainboard/google/zork/variants/vilboz/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/48734/comment/d288ac78_6c51046f PS3, Line 26: # eDP phy tunning settings 'tunning' may be misspelled - perhaps 'tuning'?
Attention is currently required from: chris wang. build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/48734 )
Change subject: mb/google/zork/: add edp tunning parameter to fix the edp noise ......................................................................
Patch Set 4:
(1 comment)
File src/mainboard/google/zork/variants/vilboz/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/48734/comment/c225708f_afbbe8b9 PS4, Line 26: # eDP phy tunning settings 'tunning' may be misspelled - perhaps 'tuning'?
Attention is currently required from: chris wang. Hello build bot (Jenkins), Chris Wang,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/48734
to look at the new patch set (#5).
Change subject: mb/google/zork: add edp tunning parameter to fix the edp noise ......................................................................
mb/google/zork: add edp tunning parameter to fix the edp noise
needs to adjust edp phy setting to fix the edp noise for WWAN.
DP_VS_LEVEL0_PREEMPH_LEVEL0, = 0x00 (0.4v 0db) swing 0, pre-emphasis 0) COMMON_MAR_DEEMPH_NOM = 0x004B COMMON_SELDEEMPH60 = 0x0 CMD_BUS_GLOBAL_FOR_TX_LANE0 = 0x80
BUG=b:171269338 BRANCH=none TEST=Build; Verify the UPD was passed to system integrated table
Signed-off-by: Chris Wang chris.wang@amd.corp-partner.google.com Change-Id: Ibe720e26d2257e05a989eaa1fd85d542005cf6a6 --- M src/mainboard/google/zork/variants/vilboz/overridetree.cb 1 file changed, 13 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/34/48734/5
Attention is currently required from: Paul Menzel. chris wang has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/48734 )
Change subject: mb/google/zork: add edp tunning parameter to fix the edp noise ......................................................................
Patch Set 5:
(1 comment)
Commit Message:
https://review.coreboot.org/c/coreboot/+/48734/comment/bb8d5b11_a9eca86f PS2, Line 7: mb/google/zork/
Please remove the trailing /.
Done
Attention is currently required from: Paul Menzel. build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/48734 )
Change subject: mb/google/zork: add edp tunning parameter to fix the edp noise ......................................................................
Patch Set 5:
(1 comment)
File src/mainboard/google/zork/variants/vilboz/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/48734/comment/0fd6915e_4ec78456 PS5, Line 26: # eDP phy tunning settings 'tunning' may be misspelled - perhaps 'tuning'?
Attention is currently required from: Paul Menzel, chris wang. Felix Held has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/48734 )
Change subject: mb/google/zork: add edp tunning parameter to fix the edp noise ......................................................................
Patch Set 5:
(1 comment)
File src/mainboard/google/zork/variants/vilboz/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/48734/comment/508e6dde_d8df7dfe PS5, Line 30: register "edp_table_size" = "0x05" haven't really figured out what this does on the fsp side exactly, but it does seem rather odd to me, since i have the impression that this is just the constant size of edp_tuningset
Attention is currently required from: Paul Menzel, chris wang, Felix Held. Nikolai Vyssotski has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/48734 )
Change subject: mb/google/zork: add edp tunning parameter to fix the edp noise ......................................................................
Patch Set 5:
(1 comment)
File src/mainboard/google/zork/variants/vilboz/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/48734/comment/6697fb5b_e2f7548f PS5, Line 30: register "edp_table_size" = "0x05"
haven't really figured out what this does on the fsp side exactly, but it does seem rather odd to me […]
I would think this would be the resulting size of dptuning[] table that gets initialized in FSP. Current FSP implementation is only using one of the entries in the table (1 * sizeof(edp_tuningset)) which results in 5 byte table. We do need to double check if the units here are bytes or number of valid edp_tuningset(s) which would be 1 in this case. Adding Eddie to the review to verify.
Attention is currently required from: Paul Menzel, chris wang, Felix Held. Nikolai Vyssotski has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/48734 )
Change subject: mb/google/zork: add edp tunning parameter to fix the edp noise ......................................................................
Patch Set 5:
(1 comment)
File src/mainboard/google/zork/variants/vilboz/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/48734/comment/cf20de1e_b47b663d PS5, Line 30: register "edp_table_size" = "0x05"
I would think this would be the resulting size of dptuning[] table that gets initialized in FSP. […]
After talking to Eddie and looking at VBIOS spec it does appear that 5 is correct. This is the size of the dptuning[] resulting table passed to VBIOS in bytes counting only valid entries. However this number can not be anything but 5 here since we will always have one table entry filled from edp_tuningset structure fields below. Should we even pass it between CB and FSP? It maybe a good thing to have in case we ever decide to fill in more than one entry but even then it would probably be better to keep it as a count of settings (n) here and then do n * sizeof(edp_tuningset) math for table_size in FSP.
Attention is currently required from: Paul Menzel, chris wang, Felix Held. build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/48734 )
Change subject: mb/google/zork: add edp tunning parameter to fix the edp noise ......................................................................
Patch Set 6:
(1 comment)
File src/mainboard/google/zork/variants/vilboz/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/48734/comment/bf2aad9f_1a2c6a20 PS6, Line 26: # eDP phy tunning settings 'tunning' may be misspelled - perhaps 'tuning'?
Attention is currently required from: Paul Menzel, chris wang, Felix Held. Hello build bot (Jenkins), Chris Wang,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/48734
to look at the new patch set (#8).
Change subject: mb/google/zork: add edp tunning parameter to fix the edp noise ......................................................................
mb/google/zork: add edp tunning parameter to fix the edp noise
needs to adjust edp phy setting to fix the edp noise for WWAN.
DP_VS_LEVEL0_PREEMPH_LEVEL0, = 0x00 (0.4v 0db) swing 0, pre-emphasis 0) COMMON_MAR_DEEMPH_NOM = 0x004B COMMON_SELDEEMPH60 = 0x0 CMD_BUS_GLOBAL_FOR_TX_LANE0 = 0x80
BUG=b:171269338 BRANCH=none TEST=Build; Verify the UPD was passed to system integrated table
Signed-off-by: Chris Wang chris.wang@amd.corp-partner.google.com Change-Id: Ibe720e26d2257e05a989eaa1fd85d542005cf6a6 --- M src/mainboard/google/zork/variants/vilboz/overridetree.cb 1 file changed, 10 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/34/48734/8
Attention is currently required from: Paul Menzel, Nikolai Vyssotski, Felix Held. chris wang has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/48734 )
Change subject: mb/google/zork: add edp tunning parameter to fix the edp noise ......................................................................
Patch Set 8:
(1 comment)
File src/mainboard/google/zork/variants/vilboz/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/48734/comment/03c2dbd1_4b6b9724 PS5, Line 30: register "edp_table_size" = "0x05"
After talking to Eddie and looking at VBIOS spec it does appear that 5 is correct. […]
had remove the dp_sel and tablesize and dp version. only keep the dp override type. will clean up the related UPD in later changeing.
Attention is currently required from: Furquan Shaikh, Paul Menzel, Nikolai Vyssotski, Felix Held. build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/48734 )
Change subject: mb/google/zork: add edp tunning parameter to fix the edp noise ......................................................................
Patch Set 8:
(1 comment)
File src/mainboard/google/zork/variants/vilboz/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/48734/comment/236c71ee_c0dad07a PS8, Line 26: # eDP phy tunning settings 'tunning' may be misspelled - perhaps 'tuning'?
Attention is currently required from: Furquan Shaikh, Kangheui Won, Paul Menzel, Nikolai Vyssotski, chris wang, Felix Held. EricR Lai has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/48734 )
Change subject: mb/google/zork: add edp tunning parameter to fix the edp noise ......................................................................
Patch Set 8:
(1 comment)
Commit Message:
https://review.coreboot.org/c/coreboot/+/48734/comment/0f2cde98_ae7ac663 PS8, Line 7: edp nits: eDP for all edp in the comment.
Attention is currently required from: Furquan Shaikh, Kangheui Won, Paul Menzel, Nikolai Vyssotski, chris wang, Felix Held. Hello build bot (Jenkins), Furquan Shaikh, Kangheui Won, Nikolai Vyssotski, Chris Wang,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/48734
to look at the new patch set (#9).
Change subject: mb/google/zork: add eDP tunning parameter to fix the eDP noise ......................................................................
mb/google/zork: add eDP tunning parameter to fix the eDP noise
needs to adjust eDP phy setting to fix the eDP noise for WWAN.
DP_VS_LEVEL0_PREEMPH_LEVEL0, = 0x00 (0.4v 0db) swing 0, pre-emphasis 0) COMMON_MAR_DEEMPH_NOM = 0x004B COMMON_SELDEEMPH60 = 0x0 CMD_BUS_GLOBAL_FOR_TX_LANE0 = 0x80
BUG=b:171269338 BRANCH=none TEST=Build; Verify the UPD was passed to system integrated table
Signed-off-by: Chris Wang chris.wang@amd.corp-partner.google.com Change-Id: Ibe720e26d2257e05a989eaa1fd85d542005cf6a6 --- M src/mainboard/google/zork/variants/vilboz/overridetree.cb 1 file changed, 10 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/34/48734/9
Attention is currently required from: Furquan Shaikh, Kangheui Won, Paul Menzel, Nikolai Vyssotski, EricR Lai, Felix Held. chris wang has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/48734 )
Change subject: mb/google/zork: add eDP tunning parameter to fix the eDP noise ......................................................................
Patch Set 9:
(1 comment)
Commit Message:
https://review.coreboot.org/c/coreboot/+/48734/comment/71db6fcc_c0511086 PS8, Line 7: edp
nits: eDP for all edp in the comment.
Done
Attention is currently required from: Furquan Shaikh, Kangheui Won, Paul Menzel, Nikolai Vyssotski, chris wang, Felix Held. EricR Lai has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/48734 )
Change subject: mb/google/zork: add eDP tunning parameter to fix the eDP noise ......................................................................
Patch Set 9: Code-Review+2
(2 comments)
Commit Message:
https://review.coreboot.org/c/coreboot/+/48734/comment/d6d5cd46_41f9d899 PS9, Line 7: tunning nit: tuning
File src/mainboard/google/zork/variants/vilboz/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/48734/comment/f7105eb2_e074ccbe PS9, Line 26: tunning nits: tuning
Attention is currently required from: Furquan Shaikh, Kangheui Won, Paul Menzel, Nikolai Vyssotski, chris wang, Felix Held. Hello build bot (Jenkins), Furquan Shaikh, Kangheui Won, Nikolai Vyssotski, Chris Wang, EricR Lai,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/48734
to look at the new patch set (#10).
Change subject: mb/google/zork: add eDP tuning parameter to fix the eDP noise ......................................................................
mb/google/zork: add eDP tuning parameter to fix the eDP noise
needs to adjust the eDP phy setting to fix the eDP noise for WWAN.
DP_VS_LEVEL0_PREEMPH_LEVEL0, = 0x00 (0.4v 0db) swing 0, pre-emphasis 0) COMMON_MAR_DEEMPH_NOM = 0x004B COMMON_SELDEEMPH60 = 0x0 CMD_BUS_GLOBAL_FOR_TX_LANE0 = 0x80
BUG=b:171269338 BRANCH=none TEST=Build; Verify the UPD was passed to system integrated table
Signed-off-by: Chris Wang chris.wang@amd.corp-partner.google.com Change-Id: Ibe720e26d2257e05a989eaa1fd85d542005cf6a6 --- M src/mainboard/google/zork/variants/vilboz/overridetree.cb 1 file changed, 10 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/34/48734/10
Attention is currently required from: Furquan Shaikh, Kangheui Won, Paul Menzel, Nikolai Vyssotski, EricR Lai, Felix Held. chris wang has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/48734 )
Change subject: mb/google/zork: add eDP tuning parameter to fix the eDP noise ......................................................................
Patch Set 10:
(2 comments)
Commit Message:
https://review.coreboot.org/c/coreboot/+/48734/comment/a80b9041_62e9a390 PS9, Line 7: tunning
nit: tuning
Done
File src/mainboard/google/zork/variants/vilboz/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/48734/comment/4bc9e8da_2aefafd4 PS9, Line 26: tunning
nits: tuning
Done
Attention is currently required from: Furquan Shaikh, Kangheui Won, Paul Menzel, Nikolai Vyssotski, chris wang, Felix Held. EricR Lai has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/48734 )
Change subject: mb/google/zork: add eDP tuning parameter to fix the eDP noise ......................................................................
Patch Set 10: Code-Review+2
Patrick Georgi has submitted this change. ( https://review.coreboot.org/c/coreboot/+/48734 )
Change subject: mb/google/zork: add eDP tuning parameter to fix the eDP noise ......................................................................
mb/google/zork: add eDP tuning parameter to fix the eDP noise
needs to adjust the eDP phy setting to fix the eDP noise for WWAN.
DP_VS_LEVEL0_PREEMPH_LEVEL0, = 0x00 (0.4v 0db) swing 0, pre-emphasis 0) COMMON_MAR_DEEMPH_NOM = 0x004B COMMON_SELDEEMPH60 = 0x0 CMD_BUS_GLOBAL_FOR_TX_LANE0 = 0x80
BUG=b:171269338 BRANCH=none TEST=Build; Verify the UPD was passed to system integrated table
Signed-off-by: Chris Wang chris.wang@amd.corp-partner.google.com Change-Id: Ibe720e26d2257e05a989eaa1fd85d542005cf6a6 Reviewed-on: https://review.coreboot.org/c/coreboot/+/48734 Reviewed-by: EricR Lai ericr_lai@compal.corp-partner.google.com Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M src/mainboard/google/zork/variants/vilboz/overridetree.cb 1 file changed, 10 insertions(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified EricR Lai: Looks good to me, approved
diff --git a/src/mainboard/google/zork/variants/vilboz/overridetree.cb b/src/mainboard/google/zork/variants/vilboz/overridetree.cb index f484e9a..ddcaf53 100644 --- a/src/mainboard/google/zork/variants/vilboz/overridetree.cb +++ b/src/mainboard/google/zork/variants/vilboz/overridetree.cb @@ -23,6 +23,16 @@ register "telemetry_vddcr_soc_slope_mA" = "20001" register "telemetry_vddcr_soc_offset" = "168"
+ # eDP phy tuning settings + register "dp_phy_override" = "ENABLE_EDP_TUNINGSET" + + register "edp_tuningset" = "{ + .dp_vs_pemph_level = 0x0, + .deemph_6db4 = 0x004b, + .boostadj = 0x0, + .margin_deemph = 0x80, + }" + # USB OC pin mapping register "usb_port_overcurrent_pin[1]" = "USB_OC_NONE" # LTE instead of USB C1