NetBSD Problem Report #54942

From  Thu Feb  6 09:17:18 2020
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id 8D4541A9213
	for <>; Thu,  6 Feb 2020 09:17:18 +0000 (UTC)
Message-Id: <>
Date: Thu,  6 Feb 2020 09:17:17 +0000 (UTC)
Subject: Random kernel panic on Quadra 660AV and 840AV
X-Send-Pr-Version: www-1.0

>Number:         54942
>Category:       port-mac68k
>Synopsis:       Random kernel panic on Quadra 660AV and 840AV
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-mac68k-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 06 09:20:00 +0000 2020
>Originator:     Rin Okuyama
>Release:        -HEAD and at least netbsd-9
Department of Physics, Meiji University
Sorry, I cannot physically access my 840AV at the moment.
Kernel panics during boot have been reported for AV Macs sometimes in
port-mac68k. For my cases of 840AV, different kinds of panics, e.g.,
illegal instruction, MMU fault, FPU trap, etc., take place randomly
depending on kernel configuration and date of source code. DDB shows
that kernel text around the fault address becomes corrupted when panic

I'm almost sure that this is due to DMA. Currently, we halt DMA
controller in kernel driver:

However, this is too late; we should halt it in Booter. Otherwise,
DMA controller can transfer data to somewhere in low physical address
after Booter copied kernel image there.

Penguin booter for Linux halts DMA controller before copying kernel
image to low physical address.
Boot kernel on Quadra 660AV or 840AV.
I've never observed this kind of panics if I use patched version of
Booter, by which DMA engine is halted before copying kernel image:
  (CAUTION: this version should not work on non-AV Macs)

  Some unorganized notes what I did for Booter:

Unfortunately, this version of Booter is binary-patched and not working
for non-AV Macs; currently I do not have an environment to build Booter
from C codes. I will try to install CodeWarrior to My 840AV, but it may
take some time...

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.