Updated installation images for Debian Ports 2019-04-20

classic Classic list List threaded Threaded
31 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Updated installation images for Debian Ports 2019-04-20

John Paul Adrian Glaubitz
Hello!

I just uploaded updated installation images 2019-04-20 for the
following Debian Ports architectures:

 * alpha
 * hppa
 * ia64
 * m68k
 * powerpc
 * ppc64
 * sh4
 * sparc64

I uploaded both CD images [1] as well as netboot images [2].

Please test those images and report back over the mailing list for
the corresponding architecture.

Known issues:

 * alpha
   - There have been reports about missing firmware for storage devices.
     The firmware required for these devices is located in the
     "firmware-linux" and "firmware-linux-nonfree" packages but currently
     don't have a floppy driver in debian-installer to load additional
     firmware. I will figure out how to build CD images including firmware
     similar to the images available for i386 and amd64.
 * hppa
   - There have been reports about missing GPG keys during installation.
     If you are seeing this issue, please provide me with the syslog,
     information on your hardware, information on the image used and
     a rough recap of what was done during install (normal vs. expert
     mode etc).
     This issue is most likely a bug specific to hppa as the issue doesn't
     show on other architectures despite the fact that the missing key
     would normally affect all architectures. I suspect a hack that
     was added for hppa when the first CD images were built for Debian
     Ports by the PA-RISC porters. I'll look into it.
 * ia64
   - The kernel might be unstable during install
     (try passing "hardened_usercopy=off" at the boot prompt,
      e.g. "install hardened_usercopy=off").
   - If the machine locks up during boot with a radeon GPU,
     try passing "modprobe_blacklist=radeon nomodeset".
 * m68k
   - The drivers for IDE hardware may have to be loaded manually, e.g.:
     + modprobe pata_gayle
     + modprobe pata_falcon
   - There is no automatic installation of the bootloader yet,
     users have to boot the kernel and initrd manually after
     installation.
 * powerpc/ppc64
   - The bootloader installation still defaults to Yaboot and
     is being switched to GRUB for IBM POWER and PowerMacs,
     please report any issues you find.
   - Unfortunately, upgrading the GRUB package will currently
     render PowerMacs unbootable. See this thread for more:
     https://lists.debian.org/debian-powerpc/2019/04/msg00165.html
   - On some machines, the fans might produce a lot of noise,
     this can be addressed by manually the windfarm kernel
     modules:
     + modprobe windfarm_core
 * sh4
   - There is no CD image, installation has to be performed
     using the debian-installer images.
   - Currently supported targets are Renesas SH-7785LCR and
     SH-7751R, the latter should be identical to qemu-sh4.
   - debian-installer for sh4 is completely untested, please
     test with QEMU and report back.
   - The filenames for kernel and initrd still contain an
      old 2.6.32.5 kernel version. This can be ignored.
 * sparc64
   - Installation over a serial console is currently broken
     on sparc64 due to a bug in the rootskel package
     (can also be considered a kernel bug), see: #926539.
     Use any image before 2019-04-06 as workaround.

Important:

When reporting issues or bugs, please include the syslog
from your installation in the bug report/mail. The log
file can be access when switching to another console using
<Alt>+<Cursor> for normal installations or <Ctrl>+<a>+<n>
when installing over a serial console. I also need to know
what hardware was used, which installation steps (normal
vs. expert) and which image was used.

I am currently collecting bug reports but cannot push the fixes
immediately as the imminent Debian Buster release means that
debian-installer and components are effectively frozen.

Thanks,
Adrian

> [1] https://cdimage.debian.org/cdimage/ports/2019-04-12/
> [2] https://cdimage.debian.org/cdimage/ports/debian-installer/

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [hidden email]
`. `'   Freie Universitaet Berlin - [hidden email]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

Reply | Threaded
Open this post in threaded view
|

Re: Updated installation images for Debian Ports 2019-04-20

John Paul Adrian Glaubitz
Hello Thomas!

First of all, please always reply to the list and not to me directly or
keep the mailing list in CC.

On 6/3/19 7:22 PM, Thomas Pope wrote:
> I want to download m68k for use in an upgraded Mac SE/30. I am using a Daystar
> 040 with 30.33 ROM CHIP. This card may be upgradable to an 060 chip with an
> adapter socket. Does m68k come in 040 and 060 binaries

No, we're currently using the 68020 baseline. Building separately for 68040 and
68060 would mean result in a lot of additional effort and maintenance burden
considering we're building around 12.000 source packages.

> , if so where do I go to get them. As you may know it is not possible (as far
> as I know) to go online and download Debian files to that machine. Therefore
> I would prefer CD's.

Fetch the ISO here [1] and burn it to a disc.

> I know that's rare these days but do you know a place or a person would make
> and mail them to me? I'd pay in advance. Thank you for your time.

I could do that in principle, yes. But the problem is that I cannot guarantee
at the moment that the image will work fine on your particular machine. So, it
would be best if you burnt the ISO image yourself onto a CD-RW (rewritable CD-R).

Adrian

> [1] https://cdimage.debian.org/cdimage/ports/2019-05-24/debian-10.0-m68k-NETINST-1.iso

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [hidden email]
`. `'   Freie Universitaet Berlin - [hidden email]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

Reply | Threaded
Open this post in threaded view
|

Re: Updated installation images for Debian Ports 2019-04-20

Finn Thain
On Tue, 4 Jun 2019, John Paul Adrian Glaubitz wrote:

>
> ... I cannot guarantee at the moment that the image will work fine on
> your particular machine. So, it would be best if you burnt the ISO image
> yourself onto a CD-RW (rewritable CD-R).
>

For compatiblity with old OEM optical drives, I find that CD-R media works
best.

Adrian is right that this does risk wasting media. But if the installer
ISO works in Aranym then the CD-R should work on a stock SE/30 -- with the
proviso that you use the latest mac_scsi driver fixes which can be found
at my github. (Those Macs which use the mac_esp driver don't need any
patches.)

I can provide you with a download link for a kernel build if you like. The
installer should work with this kernel because the Mac drivers are all
built-in.

--

Reply | Threaded
Open this post in threaded view
|

"BUG: soft lockup" on A1200; was: Re: Updated installation images for Debian Ports 2019-04-20

Szymon Bieganski
In reply to this post by John Paul Adrian Glaubitz
Hello!

First of all thank you all for your efforts to revive the Debian ports
for m68k. I myself as a Debian fan, would love to make use of my
retro-rig with my favorite linux distro beside AmigaOS and NetBSD.
Unfortunately I am facing strange problem that might be related to some
specific hardware configuration, and therefore would like to consult
with the experienced users if my problems might be caused by either
software or hardware. Relevant hardware configuration comprises of a
stock 1D4 Amiga 1200 with Apollo 040 CPU card, recent Elbox FastATA IDE
controller with 40G IDE HDD and PCMCIA network card. All components
causes no problems with other OS'es and with neither KS 3.0, 3.1 nor
3.1.4 (might be important during boot-off of partition beyond 4G boundary).

Despite my multiple attempts to boot off the installation provided in
these ISO images, I was not able to we pass the kernel initialization. I
did succeed to boot and start the installation process using the old
images with kernel 2.4.27 (Debian 3.1) but since the PCMCIA network
causes null-pointer failure 1) and renders kernel 2.4 unusable on my
setup, even tough it manages to recognize 40G HDD connected to either
motherboard IDE or FastATA (primary IDE channel). With later kernel
revisions boot attempts finishes right at the moment when the partition
tables should be enlisted, and root partition should be mounted. But
nothing as such happens, instead a cryptic message is shown, and system
seems to hang, but power LED keeps blinking (heartbeat???). Full dmesg
can be found on PPA forum 2)

-----------------------------

[   32.480000] BUG: soft lockup - CPU#0 stuck for 23s!
[systemd-udevd:49]                                                                  

[   32.480000] Modules linked in: gayle(+)
ide_core                                                                                        

[  
32.480000]                                                                                                                             

[   32.480000] Format 00  Vector: 0078  PC: 0004d01e  Status: 2200   
Not tainted                                                          
[   32.480000] ORIG_D0: ffffffff  D0: 00000100  A2: 01e3b010  A1:
002fe130                                                                 
[   32.480000] A0: 01e68000  D5: 00000002  D4:
0000001e                                                                                    

[   32.480000] D3: 0000000a  D2: 00000002  D1: 00000002

-----------------------------

Problem with accessing HDD through an unsupported add-on card was
suspicious. So I gave it a try to boot without installed FastATA, but
the only difference I noticed is the following:

-----------------------------

$ diff -Nurw dmesg.4.19.37.bare dmesg.4.19.37.fata
--- dmesg.4.19.37.gayle  2019-06-04 19:26:19.951923915 +0200
+++ dmesg.4.19.37.fata  2019-06-04 19:25:31.219660738 +0200
@@ -1,3 +1,4 @@
+
 ABCDGHIJK
 Linux version 4.19.37-amiga (root@nb) (gcc version 8.3.0 (Debian
8.3.0-7)) #1 Sun May 26 21:20:29 UTC 2019
 Saving 250 bytes of bootinfo
@@ -55,9 +56,8 @@
 loop: module loaded
 Uniform Multi-Platform E-IDE driver
 ide: Gayle IDE controller (A1200 style)
+hda: probing with STATUS(0x50) instead of ALTSTATUS(0x0a)
 hda: SAMSUNG MP0402H, ATA DISK drive
-ide0 at 0x80da0000 on irq 2 (serialized)
-ide-gd driver 1.18
-hda: max request size: 1024KiB
+hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x0a)
+hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x0a)
 random: crng init done

-----------------------------

To sum up the "BUG: soft lockup" behavior is consistent throughout all
kernels ranging from 3.1 up to 4.19 which I tried, but not with 2.4.27.

Thanks in advance for any suggestions,

Simon


1) https://lists.debian.org/debian-68k/2004/04/msg00080.html

2)
https://www.ppa.pl/forum/linux/35078/debian-unstable-na-1200-z-apollo-1240-i-64mb-ram#m529071


On 4/20/19 10:09 AM, John Paul Adrian Glaubitz wrote:

> Hello!
>
> I just uploaded updated installation images 2019-04-20 for the
> following Debian Ports architectures:
>
>  * alpha
>  * hppa
>  * ia64
>  * m68k
>  * powerpc
>  * ppc64
>  * sh4
>  * sparc64
>
> I uploaded both CD images [1] as well as netboot images [2].
>
> Please test those images and report back over the mailing list for
> the corresponding architecture.
>
> Known issues:
>
>  * alpha
>    - There have been reports about missing firmware for storage devices.
>      The firmware required for these devices is located in the
>      "firmware-linux" and "firmware-linux-nonfree" packages but currently
>      don't have a floppy driver in debian-installer to load additional
>      firmware. I will figure out how to build CD images including firmware
>      similar to the images available for i386 and amd64.
>  * hppa
>    - There have been reports about missing GPG keys during installation.
>      If you are seeing this issue, please provide me with the syslog,
>      information on your hardware, information on the image used and
>      a rough recap of what was done during install (normal vs. expert
>      mode etc).
>      This issue is most likely a bug specific to hppa as the issue doesn't
>      show on other architectures despite the fact that the missing key
>      would normally affect all architectures. I suspect a hack that
>      was added for hppa when the first CD images were built for Debian
>      Ports by the PA-RISC porters. I'll look into it.
>  * ia64
>    - The kernel might be unstable during install
>      (try passing "hardened_usercopy=off" at the boot prompt,
>       e.g. "install hardened_usercopy=off").
>    - If the machine locks up during boot with a radeon GPU,
>      try passing "modprobe_blacklist=radeon nomodeset".
>  * m68k
>    - The drivers for IDE hardware may have to be loaded manually, e.g.:
>      + modprobe pata_gayle
>      + modprobe pata_falcon
>    - There is no automatic installation of the bootloader yet,
>      users have to boot the kernel and initrd manually after
>      installation.
>  * powerpc/ppc64
>    - The bootloader installation still defaults to Yaboot and
>      is being switched to GRUB for IBM POWER and PowerMacs,
>      please report any issues you find.
>    - Unfortunately, upgrading the GRUB package will currently
>      render PowerMacs unbootable. See this thread for more:
>      https://lists.debian.org/debian-powerpc/2019/04/msg00165.html
>    - On some machines, the fans might produce a lot of noise,
>      this can be addressed by manually the windfarm kernel
>      modules:
>      + modprobe windfarm_core
>  * sh4
>    - There is no CD image, installation has to be performed
>      using the debian-installer images.
>    - Currently supported targets are Renesas SH-7785LCR and
>      SH-7751R, the latter should be identical to qemu-sh4.
>    - debian-installer for sh4 is completely untested, please
>      test with QEMU and report back.
>    - The filenames for kernel and initrd still contain an
>       old 2.6.32.5 kernel version. This can be ignored.
>  * sparc64
>    - Installation over a serial console is currently broken
>      on sparc64 due to a bug in the rootskel package
>      (can also be considered a kernel bug), see: #926539.
>      Use any image before 2019-04-06 as workaround.
>
> Important:
>
> When reporting issues or bugs, please include the syslog
> from your installation in the bug report/mail. The log
> file can be access when switching to another console using
> <Alt>+<Cursor> for normal installations or <Ctrl>+<a>+<n>
> when installing over a serial console. I also need to know
> what hardware was used, which installation steps (normal
> vs. expert) and which image was used.
>
> I am currently collecting bug reports but cannot push the fixes
> immediately as the imminent Debian Buster release means that
> debian-installer and components are effectively frozen.
>
> Thanks,
> Adrian
>
>> [1] https://cdimage.debian.org/cdimage/ports/2019-04-12/
>> [2] https://cdimage.debian.org/cdimage/ports/debian-installer/

signature.asc (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: "BUG: soft lockup" on A1200; was: Re: Updated installation images for Debian Ports 2019-04-20

John Paul Adrian Glaubitz
Hi!

On 6/6/19 11:22 PM, Szymon Bieganski wrote:
> Unfortunately I am facing strange problem that might be related to some
> specific hardware configuration, and therefore would like to consult
> with the experienced users if my problems might be caused by either
> software or hardware. Relevant hardware configuration comprises of a
> stock 1D4 Amiga 1200 with Apollo 040 CPU card, recent Elbox FastATA IDE
> controller with 40G IDE HDD and PCMCIA network card. All components
> causes no problems with other OS'es and with neither KS 3.0, 3.1 nor
> 3.1.4 (might be important during boot-off of partition beyond 4G boundary).

You did not mention how much RAM you have which is rather important
to know. And how fast is the 040 clocked?

> Despite my multiple attempts to boot off the installation provided in
> these ISO images, I was not able to we pass the kernel initialization. I
> did succeed to boot and start the installation process using the old
> images with kernel 2.4.27 (Debian 3.1) but since the PCMCIA network
> causes null-pointer failure 1) and renders kernel 2.4 unusable on my
> setup, even tough it manages to recognize 40G HDD connected to either
> motherboard IDE or FastATA (primary IDE channel). With later kernel
> revisions boot attempts finishes right at the moment when the partition
> tables should be enlisted, and root partition should be mounted. But
> nothing as such happens, instead a cryptic message is shown, and system
> seems to hang, but power LED keeps blinking (heartbeat???). Full dmesg
> can be found on PPA forum 2)

Can you please post all relevant information here so that we don't rely
on external sites?

> -----------------------------
>
> [   32.480000] BUG: soft lockup - CPU#0 stuck for 23s!
> [systemd-udevd:49]                                                                  
>
> [   32.480000] Modules linked in: gayle(+)
> ide_core                                                                                        
>
> [  
> 32.480000]                                                                                                                             
>
> [   32.480000] Format 00  Vector: 0078  PC: 0004d01e  Status: 2200   
> Not tainted                                                          
> [   32.480000] ORIG_D0: ffffffff  D0: 00000100  A2: 01e3b010  A1:
> 002fe130                                                                 
> [   32.480000] A0: 01e68000  D5: 00000002  D4:
> 0000001e                                                                                    
>
> [   32.480000] D3: 0000000a  D2: 00000002  D1: 00000002
>
> -----------------------------

Try passing "init=/bin/bash" on the kernel command line.

>  ABCDGHIJK
>  Linux version 4.19.37-amiga (root@nb) (gcc version 8.3.0 (Debian
> 8.3.0-7)) #1 Sun May 26 21:20:29 UTC 2019
That's not a Debian kernel you are booting here. Where does this kernel
come from?

Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [hidden email]
`. `'   Freie Universitaet Berlin - [hidden email]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

Reply | Threaded
Open this post in threaded view
|

Re: "BUG: soft lockup" on A1200; was: Re: Updated installation images for Debian Ports 2019-04-20

Geert Uytterhoeven
In reply to this post by Szymon Bieganski
Hi Szymon,

On Thu, Jun 6, 2019 at 11:46 PM Szymon Bieganski <[hidden email]> wrote:

> First of all thank you all for your efforts to revive the Debian ports
> for m68k. I myself as a Debian fan, would love to make use of my
> retro-rig with my favorite linux distro beside AmigaOS and NetBSD.
> Unfortunately I am facing strange problem that might be related to some
> specific hardware configuration, and therefore would like to consult
> with the experienced users if my problems might be caused by either
> software or hardware. Relevant hardware configuration comprises of a
> stock 1D4 Amiga 1200 with Apollo 040 CPU card, recent Elbox FastATA IDE
> controller with 40G IDE HDD and PCMCIA network card. All components
> causes no problems with other OS'es and with neither KS 3.0, 3.1 nor
> 3.1.4 (might be important during boot-off of partition beyond 4G boundary).
>
> Despite my multiple attempts to boot off the installation provided in
> these ISO images, I was not able to we pass the kernel initialization. I
> did succeed to boot and start the installation process using the old
> images with kernel 2.4.27 (Debian 3.1) but since the PCMCIA network
> causes null-pointer failure 1) and renders kernel 2.4 unusable on my
> setup, even tough it manages to recognize 40G HDD connected to either
> motherboard IDE or FastATA (primary IDE channel). With later kernel
> revisions boot attempts finishes right at the moment when the partition
> tables should be enlisted, and root partition should be mounted. But
> nothing as such happens, instead a cryptic message is shown, and system
> seems to hang, but power LED keeps blinking (heartbeat???). Full dmesg
> can be found on PPA forum 2)

> >> [2] https://cdimage.debian.org/cdimage/ports/debian-installer/

| [   32.470000] BUG: soft lockup - CPU#0 stuck for 23s! [systemd-udevd:49]

Please note that soft lockups are (usually) not fatal.  The system will
continue, but it may take a while (doh, systemd; but that should work if
you have 64 MiB of RAM).

BTW, do these kernels have CONFIG_UEVENT_HELPER and/or
CONFIG_UEVENT_HELPER_PATH set?

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [hidden email]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

Reply | Threaded
Open this post in threaded view
|

Re: "BUG: soft lockup" on A1200; was: Re: Updated installation images for Debian Ports 2019-04-20

John Paul Adrian Glaubitz
Hi Geert!

On 6/7/19 8:35 AM, Geert Uytterhoeven wrote:
> Please note that soft lockups are (usually) not fatal.  The system will
> continue, but it may take a while (doh, systemd; but that should work if
> you have 64 MiB of RAM).

There does seem to be some sort of regression of systemd on m68k which delays
the login for me on my Amiga 4000 with the login process seemingly hanging
after login. Downgrading systemd to 238 fixes the problem.

> BTW, do these kernels have CONFIG_UEVENT_HELPER and/or
> CONFIG_UEVENT_HELPER_PATH set?

No, we haven't:

root@pacman:~# grep CONFIG_UEVENT_HELPER /boot/config-$(uname -r)
# CONFIG_UEVENT_HELPER is not set
root@pacman:~#

It's not set for amd64 either on Debian Stretch, at least.

openSUSE sets it though:

glaubitz@suse-laptop:~> grep CONFIG_UEVENT_HELPER /boot/config-$(uname -r)
CONFIG_UEVENT_HELPER=y
CONFIG_UEVENT_HELPER_PATH=""
glaubitz@suse-laptop:~>

Should it be set?

Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [hidden email]
`. `'   Freie Universitaet Berlin - [hidden email]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

Reply | Threaded
Open this post in threaded view
|

Re: "BUG: soft lockup" on A1200; was: Re: Updated installation images for Debian Ports 2019-04-20

Geert Uytterhoeven
Hi Adrian,

On Fri, Jun 7, 2019 at 8:54 AM John Paul Adrian Glaubitz
<[hidden email]> wrote:

> On 6/7/19 8:35 AM, Geert Uytterhoeven wrote:
> > BTW, do these kernels have CONFIG_UEVENT_HELPER and/or
> > CONFIG_UEVENT_HELPER_PATH set?
>
> No, we haven't:
>
> root@pacman:~# grep CONFIG_UEVENT_HELPER /boot/config-$(uname -r)
> # CONFIG_UEVENT_HELPER is not set
> root@pacman:~#
>
> It's not set for amd64 either on Debian Stretch, at least.
>
> openSUSE sets it though:
>
> glaubitz@suse-laptop:~> grep CONFIG_UEVENT_HELPER /boot/config-$(uname -r)
> CONFIG_UEVENT_HELPER=y
> CONFIG_UEVENT_HELPER_PATH=""
> glaubitz@suse-laptop:~>
>
> Should it be set?

No, please don't enable it.

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/base/Kconfig?id=1be01d4a57142ded23bdb9e0c8d9369e693b26cc

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [hidden email]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

Reply | Threaded
Open this post in threaded view
|

Re: "BUG: soft lockup" on A1200; was: Re: Updated installation images for Debian Ports 2019-04-20

John Paul Adrian Glaubitz
Hi Geert!

On 6/7/19 9:00 AM, Geert Uytterhoeven wrote:

>> openSUSE sets it though:
>>
>> glaubitz@suse-laptop:~> grep CONFIG_UEVENT_HELPER /boot/config-$(uname -r)
>> CONFIG_UEVENT_HELPER=y
>> CONFIG_UEVENT_HELPER_PATH=""
>> glaubitz@suse-laptop:~>
>>
>> Should it be set?
>
> No, please don't enable it.
>
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/base/Kconfig?id=1be01d4a57142ded23bdb9e0c8d9369e693b26cc

I see. I guess it would be a good idea to disable it in openSUSE then as well?

I'll ask my colleagues at SUSE to do that then.

Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [hidden email]
`. `'   Freie Universitaet Berlin - [hidden email]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

Reply | Threaded
Open this post in threaded view
|

Re: "BUG: soft lockup" on A1200; was: Re: Updated installation images for Debian Ports 2019-04-20

Szymon Bieganski
In reply to this post by John Paul Adrian Glaubitz
Hi, again,
On 6/7/19 1:27 AM, John Paul Adrian Glaubitz wrote:
> Hi!
>
> On 6/6/19 11:22 PM, Szymon Bieganski wrote:
>> stock 1D4 Amiga 1200 with Apollo 040 CPU card, recent Elbox FastATA IDE
>> controller with 40G IDE HDD and PCMCIA network card. All components
>> causes no problems with other OS'es and with neither KS 3.0, 3.1 nor
>> 3.1.4 (might be important during boot-off of partition beyond 4G boundary).
> You did not mention how much RAM you have which is rather important
> to know. And how fast is the 040 clocked?
Apollo 1240 with full 68040 clocked at 40MHz with (continuous block of)
64MB of RAM.
> Can you please post all relevant information here so that we don't rely
> on external sites?

Below a full dmesg while booting 4.19.0-5, which I extracted from
installation ISO's. Amiboot was started with -r pointing to the
cdrom/initrd.gz

-----------------------------

ABCDGHIJK
[    0.000000] Linux version 4.19.0-5-m68k ([hidden email]) (gcc version 8.3.0 (Debian 8.3.0-7)) #1 Debian 4.19.37-1 (2019-05-05)
[    0.000000] Amiga hardware found: [A1200] VIDEO BLITTER AUDIO FLOPPY A1200_IDE KEYBOARD MOUSE SERIAL PARALLEL A2000_CLK CHIP_RAM PAULA LISA ALICE_PAL PCMCIA ZORRO
[    0.000000] initrd: 037566b5 - 04000000
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16224
[    0.000000] Kernel command line: init=/dev/bash root=/dev/ram console=tty0 console=ttyS0,9600n8 video=amifb:pal-lace modprobe.blacklist=amiflop
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] Memory: 51408K/65536K available (2870K kernel code, 399K rwdata, 1004K rodata, 156K init, 202K bss, 14128K reserved, 0K cma-reserved)
[    0.000000] random: get_random_u32 called from __kmem_cache_create+0x2c/0x498 with crng_init=0
[    0.000000] SLUB: HWalign=16, Order=0-3, MinObjects=0, CPUs=1, Nodes=8
[    0.000000] NR_IRQS: 200
[    0.000000] Console: colour dummy device 80x25
[    0.000000] console [tty0] enabled
[    0.140000] console [ttyS0] enabled
[    0.150000] Calibrating delay loop... 26.16 BogoMIPS (lpj=130816)
[    0.270000] pid_max: default: 32768 minimum: 301
[    0.290000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.300000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.380000] devtmpfs: initialized
[    0.410000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.420000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.440000] NET: Registered protocol family 16
[    0.590000] SCSI subsystem initialized
[    0.620000] VFS: Disk quotas dquot_6.6.0
[    0.630000] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.830000] NET: Registered protocol family 2
[    0.860000] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    0.870000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.880000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.890000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.900000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.910000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.930000] NET: Registered protocol family 1
[    0.940000] NET: Registered protocol family 44
[    0.950000] Unpacking initramfs...
[    1.280000] random: fast init done
[   26.660000] Freeing initrd memory: 8868K
[   26.680000] Key type blacklist registered
[   26.690000] workingset: timestamp_bits=11 max_order=14 bucket_order=3
[   27.010000] zbud: loaded
[   66.880000] random: crng init done
[  116.050000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[  116.060000] io scheduler noop registered
[  116.080000] io scheduler cfq registered (default)
[  116.090000] io scheduler mq-deadline registered
[  116.370000] Console: switching to colour frame buffer device 80x32
[  116.450000] fb0: Amiga AGA frame buffer device, using 1280K of video memory
[  116.460000] atafb_init: start
[  116.480000] pmac_zilog: 0.6 (Benjamin Herrenschmidt <[hidden email]>)
[  116.490000] Amiga-builtin serial driver version 4.30
[  116.500000] ttyS0 is the amiga builtin serial port
[  116.530000] Zorro: Probing AutoConfig expansion devices: 1 device
[  116.550000] mousedev: PS/2 mouse device common for all mice
[  116.570000] input: amiga-keyboard as /devices/platform/amiga-keyboard/input/input0
[  116.590000] ledtrig-cpu: registered to indicate activity on CPUs
[  116.610000] NET: Registered protocol family 17
[  116.630000] mpls_gso: MPLS GSO support
[  116.660000] registered taskstats version 1
[  116.670000] zswap: loaded using pool lzo/zbud
[  116.690000] hctosys: unable to open rtc device (rtc0)
[  116.710000] Freeing unused kernel memory: 156K
[  116.720000] This architecture does not have kernel memory protection.
[  116.730000] Run /init as init process
[  120.980000] Uniform Multi-Platform E-IDE driver
[  121.190000] ide: Gayle IDE controller (A1200 style)
[  121.500000] hda: probing with STATUS(0x50) instead of ALTSTATUS(0x0a)
[  121.650000] hda: SAMSUNG MP0402H, ATA DISK drive
[  121.850000] Z2RAM: using 0K Zorro II RAM and 512K Chip RAM (Total 512K)
[  122.080000] hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x0a)
[  122.300000] hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x0a)
[  144.390000] watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [systemd-udevd:45]
[  144.390000] Modules linked in: gayle(+) ide_core
[  144.390000] Format 00  Vector: 0078  PC: 00050b6c  Status: 2204    Not tainted
[  144.390000] ORIG_D0: ffffffff  D0: 00000001  A2: 015193b0  A1: 80bfe001
[  144.390000] A0: 003f0c12  D5: 00000000  D4: 002c66d2
[  144.390000] D3: 00000002  D2: 00000000  D1: 8ed2ba3d
[ 1337.790000] amikbd: Ctrl-Amiga-Amiga reset warning!!
[ 1337.800000] amikbd: Ctrl-Amiga-Amiga reset warning!!
-----------------------------

> Try passing "init=/bin/bash" on the kernel command line.
See above - no difference.
>>  ABCDGHIJK
>>  Linux version 4.19.37-amiga (root@nb) (gcc version 8.3.0 (Debian
>> 8.3.0-7)) #1 Sun May 26 21:20:29 UTC 2019
> That's not a Debian kernel you are booting here. Where does this kernel
> come from?
This particular was actually build in debootstrap environment following
the instruction found in https://www.subsecret.dk/wiki/Linux_on_Amiga

I hope I cleared any doubts.

Szymon



signature.asc (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: "BUG: soft lockup" on A1200; was: Re: Updated installation images for Debian Ports 2019-04-20

Michael Schmitz-4
Szymon,

please try adding 'initcall_debug' to the bootstrap options.

Cheers,

     Michael


On 8/06/19 6:50 AM, Szymon Bieganski wrote:

> Hi, again,
> On 6/7/19 1:27 AM, John Paul Adrian Glaubitz wrote:
>> Hi!
>>
>> On 6/6/19 11:22 PM, Szymon Bieganski wrote:
>>> stock 1D4 Amiga 1200 with Apollo 040 CPU card, recent Elbox FastATA IDE
>>> controller with 40G IDE HDD and PCMCIA network card. All components
>>> causes no problems with other OS'es and with neither KS 3.0, 3.1 nor
>>> 3.1.4 (might be important during boot-off of partition beyond 4G boundary).
>> You did not mention how much RAM you have which is rather important
>> to know. And how fast is the 040 clocked?
> Apollo 1240 with full 68040 clocked at 40MHz with (continuous block of)
> 64MB of RAM.
>> Can you please post all relevant information here so that we don't rely
>> on external sites?
> Below a full dmesg while booting 4.19.0-5, which I extracted from
> installation ISO's. Amiboot was started with -r pointing to the
> cdrom/initrd.gz
>
> -----------------------------
>
> ABCDGHIJK
> [    0.000000] Linux version 4.19.0-5-m68k ([hidden email]) (gcc version 8.3.0 (Debian 8.3.0-7)) #1 Debian 4.19.37-1 (2019-05-05)
> [    0.000000] Amiga hardware found: [A1200] VIDEO BLITTER AUDIO FLOPPY A1200_IDE KEYBOARD MOUSE SERIAL PARALLEL A2000_CLK CHIP_RAM PAULA LISA ALICE_PAL PCMCIA ZORRO
> [    0.000000] initrd: 037566b5 - 04000000
> [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16224
> [    0.000000] Kernel command line: init=/dev/bash root=/dev/ram console=tty0 console=ttyS0,9600n8 video=amifb:pal-lace modprobe.blacklist=amiflop
> [    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
> [    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
> [    0.000000] Sorting __ex_table...
> [    0.000000] Memory: 51408K/65536K available (2870K kernel code, 399K rwdata, 1004K rodata, 156K init, 202K bss, 14128K reserved, 0K cma-reserved)
> [    0.000000] random: get_random_u32 called from __kmem_cache_create+0x2c/0x498 with crng_init=0
> [    0.000000] SLUB: HWalign=16, Order=0-3, MinObjects=0, CPUs=1, Nodes=8
> [    0.000000] NR_IRQS: 200
> [    0.000000] Console: colour dummy device 80x25
> [    0.000000] console [tty0] enabled
> [    0.140000] console [ttyS0] enabled
> [    0.150000] Calibrating delay loop... 26.16 BogoMIPS (lpj=130816)
> [    0.270000] pid_max: default: 32768 minimum: 301
> [    0.290000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
> [    0.300000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
> [    0.380000] devtmpfs: initialized
> [    0.410000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
> [    0.420000] futex hash table entries: 256 (order: -1, 3072 bytes)
> [    0.440000] NET: Registered protocol family 16
> [    0.590000] SCSI subsystem initialized
> [    0.620000] VFS: Disk quotas dquot_6.6.0
> [    0.630000] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
> [    0.830000] NET: Registered protocol family 2
> [    0.860000] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
> [    0.870000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
> [    0.880000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
> [    0.890000] TCP: Hash tables configured (established 1024 bind 1024)
> [    0.900000] UDP hash table entries: 256 (order: 0, 4096 bytes)
> [    0.910000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
> [    0.930000] NET: Registered protocol family 1
> [    0.940000] NET: Registered protocol family 44
> [    0.950000] Unpacking initramfs...
> [    1.280000] random: fast init done
> [   26.660000] Freeing initrd memory: 8868K
> [   26.680000] Key type blacklist registered
> [   26.690000] workingset: timestamp_bits=11 max_order=14 bucket_order=3
> [   27.010000] zbud: loaded
> [   66.880000] random: crng init done
> [  116.050000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
> [  116.060000] io scheduler noop registered
> [  116.080000] io scheduler cfq registered (default)
> [  116.090000] io scheduler mq-deadline registered
> [  116.370000] Console: switching to colour frame buffer device 80x32
> [  116.450000] fb0: Amiga AGA frame buffer device, using 1280K of video memory
> [  116.460000] atafb_init: start
> [  116.480000] pmac_zilog: 0.6 (Benjamin Herrenschmidt <[hidden email]>)
> [  116.490000] Amiga-builtin serial driver version 4.30
> [  116.500000] ttyS0 is the amiga builtin serial port
> [  116.530000] Zorro: Probing AutoConfig expansion devices: 1 device
> [  116.550000] mousedev: PS/2 mouse device common for all mice
> [  116.570000] input: amiga-keyboard as /devices/platform/amiga-keyboard/input/input0
> [  116.590000] ledtrig-cpu: registered to indicate activity on CPUs
> [  116.610000] NET: Registered protocol family 17
> [  116.630000] mpls_gso: MPLS GSO support
> [  116.660000] registered taskstats version 1
> [  116.670000] zswap: loaded using pool lzo/zbud
> [  116.690000] hctosys: unable to open rtc device (rtc0)
> [  116.710000] Freeing unused kernel memory: 156K
> [  116.720000] This architecture does not have kernel memory protection.
> [  116.730000] Run /init as init process
> [  120.980000] Uniform Multi-Platform E-IDE driver
> [  121.190000] ide: Gayle IDE controller (A1200 style)
> [  121.500000] hda: probing with STATUS(0x50) instead of ALTSTATUS(0x0a)
> [  121.650000] hda: SAMSUNG MP0402H, ATA DISK drive
> [  121.850000] Z2RAM: using 0K Zorro II RAM and 512K Chip RAM (Total 512K)
> [  122.080000] hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x0a)
> [  122.300000] hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x0a)
> [  144.390000] watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [systemd-udevd:45]
> [  144.390000] Modules linked in: gayle(+) ide_core
> [  144.390000] Format 00  Vector: 0078  PC: 00050b6c  Status: 2204    Not tainted
> [  144.390000] ORIG_D0: ffffffff  D0: 00000001  A2: 015193b0  A1: 80bfe001
> [  144.390000] A0: 003f0c12  D5: 00000000  D4: 002c66d2
> [  144.390000] D3: 00000002  D2: 00000000  D1: 8ed2ba3d
> [ 1337.790000] amikbd: Ctrl-Amiga-Amiga reset warning!!
> [ 1337.800000] amikbd: Ctrl-Amiga-Amiga reset warning!!
> -----------------------------
>
>> Try passing "init=/bin/bash" on the kernel command line.
> See above - no difference.
>>>   ABCDGHIJK
>>>   Linux version 4.19.37-amiga (root@nb) (gcc version 8.3.0 (Debian
>>> 8.3.0-7)) #1 Sun May 26 21:20:29 UTC 2019
>> That's not a Debian kernel you are booting here. Where does this kernel
>> come from?
> This particular was actually build in debootstrap environment following
> the instruction found in https://www.subsecret.dk/wiki/Linux_on_Amiga
>
> I hope I cleared any doubts.
>
> Szymon
>
>

Reply | Threaded
Open this post in threaded view
|

Re: "BUG: soft lockup" on A1200; was: Re: Updated installation images for Debian Ports 2019-04-20

Szymon Bieganski
Hi Michael,

I did try to boot with "initcall_debug ignore_loglevel", as you suggested:

------------------------

[    0.000000] Kernel command line: loglevel=7 initcall_debug
init=/bin/bash root=/dev/ram console=tty0 console=ttyS0,9600n8
video=amifb:pal-lace modprobe.blacklist=amiflop debug ignore_loglevel
BOOT_IMAGE=kernels/vmlinux-4.19.0-5-m68k

------------------------

Here is the end of dmesg (full log in attachment) when kernel stalls,
just as before:

------------------------

[  122.430000] This architecture does not have kernel memory protection.
[  122.440000] Run /init as init process
[  126.690000] calling  ide_init+0x0/0x7c [ide_core] @ 43
[  126.700000] Uniform Multi-Platform E-IDE driver
[  126.710000] initcall ide_init+0x0/0x7c [ide_core] returned 0 after
7988 usecs
[  126.980000] calling  amiga_gayle_ide_driver_init+0x0/0x1c [gayle] @ 43
[  126.990000] ide: Gayle IDE controller (A1200 style)
[  127.000000] Probing IDE interface ide0...
[  127.390000] hda: probing with STATUS(0x50) instead of ALTSTATUS(0x0a)
[  127.540000] hda: SAMSUNG MP0402H, ATA DISK drive
[  127.610000] Z2RAM: using 0K Zorro II RAM and 512K Chip RAM (Total 512K)
[  127.980000] hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x0a)
[  128.200000] hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x0a)
[  148.570000] watchdog: BUG: soft lockup - CPU#0 stuck for 22s!
[systemd-udevd:43]
[  148.570000] Modules linked in: gayle(+) ide_core
[  148.570000] Format 00  Vector: 0078  PC: 00050b58  Status: 2200   
Not tainted
[  148.570000] ORIG_D0: ffffffff  D0: 00000064  A2: 0151ef90  A1: 80bfe001
[  148.570000] A0: 003f0c12  D5: 00000000  D4: 0000000a
[  148.570000] D3: 00400140  D2: 00000001  D1: 8e6f286a
[  759.250000] amikbd: Ctrl-Amiga-Amiga reset warning!!
[  759.260000] amikbd: Ctrl-Amiga-Amiga reset warning!!
------------------------

If you see a difference in detection of IDE devices, it's due to fact
that I disconnected all but the master hard disk.

With kind regards,

Szymon

On 6/11/19 3:24 AM, Michael Schmitz wrote:

> Szymon,
>
> please try adding 'initcall_debug' to the bootstrap options.
>
> Cheers,
>
>     Michael
>
>
> On 8/06/19 6:50 AM, Szymon Bieganski wrote:
>> Hi, again,
>> On 6/7/19 1:27 AM, John Paul Adrian Glaubitz wrote:
>>> Hi!
>>>
>>> On 6/6/19 11:22 PM, Szymon Bieganski wrote:
>>>> stock 1D4 Amiga 1200 with Apollo 040 CPU card, recent Elbox FastATA
>>>> IDE
>>>> controller with 40G IDE HDD and PCMCIA network card. All components
>>>> causes no problems with other OS'es and with neither KS 3.0, 3.1 nor
>>>> 3.1.4 (might be important during boot-off of partition beyond 4G
>>>> boundary).
>>> You did not mention how much RAM you have which is rather important
>>> to know. And how fast is the 040 clocked?
>> Apollo 1240 with full 68040 clocked at 40MHz with (continuous block of)
>> 64MB of RAM.
>>> Can you please post all relevant information here so that we don't rely
>>> on external sites?
>> Below a full dmesg while booting 4.19.0-5, which I extracted from
>> installation ISO's. Amiboot was started with -r pointing to the
>> cdrom/initrd.gz
>>
>> -----------------------------
>>
>> [  116.720000] This architecture does not have kernel memory protection.
>> [  116.730000] Run /init as init process
>> [  120.980000] Uniform Multi-Platform E-IDE driver
>> [  121.190000] ide: Gayle IDE controller (A1200 style)
>> [  121.500000] hda: probing with STATUS(0x50) instead of ALTSTATUS(0x0a)
>> [  121.650000] hda: SAMSUNG MP0402H, ATA DISK drive
>> [  121.850000] Z2RAM: using 0K Zorro II RAM and 512K Chip RAM (Total
>> 512K)
>> [  122.080000] hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x0a)
>> [  122.300000] hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x0a)
>> [  144.390000] watchdog: BUG: soft lockup - CPU#0 stuck for 22s!
>> [systemd-udevd:45]
>> [  144.390000] Modules linked in: gayle(+) ide_core
>> [  144.390000] Format 00  Vector: 0078  PC: 00050b6c  Status: 2204   
>> Not tainted
>> [  144.390000] ORIG_D0: ffffffff  D0: 00000001  A2: 015193b0  A1:
>> 80bfe001
>> [  144.390000] A0: 003f0c12  D5: 00000000  D4: 002c66d2
>> [  144.390000] D3: 00000002  D2: 00000000  D1: 8ed2ba3d
>> [ 1337.790000] amikbd: Ctrl-Amiga-Amiga reset warning!!
>> [ 1337.800000] amikbd: Ctrl-Amiga-Amiga reset warning!!
>> -----------------------------
>>
>>> Try passing "init=/bin/bash" on the kernel command line.
>> See above - no difference.
>>>>   ABCDGHIJK
>>>>   Linux version 4.19.37-amiga (root@nb) (gcc version 8.3.0 (Debian
>>>> 8.3.0-7)) #1 Sun May 26 21:20:29 UTC 2019
>>> That's not a Debian kernel you are booting here. Where does this kernel
>>> come from?
>> This particular was actually build in debootstrap environment following
>> the instruction found in https://www.subsecret.dk/wiki/Linux_on_Amiga
>>
>> I hope I cleared any doubts.
>>
>> Szymon
>>
>>
>

dmesg.4.19.0-5-m68k.initcall_debug_ignore_loglevel (53K) Download Attachment
signature.asc (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: "BUG: soft lockup" on A1200; was: Re: Updated installation images for Debian Ports 2019-04-20

Finn Thain
On Wed, 12 Jun 2019, Szymon Bieganski wrote:

>
> Here is the end of dmesg (full log in attachment) when kernel stalls,
> just as before:
>
> ------------------------
>
> [  122.430000] This architecture does not have kernel memory protection.
> [  122.440000] Run /init as init process
> [  126.690000] calling  ide_init+0x0/0x7c [ide_core] @ 43
> [  126.700000] Uniform Multi-Platform E-IDE driver
> [  126.710000] initcall ide_init+0x0/0x7c [ide_core] returned 0 after
> 7988 usecs
> [  126.980000] calling  amiga_gayle_ide_driver_init+0x0/0x1c [gayle] @ 43
> [  126.990000] ide: Gayle IDE controller (A1200 style)
> [  127.000000] Probing IDE interface ide0...
> [  127.390000] hda: probing with STATUS(0x50) instead of ALTSTATUS(0x0a)
> [  127.540000] hda: SAMSUNG MP0402H, ATA DISK drive
> [  127.610000] Z2RAM: using 0K Zorro II RAM and 512K Chip RAM (Total 512K)
> [  127.980000] hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x0a)
> [  128.200000] hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x0a)
> [  148.570000] watchdog: BUG: soft lockup - CPU#0 stuck for 22s!
> [systemd-udevd:43]
> [  148.570000] Modules linked in: gayle(+) ide_core
> [  148.570000] Format 00  Vector: 0078  PC: 00050b58  Status: 2200  
> Not tainted
> [  148.570000] ORIG_D0: ffffffff  D0: 00000064  A2: 0151ef90  A1: 80bfe001
> [  148.570000] A0: 003f0c12  D5: 00000000  D4: 0000000a
> [  148.570000] D3: 00400140  D2: 00000001  D1: 8e6f286a
> [  759.250000] amikbd: Ctrl-Amiga-Amiga reset warning!!
> [  759.260000] amikbd: Ctrl-Amiga-Amiga reset warning!!
> ------------------------
>
> If you see a difference in detection of IDE devices, it's due to fact
> that I disconnected all but the master hard disk.
>

If you are willing to build your own kernel, you could try a different
driver:

CONFIG_IDE=n
CONFIG_ATA=y
CONFIG_ATA_SFF=y
CONFIG_PATA_GAYLE=y

--

> With kind regards,
>
> Szymon
>

Reply | Threaded
Open this post in threaded view
|

Re: "BUG: soft lockup" on A1200; was: Re: Updated installation images for Debian Ports 2019-04-20

Michael Schmitz-4
Hi Szymon,

On 15/06/19 11:15 AM, Finn Thain wrote:

> On Wed, 12 Jun 2019, Szymon Bieganski wrote:
>
>> Here is the end of dmesg (full log in attachment) when kernel stalls,
>> just as before:
>>
>> ------------------------
>>
>> [  122.430000] This architecture does not have kernel memory protection.
>> [  122.440000] Run /init as init process
>> [  126.690000] calling  ide_init+0x0/0x7c [ide_core] @ 43
>> [  126.700000] Uniform Multi-Platform E-IDE driver
>> [  126.710000] initcall ide_init+0x0/0x7c [ide_core] returned 0 after
>> 7988 usecs
>> [  126.980000] calling  amiga_gayle_ide_driver_init+0x0/0x1c [gayle] @ 43
>> [  126.990000] ide: Gayle IDE controller (A1200 style)
>> [  127.000000] Probing IDE interface ide0...
>> [  127.390000] hda: probing with STATUS(0x50) instead of ALTSTATUS(0x0a)
>> [  127.540000] hda: SAMSUNG MP0402H, ATA DISK drive
>> [  127.610000] Z2RAM: using 0K Zorro II RAM and 512K Chip RAM (Total 512K)
>> [  127.980000] hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x0a)
>> [  128.200000] hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x0a)
>> [  148.570000] watchdog: BUG: soft lockup - CPU#0 stuck for 22s!
>> [systemd-udevd:43]

Finn has raised the issue of systemd's short timeouts before. I'm
wondering whether that's part of your problem here. But the IDE driver
probe for a second disk should eventually complete, regardless of
systemd's udev module crashing?

Not sure whether the 'probing with STATUS instead of ALTSTATUS' message
is normal for the A1200. Geert might remember that sort of detail.

>> [  148.570000] Modules linked in: gayle(+) ide_core
>> [  148.570000] Format 00  Vector: 0078  PC: 00050b58  Status: 2200
>> Not tainted
>> [  148.570000] ORIG_D0: ffffffff  D0: 00000064  A2: 0151ef90  A1: 80bfe001
>> [  148.570000] A0: 003f0c12  D5: 00000000  D4: 0000000a
>> [  148.570000] D3: 00400140  D2: 00000001  D1: 8e6f286a
>> [  759.250000] amikbd: Ctrl-Amiga-Amiga reset warning!!
>> [  759.260000] amikbd: Ctrl-Amiga-Amiga reset warning!!
>> ------------------------
>>
>> If you see a difference in detection of IDE devices, it's due to fact
>> that I disconnected all but the master hard disk.
>>
> If you are willing to build your own kernel, you could try a different
> driver:
>
> CONFIG_IDE=n
> CONFIG_ATA=y
> CONFIG_ATA_SFF=y
> CONFIG_PATA_GAYLE=y

IIRC Adrian has built the installer kernel with PATA driver support. You
might just need

modprobe.blacklist=gayle

in the boot options to switch to using PATA.

Cheers,

     Michael


Reply | Threaded
Open this post in threaded view
|

Re: "BUG: soft lockup" on A1200; was: Re: Updated installation images for Debian Ports 2019-04-20

Finn Thain
On Tue, 18 Jun 2019, Michael Schmitz wrote:

> On 15/06/19 11:15 AM, Finn Thain wrote:
> > On Wed, 12 Jun 2019, Szymon Bieganski wrote:
> >
> > > Here is the end of dmesg (full log in attachment) when kernel stalls,
> > > just as before:
> > >
> > > ------------------------
> > >
> > > [  122.430000] This architecture does not have kernel memory protection.
> > > [  122.440000] Run /init as init process
> > > [  126.690000] calling  ide_init+0x0/0x7c [ide_core] @ 43
> > > [  126.700000] Uniform Multi-Platform E-IDE driver
> > > [  126.710000] initcall ide_init+0x0/0x7c [ide_core] returned 0 after 7988 usecs
> > > [  126.980000] calling  amiga_gayle_ide_driver_init+0x0/0x1c [gayle] @ 43
> > > [  126.990000] ide: Gayle IDE controller (A1200 style)
> > > [  127.000000] Probing IDE interface ide0...
> > > [  127.390000] hda: probing with STATUS(0x50) instead of ALTSTATUS(0x0a)
> > > [  127.540000] hda: SAMSUNG MP0402H, ATA DISK drive
> > > [  127.610000] Z2RAM: using 0K Zorro II RAM and 512K Chip RAM (Total 512K)
> > > [  127.980000] hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x0a)
> > > [  128.200000] hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x0a)
> > > [  148.570000] watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [systemd-udevd:43]
>
> Finn has raised the issue of systemd's short timeouts before. I'm
> wondering whether that's part of your problem here. But the IDE driver
> probe for a second disk should eventually complete, regardless of
> systemd's udev module crashing?
>

I think this is essentially a kernel bug: There is no "initcall
amiga_gayle_ide_driver_init returned" in the log.

I've asked Szymon to try blacklisting that initcall (off-list).

--

Reply | Threaded
Open this post in threaded view
|

Re: "BUG: soft lockup" on A1200; was: Re: Updated installation images for Debian Ports 2019-04-20

Geert Uytterhoeven
In reply to this post by Michael Schmitz-4
Hi Michael,

On Mon, Jun 17, 2019 at 11:22 PM Michael Schmitz <[hidden email]> wrote:

> On 15/06/19 11:15 AM, Finn Thain wrote:
> > On Wed, 12 Jun 2019, Szymon Bieganski wrote:
> >> Here is the end of dmesg (full log in attachment) when kernel stalls,
> >> just as before:
> >>
> >> ------------------------
> >>
> >> [  122.430000] This architecture does not have kernel memory protection.
> >> [  122.440000] Run /init as init process
> >> [  126.690000] calling  ide_init+0x0/0x7c [ide_core] @ 43
> >> [  126.700000] Uniform Multi-Platform E-IDE driver
> >> [  126.710000] initcall ide_init+0x0/0x7c [ide_core] returned 0 after
> >> 7988 usecs
> >> [  126.980000] calling  amiga_gayle_ide_driver_init+0x0/0x1c [gayle] @ 43
> >> [  126.990000] ide: Gayle IDE controller (A1200 style)
> >> [  127.000000] Probing IDE interface ide0...
> >> [  127.390000] hda: probing with STATUS(0x50) instead of ALTSTATUS(0x0a)
> >> [  127.540000] hda: SAMSUNG MP0402H, ATA DISK drive
> >> [  127.610000] Z2RAM: using 0K Zorro II RAM and 512K Chip RAM (Total 512K)
> >> [  127.980000] hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x0a)
> >> [  128.200000] hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x0a)
> >> [  148.570000] watchdog: BUG: soft lockup - CPU#0 stuck for 22s!
> >> [systemd-udevd:43]
>
> Finn has raised the issue of systemd's short timeouts before. I'm
> wondering whether that's part of your problem here. But the IDE driver
> probe for a second disk should eventually complete, regardless of
> systemd's udev module crashing?
>
> Not sure whether the 'probing with STATUS instead of ALTSTATUS' message
> is normal for the A1200. Geert might remember that sort of detail.

That comes from drivers/ide/ide-probe.c:ide_dev_read_id().
Looking at the code, it may be caused by the drive, too.
I do not see it on A4000.

W.r.t. completing the probe, a log with dump_stack() added was sent
to me by PM, and I replied the below:

>From that log, I'm wondering if something is stuck in ide_probe_port().

Can you sprinkle some debug prints

    printk("%s:%u\n", __func__, __LINE__);

in ide_probe_port() and probe_for_drive() (drivers/ide/ide-probe.c) and retry?

Thanks!

FTR, I've just booted my A4000 with a v5.2-rc5-based kernel, and IDE
(Gayle, single drive) works. But old Debian, no systemd.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [hidden email]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

Reply | Threaded
Open this post in threaded view
|

Re: "BUG: soft lockup" on A1200; was: Re: Updated installation images for Debian Ports 2019-04-20

Szymon Bieganski
Hello Geert,

On 6/18/19 8:56 AM, Geert Uytterhoeven wrote:
> Can you sprinkle some debug prints
>     printk("%s:%u\n", __func__, __LINE__);
>
> in ide_probe_port() and probe_for_drive() (drivers/ide/ide-probe.c) and retry?
>
I've recompiled with addition of these extra lines, and found out that
the re-enable of irq = 2 hangs (see attached log for details)

===================
printk("%s:%u\n", __func__, __LINE__);
        /*
         * Use cached IRQ number. It might be (and is...) changed by probe
         * code above
         */
printk("irqd = %u\n", irqd);    // printed last
        if (irqd) {
                enable_irq(irqd);
printk("enabled IRQ %u\n", irqd);
        }
printk("%s:%u\n", __func__, __LINE__);
        return rc;

====================


The interrupts present on my machine are:

(initramfs) cd
/proc                                                        
(initramfs) cat interrupts
           CPU0      
  2:          5      auto      CIAA, apne
  6:       5973      auto      CIAB
  8:        580     amiga      serial TX
  9:          0     amiga      floppy_dma
 12:       2110     amiga      fb vertb handler
 13:       1925     amiga      serial status
 19:         44     amiga      serial RX
 23:          4       cia      floppy_timer
 25:          0       cia      amikbd
 27:       5973       cia      timer
ERR:          0

I hope I provided enough information this time.

With kind regards,

Szymon


dmesg.4.19.37-amiga.debug_hagel (29K) Download Attachment
ide-probe.c (41K) Download Attachment
signature.asc (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: "BUG: soft lockup" on A1200; was: Re: Updated installation images for Debian Ports 2019-04-20

Michael Schmitz-4
In reply to this post by Finn Thain
Hi Finn,

On 18/06/19 11:51 AM, Finn Thain wrote:

> On Tue, 18 Jun 2019, Michael Schmitz wrote:
>
>> On 15/06/19 11:15 AM, Finn Thain wrote:
>>> On Wed, 12 Jun 2019, Szymon Bieganski wrote:
>>>
>>>> Here is the end of dmesg (full log in attachment) when kernel stalls,
>>>> just as before:
>>>>
>>>> ------------------------
>>>>
>>>> [  122.430000] This architecture does not have kernel memory protection.
>>>> [  122.440000] Run /init as init process
>>>> [  126.690000] calling  ide_init+0x0/0x7c [ide_core] @ 43
>>>> [  126.700000] Uniform Multi-Platform E-IDE driver
>>>> [  126.710000] initcall ide_init+0x0/0x7c [ide_core] returned 0 after 7988 usecs
>>>> [  126.980000] calling  amiga_gayle_ide_driver_init+0x0/0x1c [gayle] @ 43
>>>> [  126.990000] ide: Gayle IDE controller (A1200 style)
>>>> [  127.000000] Probing IDE interface ide0...
>>>> [  127.390000] hda: probing with STATUS(0x50) instead of ALTSTATUS(0x0a)
>>>> [  127.540000] hda: SAMSUNG MP0402H, ATA DISK drive
>>>> [  127.610000] Z2RAM: using 0K Zorro II RAM and 512K Chip RAM (Total 512K)
>>>> [  127.980000] hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x0a)
>>>> [  128.200000] hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x0a)
>>>> [  148.570000] watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [systemd-udevd:43]
>> Finn has raised the issue of systemd's short timeouts before. I'm
>> wondering whether that's part of your problem here. But the IDE driver
>> probe for a second disk should eventually complete, regardless of
>> systemd's udev module crashing?
>>
> I think this is essentially a kernel bug: There is no "initcall
> amiga_gayle_ide_driver_init returned" in the log.

Yes, but what happens if systemd interrupts the modprobe call while the
driver is waiting for some kind of timeout? Will we still see the
modprobe complete?

Cheers,

     Michael


>
> I've asked Szymon to try blacklisting that initcall (off-list).
>

Reply | Threaded
Open this post in threaded view
|

Re: "BUG: soft lockup" on A1200; was: Re: Updated installation images for Debian Ports 2019-04-20

Michael Schmitz-4
In reply to this post by Geert Uytterhoeven
Hi Geert,

On 18/06/19 6:56 PM, Geert Uytterhoeven wrote:
>
>> Not sure whether the 'probing with STATUS instead of ALTSTATUS' message
>> is normal for the A1200. Geert might remember that sort of detail.
> That comes from drivers/ide/ide-probe.c:ide_dev_read_id().
> Looking at the code, it may be caused by the drive, too.

AFAIR there's no second drive on that hwif. You are thinking the master
drive is keeping the IDE probe code confused?

> I do not see it on A4000.

Never seen such a message on elgar either (though that's using
pata-gayle these days). But if it's the generic probe code, using
pata-gayle may not buy us much.

>
> W.r.t. completing the probe, a log with dump_stack() added was sent
> to me by PM, and I replied the below:
>
>  From that log, I'm wondering if something is stuck in ide_probe_port().
>
> Can you sprinkle some debug prints
>
>      printk("%s:%u\n", __func__, __LINE__);
>
> in ide_probe_port() and probe_for_drive() (drivers/ide/ide-probe.c) and retry?
>
> Thanks!
>
> FTR, I've just booted my A4000 with a v5.2-rc5-based kernel, and IDE
> (Gayle, single drive) works. But old Debian, no systemd.

Good to hear that. Have you had trouble with 5.2 running out of memory
at all? When I last tried 5.0rc3, I ran into memory allocation trouble
(kswapd0: page allocation failure, order 0) with my old Debian system.
Wonder what that was about - you said you only have 12 MB of RAM on the
A4000?

Cheers,

     Michael

>
> Gr{oetje,eeting}s,
>
>                          Geert
>
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [hidden email]
>
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
>                                  -- Linus Torvalds

Reply | Threaded
Open this post in threaded view
|

Re: "BUG: soft lockup" on A1200; was: Re: Updated installation images for Debian Ports 2019-04-20

Michael Schmitz-4
In reply to this post by Szymon Bieganski
Szymon,

On 19/06/19 7:50 AM, Szymon Bieganski wrote:

> Hello Geert,
>
> On 6/18/19 8:56 AM, Geert Uytterhoeven wrote:
>> Can you sprinkle some debug prints
>>      printk("%s:%u\n", __func__, __LINE__);
>>
>> in ide_probe_port() and probe_for_drive() (drivers/ide/ide-probe.c) and retry?
>>
> I've recompiled with addition of these extra lines, and found out that
> the re-enable of irq = 2 hangs (see attached log for details)
>
> ===================
> printk("%s:%u\n", __func__, __LINE__);
>          /*
>           * Use cached IRQ number. It might be (and is...) changed by probe
>           * code above
>           */
> printk("irqd = %u\n", irqd);    // printed last


Does the heartbeat LED keep flashing past this point? I wonder whether
there's an interrupt still pending on the IDE interface that wasn't
cleared when the probe for hdb timed out.

Can you add more output to check where ide_dev_read_id() exits in this
case? And maybe add

(void)tp_ops->read_status(hwif);

before the return instruction taken?

Cheers,

     Michael


>          if (irqd) {
>                  enable_irq(irqd);
> printk("enabled IRQ %u\n", irqd);
>          }
> printk("%s:%u\n", __func__, __LINE__);
>          return rc;
>
> ====================
>
>
> The interrupts present on my machine are:
>
> (initramfs) cd
> /proc
> (initramfs) cat interrupts
>             CPU0
>    2:          5      auto      CIAA, apne
>    6:       5973      auto      CIAB
>    8:        580     amiga      serial TX
>    9:          0     amiga      floppy_dma
>   12:       2110     amiga      fb vertb handler
>   13:       1925     amiga      serial status
>   19:         44     amiga      serial RX
>   23:          4       cia      floppy_timer
>   25:          0       cia      amikbd
>   27:       5973       cia      timer
> ERR:          0
>
> I hope I provided enough information this time.
>
> With kind regards,
>
> Szymon
>

12