Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(604)

Issue 6877037: Revert MMIO space writes on shutdown as needed. (Closed)

Created:
9 years, 8 months ago by Louis
Modified:
9 years, 4 months ago
CC:
chromium-os-reviews_chromium.org
Visibility:
Public.

Description

Revert MMIO space writes on shutdown as needed. Basically this patch comes from http://patchwork.coreboot.org/patch/2331/ But fixed 2 bugs in original patch: program_opcodes(): should be rmmio_write"l"(..., ICH7_REG_OPMENU) undo_mmio_write(): case mmio_write_type_w: mmio_write"w"(data->wdata, data->addr); case mmio_write_type_l: mmio_write"l"(data->ldata, data->addr); Also add BBS register revert. Change-Id: I28dfa5b4b970a4c28ddbd5e103e2cefadb4c2ab7 BUG=chromium-os:9586 TEST=Tested on Mario: flashrom -V > 1 flashrom -V -p internal:bus=lpc > 2 flashrom -V > 3 flashrom -V -p internal:bus=spi > 4 flashrom -V > 5 grep Found 1 2 3 4 5 W25Q32 # bus=spi W24X40 # bus=lpc W25Q32 # bus=spi W25Q32 # bus=spi W25Q32 # bus=spi Above results prove that the BBS register is restored (in step 2) and no side-effect. Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=e6e628f Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=cd93c97

Patch Set 1 #

Patch Set 2 : re-send to notice reviewer #

Total comments: 3

Patch Set 3 : remove meaningless comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -14 lines) Patch
M chipset_enable.c View 1 chunk +2 lines, -2 lines 0 comments Download
M hwaccess.c View 1 chunk +68 lines, -0 lines 0 comments Download
M ichspi.c View 3 chunks +18 lines, -12 lines 0 comments Download
M programmer.h View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Louis
9 years, 8 months ago (2011-04-19 11:41:34 UTC) #1
Stefan Reinauer
Those comments are kind of weird. Otherwise LGTM http://codereview.chromium.org/6877037/diff/1006/nicintel_spi.c File nicintel_spi.c (right): http://codereview.chromium.org/6877037/diff/1006/nicintel_spi.c#newcode152 nicintel_spi.c:152: /* ...
9 years, 8 months ago (2011-04-19 18:24:55 UTC) #2
Louis
Thanks, Stefan. Please see my comment. http://codereview.chromium.org/6877037/diff/1006/nicintel_spi.c File nicintel_spi.c (right): http://codereview.chromium.org/6877037/diff/1006/nicintel_spi.c#newcode152 nicintel_spi.c:152: /* Automatic restore ...
9 years, 8 months ago (2011-04-20 00:43:54 UTC) #3
dhendrix
LGTM. Thanks! http://codereview.chromium.org/6877037/diff/1006/nicintel_spi.c File nicintel_spi.c (right): http://codereview.chromium.org/6877037/diff/1006/nicintel_spi.c#newcode152 nicintel_spi.c:152: /* Automatic restore is not possible because ...
9 years, 8 months ago (2011-04-20 00:55:25 UTC) #4
Louis
Re-submit this CL again since http://codereview.chromium.org/6897014/ has solved the shutdown order issue. Thanks David and ...
9 years, 7 months ago (2011-04-29 09:37:11 UTC) #5
Louis
9 years, 7 months ago (2011-04-29 09:38:20 UTC) #6
Note that, I have tested the patch on Alex, ZGB and Mario with following
commands:
    flashrom -V | grep Found: MX25L3205
    flashrom -V -p internal:bus=lpc | grep Found: MX25L1005
    flashrom -V | grep Found: MX25L3205
    flashrom -r -p internal:bus=spi -r /tmp/BIOS
    flashrom -r -p internal:bus=lpc -r /tmp/EC
    flashrom -r -r /tmp/BIOS2
    md5sum /tmp/BIOS*   # identical

Powered by Google App Engine
This is Rietveld 408576698