mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Steffen A. Mork" <linux-dev@morknet.de>
To: Daniel Palmer <daniel@0x0f.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>,
	linux-m68k@vger.kernel.org, linux-kernel@vger.kernel.org,
	Thorsten Blum <blum@kernel.org>, Denis Ahrens <denis@h3q.com>
Subject: Re: [PATCH] m68k: amiga: lower min_low_pfn to make RAM DMA-able
Date: Thu, 3 Dec 2026 13:57:56 +0100	[thread overview]
Message-ID: <1a81fe11-524b-43c1-b1cd-e8667f76d593@morknet.de> (raw)
In-Reply-To: <CAFr9PXnkjAYc7OWc4TVcKZeJA93Jj+pPAz=5u8rVRLTqCq8vvg@mail.gmail.com>

Am 03.12.26 um 11:50 schrieb Daniel Palmer:
> Hi Steffen,
Hi Daniel,

> On Thu, 5 Nov 2026 at 22:30, Steffen A. Mork <linux-dev@morknet.de> wrote:
>>
>> With reference to the patch by Denis Ahrens for the MVME16x platform, this
>> patch works in the same way for the Amiga. Currently, all DMA-capable SCSI
>> controllers have ceased to function due to the same underlying issue. While
>> the wd33c93=nodma parameter can be used as a workaround for the wd33c93
>> driver on the Amiga 3000, other drivers —- such as the zorro_esp driver
>> (tested on a Blizzard 2060) -— fail completely once memory has been
>> released by free_initmem().
> 
> Can you check if the following works for you?:
This simply works. :-)

>   --- a/arch/m68k/mm/motorola.c
>   +++ b/arch/m68k/mm/motorola.c
>   @@ void __init paging_init(void)
>           unsigned long max_zone_pfn[MAX_NR_ZONES] = { 0, };
>           unsigned long min_addr, max_addr;
>           unsigned long addr;
>           int i;
>   @@
>           high_memory = phys_to_virt(max_addr) + 1;
> 
>   -       min_low_pfn = availmem >> PAGE_SHIFT;
>   +       min_low_pfn = min_addr >> PAGE_SHIFT;
>           max_pfn = max_low_pfn = (max_addr >> PAGE_SHIFT) + 1;
> 
It's a better place to fix a whole architecture rather than distinct
platforms.

Tested-by: Steffen A. Mork <linux-dev@morknet.de> # native Amiga 2000
with Blizzard 2060Tested-by: Steffen A. Mork <linux-dev@morknet.de> #
FS-UAE virtual Amiga 3000

> Cheers,
>
> Daniel
-- 
Steffen


  reply	other threads:[~2026-12-03 12:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-05 13:27 Steffen A. Mork
2026-12-03 10:50 ` Daniel Palmer
2026-12-03 12:57   ` Steffen A. Mork [this message]
2026-12-03 13:39     ` Daniel Palmer
2026-12-03 13:42       ` Steffen A. Mork
2026-12-03 20:58   ` Denis Ahrens

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=1a81fe11-524b-43c1-b1cd-e8667f76d593@morknet.de \
    --to=linux-dev@morknet.de \
    --cc=blum@kernel.org \
    --cc=daniel@0x0f.com \
    --cc=denis@h3q.com \
    --cc=geert@linux-m68k.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-m68k@vger.kernel.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

all inboxes | Powered by JetHome®