[PATCH] PPC: Sync guest visible MMU state

2009-11-23 Thread Alexander Graf
Currently userspace has no chance to find out which virtual address space we're in and resolve addresses. While that is a big problem for migration, it's also unpleasent when debugging, as gdb and the monitor don't work on virtual addresses. This patch exports enough of the MMU segment state to us

Re: Fix bug in pagetable cache cleanup with CONFIG_PPC_SUBPAGE_PROT

2009-11-23 Thread Sachin Sant
_context_t. Signed-off-by: David Gibson Thanks David for the patch. With this patch on top of next-20091123 my test machine boots fine. Regards -Sachin -- - Sachin Sant IBM Linux Technology Center India Systems and Technology Labs Bangal

Re: Fix bug in gup_hugepd()

2009-11-23 Thread Stephen Rothwell
Hi David, On Tue, 24 Nov 2009 17:03:40 +1100 David Gibson wrote: > > Commit a4fe3ce7699bfe1bd88f816b55d42d8fe1dac655 introduced a new When you quote a SHA1, please also quote the summary line for the commit so those without git access may find it. -- Cheers, Stephen Rothwell

Fix bug in gup_hugepd()

2009-11-23 Thread David Gibson
Commit a4fe3ce7699bfe1bd88f816b55d42d8fe1dac655 introduced a new get_user_pages() path for hugepages on powerpc. Unfortunately, there is a bug in it's loop logic, which can cause it to overrun the end of the intended region. This came about by copying the logic from the normal page path, which as

Fix bug in pagetable cache cleanup with CONFIG_PPC_SUBPAGE_PROT

2009-11-23 Thread David Gibson
Commit a0668cdc154e54bf0c85182e0535eea237d53146 cleans up the handling of kmem_caches for allocating various levels of pagetables. Unfortunately, it conflicts badly with CONFIG_PPC_SUBPAGE_PROT, due to the latter's cleverly hidden technique of adding some extra allocation space to the top level pag

Re: [PATCH 7/8] spi_mpc8xxx: Turn qe_mode into flags

2009-11-23 Thread Benjamin Herrenschmidt
On Thu, 2009-11-05 at 07:47 -0600, Kumar Gala wrote: > On Oct 12, 2009, at 11:49 AM, Anton Vorontsov wrote: > > > Soon there will be more flags introduced in subsequent patches, so > > let's turn qe_mode into flags. > > > > Also introduce mpc8xxx_spi_strmode() and print current SPI mode. > > > > S

Re: [PATCH v5 0/4] pseries: Add cede support for cpu-offline

2009-11-23 Thread Vaidyanathan Srinivasan
* Benjamin Herrenschmidt [2009-11-24 14:35:09]: > On Fri, 2009-10-30 at 10:52 +0530, Gautham R Shenoy wrote: > > Hi, > > > > This is version 5 of patch series that provides a framework to choose the > > state a pseries CPU must be put to when it is offlined. > > > > Previous versions can be fou

Re: [PATCH] ppc64: re-enable kexec to allow module loads with CONFIG_MODVERSIONS and CONFIG_RELOCATABLE turned on

2009-11-23 Thread Paul Mackerras
Neil Horman writes: > Before anyone flames me for what a oddball solution this is, let me just > say I'm trying to get the ball rolling here. I think there may be better > solutions that can be impemented in reloc_64.S, but I've yet to make any of > the > ones I've tried work successfully.

Re: [PATCH v5 0/4] pseries: Add cede support for cpu-offline

2009-11-23 Thread Benjamin Herrenschmidt
On Fri, 2009-10-30 at 10:52 +0530, Gautham R Shenoy wrote: > Hi, > > This is version 5 of patch series that provides a framework to choose the > state a pseries CPU must be put to when it is offlined. > > Previous versions can be found here: > Version 4: http://lkml.org/lkml/2009/10/9/59 > Versio

Re: [PATCH] zlib: Optimize inffast when copying direct from output

2009-11-23 Thread Benjamin Herrenschmidt
On Tue, 2009-11-10 at 10:00 +0100, Joakim Tjernlund wrote: > JFFS2 uses lesser compression ratio and inflate always > ends up in "copy direct from output" case. > This patch tries to optimize the direct copy procedure. > Uses get_unaligned() but only in one place. > The copy loop just above this on

Re: [RFC PATCH 10/19] powerpc: gamecube/wii: early debugging using usbgecko

2009-11-23 Thread Segher Boessenkool
You set up DBAT1 here... +setup_usbgecko_bat: + /* prepare a BAT for early io */ + lis r8, 0x0c00 + ori r8, r8, 0x002a /* uncached, guarded ,rw */ + lis r11, 0xcc00 + ori r11, r11, 0x3 /* 128K */ +#ifdef CONFIG_WII + orisr8, r8, 0x0100 +

Re: [RFC PATCH 09/19] powerpc: gamecube/wii: udbg support for usbgecko

2009-11-23 Thread Segher Boessenkool
+ If you say yes to this option, support will be included for the + USB Gecko adapter as an udbg console. + The USB Gecko is a EXI to USB Serial converter that can be plugged + into a memcard slot in the Nintendo GameCube/Wii. Not "a" memcard slot, only the first

Re: [RFC PATCH 06/19] powerpc: gamecube/wii: introduce GAMECUBE_COMMON

2009-11-23 Thread Segher Boessenkool
Add a config option GAMECUBE_COMMON to be used as a dependency for all options common to the Nintendo GameCube and Wii video game consoles. Maybe something like GAMECUBE_OR_WII instead? "COMMON" is so common it's meaningless. Segher ___ Linuxppc-de

Re: [RFC PATCH 05/19] powerpc: wii: bootwrapper bits

2009-11-23 Thread Segher Boessenkool
+ * We enter with an unknown cache, high BATs and MMU status. What does this mean? You know the low four BATs on entry and nothing else? +asm ("\n\ Global asm() is evil. + mfmsr 9\n\ + andi. 0, 9, (1<<4)|(1<<5) /* MSR_DR|MSR_IR */\n\ + andc9, 9, 0\n\ mfmsr 9

Re: [Cbe-oss-dev] [PATCH] spufs: Fix test in spufs_switch_log_read()

2009-11-23 Thread Jeremy Kerr
Roel, > size_t len cannot be less than 0. > > Signed-off-by: Roel Kluin Acked-by: Jeremy Kerr Thanks! Jeremy ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [RFC PATCH 03/19] powerpc: gamecube: bootwrapper bits

2009-11-23 Thread Segher Boessenkool
Hi Albert, +asm ("\n\ A file scope asm?! Please don't. + * We enter with the cache enabled, the MMU enabled and some known legacy + * memory mappings active. xBAT3 is unused It would be good if you could depend as little as possible on these things; that makes writing another bootlo

Re: [RFC PATCH 14/19] powerpc: allow ioremap within reserved fake ram regions

2009-11-23 Thread Michael Ellerman
On Mon, 2009-11-23 at 21:16 +0100, Albert Herranz wrote: > >> arch/powerpc/mm/pgtable_32.c | 19 --- > >> 1 files changed, 16 insertions(+), 3 deletions(-) > >> > >> diff --git a/arch/powerpc/mm/pgtable_32.c b/arch/powerpc/mm/pgtable_32.c > >> index cb96cb2..ba00cb1 100644 > >> -

[PATCH] [PPC4xx] Fix device tree dts file for katmai board.

2009-11-23 Thread Pravin Bathija
Description: Set PCI-E node inbound DMA ranges size to 4GB for correct boot up of katmai. Including only changes for PCI-E DMA ranges as suggested by Stefan. Signed-off-by: Pravin Bathija Acked-by: Feng Kan Acked-by: Prodyut Hazarika Acked-by: Loc Ho Acked-by: Tirumala Reddy Marri Acked-by

[PATCH] powerpc: Fix DEBUG_HIGHMEM build break from d4515646699

2009-11-23 Thread Becky Bruce
Code was added to mm/higmem.c that depends on several kmap types that powerpc does not support. We add dummy invalid definitions for KM_NMI, KM_NM_PTE, and KM_IRQ_PTE. According to list discussion, this fix should not be needed anymore starting with 2.6.33. The code is commented to this effect s

Re: [RFC PATCH 10/19] powerpc: gamecube/wii: early debugging using usbgecko

2009-11-23 Thread Arnd Bergmann
On Monday 23 November 2009 19:10:55 Albert Herranz wrote: > > Arnd Bergmann wrote: > > On Sunday 22 November 2009, Albert Herranz wrote: > >> +#ifdef CONFIG_PPC_EARLY_DEBUG_USBGECKO > >> +setup_usbgecko_bat: > >> +/* prepare a BAT for early io */ > >> +lis r8, 0x0c00 > >> +ori

Re: [RFC PATCH 04/19] powerpc: wii: device tree

2009-11-23 Thread Albert Herranz
Grant Likely wrote: > This looks pretty good to me. The documentation format isn't strict, > just follow the pattern seen in other bindings. Make sure you post > new bindings to devicetree-disc...@lists.ozlabs.org for review. A > couple of comments below. > Ok. I know it now for the next time

Re: [RFC PATCH 14/19] powerpc: allow ioremap within reserved fake ram regions

2009-11-23 Thread Grant Likely
On Mon, Nov 23, 2009 at 1:16 PM, Albert Herranz wrote: > Grant Likely wrote: >> On Sun, Nov 22, 2009 at 3:01 PM, Albert Herranz >> wrote: >>> The Nintendo Wii has two discontiguous RAM memory areas called >>> MEM1 and MEM2. >>> MEM1 starts at 0x and contains 24MB of 1T-SRAM. >>> MEM2 sta

Re: [RFC PATCH 04/19] powerpc: wii: device tree

2009-11-23 Thread Grant Likely
On Mon, Nov 23, 2009 at 12:54 PM, Albert Herranz wrote: > Grant Likely wrote: >> On Sun, Nov 22, 2009 at 3:01 PM, Albert Herranz >> wrote: >>> +               i2c-video { >>> +                       #address-cells = <1>; >>> +                       #size-cells = <0>; >>> +                      

Re: [RFC PATCH 02/19] powerpc: gamecube: device tree

2009-11-23 Thread Albert Herranz
Grant Likely wrote: > On Mon, Nov 23, 2009 at 12:44 PM, Albert Herranz >> Can you please elaborate more on this or point me to documentation? >> The soc node here tries to represent the big multi-function chip that >> integrates most of the devices of the video game consoles ("Flipper" on the >>

Re: [RFC PATCH 18/19] powerpc: wii: platform support

2009-11-23 Thread Albert Herranz
Grant Likely wrote: > On Sun, Nov 22, 2009 at 3:01 PM, Albert Herranz > wrote: >> Add platform support for the Nintendo Wii video game console. >> >> Signed-off-by: Albert Herranz >> --- >> +static int wii_setup_hw_resets(void) >> +{ >> + struct device_node *np; >> + struct resource

Re: [RFC PATCH 02/19] powerpc: gamecube: device tree

2009-11-23 Thread Grant Likely
On Mon, Nov 23, 2009 at 12:44 PM, Albert Herranz wrote: > Grant Likely wrote: >> On Sun, Nov 22, 2009 at 3:01 PM, Albert Herranz >> wrote: >>> +       /* devices contained int the flipper chipset */ >>> +       soc { >> >> It would be better to rename this as IMMR or the bus type.  This node >>

Re: [RFC PATCH 16/19] powerpc: wii: hollywood interrupt controller support

2009-11-23 Thread Albert Herranz
Grant Likely wrote: > On Sun, Nov 22, 2009 at 3:01 PM, Albert Herranz > wrote: >> Add support for the dual interrupt controller included in the "Hollywood" >> chipset of the Nintendo Wii video game console. >> This interrupt controller serves both the Broadway processor (as a cascade) >> and the

Re: [RFC PATCH 15/19] powerpc: broadway processor support

2009-11-23 Thread Albert Herranz
Grant Likely wrote: > On Sun, Nov 22, 2009 at 3:01 PM, Albert Herranz > wrote: >> This patch extends the cputable entry of the 750CL to also match >> the 750CL-based "Broadway" cpu found on the Nintendo Wii. >> >> As of this patch, the following "Broadway" design revision levels have >> been seen

Re: [RFC PATCH 14/19] powerpc: allow ioremap within reserved fake ram regions

2009-11-23 Thread Albert Herranz
Grant Likely wrote: > On Sun, Nov 22, 2009 at 3:01 PM, Albert Herranz > wrote: >> The Nintendo Wii has two discontiguous RAM memory areas called >> MEM1 and MEM2. >> MEM1 starts at 0x and contains 24MB of 1T-SRAM. >> MEM2 starts at 0x1000 and contains 64MB of DDR2 RAM. >> Between both

Re: [RFC PATCH 12/19] powerpc: gamecube: platform support

2009-11-23 Thread Albert Herranz
Grant Likely wrote: > On Sun, Nov 22, 2009 at 3:01 PM, Albert Herranz > wrote: >> Add platform support for the Nintendo GameCube video game console. >> >> Signed-off-by: Albert Herranz >> --- >> +static void gamecube_show_cpuinfo(struct seq_file *m) >> +{ >> + seq_printf(m, "vendor\t\t: IB

Re: [RFC PATCH 11/19] powerpc: gamecube/wii: flipper interrupt controller support

2009-11-23 Thread Albert Herranz
Grant Likely wrote: > On Sun, Nov 22, 2009 at 3:01 PM, Albert Herranz > wrote: >> Add support for the interrupt controller included in the "Flipper" >> chipset of the Nintendo GameCube video game console. >> The same interrupt controller is also present in the "Hollywood" chipset >> of the Ninten

Re: [RFC PATCH 06/19] powerpc: gamecube/wii: introduce GAMECUBE_COMMON

2009-11-23 Thread Albert Herranz
Grant Likely wrote: > On Sun, Nov 22, 2009 at 3:01 PM, Albert Herranz > wrote: >> Add a config option GAMECUBE_COMMON to be used as a dependency for all >> options common to the Nintendo GameCube and Wii video game consoles. >> >> Signed-off-by: Albert Herranz > > This could just be rolled into

Re: [RFC PATCH 04/19] powerpc: wii: device tree

2009-11-23 Thread Albert Herranz
Grant Likely wrote: > On Sun, Nov 22, 2009 at 3:01 PM, Albert Herranz > wrote: >> Add a device tree source file for the Nintendo Wii video game console. >> >> Signed-off-by: Albert Herranz > > Same comments apply here as for the gamecube.dts file, plus a few more below. > Ok, I'll try to addr

Re: [RFC PATCH 02/19] powerpc: gamecube: device tree

2009-11-23 Thread Albert Herranz
Grant Likely wrote: > On Sun, Nov 22, 2009 at 3:01 PM, Albert Herranz > wrote: >> Add a device tree source file for the Nintendo GameCube video game console. >> >> Signed-off-by: Albert Herranz > > Mostly looks good. A few comments below. Biggest comment is you need > to add a brief blurb for

Re: [RFC PATCH 00/19] powerpc: nintendo gamecube and wii support

2009-11-23 Thread Albert Herranz
Arnd Bergmann wrote: > > Very nice series, well done! > > Time for me to invest in some new hardware ;-) > > Arnd <>< > Thanks for review :) Cheers, Albert ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/l

Re: [RFC PATCH 17/19] powerpc: wii: bootmii starlet 'mini' firmware support

2009-11-23 Thread Albert Herranz
Arnd Bergmann wrote: > On Sunday 22 November 2009, Albert Herranz wrote: >> + * >> + */ >> +struct mipc_device { >> +void __iomem *io_base; >> +int irq; >> + >> +struct device *dev; >> + >> +spinlock_t call_lock; /* serialize firmware calls */ >> +spinlock_t io_lock; /* se

Re: [RFC PATCH 10/19] powerpc: gamecube/wii: early debugging using usbgecko

2009-11-23 Thread Albert Herranz
Arnd Bergmann wrote: > On Sunday 22 November 2009, Albert Herranz wrote: >> +#ifdef CONFIG_PPC_EARLY_DEBUG_USBGECKO >> +setup_usbgecko_bat: >> +/* prepare a BAT for early io */ >> +lis r8, 0x0c00 >> +ori r8, r8, 0x002a /* uncached, guarded ,rw */ >> +lis r11, 0xcc00 >>

Re: [RFC PATCH 07/19] powerpc: gamecube/wii: declare as non-coherent platforms

2009-11-23 Thread Albert Herranz
Arnd Bergmann wrote: > On Sunday 22 November 2009, Albert Herranz wrote: >> config NOT_COHERENT_CACHE >> bool >> - depends on 4xx || 8xx || E200 || PPC_MPC512x >> + depends on 4xx || 8xx || E200 || PPC_MPC512x || GAMECUBE_COMMON >> default y >> >> config CHECK_CACHE_

Re: RFC: Put printk buffer in video ram

2009-11-23 Thread Arnd Bergmann
On Monday 23 November 2009, Chris Friesen wrote: > We've had a mechanism sort of like this for quite a while. Hasn't been > pushed to mainline because it used board-specific hardware and we're > usually multiple kernel versions behind mainline. > > Anyways, a couple things that we've found to be

Re: [PATCH] ppc440spe-adma: adds updated ppc440spe adma driver

2009-11-23 Thread Dan Williams
Anatolij Gustschin wrote: This patch adds new version of the PPC440SPe ADMA driver. Signed-off-by: Anatolij Gustschin As Josh said please don't drop attribution tags. If you borrowed from Yuri's implementation you can forward his signed-off-by. --- Before applying this patch the followin

Re: Fwd: Re: DTS for PowerPC 440 based board

2009-11-23 Thread Grant Likely
On Mon, Nov 23, 2009 at 12:29 AM, wrote: > Hi, > > David, Grant thank you for providing the info. > From your reply and the other sources what I gather is as below. Please > confirm whether I am on the right track. > > 1) Bootloader passing BDInfo: > Here, I have to create a .dts file inside /arc

Re: DMA to User-Space

2009-11-23 Thread Sergey Temerkhanov
On Wednesday 04 November 2009 02:37:38 Jonathan Haws wrote: > All, > > I have what may be an unconventional question: > > Our application consists of data being captured by an FPGA, processed, and > transferred to SDRAM. I simply give the FPGA an address of where I want > it stored in SDRAM an

Re: [PATCH 0/4 v2] Merge OF dynamic patches

2009-11-23 Thread Nathan Fontenot
Grant Likely wrote: But I'm really close to posting my 3rd series, so it may be better to wait until that is published and build a patch on top of that to move them into of_dynamic.c Works for me. -Nathan Fontenot ___ Linuxppc-dev mailing list Linu

Re: [PATCH 1/3] eLBC NAND: increase bus timeout to maximum

2009-11-23 Thread Artem Bityutskiy
On Fri, 2009-11-13 at 14:12 -0600, Scott Wood wrote: > When a NAND operation is in progress, all other localbus operations > (including NOR flash) will have to wait for access to the bus. However, the > NAND operation may take longer to complete than the default timeout. Thus, > if NOR is accesse

Re: [microblaze-uclinux] Re: [PATCH 0/4 v2] Merge OF dynamic patches

2009-11-23 Thread Michal Simek
Grant Likely wrote: On Fri, Nov 20, 2009 at 8:01 AM, Nathan Fontenot wrote: This set of patches merges the common dynamic device tree updating routines of_attach_node() and of_detach_node() to drivers/of/of_dynamic.c. Built and tested on powerpc, I have no access to build/test this on microbla

[RESEND] [PATCH] Fix wrong error code from ppc32 select syscall

2009-11-23 Thread Josh Boyer
From: Arnd Bergmann , Paul Mackerras This patch was submitted, discussed, and eventually Acked by everyone, yet still isn't in the tree. See: http://patchwork.ozlabs.org/patch/1240/ Signed-off-by: Josh Boyer Cc: Arnd Bergmann Cc: Paul Mackerras --- diff --git a/arch/powerpc/include/asm/sy

Re: [PATCH] ppc440spe-adma: adds updated ppc440spe adma driver

2009-11-23 Thread Anatolij Gustschin
On Fri, 20 Nov 2009 08:00:26 -0500 Josh Boyer wrote: > On Tue, Nov 17, 2009 at 03:17:05PM +0100, Anatolij Gustschin wrote: > >This patch adds new version of the PPC440SPe ADMA driver. > > > >Signed-off-by: Anatolij Gustschin > > The driver author is listed as Yuri Tikhonov . Shouldn't > this i