Re: [PATCH v7 RFC 1/3] sparc: Break up monolithic iommu table/lock into finer graularity pools and lock

2015-03-29 Thread Benjamin Herrenschmidt
On Wed, 2015-03-25 at 13:34 -0400, Sowmini Varadhan wrote: Investigation of multithreaded iperf experiments on an ethernet interface show the iommu-lock as the hottest lock identified by lockstat, with something of the order of 21M contentions out of 27M acquisitions, and an average wait time

[PATCH V5 1/2] powerpc/mm/thp: Make page table walk safe against thp split/collapse

2015-03-29 Thread Aneesh Kumar K.V
We can disable a THP split or a hugepage collapse by disabling irq. We do send IPI to all the cpus in the early part of split/collapse, and disabling local irq ensure we don't make progress with split/collapse. If the THP is getting split we return NULL from find_linux_pte_or_hugepte(). For all

[PATCH V5 2/2] powerpc/mm/thp: Return pte address if we find trans_splitting.

2015-03-29 Thread Aneesh Kumar K.V
For THP that is marked trans splitting, we return the pte. This require the callers to handle the pmd_trans_splitting scenario, if they care. All the current callers are either looking at pfn or write_ok, hence we don't need to update them. Signed-off-by: Aneesh Kumar K.V

[PATCH 1/2] KVM: PPC: Use READ_ONCE when dereferencing pte_t pointer

2015-03-29 Thread Aneesh Kumar K.V
pte can get updated from other CPUs as part of multiple activities like THP split, huge page collapse, unmap. We need to make sure we don't reload the pte value again and again for different checks. Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com --- Note: This is posted

Re: [PATCH v3 1/3] powerpc/powernv: convert codes returned by OPAL calls

2015-03-29 Thread Michael Ellerman
On Fri, 2015-03-27 at 17:39 +0100, Cédric Le Goater wrote: OPAL has its own list of return codes. The patch provides a translation of such codes in errnos for the opal_sensor_read call, and possibly others if needed. Index: linux.git/arch/powerpc/platforms/powernv/opal.c

[PATCH] powerpc: Replace mem_init_done with slab_is_available()

2015-03-29 Thread Michael Ellerman
We have a powerpc specific global called mem_init_done which is set on boot once kmalloc can be called. But that's not *quite* true. We set it at the bottom of mem_init(), and rely on the fact that mm_init() calls kmem_cache_init() immediately after that, and nothing is running in parallel. So

[PATCH v2 4/4] powerpc/tm: Correct minor documentation typos

2015-03-29 Thread Sam Bobroff
Signed-off-by: Sam Bobroff sam.bobr...@au1.ibm.com --- v2: Discovered some typos while updating the documentation. Documentation/powerpc/transactional_memory.txt |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/powerpc/transactional_memory.txt

[PATCH v2 0/4] powerpc/tm: Abort syscalls in active transactions

2015-03-29 Thread Sam Bobroff
See the first patch for a description of the reasoning behind this change. This set includes the change, a kernel selftest for it and some slight refactoring of the selftest code. v2: Patch 1/4: powerpc/tm: Abort syscalls in active transactions Also update the failure code table. Patch 3/4:

Re: [PATCH 2/2] KVM: PPC: Remove page table walk helpers

2015-03-29 Thread Benjamin Herrenschmidt
On Mon, 2015-03-30 at 10:39 +0530, Aneesh Kumar K.V wrote: This patch remove helpers which we had used only once in the code. Limiting page table walk variants help in ensuring that we won't end up with code walking page table with wrong assumptions. Signed-off-by: Aneesh Kumar K.V

[PATCH 2/2] powerpc/powernv: Reboot when requested by firmware

2015-03-29 Thread Joel Stanley
Use orderly_reboot so userspace will to shut itself down via the reboot path. This is required for graceful reboot initiated by the BMC, such as when a user uses ipmitool to issue a 'chassis power cycle' command. Signed-off-by: Joel Stanley j...@jms.id.au ---

[PATCH 1/2] kernel/reboot.c: Add orderly_reboot for graceful reboot

2015-03-29 Thread Joel Stanley
The kernel has orderly_poweroff which allows the kernel to initiate a graceful shutdown of userspace, by running /sbin/poweroff. This adds orderly_reboot that will cause userspace to shut itself down by calling /sbin/reboot. This will be used for shutdown initiated by a system controller on

[PATCH 2/2] KVM: PPC: Remove page table walk helpers

2015-03-29 Thread Aneesh Kumar K.V
This patch remove helpers which we had used only once in the code. Limiting page table walk variants help in ensuring that we won't end up with code walking page table with wrong assumptions. Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com --- arch/powerpc/include/asm/pgtable.h

Re: [PATCH 3/3] selftests/powerpc: Add transactional syscall test

2015-03-29 Thread Sam Bobroff
On 24/03/15 13:02, Michael Ellerman wrote: On Tue, 2015-03-24 at 12:52 +1100, Sam Bobroff wrote: On 20/03/15 20:25, Anshuman Khandual wrote: On 03/19/2015 10:13 AM, Sam Bobroff wrote: Check that a syscall made during an active transaction will fail with the correct failure code and that one

Re: [PATCH 2/2] powerpc/powernv: Reboot when requested by firmware

2015-03-29 Thread Michael Ellerman
On Mon, 2015-03-30 at 12:45 +1030, Joel Stanley wrote: Use orderly_reboot so userspace will to shut itself down via the reboot path. This is required for graceful reboot initiated by the BMC, such as when a user uses ipmitool to issue a 'chassis power cycle' command. Signed-off-by: Joel

Re: [PATCH v3 3/3] powerpc/powernv: remove opal_sensor_mutex

2015-03-29 Thread Michael Ellerman
On Fri, 2015-03-27 at 17:39 +0100, Cédric Le Goater wrote: The opal sensor mutex protects the opal_sensor_read call which can return a OPAL_BUSY code on IBM Power systems if a previous request is in progress. This can be handled at user level with a retry. It can, but how does it actually

[PATCH v2 2/4] selftests/powerpc: Move get_auxv_entry() to harness.c

2015-03-29 Thread Sam Bobroff
Move get_auxv_entry() from pmu/lib.c up to harness.c in order to make it available to other tests. Signed-off-by: Sam Bobroff sam.bobr...@au1.ibm.com --- tools/testing/selftests/powerpc/harness.c | 47 + tools/testing/selftests/powerpc/pmu/lib.c | 47

[PATCH v2 1/4] powerpc/tm: Abort syscalls in active transactions

2015-03-29 Thread Sam Bobroff
This patch changes the syscall handler to doom (tabort) active transactions when a syscall is made and return immediately without performing the syscall. Currently, the system call instruction automatically suspends an active transaction which causes side effects to persist when an active

Re: [PATCH v3] powerpc: Use PFN_PHYS() to avoid truncating the physical address

2015-03-29 Thread Michael Ellerman
On Fri, 2015-03-27 at 13:07 -0500, Scott Wood wrote: On Fri, 2015-03-27 at 10:45 +1100, Michael Ellerman wrote: On Thu, 2015-03-26 at 10:31 -0500, Emil Medve wrote: Hello Kumar, On 03/26/2015 10:18 AM, Kumar Gala wrote: Why no commit message with what issue this change was

[PATCH v2 3/4] selftests/powerpc: Add transactional syscall test

2015-03-29 Thread Sam Bobroff
Check that a syscall made during an active transaction will fail with the correct failure code and that one made during a suspended transaction will succeed. Signed-off-by: Sam Bobroff sam.bobr...@au1.ibm.com --- v2: Further testing has shown that the success or failure of the transactions was

[PATCH 04/86] powerpc/pci: use uapi/linux/pci_ids.h directly

2015-03-29 Thread Michael S. Tsirkin
Header moved from linux/pci_ids.h to uapi/linux/pci_ids.h, use the new header directly so we can drop the wrapper in include/linux/pci_ids.h. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- arch/powerpc/platforms/embedded6xx/mpc10x.h | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 51/86] cxl: use uapi/linux/pci_ids.h directly

2015-03-29 Thread Michael S. Tsirkin
Header moved from linux/pci_ids.h to uapi/linux/pci_ids.h, use the new header directly so we can drop the wrapper in include/linux/pci_ids.h. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- drivers/misc/cxl/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 33/86] edac/pasemi: use uapi/linux/pci_ids.h directly

2015-03-29 Thread Michael S. Tsirkin
Header moved from linux/pci_ids.h to uapi/linux/pci_ids.h, use the new header directly so we can drop the wrapper in include/linux/pci_ids.h. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- drivers/edac/pasemi_edac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 43/86] macintosh: use uapi/linux/pci_ids.h directly

2015-03-29 Thread Michael S. Tsirkin
Header moved from linux/pci_ids.h to uapi/linux/pci_ids.h, use the new header directly so we can drop the wrapper in include/linux/pci_ids.h. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- drivers/macintosh/macio_asic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [V4, 1/4] KVM: PPC: Use READ_ONCE when dereferencing pte_t pointer

2015-03-29 Thread Aneesh Kumar K.V
Michael Ellerman m...@ellerman.id.au writes: On Thu, 2015-26-03 at 13:13:39 UTC, Aneesh Kumar K.V wrote: pte can get updated from other CPUs as part of multiple activities like THP split, huge page collapse, unmap. We need to make sure we don't reload the pte value again and again for

FW: Finally Working RadeonHD 6570 2Gb on Quad G5

2015-03-29 Thread luigi burdo
just need to share to developer the success we face today the Tursk is running in full 2D and 3D on Linux PPC (lubuntu 14.04.2 kernel 4.0.0-rc3) on Quad G5 Need to say a big thankyou to Christian (Xeno74) Zigotzky I share a video for the community

Re: [V4,1/4] KVM: PPC: Use READ_ONCE when dereferencing pte_t pointer

2015-03-29 Thread Benjamin Herrenschmidt
On Sun, 2015-03-29 at 22:16 +0530, Aneesh Kumar K.V wrote: Michael Ellerman m...@ellerman.id.au writes: On Thu, 2015-26-03 at 13:13:39 UTC, Aneesh Kumar K.V wrote: pte can get updated from other CPUs as part of multiple activities like THP split, huge page collapse, unmap. We need to make