HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/40368 )
Change subject: nb/i945: Reorder sdram_setup_processor_side() ......................................................................
nb/i945: Reorder sdram_setup_processor_side()
Change-Id: Ida21eb648f92ff0545dc0ce4da3aa9135b1260a9 Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- M src/northbridge/intel/i945/raminit.c 1 file changed, 3 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/68/40368/1
diff --git a/src/northbridge/intel/i945/raminit.c b/src/northbridge/intel/i945/raminit.c index 329914e..dad1cb2 100644 --- a/src/northbridge/intel/i945/raminit.c +++ b/src/northbridge/intel/i945/raminit.c @@ -2714,13 +2714,12 @@
static void sdram_setup_processor_side(void) { - if (i945_silicon_revision() == 0) + if (i945_silicon_revision() == 0) { MCHBAR32(FSBPMC3) |= (1 << 2); + MCHBAR32(SLPCTL) |= (1 << 8); + }
MCHBAR8(0xb00) |= 1; - - if (i945_silicon_revision() == 0) - MCHBAR32(SLPCTL) |= (1 << 8); }
/**
Arthur Heymans has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/40368 )
Change subject: nb/i945: Reorder sdram_setup_processor_side() ......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/c/coreboot/+/40368/3//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/40368/3//COMMIT_MSG@7 PS3, Line 7: Reorder why? You might want to use a variable instead of calling i945_silicon_revision() twice?
HAOUAS Elyes has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/40368 )
Change subject: nb/i945: Reorder sdram_setup_processor_side() ......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/c/coreboot/+/40368/3//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/40368/3//COMMIT_MSG@7 PS3, Line 7: Reorder
why? You might want to use a variable instead of calling i945_silicon_revision() twice?
I'm not using a variable. I just call i945_silicon_revision() one time and write 2 MCHBAR registers.
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/40368 )
Change subject: nb/i945: Reorder sdram_setup_processor_side() ......................................................................
Patch Set 3: Code-Review-1
(1 comment)
https://review.coreboot.org/c/coreboot/+/40368/3/src/northbridge/intel/i945/... File src/northbridge/intel/i945/raminit.c:
https://review.coreboot.org/c/coreboot/+/40368/3/src/northbridge/intel/i945/... PS3, Line 2717: if (i945_silicon_revision() == 0) { Changing the order of undocumented register writes is not a good idea. What if there's an electrical dependency between these?
HAOUAS Elyes has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/40368 )
Change subject: nb/i945: Reorder sdram_setup_processor_side() ......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/c/coreboot/+/40368/3/src/northbridge/intel/i945/... File src/northbridge/intel/i945/raminit.c:
https://review.coreboot.org/c/coreboot/+/40368/3/src/northbridge/intel/i945/... PS3, Line 2717: if (i945_silicon_revision() == 0) {
Changing the order of undocumented register writes is not a good idea. […]
I've checked, apple macbook21 did the same on vendore rom.
I don't have that hardware to test, and I'm fine to drop current changes
HAOUAS Elyes has abandoned this change. ( https://review.coreboot.org/c/coreboot/+/40368 )
Change subject: nb/i945: Reorder sdram_setup_processor_side() ......................................................................
Abandoned
if (i945_silicon_revision() == 0) ....