From: Alan Cox Subject: Re: [PATCH] radeon: Use mdelay() instead of msleep() in atom_op_delay(). Date: Wed, 4 Jan 2012 00:52:26 +0000 Message-ID: <20120104005226.03580b70@pyramind.ukuu.org.uk> References: <1325613840-31736-1-git-send-email-michel@daenzer.net> <20120103180918.044b3b64@pyramind.ukuu.org.uk> <1325615146.1807.448.camel@thor.local> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from lxorguk.ukuu.org.uk (lxorguk.ukuu.org.uk [81.2.110.251]) by gabe.freedesktop.org (Postfix) with ESMTP id 9842F9E804 for ; Tue, 3 Jan 2012 16:51:33 -0800 (PST) In-Reply-To: <1325615146.1807.448.camel@thor.local> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Michel =?ISO-8859-1?B?RORuemVy?= Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Tue, 03 Jan 2012 19:25:46 +0100 Michel D=E4nzer wrote: > On Die, 2012-01-03 at 18:09 +0000, Alan Cox wrote: = > > On Tue, 3 Jan 2012 19:04:00 +0100 > > Michel D=E4nzer wrote: > > = > > > From: Michel D=E4nzer > > > = > > > It can be called from atomic context, e.g. when switching to console = for panic > > > output. > > = > > Is this only special cases like a panic - if so can it not be called in= a > > way that distinguishes between normality and nasty cases. > = > No idea, to be honest. It's an ATOM BIOS interpreter opcode, so in > theory it could be indirectly called from anywhere that uses ATOM BIOS. So lets stick to practice, and the real world. Screwing up everything else because of a crappy problem in your Atom BIOS code sucks but hey it happens. screwing up everything because of a theoretical concern is just dumb. I would start by making it some kind of context flag for your interpreter and making people involve the interpreter with a different function call if they can't sleep. At that point you'll be able to define the problem in the real kernel, document the rule and spot further people trying to jump off cliffs before they do. Alan