Kernel 4.4

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

Kernel 4.4

Post by xeno74 »

Hi All,

Unfortunately I have some bad news for you. The merge window for the kernel 4.4 is open. Linus Torvalds added a lot of source code last days. Unfortunately they have changed a lot of source code. The reverts of some existing problematic commits don't work anymore and therefore I can't patch the kernel source code with the Nemo patch.

Without the reverts we have the following error messages:

Code: Select all

Oops: Kernel access of bad area, sig: 11 [#1]

.sb600_8259_cascade+0x4c/0xac (unreliable)
.schedule+0x74/0x9c (unreliable)

Kernel panic - not syncing: Fatal exception in interrupt
Issue: The new interrupt system doesn't work with our AMD/ATI SB600 south bridge source code.

The following files could be interesting to solve the issue:

Code: Select all

include/linux/irq.h include/linux/irq.h
include/linux/irqdesc.h include/linux/irqdesc.h
kernel/irq/internals.h kernel/irq/internals.h
kernel/irq/irqdesc.c kernel/irq/irqdesc.c
kernel/irq/irqdomain.c kernel/irq/irqdomain.c
kernel/irq/manage.c kernel/irq/manage.c
kernel/irq/proc.c kernel/irq/proc.c
I posted this issue on the linuxppc-dev mailing list four months ago: https://lists.ozlabs.org/pipermail/linuxppc-dev/2015-July/130717.html

Ben wrote (linuxppc-dev@lists.ozlabs.org):
Ben wrote: Michael, the crash looks like a neat NULL dereference, any chance you
can spot something in the code that might explain it ?

The strange thing is that the crash is in sb600_8259_cascade(), however
that function doesn't seem to exist in a current kernel tree, or if it
does it's somewhat hidden behind grep-defeating macros.

All I can find that relates to something called "sb600" is some quirks
in AHCI and x86 fixups that seem ATI related.

Christian, do you have some out of tree driver in that kernel ?

---

Now that makes more sense since the problem is around IRQ handling...
more specifically the SB600 code, so I suspect it's your SB600 patch
that has an issue. Look at how that series from Jiang modified the
irq handlers and see if the sb600 patch needs a similar change maybe ?

---

Well, the patch is gross ... That stuff needs to be mostly re-written,
randomly ifdef'ing things around isn't going to fly. There are also
some mentions of FW issues, can this be fixed in FW ?

Ben.
I will try to solve the issue with the interrupt system.

Could someone help me to fix the issue, please?

PLEASE use the longterm kernel 4.1 if you want a stable and reliable kernel for your AmigaONE X1000. I will release some new versions of the longterm kernel 4.1 in the future.

Cheers,

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

Running Linux on AmigaONEs can require some tinkering.

User avatar
xeno74
Posts: 5886
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 4.4

Post by xeno74 »

Hi All,

I have really good news for you. :-)

Darren solved the problem with the new interrupt system.

Here is the new Nemo patch for the kernel 4.4: nemo_4.4-1.patch

The RC1 works well on my AmigaONE X1000:

Image

I'm happy! :-)

Cheers,

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

Post by mechanic »

xeno74 wrote:Hi All,

I have really good news for you. :-)

Darren solved the problem with the new interrupt system.

Here is the new Nemo patch for the kernel 4.4.

I'm happy! :-)

Cheers,

Christian
Good for Darren :D He gets 3 atta boys.

What did you use for a .config file?
A-Eon A1X1000 ATI HD6850, Creative SB1570 PCIe, RTL8139 net PCI.

User avatar
xeno74
Posts: 5886
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 4.4

Post by xeno74 »

mechanic wrote:
Good for Darren :D He gets 3 atta boys.

What did you use for a .config file?
Hi Mechanic,

The config file is included in the following package.

Download: vmlinux-4.4-rc1-AMIGA_one_X1000.tar.bz2

Image

New:
It also includes:
  • KVM_BOOK3S_64_PR
    Support running guest kernels in virtual machines on processors without using hypervisor mode in the host, by running the guest in user mode (problem state) and emulating all privileged instructions and registers.

    This is not as fast as using hypervisor mode, but works on machines where hypervisor mode is not available or not usable, and can emulate processors that are different from the host processor, including emulating 32-bit processors on a 64-bit host.
  • Mac-on-Linux support
  • network support for AROS hosted
  • support for 4 serial ports
  • Bluetooth USB dongle support
  • kernel tracing with ftrace
  • ubuntu MATE 15.04, 15.10, and 16.04 LTS support
  • Debian 8 support
  • Btrfs support
  • systemd support
  • Wacom Intuos/Graphire tablet support (USB)
  • Linux kernel icon for OS4.1 by Tommysammy
Cheers,

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

Post by mechanic »

Got it.

Might give Deb 8 a try.

Thanks Christian
A-Eon A1X1000 ATI HD6850, Creative SB1570 PCIe, RTL8139 net PCI.

User avatar
Srtest
Posts: 240
Joined: Wed Jun 11, 2014 5:06 pm

Re: Kernel 4.4

Post by Srtest »

It works while I'm still getting strange irq messages before the boot is finished and logon screen appears.

Also with the final 4.3 once in a while usb errors appear which causes a halt for about 15 seconds right before logging on. Something to do with enumeration. Will post if it appears again with this kernel.

User avatar
xeno74
Posts: 5886
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 4.4

Post by xeno74 »

Srtest wrote:It works while I'm still getting strange irq messages before the boot is finished and logon screen appears.

Also with the final 4.3 once in a while usb errors appear which causes a halt for about 15 seconds right before logging on. Something to do with enumeration. Will post if it appears again with this kernel.
Thank you for testing. :-)

Do you mean the following messages?

Code: Select all

[    0.134457] pci 0000:00:10.0: of_irq_parse_pci() failed with rc=-22
[    0.134485] pci 0000:00:10.1: of_irq_parse_pci() failed with rc=-22
[    0.134508] pci 0000:00:10.2: of_irq_parse_pci() failed with rc=-22
[    0.134532] pci 0000:00:10.3: of_irq_parse_pci() failed with rc=-22
[    0.134568] pci 0000:00:11.0: of_irq_parse_pci() failed with rc=-22
[    0.134599] pci 0000:00:11.1: of_irq_parse_pci() failed with rc=-22
[    0.134624] pci 0000:00:11.2: of_irq_parse_pci() failed with rc=-22
[    0.134649] pci 0000:00:11.3: of_irq_parse_pci() failed with rc=-22
[    0.134672] pci 0000:00:14.0: of_irq_parse_pci() failed with rc=-22
[    0.134696] pci 0000:00:14.1: of_irq_parse_pci() failed with rc=-22
[    0.134719] pci 0000:00:14.2: of_irq_parse_pci() failed with rc=-22
[    0.134761] pci 0000:00:15.1: of_irq_parse_pci() failed with rc=-22
Stephen Warren https://patchwork.ozlabs.org/patch/326769/ wrote: ... but that seems reasonable given that the DT that of_irq_parse_pci()
parses is missing, and did correctly trigger the fallback path, so
everything still worked.
Lucas Stach https://patchwork.ozlabs.org/patch/326769/ wrote: Yes, this should be normal. It spits this error for old DTs, but keeps
doing the right thing. I'm not sure if we should downgrade this to info
or dbg.
Arnd Bergmann https://patchwork.ozlabs.org/patch/326769/ wrote: No, I think printing an error like this is appropriate: it is an incentive
to update the dts files, but doesn't look too urgent as long as everything
still works.
@All

By the way, Darren has problems with the PASemi ethernet. Could you please test the PASemi ethernet? Thanks in advance!
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.4

Post by mechanic »

xeno74 wrote: By the way, Darren has problems with the PASemi ethernet. Could you please test the PASemi ethernet? Thanks in advance!
Love to help but about 3 weeks ago lightning took out my modem, router, x86 computer and the PASemi PHY. I guess Mother is still the boss.

I did the Deb 8 install but it won't boot into X. It stops at;

i8259_mask_irq(5)
i8259_unmask_irq(5)
8139too 0000:06:06.0 eth1: link up, 100Mbps, full-duplex, lpa 0xC5E1
Then just a blinking cursor.

I'm using the 4.2rc4 kernel and modules. Any ideas? initrd?
A-Eon A1X1000 ATI HD6850, Creative SB1570 PCIe, RTL8139 net PCI.

User avatar
xeno74
Posts: 5886
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 4.4

Post by xeno74 »

mechanic wrote:
xeno74 wrote: By the way, Darren has problems with the PASemi ethernet. Could you please test the PASemi ethernet? Thanks in advance!
Love to help but about 3 weeks ago lightning took out my modem, router, x86 computer and the PASemi PHY. I guess Mother is still the boss.

I did the Deb 8 install but it won't boot into X. It stops at;

i8259_mask_irq(5)
i8259_unmask_irq(5)
8139too 0000:06:06.0 eth1: link up, 100Mbps, full-duplex, lpa 0xC5E1
Then just a blinking cursor.

I'm using the 4.2rc4 kernel and modules. Any ideas? initrd?
In my point of view it is better to install it with the stable longterm kernel 4.1.
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.4

Post by mechanic »

Don't know what is going on but after several tries I keep getting a

Not an ELF executable format

When trying to boot the 4.1 kernel.
A-Eon A1X1000 ATI HD6850, Creative SB1570 PCIe, RTL8139 net PCI.

Post Reply