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

Issue 6531035: Fix WP polarity on Mario (Closed)

Created:
9 years, 10 months ago by Randall Spangler
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org, Randall Spangler, gauravsh, Luigi Semenzato, Bill Richardson
Visibility:
Public.

Description

Fix WP polarity on Mario Note that both the current and boot settings are incorrect as reported by the BIOS. This fixes both. Change-Id: Iebd2b4ac91232444e538f6e2763a22cb227f2e4f BUG=chrome-os-partner:2078 TEST=manual Run crossystem on Mario and Alex with WP enabled, disabled and check Verify true hardware WP status by doing: flashrom --wp-enable flashrom --wp-status flashrom --wp-disable flashrom --wp-status On a system with hardware WP enabled, the disable step should fail and write protect will still report enabled. Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=c80fe65

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fix nits from code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -9 lines) Patch
M host/lib/crossystem.c View 1 2 chunks +25 lines, -9 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Randall Spangler
9 years, 10 months ago (2011-02-17 18:58:57 UTC) #1
Bill Richardson
LGTM with a couple of nits. http://codereview.chromium.org/6531035/diff/1/host/lib/crossystem.c File host/lib/crossystem.c (right): http://codereview.chromium.org/6531035/diff/1/host/lib/crossystem.c#newcode86 host/lib/crossystem.c:86: /* Returns non-zero ...
9 years, 10 months ago (2011-02-17 19:05:48 UTC) #2
Hung-Te
Such design (value = 1 - value) means if someday we have a new Mario ...
9 years, 10 months ago (2011-02-18 01:21:32 UTC) #3
Randall Spangler
9 years, 10 months ago (2011-02-18 01:30:12 UTC) #4
On Thu, Feb 17, 2011 at 5:21 PM, <hungte@chromium.org> wrote:

> Such design (value = 1 - value) means if someday we have a new Mario
> firmware
> which fixed the ACPI table, then crossystem will report the wrong value.
>

We're safe, since we won't be fixing Mario - since Mario would then behave
differently for RO vs. RW firmware.

Prior to release, we should fix bugs in firmware so that it works properly.
 Post release, if the bug is in the RO firmware, we may need to add
workarounds in crossystem.

Thanks,
    Randall


> Fixing by hard-coding polarity seems more reasonable to me, because the
> value
> will be consistent no matter if Mario BIOS has fixed it or not.
>
>
> http://codereview.chromium.org/6531035/
>

Powered by Google App Engine
This is Rietveld 408576698