[PATCH] powerpc/44x: fix ocm_block allocation

2013-12-06 Thread Ilia Mirkin
Allocate enough memory for the ocm_block structure, not just a pointer to it. Signed-off-by: Ilia Mirkin --- I have neither the hardware to test nor the toolchain to even build-test this. However this seems like a fairly obvious fix (and I have to wonder how this ever worked at all). Found with

Re: [PATCH] powernv: fix VFIO support with PHB3

2013-12-06 Thread Alexey Kardashevskiy
On 12/06/2013 11:21 PM, Thadeu Lima de Souza Cascardo wrote: > I have recently found out that no iommu_groups could be found under > /sys/ on a P8. That prevents PCI passthrough from working. > > During my investigation, I found out there seems to be a missing > iommu_register_group for PHB3. The

questions: second of the 2 pcie controllers does not scan the bus.

2013-12-06 Thread Ruchika
Hi, I am working with an p4080 based board. I am trying to get 2 PCIE controllers probed properly. In uboot I have no problems scanning and discovering what is connected to both controllers/PCI bridges. For both PCIE1/2 uboot sets up the Primary, secondary and Subordinate bus numbers to 0,

Re: [PATCH 1/6] powerpc: fix exception clearing in e500 SPE float emulation

2013-12-06 Thread Scott Wood
On Sat, 2013-11-23 at 01:22 +, Joseph S. Myers wrote: > On Fri, 22 Nov 2013, Scott Wood wrote: > > > This sounds like an incompatible change to userspace API. What about > > older glibc? What about user code that directly manipulates these bits > > rather than going through libc, or uses a l

Re: [PATCH 0/9 v2] vfio-pci: add support for Freescale IOMMU (PAMU)

2013-12-06 Thread Scott Wood
On Fri, 2013-12-06 at 12:30 -0700, Alex Williamson wrote: > On Fri, 2013-12-06 at 12:59 -0600, Scott Wood wrote: > > On Thu, 2013-12-05 at 22:11 -0600, Bharat Bhushan wrote: > > > > > > > -Original Message- > > > > From: Wood Scott-B07421 > > > > Sent: Friday, December 06, 2013 5:52 AM > >

Re: [PATCH RFC v4 2/5] dma: mpc512x: add support for peripheral transfers

2013-12-06 Thread Alexander Popov
2013/12/7 Lars-Peter Clausen : > On 12/06/2013 09:27 PM, Alexander Popov wrote: >> >> 2013/10/6 Gerhard Sittig : >>* struct dma_slave_config - dma slave channel runtime config >>* @direction: whether the data shall go in or out on this slave >>* channel, right now. DMA_TO_DEVICE and DMA

Re: [PATCH RFC v4 2/5] dma: mpc512x: add support for peripheral transfers

2013-12-06 Thread Lars-Peter Clausen
On 12/06/2013 09:27 PM, Alexander Popov wrote: 2013/10/6 Gerhard Sittig : On Thu, Oct 03, 2013 at 18:06 +0400, Alexander Popov wrote: + + spin_lock_irqsave(&mchan->lock, flags); + + if (cfg->direction == DMA_DEV_TO_MEM) { Note that cfg->direction is of a different type

Re: [PATCH RFC v4 2/5] dma: mpc512x: add support for peripheral transfers

2013-12-06 Thread Alexander Popov
2013/10/6 Gerhard Sittig : > On Thu, Oct 03, 2013 at 18:06 +0400, Alexander Popov wrote: >> + >> + spin_lock_irqsave(&mchan->lock, flags); >> + >> + if (cfg->direction == DMA_DEV_TO_MEM) { > > Note that cfg->direction is of a different type than > DMA_DEV_TO_MEM (of differen

Re: [PATCH] watchdog: mpc8xxx_wdt: MPC8xx is HW enabled

2013-12-06 Thread Scott Wood
On Mon, 2013-12-02 at 07:14 +0100, Wolfgang Denk wrote: > Dear Guenter, > > In message <529b9152.9090...@roeck-us.net> you wrote: > > On 11/30/2013 07:45 AM, Christophe Leroy wrote: > > > MPC8xx watchdog is enabled at startup by HW. > > > If the bootloader disables it, it cannot be reenabled. > >

Re: [PATCH 0/9 v2] vfio-pci: add support for Freescale IOMMU (PAMU)

2013-12-06 Thread Alex Williamson
On Fri, 2013-12-06 at 12:59 -0600, Scott Wood wrote: > On Thu, 2013-12-05 at 22:11 -0600, Bharat Bhushan wrote: > > > > > -Original Message- > > > From: Wood Scott-B07421 > > > Sent: Friday, December 06, 2013 5:52 AM > > > To: Bhushan Bharat-R65777 > > > Cc: Alex Williamson; linux-...@vger

Re: [PATCH 0/9 v2] vfio-pci: add support for Freescale IOMMU (PAMU)

2013-12-06 Thread Scott Wood
On Thu, 2013-12-05 at 22:17 -0600, Bharat Bhushan wrote: > > > -Original Message- > > From: Wood Scott-B07421 > > Sent: Friday, December 06, 2013 5:31 AM > > To: Bhushan Bharat-R65777 > > Cc: Alex Williamson; linux-...@vger.kernel.org; ag...@suse.de; Yoder Stuart- > > B08248; io...@lists.l

Re: [PATCH] DTS: DMA: Fix DMA3 interrupts

2013-12-06 Thread Scott Wood
On Fri, 2013-11-29 at 16:07 +0800, hongbo.zh...@freescale.com wrote: > From: Hongbo Zhang > > MPIC registers for internal interrupts is non-continous in address, any > internal interrupt number greater than 159 should be added (16+208) to work. > 16 is due to external interrupts as usual, 208 is

Re: [PATCH] powerpc 8xx: Loading kernels over 8Mbytes without CONFIG_PIN_TLB

2013-12-06 Thread Scott Wood
On Wed, 2013-11-27 at 12:04 +0100, Christophe Leroy wrote: > Today, the only way to load kernels whose size is greater than 8Mbytes is to > activate CONFIG_PIN_TLB. Otherwise, the physical memory initially mapped is > limited to 8Mbytes. This patch sets up 24 Mbytes of initial memory regardless > o

Re: [PATCH 0/9 v2] vfio-pci: add support for Freescale IOMMU (PAMU)

2013-12-06 Thread Scott Wood
On Thu, 2013-12-05 at 22:11 -0600, Bharat Bhushan wrote: > > > -Original Message- > > From: Wood Scott-B07421 > > Sent: Friday, December 06, 2013 5:52 AM > > To: Bhushan Bharat-R65777 > > Cc: Alex Williamson; linux-...@vger.kernel.org; ag...@suse.de; Yoder Stuart- > > B08248; io...@lists.l

Re: [PATCH V4 04/10] x86, perf: Add conditional branch filtering support

2013-12-06 Thread Andi Kleen
On Wed, Dec 04, 2013 at 04:02:36PM +0530, Anshuman Khandual wrote: > This patch adds conditional branch filtering support, > enabling it for PERF_SAMPLE_BRANCH_COND in perf branch > stack sampling framework by utilizing an available > software filter X86_BR_JCC. Newer Intel CPUs a hardware filter

[PATCH v2] powerpc: Fix PTE page address mismatch in pgtable ctor/dtor

2013-12-06 Thread Hong H. Pham
From: "Hong H. Pham" In pte_alloc_one(), pgtable_page_ctor() is passed an address that has not been converted by page_address() to the newly allocated PTE page. When the PTE is freed, __pte_free_tlb() calls pgtable_page_dtor() with an address to the PTE page that has been converted by page_addre

Re: [PATCH] powerpc: Fix PTE page address mismatch in pgtable ctor/dtor

2013-12-06 Thread Hong H. Pham
Hi Aneesh, On 12/06/2013 05:38 AM, Aneesh Kumar K.V wrote: can you also specifiy the config details here. ie, 4K page size functions are broken ? My PPC64 config has SMP and 4K page size enabled. I re-tested with 64K page size, and the problem is not present. I have added a note that this

Re: [PATCH V4 00/10] perf: New conditional branch filter

2013-12-06 Thread Arnaldo Carvalho de Melo
Em Thu, Dec 05, 2013 at 03:47:54PM +1100, Michael Ellerman escreveu: > On Wed, 2013-12-04 at 16:02 +0530, Anshuman Khandual wrote: > > This patchset is the re-spin of the original branch stack > > sampling > > patchset which introduced new PERF_SAMPLE_BRANCH_COND branch filter. This >

[PATCH] powernv: fix VFIO support with PHB3

2013-12-06 Thread Thadeu Lima de Souza Cascardo
I have recently found out that no iommu_groups could be found under /sys/ on a P8. That prevents PCI passthrough from working. During my investigation, I found out there seems to be a missing iommu_register_group for PHB3. The following patch seems to fix the problem. After applying it, I see iomm

Re: [PATCH -V3] mm: Move change_prot_numa outside CONFIG_ARCH_USES_NUMA_PROT_NONE

2013-12-06 Thread Mel Gorman
On Fri, Dec 06, 2013 at 12:08:22AM +0530, Aneesh Kumar K.V wrote: > From: "Aneesh Kumar K.V" > > change_prot_numa should work even if _PAGE_NUMA != _PAGE_PROTNONE. > On archs like ppc64 that don't use _PAGE_PROTNONE and also have > a separate page table outside linux pagetable, we just need to >

Re: [PATCH] powerpc: Fix PTE page address mismatch in pgtable ctor/dtor

2013-12-06 Thread Aneesh Kumar K.V
"Hong H. Pham" writes: > In pte_alloc_one(), pgtable_page_ctor() is passed an address that has > not been converted by page_address() to the newly allocated PTE page. > > When the PTE is freed, __pte_free_tlb() calls pgtable_page_dtor() > with an address to the PTE page that has been converted by

Re: [PATCH v3 00/11] Introduce pcim_enable_msi*() family helpers

2013-12-06 Thread Alexander Gordeev
On Tue, Nov 26, 2013 at 10:09:49AM +0100, Alexander Gordeev wrote: > Patches 3,4 - fixes for PowerPC pSeries platform [...] > PCI/MSI/pSeries: Fix wrong error code reporting > PCI/MSI/pSeries: Make quota traversing and requesting race-safe Hi Bjorn, The two unreviewed PowerPC patches is not