Re: linux-next: manual merge of the akpm-current tree with the powerpc tree

2019-02-24 Thread Stephen Rothwell
Hi all, On Mon, 25 Feb 2019 17:42:48 +1100 Stephen Rothwell wrote: > > Today's linux-next merge of the akpm-current tree got a conflict in: This was actually the akpm tree. -- Cheers, Stephen Rothwell pgp1M_ZXESUtL.pgp Description: OpenPGP digital signature

linux-next: manual merge of the akpm-current tree with the powerpc tree

2019-02-24 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: arch/powerpc/kernel/irq.c between commit: c8e409a33cf8 ("powerpc/irq: use memblock functions returning virtual address") and other patches in the powerpc tree from the powerpc tree and patch: "powerpc: use

linux-next: manual merge of the akpm-current tree with the powerpc tree

2019-02-24 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: arch/powerpc/kernel/setup_64.c between commits: c8e409a33cf8 ("powerpc/irq: use memblock functions returning virtual address") d608898abc74 ("powerpc: clean stack pointers naming") from the powerpc tree and

Re: [PATCH v2 04/16] KVM: PPC: Book3S HV: XIVE: add a control to initialize a source

2019-02-24 Thread Paul Mackerras
On Fri, Feb 22, 2019 at 12:28:28PM +0100, Cédric Le Goater wrote: > The associated HW interrupt source is simply allocated at the OPAL/HW > level and then MASKED. KVM only needs to know about its type: LSI or > MSI. I think it would be helpful to explain to the reader here that with XIVE, all

Re: [PATCH v2 14/16] KVM: PPC: Book3S HV: XIVE: add passthrough support

2019-02-24 Thread David Gibson
On Fri, Feb 22, 2019 at 12:28:38PM +0100, Cédric Le Goater wrote: > The KVM XICS-over-XIVE device and the proposed KVM XIVE native device > implement an IRQ space for the guest using the generic IPI interrupts > of the XIVE IC controller. These interrupts are allocated at the OPAL > level and

Re: [PATCH v2 16/16] KVM: PPC: Book3S HV: XIVE: clear the vCPU interrupt presenters

2019-02-24 Thread David Gibson
On Fri, Feb 22, 2019 at 12:28:40PM +0100, Cédric Le Goater wrote: > When the VM boots, the CAS negotiation process determines which > interrupt mode to use and invokes a machine reset. At that time, the > previous KVM interrupt device is 'destroyed' before the chosen one is > created. Upon

Re: [PATCH v2 15/16] KVM: introduce a KVM_DESTROY_DEVICE ioctl

2019-02-24 Thread David Gibson
On Fri, Feb 22, 2019 at 12:28:39PM +0100, Cédric Le Goater wrote: > The 'destroy' method is currently used to destroy all devices when the > VM is destroyed after the vCPUs have been freed. > > This new KVM ioctl exposes the same KVM device method. It acts as a > software reset of the VM to

Re: [PATCH v2 03/16] KVM: PPC: Book3S HV: XIVE: introduce a new capability KVM_CAP_PPC_IRQ_XIVE

2019-02-24 Thread Paul Mackerras
On Mon, Feb 25, 2019 at 11:35:27AM +1100, David Gibson wrote: > On Fri, Feb 22, 2019 at 12:28:27PM +0100, Cédric Le Goater wrote: > > + xc->xive = xive; > > + xc->vcpu = vcpu; > > + xc->server_num = cpu; > > + xc->vp_id = xive->vp_base + cpu; > > Hrm. This ties the internal VP id to the

Re: [PATCH v2 03/16] KVM: PPC: Book3S HV: XIVE: introduce a new capability KVM_CAP_PPC_IRQ_XIVE

2019-02-24 Thread Paul Mackerras
On Fri, Feb 22, 2019 at 12:28:27PM +0100, Cédric Le Goater wrote: > The user interface exposes a new capability to let QEMU connect the > vCPU to the XIVE KVM device if required. The capability is only > advertised on a PowerNV Hypervisor as support for nested guests > (pseries KVM Hypervisor) is

Re: [PATCH v2 12/16] KVM: PPC: Book3S HV: XIVE: add a TIMA mapping

2019-02-24 Thread David Gibson
On Fri, Feb 22, 2019 at 12:28:36PM +0100, Cédric Le Goater wrote: > Each thread has an associated Thread Interrupt Management context > composed of a set of registers. These registers let the thread handle > priority management and interrupt acknowledgment. The most important > are : > > -

Re: [PATCH v2 13/16] KVM: PPC: Book3S HV: XIVE: add a mapping for the source ESB pages

2019-02-24 Thread David Gibson
On Fri, Feb 22, 2019 at 12:28:37PM +0100, Cédric Le Goater wrote: > Each source is associated with an Event State Buffer (ESB) with a > even/odd pair of pages which provides commands to manage the source: > to trigger, to EOI, to turn off the source for instance. > > The custom VM fault handler

Re: [PATCH v2 11/16] KVM: introduce a 'mmap' method for KVM devices

2019-02-24 Thread David Gibson
On Fri, Feb 22, 2019 at 12:28:35PM +0100, Cédric Le Goater wrote: > Some KVM devices will want to handle special mappings related to the > underlying HW. For instance, the XIVE interrupt controller of the > POWER9 processor has MMIO pages for thread interrupt management and > for interrupt source

Re: [PATCH v2 10/16] KVM: PPC: Book3S HV: XIVE: add get/set accessors for the VP XIVE state

2019-02-24 Thread David Gibson
On Fri, Feb 22, 2019 at 12:28:34PM +0100, Cédric Le Goater wrote: > At a VCPU level, the state of the thread interrupt management > registers needs to be collected. These registers are cached under the > 'xive_saved_state.w01' field of the VCPU when the VPCU context is > pulled from the HW thread.

Re: [PATCH v2 09/16] KVM: PPC: Book3S HV: XIVE: add a control to dirty the XIVE EQ pages

2019-02-24 Thread David Gibson
On Fri, Feb 22, 2019 at 12:28:33PM +0100, Cédric Le Goater wrote: > When migration of a VM is initiated, a first copy of the RAM is > transferred to the destination before the VM is stopped, but there is > no guarantee that the EQ pages in which the event notification are > queued have not been

Re: [PATCH v2 08/16] KVM: PPC: Book3S HV: XIVE: add a control to sync the sources

2019-02-24 Thread David Gibson
On Fri, Feb 22, 2019 at 12:28:32PM +0100, Cédric Le Goater wrote: > This control will be used by the H_INT_SYNC hcall from QEMU. > > Signed-off-by: Cédric Le Goater > --- > arch/powerpc/include/uapi/asm/kvm.h| 1 + > arch/powerpc/kvm/book3s_xive_native.c | 34

Re: [PATCH v2 07/16] KVM: PPC: Book3S HV: XIVE: add a global reset control

2019-02-24 Thread David Gibson
On Fri, Feb 22, 2019 at 12:28:31PM +0100, Cédric Le Goater wrote: > This control is to be used by the H_INT_RESET hcall from QEMU. Its > purpose is to clear all configuration of the sources and EQs. This is > necessary in case of a kexec (for a kdump kernel for instance) to make > sure that no

Re: [PATCH v2 06/16] KVM: PPC: Book3S HV: XIVE: add controls for the EQ configuration

2019-02-24 Thread David Gibson
On Fri, Feb 22, 2019 at 12:28:30PM +0100, Cédric Le Goater wrote: > These controls will be used by the H_INT_SET_QUEUE_CONFIG and > H_INT_GET_QUEUE_CONFIG hcalls from QEMU. They will also be used to > restore the configuration of the XIVE EQs in the KVM device and to > capture the internal runtime

Re: [PATCH v2 01/16] powerpc/xive: add OPAL extensions for the XIVE native exploitation support

2019-02-24 Thread David Gibson
On Fri, Feb 22, 2019 at 12:28:25PM +0100, Cédric Le Goater wrote: > The support for XIVE native exploitation mode in Linux/KVM needs a > couple more OPAL calls to configure the sPAPR guest and to get/set the > state of the XIVE internal structures. > > Signed-off-by: Cédric Le Goater

Re: [PATCH v2 04/16] KVM: PPC: Book3S HV: XIVE: add a control to initialize a source

2019-02-24 Thread David Gibson
On Fri, Feb 22, 2019 at 12:28:28PM +0100, Cédric Le Goater wrote: > The associated HW interrupt source is simply allocated at the OPAL/HW > level and then MASKED. KVM only needs to know about its type: LSI or > MSI. > > Signed-off-by: Cédric Le Goater > --- > arch/powerpc/include/uapi/asm/kvm.h

Re: [PATCH v2 05/16] KVM: PPC: Book3S HV: XIVE: add a control to configure a source

2019-02-24 Thread David Gibson
On Fri, Feb 22, 2019 at 12:28:29PM +0100, Cédric Le Goater wrote: > This control will be used by the H_INT_SET_SOURCE_CONFIG hcall from > QEMU and also to restore the configuration of the source in the KVM > device. > > The XIVE internal IRQ structure is extended with the value of the > Effective

Re: [PATCH v2 02/16] KVM: PPC: Book3S HV: add a new KVM device for the XIVE native exploitation mode

2019-02-24 Thread David Gibson
On Fri, Feb 22, 2019 at 12:28:26PM +0100, Cédric Le Goater wrote: > This is the basic framework for the new KVM device supporting the XIVE > native exploitation mode. The user interface exposes a new KVM device > to be created by QEMU when running on a L0 hypervisor only. Support > for nested

Re: [PATCH v2 03/16] KVM: PPC: Book3S HV: XIVE: introduce a new capability KVM_CAP_PPC_IRQ_XIVE

2019-02-24 Thread David Gibson
On Fri, Feb 22, 2019 at 12:28:27PM +0100, Cédric Le Goater wrote: > The user interface exposes a new capability to let QEMU connect the > vCPU to the XIVE KVM device if required. The capability is only > advertised on a PowerNV Hypervisor as support for nested guests > (pseries KVM Hypervisor) is

Re: [PATCH v2 01/16] powerpc/xive: add OPAL extensions for the XIVE native exploitation support

2019-02-24 Thread Michael Ellerman
Cédric Le Goater writes: > The support for XIVE native exploitation mode in Linux/KVM needs a > couple more OPAL calls to configure the sPAPR guest and to get/set the > state of the XIVE internal structures. > > Signed-off-by: Cédric Le Goater > --- > arch/powerpc/include/asm/opal-api.h

[PATCH V2] ASoC: fsl_esai: fix channel swap issue when stream starts

2019-02-24 Thread S.j. Wang
There is very low possibility ( < 0.1% ) that channel swap happened in beginning when multi output/input pin is enabled. The issue is that hardware can't send data to correct pin in the beginning with the normal enable flow. This is hardware issue, but there is no errata, the workaround flow is

RE: [PATCH] ASoC: fsl_esai: fix channel swap issue when stream starts

2019-02-24 Thread S.j. Wang
Thanks, will send v2. Best regards Wang shengjiu > > Hi Shengjiu. > > On Thu, Feb 21, 2019 at 6:53 AM S.j. Wang > wrote: > > > > From: Shengjiu Wang > > Better use your nxp.com address as the freescale.com domain is gone for a > long time. > > > There is very low possibility ( < 0.1% ) that

Re: linux-next: Signed-off-by missing for commit in the powerpc tree

2019-02-24 Thread Stephen Rothwell
Hi Michael, On Sun, 24 Feb 2019 22:48:57 +1100 Michael Ellerman wrote: > > But do they need SOBs? I think so, since they modify the code .. > The DCO says: > > By making a contribution to this project, I certify that: > > (a) The contribution was created in whole or in part by me and

Re: linux-next: Signed-off-by missing for commit in the powerpc tree

2019-02-24 Thread Michael Ellerman
Stephen Rothwell writes: > Hi all, > > Commit > > f68e7927212f ("Revert "powerpc/book3s32: Reorder _PAGE_XXX flags to > simplify TLB handling"") > > is missing a Signed-off-by from its author and committer. > > Reverts are commits as well :-) But do they need SOBs? The DCO says: By making