]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mgag200: deal with bo reserve fail in dirty update path
authorDave Airlie <airlied@redhat.com>
Thu, 2 May 2013 04:52:01 +0000 (00:52 -0400)
committerDave Airlie <airlied@redhat.com>
Thu, 2 May 2013 02:46:39 +0000 (12:46 +1000)
commit55705c6a9ddcd43aa2d95cc061dcc4bb6694b2ec
tree1c21aa2aee3380f34cfa8f2802b7c07bb22d0640
parent1cff966dd4889acc57167d4c26d6559b1f665576
drm/mgag200: deal with bo reserve fail in dirty update path

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/mgag200/mgag200_drv.h
drivers/gpu/drm/mgag200/mgag200_fb.c
drivers/gpu/drm/mgag200/mgag200_ttm.c