Re: "attempt to move .org backwards" still show up
于 2013/4/25 14:25, Paul Mackerras 写道: On Thu, Apr 25, 2013 at 12:05:54PM +0800, Mike Qiu wrote: This has block my work now So I hope you can take a look ASAP Thanks :) Mike As a quick fix, turn on CONFIG_KVM_BOOK3S_64_HV. That will eliminate the immediate problem. Thanks got it, I will have a try. Paul. ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev
Re: "attempt to move .org backwards" still show up
On 2013年04月26日 09:58, Mike Qiu wrote: > 于 2013/4/25 19:16, Chen Gang 写道: >> On 2013年04月25日 14:25, Paul Mackerras wrote: >>> On Thu, Apr 25, 2013 at 12:05:54PM +0800, Mike Qiu wrote: > This has block my work now > So I hope you can take a look ASAP > Thanks > :) > > Mike >>> As a quick fix, turn on CONFIG_KVM_BOOK3S_64_HV. That will eliminate >>> the immediate problem. >> Yes, just as my original reply to Mike to bypass it, but get no reply, I >> guess he has to face the CONFIG_KVM_BOOK3S_64_PR. >> >> Now, I am just fixing it, when I finish one patch, please help check. > Actually, I have compile pass by your patch, but I see Micheal Neuling's > reply, > I just stop to do that, and wait for you new patch :) > I am just continuing (before get fixed, I should continue) > Now I will use your V2 patch to build Please see the discussion of patch v2, it still has another issues, but I am still trying (I guess Michael is just checking). :-) -- Chen Gang Asianux Corporation ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev
Re: "attempt to move .org backwards" still show up
于 2013/4/25 19:16, Chen Gang 写道: On 2013年04月25日 14:25, Paul Mackerras wrote: On Thu, Apr 25, 2013 at 12:05:54PM +0800, Mike Qiu wrote: This has block my work now So I hope you can take a look ASAP Thanks :) Mike As a quick fix, turn on CONFIG_KVM_BOOK3S_64_HV. That will eliminate the immediate problem. Yes, just as my original reply to Mike to bypass it, but get no reply, I guess he has to face the CONFIG_KVM_BOOK3S_64_PR. Now, I am just fixing it, when I finish one patch, please help check. Actually, I have compile pass by your patch, but I see Micheal Neuling's reply, I just stop to do that, and wait for you new patch :) Now I will use your V2 patch to build Thanks Mike Thanks. ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev
Re: "attempt to move .org backwards" still show up
On 2013年04月25日 14:25, Paul Mackerras wrote: > On Thu, Apr 25, 2013 at 12:05:54PM +0800, Mike Qiu wrote: >> > This has block my work now >> > So I hope you can take a look ASAP >> > Thanks >> > :) >> > >> > Mike > As a quick fix, turn on CONFIG_KVM_BOOK3S_64_HV. That will eliminate > the immediate problem. Yes, just as my original reply to Mike to bypass it, but get no reply, I guess he has to face the CONFIG_KVM_BOOK3S_64_PR. Now, I am just fixing it, when I finish one patch, please help check. Thanks. -- Chen Gang Asianux Corporation ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev
Re: "attempt to move .org backwards" still show up
On Thu, Apr 25, 2013 at 12:05:54PM +0800, Mike Qiu wrote: > This has block my work now > So I hope you can take a look ASAP > Thanks > :) > > Mike As a quick fix, turn on CONFIG_KVM_BOOK3S_64_HV. That will eliminate the immediate problem. Paul. ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev
Re: "attempt to move .org backwards" still show up
On 2013年04月25日 13:36, Chen Gang wrote: > On 2013年04月25日 12:05, Mike Qiu wrote: >>> I will try, and plan to get a result within this week (2013-04-28) >>> >>> Thanks. >> Hi >> This has block my work now >> So I hope you can take a look ASAP >> Thanks >> :) > > The root cause is the room 0x500..0xc00 is not enough when > KVM_HANDLER_PR expresses the real codes. The relationship is > KVM_HANDLER_PR depend on CONFIG_KVM_BOOK3S_PR depend on > CONFIG_KVM_BOOK3S_64_PR. > Sorry, the original root cause above is incorrect. The real root cause: __KVMTEST is used when CONFIG_KVM_BOOK3S_PR is defined. MASKABLE_EXCEPTION_PSERIES(0x900, 0x900, decrementer) includes __KVMTEST (it will start at 0x900 and just end at 0x980 !!) but STD_EXCEPTION_HV(0x980, 0x982, hdecrementer) is just started at 0x980 ! The relationship: dependency: __KVMTEST --> KVMTEST_PR --> CONFIG_KVM_BOOK3S_PR --> CONFIG_KVM_BOOK3S_64_PR using: MASKABLE_EXCEPTION_PSERIES --> SOFTEN_TEST_PR --> KVMTEST_PR --> __KVMTEST Please reference below: 0x93c..0x944 is just for __KVMTEST which will be inserted into when CONFIG_KVM_BOOK3S_PR is defined and the instructions of __KVMTEST are reordered for optimization. 0900 : 900: 7c 42 13 78 mr r2,r2 904: 7d b2 43 a6 mtsprg 2,r13 908: 7d b1 42 a6 mfsprg r13,1 90c: f9 2d 00 80 std r9,128(r13) 910: 7d 20 e2 a6 mfspr r9,896 914: 7c 42 13 78 mr r2,r2 918: f9 4d 00 88 std r10,136(r13) 91c: 7d 5c 02 a6 mfspr r10,28 920: f9 2d 00 d8 std r9,216(r13) 924: f9 4d 00 d0 std r10,208(r13) 928: 7d 48 02 a6 mflrr10 92c: f9 4d 00 c8 std r10,200(r13) 930: 7d 20 00 26 mfcrr9 934: 89 4d 07 c8 lbz r10,1992(r13) 938: 2c 0a 00 00 cmpwi r10,0 93c: 40 82 10 70 bne-19ac 940: 89 4d 02 82 lbz r10,642(r13) 944: 2c 0a 00 00 cmpwi r10,0 948: 39 40 00 08 li r10,8 94c: 41 82 14 e4 beq-1e30 950: f9 6d 00 90 std r11,144(r13) 954: f9 8d 00 98 std r12,152(r13) 958: 7d 52 42 a6 mfsprg r10,2 95c: f9 4d 00 a0 std r10,160(r13) 960: e9 8d 00 18 ld r12,24(r13) 964: e9 4d 00 20 ld r10,32(r13) 968: 7d 7a 02 a6 mfsrr0 r11 96c: 61 8c 24 80 ori r12,r12,9344 970: 7d 9a 03 a6 mtsrr0 r12 974: 7d 9b 02 a6 mfsrr1 r12 978: 7d 5b 03 a6 mtsrr1 r10 97c: 4c 00 00 24 rfid 980: 48 00 00 00 b 980 > If possible, we can by pass it: just use CONFIG_KVM_BOOK3S_64_HV instead > of CONFIG_KVM_BOOK3S_64_PR (enter menuconfig -> Virtualization -> "KVM > support for POWER7 and PPC970 using hypervisor mode in host"). > > For 'allmodconfig', it will use CONFIG_KVM_BOOK3S_64_HV instead of > CONFIG_KVM_BOOK3S_64_PR, so 'allmodconfig' will not have this issue. > > > Next, I will continue to analyse how to fix it. > > Welcome other members (especially the related maintainers) to provide > suggestions and completions. > > Thanks. > -- Chen Gang Asianux Corporation ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev
Re: "attempt to move .org backwards" still show up
On 2013年04月25日 12:05, Mike Qiu wrote: >> I will try, and plan to get a result within this week (2013-04-28) >> >> Thanks. > Hi > This has block my work now > So I hope you can take a look ASAP > Thanks > :) The root cause is the room 0x500..0xc00 is not enough when KVM_HANDLER_PR expresses the real codes. The relationship is KVM_HANDLER_PR depend on CONFIG_KVM_BOOK3S_PR depend on CONFIG_KVM_BOOK3S_64_PR. If possible, we can by pass it: just use CONFIG_KVM_BOOK3S_64_HV instead of CONFIG_KVM_BOOK3S_64_PR (enter menuconfig -> Virtualization -> "KVM support for POWER7 and PPC970 using hypervisor mode in host"). For 'allmodconfig', it will use CONFIG_KVM_BOOK3S_64_HV instead of CONFIG_KVM_BOOK3S_64_PR, so 'allmodconfig' will not have this issue. Next, I will continue to analyse how to fix it. Welcome other members (especially the related maintainers) to provide suggestions and completions. Thanks. -- Chen Gang Asianux Corporation ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev
Re: "attempt to move .org backwards" still show up
于 2013/4/25 9:05, Chen Gang 写道: On 2013年04月24日 20:47, Mike wrote: 在 2013-04-24三的 20:37 +1000,Michael Neuling写道: Mike Qiu wrote: 于 2013/4/24 16:31, Michael Ellerman 写道: On Wed, Apr 24, 2013 at 04:22:53PM +0800, Mike Qiu wrote: Hi all I get an error message when I compile the source code in Power7 platform use the newest upstream kernel. Hi Mike, It depends on what your .config is. What defconfig are you building? I just copy the config file from /boot/config.* to .config and use make menuconfig change nothing by manually, then save. Can you post the resulting config here? Do you have commit in your tree? commit 087aa036eb79f24b856893190359ba812b460f45 Author: Chen Gang powerpc: make additional room in exception vector area Sure, that commit certainly in my git tree. And I just try to remove the code and re-git clone the source code from upstream, this problem still happen. I will post the config file as the attachment :) Thanks I will try, and plan to get a result within this week (2013-04-28) Thanks. Hi This has block my work now So I hope you can take a look ASAP Thanks :) Mike ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev
Re: "attempt to move .org backwards" still show up
On 2013年04月24日 20:47, Mike wrote: > 在 2013-04-24三的 20:37 +1000,Michael Neuling写道: >> > Mike Qiu wrote: >> > >>> > > 于 2013/4/24 16:31, Michael Ellerman 写道: > > > On Wed, Apr 24, 2013 at 04:22:53PM +0800, Mike Qiu wrote: > > > >> Hi all > > > >> > > > >> I get an error message when I compile the source code in Power7 > > > >> platform > > > >> use the newest upstream kernel. > > > Hi Mike, > > > > > > It depends on what your .config is. What defconfig are you building? >>> > > I just copy the config file from /boot/config.* to .config and use make >>> > > menuconfig >>> > > change nothing by manually, then save. >> > >> > Can you post the resulting config here? >> > >> > Do you have commit in your tree? >> > commit 087aa036eb79f24b856893190359ba812b460f45 >> > Author: Chen Gang >> > powerpc: make additional room in exception vector area >> > > Sure, that commit certainly in my git tree. And I just try to remove the > code and re-git clone the source code from upstream, this problem still > happen. > I will post the config file as the attachment > :) > > Thanks I will try, and plan to get a result within this week (2013-04-28) Thanks. -- Chen Gang Asianux Corporation ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev
Re: "attempt to move .org backwards" still show up
Mike Qiu wrote: > 于 2013/4/24 16:31, Michael Ellerman 写道: > > On Wed, Apr 24, 2013 at 04:22:53PM +0800, Mike Qiu wrote: > >> Hi all > >> > >> I get an error message when I compile the source code in Power7 platform > >> use the newest upstream kernel. > > Hi Mike, > > > > It depends on what your .config is. What defconfig are you building? > I just copy the config file from /boot/config.* to .config and use make > menuconfig > change nothing by manually, then save. Can you post the resulting config here? Do you have commit in your tree? commit 087aa036eb79f24b856893190359ba812b460f45 Author: Chen Gang powerpc: make additional room in exception vector area Mikey ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev
Re: "attempt to move .org backwards" still show up
于 2013/4/24 16:31, Michael Ellerman 写道: On Wed, Apr 24, 2013 at 04:22:53PM +0800, Mike Qiu wrote: Hi all I get an error message when I compile the source code in Power7 platform use the newest upstream kernel. Hi Mike, It depends on what your .config is. What defconfig are you building? cheers And I do know how to build the source code in this machine . . . Thanks ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev
Re: "attempt to move .org backwards" still show up
于 2013/4/24 16:31, Michael Ellerman 写道: On Wed, Apr 24, 2013 at 04:22:53PM +0800, Mike Qiu wrote: Hi all I get an error message when I compile the source code in Power7 platform use the newest upstream kernel. Hi Mike, It depends on what your .config is. What defconfig are you building? I just copy the config file from /boot/config.* to .config and use make menuconfig change nothing by manually, then save. cheers ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev
Re: "attempt to move .org backwards" still show up
On Wed, Apr 24, 2013 at 04:22:53PM +0800, Mike Qiu wrote: > Hi all > > I get an error message when I compile the source code in Power7 platform > use the newest upstream kernel. Hi Mike, It depends on what your .config is. What defconfig are you building? cheers ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev
"attempt to move .org backwards" still show up
Hi all I get an error message when I compile the source code in Power7 platform use the newest upstream kernel. [root@feng linux]# make -j60 CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h CC scripts/mod/devicetable-offsets.s GEN scripts/mod/devicetable-offsets.h HOSTCC scripts/mod/file2alias.o CALL scripts/checksyscalls.sh HOSTLD scripts/mod/modpost CHK include/generated/compile.h CALL arch/powerpc/kernel/systbl_chk.sh CALL arch/powerpc/kernel/prom_init_check.sh AS arch/powerpc/kernel/head_64.o arch/powerpc/kernel/exceptions-64s.S: Assembler messages: arch/powerpc/kernel/exceptions-64s.S:258: Error: attempt to move .org backwards make[1]: *** [arch/powerpc/kernel/head_64.o] Error 1 make: *** [arch/powerpc/kernel] Error 2 make: *** Waiting for unfinished jobs and I see this should be fixed by the commit: 087aa036eb79f24b856893190359ba812b460f45 But it still failed in my P7 machine. the kernel source code info: git tree : git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git [root@feng linux]# git log commit 824282ca7d250bd7c301f221c3cd902ce906d731 Merge: f83b293 3b5e50e Author: Linus Torvalds Date: Mon Apr 22 15:00:59 2013 -0700 Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus Pull MIPS fix from Ralf Baechle: "Revert the change of the definition of PAGE_MASK which was prettier but broke a few relativly rare platforms" * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: Revert "MIPS: page.h: Provide more readable definition for PAGE_MASK." commit 3b5e50edaf500f392f4a372296afc0b99ffa7e70 Author: Ralf Baechle Date: Mon Apr 22 17:57:54 2013 +0200 [root@feng linux]# git branch * master [root@feng linux]# git diff [root@feng linux]# Thant means I have done nothing with the kernel Thanks Mike ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev