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

Issue 6804009: HACK: Pass data from firmware to kernel (Closed)

Created:
9 years, 8 months ago by Che-Liang Chiou
Modified:
9 years ago
CC:
chromium-os-reviews_chromium.org, robotboy, dneiss, Olof Johansson, amoljadi, chromeboy
Visibility:
Public.

Description

HACK: Pass data from firmware to kernel Changes here is an urgent workaround for factory bring up, and should be reverted or significantly rewritten after the protocol specification between Chrome OS firmware and kernel is finalized. R=rongchang@chromium.org BUG=chromium-os:13609 TEST=none Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=0544e9a

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fill-in details #

Total comments: 4

Patch Set 3 : Code review #

Patch Set 4 : Pass nvcxt_lba #

Patch Set 5 : Get recovery reason before LoadKernel destroys it #

Patch Set 6 : Add signature #

Patch Set 7 : Add nvcxt cache field #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -0 lines) Patch
M lib/chromeos/os_storage.c View 1 2 3 4 5 6 3 chunks +122 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Che-Liang Chiou
9 years, 8 months ago (2011-04-06 11:12:39 UTC) #1
Che-Liang Chiou
This is a preliminarily CL not ready for review yet.
9 years, 8 months ago (2011-04-06 11:13:21 UTC) #2
rongchang
CL, thanks. Before protocol been finalized, the workaround looks fine to me. http://codereview.chromium.org/6804009/diff/1/lib/chromeos/os_storage.c File lib/chromeos/os_storage.c ...
9 years, 8 months ago (2011-04-06 11:52:03 UTC) #3
Che-Liang Chiou
Hi Rong, I filled in details, and it is ready for review now. PTAL. http://codereview.chromium.org/6804009/diff/1/lib/chromeos/os_storage.c ...
9 years, 8 months ago (2011-04-07 11:17:31 UTC) #4
Vincent Palatin
http://codereview.chromium.org/6804009/diff/4001/arch/arm/lib/bootm.c File arch/arm/lib/bootm.c (right): http://codereview.chromium.org/6804009/diff/4001/arch/arm/lib/bootm.c#newcode41 arch/arm/lib/bootm.c:41: #define CONFIG_SETUP_MEMORY_TAGS As we are also using "mem=" command ...
9 years, 8 months ago (2011-04-07 13:26:56 UTC) #5
Che-Liang Chiou
Hi Vincent, Thanks for comments. Please take a look. http://codereview.chromium.org/6804009/diff/4001/arch/arm/lib/bootm.c File arch/arm/lib/bootm.c (right): http://codereview.chromium.org/6804009/diff/4001/arch/arm/lib/bootm.c#newcode41 arch/arm/lib/bootm.c:41: ...
9 years, 8 months ago (2011-04-08 07:41:15 UTC) #6
Vincent Palatin
9 years, 8 months ago (2011-04-08 12:34:13 UTC) #7
> By the way, I have another question:
> We setup "mem=" twice in bootargs "mem=384M@0M nvmem=128M@384M mem=512M@512M"
> when booting kernel. Does that mean the kernel will try the first and then the
> second?

No, this means the 1GB of RAM of the Tegra platform is split into 3 areas :
- 384 MB for the kernel heap
- then, 128MB for the display framebuffer
- and the remaining 512MB as a second bank for the kernel heap

http://codereview.chromium.org/6804009/diff/4001/arch/arm/lib/bootm.c#newcode289
> arch/arm/lib/bootm.c:289: if (i == CONFIG_NR_DRAM_BANKS - 1)
> On 2011/04/07 13:26:56, Vincent Palatin wrote:
> > IMHO it would be as easy and less hackish to add a custom tag with your
custom
> > firmware information in the atag chained list.
> 
> I was not sure whether kernel treat unrecognized ATAGs (drop it or ignore
it?).
> Do you have an idea about that?

The kernel will ignore them.
By the way, for both method (reserved memory at the end of RAM or ATAGs), I
think you will end up doing a kernel patch to read back the data of the kernel
side. So the ATAG implementation is easier, you just need to add the
"__tagtable" declaration with its corresponding callback.

Powered by Google App Engine
This is Rietveld 408576698