]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon/kms: catch atombios infinite loop and break out of it
authorJerome Glisse <jglisse@redhat.com>
Tue, 2 Mar 2010 19:37:52 +0000 (20:37 +0100)
committerDave Airlie <airlied@redhat.com>
Sun, 14 Mar 2010 23:35:45 +0000 (09:35 +1000)
commit9fb82c795b8a7ad9344b11000399588959b36a57
treeeffd4e98793dbd06a85f558a843519b1bf35bf24
parentb6ac5921c6f37fe4bebcd17c7f9c3f993e2e2b1f
drm/radeon/kms: catch atombios infinite loop and break out of it

In somecase the atombios code might lead to infinite loop because
the GPU is in broken state, this patch track the jump history and
will abort atombios execution if we are stuck executing the same
jump for more than 1sec. Note that otherwise in some case we might
enter an infinite loop in the kernel context which is bad.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/atom.c
drivers/gpu/drm/radeon/atom.h