]> git.baikalelectronics.ru Git - kernel.git/commit
drm/cirrus: deal with bo reserve fail in dirty update path
authorDave Airlie <airlied@redhat.com>
Thu, 2 May 2013 06:45:02 +0000 (02:45 -0400)
committerDave Airlie <airlied@redhat.com>
Thu, 2 May 2013 02:46:56 +0000 (12:46 +1000)
commit007178bd2978d67ddcd322453bdfc1679b90ef52
tree34101348a8b732dcf68cc8c869938b393b1e6dae
parenta4d388a9d6abdc7e2c7e6e128c74b6f9fb04130f
drm/cirrus: deal with bo reserve fail in dirty update path

Port over the mgag200 fix to cirrus as it suffers the same issue.

    On F19 testing, it was noticed we get a lot of errors in dmesg
    about being unable to reserve the buffer when plymouth starts,
    this is due to the buffer being in the process of migrating,
    so it makes sense we can't reserve it.

    In order to deal with it, this adds delayed updates for the dirty
    updates, when the bo is unreservable, in the normal console case
    this shouldn't ever happen, its just when plymouth or X is
    pushing the console bo to system memory.

Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/cirrus/cirrus_drv.h
drivers/gpu/drm/cirrus/cirrus_fbdev.c
drivers/gpu/drm/cirrus/cirrus_ttm.c