public inbox for linux-m68k@lists.linux-m68k.org
 help / color / mirror / Atom feed
From: Michael Schmitz <schmitzmic@gmail.com>
To: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>,
	Geert Uytterhoeven <geert@linux-m68k.org>
Cc: linux-m68k@lists.linux-m68k.org, debian-68k@lists.debian.org
Subject: Re: Kernel versions 6.x don't boot on Amiga 4000
Date: Wed, 22 Feb 2023 10:09:41 +1300	[thread overview]
Message-ID: <40e057d3-dfa3-6cd9-2bce-98f0db93430b@gmail.com> (raw)
In-Reply-To: <4f45f05f377bf3f5baf88dbd5c3c8aeac59d94f0.camel@physik.fu-berlin.de>

Hi Adrian,

On 22/02/23 04:53, John Paul Adrian Glaubitz wrote:
> Hi Geert!
>
> On Tue, 2023-02-21 at 15:55 +0100, Geert Uytterhoeven wrote:
>> Looks surprisingly similar to the issue reported by Stan.
>> Do the mitigations given in
>> https://lore.kernel.org/all/CAMuHMdUtkr2zvZiJfLXvs9d_inJbktSNqQQfO1oxnJHZeoYcHg@mail.gmail.com
>> help?
> The kernel actually crashes with a backtrace:
>
> ABCDGHIJK
> [    0.000000] Linux version 6.0.0-6-m68k (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-9) 12.2.0, GNU ld (GNU Binutils for
> Debian) 2.39) #1 Debian 6.0.12-1 (2022-12-09)
> [    0.000000] Enabling workaround for errata I14
> [    0.000000] printk: bootconsole [debug0] enabled
> [    0.000000] Amiga hardware found: [A4000] VIDEO BLITTER AUDIO FLOPPY A4000_IDE KEYBOARD MOUSE SERIAL PARALLEL A3000_CLK CHIP_RAM PAULA
> LISA ALICE_PAL ZORRO3
> [    0.000000] initrd: 0ef0602c - 0f800000
> [    0.000000] Zone ranges:
> [    0.000000]   DMA      [mem 0x0000000008000000-0x000000f7ffffffff]
> [    0.000000]   Normal   empty
> [    0.000000] Movable zone start for each node
> [    0.000000] Early memory node ranges
> [    0.000000]   node   0: [mem 0x0000000008000000-0x000000000f7fffff]

In both your case and Kars', the memory does not start at 0x0. Kars 
finds all memory reserved on his HP.

6.2rc8 boots fine on my 030 (memory starting at 0x0).

> [    0.000000] Initmem setup node 0 [mem 0x0000000008000000-0x000000000f7fffff]
> [    0.000000] Unable to handle kernel access at virtual address (ptrval)
> [    0.000000] Oops: 00000000
> [    0.000000] Modules linked in:
> [    0.000000] PC: [<00201d3c>] memcmp+0x28/0x56
> [    0.000000] SR: 2709  SP: (ptrval)  a2: 004a5580
> [    0.000000] d0: 00000003    d1: 00000001    d2: 00201d14    d3: 00000272
> [    0.000000] d4: 00012750    d5: 08023ec0    a0: 0000000c    a1: 0f7ffff4

a1 is just  before the end of your RAM chunk. If that's a longword 
access, you'd fall over the edge :) Can you disassemble the code snippet 
(or memcmp()) so we can see what's happening?

I do recall recent changes to the mm code, but that was for NOMMU. I 
wonder whether there was anything else that would introduce an implicit 
assumption about memory starting at 0x0 ...

> [    0.000000] Process swapper (pid: 0, task=(ptrval))
> [    0.000000] Frame format=4 fault addr=0f7ffff4 fslw=01051000
> [    0.000000] Stack from 004a3fac:
> [    0.000000]         00201d14 00000272 00374e40 0f7ffff4 0f800000 00534b22 0f7ffff4 0042e325
> [    0.000000]         0000000c 0055c000 00000272 00012750 08023ec0 00012750 080dbf48 08001000
> [    0.000000]         08001000 0f7ffff0 00553d9a 00000000 00533872
> [    0.000000] Call Trace: [<00201d14>] memcmp+0x0/0x56
> [    0.000000]  [<00374e40>] _printk+0x0/0x18
> [    0.000000]  [<00534b22>] start_kernel+0x8a/0x5d6
> [    0.000000]  [<00012750>] LOGTBL+0x228/0x800
> [    0.000000]  [<00012750>] LOGTBL+0x228/0x800
> [    0.000000]  [<00533872>] _sinittext+0x872/0x11f8
> [    0.000000]
> [    0.000000] Code: b288 661e 4280 6030 2a49 284b 264c 224d <bb8c> 66ea 5988 7003 b088 65f0 224d 264c 60dc 4283 1631 1800 4282 1433 1800
> 2003
> [    0.000000] Disabling lock debugging due to kernel taint
> [    0.000000] Kernel panic - not syncing: Attempted to kill the idle task!
> [    0.000000] ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]---
>
>>> FWIW, I noticed that the kernel image itself is already over 7 MB, not sure
>>> whether this is a problem.
>> Depends on how much RAM you have ;-)
> 128 MB.
>
>>> Anyone else tried a recent kernel on their Amigas?
>> I really should start booting on real Amiga hardware again...
> You should ;-).

Thirded :-)

Cheers,

     Michael

>
> Adrian
>

  reply	other threads:[~2023-02-21 21:09 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-21 14:50 Kernel versions 6.x don't boot on Amiga 4000 John Paul Adrian Glaubitz
2023-02-21 14:55 ` Geert Uytterhoeven
2023-02-21 15:53   ` John Paul Adrian Glaubitz
2023-02-21 21:09     ` Michael Schmitz [this message]
2023-02-21 21:46       ` John Paul Adrian Glaubitz
2023-02-22  0:53         ` Michael Schmitz
2023-02-23 18:24           ` Michael Schmitz
2023-02-26 11:02     ` Geert Uytterhoeven
2023-02-26 12:52       ` Geert Uytterhoeven
2023-02-27  2:01         ` Michael Schmitz
2023-02-27  5:55           ` Finn Thain
2023-02-27  7:19             ` Michael Schmitz
2023-02-27  9:41               ` Eero Tamminen
2023-02-27  9:52                 ` Michael Schmitz
2023-02-27  2:09         ` Michael Schmitz
2023-02-27  6:33           ` Finn Thain
2023-02-27  8:01             ` Finn Thain
2023-02-27  8:26             ` Geert Uytterhoeven
2023-02-27  9:42               ` Michael Schmitz
2023-02-27 11:34                 ` Mike Rapoport
2023-02-27 12:31                   ` Geert Uytterhoeven
2023-02-27 12:40                     ` Mike Rapoport

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40e057d3-dfa3-6cd9-2bce-98f0db93430b@gmail.com \
    --to=schmitzmic@gmail.com \
    --cc=debian-68k@lists.debian.org \
    --cc=geert@linux-m68k.org \
    --cc=glaubitz@physik.fu-berlin.de \
    --cc=linux-m68k@lists.linux-m68k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox