[PATCH 1/3] add default device trees for MPC837x MDS board

2008-01-07 Thread Li Yang
Signed-off-by: Li Yang [EMAIL PROTECTED] --- address comments and use new dts spec. arch/powerpc/boot/dts/mpc8377_mds.dts | 277 +++ arch/powerpc/boot/dts/mpc8378_mds.dts | 263 + arch/powerpc/boot/dts/mpc8379_mds.dts | 291

[PATCH 2/3] add MPC837x USB platform support

2008-01-07 Thread Li Yang
Add chip specific and board specific initialization for MPC837x USB. Signed-off-by: Li Yang [EMAIL PROTECTED] --- arch/powerpc/platforms/83xx/mpc837x_mds.c | 48 + arch/powerpc/platforms/83xx/mpc83xx.h |3 ++ arch/powerpc/platforms/83xx/usb.c | 39

Re: [PATCh v3] powerpc: add hugepagesz boot-time parameter

2008-01-07 Thread Mel Gorman
On (04/01/08 00:34), Arnd Bergmann didst pronounce: On Thursday 03 January 2008, Jon Tollefson wrote: Paul, please include this in 2.6.25 if there are no objections. No objections to this version from me, just questions. This patch adds the hugepagesz boot-time parameter for ppc64.  It

Re: [PATCh v3] powerpc: add hugepagesz boot-time parameter

2008-01-07 Thread Arnd Bergmann
On Monday 07 January 2008, Mel Gorman wrote: We started discussing this in v1, but the discussion got sidetracked: Is there a technical reason why you don't also allow 1M pages, which may be useful in certain scenarios? I cannot see why not although the ideal would be that the

Re: [alsa-devel] [PATCH] ASoC drivers for the Freescale MPC8610 SoC

2008-01-07 Thread Mark Brown
On Fri, Jan 04, 2008 at 08:43:17PM -0600, Timur Tabi wrote: Mark Brown wrote: In other words, ... clock1 = 0, bb8000 clock2 = 1, 653230 clock23 = 0, ab2372 Yes, something like that would cover it. I'm not sure what is idiomatic for the device tree. and of course the ordering matters.

Re: [alsa-devel] [PATCH] ASoC drivers for the Freescale MPC8610 SoC

2008-01-07 Thread Mark Brown
On Sun, Jan 06, 2008 at 11:46:37AM +1100, David Gibson wrote: Ok, but couldn't you strucutre your I2S or fabric driver so that it only becomes fully operational once the codec driver has registered with it? That's what ASoC v2 is doing, more or less (the core brings things on line rather than

[PATCH 0/7] Powerpc support for SBC8560 board

2008-01-07 Thread Paul Gortmaker
This is a respin of the sbc8560 patches, incorporating the feedback and suggested changes from everyone. Changes include: -coding style and missing of_put (Stephen Rothwell) -minor dtc cleanups for gianfar, mdio, mpic etc. (David Gibson / Kumar Gala) -use for_each macros in legacy_serial to

[PATCH 1/7] powerpc: use for_each in legacy_serial

2008-01-07 Thread Paul Gortmaker
Use for_each to iterate over device tree nodes in legacy_serial. Signed-off-by: Paul Gortmaker [EMAIL PROTECTED] --- arch/powerpc/kernel/legacy_serial.c | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/kernel/legacy_serial.c

[PATCH 3/7] sbc8560: add support for Wind River SBC8560 in arch/powerpc

2008-01-07 Thread Paul Gortmaker
This adds support for the Wind River SBC8560 board, implemented as powerpc. It closely follows the implementation of the MPC8560ADS. Signed-off-by: Paul Gortmaker [EMAIL PROTECTED] --- arch/powerpc/platforms/85xx/Kconfig | 11 +- arch/powerpc/platforms/85xx/Makefile |1 +

[PATCH 2/7] powerpc: allow localbus compatible serial ports for console device

2008-01-07 Thread Paul Gortmaker
Add to legacy_serial the ability to use any ns16550 compatible UART with a parent that is compatible with localbus as the console device. Signed-off-by: Paul Gortmaker [EMAIL PROTECTED] --- arch/powerpc/kernel/legacy_serial.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-)

[PATCH 4/7] sbc8560: Add device tree source for Wind River SBC8560 board

2008-01-07 Thread Paul Gortmaker
This adds the device tree source for the Wind River SBC8560 board. The biggest difference between this and the MPC8560ADS reference platform dts is the use of an external 16550 compatible UART instead of the CPM2. Signed-off-by: Paul Gortmaker [EMAIL PROTECTED] ---

[PATCH 6/7] CPM2: Make support for the CPM2 optional on 8560 based boards

2008-01-07 Thread Paul Gortmaker
Currently there is no way to disable the CPM2 support. Some boards, like the SBC8560 have their own external UART and don't have any direct dependencies on the CPM for a serial console or anything else. Signed-off-by: Paul Gortmaker [EMAIL PROTECTED] --- arch/powerpc/platforms/85xx/Kconfig |

Re: [PATCH 2/7] powerpc: allow localbus compatible serial ports for console device

2008-01-07 Thread Arnd Bergmann
On Monday 07 January 2008, Paul Gortmaker wrote: +   /* Next, fill our array with any localbus serial ports */ +   for_each_compatible_node(np, serial, ns16550) { +   struct device_node *lbs = of_get_parent(np); +   if (lbs of_device_is_compatible(lbs,

[PATCH 7/7] sbc8560: Add default .config file for Wind River SBC8560

2008-01-07 Thread Paul Gortmaker
This is a suitable .config file for building the WRS SBC8560 kernel to be used for NFS root via one of the TSEC interfaces and with serial console via the 16550 compatible UART on the board. Signed-off-by: Paul Gortmaker [EMAIL PROTECTED] --- arch/powerpc/configs/sbc8560_defconfig | 765

Re: [PATCH 2/3] Handle absolute pathnames correctly in dtc_open_file.

2008-01-07 Thread Jon Loeliger
So, like, the other day Scott Wood mumbled: Also, free file-dir when freeing file. Signed-off-by: Scott Wood [EMAIL PROTECTED] Applied. Thanks. jdl ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org

Re: [PATCH 3/3] Remove \n from yyerror() call.

2008-01-07 Thread Jon Loeliger
So, like, the other day Scott Wood mumbled: The \n is provided by yyerror(). Signed-off-by: Scott Wood [EMAIL PROTECTED] Applied. Thanks, jdl ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: [PATCH 1/3] Add support for binary includes.

2008-01-07 Thread Jon Loeliger
So, like, the other day David Gibson mumbled: Hrm. Can we leave this one until after 1.1? Since it adds new syntax, I think it would be worth cogitating a bit longer. Double hrm. Scott, can you remind us why this feature was requested off the U-Boot list, please? I'm trying to decide

Re: [PATCH 2/3] Handle absolute pathnames correctly in dtc_open_file.

2008-01-07 Thread Jon Loeliger
So, like, the other day Scott Wood mumbled: On Sun, Jan 06, 2008 at 02:37:16PM +1100, David Gibson wrote: out: + free((void *)file-dir); That cast shouldn't be there. It generates a constness warning otherwise. I was on the fence over whether to just remove the constness (even

Re: [PATCH 2/7] powerpc: allow localbus compatible serial ports for console device

2008-01-07 Thread Paul Gortmaker
Arnd Bergmann wrote: On Monday 07 January 2008, Paul Gortmaker wrote: + /* Next, fill our array with any localbus serial ports */ + for_each_compatible_node(np, serial, ns16550) { + struct device_node *lbs = of_get_parent(np); + if (lbs

Re: [alsa-devel] [PATCH] ASoC drivers for the Freescale MPC8610 SoC

2008-01-07 Thread Timur Tabi
David Gibson wrote: Ok, but couldn't you strucutre your I2S or fabric driver so that it only becomes fully operational once the codec driver has registered with it? Not in ASoC V1. You have to understand, ASoC V1 was designed without any consideration for runtime-bindings and other OF

Re: [PATCH 2/7] powerpc: allow localbus compatible serial ports for console device

2008-01-07 Thread Arnd Bergmann
On Monday 07 January 2008, Paul Gortmaker wrote: I'd thought about doing that, but there are slight differences in each test.  To remain 100% faithful to the original implementation you'd have to have a table or similar that had these various fields and loop over that -- something like:

Re: [PATCH 1/3] Add support for binary includes.

2008-01-07 Thread Scott Wood
On Mon, Jan 07, 2008 at 09:24:32AM -0600, Jon Loeliger wrote: So, like, the other day David Gibson mumbled: Hrm. Can we leave this one until after 1.1? Since it adds new syntax, I think it would be worth cogitating a bit longer. Double hrm. Scott, can you remind us why this

[RFC PATCH 0/3]: Add StorCenter port to arch/powerpc

2008-01-07 Thread Jon Loeliger
Guys, I have the bulk of a port for the iomega StorCenter that Andy and I have been working on. We'd like your feedback! Specifically, it's not quite working yet, and for lack of actually getting serial output, we're having some difficulty still. I post it here in a desperate attempt to let

[RFC PATCH 1/3] Add StorCenter DTS first draft.

2008-01-07 Thread Jon Loeliger
Based on the Kurobox DTS files. Signed-off-by: Andy Wilcox [EMAIL PROTECTED] Signed-off-by: Jon Loeliger [EMAIL PROTECTED] --- Ignore the flash bits. They are from the previous World View and need to be updated still. arch/powerpc/boot/dts/storcenter.dts | 159

[RFC PATCH 2/3] Add initial iomega StorCenter board port.

2008-01-07 Thread Jon Loeliger
Use cuImage bootwrapper until U-Boot port is completed. Derived heavily from Linkstation port. Signed-off-by: Andy Wilcox [EMAIL PROTECTED] Signed-off-by: Jon Loeliger [EMAIL PROTECTED] --- Nope, I have NOT verified that the bd_t file that is used here byte-identical to U-Boot's layout yet. [

[RFC PATCH 3/3] Add initial storcenter config file.

2008-01-07 Thread Jon Loeliger
Signed-off-by: Andy Wilcox [EMAIL PROTECTED] Signed-off-by: Jon Loeliger [EMAIL PROTECTED] --- This is known to have just a ton of crap in the config still. Not to worry. It'll be trimmed down some later... arch/powerpc/configs/storcenter_defconfig | 1538 + 1

[PATCH] Use linux/of_{platform, device}.h and not asm/... variants.

2008-01-07 Thread Jon Loeliger
From: Jon Loeliger [EMAIL PROTECTED] Signed-off-by: Jon Loeliger [EMAIL PROTECTED] --- Paul, Continue to fight the Good Fight by removing old include file references that managed to creep in recently. These are the last few in arch/powerpc directly. If you could pick this up for .25, that be

Re: [alsa-devel] [PATCH] ASoC drivers for the Freescale MPC8610 SoC

2008-01-07 Thread Mark Brown
On Mon, Jan 07, 2008 at 09:52:03AM -0600, Timur Tabi wrote: David Gibson wrote: Ok, but couldn't you strucutre your I2S or fabric driver so that it only becomes fully operational once the codec driver has registered with it? Not in ASoC V1. You have to understand, ASoC V1 was designed

[PATCH] [POWERPC] mpc5200: eliminate mpc52xx_*_map_*() functions.

2008-01-07 Thread Grant Likely
From: Grant Likely [EMAIL PROTECTED] mpc5200 platform code defines a bunch of map functions which duplicate the functionality of of_iomap(). Remove them and use of_iomap() instead. Signed-off-by: Grant Likely [EMAIL PROTECTED] --- If there are no objections to this one, I'll be putting it in

[RFC] Add of_find_matching_node() helper function

2008-01-07 Thread Grant Likely
From: Grant Likely [EMAIL PROTECTED] Similar to of_find_compatible_node(), of_find_matching_node() and for_each_matching_node() allow you to iterate over the device tree looking for specific nodes except that it accepts a of_device_id table instead of strings. This patch also moves

Re: [alsa-devel] [PATCH] ASoC drivers for the Freescale MPC8610 SoC

2008-01-07 Thread Timur Tabi
Liam Girdwood wrote: On Mon, 2008-01-07 at 09:52 -0600, Timur Tabi wrote: So all I'm trying to do now is get my driver, with warts and all, into the tree so that I can focus with Liam et al to get a real ASoC V2 up and running. I'll commit the MPC8610 into the ASoC (v1) dev tree soon

[PATCH v2] [POWERPC] Update MPC8610 HPCD to support audio drivers

2008-01-07 Thread Timur Tabi
Update the MPC8610 HPCD files to support the audio driver. Update booting-without-of.txt with information on the SSI device. Signed-off-by: Timur Tabi [EMAIL PROTECTED] --- Updated based on comments from mailing lists. Split the patch into two parts. This patch applies on top of

[RFC 0/2] mpc5200: eliminate direct manipulation of shared registers from SPI driver

2008-01-07 Thread Grant Likely
The mpc5200 PSC SPI driver driver directly manipulates the port_config and the CDM registers on the mpc5200 which it should not do. port_config should only be manipulated from within the board specific platform code and the CDM registers are shared between multiple devices. This patch eliminates

[RFC 1/2] mpc5200: Add common clock setting routine mpc52xx_set_psc_clkdiv()

2008-01-07 Thread Grant Likely
From: Grant Likely [EMAIL PROTECTED] PSC drivers should not access the CDM registers directly. Instead provide a common routine for setting the PSC clock parameters with the required locking. Signed-off-by: Grant Likely [EMAIL PROTECTED] --- arch/powerpc/platforms/52xx/efika.c |3

[RFC 2/2] mpc52xx_psc_spi device driver must not touch port_config and cdm

2008-01-07 Thread Grant Likely
From: Grant Likely [EMAIL PROTECTED] It is dangerous for an mpc52xx device driver to modify the port_config register. If the driver is probed incorrectly, it will change the pin IO configuration in ways which may not be compatible with the board. port_config should be set up by the bootloader,

Re: [alsa-devel] [PATCH] ASoC drivers for the Freescale MPC8610 SoC

2008-01-07 Thread Liam Girdwood
On Mon, 2008-01-07 at 09:52 -0600, Timur Tabi wrote: So all I'm trying to do now is get my driver, with warts and all, into the tree so that I can focus with Liam et al to get a real ASoC V2 up and running. I'll commit the MPC8610 into the ASoC (v1) dev tree soon (hopefully tonight).

RE: [RFC] Add of_find_matching_node() helper function

2008-01-07 Thread Stephen Neuendorffer
I wanted such function too, but stopped short of writing it because of_match_node was in the wrong place. Steve -Original Message- From: [EMAIL PROTECTED] [mailto:linuxppc-dev- [EMAIL PROTECTED] On Behalf Of Grant Likely Sent: Monday, January 07, 2008 10:16 AM To: [EMAIL PROTECTED];

Re: [RFC PATCH 1/3] Add StorCenter DTS first draft.

2008-01-07 Thread Grant Likely
On 1/7/08, Jon Loeliger [EMAIL PROTECTED] wrote: Based on the Kurobox DTS files. Signed-off-by: Andy Wilcox [EMAIL PROTECTED] Signed-off-by: Jon Loeliger [EMAIL PROTECTED] --- Ignore the flash bits. They are from the previous World View and need to be updated still.

Re: [RFC PATCH 2/3] Add initial iomega StorCenter board port.

2008-01-07 Thread Grant Likely
On 1/7/08, Jon Loeliger [EMAIL PROTECTED] wrote: Use cuImage bootwrapper until U-Boot port is completed. Derived heavily from Linkstation port. Signed-off-by: Andy Wilcox [EMAIL PROTECTED] Signed-off-by: Jon Loeliger [EMAIL PROTECTED] --- diff --git

Re: [RFC PATCH 0/3]: Add StorCenter port to arch/powerpc

2008-01-07 Thread Grant Likely
On 1/7/08, Jon Loeliger [EMAIL PROTECTED] wrote: Specifically, it's not quite working yet, and for lack of actually getting serial output, we're having some difficulty still. I post it here in a desperate attempt to let some eagle-eyed person point out my obvious D'oh problem. Can you access

Re: [RFC PATCH 1/3] Add StorCenter DTS first draft.

2008-01-07 Thread Jon Loeliger
So, like, the other day Grant Likely mumbled: + + ranges = 8000 8000 7000/* pci mem space */ + fdf0 fdf0 0010/* EUMB */ + fe00 fe00 00c0/* pci i/o space */ +

Re: [RFC PATCH 2/3] Add initial iomega StorCenter board port.

2008-01-07 Thread Jon Loeliger
So, like, the other day Grant Likely mumbled: Curious; why in platforms/embedded6xx vs platforms/82xx? 82xx is nominally the _other_ 82xx family. :-) This is just more historical precedent, and the fact that it is similar to the linkstation there. obj-$(CONFIG_MPC7448HPC2) +=

Re: [RFC PATCH 0/3]: Add StorCenter port to arch/powerpc

2008-01-07 Thread Jon Loeliger
So, like, the other day Grant Likely mumbled: On 1/7/08, Jon Loeliger [EMAIL PROTECTED] wrote: Specifically, it's not quite working yet, and for lack of actually getting serial output, we're having some difficulty still. I post it here in a desperate attempt to let some eagle-eyed person

[DTC PATCH 1/2] Convert malloc() uses to xmalloc().

2008-01-07 Thread Scott Wood
Signed-off-by: Scott Wood [EMAIL PROTECTED] --- dtc-lexer.l |6 +- srcpos.c| 12 +++- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/dtc-lexer.l b/dtc-lexer.l index bfb996e..f2836a8 100644 --- a/dtc-lexer.l +++ b/dtc-lexer.l @@ -273,11 +273,7 @@ int

[DTC PATCH 2/2] Preserve scanner state when /include/ing.

2008-01-07 Thread Scott Wood
This allows /include/s to work when in non-default states, such as PROPNODECHAR. We may want to use state stacks to get rid of BEGIN_DEFAULT() altogether... Signed-off-by: Scott Wood [EMAIL PROTECTED] --- dtc-lexer.l |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git

Re: [RFC PATCH 2/3] Add initial iomega StorCenter board port.

2008-01-07 Thread Scott Wood
Jon Loeliger wrote: Use cuImage bootwrapper until U-Boot port is completed. Derived heavily from Linkstation port. Signed-off-by: Andy Wilcox [EMAIL PROTECTED] Signed-off-by: Jon Loeliger [EMAIL PROTECTED] --- Nope, I have NOT verified that the bd_t file that is used here byte-identical

Re: [RFC PATCH 2/3] Add initial iomega StorCenter board port.

2008-01-07 Thread Scott Wood
Jon Loeliger wrote: Can we take out the dependencies and the default y, and just select them in the individual board configs? Yeah. That and, shouldn't those choices be mutually exclusive in a choice arrangement instead too? No, choice sucks for multiplatform. -Scott

[PATCH][POWERPC] Workaround for iommu page alignment

2008-01-07 Thread Benjamin Herrenschmidt
Our iommu page size is currently always 4K. That means with our current code, drivers may do a dma_map_sg() of a 64K page and obtain a dma_addr_t that is only 4K aligned. This works fine in most cases except some infiniband HW it seems, where they tell the HW about the page size and it ignores

Re: [PATCH][POWERPC] Workaround for iommu page alignment

2008-01-07 Thread Olof Johansson
On Tue, Jan 08, 2008 at 08:45:59AM +1100, Benjamin Herrenschmidt wrote: Our iommu page size is currently always 4K. That means with our current code, drivers may do a dma_map_sg() of a 64K page and obtain a dma_addr_t that is only 4K aligned. This works fine in most cases except some

[PATCH v6] qe: add ability to upload QE firmware

2008-01-07 Thread Timur Tabi
Define the layout of a binary blob that contains a QE firmware and instructions on how to upload it. Add function qe_upload_firmware() to parse the blob and perform the actual upload. Fully define 'struct rsp' in immap_qe.h to include the actual RISC Special Registers. Added description of a

Re: [PATCH 1/3] sbc8548: Add basic support for Wind River SBC8548 as powerpc

2008-01-07 Thread Paul Gortmaker
Kumar Gala wrote: On Dec 21, 2007, at 12:43 AM, Paul Gortmaker wrote: This adds the basic support for the Wind River SBC8548 board, implemented as powerpc. It closely follows the implementation of the MPC8548CDS. [...] +#ifdef CONFIG_PCI +static int sbc8548_exclude_device(struct

[PATCH] sbc85xx: remove PCI exclude device for sbc8548/sbc8560

2008-01-07 Thread Paul Gortmaker
The PCI exclude device for the sbc85xx boards was only filtering out the PHB and nothing else. This functionality is no longer required at a board specific level -- it is handled as a more global quirk now. Signed-off-by: Paul Gortmaker [EMAIL PROTECTED] ---

Re: [PATCH][POWERPC] Workaround for iommu page alignment

2008-01-07 Thread Michael Ellerman
On Tue, 2008-01-08 at 08:45 +1100, Benjamin Herrenschmidt wrote: Our iommu page size is currently always 4K. That means with our current code, drivers may do a dma_map_sg() of a 64K page and obtain a dma_addr_t that is only 4K aligned. This works fine in most cases except some infiniband HW

Re: [PATCH 2/3] add MPC837x USB platform support

2008-01-07 Thread Stephen Rothwell
Hi, Just a couple of comments. On Mon, 7 Jan 2008 20:03:19 +0800 Li Yang [EMAIL PROTECTED] wrote: +static int mpc837xmds_usb_cfg(void) +{ + np = of_find_node_by_name(NULL, usb); + phy_type = of_get_property(np, phy_type, NULL); No check for np being NULL + if (phy_type

Re: [PATCH 3/3] USB device tree cleanups

2008-01-07 Thread Stephen Rothwell
On Mon, 7 Jan 2008 20:03:20 +0800 Li Yang [EMAIL PROTECTED] wrote: +++ b/arch/powerpc/sysdev/fsl_soc.c @@ -533,9 +533,7 @@ static int __init fsl_usb_of_init(void) *usb_dev_dr_client = NULL; int ret; - for (np = NULL, i = 0; - (np =

Re: [PATCH][POWERPC] Workaround for iommu page alignment

2008-01-07 Thread Benjamin Herrenschmidt
I don't see in the code where you implement the size PAGE_SIZE condition. But I only just got back from holidays .. :) Indeed ... a quilt ref was missing :-( New patch coming ... Ben. ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org

[PATCH][POWERPC] Workaround for iommu page alignment (#2)

2008-01-07 Thread Benjamin Herrenschmidt
powerpc: Workaround for iommu page alignment Our iommu page size is currently always 4K. That means with our current code, drivers may do a dma_map_sg() of a 64K page and obtain a dma_addr_t that is only 4K aligned. This works fine in most cases except some infiniband HW it seems, where they

[PATCH v3] ucc_uart: add support for Freescale QUICCEngine UART

2008-01-07 Thread Timur Tabi
Add support for UART serial ports using a Freescale QUICC Engine (found on some MPC83xx and MPC85xx SOCs). Updated booting-without-of.txt to define new properties for a QE UART node, and a new node definition that describes uploaded QE firmware. Because of a silicon bug in some QE-enabled SOCs

[PATCH 0/8] pseries: phyp dump: hypervisor-assisted dump

2008-01-07 Thread Manish Ahuja
The following series of patches implement a basic framework for hypervisor-assisted dump. The very first patch provides documentation explaining what this is :-) . Yes, its supposed to be an improvement over kdump. The patches mostly work; a list of open issues / todo list is included in the

[PATCH 1/8] pseries: phyp dump: Docmentation

2008-01-07 Thread Manish Ahuja
Basic documentation for hypervisor-assisted dump. Signed-off-by: Linas Vepstas [EMAIL PROTECTED] Signed-off-by: Manish Ahuja [EMAIL PROTECTED] Documentation/powerpc/phyp-assisted-dump.txt | 129 +++ 1 file changed, 129 insertions(+) Index:

[PATCH 2/8] pseries: phyp dump: config file

2008-01-07 Thread Manish Ahuja
Add hypervisor-assisted dump to kernel config Signed-off-by: Linas Vepstas [EMAIL PROTECTED] - arch/powerpc/Kconfig | 11 +++ 1 file changed, 11 insertions(+) Index: linux-2.6.24-rc2-git4/arch/powerpc/Kconfig ===

[PATCH 3/8] pseries: phyp dump: reserve-release proof-of-concept

2008-01-07 Thread Manish Ahuja
Initial patch for reserving memory in early boot, and freeing it later. If the previous boot had ended with a crash, the reserved memory would contain a copy of the crashed kernel data. Signed-off-by: Manish Ahuja [EMAIL PROTECTED] Signed-off-by: Linas Vepstas [EMAIL PROTECTED]

[PATCH 4/8] pseries: phyp dump: use sysfs to release reserved mem

2008-01-07 Thread Manish Ahuja
Check to see if there actually is data from a previously crashed kernel waiting. If so, Allow user-sapce tools to grab the data (by reading /proc/kcore). When user-space finishes dumping a section, it must release that memory by writing to sysfs. For example, echo 0x4000 0x1000

[PATCH 3/8] pseries: phyp dump: reserve-release proof-of-concept

2008-01-07 Thread Manish Ahuja
Initial patch for reserving memory in early boot, and freeing it later. If the previous boot had ended with a crash, the reserved memory would contain a copy of the crashed kernel data. Signed-off-by: Manish Ahuja [EMAIL PROTECTED] Signed-off-by: Linas Vepstas [EMAIL PROTECTED]

Re: [PATCH 3/8] pseries: phyp dump: reserve-release proof-of-concept

2008-01-07 Thread Arnd Bergmann
On Tuesday 08 January 2008, Manish Ahuja wrote: Initial patch for reserving memory in early boot, and freeing it later. If the previous boot had ended with a crash, the reserved memory would contain a copy of the crashed kernel data. Signed-off-by: Manish Ahuja [EMAIL PROTECTED]

[PATCH 5/8] pseries: phyp dump: register dump area.

2008-01-07 Thread Manish Ahuja
Set up the actual dump header, register it with the hypervisor. Signed-off-by: Manish Ahuja [EMAIL PROTECTED] Signed-off-by: Linas Vepstas [EMAIL PROTECTED] -- arch/powerpc/platforms/pseries/phyp_dump.c | 169 +++-- 1 file changed, 163 insertions(+), 6

Re: [PATCH 3/7] sbc8560: add support for Wind River SBC8560 in arch/powerpc

2008-01-07 Thread Stephen Rothwell
Hi Paul, On Mon, 7 Jan 2008 09:25:28 -0500 Paul Gortmaker [EMAIL PROTECTED] wrote: +++ b/arch/powerpc/platforms/85xx/sbc8560.c +static void __init sbc8560_pic_init(void) +{ +#ifdef CONFIG_CPM2 + /* Setup CPM2 PIC */ + np = of_find_compatible_node(NULL, NULL, fsl,cpm2-pic); +

[PATCH 6/8] pseries: phyp dump: debugging print routines.

2008-01-07 Thread Manish Ahuja
Provide some basic debugging support. Signed-off-by: Manish Ahuja [EMAIL PROTECTED] Signed-off-by: Linas Vepsts [EMAIL PROTECTED] - arch/powerpc/platforms/pseries/phyp_dump.c | 53 - 1 file changed, 52 insertions(+), 1 deletion(-) Index:

Re: [PATCH] Use linux/of_{platform, device}.h and not asm/... variants.

2008-01-07 Thread Stephen Rothwell
Hi Jon, On Mon, 07 Jan 2008 12:07:15 -0600 Jon Loeliger [EMAIL PROTECTED] wrote: From: Jon Loeliger [EMAIL PROTECTED] Signed-off-by: Jon Loeliger [EMAIL PROTECTED] --- Paul, Continue to fight the Good Fight by removing old include file references that managed to creep in recently.

[PATCH 8/8] pseries: phyp dump: Tracking memory range freed.

2008-01-07 Thread Manish Ahuja
This patch tracks the size freed. For now it does a simple rudimentary calculation of the ranges freed. The idea is to keep it simple at the external shell script level and send in large chunks for now. Signed-off-by: Manish Ahuja [EMAIL PROTECTED] - ---

Re: [RFC] Add of_find_matching_node() helper function

2008-01-07 Thread Stephen Rothwell
Hi Grant, On Mon, 07 Jan 2008 11:15:56 -0700 Grant Likely [EMAIL PROTECTED] wrote: +++ b/include/linux/of.h @@ -60,5 +66,7 @@ extern const void *of_get_property(const struct device_node *node, int *lenp); extern int of_n_addr_cells(struct device_node *np);

Re: [PATCH 3/8] pseries: phyp dump: reserve-release proof-of-concept

2008-01-07 Thread Manish Ahuja
Arnd, Sorry this patch ended up out of sequence. I reposted it properly again in the other thread. We did talk about using gmail address, but Linas was more comfortable using this as this is where he was, when we did this. Hence the use of Austin address with gmail being on the cc list. I am

Re: [PATCH 6/8] pseries: phyp dump: debugging print routines.

2008-01-07 Thread Arnd Bergmann
On Tuesday 08 January 2008, Manish Ahuja wrote: +#ifdef DEBUG +static void print_dump_header(const struct phyp_dump_header *ph) +{ +   printk(KERN_INFO dump header:\n); ... +   printk(KERN_INFO SRSD length_copied =%lx\n,ph-kernel_data.length_copied); +} +#endif + If you move

Re: [PATCH 3/8] pseries: phyp dump: reserve-release proof-of-concept

2008-01-07 Thread Linas Vepstas
On 07/01/2008, Arnd Bergmann [EMAIL PROTECTED] wrote: On Tuesday 08 January 2008, Manish Ahuja wrote: Initial patch for reserving memory in early boot, and freeing it later. If the previous boot had ended with a crash, the reserved memory would contain a copy of the crashed kernel data.

Re: [PATCH v2] [POWERPC] Update MPC8610 HPCD to support audio drivers

2008-01-07 Thread Stephen Rothwell
Hi Timur, On Mon, 7 Jan 2008 12:56:43 -0600 Timur Tabi [EMAIL PROTECTED] wrote: +++ b/arch/powerpc/platforms/86xx/mpc8610_hpcd.c @@ -34,9 +34,27 @@ #include asm/mpic.h +#include linux/of_platform.h #include sysdev/fsl_pci.h #include sysdev/fsl_soc.h +static struct

Re: [RFC 1/2] mpc5200: Add common clock setting routine mpc52xx_set_psc_clkdiv()

2008-01-07 Thread Stephen Rothwell
On Mon, 07 Jan 2008 12:03:59 -0700 Grant Likely [EMAIL PROTECTED] wrote: +++ b/arch/powerpc/platforms/52xx/mpc52xx_common.c -static struct of_device_id __init mpc52xx_ids[] = { Why not just leave this here and mark in __initdata? +/** + * mpc52xx_declare_of_platform_devices: register

Re: [PATCH 3/8] pseries: phyp dump: reserve-release proof-of-concept

2008-01-07 Thread Michael Ellerman
On Mon, 2008-01-07 at 18:49 -0600, Linas Vepstas wrote: On 07/01/2008, Arnd Bergmann [EMAIL PROTECTED] wrote: On Tuesday 08 January 2008, Manish Ahuja wrote: Initial patch for reserving memory in early boot, and freeing it later. If the previous boot had ended with a crash, the reserved

Re: [PATCH] i2c-ibm_iic driver

2008-01-07 Thread Sean MacLennan
Arnd Bergmann wrote: If there is a good reason to specify fast or slow mode per board, you may want to make that a property in the device node. I tried to add fast_mode to the .dts file and failed. IIC1: [EMAIL PROTECTED] { device_type = i2c;

[PATCH] i2c-ibm_iic driver - new patch

2008-01-07 Thread Sean MacLennan
Second attempt. I think I have covered all the comments. It now should work with both ppc and powerpc architectures. You can now specify fast-mode in the .dts file. You can now specify an index for each entry. If you don't I try to chose reasonable defaults. i.e. I keep a static int that is

How complete should the DTS be?

2008-01-07 Thread Sean MacLennan
Just a general question about DTS completeness. Like all 440EP processors, the taco has two i2c buses. However, only one bus has anything connected to it. Should I show both bus entries in the DTS, or only the one that is used? I have generally only been showing the devices that are present.

Re: [PATCH] i2c-ibm_iic driver - new patch

2008-01-07 Thread Stephen Rothwell
Hi Sean, On Mon, 07 Jan 2008 21:03:12 -0500 Sean MacLennan [EMAIL PROTECTED] wrote: Please don't post patches as attachments. +static int __devinit iic_probe(struct of_device *ofdev, +const struct of_device_id *match) Indenting could

[PATCH/RFC] mpc83xx/85xx SysRQ/brk over 8250 console

2008-01-07 Thread Paul Gortmaker
It seems that if a break is rec'd on the serial console (as per SysRQ or similar) on some 83xx and 85xx processors, then a pulse of IRQs is generated which makes the use of SysRQ itself about 99% impossible. I experimented with trying several ACK strategies, but in the end the thing which worked

Re: [PATCH] add MPC837x MDS board default device tree

2008-01-07 Thread Kumar Gala
On Dec 14, 2007, at 2:12 AM, Kumar Gala wrote: On Dec 6, 2007, at 8:01 PM, David Gibson wrote: On Wed, Dec 05, 2007 at 06:37:53PM +0800, Li Yang wrote: Signed-off-by: Li Yang [EMAIL PROTECTED] --- Update SATA nodes; remove serdes nodes; add aliases and labels.

RE: [PATCH] add MPC837x MDS board default device tree

2008-01-07 Thread Li Yang
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kumar Gala Sent: Tuesday, January 08, 2008 1:46 PM To: Li Yang Cc: linuxppc-dev list; David Gibson Subject: Re: [PATCH] add MPC837x MDS board default device tree {snip} Any updates on new

Re: [PATCH] i2c-ibm_iic driver - new patch

2008-01-07 Thread Sean MacLennan
Stephen Rothwell wrote: Hi Sean, On Mon, 07 Jan 2008 21:03:12 -0500 Sean MacLennan [EMAIL PROTECTED] wrote: Please don't post patches as attachments. Ok. +static int __devinit iic_probe(struct of_device *ofdev, + const struct

Re: How complete should the DTS be?

2008-01-07 Thread Kumar Gala
On Jan 7, 2008, at 8:07 PM, Sean MacLennan wrote: Just a general question about DTS completeness. Like all 440EP processors, the taco has two i2c buses. However, only one bus has anything connected to it. Should I show both bus entries in the DTS, or only the one that is used? I have

Re: [PATCH/RFC] mpc83xx/85xx SysRQ/brk over 8250 console

2008-01-07 Thread Kumar Gala
On Jan 7, 2008, at 11:27 PM, Paul Gortmaker wrote: It seems that if a break is rec'd on the serial console (as per SysRQ or similar) on some 83xx and 85xx processors, then a pulse of IRQs is generated which makes the use of SysRQ itself about 99% impossible. I experimented with trying

Re: [PATCH] sbc85xx: remove PCI exclude device for sbc8548/sbc8560

2008-01-07 Thread Kumar Gala
On Jan 7, 2008, at 4:40 PM, Paul Gortmaker wrote: The PCI exclude device for the sbc85xx boards was only filtering out the PHB and nothing else. This functionality is no longer required at a board specific level -- it is handled as a more global quirk now. Signed-off-by: Paul Gortmaker

Re: [PATCH] Fix remainder calculating bug in single floating point division

2008-01-07 Thread Kumar Gala
On Jan 6, 2008, at 2:44 PM, Dan Malek wrote: On Jan 6, 2008, at 12:07 PM, Benjamin Herrenschmidt wrote: It's nice to see somebody digging in that scary math emu stuff. If you could also get rid of the warnings, it would be perfect :-) Yes, it is :-) I didn't think it would have a life

Re: [PATCH] Fix remainder calculating bug in single floating point division

2008-01-07 Thread Kumar Gala
On Jan 6, 2008, at 8:26 AM, Liu Yu wrote: This bug exists in the emulation of floating point division for powerpc. The original code cannot count the remainder correctly. I can provide a test case to trigger this bug. When use fdiv to count 1.1754941e-38f / 0.999f, the result is

Re: [PATCH] Fix carry bug in 128-bit unsigned integer adding

2008-01-07 Thread Kumar Gala
On Jan 6, 2008, at 8:26 AM, Liu Yu wrote: This bug exists in math emulation for powerpc. The macro define are mainly used by multiplication. When adding two unsigned operands ( r = x + y ), the carry bit can be counted by whether r is less than x. However, when adding three unsigned

Re: [PATCH] Hwmon for Taco

2008-01-07 Thread Sean MacLennan
Benjamin Herrenschmidt wrote: That should be in the device-tree... Cheers, Ben. Now in the device tree. The name of the file has changed. Cheers, Sean diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig index a0445be..1f89186 100644 --- a/drivers/hwmon/Kconfig +++

Re: [PATCH] i2c-ibm_iic driver - new patch

2008-01-07 Thread Stephen Rothwell
On Tue, 08 Jan 2008 00:56:27 -0500 Sean MacLennan [EMAIL PROTECTED] wrote: Stephen Rothwell wrote: On Mon, 07 Jan 2008 21:03:12 -0500 Sean MacLennan [EMAIL PROTECTED] wrote: Please don't post patches as attachments. Ok. Unfortunately, you are using thunderbird and so the patch is

Re: [PATCH] Hwmon for Taco

2008-01-07 Thread Grant Likely
On 1/7/08, Sean MacLennan [EMAIL PROTECTED] wrote: diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig index a0445be..1f89186 100644 --- a/drivers/hwmon/Kconfig +++ b/drivers/hwmon/Kconfig @@ -57,6 +57,16 @@ config SENSORS_ABITUGURU3 This driver can also be built as a module.

[PATCH 2/3 v2] add MPC837x USB platform support

2008-01-07 Thread Li Yang
Add chip specific and board specific initialization for MPC837x USB. Signed-off-by: Li Yang [EMAIL PROTECTED] --- arch/powerpc/platforms/83xx/mpc837x_mds.c | 51 + arch/powerpc/platforms/83xx/mpc83xx.h |3 ++ arch/powerpc/platforms/83xx/usb.c | 40

help

2008-01-07 Thread 张自强
Help -邮件原件- 发件人: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 代表 [EMAIL PROTECTED] 发送时间: 2008年1月8日 14:59 收件人: linuxppc-dev@ozlabs.org 主题: Linuxppc-dev Digest, Vol 41, Issue 56 Send Linuxppc-dev mailing list submissions to linuxppc-dev@ozlabs.org To subscribe or unsubscribe via

Re: [PATCH 3/4] mtd: Factor out OF partition support from the NOR driver.

2008-01-07 Thread Stefan Roese
On Thursday 13 December 2007, Scott Wood wrote: Signed-off-by: Scott Wood [EMAIL PROTECTED] Acked-by: Stefan Roese [EMAIL PROTECTED] Best regards, Stefan ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org

RE: [PATCH 1/3] add default device trees for MPC837x MDS board

2008-01-07 Thread Li Yang
-Original Message- From: Kumar Gala [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 08, 2008 3:37 PM To: Li Yang Cc: linuxppc-dev@ozlabs.org; [EMAIL PROTECTED] Subject: Re: [PATCH 1/3] add default device trees for MPC837x MDS board On Jan 7, 2008, at 6:03 AM, Li Yang wrote:

Re: [PATCH 2/4] nand base: Give drivers a chance to do late initialization.

2008-01-07 Thread David Woodhouse
On Thu, 2007-12-13 at 11:15 -0600, Scott Wood wrote: Some nand controllers, such as the Freescale enhanced local bus controller, need to do late initialization based on details of the chip that has been probed, such as chip size, large/small pages, etc. A late_init() callback method is added

Re: [PATCH 1/3] add default device trees for MPC837x MDS board

2008-01-07 Thread Kumar Gala
On Jan 7, 2008, at 6:03 AM, Li Yang wrote: Signed-off-by: Li Yang [EMAIL PROTECTED] --- address comments and use new dts spec. arch/powerpc/boot/dts/mpc8377_mds.dts | 277 +++ arch/powerpc/boot/dts/mpc8378_mds.dts | 263 +

  1   2   >