On 01/17/2012 02:12 AM, Linus Torvalds wrote:
Hi Linus,
No trivial bisect. I wish I had a faster build machine, but alas. I suspected some issue in DRM and the bisect took me into drm-core-next branch. I ended up at the following commit:
dc97b3409a790d2a21aac6e5cdb99558b5944119 is the first bad commit commit dc97b3409a790d2a21aac6e5cdb99558b5944119 Author: Jerome Glisse jglisse@redhat.com Date: Fri Nov 18 11:47:03 2011 -0500
drm/ttm: callback move_notify any time bo placement change v4
Previously we were calling back move_notify in error path when the bo is returned to it's original position or when destroy the bo. When destroying the bo set the new mem placement as NULL when calling back in the driver.
Updating nouveau to deal with NULL placement properly.
v2: reserve the object before calling move_notify in bo destroy path at that point ttm should be the only piece of code interacting with the object so atomic_set is safe here. v3: callback move notify only once the bo is in its new position call move notify want swaping out the buffer v4:- don't call move_notify when swapin out bo, assume driver should do what is appropriate in swap notify - move move_notify call back to ttm_bo_cleanup_memtype_use for destroy path
Reviewed-by: Jerome Glisse jglisse@redhat.com Reviewed-by: Thomas Hellstrom thellstrom@vmware.com
Actually, this commit was already bothering my bisect as it gave me a NULL pointer deref on system startup. I patched it to proceed the bisect (see attached diff). The NULL deref was fixed in the drm-nouveau-next branch (f7b24c4 drm/nouveau/ttm: fix crash as a result of a recent ttm change). However, the suspend/resume issue was not resolved.
Gr. AvS --------------------- 01:00.0 VGA compatible controller: nVidia Corporation GT218 [NVS 3100M] (rev a2) (prog-if 00 [VGA controller]) Subsystem: Dell Device 040a Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0, Cache Line Size: 64 bytes Interrupt: pin A routed to IRQ 16 Region 0: Memory at e2000000 (32-bit, non-prefetchable) [size=16M] Region 1: Memory at d0000000 (64-bit, prefetchable) [size=256M] Region 3: Memory at e0000000 (64-bit, prefetchable) [size=32M] Region 5: I/O ports at 7000 [size=128] Expansion ROM at e3000000 [disabled] [size=512K] Capabilities: <access denied> Kernel driver in use: nouveau Kernel modules: nouveau, nvidiafb
dri-devel@lists.freedesktop.org