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

From: Daniel Palmer

Date: Thu Dec 03 2026 - 05:50:38 EST


Hi Steffen,

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?:

--- 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;

Cheers,

Daniel