From owner-freebsd-multimedia@FreeBSD.ORG Thu Feb 23 08:48:08 2006 Return-Path: X-Original-To: multimedia@freebsd.org Delivered-To: freebsd-multimedia@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EFB9C16A420 for ; Thu, 23 Feb 2006 08:48:08 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id DFDE543D62 for ; Thu, 23 Feb 2006 08:48:05 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: by xproxy.gmail.com with SMTP id h30so4276wxd for ; Thu, 23 Feb 2006 00:48:05 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Bv+8MEG30eqAIrsQTRwwAHqZSXLkWRQHlz94OaINVjHiT/VxT7thh35jWZkafwksvLjL0WDMaEVHWD5F8XjhifyUY5NFCWke3KvEz/o/5xw/ZfH74sigJc+uVGolBBfkXFWh4dxV+QpHSTIm6tWSEtZQjcYGxBfAonvc2A6XKfE= Received: by 10.70.126.12 with SMTP id y12mr1569149wxc; Thu, 23 Feb 2006 00:48:05 -0800 (PST) Received: by 10.70.65.9 with HTTP; Thu, 23 Feb 2006 00:48:05 -0800 (PST) Message-ID: Date: Thu, 23 Feb 2006 02:48:05 -0600 From: "Nikolas Britton" To: "Alfred Perlstein" In-Reply-To: <20060222181146.GB73389@elvis.mu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060222181146.GB73389@elvis.mu.org> Cc: multimedia@freebsd.org Subject: Re: radeon lockups with drm/dri X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2006 08:48:09 -0000 On 2/22/06, Alfred Perlstein wrote: > I've had a couple of times where my X server went bonkers > and wouldn't respond to "kill -9" I think this has to do > with the hardware going for a nap. > > Basically the X server gets stuck in "rdnrel". > > This is in: > dev/drm/radeon_cp.c:radeon_do_release() > > if (dev_priv->cp_running) { > /* Stop the cp */ > while ((ret =3D radeon_do_cp_idle(dev_priv)) !=3D= 0) { > DRM_DEBUG("radeon_do_cp_idle %d\n", ret); > #ifdef __linux__ > schedule(); > #else > #if defined(__FreeBSD__) && __FreeBSD_version > 500000 > msleep(&ret, &dev->dev_lock, PZERO, "rdnr= el", > 1); > #else > tsleep(&ret, PZERO, "rdnrel", 1); > #endif > #endif > } > radeon_do_cp_stop(dev_priv); > radeon_do_engine_reset(dev); > } > > It appears that "radeon_do_cp_idle" fails over and over leading > to an unkillable X server. > > Can this loop be changed to abort after a number of retries? > > Is a way to force a reset of the device when this happens? > > thank you! Try the FreeBSD X11 mailing list: http://lists.freebsd.org/mailman/listinfo/freebsd-x11 -- BSD Podcasts @ http://bsdtalk.blogspot.com/