drm/mm: fix debug table BUG
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 1 Jul 2013 20:01:02 +0000 (22:01 +0200)
committerDave Airlie <airlied@redhat.com>
Thu, 4 Jul 2013 00:01:00 +0000 (10:01 +1000)
commit2c54b133576fefaa54a0ab939a94af348ec54499
tree9c3b4ad1494601373d2c340748cb6cc88977ccb9
parent4a88f73f14f6d6c94616538427e1235a6d0a5885
drm/mm: fix debug table BUG

In

commit 3a359f0b21ab218c1bf7a6a1b638b6fd143d0b99
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Sat Apr 20 12:08:11 2013 +0200

    drm/mm: fix dump table BUG

I've failed to fix both instances of the regression introduced in

commit 9e8944ab564f2e3dde90a518cd32048c58918608
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Thu Nov 15 11:32:17 2012 +0000

   drm: Introduce an iterator over holes in the drm_mm range manager

Patch this up in the same way by extracting the hole debug logic
into it's own function, since that'll also clarify the logic a bit.

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_mm.c