Re: Extending virtio_console to support multiple ports

2009-08-26 Thread Amit Shah
On (Thu) Aug 27 2009 [15:04:45], Michael Ellerman wrote: > On Wed, 2009-08-26 at 21:15 +0530, Amit Shah wrote: > > [cc'ing some people who have made some commits in hvc_console.c] > > > > On (Wed) Aug 26 2009 [16:57:18], Amit Shah wrote: > > > On (Tue) Aug 25 2009 [11:47:20], Amit Shah wrote: > >

Re: [Qemu-devel] Re: Extending virtio_console to support multiple ports

2009-08-26 Thread Amit Shah
On (Thu) Aug 27 2009 [14:07:03], Benjamin Herrenschmidt wrote: > On Wed, 2009-08-26 at 21:15 +0530, Amit Shah wrote: > > > > > > - Convert hvc's usage of spinlocks to mutexes. I've no idea how this > > > will play out; I'm no expert here. But I did try doing this and so far > > > it all looks

Re: [PATCH V2 3/3] powerpc/pci: Merge ppc32 and ppc64 versions of phb_scan()

2009-08-26 Thread Benjamin Herrenschmidt
On Wed, 2009-08-26 at 00:07 -0600, Grant Likely wrote: > From: Grant Likely > > The two versions are doing almost exactly the same thing. No need to > maintain them as separate files. This patch also has the side effect > of making the PCI device tree scanning code available to 32 bit powerpc >

Re: [RFC] Clock binding

2009-08-26 Thread Grant Likely
On Wed, Aug 26, 2009 at 10:09 PM, Benjamin Herrenschmidt wrote: > On Tue, 2009-08-18 at 14:21 +1000, Benjamin Herrenschmidt wrote: >> So here's a followup to my discussion about the clock API. > > Really nobody has a comment here ? :-) Not even Mitch ? Been wanting too.. a little swamped with kids

Re: Extending virtio_console to support multiple ports

2009-08-26 Thread Michael Ellerman
On Wed, 2009-08-26 at 21:15 +0530, Amit Shah wrote: > [cc'ing some people who have made some commits in hvc_console.c] > > On (Wed) Aug 26 2009 [16:57:18], Amit Shah wrote: > > On (Tue) Aug 25 2009 [11:47:20], Amit Shah wrote: > > > > > > Hello all, > > > > > > Here is a new iteration of the pat

Question : about difference with bdnz and bdnz+

2009-08-26 Thread HongWoo Lee
Hi ~ I found the code in the linux kernel. static __inline__ void clear_page(void *addr) { unsigned long lines, line_size; line_size = cpu_caches.dline_size; lines = cpu_caches.dlines_per_page; __asm__ __volatile__( "mtctr %1 # clear_page\n\ 1: dcbz0

Re: [PATCH] powerpc: Adjust base and index registers in Altivec macros

2009-08-26 Thread Michael Neuling
> On POWER6 systems RA needs to be the base and RB the index. > If they are reversed you take a misdirect hit. > > Signed-off-by: Mike Wolf Looks good thanks Mike! Acked-by: Michael Neuling > > > --- altivec.orig/arch/powerpc/include/asm/ppc_asm.h 2009-08-17 15:39:52.000

Re: [PATCH] powerpc: add cascade support to xilinx intc controller

2009-08-26 Thread Benjamin Herrenschmidt
On Tue, 2009-08-25 at 00:08 -0600, Grant Likely wrote: > From: Grant Likely > > This patch allows the Xilinx intc interrupt controller to be cascaded > instead of being the master irqhost. Useful when attaching an FPGA > to an SoC that has its own interrupt controller. Something doesn't look qu

Re: [RFC] Clock binding

2009-08-26 Thread Benjamin Herrenschmidt
On Tue, 2009-08-18 at 14:21 +1000, Benjamin Herrenschmidt wrote: > So here's a followup to my discussion about the clock API. Really nobody has a comment here ? :-) Not even Mitch ? Cheers, Ben. > I'm cooking up a patch that replace our current primitive implementation > in arch/powerpc/kernel/c

Re: Extending virtio_console to support multiple ports

2009-08-26 Thread Benjamin Herrenschmidt
On Wed, 2009-08-26 at 21:15 +0530, Amit Shah wrote: > > > - Convert hvc's usage of spinlocks to mutexes. I've no idea how this > > will play out; I'm no expert here. But I did try doing this and so far > > it all looks OK. No lockups, lockdep warnings, nothing. I have full > > debugging ena

Re: [PATCH] powerpc: Invoke kdump for system reset exception

2009-08-26 Thread Benjamin Herrenschmidt
On Mon, 2009-08-24 at 08:42 +0530, M. Mohan Kumar wrote: > Invoke kdump for system reset exception > > Dump restart operation from HMC raises system reset exception > (0x100) and xmon is invoked(even if kdump kernel is loaded). User has to > exit from xmon by saying 'Don't recover' to invoke kdump

Re: [v2 PATCH 2/2]: pseries: Implement Pseries Processor Idle idle module.

2009-08-26 Thread Benjamin Herrenschmidt
On Wed, 2009-08-26 at 13:27 +0200, Peter Zijlstra wrote: > On Wed, 2009-08-26 at 16:40 +0530, Arun R Bharadwaj wrote: > > +void (*pm_idle)(void); > > +EXPORT_SYMBOL_GPL(pm_idle); > > Seriously.. this caused plenty problems over on x86 and you're doing the > exact same dumb thing? I already said I

[git pull] Please pull powerpc.git merge branch

2009-08-26 Thread Benjamin Herrenschmidt
Hi Linus ! Here are a couple of last minute patches for 2.6.31. One is a regression fix (afaik) where a PS3 driver gets incorrectly loaded on other platforms and crashes, along with a PS3 defconfig update. The following changes since commit f415c413f458837bd0c27086b79aca889f9435e4: Linus Torvald

Re: [PATCH -v2 0/7] powerpc: use asm-generic/dma-mapping-common.h

2009-08-26 Thread Benjamin Herrenschmidt
On Thu, 2009-08-27 at 13:12 +1000, Benjamin Herrenschmidt wrote: > On Thu, 2009-08-13 at 10:55 +0200, Ingo Molnar wrote: > > > Ok! We could also stage it a bit (one or two weeks) in a separate > > branch and allow a rebase, should you find any bugs during testing? > > Allright so after various d

Re: [PATCH -v2 0/7] powerpc: use asm-generic/dma-mapping-common.h

2009-08-26 Thread Benjamin Herrenschmidt
On Thu, 2009-08-13 at 10:55 +0200, Ingo Molnar wrote: > Ok! We could also stage it a bit (one or two weeks) in a separate > branch and allow a rebase, should you find any bugs during testing? Allright so after various delays and sidetracking on my side, the patches have been in my -test branch f

Re: [PATCH] powerpc: Change archdata dma_data type to dma_addr_t

2009-08-26 Thread Michael Ellerman
On Wed, 2009-08-26 at 15:20 -0500, Becky Bruce wrote: > On Aug 26, 2009, at 9:08 AM, Michael Ellerman wrote: > > > On Wed, 2009-08-26 at 22:29 +1000, Benjamin Herrenschmidt wrote: > >> On Mon, 2009-08-24 at 21:48 +0200, Christoph Hellwig wrote: > >>> On Mon, Aug 24, 2009 at 11:17:14AM -0500, Becky

Re: PPC driver - generic bus width

2009-08-26 Thread Stephen Rothwell
On Thu, 27 Aug 2009 00:22:45 +1000 Michael Ellerman wrote: > > > struct device_info_t { > > void (*read)(); > > void (*write)(); These are not prototypes because there is no parameter list (use "void" for empty). > > }; > > > > static int __devinit device_probe() This isn't a prototy

Re: [PATCH] powerpc: Change archdata dma_data type to dma_addr_t

2009-08-26 Thread Becky Bruce
On Aug 26, 2009, at 9:08 AM, Michael Ellerman wrote: On Wed, 2009-08-26 at 22:29 +1000, Benjamin Herrenschmidt wrote: On Mon, 2009-08-24 at 21:48 +0200, Christoph Hellwig wrote: On Mon, Aug 24, 2009 at 11:17:14AM -0500, Becky Bruce wrote: Previously, this was specified as a void *, but that'

Re: Can't write value into memory ?(E500 V2)

2009-08-26 Thread Scott Wood
On Wed, Aug 26, 2009 at 10:39:24PM +0800, wilbur.chan wrote: > In an assemblely code , I invalided all the TLB entries except for > the entry we are executed in. > > After that , I setuped a 1:1 TLB entry mapping of 1GB . What is it you're trying to do? > At last , I wrote value 30 into the

Re: [PATCH V2 3/3] powerpc/pci: Merge ppc32 and ppc64 versions of phb_scan()

2009-08-26 Thread Grant Likely
On Wed, Aug 26, 2009 at 7:29 AM, Kumar Gala wrote: > > On Aug 26, 2009, at 1:07 AM, Grant Likely wrote: > >> +/** >> + * pci_scan_phb - Given a pci_controller, setup and scan the PCI bus >> + * @hose: Pointer to the PCI host controller instance structure >> + * @data: value to use for sysdata point

Re: Extending virtio_console to support multiple ports

2009-08-26 Thread Amit Shah
[cc'ing some people who have made some commits in hvc_console.c] On (Wed) Aug 26 2009 [16:57:18], Amit Shah wrote: > On (Tue) Aug 25 2009 [11:47:20], Amit Shah wrote: > > > > Hello all, > > > > Here is a new iteration of the patch series that implements a > > transport for guest and host communi

Re: [ewg] [PATCH] IB/ehca: Construct MAD redirect replies from request MAD

2009-08-26 Thread Hal Rosenstock
On 8/26/09, Joachim Fenkes wrote: > > The old code used a lot of hardcoded values, which might not be valid in > all > environments (especially routed fabrics or partitioned subnets). Copy as > much information as possible from the incoming request to prevent that. > > Signed-off-by: Joachim Fenke

Can't write value into memory ?(E500 V2)

2009-08-26 Thread wilbur.chan
In an assemblely code , I invalided all the TLB entries except for the entry we are executed in. After that , I setuped a 1:1 TLB entry mapping of 1GB . At last , I wrote value 30 into the physical address 0x0400, (also the virtual address because of my 1:1 mapping). However, it seemed f

Re: PPC driver - generic bus width

2009-08-26 Thread Michael Ellerman
On Wed, 2009-08-26 at 10:25 -0300, Alemao wrote: > Hi all, > > Im trying to develop a driver for my device, and its data bus can be 8, 16 > or 32 bits. This information is passed through the device tree source. > My code is like this: > > struct device_info_t { > void (*read)(); > voi

Re: [PATCH] powerpc: Change archdata dma_data type to dma_addr_t

2009-08-26 Thread Michael Ellerman
On Wed, 2009-08-26 at 22:29 +1000, Benjamin Herrenschmidt wrote: > On Mon, 2009-08-24 at 21:48 +0200, Christoph Hellwig wrote: > > On Mon, Aug 24, 2009 at 11:17:14AM -0500, Becky Bruce wrote: > > > Previously, this was specified as a void *, but that's not > > > large enough on 32-bit systems with

PPC driver - generic bus width

2009-08-26 Thread Alemao
Hi all, Im trying to develop a driver for my device, and its data bus can be 8, 16 or 32 bits. This information is passed through the device tree source. My code is like this: struct device_info_t { void (*read)(); void (*write)(); }; static int __devinit device_probe() {

Re: [PATCH V2 3/3] powerpc/pci: Merge ppc32 and ppc64 versions of phb_scan()

2009-08-26 Thread Kumar Gala
On Aug 26, 2009, at 1:07 AM, Grant Likely wrote: +/** + * pci_scan_phb - Given a pci_controller, setup and scan the PCI bus + * @hose: Pointer to the PCI host controller instance structure + * @data: value to use for sysdata pointer. ppc32 and ppc64 differ here + * + * Note: the 'data' poin

Re: [PATCH V2 2/3] powerpc/pci: move pci_64.c device tree scanning code into pci-common.c

2009-08-26 Thread Kumar Gala
On Aug 26, 2009, at 1:07 AM, Grant Likely wrote: From: Grant Likely The PCI device tree scanning code in pci_64.c is some useful functionality. It allows PCI devices to be described in the device tree instead of being probed for, which in turn allows pci devices to use all of the device

Re: [PATCH] powerpc: Change archdata dma_data type to dma_addr_t

2009-08-26 Thread Benjamin Herrenschmidt
On Mon, 2009-08-24 at 21:48 +0200, Christoph Hellwig wrote: > On Mon, Aug 24, 2009 at 11:17:14AM -0500, Becky Bruce wrote: > > Previously, this was specified as a void *, but that's not > > large enough on 32-bit systems with 36-bit physical > > addressing support. Change the type to dma_addr_t so

Re: [v2 PATCH 2/2]: pseries: Implement Pseries Processor Idle idle module.

2009-08-26 Thread Peter Zijlstra
On Wed, 2009-08-26 at 17:02 +0530, Arun R Bharadwaj wrote: > * Peter Zijlstra [2009-08-26 13:27:18]: > > > On Wed, 2009-08-26 at 16:40 +0530, Arun R Bharadwaj wrote: > > > +void (*pm_idle)(void); > > > +EXPORT_SYMBOL_GPL(pm_idle); > > > > Seriously.. this caused plenty problems over on x86 and y

[PATCH] IB/ehca: Construct MAD redirect replies from request MAD

2009-08-26 Thread Joachim Fenkes
The old code used a lot of hardcoded values, which might not be valid in all environments (especially routed fabrics or partitioned subnets). Copy as much information as possible from the incoming request to prevent that. Signed-off-by: Joachim Fenkes --- Hal, Jason -- here's the change I promis

Re: [v2 PATCH 2/2]: pseries: Implement Pseries Processor Idle idle module.

2009-08-26 Thread Peter Zijlstra
On Wed, 2009-08-26 at 16:40 +0530, Arun R Bharadwaj wrote: > +void (*pm_idle)(void); > +EXPORT_SYMBOL_GPL(pm_idle); Seriously.. this caused plenty problems over on x86 and you're doing the exact same dumb thing? ___ Linuxppc-dev mailing list Linuxppc-de

Re: [v2 PATCH 2/2]: pseries: Implement Pseries Processor Idle idle module.

2009-08-26 Thread Arun R Bharadwaj
* Peter Zijlstra [2009-08-26 13:27:18]: > On Wed, 2009-08-26 at 16:40 +0530, Arun R Bharadwaj wrote: > > +void (*pm_idle)(void); > > +EXPORT_SYMBOL_GPL(pm_idle); > > Seriously.. this caused plenty problems over on x86 and you're doing the > exact same dumb thing? > Hi Peter, Cpuidle assumes p

[v2 PATCH 2/2]: pseries: Implement Pseries Processor Idle idle module.

2009-08-26 Thread Arun R Bharadwaj
* Arun R Bharadwaj [2009-08-26 16:37:21]: This patch creates arch/powerpc/platforms/pseries/processor_idle.c, which implements the cpuidle infrastructure for pseries. It implements a pseries_cpuidle_loop() which would be the main idle loop called from cpu_idle(). It makes decision of entering eit

[v2 PATCH 1/2]: pseries: Enable cpuidle for pSeries.

2009-08-26 Thread Arun R Bharadwaj
* Arun R Bharadwaj [2009-08-26 16:37:21]: This patch enables the cpuidle option in Kconfig for pSeries. Currently cpuidle infrastructure is enabled only for x86. This code is almost completely borrowed from x86 to enable cpuidle for pSeries. Signed-off-by: Arun R Bharadwaj --- arch/powerpc/Kc

[v2 PATCH 0/2]: cpuidle: Introducing cpuidle infrastructure to POWER

2009-08-26 Thread Arun R Bharadwaj
Hi, "Cpuidle" is a CPU Power Management infrastrusture which helps manage idle CPUs in a clean and efficient manner. The architecture can register its driver (in this case, pseries_idle driver) so that it subscribes for cpuidle feature. Cpuidle has a set of governors (ladder and menu), which wil