login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
August
»
31
Re: [PATCH 9/9] x86: OLPC: add OLPC device-tree support
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Grant Likely
Subject:
Re: [PATCH 9/9] x86: OLPC: add OLPC device-tree support
Date: Monday, August 30, 2010 - 10:49 pm
On Mon, Aug 30, 2010 at 12:49 PM, Andres Salomon <dilinger@queued.net> wrote:
quoted text
> On Mon, 30 Aug 2010 12:14:57 -0600 > Grant Likely <grant.likely@secretlab.ca> wrote: > >> On Sun, Aug 29, 2010 at 10:07 PM, Andres Salomon >> <dilinger@queued.net> wrote: >> > >> > Make use of PROC_DEVICETREE to export the tree, and sparc's >> > PROMTREE code to call into OLPC's Open Firmware to build the tree. >> > >> > This also adds an init hook to proc_device_tree_init so that we can >> > ensure the device tree has been built prior to the proc_root_init >> > stuff attempting to populate /proc/device-tree. >> >> I'm not clear as to why this is needed. I would expect OLPC platform >> setup code would take care of extracting the device tree well before >> the kernel gets to setting up the representation in /proc/device-tree. >> >> g. >> > > For simplicity; the OLPC platform setup code runs very early during > boot. I preferred to keep that as minimal as possible, and defer > device tree allocation until the x86 mm code has finished initializing > (this skipping all the fun bootmem/etc work that'll be happening for > x86 soon). > > Of course, once it's done initializing, one can either hardcode an > olpc_init_devtree call at the end of x86's setup_arch, or we can add a > generic hook for late devtree initialization right before proc > populates /proc/device-tree. I chose the latter, but it could easily > be changed to the former if folks feel strongly about it. > > I would've normally just used an initcall for it, but the proc_devtree > code runs prior to any of the initcall hooks.
Hmmm. I wonder if proc_devtree initialization could be deferred to an initcall. That would make the problem go away. g. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 0/4] RFC: OLPC/x86 device tree code
, Andres Salomon
, (Mon Jun 28, 6:54 pm)
[PATCH 1/4] x86: OLPC: constify an olpc_ofw() arg
, Andres Salomon
, (Mon Jun 28, 7:00 pm)
[PATCH 2/4] sparc: break out some prom device-tree buildin ...
, Andres Salomon
, (Mon Jun 28, 7:00 pm)
[PATCH 3/4] proc: unify PROC_DEVICETREE config
, Andres Salomon
, (Mon Jun 28, 7:00 pm)
[PATCH 4/4] x86: OLPC: add OLPC device-tree support
, Andres Salomon
, (Mon Jun 28, 7:00 pm)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, David Miller
, (Mon Jun 28, 8:11 pm)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Stephen Rothwell
, (Mon Jun 28, 11:15 pm)
Re: [PATCH 3/4] proc: unify PROC_DEVICETREE config
, Grant Likely
, (Tue Jun 29, 12:33 am)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Grant Likely
, (Tue Jun 29, 12:50 am)
Re: [PATCH 4/4] x86: OLPC: add OLPC device-tree support
, Grant Likely
, (Tue Jun 29, 1:12 am)
Re: [PATCH 4/4] x86: OLPC: add OLPC device-tree support
, Stephen Rothwell
, (Tue Jun 29, 1:33 am)
Re: [PATCH 4/4] x86: OLPC: add OLPC device-tree support
, Andres Salomon
, (Tue Jun 29, 7:23 am)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Andres Salomon
, (Tue Jun 29, 8:03 am)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Grant Likely
, (Tue Jun 29, 2:42 pm)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Andres Salomon
, (Tue Jun 29, 4:36 pm)
Re: [PATCH 4/4] x86: OLPC: add OLPC device-tree support
, Grant Likely
, (Wed Jun 30, 2:13 pm)
Re: [PATCH 4/4] x86: OLPC: add OLPC device-tree support
, Andres Salomon
, (Wed Jun 30, 2:32 pm)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Grant Likely
, (Wed Jun 30, 2:52 pm)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, David Miller
, (Mon Jul 5, 7:22 pm)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Grant Likely
, (Tue Jul 6, 12:00 am)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, David Miller
, (Tue Jul 6, 12:16 am)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Grant Likely
, (Tue Jul 6, 1:17 am)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Grant Likely
, (Tue Jul 6, 1:17 am)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Grant Likely
, (Tue Jul 6, 2:21 am)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Benjamin Herrenschmidt
, (Tue Jul 6, 3:17 am)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Andres Salomon
, (Tue Jul 6, 2:54 pm)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Grant Likely
, (Tue Jul 6, 3:06 pm)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Andres Salomon
, (Tue Jul 6, 6:15 pm)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Andres Salomon
, (Tue Jul 6, 9:07 pm)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ...
, Andres Salomon
, (Tue Jul 6, 10:15 pm)
[tip:x86/olpc] x86, olpc: Constify an olpc_ofw() arg
, tip-bot for Andres S ...
, (Fri Jul 30, 6:10 pm)
[PATCH 0/9] add OLPC device-tree support
, Andres Salomon
, (Sun Aug 29, 8:51 pm)
[PATCH 1/9] of: move phandle/ihandle into types.h
, Andres Salomon
, (Sun Aug 29, 8:53 pm)
[PATCH 2/9] sparc: convert various prom_* functions to use ...
, Andres Salomon
, (Sun Aug 29, 8:55 pm)
[PATCH 3/9] sparc: break out some PROM device-tree buildin ...
, Andres Salomon
, (Sun Aug 29, 8:57 pm)
[PATCH 4/9] sparc: make drivers/of/pdt.c no longer sparc-only
, Andres Salomon
, (Sun Aug 29, 8:59 pm)
[PATCH 5/9] of: no longer call prom_ functions directly; u ...
, Andres Salomon
, (Sun Aug 29, 9:00 pm)
[PATCH 6/9] of: add of_pdt namespace to pdt code
, Andres Salomon
, (Sun Aug 29, 9:02 pm)
[PATCH 7/9] of: add package-to-path support to pdt
, Andres Salomon
, (Sun Aug 29, 9:04 pm)
[PATCH 8/9] x86: of: irq additions to make drivers/of/* bu ...
, Andres Salomon
, (Sun Aug 29, 9:06 pm)
[PATCH 9/9] x86: OLPC: add OLPC device-tree support
, Andres Salomon
, (Sun Aug 29, 9:07 pm)
Re: [PATCH 1/9] of: move phandle/ihandle into types.h
, Sam Ravnborg
, (Sun Aug 29, 10:06 pm)
RE: [PATCH 8/9] x86: of: irq additions to make drivers/of/ ...
, Stephen Neuendorffer
, (Mon Aug 30, 8:58 am)
Re: [PATCH 8/9] x86: of: irq additions to make drivers/of/ ...
, Grant Likely
, (Mon Aug 30, 10:31 am)
Re: [PATCH 0/9] add OLPC device-tree support
, Grant Likely
, (Mon Aug 30, 10:58 am)
Re: [PATCH 9/9] x86: OLPC: add OLPC device-tree support
, Grant Likely
, (Mon Aug 30, 11:14 am)
Re: [PATCH 9/9] x86: OLPC: add OLPC device-tree support
, Andres Salomon
, (Mon Aug 30, 11:49 am)
Re: [PATCH 9/9] x86: OLPC: add OLPC device-tree support
, Grant Likely
, (Mon Aug 30, 10:49 pm)
Re: [PATCH 1/9] of: move phandle/ihandle into types.h
, Andres Salomon
, (Fri Sep 3, 1:17 am)
Re: [PATCH 1/9] of: move phandle/ihandle into types.h
, Sam Ravnborg
, (Sat Sep 4, 11:22 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Fortier,Vincent [Montreal]
2.6.21.5 june 30th to july 1st date hang?
Jeff Dike
[ PATCH 2/6 ] UML - Formatting fixes around os_{read_write}_file callers
Liam Girdwood
[PATCH 07/13] regulator: regulator test harness
Oleg Nesterov
Re: Getting the new RxRPC patches upstream
Stefan Seyfried
Re: 2.6.19-rc5: grub is much slower resuming from suspend-to-disk than in 2.6.18
linux-netdev
:
Arnaud Ebalard
Re: [REGRESSION,BISECTED] MIPv6 support broken by f4f914b58019f0
Jan Engelhardt
Re: [PATCH iptables] extension: add xt_cpu match
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Sebastian Andrzej Siewior
[PATCH 8/8] net/emergency: remove locking from reycling pool if emergncy pools are...
David Miller
Re: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2
git
:
Jakub Narebski
Re: git on MacOSX and files with decomposed utf-8 file names
Brandon Casey
Re: Thunderbird and patches (was Re: [PATCH v2] Enable setting attach as the def...
Christian Couder
[PATCH 1/3] rev-parse: add test script for "--verify"
Ramkumar Ramachandra
Re: [GSoC update] git-remote-svn: The final one
Junio C Hamano
Re: git-rm isn't the inverse action of git-add
openbsd-misc
:
Joachim Schipper
Re: UVC Webcams
Florin Andrei
SOLVED [was: firewall is very slow, something's wrong]
Todd Alan Smith
Re: Microsoft gets the Most Secure Operating Systems award
Neal Hogan
Re: Need Advice: Thinkpad T60 or T61?
Sam Fourman Jr.
Re: Real men don't attack straw men
git-commits-head
:
Linux Kernel Mailing List
ACPI: Disable ARB_DISABLE on platforms where it is not needed
Linux Kernel Mailing List
m68knommu: add read_barrier_depends() and irqs_disabled_flags()
Linux Kernel Mailing List
[MTD] Add mtd panic_write function pointer
Linux Kernel Mailing List
[ARM] pxa: remove duplicate select statements from Kconfig
Linux Kernel Mailing List
mlx4_core: Don't read reserved fields in mlx4_QUERY_ADAPTER()
Colocation donated by:
Syndicate