From: Dave Airlie Subject: Re: [Intel-gfx] [PATCH 2/7] drm: delay vblank cleanup until after driver unload Date: Mon, 29 Mar 2010 10:02:04 +1000 Message-ID: <21d7e9971003281702kf766c0fk486f55c84f3416a@mail.gmail.com> References: <1269626841-10852-1-git-send-email-jbarnes@virtuousgeek.org> <1269626841-10852-2-git-send-email-jbarnes@virtuousgeek.org> <59ad55d31003281530p316491edvf75cef3065c341f8@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <59ad55d31003281530p316491edvf75cef3065c341f8@mail.gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.sourceforge.net To: =?ISO-8859-1?Q?Kristian_H=F8gsberg?= Cc: airlied@linux.ie, intel-gfx@lists.freedesktop.org, dri-devel@lists.sourceforge.net, Jesse Barnes List-Id: dri-devel@lists.freedesktop.org 2010/3/29 Kristian H=F8gsberg : > On Fri, Mar 26, 2010 at 7:07 PM, Jesse Barnes = wrote: >> Drivers may use vblank calls now (e.g. drm_vblank_off) in their unload >> paths, so don't clean up the vblank related structures until after >> driver unload. > > I haven't tested this specific patch on a recent DRM, but I made the > same patch a while ago, and it fixed module unload for me. =A0I sent it > to the list and it fell through the cracks, because "vblank is hard" > or something. > > Reviewed-by: Kristian H=F8gsberg I didn't apply it because from what I can see non-kms drivers need to free the vbl stuff on lastclose not unload. I'm nearly sure I said that at the time to. This patch seems to suffer from the same problem from what I can see. And really someone should already have cleaned up the insanity that is vbl struct allocations, vblank might not be hard, but it sure has some ugly. Dave. ---------------------------------------------------------------------------= --- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev --