Marcello Sylvester Bauer has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/29979 )
Change subject: arch/x86/Kconfig: move MAX_REBOOT_CNT option
......................................................................
Patch Set 2:
> Patch Set 2:
>
> >> Everything below the currently defined defaults is wrong.
> >
> > why are they wrong? I tested it with values below and it behaves
> > like it should.
>
> Tested on what board and tested how? With/without MRC cache might make
> a difference for instance, plus there are about half a dozen of software
> reset methods, which one was used?
I only tested the behavior on qemu and especially on my own maschine.
(boot, reboot, resume to disk, S3 resume)
>
> Take modern Intel systems for instance. It's possible to reset the
> CPU only, causing an INIT, the cores reset the x86 register state,
> BSP restarts at the reset vector. Let's call it Reset#1. This is not
> enough to rerun coreboot, though. Hence you'll usually find a 0x6 ->
> 0xcf9 reset (aka. system reset, still a warm reset) early in the
> romstage: Reset#2. If no mrc.cache is present (bug or not) the raminit
> will refuse to retrain on warm resets: 0xe -> 0xcf9 (full reset, goes
> into S5 and back into S0 after a few seconds, hence a cold reset).
> That'd be Reset#3.
>
> So if MAX_REBOOT_CNT is < 3 and you hit the path described above, it
> will run into fallback for no reason.
Now i understand dimension of the problem. Thanks for the detailed explanation :)
>
> While that's the only path that comes to mind atm, there may be more
> like that. If you can prove that a board doesn't have any valid path
> with 3 resets, you can set MAX_REBOOT_CNT lower, and I won't call it
> wrong ;)
>
> >
> >> In other words, this option was hidden on purpose. You can add another
> >> option for instance and take the minimum of both or something like
> >> that. But you mustn't lower it.
> >
> > An other option would be to adapt the range in the Kconfig or fix
> > the issue which cause this wrong behavior.
>
> What wrong behaviour?
I meant the reset sequel, which causes a fallback even if nothing failed, but now i understand that it isn't possible.
I will update the entry to warn about any value below.
--
To view, visit https://review.coreboot.org/c/coreboot/+/29979
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ice26e2ef349f1172b564edc14f1012c33546a93c
Gerrit-Change-Number: 29979
Gerrit-PatchSet: 2
Gerrit-Owner: Marcello Sylvester Bauer <sylvblck(a)sylv.io>
Gerrit-Reviewer: Marcello Sylvester Bauer <sylvblck(a)sylv.io>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Nico Huber <nico.h(a)gmx.de>
Gerrit-Comment-Date: Mon, 03 Dec 2018 08:34:32 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Patrick Rudolph has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/30011 )
Change subject: sb/intel/i82801jx: Fix the x_pm2_cnt_blk addrl
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/30011
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ia12302a4dcd34eacdcc8ae16bd39e951e616c6ea
Gerrit-Change-Number: 30011
Gerrit-PatchSet: 1
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Mon, 03 Dec 2018 06:34:33 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/27545 )
Change subject: riscv: save FDT pointer from mscratch to HLS
......................................................................
Patch Set 23:
(1 comment)
https://review.coreboot.org/#/c/27545/23/src/arch/riscv/include/arch/stages…
File src/arch/riscv/include/arch/stages.h:
https://review.coreboot.org/#/c/27545/23/src/arch/riscv/include/arch/stages…
PS23, Line 21: void stage_entry(int hartid, void *fdt) __attribute__((section(".text.stage_entry")));
line over 80 characters
--
To view, visit https://review.coreboot.org/c/coreboot/+/27545
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I24554528969e36c9e98c0ebd733e002e215a52e5
Gerrit-Change-Number: 27545
Gerrit-PatchSet: 23
Gerrit-Owner: Xiang Wang <wxjstz(a)126.com>
Gerrit-Reviewer: Jonathan Neuschäfer <j.neuschaefer(a)gmx.net>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Philipp Hug <philipp(a)hug.cx>
Gerrit-Reviewer: Shawn Chang <citypw(a)gmail.com>
Gerrit-Reviewer: Xiang Wang <wxjstz(a)126.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Reviewer: ron minnich <rminnich(a)gmail.com>
Gerrit-Comment-Date: Mon, 03 Dec 2018 06:34:08 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Patrick Rudolph has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/29917 )
Change subject: src: Remove unused variables
......................................................................
Patch Set 15:
(1 comment)
https://review.coreboot.org/#/c/29917/15/src/northbridge/intel/x4x/early_in…
File src/northbridge/intel/x4x/early_init.c:
https://review.coreboot.org/#/c/29917/15/src/northbridge/intel/x4x/early_in…
PS15, Line 226: reg16 = RCBA16(0x1a8);
: reg16 &= ~0x3;
: RCBA16(0x1a8) = reg16;
> What do we need reg16 for?
It's a 16bit register. Using 8bit access here could brick things, as there are many read,write-to-clear registers. Unlikely here, but I'd always use full register width access.
--
To view, visit https://review.coreboot.org/c/coreboot/+/29917
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ibdfbf1031130ff861c4313d1271d6ccb68bf8837
Gerrit-Change-Number: 29917
Gerrit-PatchSet: 15
Gerrit-Owner: HAOUAS Elyes <ehaouas(a)noos.fr>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Damien Zammit <damien(a)zamaudio.com>
Gerrit-Reviewer: David Guckian <david.guckian(a)intel.com>
Gerrit-Reviewer: HAOUAS Elyes <ehaouas(a)noos.fr>
Gerrit-Reviewer: Huang Jin <huang.jin(a)intel.com>
Gerrit-Reviewer: Julius Werner <jwerner(a)chromium.org>
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: Philipp Deppenwiese <zaolin.daisuki(a)gmail.com>
Gerrit-Reviewer: York Yang <york.yang(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Mon, 03 Dec 2018 05:42:52 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: comment
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/27545 )
Change subject: riscv: save FDT pointer from mscratch to HLS
......................................................................
Patch Set 22:
(1 comment)
https://review.coreboot.org/#/c/27545/22/src/arch/riscv/include/arch/stages…
File src/arch/riscv/include/arch/stages.h:
https://review.coreboot.org/#/c/27545/22/src/arch/riscv/include/arch/stages…
PS22, Line 21: void stage_entry(int hartid, void *fdt) __attribute__((section(".text.stage_entry")));
line over 80 characters
--
To view, visit https://review.coreboot.org/c/coreboot/+/27545
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I24554528969e36c9e98c0ebd733e002e215a52e5
Gerrit-Change-Number: 27545
Gerrit-PatchSet: 22
Gerrit-Owner: Xiang Wang <wxjstz(a)126.com>
Gerrit-Reviewer: Jonathan Neuschäfer <j.neuschaefer(a)gmx.net>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Philipp Hug <philipp(a)hug.cx>
Gerrit-Reviewer: Shawn Chang <citypw(a)gmail.com>
Gerrit-Reviewer: Xiang Wang <wxjstz(a)126.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Reviewer: ron minnich <rminnich(a)gmail.com>
Gerrit-Comment-Date: Mon, 03 Dec 2018 04:28:13 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/29494 )
Change subject: riscv: add support to select the privilege level of the payload running
......................................................................
Patch Set 19:
(1 comment)
https://review.coreboot.org/#/c/29494/19/src/arch/riscv/boot.c
File src/arch/riscv/boot.c:
https://review.coreboot.org/#/c/29494/19/src/arch/riscv/boot.c@46
PS19, Line 46: void (*doit)(void *) = prog_entry(prog);
function definition argument 'void *' should also have an identifier name
--
To view, visit https://review.coreboot.org/c/coreboot/+/29494
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I96961246cd257b63cf167238aa0cf6e65272b951
Gerrit-Change-Number: 29494
Gerrit-PatchSet: 19
Gerrit-Owner: Xiang Wang <wxjstz(a)126.com>
Gerrit-Reviewer: Jonathan Neuschäfer <j.neuschaefer(a)gmx.net>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Philipp Hug <philipp(a)hug.cx>
Gerrit-Reviewer: Shawn Chang <citypw(a)gmail.com>
Gerrit-Reviewer: Xiang Wang <wxjstz(a)126.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Reviewer: ron minnich <rminnich(a)gmail.com>
Gerrit-Comment-Date: Mon, 03 Dec 2018 04:18:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment