Re: [PATCH 2/2] powerpc/mm: Fix memory_block_size_bytes() for non-pseries

2011-07-01 Thread Benjamin Herrenschmidt
On Fri, 2011-07-01 at 14:15 +0200, Ingo Molnar wrote: > > +/* WARNING: This is going to override the generic definition whenever > > + * pseries is built-in regardless of what platform is active at boot > > + * time. This is fine for now as this is the only "option" and it > > + * should work ever

Re: [PATCH 1/2] mm: Move definition of MIN_MEMORY_BLOCK_SIZE to a header

2011-07-01 Thread Benjamin Herrenschmidt
On Fri, 2011-07-01 at 14:14 +0200, Ingo Molnar wrote: > * Benjamin Herrenschmidt wrote: > > > The macro MIN_MEMORY_BLOCK_SIZE is currently defined twice in two .c > > files, and I need it in a third one to fix a powerpc bug, so let's > > first move it into a header > > > > Signed-off-by: Benjami

Re: [PATCH v3 1/3] driver core: Add ability for arch code to setup pdev_archdata

2011-07-01 Thread Greg KH
On Thu, Jun 23, 2011 at 06:33:57AM -0500, Kumar Gala wrote: > On some architectures we need to setup pdev_archdata before we add the > device. Waiting til a bus_notifier is too late since we might need the > pdev_archdata in the bus notifier. One example is setting up of dma_mask > pointers such

Re: pci_pcie_cap invalid on AER/EEH enabled PPC?

2011-07-01 Thread Richard A Lary
On 7/1/2011 12:02 PM, Jon Mason wrote: On Fri, Jul 1, 2011 at 1:30 PM, Richard A Lary wrote: On 7/1/2011 8:24 AM, Jon Mason wrote: I recently sent out a number of patches to migrate drivers calling `pci_find_capability(pdef, PCI_CAP_ID_EXP)` to pci_pcie_cap. This function takes uses a PCI-E

Re: [PATCH 10/17] KVM: PPC: Add support for Book3S processors in hypervisor mode

2011-07-01 Thread Alexander Graf
On 01.07.2011, at 20:37, Dave Hansen wrote: > On Wed, 2011-06-29 at 20:21 +1000, Paul Mackerras wrote: >> +struct kvmppc_pginfo { >> +unsigned long pfn; >> +atomic_t refcnt; >> +}; > > I only see this refcnt inc'd in one spot and never decremented or read. > Is the refcnt just the numbe

Re: [PATCH] powerpc: enable access to HT Host-Bridge on Maple

2011-07-01 Thread Dmitry Eremin-Solenikov
Hello, Thanks for the review. On 7/1/11, Segher Boessenkool wrote: >> CPC925/CPC945 use special window to access host bridge >> functionality of >> u3-ht. Provide a way to access this device. > > Why? Is anything going to use it? Hmmm. Why not? Initially I stumbled upon the fact that powermac

Re: pci_pcie_cap invalid on AER/EEH enabled PPC?

2011-07-01 Thread Jon Mason
On Fri, Jul 1, 2011 at 1:30 PM, Richard A Lary wrote: > On 7/1/2011 8:24 AM, Jon Mason wrote: >> >> I recently sent out a number of patches to migrate drivers calling >> `pci_find_capability(pdef, PCI_CAP_ID_EXP)` to pci_pcie_cap.  This >> function takes uses a PCI-E capability offset that was det

Re: [PATCH 10/17] KVM: PPC: Add support for Book3S processors in hypervisor mode

2011-07-01 Thread Dave Hansen
On Wed, 2011-06-29 at 20:21 +1000, Paul Mackerras wrote: > +struct kvmppc_pginfo { > + unsigned long pfn; > + atomic_t refcnt; > +}; I only see this refcnt inc'd in one spot and never decremented or read. Is the refcnt just the number of hptes we have for this particular page at the momen

Re: pci_pcie_cap invalid on AER/EEH enabled PPC?

2011-07-01 Thread Richard A Lary
On 7/1/2011 8:24 AM, Jon Mason wrote: I recently sent out a number of patches to migrate drivers calling `pci_find_capability(pdef, PCI_CAP_ID_EXP)` to pci_pcie_cap. This function takes uses a PCI-E capability offset that was determined by calling pci_find_capability during the PCI bus walking.

Re: [PATCH 0/17] Hypervisor-mode KVM on POWER7 and PPC970

2011-07-01 Thread Alexander Graf
On 29.06.2011, at 12:15, Paul Mackerras wrote: > The first patch of the following series is a pure bug-fix for 32-bit > kernels. > > The remainder of the following series of patches enable KVM to exploit > the hardware hypervisor mode on 64-bit Power ISA Book3S machines. At > present, POWER7 an

Re: [PATCH 7/7] [v6] drivers/virt: introduce Freescale hypervisor management driver

2011-07-01 Thread Arnd Bergmann
On Friday 01 July 2011, Tabi Timur-B04825 wrote: > On Thu, Jun 9, 2011 at 4:04 PM, Arnd Bergmann wrote: > > On Thursday 09 June 2011 22:52:06 Timur Tabi wrote: > >> Add the drivers/virt directory, which houses drivers that support > >> virtualization environments, and add the Freescale hypervisor

Re: [PATCH] powerpc: enable access to HT Host-Bridge on Maple

2011-07-01 Thread Segher Boessenkool
CPC925/CPC945 use special window to access host bridge functionality of u3-ht. Provide a way to access this device. Why? Is anything going to use it? +static int u3_ht_root_read_config(struct pci_controller *hose, u8 offset, + int len, u32 *val) +{ +

Re: [PATCH 1/2] mtd/nand : don't free the global data fsl_lbc_ctrl_dev->nand in fsl_elbc_chip_remove()

2011-07-01 Thread Scott Wood
On Fri, 1 Jul 2011 08:40:21 +0300 Artem Bityutskiy wrote: > On Thu, 2011-06-30 at 11:26 -0500, Scott Wood wrote: > > If the NULL assignment is dropped, consider what happens if the > > fsl_elbc_nand module is removed then reinserted. On reinsertion, it > > will > > see a non-NULL fsl_lbc_ctrl_de

pci_pcie_cap invalid on AER/EEH enabled PPC?

2011-07-01 Thread Jon Mason
I recently sent out a number of patches to migrate drivers calling `pci_find_capability(pdef, PCI_CAP_ID_EXP)` to pci_pcie_cap. This function takes uses a PCI-E capability offset that was determined by calling pci_find_capability during the PCI bus walking. In response to one of the patches, Jame

Re: Serial messages on boot

2011-07-01 Thread Guillaume Dargaud
> in the most recent versions of the [xilinx powerpc] kernel, there are no > boot messages printed, which make it hard to debug early problems. What > has changed and what can I do in order to get all the habitual boot > messages on the serial port ? My bad, as usual: wrong console in the dts file

Serial messages on boot

2011-07-01 Thread Guillaume Dargaud
Hello all, in the most recent versions of the [xilinx powerpc] kernel, there are no boot messages printed, which make it hard to debug early problems. What has changed and what can I do in order to get all the habitual boot messages on the serial port ? -- Guillaume Dargaud http://www.gdargaud

Re: [PATCH 2/2] powerpc/mm: Fix memory_block_size_bytes() for non-pseries

2011-07-01 Thread Ingo Molnar
* Benjamin Herrenschmidt wrote: > Just compiling pseries in the kernel causes it to override > memory_block_size_bytes() regardless of what is the runtime > platform. > > This cleans up the implementation of that function, fixing > a bug or two while at it, so that it's harmless (and potentiall

Re: [PATCH 1/2] mm: Move definition of MIN_MEMORY_BLOCK_SIZE to a header

2011-07-01 Thread Ingo Molnar
* Benjamin Herrenschmidt wrote: > The macro MIN_MEMORY_BLOCK_SIZE is currently defined twice in two .c > files, and I need it in a third one to fix a powerpc bug, so let's > first move it into a header > > Signed-off-by: Benjamin Herrenschmidt > --- > > Ingo, Thomas: Who needs to ack the x86

Re: [PATCH 05/17] KVM: PPC: Deliver program interrupts right away instead of queueing them

2011-07-01 Thread Alexander Graf
On 29.06.2011, at 12:18, Paul Mackerras wrote: > Doing so means that we don't have to save the flags anywhere and gets > rid of the last reference to to_book3s(vcpu) in arch/powerpc/kvm/book3s.c. > > Doing so is OK because a program interrupt won't be generated at the > same time as any other sy

Re: [BUG?]3.0-rc4+ftrace+kprobe: set kprobe at instruction 'stwu' lead to system crash/freeze

2011-07-01 Thread tiejun.chen
Yong Zhang wrote: > On Mon, Jun 27, 2011 at 6:01 PM, Ananth N Mavinakayanahalli > wrote: >> On Sun, Jun 26, 2011 at 11:47:13PM +0900, Masami Hiramatsu wrote: >>> (2011/06/24 19:29), Steven Rostedt wrote: On Fri, 2011-06-24 at 17:21 +0800, Yong Zhang wrote: > Hi, > > When I use kpr

Re: [RFC PATCH 17/17] KVM: PPC: Add an ioctl for userspace to select which platform to emulate

2011-07-01 Thread Alexander Graf
On 01.07.2011, at 12:09, Paul Mackerras wrote: > On Thu, Jun 30, 2011 at 05:04:23PM +0200, Alexander Graf wrote: >> On 06/29/2011 12:41 PM, Paul Mackerras wrote: >>> +struct kvm_ppc_set_platform { >>> + __u16 platform; /* defines the OS/hypervisor ABI */ >>> + __u16 guest_arch;

Re: [RFC PATCH 17/17] KVM: PPC: Add an ioctl for userspace to select which platform to emulate

2011-07-01 Thread Paul Mackerras
On Thu, Jun 30, 2011 at 05:04:23PM +0200, Alexander Graf wrote: > On 06/29/2011 12:41 PM, Paul Mackerras wrote: > >+struct kvm_ppc_set_platform { > >+__u16 platform; /* defines the OS/hypervisor ABI */ > >+__u16 guest_arch; /* e.g. decimal 206 for v2.06 */ > >+__u32 flags;

Re: [PATCH 01/17] KVM: PPC: Fix machine checks on 32-bit Book3S

2011-07-01 Thread Alexander Graf
On 29.06.2011, at 12:16, Paul Mackerras wrote: > Commit 69acc0d3ba ("KVM: PPC: Resolve real-mode handlers through > function exports") resulted in vcpu->arch.trampoline_lowmem and > vcpu->arch.trampoline_enter ending up with kernel virtual addresses > rather than physical addresses. This is OK o

linux tqm8260

2011-07-01 Thread bourkeb idir
hi everybody i'm trying to port linux in a tqm8260 fresscale card  with an mpc8260 cpu .i've already ported u-boot and it seems working but now i'm trying to cross compile a linux kernel 2.4.4 (which have a config file for tqm8260) and i always get trouble when i try to make a zImage . can any