Wonkyu Kim has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/38504 )
Change subject: soc/intel/tigerlake: Enable SATA ......................................................................
soc/intel/tigerlake: Enable SATA
BUG=none BRANCH=none TEST=Build and boot tigerlake rvp board with SATA memory
Signed-off-by: Wonkyu Kim wonkyu.kim@intel.com Change-Id: I9350d71d76cd3d449fd959b5398d5ac653bc459e --- M src/soc/intel/tigerlake/fsp_params_tgl.c 1 file changed, 14 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/04/38504/1
diff --git a/src/soc/intel/tigerlake/fsp_params_tgl.c b/src/soc/intel/tigerlake/fsp_params_tgl.c index fe59ac1..2fb9318 100644 --- a/src/soc/intel/tigerlake/fsp_params_tgl.c +++ b/src/soc/intel/tigerlake/fsp_params_tgl.c @@ -121,6 +121,20 @@ /* PCH UART selection for FSP Debug */ params->SerialIoDebugUartNumber = CONFIG_UART_FOR_CONSOLE;
+ /* SATA */ + dev = pcidev_on_root(PCH_DEV_SLOT_SATA, 0); + if (!dev) + params->SataEnable = 0; + else { + params->SataEnable = dev->enabled; + params->SataMode = config->SataMode; + params->SataSalpSupport = config->SataSalpSupport; + memcpy(params->SataPortsEnable, config->SataPortsEnable, + sizeof(params->SataPortsEnable)); + memcpy(params->SataPortsDevSlp, config->SataPortsDevSlp, + sizeof(params->SataPortsDevSlp)); + } + mainboard_silicon_init_params(params); }
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38504 )
Change subject: soc/intel/tigerlake: Enable SATA ......................................................................
Patch Set 1:
(25 comments)
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... File src/soc/intel/tigerlake/fsp_params_tgl.c:
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 124: /* SATA */ code indent should use tabs where possible
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 125: dev = pcidev_on_root(PCH_DEV_SLOT_SATA, 0); code indent should use tabs where possible
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 125: dev = pcidev_on_root(PCH_DEV_SLOT_SATA, 0); please, no spaces at the start of a line
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 126: if (!dev) code indent should use tabs where possible
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 126: if (!dev) please, no spaces at the start of a line
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 127: params->SataEnable = 0; code indent should use tabs where possible
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 127: params->SataEnable = 0; please, no spaces at the start of a line
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 128: else { code indent should use tabs where possible
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 128: else { please, no spaces at the start of a line
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 129: params->SataEnable = dev->enabled; code indent should use tabs where possible
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 129: params->SataEnable = dev->enabled; please, no spaces at the start of a line
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 130: params->SataMode = config->SataMode; code indent should use tabs where possible
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 130: params->SataMode = config->SataMode; please, no spaces at the start of a line
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 131: params->SataSalpSupport = config->SataSalpSupport; code indent should use tabs where possible
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 131: params->SataSalpSupport = config->SataSalpSupport; please, no spaces at the start of a line
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 132: memcpy(params->SataPortsEnable, config->SataPortsEnable, code indent should use tabs where possible
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 132: memcpy(params->SataPortsEnable, config->SataPortsEnable, please, no spaces at the start of a line
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 133: sizeof(params->SataPortsEnable)); code indent should use tabs where possible
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 133: sizeof(params->SataPortsEnable)); please, no spaces at the start of a line
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 134: memcpy(params->SataPortsDevSlp, config->SataPortsDevSlp, code indent should use tabs where possible
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 134: memcpy(params->SataPortsDevSlp, config->SataPortsDevSlp, please, no spaces at the start of a line
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 135: sizeof(params->SataPortsDevSlp)); code indent should use tabs where possible
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 135: sizeof(params->SataPortsDevSlp)); please, no spaces at the start of a line
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 136: } code indent should use tabs where possible
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 136: } please, no spaces at the start of a line
Wonkyu Kim has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38504 )
Change subject: soc/intel/tigerlake: Enable SATA ......................................................................
Patch Set 1:
(25 comments)
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... File src/soc/intel/tigerlake/fsp_params_tgl.c:
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 124: /* SATA */
code indent should use tabs where possible
Ack
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 125: dev = pcidev_on_root(PCH_DEV_SLOT_SATA, 0);
code indent should use tabs where possible
Ack
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 125: dev = pcidev_on_root(PCH_DEV_SLOT_SATA, 0);
please, no spaces at the start of a line
Ack
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 126: if (!dev)
code indent should use tabs where possible
Ack
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 126: if (!dev)
please, no spaces at the start of a line
Ack
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 127: params->SataEnable = 0;
please, no spaces at the start of a line
Ack
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 127: params->SataEnable = 0;
code indent should use tabs where possible
Ack
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 128: else {
code indent should use tabs where possible
Ack
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 128: else {
please, no spaces at the start of a line
Ack
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 129: params->SataEnable = dev->enabled;
code indent should use tabs where possible
Ack
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 129: params->SataEnable = dev->enabled;
please, no spaces at the start of a line
Ack
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 130: params->SataMode = config->SataMode;
code indent should use tabs where possible
Ack
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 130: params->SataMode = config->SataMode;
please, no spaces at the start of a line
Ack
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 131: params->SataSalpSupport = config->SataSalpSupport;
code indent should use tabs where possible
Ack
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 131: params->SataSalpSupport = config->SataSalpSupport;
please, no spaces at the start of a line
Ack
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 132: memcpy(params->SataPortsEnable, config->SataPortsEnable,
please, no spaces at the start of a line
Ack
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 132: memcpy(params->SataPortsEnable, config->SataPortsEnable,
code indent should use tabs where possible
Ack
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 133: sizeof(params->SataPortsEnable));
please, no spaces at the start of a line
Ack
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 133: sizeof(params->SataPortsEnable));
code indent should use tabs where possible
Ack
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 134: memcpy(params->SataPortsDevSlp, config->SataPortsDevSlp,
code indent should use tabs where possible
Ack
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 134: memcpy(params->SataPortsDevSlp, config->SataPortsDevSlp,
please, no spaces at the start of a line
Ack
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 135: sizeof(params->SataPortsDevSlp));
code indent should use tabs where possible
Ack
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 135: sizeof(params->SataPortsDevSlp));
please, no spaces at the start of a line
Ack
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 136: }
please, no spaces at the start of a line
Ack
https://review.coreboot.org/c/coreboot/+/38504/1/src/soc/intel/tigerlake/fsp... PS1, Line 136: }
code indent should use tabs where possible
Ack
Hello Patrick Rudolph,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38504
to look at the new patch set (#2).
Change subject: soc/intel/tigerlake: Enable SATA ......................................................................
soc/intel/tigerlake: Enable SATA
BUG=none BRANCH=none TEST=Build and boot tigerlake rvp board with SATA memory
Signed-off-by: Wonkyu Kim wonkyu.kim@intel.com Change-Id: I9350d71d76cd3d449fd959b5398d5ac653bc459e --- M src/soc/intel/tigerlake/fsp_params_tgl.c 1 file changed, 14 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/04/38504/2
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38504 )
Change subject: soc/intel/tigerlake: Enable SATA ......................................................................
Patch Set 2:
(2 comments)
https://review.coreboot.org/c/coreboot/+/38504/2/src/soc/intel/tigerlake/fsp... File src/soc/intel/tigerlake/fsp_params_tgl.c:
https://review.coreboot.org/c/coreboot/+/38504/2/src/soc/intel/tigerlake/fsp... PS2, Line 134: memcpy(params->SataPortsDevSlp, config->SataPortsDevSlp, code indent should use tabs where possible
https://review.coreboot.org/c/coreboot/+/38504/2/src/soc/intel/tigerlake/fsp... PS2, Line 134: memcpy(params->SataPortsDevSlp, config->SataPortsDevSlp, please, no spaces at the start of a line
Hello Patrick Rudolph, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38504
to look at the new patch set (#3).
Change subject: soc/intel/tigerlake: Enable SATA ......................................................................
soc/intel/tigerlake: Enable SATA
BUG=none BRANCH=none TEST=Build and boot tigerlake rvp board with SATA memory
Signed-off-by: Wonkyu Kim wonkyu.kim@intel.com Change-Id: I9350d71d76cd3d449fd959b5398d5ac653bc459e --- M src/soc/intel/tigerlake/fsp_params_tgl.c 1 file changed, 14 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/04/38504/3
Wonkyu Kim has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38504 )
Change subject: soc/intel/tigerlake: Enable SATA ......................................................................
Patch Set 3: Code-Review+1
(2 comments)
https://review.coreboot.org/c/coreboot/+/38504/2/src/soc/intel/tigerlake/fsp... File src/soc/intel/tigerlake/fsp_params_tgl.c:
https://review.coreboot.org/c/coreboot/+/38504/2/src/soc/intel/tigerlake/fsp... PS2, Line 134: memcpy(params->SataPortsDevSlp, config->SataPortsDevSlp,
please, no spaces at the start of a line
Ack
https://review.coreboot.org/c/coreboot/+/38504/2/src/soc/intel/tigerlake/fsp... PS2, Line 134: memcpy(params->SataPortsDevSlp, config->SataPortsDevSlp,
code indent should use tabs where possible
Ack
Subrata Banik has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38504 )
Change subject: soc/intel/tigerlake: Enable SATA ......................................................................
Patch Set 3: Code-Review+2
Pratikkumar V Prajapati has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38504 )
Change subject: soc/intel/tigerlake: Enable SATA ......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/c/coreboot/+/38504/3//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/38504/3//COMMIT_MSG@8 PS3, Line 8: : BUG=none : BRANCH=none : TEST=Build and boot tigerlake rvp board with SATA memory please add some lines about what changes are made in code.
Hello Srinidhi N Kaushik, Raj Astekar, Patrick Rudolph, Subrata Banik, Nick Vaccaro, Shaunak Saha, build bot (Jenkins), Furquan Shaikh,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38504
to look at the new patch set (#4).
Change subject: soc/intel/tigerlake: Enable SATA ......................................................................
soc/intel/tigerlake: Enable SATA
Configure SATA FSP UPD according to mainboard design.
BUG=none BRANCH=none TEST=Build and boot tigerlake rvp board with SATA memory
Signed-off-by: Wonkyu Kim wonkyu.kim@intel.com Change-Id: I9350d71d76cd3d449fd959b5398d5ac653bc459e --- M src/soc/intel/tigerlake/fsp_params_tgl.c 1 file changed, 14 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/04/38504/4
Wonkyu Kim has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38504 )
Change subject: soc/intel/tigerlake: Enable SATA ......................................................................
Patch Set 4:
(1 comment)
https://review.coreboot.org/c/coreboot/+/38504/3//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/38504/3//COMMIT_MSG@8 PS3, Line 8: : BUG=none : BRANCH=none : TEST=Build and boot tigerlake rvp board with SATA memory
please add some lines about what changes are made in code.
Ack
Nick Vaccaro has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38504 )
Change subject: soc/intel/tigerlake: Enable SATA ......................................................................
Patch Set 4: Code-Review+2
Subrata Banik has submitted this change. ( https://review.coreboot.org/c/coreboot/+/38504 )
Change subject: soc/intel/tigerlake: Enable SATA ......................................................................
soc/intel/tigerlake: Enable SATA
Configure SATA FSP UPD according to mainboard design.
BUG=none BRANCH=none TEST=Build and boot tigerlake rvp board with SATA memory
Signed-off-by: Wonkyu Kim wonkyu.kim@intel.com Change-Id: I9350d71d76cd3d449fd959b5398d5ac653bc459e Reviewed-on: https://review.coreboot.org/c/coreboot/+/38504 Reviewed-by: Nick Vaccaro nvaccaro@google.com Reviewed-by: Subrata Banik subrata.banik@intel.com Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M src/soc/intel/tigerlake/fsp_params_tgl.c 1 file changed, 14 insertions(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified Subrata Banik: Looks good to me, approved Nick Vaccaro: Looks good to me, approved Wonkyu Kim: Looks good to me, but someone else must approve
diff --git a/src/soc/intel/tigerlake/fsp_params_tgl.c b/src/soc/intel/tigerlake/fsp_params_tgl.c index fe59ac1..305748e 100644 --- a/src/soc/intel/tigerlake/fsp_params_tgl.c +++ b/src/soc/intel/tigerlake/fsp_params_tgl.c @@ -121,6 +121,20 @@ /* PCH UART selection for FSP Debug */ params->SerialIoDebugUartNumber = CONFIG_UART_FOR_CONSOLE;
+ /* SATA */ + dev = pcidev_on_root(PCH_DEV_SLOT_SATA, 0); + if (!dev) + params->SataEnable = 0; + else { + params->SataEnable = dev->enabled; + params->SataMode = config->SataMode; + params->SataSalpSupport = config->SataSalpSupport; + memcpy(params->SataPortsEnable, config->SataPortsEnable, + sizeof(params->SataPortsEnable)); + memcpy(params->SataPortsDevSlp, config->SataPortsDevSlp, + sizeof(params->SataPortsDevSlp)); + } + mainboard_silicon_init_params(params); }
9elements QA has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38504 )
Change subject: soc/intel/tigerlake: Enable SATA ......................................................................
Patch Set 5:
Automatic boot test returned (PASS/FAIL/TOTAL): 3/0/3 Emulation targets: EMULATION_QEMU_X86_Q35 using payload TianoCore : SUCCESS : https://lava.9esec.io/r/236 EMULATION_QEMU_X86_Q35 using payload SeaBIOS : SUCCESS : https://lava.9esec.io/r/235 EMULATION_QEMU_X86_I440FX using payload SeaBIOS : SUCCESS : https://lava.9esec.io/r/234
Please note: This test is under development and might not be accurate at all!