Re: [PATCH 5/8] powerpc: override dma_get_required_mask by platform hook and ops

2011-05-19 Thread Benjamin Herrenschmidt
On Wed, 2011-05-11 at 15:25 -0700, Nishanth Aravamudan wrote: > From: Milton Miller > > The hook dma_get_required_mask is supposed to return the mask required > by the platform to operate efficently. The generic version of > dma_get_required_mask in driver/base/platform.c returns a mask based >

RE: [PATCH 1/3] mpt2sas: remove the use of writeq, since writeq isnot atomic

2011-05-19 Thread David Laight
> The specific mpt2sas problem is that if we write a 64 bit register non > atomically, we can't allow any interleaving writes for any other region > on the chip, otherwise the HW will take the write as complete in the 64 > bit register and latch the wrong value. The only way to achieve that > gi

Re: [PATCH 01/13] powerpc/e500: Save SPEFCSR in flush_spe_to_thread()

2011-05-19 Thread Alexander Graf
On 05/19/2011 08:04 AM, Kumar Gala wrote: On May 17, 2011, at 6:35 PM, Scott Wood wrote: From: yu liu giveup_spe() saves the SPE state which is protected by MSR[SPE]. However, modifying SPEFSCR does not trap when MSR[SPE]=0. And since SPEFSCR is already saved/restored in _switch(), not all the

Re: [PATCH v2 0/7] Consolidate sdhci pltfm & OF drivers and get them self registered

2011-05-19 Thread Wolfram Sang
Hi Shawn, > Changes since v1: > * Rebase on cjb's mmc-next tree Is it maybe possible that you get access to http://opensource.freescale.com/git or another machine? A branch to pull from would be more convenient, because the series does not apply to mmc-next anymore, so an extra step to go "back

Re: [PATCH v2 5/7] mmc: sdhci: consolidate sdhci-of-esdhc and sdhci-esdhc-imx

2011-05-19 Thread Wolfram Sang
> +config MMC_SDHCI_ESDHC > + bool > + depends on MMC_SDHCI > + select MMC_SDHCI_PLTFM > + help > + This selects SDHCI driver for Freescale eSDHC controller. bool is not a good choice here, because if ESDHC_IMX is selected as a module (-m), it will get converted here to buil

Re: [PATCH 4/7] [RFC] enable L1_WRITETHROUGH mode for BG/P

2011-05-19 Thread Josh Boyer
On Wed, May 18, 2011 at 04:24:52PM -0500, Eric Van Hensbergen wrote: >BG/P nodes need to be configured for writethrough to work in SMP >configurations. This patch adds the right hooks in the MMU code >to make sure L1_WRITETHROUGH configurations are setup for BG/P. > >Signed-off-by: Eric Van Hensbe

Re: [PATCH 1/7] [RFC] Mainline BG/P platform support

2011-05-19 Thread Josh Boyer
On Wed, May 18, 2011 at 04:24:49PM -0500, Eric Van Hensbergen wrote: >The Linux kernel patches for the IBM BlueGene/P have been open-sourced >for quite some time, but haven't been integrated into the mainline Linux >kernel source tree. This is the first patch series of several where I >will attemp

[PATCH] Powerpc/fsl_lbc: Add workaround for ELBC-A001 erratum

2011-05-19 Thread Shengzhou Liu
Simultaneous FCM and GPCM or UPM operation may erroneously trigger bus monitor timeout. Set the local bus monitor timeout value to the maximum by setting LBCR[BMT] = 0 and LBCR[BMTPS] = 0xF. Signed-off-by: Shengzhou Liu Signed-off-by: Gala Kumar --- arch/powerpc/include/asm/fsl_lbc.h |2 ++

Re: [PATCH] [klibc] ppc64: Fix build failure with stricter as

2011-05-19 Thread maximilian attems
On Wed, 18 May 2011, maximilian attems wrote: > From: Matthias Klose > > Landed in Ubuntu klibc version 1.5.20-1ubuntu3. > > > Signed-off-by: maximilian attems > --- > usr/klibc/arch/ppc64/crt0.S | 17 + > 1 files changed, 9 insertions(+), 8 deletions(-) > thank you, merg

RE: [PATCH] powerpc/85xx: Save and restore pcie ATMU windows for PM

2011-05-19 Thread Kushwaha Prabhakar-B32579
Hi Kumar, Please find my answer in-lined > -Original Message- > From: Kumar Gala [mailto:ga...@kernel.crashing.org] > Sent: Thursday, May 19, 2011 12:00 PM > To: Kushwaha Prabhakar-B32579 > Cc: linuxppc-dev@lists.ozlabs.org; meet2pra...@gmail.com; Jiang Yutang- > B14898 > Subject: Re: [P

RE: [PATCH] powerpc/85xx: add host-pci(e) bridge only for RC

2011-05-19 Thread Kushwaha Prabhakar-B32579
Hello Kumar, Please find my answer in-lined > -Original Message- > From: Kumar Gala [mailto:ga...@kernel.crashing.org] > Sent: Thursday, May 19, 2011 11:55 AM > To: Kushwaha Prabhakar-B32579 > Cc: linuxppc-dev@lists.ozlabs.org; meet2pra...@gmail.com; Vivek Mahajan > Subject: Re: [PATCH]

Re: [PATCH 3/5] v2 seccomp_filters: Enable ftrace-based system call filtering

2011-05-19 Thread Steven Rostedt
On Wed, 2011-05-18 at 21:07 -0700, Will Drewry wrote: > Do event_* that return non-void exist in the tree at all now? I've > looked at the various tracepoint macros as well as some of the other > handlers (trace_function, perf_tp_event, etc) and I'm not seeing any > places where a return value is

Re: [PATCH 1/7] [RFC] Mainline BG/P platform support

2011-05-19 Thread Eric Van Hensbergen
On Thu, May 19, 2011 at 6:01 AM, Josh Boyer wrote: > On Wed, May 18, 2011 at 04:24:49PM -0500, Eric Van Hensbergen wrote: >> >>I'll be maintaining the patchset in my kernel.org repository >>(/pub/scm/linux/kernel/git/ericvh/bluegene.git) under the bluegene >>branch with the source repos (zepto, ki

Re: Kernel cannot see PCI device

2011-05-19 Thread Prashant Bhole
Hi, On Wed, May 18, 2011 at 7:44 PM, Bjorn Helgaas wrote: > On Wed, May 18, 2011 at 4:02 AM, Prashant Bhole > wrote: >> On Mon, May 2, 2011 at 10:21 AM, Prashant Bhole >> wrote: >>> >>> Hi, >>> I have a custom made powerpc 460EX board. On that board u-boot >>> can see a PCI device but Linux ker

Re: [PATCH v4]PPC4xx: Adding PCI(E) MSI support

2011-05-19 Thread Josh Boyer
On Wed, Mar 30, 2011 at 02:40:24PM +0530, Rupjyoti Sarmah wrote: >This patch adds MSI support for 440SPe, 460Ex, 460Sx and 405Ex. > >Signed-off-by: Rupjyoti Sarmah >Signed-off-by: Tirumala R Marri Acked-by: Josh Boyer >--- >v4: > * Updated the coding style as per recommendation by Philipp > *

Re: [PATCH 4/7] [RFC] enable L1_WRITETHROUGH mode for BG/P

2011-05-19 Thread Eric Van Hensbergen
On Thu, May 19, 2011 at 5:43 AM, Josh Boyer wrote: > On Wed, May 18, 2011 at 04:24:52PM -0500, Eric Van Hensbergen wrote: >> >>+config L1_WRITETHROUGH >>+      bool "Blue Gene/P enabled writethrough mode" >>+      depends on BGP >>+      default y > > You add this config option here, named generic

Re: [PATCH] powerpc/85xx: add host-pci(e) bridge only for RC

2011-05-19 Thread Kumar Gala
On May 19, 2011, at 6:25 AM, Kushwaha Prabhakar-B32579 wrote: > Hello Kumar, > Please find my answer in-lined > >> -Original Message- >> From: Kumar Gala [mailto:ga...@kernel.crashing.org] >> Sent: Thursday, May 19, 2011 11:55 AM >> To: Kushwaha Prabhakar-B32579 >> Cc: linuxppc-dev@list

Re: [PATCH] powerpc/85xx: Save and restore pcie ATMU windows for PM

2011-05-19 Thread Kumar Gala
On May 19, 2011, at 6:22 AM, Kushwaha Prabhakar-B32579 wrote: > Hi Kumar, > Please find my answer in-lined > >> -Original Message- >> From: Kumar Gala [mailto:ga...@kernel.crashing.org] >> Sent: Thursday, May 19, 2011 12:00 PM >> To: Kushwaha Prabhakar-B32579 >> Cc: linuxppc-dev@lists.o

Re: [PATCH 3/7] [RFC] add support for BlueGene/P FPU

2011-05-19 Thread Eric Van Hensbergen
On Thu, May 19, 2011 at 12:58 AM, Michael Neuling wrote: > Eric, > >> This patch adds save/restore register support for the BlueGene/P >> double hummer FPU. > > What does this mean?  Needs more details here. > Hi Mikey, any specific details you are looking for here? AFAIK these patches are requ

[PATCH 0/7] This patchset adds support for running Linux under the Freescale hypervisor,

2011-05-19 Thread Timur Tabi
have hypervisor extensions (e.g. the P4080 which has an e500mc core). I think it makes sense for this patchset to go through Kumar Gala's -next branch, but I still need ACKs from various people on the parts that are not e500-specific. 1. powerpc: make irq_choose_cpu() available to all PIC driver

[PATCH 6/7] tty/powerpc: introduce the ePAPR embedded hypervisor byte channel driver

2011-05-19 Thread Timur Tabi
The ePAPR embedded hypervisor specification provides an API for "byte channels", which are serial-like virtual devices for sending and receiving streams of bytes. This driver provides Linux kernel support for byte channels via three distinct interfaces: 1) An early-console (udbg) driver. This pr

[PATCH 5/7] powerpc/85xx: add board support for the Freescale hypervisor

2011-05-19 Thread Timur Tabi
Add support for the ePAPR-compliant Freescale hypervisor (aka "Topaz") on the Freescale P3041DS, P4080DS, and P5020DS reference boards. Signed-off-by: Timur Tabi --- arch/powerpc/platforms/85xx/Kconfig |3 +++ arch/powerpc/platforms/85xx/corenet_ds.c |7 +++ arch/powerpc/platfor

[PATCH 1/7] powerpc: make irq_choose_cpu() available to all PIC drivers

2011-05-19 Thread Timur Tabi
From: Stuart Yoder Move irq_choose_cpu() into arch/powerpc/kernel/irq.c so that it can be used by other PIC drivers. The function is not MPIC-specific. Signed-off-by: Stuart Yoder Signed-off-by: Timur Tabi --- arch/powerpc/include/asm/irq.h |2 ++ arch/powerpc/kernel/irq.c | 35 ++

[PATCH 4/7] powerpc: add Freescale hypervisor partition control functions

2011-05-19 Thread Timur Tabi
Add functions to restart and halt the current partition when running under the Freescale hypervisor. These functions should be assigned to various function pointers of the ppc_md structure during the .probe() function for the board: ppc_md.restart = fsl_hv_restart; ppc_md.power_of

[PATCH 2/7] powerpc: introduce ePAPR embedded hypervisor hcall interface

2011-05-19 Thread Timur Tabi
ePAPR hypervisors provide operating system services via a "hypercall" interface. The following steps need to be performed to make an hcall: 1. Load r11 with the hcall number 2. Load specific other registers with parameters 3. Issue instrucion "sc 1" 4. The return code is in r3 5. Other returned p

[PATCH 7/7] drivers/misc: introduce Freescale hypervisor management driver

2011-05-19 Thread Timur Tabi
The Freescale hypervisor management driver provides several services to drivers and applications related to the Freescale hypervisor: 1. An ioctl interface for querying and managing partitions 2. A file interface to reading incoming doorbells 3. An interrupt handler for shutting down the partiti

[PATCH 3/7] powerpc: introduce the ePAPR embedded hypervisor vmpic driver

2011-05-19 Thread Timur Tabi
From: Ashish Kalra The Freescale ePAPR reference hypervisor provides interrupt controller services via a hypercall interface, instead of emulating the MPIC controller. This is called the VMPIC. The ePAPR "virtual interrupt controller" provides interrupt controller services for external interrup

[PATCH] agp/uninorth: Fix lockups with radeon KMS and >1x.

2011-05-19 Thread Michel Dänzer
From: Michel Dänzer This was based on a description by Ben Herrenschmidt: > I've removed that SBA reset from the normal TLB invalidation path and > left it only once after turning AGP on. About six months ago, he said: > I did it a bit differently, but yeah, you get the idea. I'm doing a > pat

Re: [PATCH 0/7] This patchset adds support for running Linux under the Freescale hypervisor,

2011-05-19 Thread Timur Tabi
Timur Tabi wrote: > have hypervisor extensions (e.g. the P4080 which has an e500mc core). Oops, this email got munged. The first paragraph should say: This patchset adds support for running Linux under the Freescale hypervisor, which is an ePAPR-compliant hypervisor that runs on our PowerPC SOCs

Re: [PATCH 6/7] tty/powerpc: introduce the ePAPR embedded hypervisor byte channel driver

2011-05-19 Thread Timur Tabi
Greg KH wrote: > Why do this conversion in the driver? Shouldn't that be something that > userspace worries about? The udbg interface is a very early kernel printk interface. I don't know what the "u" stands for, but "dbg" is for "debug". The udbg interface is removed once a normal console driv

Re: [PATCH 6/7] tty/powerpc: introduce the ePAPR embedded hypervisor byte channel driver

2011-05-19 Thread Greg KH
On Thu, May 19, 2011 at 08:54:31AM -0500, Timur Tabi wrote: > +/* > + * The udbg subsystem calls this function to display a single character. > + * We convert CR to a CR/LF. > + */ > +static void ehv_bc_udbg_putc(char c) > +{ > + if (c == '\n') > + byte_channel_spin_send('\r'); > +

Re: [PATCH 6/7] tty/powerpc: introduce the ePAPR embedded hypervisor byte channel driver

2011-05-19 Thread Arnd Bergmann
On Thursday 19 May 2011, Timur Tabi wrote: > > The ePAPR embedded hypervisor specification provides an API for "byte > channels", which are serial-like virtual devices for sending and receiving > streams of bytes. Why is this using a full tty driver instead of the hvc framework that most other hy

Re: [PATCH 6/7] tty/powerpc: introduce the ePAPR embedded hypervisor byte channel driver

2011-05-19 Thread Alan Cox
On Thu, 19 May 2011 07:22:25 -0700 Greg KH wrote: > On Thu, May 19, 2011 at 08:54:31AM -0500, Timur Tabi wrote: > > +/* > > + * The udbg subsystem calls this function to display a single character. > > + * We convert CR to a CR/LF. > > + */ > > +static void ehv_bc_udbg_putc(char c) > > +{ > > +

Re: [PATCH 6/7] tty/powerpc: introduce the ePAPR embedded hypervisor byte channel driver

2011-05-19 Thread Alan Cox
> + struct tty_struct *ttys; ttys are refcounted and you have a refcounted pointer for free in your tty_port that is maintained by the tty_port logic, as well as it providing ref counted, properly locked handling for the reference. > +/ TTY DRIVER > ***

Re: [PATCH 6/7] tty/powerpc: introduce the ePAPR embedded hypervisor byte channel driver

2011-05-19 Thread Timur Tabi
Arnd Bergmann wrote: > Why is this using a full tty driver instead of the hvc framework that most > other hypervisor consoles use? Because HVC uses the same interface for consoles and tty, and that resulted in dropped characters if the client driver returns EAGAIN because it's output buffer is ful

Re: [PATCH 6/7] tty/powerpc: introduce the ePAPR embedded hypervisor byte channel driver

2011-05-19 Thread Timur Tabi
Alan Cox wrote: > ttys = tty_port_tty_get(&bc->port); > stuff > if (ttys != NULL) > tty stuff > tty_kref_put(ttys); Under what circumstances can ttys be NULL? I currently only use this code in the RX and TX interrupt handlers, which are both enabled in the tty_port_operations.activate

Re: [bg-linux] [PATCH 3/7] [RFC] add support for BlueGene/P FPU

2011-05-19 Thread Kazutomo Yoshii
On 05/19/2011 08:53 AM, Eric Van Hensbergen wrote: >> +#ifdef CONFIG_BGP >> +#define SAVE_FPR(n, b, base) li b, THREAD_FPR0+(16*(n)); STFPDX(n, base, b) >> +#define REST_FPR(n, b, base) li b, THREAD_FPR0+(16*(n)); LFPDX(n, base, b) > > 16*? Are these FP regs 64 or 128 bits wide? If

Re: [PATCH 6/7] tty/powerpc: introduce the ePAPR embedded hypervisor byte channel driver

2011-05-19 Thread Alan Cox
> Under what circumstances can ttys be NULL? I currently only use this code in > the RX and TX interrupt handlers, which are both enabled in the > tty_port_operations.activate() function. When you add hangup support. > > Is this right for the TX handler: > > static irqreturn_t ehv_bc_tty_tx_is

Re: [PATCH 6/7] tty/powerpc: introduce the ePAPR embedded hypervisor byte channel driver

2011-05-19 Thread Timur Tabi
Alan Cox wrote: >>> > > The kfifo API is probably faster and cleaner. Much of tty still uses >>> > > CIRC_* because they predate the new APIs. >> > >> > Ok, I'll change it. > I flag that one up as a general comment - don't feel you need to change > it if CIRC_* works in your case. CIRC_* does wor

Re: [PATCH 6/7] tty/powerpc: introduce the ePAPR embedded hypervisor byte channel driver

2011-05-19 Thread Alan Cox
> Ok, I can do that. > > > Depends if the functionality is useful in your environment or not > > It is, but I'd like to add it later so that I can make the 2.6.40 window (if > it > isn't already too late). Seems sensible. Alan ___ Linuxppc-dev mailin

Re: [PATCH] powerpc/e5500: set non-base IVORs

2011-05-19 Thread Scott Wood
On Thu, 19 May 2011 00:41:29 -0500 Kumar Gala wrote: > > On May 9, 2011, at 4:26 PM, Scott Wood wrote: > > > Without this, we attempt to use doorbells for IPIs, and end up > > branching to some bad address. Plus, even for the exceptions > > we don't implement, it's good to handle it and get a

Re: [PATCH 6/7] tty/powerpc: introduce the ePAPR embedded hypervisor byte channel driver

2011-05-19 Thread Greg KH
On Thu, May 19, 2011 at 10:54:03AM -0500, Timur Tabi wrote: > > Depends if the functionality is useful in your environment or not > > It is, but I'd like to add it later so that I can make the 2.6.40 window (if > it > isn't already too late). It's too late, it needed to be in linux-next _before_

Re: [PATCH v2 0/7] Consolidate sdhci pltfm & OF drivers and get them self registered

2011-05-19 Thread Shawn Guo
Hi Wolfram, On Thu, May 19, 2011 at 11:40:46AM +0200, Wolfram Sang wrote: > Hi Shawn, > > > Changes since v1: > > * Rebase on cjb's mmc-next tree > > Is it maybe possible that you get access to > http://opensource.freescale.com/git or another machine? A branch to pull > from would be more conve

Re: [PATCH 6/7] tty/powerpc: introduce the ePAPR embedded hypervisor byte channel driver

2011-05-19 Thread Timur Tabi
Alan Cox wrote: >> > + /* Pass the received data to the tty layer. Note that this >> > + * function calls tty_buffer_request_room(), so I'm not sure if >> > + * we should have also called tty_buffer_request_room(). >> > + */ >> > + ret = tty_insert_f

Re: [PATCH RFCv7 0/2] CARMA Board Support

2011-05-19 Thread Ira W. Snyder
On Thu, May 19, 2011 at 02:13:41PM +1000, Benjamin Herrenschmidt wrote: > On Fri, 2011-02-11 at 15:34 -0800, Ira W. Snyder wrote: > > Hello everyone, > > > > This is the seventh posting of these drivers, taking into account comments > > from earlier postings. I've made sure that the drivers both p

Re: [PATCH 6/7] tty/powerpc: introduce the ePAPR embedded hypervisor byte channel driver

2011-05-19 Thread Timur Tabi
Greg KH wrote: > It's too late, it needed to be in linux-next _before_ the window opened. > > sorry, Curses! Foiled again! Well, then I'd like to get this patchset fixed up and approved soon after the window closes, so that there's no excuse for missing 2.6.41. -- Timur Tabi Linux kernel deve

Re: [PATCH 6/7] tty/powerpc: introduce the ePAPR embedded hypervisor byte channel driver

2011-05-19 Thread Timur Tabi
Alan Cox wrote: > You really also need a hangup method so vhangup() does the right thing > and you can securely do logins etc and sessions on your console. As > you've got no hardware entangled in this and you already use tty_port > helpers the hangup helper will do the work for you. So all I need

[PATCH] Maple: register CPC925 EDAC device on all boards with CPC925

2011-05-19 Thread Dmitry Eremin-Solenikov
Currently Maple setup code creates cpc925_edac device only on Motorola ATCA-6101 blade. Make setup code check bridge revision and enable EDAC on all U3 bridges. Verified on Momentum MapleD (ppc970fx kit) board. Signed-off-by: Dmitry Eremin-Solenikov --- arch/powerpc/platforms/maple/setup.c |

Re: [PATCH v2 0/7] Consolidate sdhci pltfm & OF drivers and get them self registered

2011-05-19 Thread Wolfram Sang
Hi Shawn, > Should I go for v3 right now to address the patch applying problems > and that ESDHC_IMX build issue, or hold for a while to see if you > have more comments on v2? Please wait a little bit more. > And what is your position on patch #5 which merges esdhc imx and mpc > support into one

Re: [PATCH 6/7] tty/powerpc: introduce the ePAPR embedded hypervisor byte channel driver

2011-05-19 Thread Alan Cox
On Thu, 19 May 2011 11:31:32 -0500 Timur Tabi wrote: > Alan Cox wrote: > > You really also need a hangup method so vhangup() does the right thing > > and you can securely do logins etc and sessions on your console. As > > you've got no hardware entangled in this and you already use tty_port > > h

Re: [PATCH 5/8] powerpc: override dma_get_required_mask by platform hook and ops

2011-05-19 Thread Nishanth Aravamudan
On 19.05.2011 [17:43:56 +1000], Benjamin Herrenschmidt wrote: > On Wed, 2011-05-11 at 15:25 -0700, Nishanth Aravamudan wrote: > > From: Milton Miller > > > > The hook dma_get_required_mask is supposed to return the mask required > > by the platform to operate efficently. The generic version of >

Re: Kernel cannot see PCI device

2011-05-19 Thread Bjorn Helgaas
On Thu, May 19, 2011 at 6:41 AM, Prashant Bhole wrote: > On Wed, May 18, 2011 at 7:44 PM, Bjorn Helgaas wrote: >> On Wed, May 18, 2011 at 4:02 AM, Prashant Bhole >> wrote: >>> On Mon, May 2, 2011 at 10:21 AM, Prashant Bhole >>> wrote: I have a custom made powerpc 460EX board. On that

[11/71] hw_breakpoints, powerpc: Fix CONFIG_HAVE_HW_BREAKPOINT off-case in ptrace_set_debugreg()

2011-05-19 Thread Greg KH
2.6.38-stable review patch. If anyone has any objections, please let us know. -- From: Frederic Weisbecker commit 925f83c085e1bb08435556c5b4844a60de002e31 upstream. We make use of ptrace_get_breakpoints() / ptrace_put_breakpoints() to protect ptrace_set_debugreg() even if CONF

Re: [PATCH 1/3] mpt2sas: remove the use of writeq, since writeq is not atomic

2011-05-19 Thread Ingo Molnar
* Benjamin Herrenschmidt wrote: > On Wed, 2011-05-18 at 21:16 -0700, Roland Dreier wrote: > > On Wed, May 18, 2011 at 11:31 AM, Milton Miller wrote: > > > So the real question should be why is x86-32 supplying a broken writeq > > > instead of letting drivers work out what to do it when needed?

[PATCH 6/7] [v2] tty/powerpc: introduce the ePAPR embedded hypervisor byte channel driver

2011-05-19 Thread Timur Tabi
The ePAPR embedded hypervisor specification provides an API for "byte channels", which are serial-like virtual devices for sending and receiving streams of bytes. This driver provides Linux kernel support for byte channels via three distinct interfaces: 1) An early-console (udbg) driver. This pr

Re: [PATCH 3/5] v2 seccomp_filters: Enable ftrace-based system call filtering

2011-05-19 Thread Will Drewry
On Thu, May 19, 2011 at 7:22 AM, Steven Rostedt wrote: > On Wed, 2011-05-18 at 21:07 -0700, Will Drewry wrote: > >> Do event_* that return non-void exist in the tree at all now?  I've >> looked at the various tracepoint macros as well as some of the other >> handlers (trace_function, perf_tp_event

Re: [PATCH 3/7] [RFC] add support for BlueGene/P FPU

2011-05-19 Thread Michael Neuling
In message you wrote: > On Thu, May 19, 2011 at 12:58 AM, Michael Neuling wrote= > : > > Eric, > > > >> This patch adds save/restore register support for the BlueGene/P > >> double hummer FPU. > > > > What does this mean? =A0Needs more details here. > > > > Hi Mikey, > > any specific details yo

Unable to handle kernel paging request for data at address 0x00000000

2011-05-19 Thread Burton Samograd
Hello, I'm trying to get 2.6.38.6 up and running on my ppc880 board and I've run into a problem when the kernel is attempting to perform it's first exec (/sbin/init). I've tried to debug it as much as I can so I thought I would post this to see if anybody has any ideas or suggestions about wha

[PATCH 3/7] [RFC][V2] add support for BlueGene/P Double FPU

2011-05-19 Thread Eric Van Hensbergen
This patch adds save/restore register support for the BlueGene/P double FPU. Since there are two FPUs, we need to save and restore twice the registers. Fortunately BG/P gives us some opcodes to assist with that task. Signed-off-by: Eric Van Hensbergen --- arch/powerpc/include/asm/ppc-opcode.h

[PATCH 4/7] [RFC][V2] enable BGP_L1_WRITETHROUGH mode for BG/P

2011-05-19 Thread Eric Van Hensbergen
BG/P nodes need to be configured for writethrough to work in SMP configurations. This patch adds the right hooks in the MMU code to make sure BGP_L1_WRITETHROUGH configurations are setup for BG/P. Signed-off-by: Eric Van Hensbergen --- arch/powerpc/include/asm/mmu-44x.h |2 ++ arch/powe

Re: [PATCH 3/7] [RFC] add support for BlueGene/P FPU

2011-05-19 Thread Eric Van Hensbergen
Damnit Mikey, just after I hit send on [V2]. On Thu, May 19, 2011 at 4:36 PM, Michael Neuling wrote: > In message you wrote: >> On Thu, May 19, 2011 at 12:58 AM, Michael Neuling wrote= >> : >> > Eric, >> > >> >> This patch adds save/restore register support for the BlueGene/P >> >> double h

Re: Kernel cannot see PCI device

2011-05-19 Thread Benjamin Herrenschmidt
On Thu, 2011-05-19 at 11:58 -0600, Bjorn Helgaas wrote: > The scan below PCIX0 (bus 0001:00) doesn't find anything. You really > need a powerpc expert to help here, but in their absence, my guess > would be something's wrong with config space access, so I would start > by just adding some printks

Re: [PATCH 3/7] [RFC] add support for BlueGene/P FPU

2011-05-19 Thread Michael Neuling
In message you wrote: > Damnit Mikey, just after I hit send on [V2]. > > On Thu, May 19, 2011 at 4:36 PM, Michael Neuling wrote: > > In message you wrote= > : > >> On Thu, May 19, 2011 at 12:58 AM, Michael Neuling wr= > ote=3D > >> : > >> > Eric, > >> > > >> >> This patch adds save/restore

Re: Kernel cannot see PCI device

2011-05-19 Thread Bjorn Helgaas
On Thu, May 19, 2011 at 5:12 PM, Benjamin Herrenschmidt wrote: > On Thu, 2011-05-19 at 11:58 -0600, Bjorn Helgaas wrote: >> The scan below PCIX0 (bus 0001:00) doesn't find anything.  You really >> need a powerpc expert to help here, but in their absence, my guess >> would be something's wrong with

Re: [PATCH 3/7] [RFC] add support for BlueGene/P FPU

2011-05-19 Thread Eric Van Hensbergen
On Thu, May 19, 2011 at 6:16 PM, Michael Neuling wrote: > In message you wrote: >> On Thu, May 19, 2011 at 4:36 PM, Michael Neuling wrote: >> > In message you wrote= >> : >> >> On Thu, May 19, 2011 at 12:58 AM, Michael Neuling wr= >> ote=3D >> >> : >> >> > Eric, >> >> > >> >> >> This patch add

Re: [PATCH 2/7] [RFC] add bluegene entry to cputable

2011-05-19 Thread Benjamin Herrenschmidt
On Wed, 2011-05-18 at 16:24 -0500, Eric Van Hensbergen wrote: > Signed-off-by: Eric Van Hensbergen > --- > arch/powerpc/kernel/cputable.c | 14 ++ > 1 files changed, 14 insertions(+), 0 deletions(-) > > diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputable.c >

Re: [PATCH 5/7] [RFC] force 32-byte aligned kmallocs

2011-05-19 Thread Benjamin Herrenschmidt
On Wed, 2011-05-18 at 16:24 -0500, Eric Van Hensbergen wrote: > For BGP, it is convenient for 'kmalloc' to come back with 32-byte > aligned units for torus DMA > > Signed-off-by: Eric Van Hensbergen > --- > arch/powerpc/include/asm/page_32.h |2 +- > 1 files changed, 1 insertions(+), 1 delet

Re: [PATCH 6/7] [RFC] enable early TLBs for BG/P

2011-05-19 Thread Benjamin Herrenschmidt
On Wed, 2011-05-18 at 16:24 -0500, Eric Van Hensbergen wrote: > BG/P maps firmware with an early TLB That's a bit gross. How often do you call that firmware in practice ? Aren't you better off instead inserting a TLB entry for it when you call it instead ? A simple tlbsx. + tlbwe sequence would do

Re: [PATCH 3/7] [RFC] add support for BlueGene/P FPU

2011-05-19 Thread Michael Neuling
> >> >> > Eric, > >> >> > > >> >> >> This patch adds save/restore register support for the BlueGene/P > >> >> >> double hummer FPU. > >> >> > > >> >> > What does this mean? =3DA0Needs more details here. > >> >> > > >> > >> okay, I've changed it a bit in [V2], if you want more I can do my best. > >

Re: [PATCH 5/7] [RFC] force 32-byte aligned kmallocs

2011-05-19 Thread Eric Van Hensbergen
On Thu, May 19, 2011 at 7:36 PM, Benjamin Herrenschmidt wrote: > On Wed, 2011-05-18 at 16:24 -0500, Eric Van Hensbergen wrote: >> >> -#ifdef CONFIG_NOT_COHERENT_CACHE >> +#if defined(CONFIG_NOT_COHERENT_CACHE) || defined(CONFIG_BGP) >>  #define ARCH_DMA_MINALIGN    L1_CACHE_BYTES >>  #endif > > Is

Re: [PATCH 3/7] [RFC] add support for BlueGene/P FPU

2011-05-19 Thread Benjamin Herrenschmidt
On Thu, 2011-05-19 at 15:58 +1000, Michael Neuling wrote: > > + > > #define SAVE_2GPRS(n, base)SAVE_GPR(n, base); SAVE_GPR(n+1, base) > > #define SAVE_4GPRS(n, base)SAVE_2GPRS(n, base); SAVE_2GPRS(n+2, > > base) > > #define SAVE_8GPRS(n, base)SAVE_4GPRS(n, base); SAVE_4

Re: [PATCH 3/7] [RFC] add support for BlueGene/P FPU

2011-05-19 Thread Benjamin Herrenschmidt
On Thu, 2011-05-19 at 08:53 -0500, Eric Van Hensbergen wrote: > On Thu, May 19, 2011 at 12:58 AM, Michael Neuling wrote: > > Eric, > > > >> This patch adds save/restore register support for the BlueGene/P > >> double hummer FPU. > > > > What does this mean? Needs more details here. > > > > Hi Mi

Re: [PATCH 4/7] [RFC] enable L1_WRITETHROUGH mode for BG/P

2011-05-19 Thread Benjamin Herrenschmidt
On Wed, 2011-05-18 at 16:24 -0500, Eric Van Hensbergen wrote: > BG/P nodes need to be configured for writethrough to work in SMP > configurations. This patch adds the right hooks in the MMU code > to make sure L1_WRITETHROUGH configurations are setup for BG/P. > /* Storage attribute and access c

Re: [PATCH 7/7] [RFC] SMP support code

2011-05-19 Thread Benjamin Herrenschmidt
On Wed, 2011-05-18 at 16:24 -0500, Eric Van Hensbergen wrote: > +#ifdef CONFIG_BGP > +/* > + * The icbi instruction does not broadcast to all cpus in the ppc450 > + * processor used by Blue Gene/P. It is unlikely this problem will > + * be exhibited in other processors so this remains ifdef'ed fo

Re: [PATCH 2/7] [RFC] add bluegene entry to cputable

2011-05-19 Thread Eric Van Hensbergen
On Thu, May 19, 2011 at 7:35 PM, Benjamin Herrenschmidt wrote: > On Wed, 2011-05-18 at 16:24 -0500, Eric Van Hensbergen wrote: >> +             .dcache_bsize           = 32, >> +             .cpu_setup              = __setup_cpu_460gt, >                                            ^

Re: [PATCH] agp/uninorth: Fix lockups with radeon KMS and >1x.

2011-05-19 Thread Benjamin Herrenschmidt
On Thu, 2011-05-19 at 16:08 +0200, Michel Dänzer wrote: > From: Michel Dänzer > > This was based on a description by Ben Herrenschmidt: > > > I've removed that SBA reset from the normal TLB invalidation path and > > left it only once after turning AGP on. > > About six months ago, he said: > >

Re: [PATCH 6/7] [RFC] enable early TLBs for BG/P

2011-05-19 Thread Eric Van Hensbergen
On Thu, May 19, 2011 at 7:39 PM, Benjamin Herrenschmidt wrote: > On Wed, 2011-05-18 at 16:24 -0500, Eric Van Hensbergen wrote: >> BG/P maps firmware with an early TLB > > That's a bit gross. How often do you call that firmware in practice ? > Aren't you better off instead inserting a TLB entry for

Re: [PATCH 5/7] [RFC] force 32-byte aligned kmallocs

2011-05-19 Thread Benjamin Herrenschmidt
On Thu, 2011-05-19 at 19:47 -0500, Eric Van Hensbergen wrote: > On Thu, May 19, 2011 at 7:36 PM, Benjamin Herrenschmidt > wrote: > > On Wed, 2011-05-18 at 16:24 -0500, Eric Van Hensbergen wrote: > >> > >> -#ifdef CONFIG_NOT_COHERENT_CACHE > >> +#if defined(CONFIG_NOT_COHERENT_CACHE) || defined(CON

Re: [PATCH 2/7] [RFC] add bluegene entry to cputable

2011-05-19 Thread Benjamin Herrenschmidt
On Thu, 2011-05-19 at 20:08 -0500, Eric Van Hensbergen wrote: > On Thu, May 19, 2011 at 7:35 PM, Benjamin Herrenschmidt > wrote: > > On Wed, 2011-05-18 at 16:24 -0500, Eric Van Hensbergen wrote: > >> + .dcache_bsize = 32, > >> + .cpu_setup = __setup_c

Re: [PATCH 6/7] [RFC] enable early TLBs for BG/P

2011-05-19 Thread Benjamin Herrenschmidt
On Thu, 2011-05-19 at 20:21 -0500, Eric Van Hensbergen wrote: > On Thu, May 19, 2011 at 7:39 PM, Benjamin Herrenschmidt > wrote: > > On Wed, 2011-05-18 at 16:24 -0500, Eric Van Hensbergen wrote: > >> BG/P maps firmware with an early TLB > > > > That's a bit gross. How often do you call that firmwa

Re: [bg-linux] [PATCH 5/7] [RFC] force 32-byte aligned kmallocs

2011-05-19 Thread Kazutomo Yoshii
On 05/19/2011 07:36 PM, Benjamin Herrenschmidt wrote: On Wed, 2011-05-18 at 16:24 -0500, Eric Van Hensbergen wrote: For BGP, it is convenient for 'kmalloc' to come back with 32-byte aligned units for torus DMA Signed-off-by: Eric Van Hensbergen --- arch/powerpc/include/asm/page_32.h |

Re: [bg-linux] [PATCH 5/7] [RFC] force 32-byte aligned kmallocs

2011-05-19 Thread Benjamin Herrenschmidt
On Thu, 2011-05-19 at 20:32 -0500, Kazutomo Yoshii wrote: > > Actually DMA sends invalidate requests to the snoop unit(L2 level). > BGP SoC is a bit different from other 4xx base. Well, some other 44x also have a snooping L2 (more or less), but L1 is usually the problem. Cheers, Ben.

Re: [bg-linux] [PATCH 5/7] [RFC] force 32-byte aligned kmallocs

2011-05-19 Thread Benjamin Herrenschmidt
On Fri, 2011-05-20 at 12:08 +1000, Benjamin Herrenschmidt wrote: > On Thu, 2011-05-19 at 20:32 -0500, Kazutomo Yoshii wrote: > > > > Actually DMA sends invalidate requests to the snoop unit(L2 level). > > BGP SoC is a bit different from other 4xx base. > > Well, some other 44x also have a snoopi

Re: [bg-linux] [PATCH 5/7] [RFC] force 32-byte aligned kmallocs

2011-05-19 Thread Benjamin Herrenschmidt
On Thu, 2011-05-19 at 22:02 -0500, Kazutomo Yoshii wrote: > On 05/19/2011 09:13 PM, Benjamin Herrenschmidt wrote: > > On Fri, 2011-05-20 at 12:08 +1000, Benjamin Herrenschmidt wrote: > > > >> On Thu, 2011-05-19 at 20:32 -0500, Kazutomo Yoshii wrote: > >> > >>> Actually DMA sends invalidat

[GIT PULL] Please pull powerpc.git next branch

2011-05-19 Thread Kumar Gala
The following changes since commit f38aa708776aefd9e3ba7ec1211c07efe9fa3227: powerpc: Remove last piece of GEMINI (2011-05-19 17:32:29 +1000) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc.git next Bhaskar Upadhaya (1): powerpc: Addi

Re: [bg-linux] [PATCH 6/7] [RFC] enable early TLBs for BG/P

2011-05-19 Thread Benjamin Herrenschmidt
> Unfortunately, the firmware is also required: > - to configure Blue Gene Interrupt Controller(BIC) Can't we just write bare metal code for that ? > - to configure Torus DMA unit. e.g. fifo Same > - to configure global interrupt (even we don't use, we need to disable > some channel correctly)

linux-next: manual merge of the tip tree with the powerpc tree

2011-05-19 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in arch/powerpc/kernel/smp.c between commit 23d72bfd8f9f ("powerpc: Consolidate ipi message mux and demux") from the powerpc tree and commit 184748cc50b2 ("sched: Provide scheduler_ipi() callback in response to smp_send_reschedule()")

Re: [PATCH 2/2][v3] rapidio, powerpc/85xx: Error interrupt handler for sRIO.

2011-05-19 Thread Kumar Gala
Alex, What are we doing with this patch? - k On Dec 3, 2010, at 12:04 PM, Bounine, Alexandre wrote: > I think they should follow the previous two that are in Kumar’s tree. > Probably Kumar may give you a better timeline estimate for this. > > Alex. > > From: linuxppc-dev-bounces+alexandre.

Re: [GIT PULL] Please pull powerpc.git next branch

2011-05-19 Thread Kumar Gala
On May 19, 2011, at 10:31 PM, Kumar Gala wrote: > The following changes since commit f38aa708776aefd9e3ba7ec1211c07efe9fa3227: > > powerpc: Remove last piece of GEMINI (2011-05-19 17:32:29 +1000) > > are available in the git repository at: > git://git.kernel.org/pub/scm/linux/kernel/git/galak

RE: [PATCH] powerpc/85xx: Save and restore pcie ATMU windows for PM

2011-05-19 Thread Kushwaha Prabhakar-B32579
> -Original Message- > From: Kumar Gala [mailto:ga...@kernel.crashing.org] > Sent: Thursday, May 19, 2011 6:53 PM > To: Kushwaha Prabhakar-B32579 > Cc: linuxppc-dev@lists.ozlabs.org; meet2pra...@gmail.com; Jiang Yutang- > B14898 > Subject: Re: [PATCH] powerpc/85xx: Save and restore pcie A

Re: [PATCH] powerpc/85xx: Save and restore pcie ATMU windows for PM

2011-05-19 Thread Kumar Gala
On May 19, 2011, at 11:41 PM, Kushwaha Prabhakar-B32579 wrote: > > >> -Original Message- >> From: Kumar Gala [mailto:ga...@kernel.crashing.org] >> Sent: Thursday, May 19, 2011 6:53 PM >> To: Kushwaha Prabhakar-B32579 >> Cc: linuxppc-dev@lists.ozlabs.org; meet2pra...@gmail.com; Jiang Yut

Re: [PATCH] powerpc/85xx: Save and restore pcie ATMU windows for PM

2011-05-19 Thread Kumar Gala
On May 19, 2011, at 11:41 PM, Kushwaha Prabhakar-B32579 wrote: > > >> -Original Message- >> From: Kumar Gala [mailto:ga...@kernel.crashing.org] >> Sent: Thursday, May 19, 2011 6:53 PM >> To: Kushwaha Prabhakar-B32579 >> Cc: linuxppc-dev@lists.ozlabs.org; meet2pra...@gmail.com; Jiang Yut

Re: [PATCH] Powerpc/fsl_lbc: Add workaround for ELBC-A001 erratum

2011-05-19 Thread Kumar Gala
On May 19, 2011, at 5:48 AM, Shengzhou Liu wrote: > Simultaneous FCM and GPCM or UPM operation may erroneously trigger > bus monitor timeout. > > Set the local bus monitor timeout value to the maximum by setting > LBCR[BMT] = 0 and LBCR[BMTPS] = 0xF. > > Signed-off-by: Shengzhou Liu > Signed-o

RE: [PATCH] powerpc/85xx: Save and restore pcie ATMU windows for PM

2011-05-19 Thread Kushwaha Prabhakar-B32579
> -Original Message- > From: Kumar Gala [mailto:ga...@kernel.crashing.org] > Sent: Friday, May 20, 2011 10:19 AM > To: Kushwaha Prabhakar-B32579 > Cc: linuxppc-dev@lists.ozlabs.org; meet2pra...@gmail.com; Jiang Yutang- > B14898 > Subject: Re: [PATCH] powerpc/85xx: Save and restore pcie AT

linux-next: build warning after merge of the final tree (tip/powerpc tree related)

2011-05-19 Thread Stephen Rothwell
Hi all, After merging the final tree, today's linux-next build (powerpc allnoconfig) produced these warnings: kernel/time/clocksource.c: In function '__clocksource_updatefreq_scale': kernel/time/clocksource.c:655: warning: comparison of distinct pointer types lacks a cast kernel/time/clocksource

Re: [PATCH] powerpc/85xx: Save and restore pcie ATMU windows for PM

2011-05-19 Thread Kumar Gala
On May 20, 2011, at 12:01 AM, Kushwaha Prabhakar-B32579 wrote: > > >> -Original Message- >> From: Kumar Gala [mailto:ga...@kernel.crashing.org] >> Sent: Friday, May 20, 2011 10:19 AM >> To: Kushwaha Prabhakar-B32579 >> Cc: linuxppc-dev@lists.ozlabs.org; meet2pra...@gmail.com; Jiang Yuta

Re: [bg-linux] [PATCH 5/7] [RFC] force 32-byte aligned kmallocs

2011-05-19 Thread Kazutomo Yoshii
On 05/19/2011 09:13 PM, Benjamin Herrenschmidt wrote: On Fri, 2011-05-20 at 12:08 +1000, Benjamin Herrenschmidt wrote: On Thu, 2011-05-19 at 20:32 -0500, Kazutomo Yoshii wrote: Actually DMA sends invalidate requests to the snoop unit(L2 level). BGP SoC is a bit different from other 4x

Re: [bg-linux] [PATCH 6/7] [RFC] enable early TLBs for BG/P

2011-05-19 Thread Kazutomo Yoshii
On 05/19/2011 08:54 PM, Benjamin Herrenschmidt wrote: On Thu, 2011-05-19 at 20:21 -0500, Eric Van Hensbergen wrote: On Thu, May 19, 2011 at 7:39 PM, Benjamin Herrenschmidt wrote: On Wed, 2011-05-18 at 16:24 -0500, Eric Van Hensbergen wrote: BG/P maps firmware with an early

Re: linux-next: manual merge of the tip tree with the powerpc tree

2011-05-19 Thread Benjamin Herrenschmidt
On Fri, 2011-05-20 at 14:14 +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the tip tree got a conflict in > arch/powerpc/kernel/smp.c between commit 23d72bfd8f9f ("powerpc: > Consolidate ipi message mux and demux") from the powerpc tree and commit > 184748cc50b2 ("sched:

[PATCH 02/14] powerpc: Add a defconfig for 'corenet' 32-bit platforms

2011-05-19 Thread Kumar Gala
The e500mc and e5500 based cores are only available on corenet based SoCs. We use this name for the P204x, P3040, P4040, P4080, P50x0 SoCs and any future processors in these families. Signed-off-by: Kumar Gala --- arch/powerpc/configs/corenet32_smp_defconfig | 183 ++ 1

  1   2   >