linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] powerpc: Next round of bootwrapper flat dt patches
@ 2006-10-12  1:32 Mark A. Greer
  2006-10-12  1:33 ` [PATCH 1/4] powerpc: More bootwrapper reorg Mark A. Greer
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Mark A. Greer @ 2006-10-12  1:32 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: linuxppc-dev

I'm resumitting the entire patch series because I messed up the
threading and made some changes to simple_alloc.

Mark
---

Hi,

This patch series is a respin of--and complete replacement for--the
bootwrapper reorg patches that I sent out a while back.  I also included
the flatdevtree.c file which is the latest version that Paul sent plus
changes that I've made.

The patches apply to powerpc.git commit id:

	ba00003aa83a61b615542dd66f5af8fb4a7cee1d

Paul, it would really help the rest of us if you would apply these patches
quickly.  There are several people waiting for this work but there are so
many versions of so many patches that no one knows what to use.  Plus, it
would get more people testing/debugging the flatdevtree code.

Summary of changes:
===================

more reorg patch
----------------
- This patch includes Paul's changes to zImage.lds.S which define
  _dtb_start & _dtb_end and a related patch for the wrapper script.
- I changed main.c:start() a little so that the call to ft_init() is
  done in platform_init().  I did this because of an interface change
  to ft_init which now require some platform knowledge.
- I added a realloc() call to dt_ops so it can be passed to ft_open.

flatdevtree patch
-----------------
- I did not debug all of the flatdevtree.c code.  I only debugged
  ft_find_device, ft_get_prop, ft_set_prop and their supporting routines.
- I added a phandle table (insided the cxt) to track phandles returned by
  ft_find_device().  Now the value returned by ft_find_device() is a phandle
  which is nothing more than an index into the phandle table.  The phandle
  table contains the address of the corresponding node.  When the flat dt
  is edited/moved, the node pointers in the phandle table are updated
  accordingly so no phandles kept by the caller become stale.
- I tested shrinking, and expanding an existing property but did not test
  adding a new property.
- I'm not sure of the usefulness of the genealogy stuff but I left it there
  in case Paul has plans for it.  I did not test ft_get_parent (the only user
  of genealogy).

simple_realloc patch
--------------------
- The flatdevtree code needs a realloc now so that is implemented in here.
- As the name implies, it is a simple allocator which uses a table to track
  what's been allocated.  simple_alloc_init() let's the caller set where
  the heap is, its size, the granularity of its allocations, and how many
  entries the table has.
- Once a slot in the table is used, its base & size are set.  This allows
  the code to be much simpler.

non-OF serial console patch
---------------------------
- I decided not to look for a /cpus/<some cpu>/64-bit property and instead
  get either 1 or 2 "32-bit things" from the uart's 'virtual-reg' property.
  If there is 1, its 32-bits; if its 2, its 64-bits.

Mark

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2006-10-23 19:26 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-12  1:32 [PATCH 0/4] powerpc: Next round of bootwrapper flat dt patches Mark A. Greer
2006-10-12  1:33 ` [PATCH 1/4] powerpc: More bootwrapper reorg Mark A. Greer
2006-10-16 10:45   ` Paul Mackerras
2006-10-16 20:49     ` Mark A. Greer
2006-10-12  1:34 ` [PATCH 2/4] powerpc: Add flatdevtree source Mark A. Greer
2006-10-13  3:57   ` [PATCH] powerpc: realloc & other bug fixes for flatdevtree Mark A. Greer
2006-10-16 10:46   ` [PATCH 2/4] powerpc: Add flatdevtree source Paul Mackerras
2006-10-16 20:50     ` Mark A. Greer
2006-10-12  1:35 ` [PATCH 3/4] powerpc: Add non-OF serial console support Mark A. Greer
2006-10-16 20:52   ` Mark A. Greer
2006-10-12  1:35 ` [PATCH 4/4] powerpc: Add simple memory allocator to bootwrapper Mark A. Greer
2006-10-13  3:59   ` [PATCH] powerpc: change bad ptr handling in simple_alloc Mark A. Greer
2006-10-16 20:54     ` [PATCH 4/4] powerpc: Add simple memory allocator to bootwrapper Mark A. Greer
2006-10-23 19:26 ` [PATCH] Fixed some missing files to be deleted when running make clean Matthew McClintock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).