From: Steven Rostedt Subject: Re: [Intel-gfx] BUG: sleeping function called from invalid context on 3.10.10-rt7 Date: Wed, 25 Sep 2013 10:18:03 -0400 Message-ID: <20130925101803.2848fc3c@gandalf.local.home> References: <20130911102809.GA31663@uudg.org> <20130911092623.42efd930@gandalf.local.home> <5230895B.5070400@hurleysoftware.com> <20130911113845.6d56a556@gandalf.local.home> <5230C52E.3050801@hurleysoftware.com> <5238B288.3000704@hurleysoftware.com> <523CC728.4040302@tuebingen.mpg.de> <20130923083841.GT4531@intel.com> <5242674A.8020100@tuebingen.mpg.de> <20130925074936.GI4531@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <20130925074936.GI4531@intel.com> Sender: linux-rt-users-owner@vger.kernel.org To: Ville =?UTF-8?B?U3lyasOkbMOk?= Cc: Mario Kleiner , Daniel Vetter , Peter Hurley , linux-rt-users , Clark Williams , Sebastian Andrzej Siewior , LKML , "dri-devel@lists.freedesktop.org" , Dave Airlie , Thomas Gleixner , intel-gfx , "Luis Claudio R. Goncalves" List-Id: dri-devel@lists.freedesktop.org On Wed, 25 Sep 2013 10:49:36 +0300 Ville Syrj=C3=A4l=C3=A4 wrote: =20 > The preempt_disable/enable is not needed. The spinlock serves the sam= e > purpose already. As stated, that was only for the -rt patch, as spin_lock_irqsave does not disable preemption nor does it even disable interrupts. But I agree, the added preempt_disable() should be sent to us to keep in the -rt patch itself. We really appreciate that you are thinking about us :-) But something like this will just confuse the mainline folks. Having a "preempt_disable_rt()" would make a lot more sense (which exists in the -rt patch). >=20 > As far as ktime_get(), I've used it from spinlocked/irq disabled sect= ions > and so far haven't seen it do bad things. But would be nice to get so= me > official statement to that effect. It's just a read seqlock. It may do a few loops to get the correct time, but it's fine to have in a preempt/irq disabled section. -- Steve -- To unsubscribe from this list: send the line "unsubscribe linux-rt-user= s" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html