From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Widawsky Subject: Re: [PATCH] drm/i915: properly cancel rps_work on module unload Date: Mon, 5 Sep 2011 10:27:18 -0700 Message-ID: <20110905102718.43b211e5@bwidawsk.net> References: <20110904195731.GD2799@phenom.ffwll.local> <1315210528-10976-1-git-send-email-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from cloud01.chad-versace.us (184-106-247-128.static.cloud-ips.com [184.106.247.128]) by gabe.freedesktop.org (Postfix) with ESMTP id 2BCA69E935 for ; Mon, 5 Sep 2011 10:26:59 -0700 (PDT) In-Reply-To: <1315210528-10976-1-git-send-email-daniel.vetter@ffwll.ch> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Daniel Vetter Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Mon, 5 Sep 2011 10:15:28 +0200 Daniel Vetter wrote: > The rps disabling code wasn't properly cancelling outstanding work > items. Also add a comment that explains why we're not racing with > the work item that could unmask interrupts - that piece of code > confused me quite a bit. > > v2: Ben Widawsky pointed out that the first patch would deadlock > (and a few lesser problems). All corrected. > > Signed-off-by: Daniel Vetter Reviewed-by: Ben Widawsky This looks good. I think we need to do something in i915_save_state() too though.