Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/37466 )
Change subject: soc/intel/cannonlake: Add VR config for CFL, CNL and WHL
......................................................................
Patch Set 5:
(3 comments)
https://review.coreboot.org/c/coreboot/+/37466/5/src/soc/intel/cannonlake/vr...
File src/soc/intel/cannonlake/vr_config.c:
https://review.coreboot.org/c/coreboot/+/37466/5/src/soc/intel/cannonlake/vr...
PS5, Line 151: 8.5
Are you using the floating point for documentation purposes? This will be just 8 when it gets converted to a uint16_t
https://review.coreboot.org/c/coreboot/+/37466/5/src/soc/intel/cannonlake/vr...
PS5, Line 190: if (tdp > 35)
Above you're using "if (tdp >= 54)" but here you're using >, could you use either >= or > everywhere?
https://review.coreboot.org/c/coreboot/+/37466/5/src/soc/intel/cannonlake/vr...
PS5, Line 250: uint16_t loadline[NUM_VR_DOMAINS] =
: VR_CFG_ALL_DOMAINS_LOADLINE(10.3, 2.4, 2.0, 2.0);
Your const usage is spotty, these should all be const. Then hopefully the compiler can turn the floating numbers into ints at compile time and not runtime.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/37466
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1d2e174157d468830cc0baf2a2d8295ef61a1a63
Gerrit-Change-Number: 37466
Gerrit-PatchSet: 5
Gerrit-Owner: Patrick Rudolph
patrick.rudolph@9elements.com
Gerrit-Reviewer: Furquan Shaikh
furquan@google.com
Gerrit-Reviewer: Jamie Chen
jamie.chen@intel.com
Gerrit-Reviewer: Kane Chen
kane_chen@pegatron.corp-partner.google.com
Gerrit-Reviewer: Patrick Rudolph
patrick.rudolph@9elements.com
Gerrit-Reviewer: Patrick Rudolph
siro@das-labor.org
Gerrit-Reviewer: Shelley Chen
shchen@google.com
Gerrit-Reviewer: Subrata Banik
subrata.banik@intel.com
Gerrit-Reviewer: Tim Wawrzynczak
twawrzynczak@chromium.org
Gerrit-Reviewer: Wim Vervoorn
wvervoorn@eltan.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Harry Pan
harry.pan@intel.com
Gerrit-CC: Maxim Polyakov
max.senia.poliak@gmail.com
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Comment-Date: Fri, 20 Dec 2019 21:03:37 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment