libfdt: Add function to explicitly expand aliases

2008-08-19 Thread David Gibson
Kumar has already added alias expansion to fdt_path_offset(). However, in some circumstances it may be convenient for the user of libfdt to explicitly get the string expansion of an alias. This patch adds a function to do this, fdt_get_alias(), and uses it to implement fdt_path_offset(). Signed-o

Re: [PATCH 4/5] powerpc: Make the 64-bit kernel as a position-independent executable

2008-08-19 Thread Paul Mackerras
Geert Uytterhoeven writes: > This part broke ppc32: > > | arch/powerpc/kernel/prom.c: In function 'early_init_devtree': > | arch/powerpc/kernel/prom.c:1166: error: '__end_interrupts' undeclared > (first use in this function) > | arch/powerpc/kernel/prom.c:1166: error: (Each undeclared identifier

Re: [PATCH] powerpc: fix memory leaks in QE library

2008-08-19 Thread Tony Breeds
On Mon, Aug 18, 2008 at 04:12:08PM -0500, Timur Tabi wrote: > Fix two memory leaks in the Freescale QE library: add a missing kfree() in > ucc_fast_init() if the ioremap() fails, and update ucc_fast_free() to call > iounmap() on uf_regs. It's been pointed out in http://bugzilla.kernel.org/show_bug

Re: [PATCH v2] powerpc: Improve message for vio bus entitlement panic

2008-08-19 Thread Paul Mackerras
Robert Jennings writes: > Add information regarding the available and required entitlement amounts > to the message displayed for the panic when insufficient entitlement is > provided at boot. I'll queue this up for 2.6.28, unless you tell me it's needed for 2.6.27. Paul. ___

Re: [PATCH 2/2] powerpc - Make the irq reverse mapping radix tree lockless

2008-08-19 Thread Benjamin Herrenschmidt
BTW. It would be good to try to turn the GFP_ATOMIC into GFP_KERNEL, maybe using a semaphore instead of a lock to protect insertion vs. initialisation. The old scheme was fine because if the atomic allocation failed, it could fallback to the linear search and try again on the next interrupt. Not an

Re: [PATCH 2/2] powerpc - Make the irq reverse mapping radix tree lockless

2008-08-19 Thread Benjamin Herrenschmidt
On Wed, 2008-08-06 at 15:30 +0200, Sebastien Dugue wrote: > The radix trees used by interrupt controllers for their irq reverse mapping > (currently only the XICS found on pSeries) have a complex locking scheme > dating back to before the advent of the lockless radix tree. > > Take advantage of

Re: [PATCH 1/2] powerpc - Separate the irq radix tree insertion and lookup

2008-08-19 Thread Benjamin Herrenschmidt
On Wed, 2008-08-06 at 15:30 +0200, Sebastien Dugue wrote: > irq_radix_revmap() currently serves 2 purposes, irq mapping lookup > and insertion which happen in interrupt and process context respectively. Sounds good, a few nits and it should be good to go. > Separate the function into its 2 comp

Re: [PATCH 4/8] powerpc: add the ability for a classic ppc kernel to be loaded at 32M

2008-08-19 Thread Paul Mackerras
Anton Vorontsov writes: > > What do you do about the exception vectors? > > Making a trampoline code in place of exception vectors. See this patch: > > [PATCH 8/8] powerpc: last bits to support kdump on ppc32 It would probably be worth looking at whether we could do a relocatable 32-bit kernel

[git pull] Please pull powerpc.git merge branch

2008-08-19 Thread Paul Mackerras
Linus, Please pull from the 'merge' branch of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc.git merge to get some more bug-fixes for powerpc. Paul. arch/powerpc/kernel/crash_dump.c | 31 + arch/powerpc/kernel/ibmebus.c | 12 -

Re: CONFIG_BOOTX_TEXT breaks PowerBook 3400 with BootX

2008-08-19 Thread Benjamin Herrenschmidt
On Wed, 2008-08-20 at 03:23 +1000, Finn Thain wrote: > Hi All, > > When I build kernels with CONFIG_BOOTX_TEXT enabled I can't boot a PB 3400 > with BootX. I get a black screen with "Welcome to Linux" at the top, then > it appears to hang. Debian kernels are configured this way and suffer the >

Re: [PATCH 3/4] kvmppc: magic page paravirtualization - guest part

2008-08-19 Thread Tony Breeds
Hi Christian, One very minor nit. On Tue, Aug 19, 2008 at 12:36:43PM +0200, [EMAIL PROTECTED] wrote: > [diffstat] > mm/page_alloc.c|1 > void kvm_guest_init(void); > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-19 Thread Benjamin Herrenschmidt
On Tue, 2008-08-19 at 16:58 -0700, Jeremy Fitzhardinge wrote: > Benjamin Herrenschmidt wrote: > >> Ok, there are two cases where it's ok : > >> > >> 1 - in stop_machine, considering we are not touching code executed in > >> NMI handlers. > >> 2 - when using my replace_instruction_safe() which uses

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-19 Thread Jeremy Fitzhardinge
Benjamin Herrenschmidt wrote: >> Ok, there are two cases where it's ok : >> >> 1 - in stop_machine, considering we are not touching code executed in >> NMI handlers. >> 2 - when using my replace_instruction_safe() which uses a temporary >> breakpoint when doing the instruction replacement. >> >> In

Re: [PATCH] ibmebus/of_platform: Move "name" sysfs attribute into generic OF devices

2008-08-19 Thread Paul Mackerras
Joachim Fenkes writes: > > Is this a bugfix that is needed for 2.6.27? > > Yes, definitely. The eHCA userspace driver relies on the name attribute to > check for valid adapters (it checks that the name is "lhca"), so with the > name attribute gone, eHCA userspace will cease to work. OK, I'll p

DMA Cache problem on PPC8248.

2008-08-19 Thread Jayasri Sangu
Hi All, We are using PPC8248 provided by freescale and the kernel 2.6.10. I believe we have cache problem. We are allocating DMA buffers in our driver. If we increase the DMA buffer size the board hangs/halts(when try to load more applications). If we reduce the DMA buffer size, then w

Re: [PATCH 1/2] rtc: rtc-ds1374: fix 'no irq' case handling

2008-08-19 Thread Alan Cox
> I don't know the status of these platforms > > asm-blackfin/irq.h:#define NO_IRQ ((unsigned int)(-1)) > asm-mn10300/irq.h:#define NO_IRQ INT_MAX > asm-parisc/irq.h:#define NO_IRQ (-1) In need of fixing, assuming they actually use NO_IRQ for anything - don't be mis

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-19 Thread Benjamin Herrenschmidt
> > Ok, there are two cases where it's ok : > > 1 - in stop_machine, considering we are not touching code executed in > NMI handlers. > 2 - when using my replace_instruction_safe() which uses a temporary > breakpoint when doing the instruction replacement. > > In those cases you could use text_

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-19 Thread Benjamin Herrenschmidt
> Register GPR30 is always zero... (also true for the other oops) >From my experiments, -a- non volatile register gets corrupted. Not always the same and not always with the same value. The corruption -seems- to happen due to corruption of the location on the stack where it was saved to / restor

Re: [PATCH 1/2] rtc: rtc-ds1374: fix 'no irq' case handling

2008-08-19 Thread Jon Smirl
On 8/19/08, Alan Cox <[EMAIL PROTECTED]> wrote: > > Shouldn't this be > > > > > - if (client->irq <= NO_IRQ) > > > > instead of > > > NO_IRQ is obsolete. client->irq != is the test and IRQ numbers are > unsigned. I don't know the status of these platforms asm-blackfin/irq.h:#defin

Re: [PATCH 1/2] rtc: rtc-ds1374: fix 'no irq' case handling

2008-08-19 Thread Anton Vorontsov
On Tue, Aug 19, 2008 at 04:39:09PM -0400, Jon Smirl wrote: > On 8/12/08, Anton Vorontsov <[EMAIL PROTECTED]> wrote: > > On a PowerPC board with ds1374 RTC I'm getting this error while > > RTC tries to probe: > > > > rtc-ds1374 0-0068: unable to request IRQ > > > > This happens because I2C probin

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-19 Thread Steven Rostedt
On Tue, 19 Aug 2008, Mathieu Desnoyers wrote: > > Ok, there are two cases where it's ok : > > 1 - in stop_machine, considering we are not touching code executed in > NMI handlers. > 2 - when using my replace_instruction_safe() which uses a temporary > breakpoint when doing the instruction replac

Re: [PATCH 1/2] rtc: rtc-ds1374: fix 'no irq' case handling

2008-08-19 Thread Alan Cox
> Shouldn't this be > > > - if (client->irq <= NO_IRQ) > > instead of NO_IRQ is obsolete. client->irq != is the test and IRQ numbers are unsigned. Alan ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/li

Re: [PATCH 1/2] rtc: rtc-ds1374: fix 'no irq' case handling

2008-08-19 Thread Jon Smirl
On 8/12/08, Anton Vorontsov <[EMAIL PROTECTED]> wrote: > On a PowerPC board with ds1374 RTC I'm getting this error while > RTC tries to probe: > > rtc-ds1374 0-0068: unable to request IRQ > > This happens because I2C probing code (drivers/of/of_i2c.c) is > specifying IRQ0 for 'no irq' case, whi

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-19 Thread Steven Rostedt
On Tue, 19 Aug 2008, Eran Liberty wrote: > Steven Rostedt wrote: > > > > > Testing tracer sched_switch: PASSED > > > Testing tracer ftrace: PASSED > > > Testing dynamic ftrace: PASSED Do you have PREEMPT_TRACER enabled, or any other tracer for that matter? -- Steve > > > > > > Oops: Except

Re: [PATCH 1/2] rtc: rtc-ds1374: fix 'no irq' case handling

2008-08-19 Thread Peter Korsgaard
> "Anton" == Anton Vorontsov <[EMAIL PROTECTED]> writes: Anton> On a PowerPC board with ds1374 RTC I'm getting this error while Anton> RTC tries to probe: Anton> rtc-ds1374 0-0068: unable to request IRQ Anton> This happens because I2C probing code (drivers/of/of_i2c.c) is Anton> specify

Re: [PATCH 0/9] Rework PowerPC 44x board support

2008-08-19 Thread Josh Boyer
On Tue, 19 Aug 2008 20:26:12 +0200 Stefan Roese <[EMAIL PROTECTED]> wrote: > On Tuesday 19 August 2008, Josh Boyer wrote: > > The following patch series reworks the board support code for PowerPC 44x > > platforms. It eliminates a number of redundant .c files and add a > > ppc44x_simple.c file th

Re: [PATCH 0/9] Rework PowerPC 44x board support

2008-08-19 Thread Stefan Roese
On Tuesday 19 August 2008, Josh Boyer wrote: > The following patch series reworks the board support code for PowerPC 44x > platforms. It eliminates a number of redundant .c files and add a > ppc44x_simple.c file that has an explicit list of boards that are supported > by it. This is the same mech

Re: qemu platform patches

2008-08-19 Thread Milton Miller
On Aug 18, 2008, at 9:17 PM, Miklos Vajna wrote: Hi! I recently started to search for a solution to boot a Linux-2.6-based kernel in qemu-system-ppc. Google found two of your interesting patches: http://patchwork.ozlabs.org/linuxppc/patchcontent?id=13689 http://patchwork.ozlabs.org/li

CONFIG_BOOTX_TEXT breaks PowerBook 3400 with BootX

2008-08-19 Thread Finn Thain
Hi All, When I build kernels with CONFIG_BOOTX_TEXT enabled I can't boot a PB 3400 with BootX. I get a black screen with "Welcome to Linux" at the top, then it appears to hang. Debian kernels are configured this way and suffer the same problem. I don't know if Quik is affected. It is a bit of

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-19 Thread Mathieu Desnoyers
* Steven Rostedt ([EMAIL PROTECTED]) wrote: > > > On Mon, 18 Aug 2008, Mathieu Desnoyers wrote: > > > * Steven Rostedt ([EMAIL PROTECTED]) wrote: > > > > > > On Tue, 19 Aug 2008, Benjamin Herrenschmidt wrote: > > > > > > > > > > > > Hmm, this was originally copied from x86, where we did a cmp

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-19 Thread Steven Rostedt
On Mon, 18 Aug 2008, Mathieu Desnoyers wrote: > * Steven Rostedt ([EMAIL PROTECTED]) wrote: > > > > On Tue, 19 Aug 2008, Benjamin Herrenschmidt wrote: > > > > > > > > > Hmm, this was originally copied from x86, where we did a cmpxchg, but > > > > that > > > > is probably not needed since al

Re: [PATCH 4/5] powerpc: Make the 64-bit kernel as a position-independent executable

2008-08-19 Thread Geert Uytterhoeven
On Wed, 13 Aug 2008, Paul Mackerras wrote: > --- a/arch/powerpc/kernel/prom.c > +++ b/arch/powerpc/kernel/prom.c > @@ -1163,7 +1163,9 @@ void __init early_init_devtree(void *params) > parse_early_param(); > > /* Reserve LMB regions used by kernel, initrd, dt, etc... */ > - lmb_res

[alsa-devel] [PATCH v2] duplicate SNDRV_PCM_FMTBIT_S{16,24}_BE

2008-08-19 Thread roel kluin
Takashi Iwai wrote: > At Tue, 19 Aug 2008 08:15:05 +0200 (CEST), > Johannes Berg wrote: >> roel kluin wrote: >>> untested, is it correct? >> not a clue, do you know how long ago that was? :) >> does the driver check endianness anywhere? > > AFAIK snd-aoa supports only bit-endian formats (at least

[PATCH v2] powerpc, scc: duplicate SCC_UHC_USBCEN

2008-08-19 Thread roel kluin
Kou Ishizaki wrote: > > Roel, > >> untested, is it correct? > > Your patch is correct. > > Thanks for your pointing it out and sending the patch. I tested your > patch and it works good. > > Fortunately, this bug is not fatal because it seems that the SCC-UHC > sets SCC_UHC_USBEN and SCC_UHC_U

[PATCH 9/9] powerpc/44x: Add explicit Yosemite support

2008-08-19 Thread Josh Boyer
Add the Yosemite board to the explicitly supported list for ppc44x_simple boards and remove the compatible entry for bamboo from the DTS file. Signed-off-by: Josh Boyer <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/yosemite.dts |2 +- arch/powerpc/platforms/44x/ppc44x_simple.c |1

[PATCH 8/9] powerpc/44x: Add explicit support for AMCC Glacier

2008-08-19 Thread Josh Boyer
Add explicit support for the AMCC Glacier eval board to Kconfig and the ppc44x_simple file. Also removes the cayonlands compatible entry from the DTS file. Signed-off-by: Josh Boyer <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/glacier.dts |2 +- arch/powerpc/platforms/44x/Kconfig

[PATCH 7/9] powerpc/44x: Migrate Taishan support to ppc44x_simple

2008-08-19 Thread Josh Boyer
Migrate the AMCC Taishan board to use the ppc44x_simple platform file. Signed-off-by: Josh Boyer <[EMAIL PROTECTED]> --- arch/powerpc/platforms/44x/Kconfig |1 + arch/powerpc/platforms/44x/Makefile |1 - arch/powerpc/platforms/44x/taishan.c | 72 -- 3

[PATCH 6/9] powerpc/44x: Migrate Sequoia support to ppc44x_simple

2008-08-19 Thread Josh Boyer
Migrate the AMCC Sequoia board to use the ppc44x_simple platform file. Signed-off-by: Josh Boyer <[EMAIL PROTECTED]> --- arch/powerpc/platforms/44x/Kconfig |1 + arch/powerpc/platforms/44x/Makefile |1 - arch/powerpc/platforms/44x/sequoia.c | 63 -- 3

[PATCH 5/9] powerpc/44x: Migrate Rainier support to ppc44x_simple

2008-08-19 Thread Josh Boyer
Migrate the AMCC Rainier board to use the ppc44x_simple platform file. Signed-off-by: Josh Boyer <[EMAIL PROTECTED]> --- arch/powerpc/platforms/44x/Kconfig |1 + arch/powerpc/platforms/44x/Makefile |1 - arch/powerpc/platforms/44x/rainier.c | 62 -- 3

[PATCH 4/9] powerpc/44x: Migrate Katmai support to ppc44x_simple

2008-08-19 Thread Josh Boyer
Migrate the AMCC Katmai board to use the ppc44x_simple platform file. Signed-off-by: Josh Boyer <[EMAIL PROTECTED]> --- arch/powerpc/platforms/44x/Kconfig |1 + arch/powerpc/platforms/44x/Makefile |1 - arch/powerpc/platforms/44x/katmai.c | 62 --- 3 fil

[PATCH 3/9] powerpc/44x: Migrate Canyonlands support to ppc44x_simple

2008-08-19 Thread Josh Boyer
Migrate the AMCC Canyonlands board to use the ppc44x_simple platform file. Signed-off-by: Josh Boyer <[EMAIL PROTECTED]> --- arch/powerpc/platforms/44x/Kconfig |1 + arch/powerpc/platforms/44x/Makefile |1 - arch/powerpc/platforms/44x/canyonlands.c | 63 --

[PATCH 2/9] powerpc/44x: Migrate Bamboo support to ppc44x_simple

2008-08-19 Thread Josh Boyer
Migrate the AMCC Bamboo board to use the ppc44x_simple platform file. Signed-off-by: Josh Boyer <[EMAIL PROTECTED]> --- arch/powerpc/platforms/44x/Kconfig |2 + arch/powerpc/platforms/44x/Makefile |2 - arch/powerpc/platforms/44x/bamboo.c | 62 --- 3 fil

[PATCH 1/9] powerpc/44x: Add PowerPC 44x simple platform support

2008-08-19 Thread Josh Boyer
This adds a common board file for almost all of the "simple" PowerPC 44x boards that exist today. This is intended to be a single place to add support for boards that do not differ in platform support from most of the evaluation boards that are used as reference platforms. Boards that have specif

[PATCH 0/9] Rework PowerPC 44x board support

2008-08-19 Thread Josh Boyer
The following patch series reworks the board support code for PowerPC 44x platforms. It eliminates a number of redundant .c files and add a ppc44x_simple.c file that has an explicit list of boards that are supported by it. This is the same mechanism that Grant Likely has used for MPC 5200 boards.

Re: [PATCH 1/3] gpiolib: make gpio_to_chip() public

2008-08-19 Thread Anton Vorontsov
On Tue, Aug 19, 2008 at 11:26:28AM +0200, Laurent Pinchart wrote: [...] > > I didn't say "SOC-specific". I said "SOC-model specific", which > > means that the driver would be not portable even across QE chips > > (i.e. MPC8323 vs. MPC8360, you can assume that the "CLK12" function > > is having same

Re: [PATCH] powerpc/spufs: Remove invalid semicolon after if statement

2008-08-19 Thread Jeremy Kerr
Hi Ilpo, > - if (new_state == SPU_UTIL_USER); > + if (new_state == SPU_UTIL_USER) Thanks, good catch. applied to spufs.git. Jeremy ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxp

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-19 Thread Mathieu Desnoyers
* Eran Liberty ([EMAIL PROTECTED]) wrote: > Mathieu Desnoyers wrote: >> Can you also give us >> >> objdump -S --start-address=0xC00BB724 vmlinux | head 20 >> >> ? >> >> Then we could compare the result with the OOPS instruction dump : >> >> 7c0802a6 bf61000c 3f60c038 7c3f0b78 90010024 7c7c1b78 7c9d

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-19 Thread Eran Liberty
Mathieu Desnoyers wrote: Can you also give us objdump -S --start-address=0xC00BB724 vmlinux | head 20 ? Then we could compare the result with the OOPS instruction dump : 7c0802a6 bf61000c 3f60c038 7c3f0b78 90010024 7c7c1b78 7c9d2378 83db32a0 73c1 7f83e378 7fa4eb78 4082002f <> 2f83

Re: Clock / Timebase / Bus Frequencies Help

2008-08-19 Thread surendranath . moilla
Hi Richard, Thanks for your response, i have fixed the problem. The problem was while U-boot is doing boardsetup it is filling incorrect frequencies which causes the problem. Regards Surendra > Hi, > > Is it really hanging? > Or is it just sending console output somewhere else? > Try pinging t

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-19 Thread Mathieu Desnoyers
* Eran Liberty ([EMAIL PROTECTED]) wrote: > Steven Rostedt wrote: >> On Mon, 18 Aug 2008, Eran Liberty wrote: >> >> >>> Steven Rostedt wrote: >>> Eran Liberty wrote: > After compiling a kernel with ftrace I started to experience all sorts > of > crashes. >

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-19 Thread Mathieu Desnoyers
* Eran Liberty ([EMAIL PROTECTED]) wrote: > Mathieu Desnoyers wrote: >> Can you check if, at some point during the system execution (starting >> from boot), 0xdd5b1d58 is an address where a module is loaded ? (the >> module can be later unloaded, what I wonder is if this address would >> appear to

Re: [PATCH] powerpc, scc: duplicate SCC_UHC_USBCEN

2008-08-19 Thread Kou Ishizaki
Roel, > untested, is it correct? Your patch is correct. Thanks for your pointing it out and sending the patch. I tested your patch and it works good. Fortunately, this bug is not fatal because it seems that the SCC-UHC sets SCC_UHC_USBEN and SCC_UHC_USBCEN at once. Your patch does not conta

cpm2: Fix race condition in CPM2 GPIO library.

2008-08-19 Thread Laurent Pinchart
The CPM2 GPIO library code uses the non thread-safe clrbits32/setbits32 macros. This patch protects them with a spinlock. Signed-off-by: Laurent Pinchart <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/cpm_common.c | 37 ++--- 1 files changed, 26 insertions(+), 11 de

Re: Clock / Timebase / Bus Frequencies Help

2008-08-19 Thread Richard Whitlock
Scott, Thanks for that - you're right - redboot has the wrong crystal frequency in the cdl for our board. Cheers, Richard. Scott Wood wrote: On Mon, Aug 18, 2008 at 07:52:12AM -0400, [EMAIL PROTECTED] wrote: We've got an 8347 based board very similar to the A&M asp8347. Core clock is 40

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-19 Thread Eran Liberty
Steven Rostedt wrote: On Mon, 18 Aug 2008, Eran Liberty wrote: Steven Rostedt wrote: Eran Liberty wrote: After compiling a kernel with ftrace I started to experience all sorts of crashes. Just to make sure... ftrace enables markers too, and RCU has tracing with the m

Re: [PATCH 1/4] kvmppc: read device tree hypervisor node infrastructure

2008-08-19 Thread Josh Boyer
On Tue, 2008-08-19 at 07:52 -0400, Josh Boyer wrote: > On Tue, 2008-08-19 at 12:36 +0200, [EMAIL PROTECTED] wrote: > > diff --git a/arch/powerpc/kernel/kvm.c b/arch/powerpc/kernel/kvm.c > > new file mode 100644 > > --- /dev/null > > +++ b/arch/powerpc/kernel/kvm.c > > @@ -0,0 +1,30 @@ > > > +#incl

Re: powerpc/cell/oprofile: avoid double free of profile buffer

2008-08-19 Thread Robert Richter
On 11.08.08 09:25:43, Arnd Bergmann wrote: > From: Carl Love <[EMAIL PROTECTED]> > > If an error occurs on opcontrol start, the event and per cpu buffers > are released. If later opcontrol shutdown is called then the free > function will be called again to free buffers that no longer > exist. Th

Re: [PATCH 1/4] kvmppc: read device tree hypervisor node infrastructure

2008-08-19 Thread Josh Boyer
On Tue, 2008-08-19 at 12:36 +0200, [EMAIL PROTECTED] wrote: > diff --git a/arch/powerpc/kernel/kvm.c b/arch/powerpc/kernel/kvm.c > new file mode 100644 > --- /dev/null > +++ b/arch/powerpc/kernel/kvm.c > @@ -0,0 +1,30 @@ > +#include > +#include > +#include > + > +void __init kvm_guest_init(void

Re: [PATCH 4/4] kvmppc: convert wrteei to wrtee as kvm guest optimization

2008-08-19 Thread Arnd Bergmann
On Tuesday 19 August 2008, [EMAIL PROTECTED] wrote: > Dependent on the already existing CONFIG_KVM_GUEST config option this patch > changes wrteei to wrtee allowing the hypervisor to rewrite those to > nontrapping > instructions. Maybe we should split the kvm guest otpimizations in two parts > one

Re: [PATCH 2/4] kvmppc: add hypercall infrastructure - guest part

2008-08-19 Thread Arnd Bergmann
On Tuesday 19 August 2008, [EMAIL PROTECTED] wrote: > +static inline long kvm_hypercall1(unsigned int nr, unsigned long p1) > +{ > +   register unsigned long hcall asm ("r0") = nr; > +   register unsigned long arg1 asm ("r3") = p1; > +   register long ret asm ("r11"); > + > +   asm

Re: [PATCH] ibmebus/of_platform: Move "name" sysfs attribute into generic OF devices

2008-08-19 Thread Joachim Fenkes
Paul Mackerras <[EMAIL PROTECTED]> wrote on 19.08.2008 06:14:00: > > Recent of_platform changes made of_bus_type_init() overwrite the bus type's > > .dev_attrs list, so move ibmebus' "name" attribute (which is needed by eHCA > > userspace support) into generic OF device code. Tested on POWER. >

Re: Clock / Timebase / Bus Frequencies Help

2008-08-19 Thread Richard Whitlock
Hi, Is it really hanging? Or is it just sending console output somewhere else? Try pinging the board after you think its hung. Can you ssh in and dmesg to find out what went wrong? I've had two problems similar to this recently. The first was that the serial clock frequency was wrong in the dts

[PATCH 1/4] kvmppc: read device tree hypervisor node infrastructure

2008-08-19 Thread ehrhardt
From: Christian Ehrhardt <[EMAIL PROTECTED]> This patch adds the guest portion of the device tree based host->guest communication. Using the device tree infrastructure this patch implements kvm_para_available and kvm_arch_para_features (in this patch just the infrastructure, no specific feature re

[PATCH 3/4] kvmppc: magic page paravirtualization - guest part

2008-08-19 Thread ehrhardt
From: Christian Ehrhardt <[EMAIL PROTECTED]> This patch adds the guest handling for the magic page mechanism. A Hypervisor can modify the device tree passed to the guest. Using that already existing interface a guest can simply detect available hypervisor features and agree on the supported ones u

[PATCH 0/4][RFC] kvmppc: paravirtualization interface - guest part v2

2008-08-19 Thread ehrhardt
From: Christian Ehrhardt <[EMAIL PROTECTED]> This patch series implements a paravirtualization interface using: - the device tree mechanism to pass hypervisor informations to the guest - hypercalls for guest->host calls - an example exploiter of that interface (magic page) Version 2 includes chan

[PATCH 4/4] kvmppc: convert wrteei to wrtee as kvm guest optimization

2008-08-19 Thread ehrhardt
From: Christian Ehrhardt <[EMAIL PROTECTED]> Dependent on the already existing CONFIG_KVM_GUEST config option this patch changes wrteei to wrtee allowing the hypervisor to rewrite those to nontrapping instructions. Maybe we should split the kvm guest otpimizations in two parts one for the overhead

[PATCH 2/4] kvmppc: add hypercall infrastructure - guest part

2008-08-19 Thread ehrhardt
From: Christian Ehrhardt <[EMAIL PROTECTED]> This adds the guest portion of the hypercall infrastructure, basically an illegal instruction with a defined layout. See http://kvm.qumranet.com/kvmwiki/PowerPC_Hypercall_ABI for more detail on the hypercall ABI for powerpc. Signed-off-by: Christian Eh

8347 PCI IDE with Promise 20275 problems

2008-08-19 Thread Richard Whitlock
Hi, We have a board closely based on the A&M asp8347 with the addition of a promise technologies 20275 ATA controller. Starting with the ASP dts file I have added the following: pci0: [EMAIL PROTECTED] { cell-index = <1>; interrupt-map-mask = <0xf800 0x0 0x0 0x7>; interru

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-19 Thread Eran Liberty
Mathieu Desnoyers wrote: Can you check if, at some point during the system execution (starting from boot), 0xdd5b1d58 is an address where a module is loaded ? (the module can be later unloaded, what I wonder is if this address would appear to have had a loaded+unloaded module). Actually, could y

Re: [alsa-devel] [PATCH] duplicate SNDRV_PCM_FMTBIT_S{16,24}_BE

2008-08-19 Thread Takashi Iwai
At Tue, 19 Aug 2008 08:15:05 +0200 (CEST), Johannes Berg wrote: > > roel kluin wrote: > > untested, is it correct? > > not a clue, do you know how long ago that was? :) > does the driver check endianness anywhere? AFAIK snd-aoa supports only bit-endian formats (at least in sound/aoa/soundbus/i2s

Re: [PATCH 1/3] gpiolib: make gpio_to_chip() public

2008-08-19 Thread Laurent Pinchart
On Monday 18 August 2008, Anton Vorontsov wrote: > On Mon, Aug 18, 2008 at 04:44:36PM +0200, Laurent Pinchart wrote: > > On Monday 18 August 2008, Anton Vorontsov wrote: > > > On Mon, Aug 18, 2008 at 03:58:46PM +0200, Laurent Pinchart wrote: > > > [...] > > > > > Not exactly. But you can do this wa

Re: [MPC7448] machdep_calls

2008-08-19 Thread Sébastien Chrétien
So I will write .setup_arch of machine_call structure. When is ppc_md.setup_arch() called ? 2008/8/19, Benjamin Herrenschmidt <[EMAIL PROTECTED]>: > > On Tue, 2008-08-19 at 09:00 +0200, Sébastien Chrétien wrote: > > I have no screen that's why I have to use UART. I followed the CPM > > model in h

Re: Corrections please ...

2008-08-19 Thread Arnd Bergmann
On Monday 18 August 2008, Kevin Diggs wrote: > Subject: Corrections please ... The subject should be the one line change log, e.g. [PATCH] add kerneldoc comments for completion.h Also, cc the maintainer of the code. If you can't tell from the MAINTAINERS file, look for the most common name when

[PATCH] powerpc: remove include of linux/of_device.h from asm/of_device.h

2008-08-19 Thread Stephen Rothwell
Now that we have removed all inclusions of asm/of_device.h, this compatability include can be removed. Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- arch/powerpc/include/asm/of_device.h |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) This depends on my previous patch "powe

Re: [PATCH 0/5] Relocatable 64-bit kernel using linker PIE support

2008-08-19 Thread Mohan Kumar M
Paul Mackerras wrote: Mohan Kumar M writes: Attaching the .config Hmmm, your config works for me on a POWER6 partition here, whether I netboot the zImage.pseries or boot it with yaboot. I wonder if your toolchain is an older version. What is the output from ld --version and gcc --version?

Re: [MPC7448] machdep_calls

2008-08-19 Thread Benjamin Herrenschmidt
On Tue, 2008-08-19 at 09:00 +0200, Sébastien Chrétien wrote: > I have no screen that's why I have to use UART. I followed the CPM > model in head_32.S : > #ifdef CONFIG_PPC_EARLY_DEBUG_CPM > setup_cpm_bat: > lisr8, 0xf000 > orir8, r8,0x002a > mtsprSPRN_DBAT1L, r8 > >

Re: [MPC7448] machdep_calls

2008-08-19 Thread Sébastien Chrétien
I have no screen that's why I have to use UART. I followed the CPM model in head_32.S : #ifdef CONFIG_PPC_EARLY_DEBUG_CPM setup_cpm_bat: lisr8, 0xf000 orir8, r8,0x002a mtsprSPRN_DBAT1L, r8 lisr11, 0xf000 orir11, r11, (BL_1M << 2) | 2 mtsprSPRN_DB