RE: Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-22 Thread luigi burdo
Herrenschmidt; Michael Ellerman; Aneesh Kumar K.V; Darren Stevens; linuxppc-dev@lists.ozlabs.org; Michael Ellerman; Julian Margetson; Adrian Cox; R.T.Dickinson; R.T.Dickinson; Pat Wall; Pat Wall; cont...@a-eon.com; Matthew Leaman; luigi burdo; Christian Zigotzky Oggetto: Kernel 4.7: PAGE_GUARDED and

Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-22 Thread Christian Zigotzky
Hi All, Please find attached Darren's patch. With this patch, the Nemo board boots. That means, the problematic source code is somewhere in this patch. Which file in this patch is responsible for starting the kernel? Thanks, Christian On 13 June 2016 at 8:09 PM, Christian Zigotzky wrote: > Hi B

Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-13 Thread Christian Zigotzky
Hi Ben, I could send you a patch but it doesn't work with the three PowerPC commits. I think we have to fix the boot issue at first. After that we can integrate the first patch for the Nemo board. Cheers, Christian On 13 June 2016 at 10:19 AM, Benjamin Herrenschmidt wrote: > > The right way to

Re: Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-13 Thread Christian Zigotzky
Hi All, Can I disable the new PowerPC features with Radix MMU Support (PPC_RADIX_MMU) [Y/n/?] (NEW) -> n ? I can't compile the RC3 without the PowerPC commits. Our kernel lost the mainline kernel support. Revert of the three PowerPC commits works but the kernel doesn't compile anymore. C

Re: Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-13 Thread Benjamin Herrenschmidt
On Mon, 2016-06-13 at 09:14 +0100, Christian Zigotzky wrote: > Can I disable the new PowerPC features with > > Radix MMU Support (PPC_RADIX_MMU) [Y/n/?] (NEW) -> n > > ? > > I can't compile the RC3 without the PowerPC commits. Our kernel lost > the mainline kernel support. Revert of the thre

Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-09 Thread Christian Zigotzky
Michael, Thank you for your patch. I was able to compile the kernel but unfortunately it doesn't boot. Do you have another hint or patch for me? Thanks in advance, Christian On 09 June 2016 at 1:15 PM, Michael Ellerman wrote: On Thu, 2016-06-09 at 10:48 +0200, Christian Zigotzky wrote: S

Re: Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-09 Thread Michael Ellerman
On Thu, 2016-06-09 at 10:48 +0200, Christian Zigotzky wrote: > Shall I modify the workaround? Is the workaround for lack of the device > tree the problem? I don't think so. You could try this patch to try and isolate it: diff --git a/arch/powerpc/include/asm/book3s/64/pgtable.h b/arch/powerpc

Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-09 Thread Christian Zigotzky
Shall I modify the workaround? Is the workaround for lack of the device tree the problem? FYI: The SB600 doesn't follow normal PCIe address decoding rules, as in its original use as an AMD south bridge it was designed to appear as if it were integrated into the north bridge. What shall I do?

Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-08 Thread Christian Zigotzky
Hi Aneesh, We use it only in the file "pci-common.c". Part of the Nemo patch with ISA_IO_BASE: diff -rupN linux-4.7/arch/powerpc/kernel/pci-common.c linux-4.7-nemo/arch/powerpc/kernel/pci-common.c --- linux-4.7/arch/powerpc/kernel/pci-common.c2016-05-20 10:23:06.588299920 +0200 +++ linux-

Re: Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-08 Thread Aneesh Kumar K.V
Darren Stevens writes: > Hello Christian > That's not where I ended up with my bisect, this commit is about 10 before the > one I found to be bad, which is: > > commit d6a9996e84ac4beb7713e9485f4563e100a9b03e > Author: Aneesh Kumar K.V > Date: Fri Apr 29 23:26:21 2016 +1000 > > powerpc/mm

Re: Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-08 Thread Michael Ellerman
On Wed, 2016-06-08 at 12:33 +0100, Darren Stevens wrote: > On 07/06/2016, Christian Zigotzky wrote: > > > > 764041e0f43cc7846f6d8eb246d65b53cc06c764 is the first bad commit > > commit 764041e0f43cc7846f6d8eb246d65b53cc06c764 > > Author: Aneesh Kumar K.V > > Date: Fri Apr 29 23:26:09 2016 +1000

Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-08 Thread Christian Zigotzky
Hi All, I tried to revert this commit but unfortunately I doesn't work: git revert d6a9996e84ac4beb7713e9485f4563e100a9b03e error: could not revert d6a9996... powerpc/mm: vmalloc abstraction in preparation for radix hint: after resolving the conflicts, mark the corrected paths hint: with 'git

Re: Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-08 Thread Darren Stevens
Hello Christian On 07/06/2016, Christian Zigotzky wrote: > "range.size, pgprot_val(pgprot_noncached(__pgprot(0;" isn't the > problem. :-) It works. > > 764041e0f43cc7846f6d8eb246d65b53cc06c764 is the first bad commit > commit 764041e0f43cc7846f6d8eb246d65b53cc06c764 > Author: Aneesh Kumar K.V

Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-08 Thread Christian Zigotzky
Hi Darren, Many thanks for your help. I started my bisect with the following commits: git bisect start git bisect good 8ffb4103f5e28d7e7890ed4774d8e009f253f56e git bisect bad 1a695a905c18548062509178b98bc91e67510864 (Linux 4.7-rc1) Did you start your bisect with the same bad and good commit?

Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-08 Thread Christian Zigotzky
Hi Michael, Thanks a lot for the hint. I compiled it without the commit below but unfortunately it doesn't boot. Cheers, Christian On 08 June 2016 at 1:30 PM, Michael Ellerman wrote: It's not a merge, so just plain git revert: $ git clone git://git.kernel.org/pub/scm/linux/kernel/git/t

Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-08 Thread Christian Zigotzky
Hi Michael, On 08 June 2016 at 04:52 AM, Michael Ellerman wrote: On Tue, 2016-06-07 at 22:17 +0200, Christian Zigotzky wrote: 764041e0f43cc7846f6d8eb246d65b53cc06c764 is the first bad commit commit 764041e0f43cc7846f6d8eb246d65b53cc06c764 Author: Aneesh Kumar K.V Date: Fri Apr 29 23:26:09 201

Re: Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-08 Thread Michael Ellerman
On Wed, 2016-06-08 at 12:58 +0200, Christian Zigotzky wrote: > On 08 June 2016 at 04:52 AM, Michael Ellerman wrote: > > On Tue, 2016-06-07 at 22:17 +0200, Christian Zigotzky wrote: > > > 764041e0f43cc7846f6d8eb246d65b53cc06c764 is the first bad commit > > > commit 764041e0f43cc7846f6d8eb246d65b53cc

Re: Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-07 Thread Michael Ellerman
On Tue, 2016-06-07 at 22:17 +0200, Christian Zigotzky wrote: > > 764041e0f43cc7846f6d8eb246d65b53cc06c764 is the first bad commit > commit 764041e0f43cc7846f6d8eb246d65b53cc06c764 > Author: Aneesh Kumar K.V > Date: Fri Apr 29 23:26:09 2016 +1000 > > powerpc/mm/radix: Add checks in slice c

Re: Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-07 Thread Michael Ellerman
On Wed, 2016-06-08 at 00:14 +0200, Christian Zigotzky wrote: > Hi All, > > I replaced the file "slice.c" with the old one from kernel 4.6. It > compiled but unfortunately it doesn't boot. I would expect nothing else. You can't just replace whole files from different versions, the unit of work i

Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-07 Thread Christian Zigotzky
Hi All, I replaced the file "slice.c" with the old one from kernel 4.6. It compiled but unfortunately it doesn't boot. Cheers, Christian On 07 June 2016 at 10:17 PM, Christian Zigotzky wrote: Hi Michael, On 06 June 2016 at 02:51 AM, Michael Ellerman wrote: On Sat, 2016-06-04 at 17:07 +020

Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-07 Thread Christian Zigotzky
Hi Michael, On 06 June 2016 at 02:51 AM, Michael Ellerman wrote: On Sat, 2016-06-04 at 17:07 +0200, Christian Zigotzky wrote: Aneesh, Shall I bisect the kernel from the powerpc git? No just use linus' tree. Shall I start with the following commit? https://git.kernel.org/cgit/linux/kernel/

Re: Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-06 Thread Julian Margetson
On 6/5/2016 10:00 PM, Michael Ellerman wrote: On Sun, 2016-06-05 at 21:23 -0400, Julian Margetson wrote: drivers/gpu/drm/drm_vm.c: In function ‘drm_dma_prot’: drivers/gpu/drm/drm_vm.c:83:6: error: invalid operands to binary | (have ‘pgprot_t {aka struct }’ and ‘int’) tmp |= _

Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-05 Thread Christian Zigotzky
Thanks. I'll try it. - Christian On 06 June 2016 at 02:51 AM, Michael Ellerman wrote: On Sat, 2016-06-04 at 17:07 +0200, Christian Zigotzky wrote: Aneesh, Shall I bisect the kernel from the powerpc git? No just use linus' tree. Shall I start with the following commit? https://git.kernel.

Re: Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-05 Thread Michael Ellerman
On Sun, 2016-06-05 at 21:23 -0400, Julian Margetson wrote: > > > > > > drivers/gpu/drm/drm_vm.c: In function ‘drm_dma_prot’: > > > drivers/gpu/drm/drm_vm.c:83:6: error: invalid operands to binary | > > > (have ‘pgprot_t {aka struct }’ and ‘int’) > > > tmp |= _PAGE_NO_CACHE; > >

Re: Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-05 Thread Julian Margetson
On 6/5/2016 8:57 PM, Michael Ellerman wrote: On Sun, 2016-06-05 at 18:09 +0200, Christian Zigotzky wrote: All, I need an answer because I think Darren's guess is correct. It isn't a problem in the pci code. I replaced the file head_64.S that Darren mentioned with the one from the kernel 4.6 an

Re: Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-05 Thread Michael Ellerman
On Sun, 2016-06-05 at 18:09 +0200, Christian Zigotzky wrote: > All, > > I need an answer because I think Darren's guess is correct. It isn't a > problem in the pci code. I replaced the file head_64.S that Darren > mentioned with the one from the kernel 4.6 and it compiled but > unfortunately i

Re: Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-05 Thread Michael Ellerman
On Sat, 2016-06-04 at 20:16 +0530, Aneesh Kumar K.V wrote: > Christian Zigotzky writes: > > > Hi All, > > > > I compiled the latest git version of kernel 4.7 with all PowerPC > > commits. Maybe the latest commit powerpc-4.7-2 solved the boot issues. > > Our latest Nemo patch 4.7-1 works withou

Re: Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-05 Thread Michael Ellerman
On Sat, 2016-06-04 at 17:07 +0200, Christian Zigotzky wrote: > Aneesh, > > Shall I bisect the kernel from the powerpc git? No just use linus' tree. > Shall I start with the following commit? > > https://git.kernel.org/cgit/linux/kernel/git/powerpc/linux.git/commit/?id=8ffb4103f5e28d7e7890ed477

Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-05 Thread Christian Zigotzky
All, I need an answer because I think Darren's guess is correct. It isn't a problem in the pci code. I replaced the file head_64.S that Darren mentioned with the one from the kernel 4.6 and it compiled but unfortunately it doesn't boot. We know "head_64.S" is one file for the early boot phase

Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-04 Thread Christian Zigotzky
Which files are responsible for the early boot phase in the commit powerpc-4.7-1? Perhaps the problem is there. - Christian Sent from my iPhone > On 04 Jun 2016, at 17:13, Christian Zigotzky wrote: > > Aneesh, > > It's from the Nemo patch. I patch the kernel 4.7 with our Nemo patch. [1] > >

Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-04 Thread Christian Zigotzky
Aneesh, It's from the Nemo patch. I patch the kernel 4.7 with our Nemo patch. [1] Cheers, Christian [1] http://www.xenosoft.de/nemo_4.7-1.patch On 04 June 2016 at 4:46 PM, Aneesh Kumar K.V wrote: Which kernel is that ? For upstream I have at that line 729 hose->pc

Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-04 Thread Christian Zigotzky
Aneesh, Shall I bisect the kernel from the powerpc git? git clone https://kernel.googlesource.com/pub/scm/linux/kernel/git/powerpc/linux https://git.kernel.org/cgit/linux/kernel/git/powerpc/linux.git/log/ Shall I start with the following commit? https://git.kernel.org/cgit/linux/kernel/git/

Re: Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-04 Thread Aneesh Kumar K.V
Christian Zigotzky writes: > Hi All, > > I compiled the latest git version of kernel 4.7 with all PowerPC > commits. Maybe the latest commit powerpc-4.7-2 solved the boot issues. > Our latest Nemo patch 4.7-1 works without any problems with the latest > git version. instead of using powerpc-

Re: Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-04 Thread Aneesh Kumar K.V
Christian Zigotzky writes: > Aneesh, > > Could you please send me only your patch for the Power ISA 3.0 (Power9) > Radix Tree MMU? You have done the most modifications for the kernel 4.7. > If the kernel boots with your modifications then I have to look to the > other few modifications. > > Th

Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-04 Thread Christian Zigotzky
Hi All, I compiled the latest git version of kernel 4.7 with all PowerPC commits. Maybe the latest commit powerpc-4.7-2 solved the boot issues. Our latest Nemo patch 4.7-1 works without any problems with the latest git version. I got the following error message: arch/powerpc/kernel/pci-comm

Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-04 Thread Christian Zigotzky
Aneesh, Could you please send me only your patch for the Power ISA 3.0 (Power9) Radix Tree MMU? You have done the most modifications for the kernel 4.7. If the kernel boots with your modifications then I have to look to the other few modifications. Thanks in advance, Christian On 04 June 2

Kernel 4.7: PAGE_GUARDED and _PAGE_NO_CACHE

2016-06-04 Thread Christian Zigotzky
Hi All, The commit powerpc-4.7-2 [2] was released yesterday. There is a conflict in my local kernel git directory if I use git pull because I have reverted the commit powerpc-4.7-1. [1] The commit powerpc-4.7-2 [2] needs the commit powerpc-4.7-1. [1] I created a new local kernel git director