Re: [PATCH v8 3/6] KVM: PPC: Book3S HV: Add support for H_RPT_INVALIDATE

2021-07-05 Thread Bharata B Rao
On Mon, Jul 05, 2021 at 02:42:33PM +1000, David Gibson wrote: > On Mon, Jun 21, 2021 at 02:20:00PM +0530, Bharata B Rao wrote: > > diff --git a/arch/powerpc/include/asm/mmu_context.h > > b/arch/powerpc/include/asm/mmu_context.h > > index 4bc45d3ed8b0..b44f291fc909 100644 > > --- a/arch/powerpc/inc

[PATCH] powerpc/64e: Fix system call illegal mtmsrd instruction

2021-07-05 Thread Nicholas Piggin
BookE does not have mtmsrd, switch to use wrteei to enable MSR[EE]. Reported-by: Christian Zigotzky Fixes: dd152f70bdc1 ("powerpc/64s: system call avoid setting MSR[RI] until we set MSR[EE]") Signed-off-by: Nicholas Piggin --- This wasn't caught by QEMU because it executes mtmsrd just fine on B

Re: [PATCH v15 06/12] swiotlb: Use is_swiotlb_force_bounce for swiotlb data bouncing

2021-07-05 Thread Christoph Hellwig
On Mon, Jul 05, 2021 at 08:03:52PM +0100, Will Deacon wrote: > So at this point, the AMD IOMMU driver does: > > swiotlb= (iommu_default_passthrough() || sme_me_mask) ? 1 : 0; > > where 'swiotlb' is a global variable indicating whether or not swiotlb > is in use. It's picked up a bit

Re: [FSL P50xx] IRQ issues

2021-07-05 Thread Nicholas Piggin
Excerpts from Nicholas Piggin's message of July 6, 2021 9:36 am: > Excerpts from Christian Zigotzky's message of July 6, 2021 4:49 am: >> Hi All, >> >> Our FSL P50xx machines don't boot anymore because of IRQ issues. [1] >> >> Please check the IRQ changes in the latest PowerPC updates 5.14-1. [2]

Re: [FSL P50xx] IRQ issues

2021-07-05 Thread Christian Zigotzky
Hi Nick, Thanks a lot for your patch! We will test it as soon as possible. You're right that this issue doesn't exist in a virtual e5500 QEMU machine. Have a nice day, Christian On 06 July 2021 at 01:36 am, Nicholas Piggin wrote: Excerpts from Christian Zigotzky's message of July 6, 2021 4:4

Re: [FSL P50xx] IRQ issues

2021-07-05 Thread Nicholas Piggin
Excerpts from Christian Zigotzky's message of July 6, 2021 4:49 am: > Hi All, > > Our FSL P50xx machines don't boot anymore because of IRQ issues. [1] > > Please check the IRQ changes in the latest PowerPC updates 5.14-1. [2] > > Thanks, > Christian > > [1] > https://forum.hyperion-entertainme

Re: Xorg doesn't work anymore after the latest DRM updates

2021-07-05 Thread Das, Nirmoy
Hi Christian, This issue looks similar to the one Mikel Rychliski fixed recently  : https://patchwork.freedesktop.org/patch/440791. Let us know if this helps. Regards, Nirmoy On 7/3/2021 9:30 AM, Christian Zigotzky wrote: Hi All, Xorg doesn't work anymore after the latest DRM updates. [1

Re: [PATCH v15 06/12] swiotlb: Use is_swiotlb_force_bounce for swiotlb data bouncing

2021-07-05 Thread Will Deacon
Hi Nathan, I may have just spotted something in these logs... On Fri, Jul 02, 2021 at 10:55:17PM -0700, Nathan Chancellor wrote: > [2.340956] pci :0c:00.1: Adding to iommu group 4 > [2.340996] pci :0c:00.2: Adding to iommu group 4 > [2.341038] pci :0c:00.3: Adding to iommu

[FSL P50xx] IRQ issues

2021-07-05 Thread Christian Zigotzky
Hi All, Our FSL P50xx machines don't boot anymore because of IRQ issues. [1] Please check the IRQ changes in the latest PowerPC updates 5.14-1. [2] Thanks, Christian [1] https://forum.hyperion-entertainment.com/download/file.php?id=2592&mode=view [2] https://git.kernel.org/pub/scm/linux/kern

Re: Xorg doesn't work anymore after the latest DRM updates

2021-07-05 Thread Christian Zigotzky
Hi Nirmoy, Many thanks for this information. We will test this patch asap. Have a nice day, Christian On 05 July 2021 at 10:26pm, Nirmoy wrote: > Hi Christian, > > > This issue looks similar to the one Mikel Rychliski fixed recently  : https://patchwork.freedesktop.org/patch/440791. Let us kno

[Bug 213079] [bisected] IRQ problems and crashes on a PowerMac G5 with 5.12.3

2021-07-05 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=213079 --- Comment #14 from Erhard F. (erhar...@mailbox.org) --- Thanks for the patch! I will try it as soon as I get to this G5 again. Don't know whether write access is necessary to trigger the bug. The past weekend I've seen it only by doing an 'emer

[PATCH] soc: fsl: qe: convert QE interrupt controller to platform_device

2021-07-05 Thread Maxim Kochetkov
Since 5.13 QE's ucc nodes can't get interrupts from devicetree: ucc@2000 { cell-index = <1>; reg = <0x2000 0x200>; interrupts = <32>; interrupt-parent = <&qeic>; }; Now fw_devlink expects driver to create and probe a

[Bug 213079] [bisected] IRQ problems and crashes on a PowerMac G5 with 5.12.3

2021-07-05 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=213079 --- Comment #13 from Oliver O'Halloran (ooh...@gmail.com) --- Hi, I got a loaner G5 with an NVMe drive, but I haven't been able to replicate the crash you're seeing. However, I think that's probably because I'm only reading from the NVMe since it

[Bug 213079] [bisected] IRQ problems and crashes on a PowerMac G5 with 5.12.3

2021-07-05 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=213079 --- Comment #12 from Oliver O'Halloran (ooh...@gmail.com) --- Created attachment 297755 --> https://bugzilla.kernel.org/attachment.cgi?id=297755&action=edit hackfix for MSI init -- You may reply to this email to add a comment. You are receivi

[PATCH] powerpc/non-smp: Inconditionaly call smp_mb() on switch_mm

2021-07-05 Thread Christophe Leroy
Commit 3ccfebedd8cf ("powerpc, membarrier: Skip memory barrier in switch_mm()") added some logic to skip the smp_mb() in switch_mm_irqs_off() before the call to switch_mmu_context(). However, on non SMP smp_mb() is just a compiler barrier and doing it inconditionaly is simpler than the logic used

Re: [powerpc][5.13.0-next-20210701] Kernel crash while running ltp(chdir01) tests

2021-07-05 Thread Sachin Sant
> On 04-Jul-2021, at 7:34 PM, Theodore Ts'o wrote: > > On Sat, Jul 03, 2021 at 12:55:09PM +0800, Zhang Yi wrote: >> Yeah, it sounds good to me. Do you want me to send the fix patch, or you >> modify your commit 8f9e16badb8fd in another email directly? > > I've gone ahead and made the changes;

Re: [powerpc][5.13.0-next-20210701] Kernel crash while running ltp(chdir01) tests

2021-07-05 Thread Jan Kara
On Sun 04-07-21 10:04:21, Theodore Ts'o wrote: > On Sat, Jul 03, 2021 at 12:55:09PM +0800, Zhang Yi wrote: > > Yeah, it sounds good to me. Do you want me to send the fix patch, or you > > modify your commit 8f9e16badb8fd in another email directly? > > I've gone ahead and made the changes; what do

[PATCH v3 4/4] powerpc/ptdump: Convert powerpc to GENERIC_PTDUMP

2021-07-05 Thread Christophe Leroy
This patch converts powerpc to the generic PTDUMP implementation. Signed-off-by: Christophe Leroy --- arch/powerpc/Kconfig| 2 + arch/powerpc/Kconfig.debug | 30 --- arch/powerpc/mm/Makefile| 2 +- arch/powerpc/mm/mmu_decl.h | 2 +- arch/powerpc/mm/ptdump

[PATCH v3 3/4] powerpc/ptdump: Reduce level numbers by 1 in note_page() and add p4d level

2021-07-05 Thread Christophe Leroy
Do the same as commit f8f0d0b6fa20 ("mm: ptdump: reduce level numbers by 1 in note_page()") and add missing p4d level. This will align powerpc to the users of generic ptdump. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/ptdump/8xx.c | 6 -- arch/powerpc/mm/ptdump/book3s64.c |

[PATCH v3 2/4] powerpc/ptdump: Remove unused 'page_size' parameter

2021-07-05 Thread Christophe Leroy
note_page_update_state() doesn't use page_size. Remove it. Could also be removed to note_page() but as a following patch will remove all current users of note_page(), just leave it as is for now. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/ptdump/ptdump.c | 6 +++--- 1 file changed, 3 i

[PATCH v3 1/4] powerpc/ptdump: Use DEFINE_SHOW_ATTRIBUTE()

2021-07-05 Thread Christophe Leroy
Use DEFINE_SHOW_ATTRIBUTE() instead of open coding open() and fops. Signed-off-by: Christophe Leroy --- v4: This series is following the partial merge of "Convert powerpc to GENERIC_PTDUMP". Patches 1 2 and 3 of that series were merged in 5.13. This updated series is a split of patch 4. The spli

Re: [PATCH v15 06/12] swiotlb: Use is_swiotlb_force_bounce for swiotlb data bouncing

2021-07-05 Thread Claire Chang
On Sat, Jul 3, 2021 at 1:55 PM Nathan Chancellor wrote: > > Hi Will and Robin, > > On Fri, Jul 02, 2021 at 04:13:50PM +0100, Robin Murphy wrote: > > On 2021-07-02 14:58, Will Deacon wrote: > > > Hi Nathan, > > > > > > On Thu, Jul 01, 2021 at 12:52:20AM -0700, Nathan Chancellor wrote: > > > > On 7/