qxl: limit monitor config read retries
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 1 Mar 2017 10:12:32 +0000 (11:12 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 7 Mar 2017 06:09:14 +0000 (07:09 +0100)
commit9062155de0dfdc5cdfd38caf09d7f14b1833a2ca
tree5605edb841fcfa23429c11d8e022224c35d996da
parentecefd94e8bde7de4f03d6fc874378d826537df7b
qxl: limit monitor config read retries

When reading the monitor config fails, don't retry forever.  If it fails
ten times in a row just give up to avoid the driver hangs.  Also add a
small delay after each attempt, so the host has a chance to complete a
partial update.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Gabriel Krisman Bertazi <krisman@collabora.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1488363154-6889-3-git-send-email-kraxel@redhat.com
drivers/gpu/drm/qxl/qxl_display.c