Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Dec 2003 13:34:24 -0600
From:      Kirk Strauser <kirk@strauser.com>
To:        Robert Watson <rwatson@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: ATA + DMA still giving repeatable freezes
Message-ID:  <87r7yut3gf.fsf@strauser.com>
In-Reply-To: <Pine.NEB.3.96L.1031219191506.46326P-100000@fledge.watson.org> (Robert Watson's message of "Fri, 19 Dec 2003 19:17:00 -0500 (EST)")
References:  <Pine.NEB.3.96L.1031219191506.46326P-100000@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--=-=-=
Content-Transfer-Encoding: quoted-printable

At 2003-12-20T00:17:00Z, Robert Watson <rwatson@FreeBSD.org> writes:

> FYI, I had this problem on a notebook and foudn that disabling "device
> apic" made things clear up.  Try it and see if it helps, and if it does,
> post as much.  I'm busy testing to make sure my observation is right on my
> system.  I also saw fairly frequent hangs starting or leaving XWindows,
> and John Baldwin hypothesized there was an interaction between DRM and the
> interrupt code.

Robert, I wanted to get in some more testing before reporting back.  I
cvsup'ed again and built world and kernel.  This time, I started with plain
GENERIC and made minor changes until I could reproduce the hangs.
Basically, commenting out "options WITNESS" and "options WITNESS_SKIPSPIN"
was enough to trigger the problem; I'm guessing that these options slow down
the system enough that timing issues disappear.

After adding this to my /boot/loader.conf.local:

    hw.ata.ata_dma=3D"0"
    hint.acpi.0.disabled=3D"1"

I no longer get system hangs, although I do get these messages at random
intervals during heavy ATA IO:

    ad0: TIMEOUT - READ_MUL retrying (2 retries left)
    ata0: resetting devices ..
    done

=2D-=20
Kirk Strauser

--=-=-=
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQA/6epE5sRg+Y0CpvERAstlAJ9saDm74bO4V4XDvPuri4oOHBvuHgCglwrU
AV4DCGEPTjmeyjwCxLzxbxc=
=CBKb
-----END PGP SIGNATURE-----
--=-=-=--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87r7yut3gf.fsf>