[PATCH v12 08/15] powerpc/PCI: Keep resource idx order with bridge register number

2016-06-03 Thread Yinghai Lu
Same as sparc version. Make resource with consistent sequence like other arch or directly from pci_read_bridge_bases(), even when non-pref mmio is missing, or out of ordering in firmware reporting. Just hold i = 1 for non pref mmio, and i = 2 for pref mmio. Signed-off-by: Yinghai Lu Cc: linuxpp

Re: running qemu for powerpc (32bits) architecture

2016-06-03 Thread Scott Wood
On Mon, 2016-05-30 at 10:04 +0100, Marwa Hamza wrote: > hello everyone > I'm trying to run qemu for powerpc architecture but either > 1/ i got a black screen with this sentence " QEMU 2.4.0.1 monitor - type > help for more information" >(QEMU) > if i run this command ./ppc-s

[PATCH v12 02/15] PCI: Let pci_mmap_page_range() take resource address

2016-06-03 Thread Yinghai Lu
In 8c05cd08a7 ("PCI: fix offset check for sysfs mmapped files"), try to check exposed value with resource start/end in proc mmap path. |start = vma->vm_pgoff; |size = ((pci_resource_len(pdev, resno) - 1) >> PAGE_SHIFT) + 1; |pci_start = (mmap_api == PCI_MMAP_PROCFS) ? |

[PATCH v12 01/15] PCI: Let pci_mmap_page_range() take extra resource pointer

2016-06-03 Thread Yinghai Lu
This one is preparing patch for next one: PCI: Let pci_mmap_page_range() take resource addr We need to pass extra resource pointer to avoid searching that again for powerpc and microblaze prot set operation. Signed-off-by: Yinghai Lu Cc: linux-arm-ker...@lists.infradead.org Cc: linux-cris-ker.

[PATCH v12 09/15] powerpc/PCI: Add IORESOURCE_MEM_64 for 64-bit resource in OF parsing

2016-06-03 Thread Yinghai Lu
For device resource PREF bit setting under bridge 64-bit pref resource, we need to make sure only set PREF for 64bit resource. This patch set IORESOUCE_MEM_64 for 64bit resource during OF device resource flags parsing. Link: https://bugzilla.kernel.org/show_bug.cgi?id=96261 Link: https://bugzilla

Re: Status of DPAA integration for NXP QoriQ?

2016-06-03 Thread Scott Wood
On Mon, 2016-05-09 at 10:29 +0200, Sebastian Huber wrote: > Hello, > > the "fman" Ethernet driver was integrated in mainline Linux Dezember > 2015 ("drivers/net/ethernet/freescale/fman"). It seems that the other > parts, e.g. BMan, QMan ("drivers/soc/fsl/qbman") and basic DPAA Ethernet > suppor

Re: on a MPC8360 system, how can i read the *actual* bus frequencies?

2016-06-03 Thread Scott Wood
On Tue, 2016-05-10 at 17:11 -0400, Robert P. J. Day wrote: > bit of a conundrum here ... we have a legacy MPC8360 system here, on > which we installed linux built with wind river linux 8. we obviously > want to push the various bus frequencies to their max for best > performance, and the device t

Re: problem with cuImage.mpc834x_mds image

2016-06-03 Thread Scott Wood
On Fri, 2016-05-27 at 23:12 +0200, Giuseppe Lippolis wrote: > Dear All, > I'm trying with buildroot to build the linux-4.4.3 for an iomega 150d > machine mounting the mpc8347E sys. > Due the old U-Boot version is not possible to use the standard uImage, but > it is needed to set the cuImage target

Re: [PATCH V3 8/9] cpufreq: Keep policy->freq_table sorted in ascending order

2016-06-03 Thread Steve Muckle
On Fri, Jun 03, 2016 at 07:05:14PM +0530, Viresh Kumar wrote: ... > @@ -468,20 +469,15 @@ unsigned int acpi_cpufreq_fast_switch(struct > cpufreq_policy *policy, > struct acpi_cpufreq_data *data = policy->driver_data; > struct acpi_processor_performance *perf; > struct cpufreq_fre

Re: [PATCH v2 2/3] mm: Change the interface for __tlb_remove_page

2016-06-03 Thread kbuild test robot
Hi, [auto build test ERROR on arm/for-next] [also build test ERROR on v4.7-rc1 next-20160603] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Aneesh-Kumar-K-V/mm-hugetlb-Simplify-hugetlb-unmap

[PATCH V3 8/9] cpufreq: Keep policy->freq_table sorted in ascending order

2016-06-03 Thread Viresh Kumar
The drivers aren't required to provide a sorted frequency table today, and its not optimal to work on an unsorted frequency tables. To simplify and improve code performance, always keep policy->freq_table sorted in ascending order. Now that freq_table is sorted, update cpufreq_frequency_table_tar

Re: [PATCH v2 1/3] mm/hugetlb: Simplify hugetlb unmap

2016-06-03 Thread Aneesh Kumar K.V
Hi Andrew, The updated version includes a build fix for [PATCH 2/3. I also dropped the powerpc related changes from the series because that have dependencies against other patches not yet merged upstream. I am adding the same below for reference. From 1f0975adfd3138f3709b2dec8771065ddc38de40 Mon

[PATCH v2 1/3] mm/hugetlb: Simplify hugetlb unmap

2016-06-03 Thread Aneesh Kumar K.V
For hugetlb like THP (and unlike regular page), we do tlb flush after dropping ptl. Because of the above, we don't need to track force_flush like we do now. Instead we can simply call tlb_remove_page() which will do the flush if needed. No functionality change in this patch. Signed-off-by: Aneesh

[PATCH v2 3/3] mm/mmu_gather: Track page size with mmu gather and force flush if page size change

2016-06-03 Thread Aneesh Kumar K.V
This allows arch which need to do special handing with respect to different page size when flushing tlb to implement the same in mmu gather Signed-off-by: Aneesh Kumar K.V --- arch/arm/include/asm/tlb.h | 18 ++ arch/ia64/include/asm/tlb.h | 18 ++ arch/s390/incl

[PATCH v2 2/3] mm: Change the interface for __tlb_remove_page

2016-06-03 Thread Aneesh Kumar K.V
This update the generic and arch specific implementation to return true if we need to do a tlb flush. That means if a __tlb_remove_page indicate a flush is needed, the page we try to remove need to be tracked and added again after the flush. We need to track it because we have already update the pt

Re: [RFC v3 22/45] powerpc: dma-mapping: Use unsigned long for dma_attrs

2016-06-03 Thread Krzysztof Kozlowski
On 06/03/2016 01:56 PM, Michael Ellerman wrote: > On Thu, 2016-06-02 at 17:39 +0200, Krzysztof Kozlowski wrote: > >> diff --git a/arch/powerpc/platforms/cell/iommu.c >> b/arch/powerpc/platforms/cell/iommu.c >> index 0c2794d2b6c0..5d1a7ef3fdee 100644 >> --- a/arch/powerpc/platforms/cell/iommu.c >>

[GIT PULL] Please pull powerpc/linux.git powerpc-4.7-2 tag

2016-06-03 Thread Michael Ellerman
Hi Linus, Please pull the first batch of powerpc fixes for 4.7: The following changes since commit 1a695a905c18548062509178b98bc91e67510864: Linux 4.7-rc1 (2016-05-29 09:29:24 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git ta

Re: [RFC v3 22/45] powerpc: dma-mapping: Use unsigned long for dma_attrs

2016-06-03 Thread Michael Ellerman
On Thu, 2016-06-02 at 17:39 +0200, Krzysztof Kozlowski wrote: > diff --git a/arch/powerpc/platforms/cell/iommu.c > b/arch/powerpc/platforms/cell/iommu.c > index 0c2794d2b6c0..5d1a7ef3fdee 100644 > --- a/arch/powerpc/platforms/cell/iommu.c > +++ b/arch/powerpc/platforms/cell/iommu.c > @@ -166,7 +1

Re: powerpc/nvram: Fix an incorrect partition merge

2016-06-03 Thread Michael Ellerman
On Thu, 2015-10-12 at 07:30:02 UTC, xinhui wrote: > From: Pan Xinhui > > When we merge two contiguous partitions whose signatures are marked > NVRAM_SIG_FREE, We need update prev's length and checksum, then write it > to nvram, not cur's. So lets fix this mistake now. > > Also use memset instead

[PATCH 2/7] powerpc/mpc85xx: Update TMU device tree node for T1040/T1042

2016-06-03 Thread Jia Hongtao
SoC compatible string and endianness property are added according to the new bindings. Signed-off-by: Jia Hongtao --- arch/powerpc/boot/dts/fsl/t1040si-post.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/boot/dts/fsl/t1040si-post.dtsi b/arch/powerpc/bo

Re: [RFC v3 10/45] cris: dma-mapping: Use unsigned long for dma_attrs

2016-06-03 Thread Jesper Nilsson
On Thu, Jun 02, 2016 at 05:39:12PM +0200, Krzysztof Kozlowski wrote: > Split out subsystem specific changes for easier reviews. This will be > squashed with main commit. Acked-by: Jesper Nilsson > Signed-off-by: Krzysztof Kozlowski /^JN - Jesper Nilsson -- Jesper Nilsson -- jes

Re: [RFC v3 01/45] powerpc: dma-mapping: Don't hard-code the value of DMA_ATTR_WEAK_ORDERING

2016-06-03 Thread Krzysztof Kozlowski
On 06/02/2016 05:39 PM, Krzysztof Kozlowski wrote: > Hard-coded value of DMA_ATTR_WEAK_ORDERING is then compared with the > symbol. This will stop matching if the value of symbol is changed (when > switching DMA attributes to unsigned long). > > Signed-off-by: Krzysztof Kozlowski > --- > arch/p

Re: [RFC v3 02/45] dma-mapping: Use unsigned long for dma_attrs

2016-06-03 Thread Krzysztof Kozlowski
On 06/03/2016 09:17 AM, Geert Uytterhoeven wrote: > Hi Krzysztof, > > On Thu, Jun 2, 2016 at 5:39 PM, Krzysztof Kozlowski > wrote: >> --- a/include/linux/dma-mapping.h >> +++ b/include/linux/dma-mapping.h >> @@ -5,13 +5,25 @@ > >> +/** >> + * List of possible attributes associated with a DMA map

Re: [RFC v3 29/45] m68k: dma-mapping: Use unsigned long for dma_attrs

2016-06-03 Thread Geert Uytterhoeven
On Thu, Jun 2, 2016 at 5:39 PM, Krzysztof Kozlowski wrote: > Split out subsystem specific changes for easier reviews. This will be > squashed with main commit. > > Signed-off-by: Krzysztof Kozlowski Looks good. Acked-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert --

Re: [RFC v3 02/45] dma-mapping: Use unsigned long for dma_attrs

2016-06-03 Thread Geert Uytterhoeven
Hi Krzysztof, On Thu, Jun 2, 2016 at 5:39 PM, Krzysztof Kozlowski wrote: > --- a/include/linux/dma-mapping.h > +++ b/include/linux/dma-mapping.h > @@ -5,13 +5,25 @@ > +/** > + * List of possible attributes associated with a DMA mapping. The semantics > + * of each attribute should be defined in

[PATCH 5/7] arm64:dt:ls1043a: Add TMU device tree support for LS1043A

2016-06-03 Thread Jia Hongtao
Also add nodes and properties for thermal management support. Signed-off-by: Jia Hongtao --- arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts | 2 +- arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts | 2 +- arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi| 78 +++ 3 fil

[PATCH 7/7] thermal: qoriq: Add thermal management support

2016-06-03 Thread Jia Hongtao
This driver add thermal management support by enabling TMU (Thermal Monitoring Unit) on QorIQ platform. It's based on thermal of framework: - Trip points defined in device tree. - Cpufreq as cooling device registered in qoriq cpufreq driver. Signed-off-by: Jia Hongtao --- drivers/thermal/Kconfi

[PATCH 6/7] arm64:dt:ls2080a: Add TMU device tree support for LS2080A

2016-06-03 Thread Jia Hongtao
Also add nodes and properties for thermal management support. Signed-off-by: Jia Hongtao --- arch/arm64/boot/dts/freescale/fsl-ls2080a-qds.dts | 2 +- arch/arm64/boot/dts/freescale/fsl-ls2080a-rdb.dts | 2 +- arch/arm64/boot/dts/freescale/fsl-ls2080a-simu.dts | 2 +- arch/arm64/boot/dts/

[PATCH 3/7] powerpc/mpc85xx: Update TMU device tree node for T1023/T1024

2016-06-03 Thread Jia Hongtao
SoC compatible string and endianness property are added according to the new bindings. Signed-off-by: Jia Hongtao --- arch/powerpc/boot/dts/fsl/t1023si-post.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/boot/dts/fsl/t1023si-post.dtsi b/arch/powerpc/bo

[PATCH 1/7] dt-bindings: Update QorIQ TMU thermal bindings

2016-06-03 Thread Jia Hongtao
For different types of SoC the sensor id and endianness may vary. "#thermal-sensor-cells" is used to provide sensor id information. "little-endian" property is to tell the endianness of TMU. Signed-off-by: Jia Hongtao --- .../devicetree/bindings/thermal/qoriq-thermal.txt | 19 +--

[PATCH 4/7] arm:dt:ls1021a: Add TMU device tree support for LS1021A

2016-06-03 Thread Jia Hongtao
Also add nodes and properties for thermal management support. Signed-off-by: Jia Hongtao --- arch/arm/boot/dts/ls1021a.dtsi | 84 +- 1 file changed, 82 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.d

Re: [PATCH v5 1/6] qspinlock: powerpc support qspinlock

2016-06-03 Thread xinhui
On 2016年06月03日 12:33, Benjamin Herrenschmidt wrote: On Fri, 2016-06-03 at 12:10 +0800, xinhui wrote: On 2016年06月03日 09:32, Benjamin Herrenschmidt wrote: On Fri, 2016-06-03 at 11:32 +1000, Benjamin Herrenschmidt wrote: On Thu, 2016-06-02 at 17:22 +0800, Pan Xinhui wrote: Base code to enable