From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Airlie Subject: drm/sysfs lifetime interaction fixes Date: Fri, 11 Oct 2013 15:05:55 +1000 Message-ID: <1381467957-32193-1-git-send-email-airlied@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by gabe.freedesktop.org (Postfix) with ESMTP id A63C0E6103 for ; Thu, 10 Oct 2013 22:06:32 -0700 (PDT) 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: dri-devel@lists.freedesktop.org Cc: torvalds@linuxfoundation.org, fengguang.wu@intel.com, linux@arm.linux.org.uk List-Id: dri-devel@lists.freedesktop.org As reported in the thread [xen] double fault: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC on Linux kernel the drm has a crappy interaction model with the sysfs objects. This is my preferred method of fixing it as I don't think the lifetimes need to be tied so closely, though this requires review my someone to make sure my unregistering etc is correct and in the right place. Russell helped my understanding of the device model and supplied a patch doing this another way, but I think I like splitting the lifetimes more. Patch 1 is just prepartory for i915, then patch 2 is the guts. Dave.