Hello build bot (Jenkins), Selma Bensaid, Bora Guvendik, Subrata Banik, Patrick Rudolph,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/44497
to look at the new patch set (#11).
Change subject: soc/intel/common/block: Add emmc dll tuning
......................................................................
soc/intel/common/block: Add emmc dll tuning
For 3 different operations (CMD, Tx Data, Rx Data) use mmc driver
in coreboot to switch speed modes (DS, HS, DDR, HS200, HS400).
1) For each speed mode / operation combination, start writing delay
values (each step 125pSec delay) from 0 to max for the corresponding
register field. As an example, register "Tx Delay Control 1" 0x824h,
bit field [8:14] is for HS400 speed and write operation (Tx Data).
Max is 78 for this field.
2) After writing a delay value to the register field, try to send a CMD13
"send status" for CMD operation. For write (Tx Data), send CMD24
"Write Block". For read (Rx Data), send CMD17 "Read Single Block".
3) Mark that delay value as FAIL if there are crc errors, timeouts, bits
set in Error Interrupt Status register or read/write failures. PASS if
there are no errors.
4) Choose the middle of largest passing window and program register field
with this optimal delay value.
BUG=b:140124451
TEST=Ran tuning on Waddledee and booted to OS via emmc.
Change-Id: I7c8f8c4da9d887db0f96e23d58847784c824b879
Signed-off-by: Bora Guvendik <bora.guvendik(a)intel.com>
---
M src/soc/intel/common/block/include/intelblocks/mmc.h
M src/soc/intel/common/block/scs/Kconfig
M src/soc/intel/common/block/scs/dll_tuning.c
3 files changed, 383 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/97/44497/11
--
To view, visit https://review.coreboot.org/c/coreboot/+/44497
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I7c8f8c4da9d887db0f96e23d58847784c824b879
Gerrit-Change-Number: 44497
Gerrit-PatchSet: 11
Gerrit-Owner: Bora Guvendik <bora.guvendik(a)intel.com>
Gerrit-Reviewer: Bora Guvendik <bora.guvendik(a)intel.corp-partner.google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Selma Bensaid <selma.bensaid(a)intel.com>
Gerrit-Reviewer: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: newpatchset
Bora Guvendik has uploaded a new patch set (#10) to the change originally created by Thejaswani Putta. ( https://review.coreboot.org/c/coreboot/+/38256 )
Change subject: [WIP]soc/intel/common/block: Add EMMC dll caching infrastructure
......................................................................
[WIP]soc/intel/common/block: Add EMMC dll caching infrastructure
Provide support needed to save EMMC dll tuned data to SPI and registers
boot after flash and in subsequent boots, read emmc data from SPI flash
and copy to the registers. In case tuning fails, setting a flag in header
to skip tuning next boot and use FSP default values.
TEST: Tested if data is written to SPI EMMC_CACHE and if the readback data
is valid. Also verified if the flag is setting right when tuning fails.
Change-Id: I0ca1452cbdcbadd3fca644dcc2dfb7b721e02fb7
Signed-off-by: Thejaswani Putta <thejaswani.putta(a)intel.com>
---
M src/mainboard/google/drallion/chromeos.fmd
M src/soc/intel/common/block/scs/Kconfig
M src/soc/intel/common/block/scs/Makefile.inc
A src/soc/intel/common/block/scs/emmc_cache.c
4 files changed, 475 insertions(+), 6 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/56/38256/10
--
To view, visit https://review.coreboot.org/c/coreboot/+/38256
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I0ca1452cbdcbadd3fca644dcc2dfb7b721e02fb7
Gerrit-Change-Number: 38256
Gerrit-PatchSet: 10
Gerrit-Owner: Thejaswani Putta <thejaswani.putta(a)intel.com>
Gerrit-Reviewer: Anil Kumar K <anil.kumar.k(a)intel.com>
Gerrit-Reviewer: Bernardo Perez Priego <bernardo.perez.priego(a)intel.com>
Gerrit-Reviewer: Bora Guvendik <bora.guvendik(a)intel.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Selma Bensaid <selma.bensaid(a)intel.com>
Gerrit-Reviewer: Thejaswani Putta <thejaswani.putta(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: newpatchset
Hello build bot (Jenkins), Selma Bensaid, Bora Guvendik, Subrata Banik, Patrick Rudolph,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/44497
to look at the new patch set (#10).
Change subject: soc/intel/common/block: Add emmc dll tuning
......................................................................
soc/intel/common/block: Add emmc dll tuning
For 3 different operations (CMD, Tx Data, Rx Data) use mmc driver
in coreboot to switch speed modes (DS, HS, DDR, HS200, HS400).
1) For each speed mode / operation combination, start writing delay
values (each step 125pSec delay) from 0 to max for the corresponding
register field. As an example, register "Tx Delay Control 1" 0x824h,
bit field [8:14] is for HS400 speed and write operation (Tx Data).
Max is 78 for this field.
2) After writing a delay value to the register field, try to send a CMD13
(send status) for CMD operation. For write (Tx Data), send CMD24
(Write Block). For read (Rx Data), send CMD17 (Read Single Block).
3) Mark that delay value as FAIL if there are crc errors, timeouts, bits
set in Error Interrupt Status register or read/write failures. PASS if
there are no errors.
4) Choose the middle of largest passing window and program register field
with this optimal delay value.
BUG=b:140124451
TEST=Ran tuning on Waddledee and booted to OS via emmc.
Change-Id: I7c8f8c4da9d887db0f96e23d58847784c824b879
Signed-off-by: Bora Guvendik <bora.guvendik(a)intel.com>
---
M src/soc/intel/common/block/include/intelblocks/mmc.h
M src/soc/intel/common/block/scs/Kconfig
M src/soc/intel/common/block/scs/dll_tuning.c
3 files changed, 383 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/97/44497/10
--
To view, visit https://review.coreboot.org/c/coreboot/+/44497
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I7c8f8c4da9d887db0f96e23d58847784c824b879
Gerrit-Change-Number: 44497
Gerrit-PatchSet: 10
Gerrit-Owner: Bora Guvendik <bora.guvendik(a)intel.com>
Gerrit-Reviewer: Bora Guvendik <bora.guvendik(a)intel.corp-partner.google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Selma Bensaid <selma.bensaid(a)intel.com>
Gerrit-Reviewer: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: newpatchset
Bora Guvendik has uploaded a new patch set (#9) to the change originally created by Thejaswani Putta. ( https://review.coreboot.org/c/coreboot/+/38256 )
Change subject: [WIP]soc/intel/common/block: Add EMMC dll caching infrastructure
......................................................................
[WIP]soc/intel/common/block: Add EMMC dll caching infrastructure
Provide support needed to save EMMC dll tuned data to SPI and registers
boot after flash and in subsequent boots, read emmc data from SPI flash
and copy to the registers. Incase tuning fails, setting a flag in header
to skip tuning next boot and use FSP default values.
TEST: Tested if data is written to SPI EMMC_CACHE and if the readback data
is valid. Also verified if the flag is setting right when tuning fails.
Change-Id: I0ca1452cbdcbadd3fca644dcc2dfb7b721e02fb7
Signed-off-by: Thejaswani Putta <thejaswani.putta(a)intel.com>
---
M src/mainboard/google/drallion/chromeos.fmd
M src/soc/intel/common/block/scs/Kconfig
M src/soc/intel/common/block/scs/Makefile.inc
A src/soc/intel/common/block/scs/emmc_cache.c
4 files changed, 504 insertions(+), 6 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/56/38256/9
--
To view, visit https://review.coreboot.org/c/coreboot/+/38256
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I0ca1452cbdcbadd3fca644dcc2dfb7b721e02fb7
Gerrit-Change-Number: 38256
Gerrit-PatchSet: 9
Gerrit-Owner: Thejaswani Putta <thejaswani.putta(a)intel.com>
Gerrit-Reviewer: Anil Kumar K <anil.kumar.k(a)intel.com>
Gerrit-Reviewer: Bernardo Perez Priego <bernardo.perez.priego(a)intel.com>
Gerrit-Reviewer: Bora Guvendik <bora.guvendik(a)intel.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Selma Bensaid <selma.bensaid(a)intel.com>
Gerrit-Reviewer: Thejaswani Putta <thejaswani.putta(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: newpatchset
Hello build bot (Jenkins), Selma Bensaid, Bora Guvendik, Subrata Banik, Patrick Rudolph,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/44497
to look at the new patch set (#9).
Change subject: soc/intel/common/block: Add emmc dll tuning
......................................................................
soc/intel/common/block: Add emmc dll tuning
For 3 different operations (CMD, Tx Data, Rx Data) use mmc driver
in coreboot to switch speed modes (DS, HS, DDR, HS200, HS400).
1) For each speed mode / operation combination, start writing delay
values (each step 125pSec delay) from 0 to max for the corresponding
register field. As an example, register "Tx Delay Control 1" 0x824h,
bit field [8:14] is for HS400 speed and write operation (Tx Data).
Max is 78 for this field.
2) After writing a delay value to the register field, try to send a CMD13
"send status" for CMD operation. For write (Tx Data), send CMD24
"Write Block". For read (Rx Data), send CMD17 "Read Single Block".
3) Mark that delay value as FAIL if there are crc errors, timeouts, bits
set in Error Interrupt Status register or read/write failures. PASS if
there are no errors.
4) Choose the middle of largest passing window and program register field
with this optimal delay value.
BUG=b:140124451
TEST=Ran tuning on Waddledee and booted to OS via emmc.
Change-Id: I7c8f8c4da9d887db0f96e23d58847784c824b879
Signed-off-by: Bora Guvendik <bora.guvendik(a)intel.com>
---
M src/soc/intel/common/block/include/intelblocks/mmc.h
M src/soc/intel/common/block/scs/Kconfig
M src/soc/intel/common/block/scs/dll_tuning.c
3 files changed, 383 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/97/44497/9
--
To view, visit https://review.coreboot.org/c/coreboot/+/44497
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I7c8f8c4da9d887db0f96e23d58847784c824b879
Gerrit-Change-Number: 44497
Gerrit-PatchSet: 9
Gerrit-Owner: Bora Guvendik <bora.guvendik(a)intel.com>
Gerrit-Reviewer: Bora Guvendik <bora.guvendik(a)intel.corp-partner.google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Selma Bensaid <selma.bensaid(a)intel.com>
Gerrit-Reviewer: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: newpatchset
Hello build bot (Jenkins), Selma Bensaid, Bora Guvendik, Subrata Banik, Patrick Rudolph,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/44497
to look at the new patch set (#8).
Change subject: soc/intel/common/block: Add emmc dll tuning
......................................................................
soc/intel/common/block: Add emmc dll tuning
For 3 different operations (CMD, Tx Data, Rx Data) use mmc driver
in coreboot to switch speed modes (DS, HS, DDR, HS200, HS400).
1) For each speed mode / operation combination, start writing delay
values (each step 125pSec delay) from 0 to max for the corresponding
register field. As an example, register "Tx Delay Control 1" 0x824h,
bit field [8:14] is for HS400 speed and write operation (Tx Data).
Max is 78 for this field.
2) After writing a delay value to the register field, try to send a CMD13
“send status” for CMD operation. For write (Tx Data), send CMD24
"Write Block”. For read (Rx Data), send CMD17 "Read Single Block".
3) Mark that delay value as FAIL if there are crc errors, timeouts, bits
set in Error Interrupt Status register or read/write failures. PASS if
there are no errors.
4) Choose the middle of largest passing window and program register field
with this optimal delay value.
BUG=b:140124451
TEST=Ran tuning on Waddledee and booted to OS via emmc.
Change-Id: I7c8f8c4da9d887db0f96e23d58847784c824b879
Signed-off-by: Bora Guvendik <bora.guvendik(a)intel.com>
---
M src/soc/intel/common/block/include/intelblocks/mmc.h
M src/soc/intel/common/block/scs/Kconfig
M src/soc/intel/common/block/scs/dll_tuning.c
3 files changed, 383 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/97/44497/8
--
To view, visit https://review.coreboot.org/c/coreboot/+/44497
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I7c8f8c4da9d887db0f96e23d58847784c824b879
Gerrit-Change-Number: 44497
Gerrit-PatchSet: 8
Gerrit-Owner: Bora Guvendik <bora.guvendik(a)intel.com>
Gerrit-Reviewer: Bora Guvendik <bora.guvendik(a)intel.corp-partner.google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Selma Bensaid <selma.bensaid(a)intel.com>
Gerrit-Reviewer: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: newpatchset
Hello build bot (Jenkins), Selma Bensaid, Bora Guvendik, Subrata Banik,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/44493
to look at the new patch set (#2).
Change subject: commonlib/storage/mmc: Add DS and DDR50 speed modes
......................................................................
commonlib/storage/mmc: Add DS and DDR50 speed modes
Add two new functions to switch speed to "High Speed DDR"
and "Backwards Compatibility with legacy MMC card"
mentioned in section 5.3.2 of JESD84_B51 spec.
BUG=b:140124451
TEST=Change mmc speed to DDR50 and DS
Change-Id: Ic75a3815a47e99e054d2cea2e82757740caffd1a
Signed-off-by: Bora Guvendik <bora.guvendik(a)intel.com>
---
M src/commonlib/storage/mmc.c
1 file changed, 58 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/93/44493/2
--
To view, visit https://review.coreboot.org/c/coreboot/+/44493
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ic75a3815a47e99e054d2cea2e82757740caffd1a
Gerrit-Change-Number: 44493
Gerrit-PatchSet: 2
Gerrit-Owner: Bora Guvendik <bora.guvendik(a)intel.com>
Gerrit-Reviewer: Bora Guvendik <bora.guvendik(a)intel.corp-partner.google.com>
Gerrit-Reviewer: Selma Bensaid <selma.bensaid(a)intel.com>
Gerrit-Reviewer: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: newpatchset