Attention is currently required from: Hung-Te Lin, Shelley Chen, Ravi kumar, Ravi Kumar Bokka, mturney mturney, Angel Pons, Julius Werner, Arthur Heymans, Xixi Chen.
mturney mturney has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/59193 )
Change subject: libpayload: Parse DDR Information through coreboot tables
......................................................................
Patch Set 34:
(1 comment)
File src/commonlib/bsd/include/commonlib/bsd/mem_chip_info.h:
https://review.coreboot.org/c/coreboot/+/59193/comment/10ac88ad_d1bb33d0
PS32, Line 24: 2
Hmmm, using a linked list would avoid limiting the maximum number of channels, but I'm not sure if […]
I wasn't suggesting creating or using a linked-list.
https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html#:~:text=6.18%20Arrays%20....
Depthcharge is a consumer of this information, which is provided by the DDR sub-system during DDR training. Original requirement was to support two channels, which is what current hardware uses.
This is a new request to not limit the number of channels to 2 in the struct definition and to provide a channel count field (or density if you prefer).
If we add the channel count/density field it makes sense for the struct definition to not be limited to two channels, hence the ask for clarification on using [0] on the last element of the struct, indicating that the number of channels is not pre-defined. The channel field would still be treated as an array and the consuming code in Depthcharge that creates the /proc entry info via DTB manipulation would check the density field and make sure to not step past the end of the array.
Julius, please weigh-in on this discussion.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/59193
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ieca7e9fc0e1a018fcb2e9315aebee088edac858e
Gerrit-Change-Number: 59193
Gerrit-PatchSet: 34
Gerrit-Owner: Ravi kumar
rbokka@codeaurora.org
Gerrit-Reviewer: Julius Werner
jwerner@chromium.org
Gerrit-Reviewer: Shelley Chen
shchen@google.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-Reviewer: mturney mturney
mturney@codeaurora.org
Gerrit-CC: Angel Pons
th3fanbus@gmail.com
Gerrit-CC: Arthur Heymans
arthur@aheymans.xyz
Gerrit-CC: Hung-Te Lin
hungte@chromium.org
Gerrit-CC: Paul Menzel
paulepanter@mailbox.org
Gerrit-CC: Ravi Kumar Bokka
c_rbokka@qualcomm.corp-partner.google.com
Gerrit-CC: Xi Chen
xixi.chen@mediatek.com
Gerrit-CC: Xixi Chen
xixi.chen@mediatek.corp-partner.google.com
Gerrit-CC: Yu-Ping Wu
yupingso@google.com
Gerrit-CC: mturney mturney
quic_mturney@quicinc.com
Gerrit-Attention: Hung-Te Lin
hungte@chromium.org
Gerrit-Attention: Shelley Chen
shchen@google.com
Gerrit-Attention: Ravi kumar
rbokka@codeaurora.org
Gerrit-Attention: Ravi Kumar Bokka
c_rbokka@qualcomm.corp-partner.google.com
Gerrit-Attention: mturney mturney
mturney@codeaurora.org
Gerrit-Attention: Angel Pons
th3fanbus@gmail.com
Gerrit-Attention: Julius Werner
jwerner@chromium.org
Gerrit-Attention: Arthur Heymans
arthur@aheymans.xyz
Gerrit-Attention: Xixi Chen
xixi.chen@mediatek.corp-partner.google.com
Gerrit-Comment-Date: Mon, 28 Feb 2022 16:22:42 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Angel Pons
th3fanbus@gmail.com
Comment-In-Reply-To: Arthur Heymans
arthur@aheymans.xyz
Comment-In-Reply-To: Xixi Chen
xixi.chen@mediatek.corp-partner.google.com
Comment-In-Reply-To: mturney mturney
quic_mturney@quicinc.com
Gerrit-MessageType: comment