Re: SYSFS: need a noncaching read

2007-09-17 Thread Tejun Heo
Greg KH wrote: > On Wed, Sep 12, 2007 at 07:32:07AM +0200, Robert Schwebel wrote: >> On Tue, Sep 11, 2007 at 11:43:17AM +0200, Heiko Schocher wrote: >>> I have developed a device driver and use the sysFS to export some >>> registers to userspace. >> Uuuh, uggly. Don't do that. Device drivers are th

Re: [PATCH 4/7] powerpc: BestComm core support for Freescale MPC5200

2007-09-17 Thread Matt Sealey
My only nitpick is the function naming. Why not bestcomm_blah() rather than bcom_blah()? I also think, even though the SRAM functionality is dependant on BestComm (it's hard to seperate into another driver because of kernel driver init order being 'random'?) it should be named after the chip and

Re: [PATCH] fix xmon input on 440

2007-09-17 Thread Josh Boyer
On Sun, 2007-09-16 at 23:15 -0500, Hollis Blanchard wrote: > On Sun, 2007-09-16 at 22:39 -0500, Olof Johansson wrote: > > On Sun, Sep 16, 2007 at 10:26:37PM -0500, Josh Boyer wrote: > > > On Mon, 2007-09-17 at 12:52 +1000, David Gibson wrote: > > > > On Fri, Sep 14, 2007 at 03:44:47PM -0500, Hollis

Re: [PATCH] [POWERPC] Remove unused variabls from drivers/ide/ppc/pmac.c

2007-09-17 Thread Bartlomiej Zolnierkiewicz
On Monday 17 September 2007, Stephen Rothwell wrote: > Removes these warnings: > > /home/sfr/kernels/linus/drivers/ide/ppc/pmac.c: In function > 'pmac_ide_dma_check': > /home/sfr/kernels/linus/drivers/ide/ppc/pmac.c:1807: warning: unused variable > 'map' > /home/sfr/kernels/linus/drivers/ide/ppc

Re: [PATCH] fix xmon input on 440

2007-09-17 Thread Milton Miller
On Sat Sep 15 06:44:47 EST 2007, Hollis Blanchard wrote: > Implement udbg_getc() for 440, which fixes xmon input. > Signed-off-by: Hollis Blanchard > udbg_putc = udbg_44x_as1_putc; > + udbg_getc = udbg_44x_as1_getc; How about adding udbg_getc_poll as well? While there are no in-t

[PATCH 0/3] usb: ehci ppc device-tree-aware driver

2007-09-17 Thread Valentine Barshak
Some PowerPC systems have a built-in EHCI controller. This is a device tree aware version of the EHCI controller driver. Currently it's been tested on the PowerPC 440EPx Sequoia board. Other platforms can be added later. The code is based on the ehci-ppc-soc driver by Stefan Roese <[EMAIL PROTECTE

[PATCH 1/3] usb: add device-tree-aware ehci driver

2007-09-17 Thread Valentine Barshak
This adds ehci-ppc-of driver. The code is based on the ehci-ppc-soc driver by Stefan Roese <[EMAIL PROTECTED]>. Signed-off-by: Stefan Roese <[EMAIL PROTECTED]> Signed-off-by: Valentine Barshak <[EMAIL PROTECTED]> --- drivers/usb/host/Kconfig |8 + drivers/usb/host/ehci-hcd.c| 16 +

[PATCH 2/3] usb: ehci-ppc-of dts bindings.

2007-09-17 Thread Valentine Barshak
Signed-off-by: Valentine Barshak <[EMAIL PROTECTED]> --- Documentation/powerpc/booting-without-of.txt | 30 +++ 1 file changed, 30 insertions(+) diff -ruN linux-2.6.orig/Documentation/powerpc/booting-without-of.txt linux-2.6.new/Documentation/powerpc/booting-without-of.

[PATCH 3/3] Add PowerPC 440EPx Sequoia ehci dts entry.

2007-09-17 Thread Valentine Barshak
The patch adds usb ehci entry to PowerPC440EPx Sequoia DTS. Signed-off-by: Valentine Barshak <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/sequoia.dts |9 + 1 file changed, 9 insertions(+) diff -ruN linux-2.6.orig/arch/powerpc/boot/dts/sequoia.dts linux-2.6/arch/powerpc/boot/dts/seq

Re: [PATCH 1/3] usb: add device-tree-aware ehci driver

2007-09-17 Thread Stephen Rothwell
On Mon, 17 Sep 2007 16:55:43 +0400 Valentine Barshak <[EMAIL PROTECTED]> wrote: > > +++ linux-2.6/drivers/usb/host/ehci-ppc-of.c 2007-09-15 16:12:56.0 > +0400 > @@ -0,0 +1,220 @@ > + > +#include > +#include Please use linux/of.h and linux/of_platform.h instead. > +static int ehci_hcd_

Re: [PATCH 1/3] usb: add device-tree-aware ehci driver

2007-09-17 Thread Josh Boyer
On Mon, 17 Sep 2007 23:28:09 +1000 Stephen Rothwell <[EMAIL PROTECTED]> wrote: > On Mon, 17 Sep 2007 16:55:43 +0400 Valentine Barshak <[EMAIL PROTECTED]> > wrote: > > > > +++ linux-2.6/drivers/usb/host/ehci-ppc-of.c2007-09-15 > > 16:12:56.0 +0400 > > @@ -0,0 +1,220 @@ > > + > > +

Re: CONFIG_BLK_DEV_BSG=n

2007-09-17 Thread David Howells
James Bottomley <[EMAIL PROTECTED]> wrote: > > Which solution would you be more comfortable with? > > The one which is currently in -mm is this one: > > http://git.kernel.org/?p=linux/kernel/git/jejb/scsi-misc-2.6.git;a=commit;h=49892223f7d3a2333ef9e6cbdd526676e1fc517a In my opinion, this is t

Re: [PATCH 09/10] ppc64: Convert cpu_sibling_map to a per_cpu data array (v3)

2007-09-17 Thread Mike Travis
Stephen Rothwell wrote: > On Tue, 11 Sep 2007 18:56:53 -0700 [EMAIL PROTECTED] wrote: >> Convert cpu_sibling_map to a per_cpu cpumask_t array for the ppc64 >> architecture. This fixes build errors in block/blktrace.c and >> kernel/sched.c when CONFIG_SCHED_SMT is defined. >> >> Note: these changes

[PATCH 00/28] 8xx/82xx patches

2007-09-17 Thread Scott Wood
This is the latest set of 8xx/82xx patches; please apply for 2.6.24. Kumar, sorry if you got this twice, but my mailer was misconfigured last time, and thus it didn't get to the list. -Scott ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://

[PATCH 01/28] CPM: Change from fsl,brg-frequency to brg/clock-frequency

2007-09-17 Thread Scott Wood
As suggested by David Gibson, now that we have a separate node for the baud rate generators, it's better to use the standard clock-frequency property than a cpm-node-level fsl,brg-frequency property. This patch updates existing places where fsl,brg-frequency is used. Signed-off-by: Scott Wood <[E

[PATCH 06/28] bootwrapper: Add PlanetCore firmware support.

2007-09-17 Thread Scott Wood
This is a library that board code can use to extract information from the PlanetCore configuration keys. PlanetCore is used on various boards from Embedded Planet. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/boot/Makefile |2 +- arch/powerpc/boot/planetcore.c | 175 ++

[PATCH 09/28] cpm_uart: Be an of_platform device when CONFIG_PPC_CPM_NEW_BINDING is set.

2007-09-17 Thread Scott Wood
The existing OF glue code was crufty and broken. Rather than fix it, it has been removed, and the serial driver now talks to the device tree directly. The non-CONFIG_PPC_CPM_NEW_BINDING code can go away once CPM platforms are dropped from arch/ppc (which will hopefully be soon), and existing arch

[PATCH 12/28] 8xx: Fix CONFIG_PIN_TLB.

2007-09-17 Thread Scott Wood
1. Move CONSISTENT_START on 8xx so that it doesn't overlap the IMMR mapping. 2. The wrong register was being loaded into SPRN_MD_RPN. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/Kconfig |1 + arch/powerpc/kernel/head_8xx.S |4 ++-- 2 files changed, 3 insertion

[PATCH 10/28] cpm_uart: sparse fixes

2007-09-17 Thread Scott Wood
Mostly a bunch of direct access to in/out conversions, plus a few cast removals, __iomem annotations, and miscellaneous cleanup. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- drivers/serial/cpm_uart/cpm_uart.h | 42 +++-- drivers/serial/cpm_uart/cpm_uart_core.c | 299 -

[PATCH 14/28] 8xx: Add pin and clock setting functions.

2007-09-17 Thread Scott Wood
These let board code set up pins and clocks without having to put magic numbers directly into the registers. The clock function is mostly duplicated from the cpm2 version; hopefully this stuff can be merged at some point. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/comm

[PATCH 15/28] 8xx: Work around CPU15 erratum.

2007-09-17 Thread Scott Wood
The CPU15 erratum on MPC8xx chips can cause incorrect code execution under certain circumstances, where there is a conditional or indirect branch in the last word of a page, with a target in the last cache line of the next page. This patch implements one of the suggested workarounds, by forcing a

[PATCH 13/28] 8xx: Infrastructure code cleanup.

2007-09-17 Thread Scott Wood
1. Keep a global mpc8xx_immr mapping, rather than constantly creating temporary mappings. 2. Look for new fsl,cpm1 and fsl,cpm1-pic names. 3. Always reset the CPM when not using the udbg console; this is required in case the firmware initialized a device that is incompatible with one that the kerne

[PATCH 16/28] 8xx: Don't call non-existent Soft_emulate_8xx from SoftwareEmulation.

2007-09-17 Thread Scott Wood
On arch/ppc, Soft_emulate_8xx was used when full math emulation was turned off to emulate a minimal subset of floating point load/store instructions, to avoid needing a soft-float toolchain. This function is called, but not present, on arch/powerpc, causing a build error if floating point emulatio

[PATCH 04/28] Add early debug console for CPM serial ports.

2007-09-17 Thread Scott Wood
This code assumes that the ports have been previously set up, with buffers in DPRAM. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/Kconfig.debug | 21 arch/powerpc/kernel/head_32.S | 16 arch/powerpc/kernel/udbg.c |2 + a

[PATCH 17/28] 8xx: Set initial memory limit.

2007-09-17 Thread Scott Wood
From: John Traill <[EMAIL PROTECTED]> The 8xx can only support a max of 8M during early boot (it seems a lot of 8xx boards only have 8M so the bug was never triggered), but the early allocator isn't aware of this. The following change makes it able to run with larger memory. Signed-off-by: Vital

[PATCH 20/28] cpm2: Infrastructure code cleanup.

2007-09-17 Thread Scott Wood
Mostly sparse fixes (__iomem annotations, etc); also, cpm2_immr is used rather than creating many temporary mappings. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/cpm2_common.c | 52 ++-- arch/powerpc/sysdev/cpm2_pic.c|2 +- inclu

[PATCH 21/28] cpm2: Add SCCs to cpm2_clk_setup(), and cpm2_smc_clk_setup().

2007-09-17 Thread Scott Wood
Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/cpm2_common.c | 100 +++-- include/asm-powerpc/cpm2.h|5 ++- 2 files changed, 99 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/sysdev/cpm2_common.c b/arch/powerpc/sysdev/c

[PATCH 22/28] cpm2: Add cpm2_set_pin().

2007-09-17 Thread Scott Wood
This provides a generic way for board code to set up CPM pins, rather than directly poking magic values into registers. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/cpm2_common.c | 33 + include/asm-powerpc/cpm2.h|9 +

[PATCH 18/28] 8xx: mpc885ads cleanup

2007-09-17 Thread Scott Wood
It now uses the new CPM binding and the generic pin/clock functions, and has assorted fixes and cleanup. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/mpc885ads.dts | 195 +++- arch/powerpc/configs/mpc885_ads_defconfig| 297 + arch/

[PATCH 19/28] 8xx: Embedded Planet EP88xC support

2007-09-17 Thread Scott Wood
This board is also resold by Freescale under the names "QUICCStart MPC885 Evaluation System" and "CWH-PPC-885XN-VE". Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/boot/Makefile|4 +- arch/powerpc/boot/dts/ep88xc.dts | 203 + arch/powerpc/boot/ep88xc.

[PATCH 23/28] mpc82xx: Define CPU_FTR_NEED_COHERENT

2007-09-17 Thread Scott Wood
The 8272 (and presumably other PCI PQ2 chips) appear to have the same issue as the 83xx regarding PCI streaming DMA. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- include/asm-powerpc/cputable.h | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/asm-power

[PATCH 08/28] bootwrapper: Use fsl_get_immr() in cuboot-pq2.c.

2007-09-17 Thread Scott Wood
Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/boot/cuboot-pq2.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/boot/cuboot-pq2.c b/arch/powerpc/boot/cuboot-pq2.c index d78e943..61574f3 100644 --- a/arch/powerpc/boot/cuboot-pq2.c +++

[PATCH 05/28] bootwrapper: Support all-in-one PCI nodes in cuboot-pq2.

2007-09-17 Thread Scott Wood
Consensus was reached to put PCI nodes at the root of the tree (and not under /soc), but the phandle to a control node was rejected in favor of simply not worrying about /pci/reg overlapping /soc/ranges. This updates cuboot-82xx to not look for the phandle. Signed-off-by: Scott Wood <[EMAIL PROTE

[PATCH 02/28] Introduce new CPM device bindings.

2007-09-17 Thread Scott Wood
This introduces a new device binding for the CPM and other devices on these boards. Some of the changes include: 1. Proper namespace scoping for Freescale compatibles and properties. 2. Use compatible rather than things like device_type and model to determine which particular variant of a device

[PATCH 03/28] Document local bus nodes in the device tree.

2007-09-17 Thread Scott Wood
cuboot-pq2 is updated to match the binding, and get rid of phandle linkage. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- Documentation/powerpc/booting-without-of.txt | 38 ++ arch/powerpc/boot/cuboot-pq2.c | 29 +-- 2 files changed, 4

[PATCH 25/28] mpc82xx: Rename mpc82xx_ads to mpc8272_ads.

2007-09-17 Thread Scott Wood
This is just a rename patch; internal references to mpc82xx_ads will be changed in the next one. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/platforms/82xx/Kconfig|8 arch/powerpc/platforms/82xx/Makefile |2 +- .../82xx/{mpc82xx_ad

[PATCH 11/28] cpm_uart: Issue STOP_TX command before initializing console.

2007-09-17 Thread Scott Wood
This prevents some bootloader/bootwrapper characters from being lost. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- drivers/serial/cpm_uart/cpm_uart_core.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/serial/cpm_uart/cpm_uart_core.c b/drivers/serial/cpm_

[PATCH 07/28] bootwrapper: Add fsl_get_immr() and 8xx/pq2 clock functions.

2007-09-17 Thread Scott Wood
fsl_get_immr() uses /soc/ranges to determine the immr. mpc885_get_clock() transforms a crystal frequency into a system frequency according to the PLL register settings. pq2_get_clocks() does the same as the above for the PowerQUICC II, except that it produces several different clocks. The mpc8xx

[PATCH 24/28] mpc82xx: Remove a bunch of cruft that duplicates generic functionality.

2007-09-17 Thread Scott Wood
m82xx_calibrate_decr(), mpc82xx_ads_show_cpuinfo(), and mpc82xx_halt() do anything useful beyond what the generic code does. Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/platforms/82xx/Makefile |1 - arch/powerpc/platforms/82xx/mpc82xx.c | 109 -

[PATCH 26/28] mpc8272ads: Change references from 82xx_ADS to 8272_ADS.

2007-09-17 Thread Scott Wood
Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/platforms/82xx/mpc8272_ads.c | 26 +- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/arch/powerpc/platforms/82xx/mpc8272_ads.c b/arch/powerpc/platforms/82xx/mpc8272_ads.c index b251a55..97d8

[PATCH 27/28] mpc82xx: Update mpc8272ads, and factor out PCI and reset.

2007-09-17 Thread Scott Wood
1. PCI and reset are factored out into pq2.c. I renamed them from m82xx to pq2 because they won't work on the Integrated Host Processor line of 82xx chips (i.e. 8240, 8245, and such). 2. The PCI PIC, which is nominally board-specific, is used on multiple boards, and thus is used into pq2ads-pci-p

[PATCH 28/28] mpc82xx: Add pq2fads board support.

2007-09-17 Thread Scott Wood
Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/pq2fads.dts | 229 arch/powerpc/configs/pq2fads_defconfig | 1003 arch/powerpc/platforms/82xx/Kconfig| 11 + arch/powerpc/platforms/82xx/Makefile |1 + arch/powerpc/p

Re: [PATCH 1/3] usb: add device-tree-aware ehci driver

2007-09-17 Thread Valentine Barshak
Stephen Rothwell wrote: > On Mon, 17 Sep 2007 16:55:43 +0400 Valentine Barshak <[EMAIL PROTECTED]> > wrote: >> +++ linux-2.6/drivers/usb/host/ehci-ppc-of.c 2007-09-15 16:12:56.0 >> +0400 >> @@ -0,0 +1,220 @@ >> + >> +#include >> +#include > > Please use linux/of.h and linux/of_platform

[PATCH 1/1] ppc64: Convert cpu_sibling_map to a per_cpu data array ppc64 v2

2007-09-17 Thread travis
v2: This patch applies after: convert-cpu_sibling_map-to-a-per_cpu-data-array-ppc64.patch and should fix the "reference cpu_sibling_map before setup_per_cpu_areas() has been called" problem. In addtion, the cpu_sibiling_map macro has been removed [this was missed in my original submiss

[PATCH 0/1] ppc64: Convert cpu_sibling_map to a per_cpu data array ppc64 v2

2007-09-17 Thread travis
Stephen Rothwell wrote: > On Mon, 17 Sep 2007 16:28:31 +1000 Stephen Rothwell <[EMAIL PROTECTED]> wrote: >> the topology (on my POWERPC5+ box) is not correct: >> >> cpu0/topology/thread_siblings:000f >> cpu1/topology/thread_siblings:000f >> cpu2/topology/thread_siblings:000f >> cp

[PATCH 1/3] usb: add device-tree-aware ehci driver

2007-09-17 Thread Valentine Barshak
This adds ehci-ppc-of driver. The code is based on the ehci-ppc-soc driver by Stefan Roese <[EMAIL PROTECTED]>. Signed-off-by: Stefan Roese <[EMAIL PROTECTED]> Signed-off-by: Valentine Barshak <[EMAIL PROTECTED]> --- drivers/usb/host/Kconfig |8 + drivers/usb/host/ehci-hcd.c| 16 +

Re: [PATCH] i2c: devtree-aware iic support for PPC4xx

2007-09-17 Thread Jean Delvare
Hi Stefan, On Mon, 17 Sep 2007 07:34:08 +0200, Stefan Roese wrote: > On Sunday 16 September 2007, Eugene Surovegin wrote: > > Hmm, I just noticed that you basically added a copy of existing > > driver with small changes to support OF while keeping OCP one. > > > > Why not just add OF support to th

Re: libfdt: Add fdt_node_offset_by_prop_value()

2007-09-17 Thread Jon Loeliger
So, like, the other day David Gibson mumbled: > This patch adds a function to libfdt to locate nodes containing a > property with a specific value. > > Signed-off-by: David Gibson <[EMAIL PROTECTED]> Applied. jdl ___ Linuxppc-dev mailing list Linuxppc

Re: libfdt: Consistently use big-endian property data in testcases

2007-09-17 Thread Jon Loeliger
So, like, the other day David Gibson mumbled: > Flat device trees always have integers in their structure stored as > big-endian. From this point of view, property values are > bags-of-bytes and any endianness is up to users of the device tree to > determine. > > The libfdt testcases which use pr

Re: dtc: Cleanup testsuite organization

2007-09-17 Thread Jon Loeliger
So, like, the other day David Gibson mumbled: > run_tests.sh from the dtc testsuite currently has a facility ro run > just "functional" or just "stress" tests. This distinction is carried > over from libhugetlbfs where the test framework originated, and where > it made sense. > > In dtc, we have

Re: [PATCH] i2c: devtree-aware iic support for PPC4xx

2007-09-17 Thread Grant Likely
On 9/16/07, Stefan Roese <[EMAIL PROTECTED]> wrote: > On Sunday 16 September 2007, Eugene Surovegin wrote: > > Hmm, I just noticed that you basically added a copy of existing > > driver with small changes to support OF while keeping OCP one. > > > > Why not just add OF support to the existing code

[PATCH] [POWERPC] Support setting affinity for U3/U4 MSI sources

2007-09-17 Thread Olof Johansson
Hook up affinity-setting for U3/U4 MSI interrupt sources. Tested on Quad G5 with myri10ge. Signed-off-by: Olof Johansson <[EMAIL PROTECTED]> diff --git a/arch/powerpc/sysdev/mpic.c b/arch/powerpc/sysdev/mpic.c index 8de29f2..22600fd 100644 --- a/arch/powerpc/sysdev/mpic.c +++ b/arch/powerpc/sys

[PATCH] [POWERPC] Fix build errors when BLOCK=n

2007-09-17 Thread Emil Medve
These are the symptom error messages: CC arch/powerpc/kernel/setup_32.o In file included from include/linux/blkdev.h:17, from include/linux/ide.h:13, from arch/powerpc/kernel/setup_32.c:13: include/linux/bsg.h:67: warning: 'struct request_queue' declared in

Re: [PATCH 1/3] IB/ehca: Fix large page HW cap defines

2007-09-17 Thread Roland Dreier
obviously OK...applied. ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: [PATCH] [POWERPC] Fix build errors when BLOCK=n

2007-09-17 Thread David Howells
Try the attached. David --- [PATCH] VFS: Make BSG declarations dependent on CONFIG_BLOCK From: David Howells <[EMAIL PROTECTED]> Make BSG function declarations dependent on CONFIG_BLOCK as they are not compilable if the block layer is compiled out. Signed-off-by: David Howells <[EMAIL PROTECTE

RE: [PATCH] [POWERPC] Fix build errors when BLOCK=n

2007-09-17 Thread Medve Emilian-EMMEDVE1
Hi David, I've seen you patch earlier, but I'm not trying to solve the BSG related problem/warnings. That's why I put a reference to an already existing commit addressing the BSG/bsg.h warnings. I'm trying to address a slightly different problem in the PowerPC code only. Cheers, Emil. > -

[PATCH] powerpc: Avoid pointless WARN_ON(irqs_disabled()) from panic codepath

2007-09-17 Thread Satyam Sharma
> [ cut here ] > Badness at arch/powerpc/kernel/smp.c:202 comes when smp_call_function_map() has been called with irqs disabled, which is illegal. However, there is a special case, the panic() codepath, when we do not want to warn about this -- warning at that time is poin

Re: [PATCH] powerpc: Avoid pointless WARN_ON(irqs_disabled()) from panic codepath

2007-09-17 Thread Satyam Sharma
On Tue, 18 Sep 2007, Satyam Sharma wrote: > > > [ cut here ] > > Badness at arch/powerpc/kernel/smp.c:202 > > comes when smp_call_function_map() has been called with irqs disabled, > which is illegal. However, there is a special case, the panic() codepath, > when we do n

dtc: Add basic testcases for dtc

2007-09-17 Thread David Gibson
This patch adds a handful of simple testcases for dtc. It adds a dts file which should generate the same sample tree as is used for the libfdt testcases, and tests invoking dtc on this dts, plus the standard batch of libfdt cases on the resulting dtb, which effectively checks that the dtb is corre

Re: [PATCH] powerpc: Avoid pointless WARN_ON(irqs_disabled()) from panic codepath

2007-09-17 Thread Randy Dunlap
On Tue, 18 Sep 2007 05:13:40 +0530 (IST) Satyam Sharma wrote: > Untested (not even compile-tested) patch. > Could someone point me to ppc32/64 cross-compilers for i386? OSDL had some, but those are gone now. I downloaded all of them and still use them, although it would be good to have some more

dtc: Whitespace cleanup

2007-09-17 Thread David Gibson
This large patch removes all trailing whitespace from dtc (including libfdt, the testsuite and documentation). It also removes a handful of redundant blank lines (at the end of functions, or when there are two blank lines together for no particular reason). As well as anything else, this means th

Re: [PATCH] powerpc: Avoid pointless WARN_ON(irqs_disabled()) from panic codepath

2007-09-17 Thread Josh Boyer
On Mon, 17 Sep 2007 18:37:49 -0700 Randy Dunlap <[EMAIL PROTECTED]> wrote: > On Tue, 18 Sep 2007 05:13:40 +0530 (IST) Satyam Sharma wrote: > > > Untested (not even compile-tested) patch. > > Could someone point me to ppc32/64 cross-compilers for i386? > > OSDL had some, but those are gone now. >

Re: [PATCH 0/7] MPC52xx Bestcomm submission for 2.6.24

2007-09-17 Thread Jon Smirl
On 9/16/07, Sylvain Munaut <[EMAIL PROTECTED]> wrote: > Hello Paul, Hi everyone, > > This series of patch is mainly the bestcomm support for > the mpc5200. It was posted a while ago and received some > comments. Theses are all addressed here (afaik). Does this series supersede these pacthes out of

Re: [PATCH 09/28] cpm_uart: Be an of_platform device when CONFIG_PPC_CPM_NEW_BINDING is set.

2007-09-17 Thread Stephen Rothwell
On Mon, 17 Sep 2007 11:57:38 -0500 Scott Wood <[EMAIL PROTECTED]> wrote: > > +++ b/drivers/serial/cpm_uart/cpm_uart_core.c > @@ -10,7 +10,7 @@ > + > +#ifdef CONFIG_PPC_CPM_NEW_BINDING > +#include linux/of_platform.h -- Cheers, Stephen Rothwell[EMAIL PROTECTED] http://www.can

Re: [PATCH 1/3] usb: add device-tree-aware ehci driver

2007-09-17 Thread Stephen Rothwell
On Mon, 17 Sep 2007 22:17:15 +0400 Valentine Barshak <[EMAIL PROTECTED]> wrote: > > Looks like we'll need a patch that replaces asm/prom.h and > asm/of_platform.h with linux/of.h and linux/of_platform.h > in other drivers. Yeah, but at the moment I am just stopping the infection spreading :-) --

Re: [PATCH] [POWERPC] Support setting affinity for U3/U4 MSI sources

2007-09-17 Thread Benjamin Herrenschmidt
On Mon, 2007-09-17 at 15:12 -0500, Olof Johansson wrote: > Hook up affinity-setting for U3/U4 MSI interrupt sources. > > Tested on Quad G5 with myri10ge. > > > Signed-off-by: Olof Johansson <[EMAIL PROTECTED]> Acked-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> > > diff --git a/arch/powerpc/

Re: [PATCH 1/3] usb: add device-tree-aware ehci driver

2007-09-17 Thread David Gibson
On Tue, Sep 18, 2007 at 02:26:06PM +1000, Stephen Rothwell wrote: > On Mon, 17 Sep 2007 22:17:15 +0400 Valentine Barshak <[EMAIL PROTECTED]> > wrote: > > > > Looks like we'll need a patch that replaces asm/prom.h and > > asm/of_platform.h with linux/of.h and linux/of_platform.h > > in other drive

Re: [PATCH 0/7] MPC52xx Bestcomm submission for 2.6.24

2007-09-17 Thread tnt
> On 9/16/07, Sylvain Munaut <[EMAIL PROTECTED]> wrote: >> Hello Paul, Hi everyone, >> >> This series of patch is mainly the bestcomm support for >> the mpc5200. It was posted a while ago and received some >> comments. Theses are all addressed here (afaik). > > Does this series supersede these pact

Re: [PATCH 24/28] mpc82xx: Remove a bunch of cruft that duplicates generic functionality.

2007-09-17 Thread David Gibson
On Mon, Sep 17, 2007 at 11:58:16AM -0500, Scott Wood wrote: > m82xx_calibrate_decr(), mpc82xx_ads_show_cpuinfo(), and mpc82xx_halt() do > anything useful beyond what the generic code does. > > Signed-off-by: Scott Wood <[EMAIL PROTECTED]> Acked-by: David Gibson <[EMAIL PROTECTED]> -- David Gibs

Re: [PATCH 01/28] CPM: Change from fsl, brg-frequency to brg/clock-frequency

2007-09-17 Thread David Gibson
On Mon, Sep 17, 2007 at 11:57:28AM -0500, Scott Wood wrote: > As suggested by David Gibson, now that we have a separate node > for the baud rate generators, it's better to use the standard > clock-frequency property than a cpm-node-level fsl,brg-frequency > property. > > This patch updates existin

Re: [PATCH 02/28] Introduce new CPM device bindings.

2007-09-17 Thread David Gibson
On Mon, Sep 17, 2007 at 11:57:30AM -0500, Scott Wood wrote: > This introduces a new device binding for the CPM and other devices on > these boards. Some of the changes include: > > 1. Proper namespace scoping for Freescale compatibles and properties. > > 2. Use compatible rather than things like