Kernel 4.7

AmigaOne X1000 platform specific issues related to Linux only.
Post Reply
User avatar
xeno74
Posts: 9348
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 4.7

Post by xeno74 »

xeno74 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.

Cheers,

Christian
Michael Ellerman wrote: Hmm, I find that hard to believe. But maybe I'm missing something.

Can you checkout Linus' master and then revert that commit?

cheers
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9348
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 4.7

Post by xeno74 »

I reverted that commit with:

Code: Select all

git revert 764041e0f43cc7846f6d8eb246d65b53cc06c764
It compiled without this commit but unfortunately it doesn't boot.

Darren has another result after a bisect:
Darren wrote: 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 <aneesh.kumar@linux.vnet.ibm.com>
Date: Fri Apr 29 23:26:21 2016 +1000

powerpc/mm: vmalloc abstraction in preparation for radix

The vmalloc range differs between hash and radix config. Hence make
VMALLOC_START and related constants a variable which will be runtime
initialized depending on whether hash or radix mode is active.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
[mpe: Fix missing init of ioremap_bot in pgtable_64.c for ppc64e]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

Not sure how we are getting different results though. I have attached my
bisect log and the suspect commit, whcih is quite large. I'm not sure which
part of it is at fault. I have some jobs to do now, but hope to get tesing
this later today.

Regards
Darren
Link to the commit: powerpc/mm: vmalloc abstraction in preparation for radix
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9348
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 4.7

Post by xeno74 »

I tried to revert this commit but unfortunately It doesn't work:

Code: Select all

git revert d6a9996e84ac4beb7713e9485f4563e100a9b03e

Code: Select all

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 add <paths>' or 'git rm <paths>'
hint: and commit the result with 'git commit'
Additionally I tested my cross compiling environment on my x86_64 system today. I compiled the latest git kernel without PowerPC updates today.

Download: vmlinux-4.7-rc2-2

Please test the cross compiled kernel.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
mechanic
Posts: 510
Joined: Sat Jun 25, 2011 9:22 pm

Re: Kernel 4.7

Post by mechanic »

xeno74 wrote:
mechanic wrote:Just some info for 4.7rc2.

It boots and runs fine for Deb7 and Mintppc11.
On Deb8, it boots but has problems with Xorg.
Many thanks for testing. Does Xorg work with the kernel 4.6.1?
Same results with 4.1, 4.6, 3.18.

It seems that Mesa and GL do not want to play nice with the r600 driver. Everything works except 3D.
After some time searching the web it looks like this is not a new problem and appeared on older cards using the r200 and r300 drivers.
Mesa and GL are simply looking for something that is not there for 'some' reason.

As near as I can tell the r600 driver is written in C++. Perhaps gcc4.9+ with the new C++ standard is the culprit.

It could even be a circular problem. Even if gcc was built/configured to use the old standard calls for r600 those calls may not be recognized by Mesa. Round and round it goes.
A-Eon A1X1000 ATI HD6850, Creative SB1570 PCIe, RTL8139 net PCI.
User avatar
xeno74
Posts: 9348
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 4.7

Post by xeno74 »

mechanic wrote:
xeno74 wrote:
mechanic wrote:Just some info for 4.7rc2.

It boots and runs fine for Deb7 and Mintppc11.
On Deb8, it boots but has problems with Xorg.
Many thanks for testing. Does Xorg work with the kernel 4.6.1?
Same results with 4.1, 4.6, 3.18.

It seems that Mesa and GL do not want to play nice with the r600 driver. Everything works except 3D.
After some time searching the web it looks like this is not a new problem and appeared on older cards using the r200 and r300 drivers.
Mesa and GL are simply looking for something that is not there for 'some' reason.

As near as I can tell the r600 driver is written in C++. Perhaps gcc4.9+ with the new C++ standard is the culprit.

It could even be a circular problem. Even if gcc was built/configured to use the old standard calls for r600 those calls may not be recognized by Mesa. Round and round it goes.
Thanks for your explanation.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9348
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 4.7

Post by xeno74 »

Mechanic,

I compiled the following kernel with GCC version 4.8.2. Could you please this kernel as well?

Download: vmlinux-4.7-rc2-2

Thanks,

Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
mechanic
Posts: 510
Joined: Sat Jun 25, 2011 9:22 pm

Re: Kernel 4.7

Post by mechanic »

xeno74 wrote:Mechanic,

I compiled the following kernel with GCC version 4.8.2. Could you please this kernel as well?

Christian
Same as other kernels on Deb8.


----------------------------------------------------
len@AmigaOneX1000:~$ glxgears
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: r600
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Error: couldn't get an RGB, Double-buffered visual
len@AmigaOneX1000:~$
-----------------------------------------------------

According to the system log the r600 driver IS being loaded. GL and/or Mesa just don't like it. They are at version 10.3.2-1+deb8u1.
A-Eon A1X1000 ATI HD6850, Creative SB1570 PCIe, RTL8139 net PCI.
User avatar
xeno74
Posts: 9348
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 4.7

Post by xeno74 »

mechanic wrote:
xeno74 wrote:Mechanic,

I compiled the following kernel with GCC version 4.8.2. Could you please this kernel as well?

Christian
Same as other kernels on Deb8.


----------------------------------------------------
len@AmigaOneX1000:~$ glxgears
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: r600
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Error: couldn't get an RGB, Double-buffered visual
len@AmigaOneX1000:~$
-----------------------------------------------------

According to the system log the r600 driver IS being loaded. GL and/or Mesa just don't like it. They are at version 10.3.2-1+deb8u1.
You can try the unofficial Mesa if you like.

Download: MesaLib-10.0.4-powerpc-unofficial.tar.bz2

Extract it in your home folder and rename the original r600_dri.so to r600_dri.so.bak:

Code: Select all

sudo mv /usr/lib/powerpc-linux-gnu/dri/r600_dri.so /usr/lib/powerpc-linux-gnu/dri/r600_dri.so.bak
Copy the patched r600_dri.so to /usr/lib/powerpc-linux-gnu/dri:

Code: Select all

sudo cp mesa-10.0.4/lib/dri/r600_dri.so /usr/lib/powerpc-linux-gnu/dri
Afterwards, please logout and then login.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
mechanic
Posts: 510
Joined: Sat Jun 25, 2011 9:22 pm

Re: Kernel 4.7

Post by mechanic »

Results of above.

GL 3D works, but very slow.

*********************************************************************************************************************************************
Xorg.log 28.547] (II) RADEON(0): [DRI2] Setup complete
[ 28.547] (II) RADEON(0): [DRI2] DRI driver: r600
[ 28.547] (II) RADEON(0): [DRI2] VDPAU driver: r600
[ 28.549] (II) RADEON(0): Front buffer size: 8640K
[ 28.549] (II) RADEON(0): VRAM usage limit set to 924458K
[ 28.551] (==) RADEON(0): Backing store enabled
[ 28.551] (II) RADEON(0): Direct rendering enabled
[ 28.551] (II) EXA(0): Driver allocated offscreen pixmaps
[ 28.551] (II) EXA(0): Driver registered support for the following operations:
[ 28.551] (II) Solid
[ 28.551] (II) Copy
[ 28.551] (II) Composite (RENDER acceleration)
[ 28.551] (II) UploadToScreen
[ 28.551] (II) DownloadFromScreen
[ 28.551] (II) RADEON(0): Acceleration enabled
[ 28.551] (==) RADEON(0): DPMS enabled
[ 28.551] (==) RADEON(0): Silken mouse enabled
[ 28.552] (II) RADEON(0): Set up textured video
[ 28.552] (II) RADEON(0): [XvMC] Associated with Radeon Textured Video.
[ 28.552] (II) RADEON(0): [XvMC] Extension initialized.
[ 28.552] (II) RADEON(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[ 28.569] (--) RandR disabled
[ 28.599] (II) SELinux: Disabled on system
[ 28.788] (EE) AIGLX error: dlopen of /usr/lib/powerpc-linux-gnu/dri/r600_dri.so failed (/usr/lib/powerpc-linux-gnu/dri/r600_dri.so: undefined symbol: _glapi_Dispatch)
[ 28.788] (EE) AIGLX: reverting to software rendering
[ 28.991] (II) AIGLX: Loaded and initialized swrast
[ 28.991] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[ 28.994] (II) RADEON(0): Setting screen physical size to 508 x 285
**********************************************************************************************************************************
-----------------------------------------------------------------------------------------------------
GLXGEARS
len@AmigaOneX1000:~$ vblank_mode=0 glxgears
libGL error: unable to load driver: r600_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: r600
ATTENTION: default value of option vblank_mode overridden by environment.
465 frames in 5.0 seconds = 92.849 FPS
473 frames in 5.0 seconds = 94.484 FPS
474 frames in 5.0 seconds = 94.630 FPS
466 frames in 5.0 seconds = 93.139 FPS
475 frames in 5.0 seconds = 94.932 FPS
464 frames in 5.0 seconds = 92.677 FPS
^C
len@AmigaOneX1000:~$
-----------------------------------------------------------------------------------------------------------
A-Eon A1X1000 ATI HD6850, Creative SB1570 PCIe, RTL8139 net PCI.
User avatar
xeno74
Posts: 9348
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 4.7

Post by xeno74 »

Mechanic,

Please replace the libGL.so.1.2.0.

Rename the original libGL.so.1.2.0 to libGL.so.1.2.0.bak:

Code: Select all

mv /usr/lib/powerpc-linux-gnu/libGL.so.1.2.0 /usr/lib/powerpc-linux-gnu/libGL.so.1.2.0.bak
Copy the patched libGL.so.1.2.0 to /usr/lib/powerpc-linux-gnu/:

Code: Select all

cp mesa-10.0.4/lib/libGL.so.1.2.0 /usr/lib/powerpc-linux-gnu/
Good luck! :-)

@All

We are still trying to resolve the boot problem because of the PowerPC updates: https://lists.ozlabs.org/pipermail/linuxppc-dev/2016-June/144114.html

Cheers,

Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
Post Reply