Attention is currently required from: Kangheui Won, Tim Wawrzynczak, Paul Menzel, Julius Werner, Angel Pons, Arthur Heymans, Andrey Petrov.
Reka Norman has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/67669 )
Change subject: drivers/intel/fsp2_0: Update MRC cache in ramstage
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
So does it spend time flushing data from the cache that was never dirty to begin with? That sounds w […]
My guess is that it just takes that long to iterate through the region and run CLFLUSH on every cache line, even when most of them don't actually write back. 7 MiB of data (~5 MiB cbmem + 2 MiB stage cache) with 64 byte cache lines is over 100k CLFLUSH instructions.
I was curious so I did some tests. I duplicated the CLFLUSH loop and measured how long the first and second loops take to flush the stage cache region in different scenarios.
Umodified (only thing in stage cache is 23K postcar):
611:<unknown> 900,724 (3,402)
612:<unknown> 903,971 (3,246)
Don't add postcar to stage cache, so stage cache should be clean:
611:<unknown> 888,219 (3,237)
612:<unknown> 891,465 (3,245)
memset all 2M of stage cache:
611:<unknown> 911,394 (9,211)
612:<unknown> 914,654 (3,260)
So that seems to support my theory.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/67669
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ie6aa2dee83a3ab8913830746593935d36a034b8d
Gerrit-Change-Number: 67669
Gerrit-PatchSet: 1
Gerrit-Owner: Reka Norman
rekanorman@chromium.org
Gerrit-Reviewer: Andrey Petrov
andrey.petrov@gmail.com
Gerrit-Reviewer: Angel Pons
th3fanbus@gmail.com
Gerrit-Reviewer: Julius Werner
jwerner@chromium.org
Gerrit-Reviewer: Kangheui Won
khwon@chromium.org
Gerrit-Reviewer: Tim Wawrzynczak
twawrzynczak@chromium.org
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Arthur Heymans
arthur@aheymans.xyz
Gerrit-CC: Paul Menzel
paulepanter@mailbox.org
Gerrit-CC: Reka Norman
rekanorman@google.com
Gerrit-Attention: Kangheui Won
khwon@chromium.org
Gerrit-Attention: Tim Wawrzynczak
twawrzynczak@chromium.org
Gerrit-Attention: Paul Menzel
paulepanter@mailbox.org
Gerrit-Attention: Julius Werner
jwerner@chromium.org
Gerrit-Attention: Angel Pons
th3fanbus@gmail.com
Gerrit-Attention: Arthur Heymans
arthur@aheymans.xyz
Gerrit-Attention: Andrey Petrov
andrey.petrov@gmail.com
Gerrit-Comment-Date: Tue, 20 Sep 2022 23:28:56 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Reka Norman
rekanorman@chromium.org
Comment-In-Reply-To: Julius Werner
jwerner@chromium.org
Comment-In-Reply-To: Arthur Heymans
arthur@aheymans.xyz
Gerrit-MessageType: comment