Re: [PATCH] m68k: amiga: lower min_low_pfn to make RAM DMA-able

From: Steffen A. Mork

Date: Thu Dec 03 2026 - 07:58:14 EST


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@xxxxxxxxxx> 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@xxxxxxxxxx> # native Amiga 2000
with Blizzard 2060Tested-by: Steffen A. Mork <linux-dev@xxxxxxxxxx> #
FS-UAE virtual Amiga 3000

> Cheers,
>
> Daniel
--
Steffen