Subject : drm/i915 BUG with 2.6.35-rc
Submitter : Benny Halevy <email@example.com>
Date : 2010-06-14 22:38
Message-ID : 4C16AF56.firstname.lastname@example.org
References : http://marc.info/?l=linux-kernel&m=127655510531367&w=2
This entry is being used for tracking a regression from 2.6.34. Please don't
close it until the problem is fixed in the mainline.
Created attachment 26858 [details]
lock struct_mutex in i915_dma_cleanup()
Can you give the attached patch a go?
drm_irq_uninstall() has to be called with struct_mutex not held and intel_cleanup_ring_buffer() has to be called with struct_mutex held. That bit is straight forward.
I don't know about i915_free_hws() but I think we don't needed to hold struct_mutex for that.
I don't have the actual hardware myself, so I haven't tested this.
That did the trick.
Booted with this patch and I have not seen the crash.
Fixed by commit ee0c6bfbd602cdad2ab1780061b3b1a9108cbd6c .