[PATCH] devres: support addresses greater than an unsigned long via dev_ioremap

2008-04-29 Thread Kumar Gala
Use a resource_size_t instead of unsigned long since some arch's are capable of having ioremap deal with addresses greater than the size of a unsigned long. Signed-off-by: Kumar Gala [EMAIL PROTECTED] --- include/linux/io.h |4 ++-- lib/devres.c |4 ++-- 2 files changed, 4

build failure on efika

2008-04-29 Thread Paul Mackerras
My test builds for efika currently fail with this message: FATAL: drivers/serial/mpc52xx_uart: struct of_device_id is not terminated with a NULL entry! make[2]: *** [__modpost] Error 1 make[1]: *** [modules] Error 2 make: *** [sub-make] Error 2 Could you do a little patch to add the NULL entry

Re: [PATCH] devres: support addresses greater than an unsigned long via dev_ioremap

2008-04-29 Thread Tejun Heo
Kumar Gala wrote: Use a resource_size_t instead of unsigned long since some arch's are capable of having ioremap deal with addresses greater than the size of a unsigned long. Signed-off-by: Kumar Gala [EMAIL PROTECTED] Acked-by: Tejun Heo [EMAIL PROTECTED] Thanks. -- tejun

Re: [PATCH] devres: support addresses greater than an unsigned long via dev_ioremap

2008-04-29 Thread Jeff Garzik
Tejun Heo wrote: Kumar Gala wrote: Use a resource_size_t instead of unsigned long since some arch's are capable of having ioremap deal with addresses greater than the size of a unsigned long. Signed-off-by: Kumar Gala [EMAIL PROTECTED] Acked-by: Tejun Heo [EMAIL PROTECTED] Fine with me,

[no subject]

2008-04-29 Thread Chen Gong
this patch only makes a few fixes for latest kernel git tree ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

[PATCH] Watchdog on MPC85xx SMP system

2008-04-29 Thread Chen Gong
On Book-E SMP systems each core has its own private watchdog. If only one watchdog is enabled, when the core that doesn't enable the watchdog is hung, system can't reset because no watchdog is running on it. That's bad. It means we must enable watchdogs on both cores. We can use

overloading existing PTRACE_GET_DEBUGREG/PTRACE_SET_DEBUGREG commands

2008-04-29 Thread Kumar Gala
It looks like when Anton added the PTRACE_GET_DEBUGREG/ PTRACE_SET_DEBUGREG he envisioned future chips having more than one IABR/DABR. I'm wondering what the feeling is about using the commands for handling some of the sub-arch variants we have: e300 (603 style machine) - adds IABR2,

Re: [PATCH 2/2] Raise the upper limit of NR_CPUS and move the pacas into the BSS.

2008-04-29 Thread Arnd Bergmann
On Thursday 24 April 2008, Tony Breeds wrote: This patch adds the required functionality to fill in all pacas at runtime. With NR_CPUS=1024 text    data     bss     dec     hex filename  137 1704032       0 1704169  1a00e9 arch/powerpc/kernel/paca.o :Before  121 1179744  524288 1704153  

[PATCH 0/2 v2] i2c: Add support for device alias names

2008-04-29 Thread Jean Delvare
Hi all, This is yesterday's patch set updated to apply cleanly (and hopefully work) on top of 2.6.25-git13. Basically the only change since yesterday is the sync with the rtc subsystem updates, which converted 3 drivers (rtc-x1205, rtc-pcf8563 and rtc-isl1208). The plan is to send this to Linus

[PATCH 1/2 v2] i2c: Add support for device alias names

2008-04-29 Thread Jean Delvare
Based on earlier work by Jon Smirl and Jochen Friedrich. This patch allows new-style i2c chip drivers to have alias names using the official kernel aliasing system and MODULE_DEVICE_TABLE(). At this point, the old i2c driver binding scheme (driver_name/type) is still supported. Signed-off-by:

[PATCH 2/2 v2] i2c: Convert most new-style drivers to use module aliasing

2008-04-29 Thread Jean Delvare
Based on earlier work by Jon Smirl and Jochen Friedrich. Update most new-style i2c drivers to use standard module aliasing instead of the old driver_name/type driver matching scheme. I've left the video drivers apart (except for SoC camera drivers) as they're a bit more diffcult to deal with,

[git pull] Please pull powerpc.git master branch

2008-04-29 Thread Paul Mackerras
Linus, Please do: git pull \ git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc.git master There are 14 commits there that Andrew Morton sent to me to merge, from Badari Pulavarty (memory hot-remove stuff) and Zhang Wei (RapidIO patches). Plus there are 5 other powerpc-related

Re: build failure on efika

2008-04-29 Thread Grant Likely
On Tue, Apr 29, 2008 at 12:27 AM, Paul Mackerras [EMAIL PROTECTED] wrote: My test builds for efika currently fail with this message: FATAL: drivers/serial/mpc52xx_uart: struct of_device_id is not terminated with a NULL entry! make[2]: *** [__modpost] Error 1 make[1]: *** [modules] Error

Re: [PATCH 1/2 v2] i2c: Add support for device alias names

2008-04-29 Thread Jon Smirl
On 4/29/08, Jean Delvare [EMAIL PROTECTED] wrote: Based on earlier work by Jon Smirl and Jochen Friedrich. +/* Looks like: i2c:S */ +static int do_i2c_entry(const char *filename, struct i2c_device_id *id, + char *alias) +{ + sprintf(alias, I2C_MODULE_PREFIX

[PATCH] [POWERPC] mpc5200: Fix unterminated of_device_id table

2008-04-29 Thread Grant Likely
From: Grant Likely [EMAIL PROTECTED] If CONFIG_PPC_MPC5121 is not set, then the of_device_id table for the mpc5200 serial driver will not get terminated with a NULL entry. Signed-off-by: Grant Likely [EMAIL PROTECTED] --- drivers/serial/mpc52xx_uart.c |2 +- 1 files changed, 1

Re: [PATCH 1/2 v2] i2c: Add support for device alias names

2008-04-29 Thread Jean Delvare
Hi Jon, On Tue, 29 Apr 2008 08:16:13 -0400, Jon Smirl wrote: On 4/29/08, Jean Delvare [EMAIL PROTECTED] wrote: Based on earlier work by Jon Smirl and Jochen Friedrich. +/* Looks like: i2c:S */ +static int do_i2c_entry(const char *filename, struct i2c_device_id *id, +

Please pull linux-2.6-mpc52xx.git

2008-04-29 Thread Grant Likely
The following changes since commit 6c39103ce5192bdb2195f3daab7323dfa44fb52e: Zhang Wei (1): [RAPIDIO] Change RapidIO doorbell source and target ID field to 16-bit are available in the git repository at: git://git.secretlab.ca/git/linux-2.6-mpc52xx.git for-2.6.26 Bartlomiej Sieka

Re: 2.6.25: pmac_newworld undefined

2008-04-29 Thread Adrian Bunk
On Mon, Apr 28, 2008 at 09:33:24PM +0200, Sam Ravnborg wrote: On Mon, Apr 28, 2008 at 02:20:44PM +1000, Tony Breeds wrote: On Sun, Apr 27, 2008 at 08:03:46PM +0200, Christian Kujau wrote: Hi, the build failure reported[0] by Kamalesh back in 01/2008 is still present in today's

[PATCH] [POWERPC] convert transfer_to_handler into a macro

2008-04-29 Thread Kumar Gala
We need to have unique transfer_to_handler paths for each exception level that is supported. We need to use the proper xSRR0/1 depending on which exception level the interrupt was from. The macro conversion lets up templatize this code path. Signed-off-by: Kumar Gala [EMAIL PROTECTED] ---

[PATCH] of/gpio: use dynamic base allocation

2008-04-29 Thread Anton Vorontsov
Since gpiolib-dynamic-gpio-number-allocation.patch -mm patch was recently merged into Linus' tree (commit 8d0aab2f16c4fa170f32e7a74a52cd0122bbafef), we can use dynamic GPIO base allocation now. This, in turn, removes number of gpios per chip constraint. Signed-off-by: Anton Vorontsov [EMAIL

Re: [PATCH] devres: support addresses greater than an unsigned long via dev_ioremap

2008-04-29 Thread Kumar Gala
On Apr 29, 2008, at 1:37 AM, Jeff Garzik wrote: Tejun Heo wrote: Kumar Gala wrote: Use a resource_size_t instead of unsigned long since some arch's are capable of having ioremap deal with addresses greater than the size of a unsigned long. Signed-off-by: Kumar Gala [EMAIL PROTECTED]

Re: Enabling 64 bit data type for dma_addr_t on non PPC64 architecture

2008-04-29 Thread Becky Bruce
On Apr 25, 2008, at 10:38 PM, Benjamin Herrenschmidt wrote: On Fri, 2008-04-25 at 19:52 -0700, Tushar Tyagi wrote: Hello, I'm working a new DMA hardware for PPC processors. The processor is a 32 bit architecture having 40 bit physical address space. So we need the 32 bit processor code base

Re: [git pull] Please pull powerpc.git master branch

2008-04-29 Thread Linus Torvalds
On Tue, 29 Apr 2008, Paul Mackerras wrote: git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc.git master Umm, where did the diffstat go? I really want to see it to compare against what I get. I checked the shortlog and everything matches, but please, keep the diffstat coming too.

Re: [PATCH] devres: support addresses greater than an unsigned long via dev_ioremap

2008-04-29 Thread Greg KH
On Tue, Apr 29, 2008 at 09:08:14AM -0500, Kumar Gala wrote: On Apr 29, 2008, at 1:37 AM, Jeff Garzik wrote: Tejun Heo wrote: Kumar Gala wrote: Use a resource_size_t instead of unsigned long since some arch's are capable of having ioremap deal with addresses greater than the size of a

[PATCH][RESEND] devres: support addresses greater than an unsigned long via dev_ioremap

2008-04-29 Thread Kumar Gala
Use a resource_size_t instead of unsigned long since some arch's are capable of having ioremap deal with addresses greater than the size of a unsigned long. Signed-off-by: Kumar Gala [EMAIL PROTECTED] --- For GregKH to actually get the patch. - k include/linux/io.h |4 ++-- lib/devres.c

[PATCH] IB/ehca: Allocate event queue size depending on max number of CQs and QPs

2008-04-29 Thread Stefan Roscher
Signed-off-by: Stefan Roscher stefan.roscher at de.ibm.com --- drivers/infiniband/hw/ehca/ehca_classes.h |5 drivers/infiniband/hw/ehca/ehca_cq.c | 10 drivers/infiniband/hw/ehca/ehca_main.c| 36 +++- drivers/infiniband/hw/ehca/ehca_qp.c

[PATCH 1/3] [NET] uli526x: initialize the hardware prior to requesting interrupts

2008-04-29 Thread Anton Vorontsov
The firmware on MPC8610HPCD boards enables ULI ethernet and leaves it in some funky state before booting Linux. For drivers, it's always good idea to (re)initialize the hardware prior to requesting interrupts. This patch fixes the following oops: Oops: Kernel access of bad area, sig: 11 [#1]

[PATCH 2/3] [NET] uli526x: fix endianness issues in the setup frame

2008-04-29 Thread Anton Vorontsov
This patch fixes uli526x driver's issues on a PowerPC boards: uli chip is unable to receive the packets. It appears that send_frame_filter prepares the setup frame in the endianness unsafe manner. On a big endian machines we should shift the address nibble by two bytes. Signed-off-by: Anton

[PATCH 3/3] [POWERPC] 86xx: mpc8610_hpcd: use ULI526X driver for on-board ethernet

2008-04-29 Thread Anton Vorontsov
As of current mainline tree, TULIP driver is unusable on MPC8610HPCD boards. There is a patch[1] floating around (and also included in the BSP), which tries to heal the situation, though the ethernet is still unusable. Practically it takes ages to mount NFS filesystem: VFS: Mounted root (nfs

Re: [PATCH] devres: support addresses greater than an unsigned long via dev_ioremap

2008-04-29 Thread Jon Loeliger
Kumar Gala wrote: Its a pretty trivial patch and would be nice to go into 2.6.26. I would also consider it a bug fix of shorts for any driver Looked like a bugfix of longs to me... :-) jdl ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org

[PATCH] [IDE] alim15x3: disable init_hwif_ali15x3 for PowerPC

2008-04-29 Thread Anton Vorontsov
We don't need init_hwif_ali15x3() on the PowerPC systems either. Before: ALI15X3: IDE controller (0x10b9:0x5229 rev 0xc8) at PCI slot 0001:03:1f.0 ALI15X3: 100% native mode on irq 19 ide0: BM-DMA at 0x1120-0x1127 ide1: BM-DMA at 0x1128-0x112f hda: SONY DVD RW AW-Q170A, ATAPI CD/DVD-ROM

[PATCH] [POWERPC] 86xx: mpc8610_hpcd: add support for PCI Express x8 slot

2008-04-29 Thread Anton Vorontsov
This patch adds pcie node which is resposible for PCI-E x8 slot functioning. Though, this was tested using only x1 SKY2 NIC. Signed-off-by: Anton Vorontsov [EMAIL PROTECTED] --- arch/powerpc/boot/dts/mpc8610_hpcd.dts | 21 + 1 files changed, 21 insertions(+), 0 deletions(-)

Re: [PATCH] IB/ehca: Allocate event queue size depending on max number of CQs and QPs

2008-04-29 Thread Roland Dreier
Signed-off-by: Stefan Roscher stefan.roscher at de.ibm.com Kind of an inadequate changelog ;) Is this a fix or an enhancement or what? +if (atomic_read(shca-num_cqs) = ehca_max_cq) { +if (atomic_read(shca-num_qps) = ehca_max_qp) { These are racy in the sense that multiple

EXT_IRQ0 @ MPC834x

2008-04-29 Thread Andre Schwarz
All, actually I'm having trouble getting the IRQ0 work on a MPC8343 with 2.6.25-rc8. There's an external PCI device connected to it Regarding to the manual IRQ0 is somewhat special and has Vector 48 assigned. Therefore my dts entry for this device looks like : interrupt-map = 0x5800 0 0

[PATCH] Fix a potential issue in mpc52xx uart driver

2008-04-29 Thread Andrew Liu
mpc52xx_uart_int and __uart_put_char both try to acquire the port-lock. Therefore the function sequence of: mpc52xx_uart_int-- ...--flush_to_ldisc--...--__uart_put_char can potentially trigger a deadlock. To avoid this deadlock a fix similar to that found in the 8250.c serial driver is applied.

cross tool netbsd 3.0 target

2008-04-29 Thread Joel Parker
With the demo-ppc405.sh I can create a cross compiler for gnu/linux does anyone know how to build one for netbsd 3.0. (ie. what to put in for the target in the .dat file) -- Joel Parker Be a better

Re: [PATCH 3/3] [POWERPC] 86xx: mpc8610_hpcd: use ULI526X driver for on-board ethernet

2008-04-29 Thread Kumar Gala
On Apr 29, 2008, at 10:53 AM, Anton Vorontsov wrote: floating around (and also included in the BSP), which tries to heal the situation, though the ethernet is still unusable. Practically it takes ages to mount NFS filesystem: VFS: Mounted root (nfs filesystem). Freeing unused kernel memory:

[REPOST][PATCH] IB/ehca: Allocate event queue size depending on max number of CQs and QPs

2008-04-29 Thread Stefan Roscher
If a lot of QPs fall into Error state at once and the EQ of the respective HCA is too small, it might overrun, causing the eHCA driver to stop processing completion events and call application software's completion handlers, effectively causing traffic to stop. Fix this by limiting available QPs

Re: [REPOST][PATCH] IB/ehca: Allocate event queue size depending on max number of CQs and QPs

2008-04-29 Thread Roland Dreier
thanks, makes sense, applied. fast turnaround too ;) ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: [PATCH] [POWERPC] convert transfer_to_handler into a macro

2008-04-29 Thread Scott Wood
On Tue, Apr 29, 2008 at 08:56:56AM -0500, Kumar Gala wrote: +#if defined(CONFIG_40x) || defined(CONFIG_BOOKE) +#ifdef CONFIG_SMP +#define SMP_ADJUST_GLOBAL_DBCR0 \ + rlwinm r9,r1,0,0,(31-THREAD_SHIFT);

Re: [PATCH] Add fast little-endian switch system call

2008-04-29 Thread Christoph Hellwig
On Tue, Apr 29, 2008 at 08:40:47PM +0200, Wolfgang Denk wrote: This probably depends a bit on the performance of the system in question. Did you measure it - for example - on a 50 MHz MPC850 ? You got a 64bit kernel to run on a MPC850? wow :) Not sure what the slowest supported 64bit cpu

[PATCH 0/6 v4] Few more patches for Kumar's powerpc.git

2008-04-29 Thread Anton Vorontsov
Hi Kumar, Here is the fourth version. Old one started to cause non trivial merge conflicts. Also, I re-exported the gtm_timer structure, so drivers could actually use its irq member. Thanks. -- Anton Vorontsov email: [EMAIL PROTECTED] irc://irc.freenode.net/bd2

[PATCH 1/6] [POWERPC] sysdev: implement FSL GTM support

2008-04-29 Thread Anton Vorontsov
GTM stands for General-purpose Timers Module and able to generate timer{1,2,3,4} interrupts. These timers are used by the drivers that need time precise interrupts (like for USB transactions scheduling for the Freescale USB Host controller as found in some QE and CPM chips), or these timers could

[PATCH 2/6] [POWERPC] QE: add support for QE USB clocks routing

2008-04-29 Thread Anton Vorontsov
This patch adds a function to the qe_lib to setup QE USB clocks routing. To setup clocks safely, cmxgcr register needs locking, so I just reused ucc_lock since it was used only to protect cmxgcr. The idea behind placing clocks routing functions into the qe_lib is that later we'll hopefully switch

[PATCH 3/6] [POWERPC] QE: prepare QE PIO code for GPIO LIB support

2008-04-29 Thread Anton Vorontsov
- split and export __par_io_config_pin() out of par_io_config_pin(), so we could use the prefixed version with GPIO LIB API; - rename struct port_regs to qe_pio_regs, and place it into qe.h; - rename #define NUM_OF_PINS to QE_PIO_PINS, and place it into qe.h. Signed-off-by: Anton Vorontsov

[PATCH 4/6] [POWERPC] QE: implement support for the GPIO LIB API

2008-04-29 Thread Anton Vorontsov
This is needed to access QE GPIOs via Linux GPIO API. Signed-off-by: Anton Vorontsov [EMAIL PROTECTED] --- Documentation/powerpc/booting-without-of.txt | 37 --- arch/powerpc/sysdev/qe_lib/Kconfig |9 ++ arch/powerpc/sysdev/qe_lib/Makefile |1 +

[PATCH 5/6] [POWERPC] 83xx: new board support: MPC8360E-RDK

2008-04-29 Thread Anton Vorontsov
This is patch adds board file, device tree, and defconfig for the new board, made by Freescale Semiconductor Inc. and Logic Product Development. Currently supported: 1. UEC{1,2,7,4}; 2. I2C; 3. SPI; 4. NS16550 serial; 5. PCI and miniPCI; 6. Intel NOR StrataFlash X16 64Mbit PC28F640P30T85; 7.

[PATCH 6/6] [POWERPC] booting-without-of: add FHCI USB, FSL MCU, FSL UPM and GPIO LEDs bindings

2008-04-29 Thread Anton Vorontsov
This patch adds few bindings for the new drivers to be submitted through appropriate maintainers. Signed-off-by: Anton Vorontsov [EMAIL PROTECTED] --- Documentation/powerpc/booting-without-of.txt | 125 ++ 1 files changed, 125 insertions(+), 0 deletions(-) diff --git

Re: SKB corruption on heavy traffic

2008-04-29 Thread Scott Wood
On Tue, Apr 29, 2008 at 07:39:07PM +0100, Franca, Jose (NSN - PT/Portugal - MiniMD) wrote: We are developing a MPC8247 based telecom board (512MB), using linux 2.4 with some proprietary changes on IP stack and we are facing some problems when we have heavy traffic on our Ethernet

Re: 2.6.25: pmac_newworld undefined

2008-04-29 Thread Sam Ravnborg
On Tue, Apr 29, 2008 at 04:35:14PM +0300, Adrian Bunk wrote: On Mon, Apr 28, 2008 at 09:33:24PM +0200, Sam Ravnborg wrote: On Mon, Apr 28, 2008 at 02:20:44PM +1000, Tony Breeds wrote: On Sun, Apr 27, 2008 at 08:03:46PM +0200, Christian Kujau wrote: Hi, the build failure

Re: [PATCH] [POWERPC] convert transfer_to_handler into a macro

2008-04-29 Thread Kumar Gala
On Apr 29, 2008, at 1:35 PM, Scott Wood wrote: On Tue, Apr 29, 2008 at 08:56:56AM -0500, Kumar Gala wrote: +#if defined(CONFIG_40x) || defined(CONFIG_BOOKE) +#ifdef CONFIG_SMP +#define SMP_ADJUST_GLOBAL_DBCR0 \ + rlwinm

Re: [PATCH] [POWERPC] convert transfer_to_handler into a macro

2008-04-29 Thread Scott Wood
On Tue, Apr 29, 2008 at 02:36:32PM -0500, Kumar Gala wrote: what's an assembler macro look like? .macro macroname arg1 arg2 do something with \arg1 do something with \arg2 .endm I don't believe we use them anywhere else. arch/powerpc/boot/ps3-hvcall.S uses them, as well as

Re: 2.6.25: pmac_newworld undefined

2008-04-29 Thread Adrian Bunk
On Tue, Apr 29, 2008 at 09:17:53PM +0200, Sam Ravnborg wrote: ... So something like: config PPC32_NVRAM bool depends on NVRAM obj-$(CONFIG_PPC32_NVRAM) += nvram.o obj-$(CONFIG_NVRAM) += nvram.o Or did you have another solution in mind? I start to understand the

Re: [PATCH 2/6] [POWERPC] QE: add support for QE USB clocks routing

2008-04-29 Thread Timur Tabi
Anton Vorontsov wrote: This patch adds a function to the qe_lib to setup QE USB clocks routing. To setup clocks safely, cmxgcr register needs locking, so I just reused ucc_lock since it was used only to protect cmxgcr. The idea behind placing clocks routing functions into the qe_lib is that

Re: [PATCH 3/6] [POWERPC] QE: prepare QE PIO code for GPIO LIB support

2008-04-29 Thread Timur Tabi
Anton Vorontsov wrote: - split and export __par_io_config_pin() out of par_io_config_pin(), so we could use the prefixed version with GPIO LIB API; - rename struct port_regs to qe_pio_regs, and place it into qe.h; - rename #define NUM_OF_PINS to QE_PIO_PINS, and place it into qe.h.

Re: [patch v11 1/4] USB: add Cypress c67x00 low level interface code

2008-04-29 Thread Grant Likely
On Sun, Apr 27, 2008 at 12:59 AM, Peter Korsgaard [EMAIL PROTECTED] wrote: This patch adds the low level support code for the Cypress c67x00 family of OTG controllers. The low level code is responsible for register access and implements the software protocol for communicating with the 16bit

Re: [patch v11 2/4] USB: add Cypress c67x00 OTG controller core driver

2008-04-29 Thread Grant Likely
On Sun, Apr 27, 2008 at 12:59 AM, Peter Korsgaard [EMAIL PROTECTED] wrote: This patch add the core driver for the c67x00 USB OTG controller. The core driver is responsible for the platform bus binding and creating either USB HCD or USB Gadget instances for each of the serial interface

[PATCH v3] sysdev,mv64x60: MV64x60 device bus

2008-04-29 Thread Remi Machet
Follow up of my email of 4/16/2008 titled MV64x60 device bus. For each mv64360 entry in the OpenFirmware database, add the registration of an of_bus to take care of devices connected to the MV64x60 asynchronous devices controller. Signed-off-by: Remi Machet ([EMAIL PROTECTED]) --- Use the

Re: [PATCH 4/6] [POWERPC] QE: implement support for the GPIO LIB API

2008-04-29 Thread Timur Tabi
Anton Vorontsov wrote: This is needed to access QE GPIOs via Linux GPIO API. Signed-off-by: Anton Vorontsov [EMAIL PROTECTED] --- Documentation/powerpc/booting-without-of.txt | 37 --- arch/powerpc/sysdev/qe_lib/Kconfig |9 ++ arch/powerpc/sysdev/qe_lib/Makefile

MPC5200b problem configuring PSC6 as a serial port

2008-04-29 Thread Nick
Hi Everyone, Has anyone setup and used the MPC5200b PSC6 port as a serial port? I am having trouble getting mine to work. I am using PSC1, 2 and 3 already, and they work fine. In my DTS file, I have PSC6 configured like this: [EMAIL PROTECTED] { // PSC6 device_type = serial;

Re: [PATCH v3] sysdev,mv64x60: MV64x60 device bus

2008-04-29 Thread Dale Farnsworth
On Tue, Apr 29, 2008 at 01:26:38PM -0700, Remi Machet wrote: Follow up of my email of 4/16/2008 titled MV64x60 device bus. For each mv64360 entry in the OpenFirmware database, add the registration of an of_bus to take care of devices connected to the MV64x60 asynchronous devices controller.

Re: [PATCH] Add fast little-endian switch system call

2008-04-29 Thread Paul Mackerras
Wolfgang Denk writes: This probably depends a bit on the performance of the system in question. Did you measure it - for example - on a 50 MHz MPC850 ? The patch only affects arch/powerpc/kernel/entry_64.S. So no, I didn't measure it on a 50MHz MPC850, or indeed any 32-bit system. :)

Re: [PATCH 4/6] [POWERPC] QE: implement support for the GPIO LIB API

2008-04-29 Thread Anton Vorontsov
On Tue, Apr 29, 2008 at 03:29:00PM -0500, Timur Tabi wrote: Anton Vorontsov wrote: This is needed to access QE GPIOs via Linux GPIO API. Signed-off-by: Anton Vorontsov [EMAIL PROTECTED] --- Documentation/powerpc/booting-without-of.txt | 37 ---

Re: [PATCH 4/6] [POWERPC] QE: implement support for the GPIO LIB API

2008-04-29 Thread Timur Tabi
Anton Vorontsov wrote: Well, I'm indeed removing [further] support for the par_io nodes, overwriting it with gpio nodes. That way we'll stop new use cases of these nodes. I have no problem with replacing par_io nodes with gpio nodes. Eventually I plan to adjust the existing code/device

Re: filenames with spaces in /sys?

2008-04-29 Thread Christian Kujau
On Mon, 28 Apr 2008, Scott Wood wrote: Wouldn't ../pmu-battery.0/power_supply/PMU_battery_0/power be feasible too? Feasible, yes, but uglier I did not want to argue about ugliness, as this is a matter of personal taste. If userspace tools make it awkward to deal with filenames with

[PATCH] [POWERPC] mpc5200: Allow for fixed speed MII configurations

2008-04-29 Thread Grant Likely
From: Grant Likely [EMAIL PROTECTED] Various improvements for configuring the MPC5200 MII link from the device tree: * Look for 'current-speed' property for fixed speed MII links * Look for 'fsl,7-wire-mode' property for boards using the 7 wire mode * move definition of private data structure out

Re: [PATCH] [POWERPC] convert transfer_to_handler into a macro

2008-04-29 Thread Paul Mackerras
Kumar Gala writes: We need to have unique transfer_to_handler paths for each exception level that is supported. We need to use the proper xSRR0/1 depending on which exception level the interrupt was from. The macro conversion lets up templatize this code path. It seems to me that this

Re: [PATCH] [POWERPC] convert transfer_to_handler into a macro

2008-04-29 Thread Kumar Gala
On Apr 29, 2008, at 4:28 PM, Paul Mackerras wrote: Kumar Gala writes: We need to have unique transfer_to_handler paths for each exception level that is supported. We need to use the proper xSRR0/1 depending on which exception level the interrupt was from. The macro conversion lets up

Re: [PATCH] [POWERPC] Add struct iommu_table argument to iommu_map_sg()

2008-04-29 Thread Mark Nelson
Olof Johansson wrote: On Tue, Apr 29, 2008 at 03:17:45PM +1000, Mark Nelson wrote: Make iommu_map_sg take a struct iommu_table. It did so before commit 740c3ce66700640a6e6136ff679b067e92125794 (iommu sg merging: ppc: make iommu respect the segment size limits). This stops the function looking

Re: [RESEND][PATCH][POWERPC] PIKA Warp: Update platform code to supportRev B boards

2008-04-29 Thread Josh Boyer
On Mon, 28 Apr 2008 18:07:17 -0400 Sean MacLennan [EMAIL PROTECTED] wrote: On Mon, 28 Apr 2008 16:54:24 -0500 Scott Wood [EMAIL PROTECTED] wrote: Why can't the existing partition binding be used with NAND? It's what we do with Freescale FCM NAND. I guess I could put the partitions in

[PATCH] Make emergency stack safe for current_thread_info() use

2008-04-29 Thread Michael Ellerman
The current_thread_info() macro, used by preempt_count(), assumes the stack is THREAD_SIZE aligned. It should probably also be THREAD_SIZE in size. The emergency stack currently isn't either of these things, which could potentially cause problems anytime we're running on the emergency stack. That

Re: [PATCH] [POWERPC] convert transfer_to_handler into a macro

2008-04-29 Thread Paul Mackerras
Kumar Gala writes: Wouldn't it be better and safer to have the exception prolog for critical interrupts save SRR0/1 in the stack frame, and have the prolog for machine checks save SRR0/1 and CSRR0/1 likewise? If we do this I guess we can use SRR0/1 regardless of which level we came

Re: [PATCH v3] sysdev,mv64x60: MV64x60 device bus

2008-04-29 Thread Paul Mackerras
Remi Machet writes: Follow up of my email of 4/16/2008 titled MV64x60 device bus. For each mv64360 entry in the OpenFirmware database, add the registration of an of_bus to take care of devices connected to the MV64x60 asynchronous devices controller. Your patch description should also

[PATCH] Fix crashkernel= handling when no crashkernel= specified

2008-04-29 Thread Michael Ellerman
Commit edd8ce67436851a62f99f1d9707b40ea6a8e5323 (Use extended crashkernel command line on ppc64), changed the logic in reserve_crashkernel() which deals with the crashkernel= command line option. This introduced a bug in the case when there is no crashkernel= option, or it is incorrect. We would

[RFC] [PATCH] vmemmap fixes to use smaller pages

2008-04-29 Thread Benjamin Herrenschmidt
This patch changes vmemmap to use a different region (region 0xf) of the address space whose page size can be dynamically configured at boot. The problem with the current approach of always using 16M pages is that it's not well suited to machines that have small amounts of memory such as small