Discard the old way that invoke hypercall,
instead, use epapr paravirt.
Signed-off-by: Liu Yu
---
v6:
select epapr_paravirt when enable fsl_hv driver
arch/powerpc/include/asm/epapr_hcalls.h | 22 +-
arch/powerpc/include/asm/fsl_hcalls.h | 36
If the guest hypervisor node contains "has-idle" property.
Signed-off-by: Liu Yu
---
v6:
reuse the EV_IDLE definition
arch/powerpc/include/asm/epapr_hcalls.h | 11 ++-
arch/powerpc/kernel/epapr_hcalls.S | 27 +++
arch/powerpc/kernel/epapr_
And add a new flag definition in kvm_ppc_pvinfo to indicate
whether host support EV_IDLE hcall.
Signed-off-by: Liu Yu
---
v6: no change
arch/powerpc/include/asm/Kbuild |1 +
arch/powerpc/include/asm/kvm_para.h | 14 --
arch/powerpc/kvm/powerpc.c |6
from the kvm guest paravirt init code.
Signed-off-by: Liu Yu
---
v6:
1. rename epapr_para to epapr_paravirt
2. remove redundant warnings
3. remove unnecessary init
arch/powerpc/include/asm/epapr_hcalls.h |2 +
arch/powerpc/kernel/Makefile|1 +
arch/powerpc/kernel
> -Original Message-
> From: tiejun.chen [mailto:tiejun.c...@windriver.com]
> Sent: Wednesday, February 22, 2012 10:52 AM
> To: Liu Yu-B13201
> Cc: ag...@suse.de; kvm-...@vger.kernel.org; k...@vger.kernel.org;
> linuxppc-...@ozlabs.org; Wood Scott-B07421
> Subject: R
> -Original Message-
> From: Wood Scott-B07421
> Sent: Wednesday, February 22, 2012 5:58 AM
> To: Liu Yu-B13201
> Cc: ag...@suse.de; kvm-...@vger.kernel.org; k...@vger.kernel.org;
> linuxppc-...@ozlabs.org; Wood Scott-B07421
> Subject: Re: [PATCH v5 4/4] KVM: PPC
> -Original Message-
> From: Wood Scott-B07421
> Sent: Wednesday, February 22, 2012 5:56 AM
> To: Liu Yu-B13201
> Cc: ag...@suse.de; kvm-...@vger.kernel.org; k...@vger.kernel.org;
> linuxppc-...@ozlabs.org; Wood Scott-B07421
> Subject: Re: [PATCH v5 1/4] KVM: PPC:
> -Original Message-
> From: tiejun.chen [mailto:tiejun.c...@windriver.com]
> Sent: Tuesday, February 21, 2012 6:54 PM
> To: Liu Yu-B13201
> Cc: ag...@suse.de; kvm-...@vger.kernel.org; k...@vger.kernel.org;
> linuxppc-...@ozlabs.org; Wood Scott-B07421
> Subject: R
Discard the old way that invoke hypercall,
instead, use epapr paravirt.
Signed-off-by: Liu Yu
---
v5: new patch
arch/powerpc/include/asm/epapr_hcalls.h | 22 +-
arch/powerpc/include/asm/fsl_hcalls.h | 36 +++---
2 files changed, 29 insertions
from the kvm guest paravirt init code.
Signed-off-by: Liu Yu
---
v5:
1. fix the if test
2. use patch_instruction()
3. code cleanup
4. rename the files
5. make epapr paravirt user-selectable
arch/powerpc/include/asm/epapr_hcalls.h |2 +
arch/powerpc/kernel/Makefile|1 +
arch
And add a new flag definition in kvm_ppc_pvinfo to indicate
whether host support EV_IDLE hcall.
Signed-off-by: Liu Yu
---
v5:
1. remove the ifdef
2. add epapr_hcalls.h into headers install list
arch/powerpc/include/asm/Kbuild |1 +
arch/powerpc/include/asm/kvm_para.h | 14
If the guest hypervisor node contains "has-idle" property.
Signed-off-by: Liu Yu
---
v5: no change
arch/powerpc/kernel/epapr_hcalls.S | 29 +
arch/powerpc/kernel/epapr_paravirt.c | 11 ++-
2 files changed, 39 insertions(+), 1 deletions(-)
di
> -Original Message-
> From: Wood Scott-B07421
> Sent: Friday, February 17, 2012 1:13 AM
> To: Liu Yu-B13201
> Cc: ag...@suse.de; kvm-...@vger.kernel.org; k...@vger.kernel.org;
> linuxppc-...@ozlabs.org; Wood Scott-B07421
> Subject: Re: [PATCH v4 1/3] KVM: PPC:
> -Original Message-
> From: Alexander Graf [mailto:ag...@suse.de]
> Sent: Thursday, February 16, 2012 6:20 PM
> To: Liu Yu-B13201
> Cc: ; ; d...@ozlabs.org>; Wood Scott-B07421; Liu Yu-B13201
> Subject: Re: [PATCH v4 2/3] KVM: PPC: epapr: Add idle hcall support for
And add a new flag definition in kvm_ppc_pvinfo to indicate
whether host support EV_IDLE hcall.
Signed-off-by: Liu Yu
---
v4:
no change
arch/powerpc/include/asm/kvm_para.h | 14 --
arch/powerpc/kvm/powerpc.c |8
include/linux/kvm.h |2
from the kvm guest paravirt init code.
Signed-off-by: Liu Yu
---
v4:
1. code cleanup
2. move kvm_hypercall_start() to epapr_hypercall_start()
arch/powerpc/Kconfig|4 ++
arch/powerpc/include/asm/epapr_hcalls.h |2 +
arch/powerpc/kernel/Makefile|1
If the guest hypervisor node contains "has-idle" property.
Signed-off-by: Liu Yu
---
v4:
1. discard the CONFIG_E500 to make code for all powerpc platform
2. code cleanup
arch/powerpc/kernel/epapr.S | 29 +
arch/powerpc/kernel/epapr_par
> -Original Message-
> From: Wood Scott-B07421
> Sent: Saturday, February 11, 2012 2:40 AM
> To: Liu Yu-B13201
> Cc: ag...@suse.de; kvm-...@vger.kernel.org; k...@vger.kernel.org;
> linuxppc-...@ozlabs.org; Wood Scott-B07421
> Subject: Re: [PATCH v3 1/3] KVM: PPC:
If the guest hypervisor node contains "has-idle" property.
Signed-off-by: Liu Yu
---
v3:
1. apply the hcall idle for all ppc platform
2. add a loop to prevent spurious wakeups
arch/powerpc/kernel/Makefile |2 +-
arch/powerpc/kernel/epapr.S
from the kvm guest paravirt init code.
Signed-off-by: Liu Yu
---
v3:
apply the epapr init for all ppc platform
arch/powerpc/Kconfig|4 +++
arch/powerpc/include/asm/epapr_hcalls.h |8 +
arch/powerpc/kernel/Makefile|1 +
arch/powerpc/kernel
And add a new flag definition in kvm_ppc_pvinfo to indicate
whether host support EV_IDLE hcall.
Signed-off-by: Liu Yu
---
v3:
no change
arch/powerpc/include/asm/kvm_para.h | 14 --
arch/powerpc/kvm/powerpc.c |8
include/linux/kvm.h |2
If the guest hypervisor node contains "has-idle" property.
Signed-off-by: Liu Yu
---
v2:
1. move the idle code into assembly.
2. move the part that check "has-idle" into epapr code.
arch/powerpc/include/asm/epapr_hcalls.h |1 +
arch/powerpc/include/asm/machdep.h
from the kvm guest paravirt init code.
Signed-off-by: Liu Yu
---
arch/powerpc/include/asm/epapr_hcalls.h |8 +
arch/powerpc/kernel/Makefile|1 +
arch/powerpc/kernel/epapr_para.c| 45 +++
arch/powerpc/kernel/kvm.c |9
These patches fix some issues in efp.
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev
We already have cpu a005 errata handler when instruction cannot be recgnized.
Before we lookup the inst, there's type checking, and we also need to
handle it in errata handler when the type checking failed.
Signed-off-by: Liu Yu
---
arch/powerpc/math-emu/math_efp.c |5 ++---
1 files ch
Signed-off-by: Liu Yu
---
arch/powerpc/math-emu/math_efp.c | 11 ++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/math-emu/math_efp.c b/arch/powerpc/math-emu/math_efp.c
index 10fda0f..96dbbae 100644
--- a/arch/powerpc/math-emu/math_efp.c
+++ b/arch
Use pr_debug instead of printk
Signed-off-by: Liu Yu
---
arch/powerpc/math-emu/math_efp.c | 83 +-
1 files changed, 37 insertions(+), 46 deletions(-)
diff --git a/arch/powerpc/math-emu/math_efp.c b/arch/powerpc/math-emu/math_efp.c
index 6227920..10fda0f
kvmppc_vcpu_run() so that we can put the SPE code in
> > e500.c.
> >
> > Signed-off-by: Liu Yu
> > Signed-off-by: Scott Wood
> > ---
> > arch/powerpc/include/asm/kvm_ppc.h |1 +
> > arch/powerpc/kvm/44x.c |5 +
> > arch/powerp
> -Original Message-
> From: Gala Kumar-B11780
> Sent: Tuesday, January 25, 2011 3:01 PM
> To: Liu Yu-B13201
> Cc: linuxppc-dev@lists.ozlabs.org; Gala Kumar-B11780
> Subject: Re: [PATCH] e500: Erratum cpu a005 workaround
>
>
> On Jan 25, 2011, at 12:02 AM
send to userspace, and userspace application would exit.
This patch re-issue the efp instruction that we haven't emulated,
so that hardware can properly execute it again if this case happen.
Signed-off-by: Liu Yu
---
This is an erratum workaround patch.
It would be better if the patch c
> -Original Message-
> From: kvm-ow...@vger.kernel.org
> [mailto:kvm-ow...@vger.kernel.org] On Behalf Of Alexander Graf
> Sent: Thursday, July 01, 2010 6:43 PM
> To: kvm-...@vger.kernel.org
> Cc: KVM list; linuxppc-dev
> Subject: [PATCH 14/27] KVM: PPC: Magic Page BookE support
>
> As
> -Original Message-
> From: kvm-ow...@vger.kernel.org
> [mailto:kvm-ow...@vger.kernel.org] On Behalf Of Alexander Graf
> Sent: Friday, June 04, 2010 10:08 PM
> To: Kevin Hao
> Cc: Marcelo Tosatti; Kumar Gala; Avi Kivity;
> k...@vger.kernel.org list; linuxppc-.
Thanks.
As the patchset is accepted.
Will commit another one to fix them.
> -Original Message-
> From: glik...@secretlab.ca [mailto:glik...@secretlab.ca] On
> Behalf Of Grant Likely
> Sent: Tuesday, February 02, 2010 5:58 AM
> To: Liu Yu-B13201
> Cc: ga...@kerne
> -Original Message-
> From: Kumar Gala [mailto:ga...@kernel.crashing.org]
> Sent: Friday, January 15, 2010 12:20 AM
> To: Liu Yu-B13201
> Cc: da...@davemloft.net; linuxppc-dev@lists.ozlabs.org;
> net...@vger.kernel.org
> Subject: Re: [PATCH 4/4] phy: add R
Old method only set tbi-phy for eth0.
Signed-off-by: Liu Yu
---
drivers/net/ucc_geth.c | 23 +++
1 files changed, 15 insertions(+), 8 deletions(-)
diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c
index 750d86d..0e72013 100644
--- a/drivers/net/ucc_geth.c
+++ b
Signed-off-by: Liu Yu
---
drivers/net/phy/marvell.c | 38 ++
1 files changed, 38 insertions(+), 0 deletions(-)
diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c
index 6f69b9b..65ed385 100644
--- a/drivers/net/phy/marvell.c
+++ b/drivers/net
Signed-off-by: Liu Yu
---
arch/powerpc/platforms/85xx/mpc85xx_mds.c | 24
1 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_mds.c
b/arch/powerpc/platforms/85xx/mpc85xx_mds.c
index c5028a2..0872e4a 100644
--- a/arch
After these change, when need to work in rtbi mode,
just change phy-connection-type to "rtbi".
Also, this work can be done by u-boot.
Signed-off-by: Liu Yu
---
arch/powerpc/boot/dts/mpc8569mds.dts | 47 ++---
1 files changed, 42 insertions(+), 5 deletion
according to SPRN_SVR.
Signed-off-by: Liu Yu
Signed-off-by: Dave Liu
---
arch/powerpc/sysdev/qe_lib/qe.c | 22 --
drivers/net/ucc_geth.c |4 ++--
2 files changed, 22 insertions(+), 4 deletions(-)
diff --git a/arch/powerpc/sysdev/qe_lib/qe.c b/arch/powerpc
> -Original Message-
> From: Avi Kivity [mailto:a...@redhat.com]
> Sent: Thursday, July 02, 2009 7:20 PM
> To: Liu Yu-B13201
> Cc: Yang Shi; holl...@us.ibm.com; kvm-...@vger.kernel.org;
> k...@vger.kernel.org; linuxppc-...@ozlabs.org
> Subject: Re: [PATCH 1/2]
This fix is already accepted in kvm.git
> -Original Message-
> From: Yang Shi [mailto:yang@windriver.com]
> Sent: Thursday, July 02, 2009 10:55 AM
> To: Liu Yu-B13201; holl...@us.ibm.com; a...@redhat.com
> Cc: kvm-...@vger.kernel.org; k...@vger.kernel.o
> -Original Message-
> From: linuxppc-dev-bounces+b13201=freescale@ozlabs.org
> [mailto:linuxppc-dev-bounces+b13201=freescale@ozlabs.org]
> On Behalf Of derekzheng
> Sent: Sunday, April 19, 2009 5:25 PM
> To: 'linuxppc-dev'; microblaze-ucli...@itee.uq.edu.au;
> linux-ker...@vger
There is no dependece between efp and math-emu.
But when disalbe math-emu, the efp code cannot be built.
This patch fixes it.
Signed-off-by: Liu Yu
---
It would be nice to see this patch go along with 2.6.29
arch/powerpc/Makefile |4 ++--
arch/powerpc/math-emu/Makefile |5
> -Original Message-
> From: kvm-ppc-ow...@vger.kernel.org
> [mailto:kvm-ppc-ow...@vger.kernel.org] On Behalf Of Hollis Blanchard
> Sent: Tuesday, January 06, 2009 12:52 AM
> To: Gala Kumar-B11780
> Cc: Liu Yu-B13201; kvm-...@vger.kernel.org;
> linuxppc-dev@ozl
Hi Kumar,
Can I get your ack?
So that I can submit this patch through KVM tree.
> -Original Message-
> From: Liu Yu-B13201
> Sent: Friday, December 19, 2008 10:35 AM
> To: kvm-...@vger.kernel.org; linuxppc-dev@ozlabs.org
> Cc: holl...@us.ibm.com; Gala Kumar-B11780;
KVM on E500 platform currently utilize TLB1 entries without bothering host,
that is using unused TLB1 entries.
So, KVM needs to read tlbcam_index to know exactly
which TLB1 entry is unused by host.
Signed-off-by: Liu Yu
---
[v2]
Remove num_tlbcam_entries declare and read from SPRN_TLB1CFG in
> -Original Message-
> From: Piepho Trent-B16872
> Sent: Wednesday, December 10, 2008 10:04 PM
> To: Liu Yu-B13201
> Cc: linuxppc-dev@ozlabs.org; [EMAIL PROTECTED]; Wood
> Scott-B07421; Gala Kumar-B11780
> Subject: Re: [PATCH] fsl-booke: declare tlbcam_index and
KVM on E500 platform currently utilize TLB1 entries without bothering host,
that is using unused TLB1 entries.
So, KVM needs to read tlbcam_index and num_tlbcam_entries to know exactly
which TLB1 entry is unused.
Signed-off-by: Liu Yu <[EMAIL PROTECTED]>
---
arch/powerpc/include/asm/m
code doesn't support SPE/EFP instructions emulation
(it won't be called when receive program interrupt),
but it could be easily added.
Signed-off-by: Liu Yu <[EMAIL PROTECTED]>
---
arch/powerpc/include/asm/processor.h |6 +
arch/powerpc/include/asm/sfp-machine.h | 36 ++-
arc
FP_DECL_EX is already used, so ret is redundant.
And FP_SET_EXCEPTION will add status into return value.
Signed-off-by: Liu Yu <[EMAIL PROTECTED]>
---
arch/powerpc/math-emu/fadd.c|1 -
arch/powerpc/math-emu/fcmpo.c |5 ++---
arch/powerpc/math-emu/fdiv.c|9 -
is normalized before udiv_qrnnd.
Signed-off-by: Liu Yu <[EMAIL PROTECTED]>
---
arch/powerpc/include/asm/sfp-machine.h |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/include/asm/sfp-machine.h
b/arch/powerpc/include/asm/sfp-machine.h
index ced34f1..d
Move to using the same macro definition for _FP_CHOOSENAN as s390,
sh, sparc32/64. The original author didn't understand this and
matched what sparc64 was doing and they have updated to this definition.
Signed-off-by: Liu Yu <[EMAIL PROTECTED]>
---
arch/powerpc/include/asm/sf
These patches are related to math-emu.
[Patch 1/4] Fix a fdiv bug of FP math-emu
[Patch 2/4] Update a macro to new version
[Patch 3/4] Remove redundant code
[Patch 4/4] Add SPE/EFP handlers for E500v1/v2 processors
___
Linuxppc-dev mailing list
Linuxppc
>
> diff --git a/arch/powerpc/include/asm/sfp-machine.h
> b/arch/powerpc/include/asm/sfp-machine.h
> new file mode 100644
> index 000..ced34f1
> --- /dev/null
> +++ b/arch/powerpc/include/asm/sfp-machine.h
> @@ -0,0 +1,353 @@
> +/* Machine-dependent software floating-point definitions.
> PP
>
> On Wed, 2008-03-05 at 17:02 +0800, Liu Yu wrote:
> > Use common headers as a replacement.
> > The Common headers are located in "include/math-emu/", they
> are used
> > by multiple platforms such as s390, sparc, alpha.
> >
> > As the c
Sorry. I forgot to add the serial number.
The three math-emu patches are in the same serial.
> -Original Message-
> From: Liu Yu
> Sent: Wednesday, March 05, 2008 5:02 PM
> To: linuxppc-dev@ozlabs.org
> Cc: Liu Yu
> Subject: [PATCH] math-emu: delete PowerPC ol
Signed-off-by: Liu Yu <[EMAIL PROTECTED]>
---
arch/powerpc/math-emu/Makefile |2 +-
arch/powerpc/math-emu/fadd.c | 16 +---
arch/powerpc/math-emu/fadds.c | 17 +
arch/powerpc/math-emu/fcmpo.c | 22 +-
arch/powerp
Signed-off-by: Liu Yu <[EMAIL PROTECTED]>
---
include/asm-powerpc/sfp-machine.h | 217 +
1 files changed, 75 insertions(+), 142 deletions(-)
diff --git a/include/asm-powerpc/sfp-machine.h
b/include/asm-powerpc/sfp-machine.h
index 4b17d83..5dac9cd
How about this one?
http://patchwork.ozlabs.org/linuxppc/patch?id=15942
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> On Behalf Of Kumar Gala
> Sent: Tuesday, January 22, 2008 12:43 AM
> To: linuxppc-dev@ozlabs.org
> Subject: patches for 2.6.25
>
> I'm
Synchronize it to the definition in include/math-emu/op-4.h for short term.
Signed-off-by: Liu Yu <[EMAIL PROTECTED]>
---
arch/powerpc/math-emu/op-4.h | 40 ++--
1 files changed, 30 insertions(+), 10 deletions(-)
diff --git a/arch/powerpc/math-emu/op
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> On Behalf Of Kumar Gala
> Sent: Tuesday, January 08, 2008 2:20 PM
> To: Dan Malek
> Cc: Liu Yu; linuxppc-dev@ozlabs.org
> Subject: Re: [PATCH] Fix remainder calculating bug in single
>
> take a look at how include/math-emu/op-4.h implements
> __FP_FRAC_ADD_4 & __FP_FRAC_SUB_4. Will that fix the bug, if
> so we should make the code match how its done there.
>
> - k
>
>
The macro define __FP_FRAC_ADD_4 is below. It can fix the carry bug.
But still exist a problem that r
>
> can you provide the test case that shows the error.
>
It seems that math-emu only be used for MPC8xx on current kernel.
---
#include
#include
#include
#include
void
fdiv(float f, float f1, float expected)
{
float f2;
f2 = f / f1;
printf("fdiv %e / %e = %e expected %e %s
1.174921e-38f in the original case.
Comments are always welcomed!
Signed-off-by: Liu Yu <[EMAIL PROTECTED]>
---
arch/powerpc/math-emu/sfp-machine.h | 11 +--
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/arch/powerpc/math-emu/sfp-machine.h
b/arch/powerpc/math-e
not that pretty.
Are there any better ideas?
Comments are always welcomed!
Signed-off-by: Liu Yu <[EMAIL PROTECTED]>
---
arch/powerpc/math-emu/op-4.h | 22 ++
1 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/arch/powerpc/math-emu/op-4.h b/arch/powerp
> -Original Message-
> From: Kumar Gala [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 10, 2007 11:01 PM
> To: Liu Yu
> Cc: David Gibson; linuxppc-dev@ozlabs.org
> Subject: Re: [PATCH] Fix rounding bug in emulation for double
> floatoperating
>
>
> On
> -Original Message-
> From: David Gibson [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 10, 2007 12:56 PM
> To: Liu Yu
> Cc: linuxppc-dev@ozlabs.org
> Subject: Re: [PATCH] Fix rounding bug in emulation for double
> floatoperating
>
>
> On M
e the work bit '|' 1 in
the improper case.
This patch fixes this issue.
Signed-off-by: Liu Yu <[EMAIL PROTECTED]>
---
arch/powerpc/math-emu/op-2.h |3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/math-emu/op-2.h b/arch/powerpc/math-emu/op-
68 matches
Mail list logo