[PATCH v6 4/4] KVM: PPC: epapr: Update other hypercall invoking

2012-02-23 Thread Liu Yu
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

[PATCH v6 3/4] KVM: PPC: epapr: install ev_idle hcall for e500 guest

2012-02-23 Thread Liu Yu
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_

[PATCH v6 2/4] KVM: PPC: epapr: Add idle hcall support for host

2012-02-23 Thread Liu Yu
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

[PATCH v6 1/4] KVM: PPC: epapr: Factor out the epapr init

2012-02-23 Thread Liu Yu
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

RE: [PATCH v5 3/4] KVM: PPC: epapr: install ev_idle hcall for e500 guest

2012-02-21 Thread Liu Yu-B13201
> -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

RE: [PATCH v5 4/4] KVM: PPC: epapr: Update other hypercall invoking

2012-02-21 Thread Liu Yu-B13201
> -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

RE: [PATCH v5 1/4] KVM: PPC: epapr: Factor out the epapr init

2012-02-21 Thread Liu Yu-B13201
> -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:

RE: [PATCH v5 3/4] KVM: PPC: epapr: install ev_idle hcall for e500 guest

2012-02-21 Thread Liu Yu-B13201
> -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

[PATCH v5 4/4] KVM: PPC: epapr: Update other hypercall invoking

2012-02-20 Thread Liu Yu
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

[PATCH v5 1/4] KVM: PPC: epapr: Factor out the epapr init

2012-02-20 Thread Liu Yu
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

[PATCH v5 2/4] KVM: PPC: epapr: Add idle hcall support for host

2012-02-20 Thread Liu Yu
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

[PATCH v5 3/4] KVM: PPC: epapr: install ev_idle hcall for e500 guest

2012-02-20 Thread Liu Yu
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

RE: [PATCH v4 1/3] KVM: PPC: epapr: Factor out the epapr init

2012-02-17 Thread Liu Yu-B13201
> -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:

RE: [PATCH v4 2/3] KVM: PPC: epapr: Add idle hcall support for host

2012-02-16 Thread Liu Yu-B13201
> -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

[PATCH v4 2/3] KVM: PPC: epapr: Add idle hcall support for host

2012-02-16 Thread Liu Yu
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

[PATCH v4 1/3] KVM: PPC: epapr: Factor out the epapr init

2012-02-16 Thread Liu Yu
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

[PATCH v4 3/3] KVM: PPC: epapr: install ev_idle hcall for e500 guest

2012-02-16 Thread Liu Yu
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

RE: [PATCH v3 1/3] KVM: PPC: epapr: Factor out the epapr init

2012-02-12 Thread Liu Yu-B13201
> -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:

[PATCH v3 3/3] KVM: PPC: epapr: install ev_idle hcall for e500 guest

2012-02-10 Thread Liu Yu
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

[PATCH v3 1/3] KVM: PPC: epapr: Factor out the epapr init

2012-02-10 Thread Liu Yu
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

[PATCH v3 2/3] KVM: PPC: epapr: Add idle hcall support for host

2012-02-10 Thread Liu Yu
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

[PATCH v2 3/3] KVM: PPC: epapr: install ev_idle hcall for e500 guest

2012-01-05 Thread Liu Yu
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

[PATCH 1/3] KVM: PPC: epapr: Factor out the epapr init

2012-01-05 Thread Liu Yu
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

[PATCH 0/3] math_emu: fixup for efp

2011-09-05 Thread Liu Yu
These patches fix some issues in efp. ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH 3/3] math_emu/efp: Look for errata handler when type mismatches

2011-09-05 Thread Liu Yu
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

[PATCH 2/3] math_emu/efp: No need to round if the result is exact

2011-09-05 Thread Liu Yu
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

[PATCH 1/3] math_emu/efp: Code cleanup

2011-09-05 Thread Liu Yu
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

RE: [PATCH 2/4] KVM: PPC: booke: Wrap __kvmppc_vcpu_run()

2011-03-29 Thread Liu Yu-B13201
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

RE: [PATCH] e500: Erratum cpu a005 workaround

2011-01-25 Thread Liu Yu-B13201
> -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

[PATCH] e500: Erratum cpu a005 workaround

2011-01-24 Thread Liu Yu
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

RE: [PATCH 14/27] KVM: PPC: Magic Page BookE support

2010-07-12 Thread Liu Yu-B13201
> -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

RE: [PATCH] kvm/powerpc: fix a build error in e500_tlb.c

2010-06-06 Thread Liu Yu-B13201
> -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-.

RE: [PATCH 2/4] mpc8569mds: Add bscr setting for rtbi mode

2010-02-01 Thread Liu Yu-B13201
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

RE: [PATCH 4/4] phy: add RTBI mode for m88e1111

2010-01-14 Thread Liu Yu-B13201
> -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

[PATCH 3/4] ucc_geth: update the tbi-phy setting

2010-01-14 Thread Liu Yu
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

[PATCH 4/4] phy: add RTBI mode for m88e1111

2010-01-14 Thread Liu Yu
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

[PATCH 2/4] mpc8569mds: Add bscr setting for rtbi mode

2010-01-14 Thread Liu Yu
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

[PATCH 1/4] dts/mpc8569mds: Cleanup tbi phy to support rtbi

2010-01-14 Thread Liu Yu
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

[PATCH] qe: Update the SNUM table for MPC8569 Rev2.0

2010-01-12 Thread Liu Yu
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

RE: [PATCH 1/2] KVM/PPC: Fix PPC KVM e500_tlb.c build error

2009-07-02 Thread Liu Yu-B13201
> -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]

RE: [PATCH 1/2] KVM/PPC: Fix PPC KVM e500_tlb.c build error

2009-07-01 Thread Liu Yu-B13201
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

RE: who know's what is "TestFloat cases" and how to test this feature onthe Freescale MPC8536DS board

2009-04-20 Thread Liu Yu-B13201
> -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

[PATCH] efp: Fix efp dependence

2009-03-09 Thread Liu Yu
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

RE: [PATCH v2] powerpc/fsl-booke: declare tlbcam_index for use inc file

2009-01-05 Thread Liu Yu
> -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

RE: [PATCH v2] powerpc/fsl-booke: declare tlbcam_index for use in c file

2009-01-03 Thread Liu Yu
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;

[PATCH v2] powerpc/fsl-booke: declare tlbcam_index for use in c file

2008-12-18 Thread Liu Yu
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

RE: [PATCH] fsl-booke: declare tlbcam_index and num_tlbcam_entries for use in c file

2008-12-10 Thread Liu Yu
> -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

[PATCH] fsl-booke: declare tlbcam_index and num_tlbcam_entries for use in c file

2008-12-10 Thread Liu Yu
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

[PATCH 4/4] Add SPE/EFP math emulation for E500v1/v2 processors.

2008-10-27 Thread Liu Yu
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

[PATCH 3/4] math-emu: Remove redundant 'ret'

2008-10-27 Thread Liu Yu
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 -

[PATCH 1/4] math-emu: Fix single float point division bug

2008-10-27 Thread Liu Yu
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

[PATCH 2/4] math-emu: Adopt new version of _FP_CHOOSENAN

2008-10-27 Thread Liu Yu
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

[Patch 0/4] math-emu

2008-10-27 Thread Liu Yu
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

RE: [PATCH] powerpc/math-emu: Use kernel generic math-emu code

2008-09-23 Thread Liu Yu-B13201
> > 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

RE: [PATCH] math-emu: delete PowerPC old math-emu headers

2008-03-05 Thread Liu Yu
> > 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

RE: [PATCH] math-emu: delete PowerPC old math-emu headers

2008-03-05 Thread Liu Yu
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

[PATCH] math-emu: use new interface of common math-emu headers in PowerPC math-emu C file

2008-03-05 Thread Liu Yu
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

[PATCH] math-emu: modify the sfp-machine.h to fit the new interface of common math-emu headers

2008-03-05 Thread Liu Yu
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

RE: patches for 2.6.25

2008-01-23 Thread Liu Yu
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

[PATCH] Fix carry bug in 128-bit unsigned integer adding

2008-01-17 Thread Liu Yu
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

RE: [PATCH] Fix remainder calculating bug in single floating pointdivision

2008-01-09 Thread Liu Yu
> -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

RE: [PATCH] Fix carry bug in 128-bit unsigned integer adding

2008-01-08 Thread Liu Yu
> > 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

RE: [PATCH] Fix remainder calculating bug in single floating point division

2008-01-08 Thread Liu Yu
> > 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

[PATCH] Fix remainder calculating bug in single floating point division

2008-01-06 Thread Liu Yu
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

[PATCH] Fix carry bug in 128-bit unsigned integer adding

2008-01-06 Thread Liu Yu
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

RE: [PATCH] Fix rounding bug in emulation for double floatoperating

2007-12-10 Thread Liu Yu
> -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

RE: [PATCH] Fix rounding bug in emulation for double floatoperating

2007-12-09 Thread Liu Yu
> -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

[PATCH] Fix rounding bug in emulation for double float operating

2007-12-09 Thread Liu Yu
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-