]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ast: deal with bo reserve fail in dirty update path
authorDave Airlie <airlied@redhat.com>
Thu, 2 May 2013 06:40:25 +0000 (02:40 -0400)
committerDave Airlie <airlied@redhat.com>
Thu, 2 May 2013 02:46:47 +0000 (12:46 +1000)
commit0b25196d9da810c90a44e5e9db685e7bb0cda897
tree56b69864e7941570c697b9da778d9a2886e0b8bd
parent55705c6a9ddcd43aa2d95cc061dcc4bb6694b2ec
drm/ast: deal with bo reserve fail in dirty update path

Port over the mgag200 fix to ast 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/ast/ast_drv.h
drivers/gpu/drm/ast/ast_fb.c
drivers/gpu/drm/ast/ast_ttm.c