EricR Lai has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/39847 )
Change subject: soc/intel/tigerlake: Support to initialize Memory
......................................................................
Patch Set 15:
(3 comments)
https://review.coreboot.org/c/coreboot/+/39847/13/src/soc/intel/tigerlake/me...
File src/soc/intel/tigerlake/meminit_tgl.c:
https://review.coreboot.org/c/coreboot/+/39847/13/src/soc/intel/tigerlake/me...
PS13, Line 297: *spd_len = blk->len;
*spd_len = blk->len; seems not needed, you can assign this after you get the blk.
https://review.coreboot.org/c/coreboot/+/39847/13/src/soc/intel/tigerlake/me...
PS13, Line 300: static void ddr4_get_spd(unsigned int channel, uintptr_t *spd_md_data,
The channel(variable i) is defined as DDR4_CHANNELS, we need try to avoid the hard code for the statement like if(channel == 0). You will miss something after future maintaining.
https://review.coreboot.org/c/coreboot/+/39847/13/src/soc/intel/tigerlake/me...
PS13, Line 363: mem_cfg->MemorySpdDataLen = spd_sodimm_len;
mem_cfg->MemorySpdDataLen=spd_sodimm_blk->len
--
To view, visit
https://review.coreboot.org/c/coreboot/+/39847
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I47a5dcad3ee316871a6103b9d53ef7f6fc88d7d8
Gerrit-Change-Number: 39847
Gerrit-PatchSet: 15
Gerrit-Owner: Varun Joshi
varun.joshi@intel.com
Gerrit-Reviewer: Anil Kumar K
anil.kumar.k@intel.corp-partner.google.com
Gerrit-Reviewer: Bernardo Perez Priego
bernardo.perez.priego@intel.corp-partner.google.com
Gerrit-Reviewer: Bora Guvendik
bora.guvendik@intel.com
Gerrit-Reviewer: EricR Lai
ericr_lai@compal.corp-partner.google.com
Gerrit-Reviewer: Furquan Shaikh
furquan@google.com
Gerrit-Reviewer: Kevin Chowski
chowski@google.com
Gerrit-Reviewer: Patrick Rudolph
siro@das-labor.org
Gerrit-Reviewer: Selma Bensaid
selma.bensaid@intel.corp-partner.google.com
Gerrit-Reviewer: Tim Wawrzynczak
twawrzynczak@chromium.org
Gerrit-Reviewer: Varun Joshi
varun.joshi@intel.corp-partner.google.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-CC: Selma Bensaid
selma.bensaid@intel.com
Gerrit-Comment-Date: Tue, 31 Mar 2020 03:58:44 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment