From: Daniel Vetter Subject: Re: [PATCH v2] radeon: Use mdelay() instead of msleep() when we can't sleep in atom_op_delay(). Date: Wed, 4 Jan 2012 13:58:21 +0100 Message-ID: <20120104125821.GE8004@phenom.ffwll.local> References: <1325613840-31736-1-git-send-email-michel@daenzer.net> <1325673220-30281-1-git-send-email-michel@daenzer.net> <20120104105413.GB8004@phenom.ffwll.local> <1325676564.1807.495.camel@thor.local> <20120104114448.GC8004@phenom.ffwll.local> <20120104120936.10a6ac40@pyramind.ukuu.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-we0-f177.google.com (mail-we0-f177.google.com [74.125.82.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 05E3F9E747 for ; Wed, 4 Jan 2012 04:56:22 -0800 (PST) Received: by wera10 with SMTP id a10so11044319wer.36 for ; Wed, 04 Jan 2012 04:56:22 -0800 (PST) Content-Disposition: inline In-Reply-To: <20120104120936.10a6ac40@pyramind.ukuu.org.uk> 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: Alan Cox Cc: Michel =?iso-8859-1?Q?D=E4nzer?= , Drago , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Wed, Jan 04, 2012 at 12:09:36PM +0000, Alan Cox wrote: > > I think Alan's simply wrong. > > In what way ? You stated this, then go on below to say what I did ? > > > Splattering the entire driver for > > these two corner cases which don't happen at all under normal > > circumstances is imho utter nonsense. > > Which is what I said > > | > > 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. Meh, missed the first part of your mail here. Looks like a misunderstanding on my side, I was assuming you're proposing to add an atom_exec_atomic thing which - would unconditionally do the spinning delay (by completely abolishing the in_atomic checks) and - which would require to pass around a flag from at least the panic handler throught the entire modeset code. Your actual proposal makes much more sense, and as I've said I kinda like the warning, altough I'm not really sold on the usefulness of it all. After all we already have all the nice ftrace instrumentation to put blame for hoggin the cpu in atomic contexts where it needs to be put. -Daniel -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48