[Mesa-dev] [PATCH 1/3] radeonsi: allow si_cp_dma_clear_buffer to clear GDS from any IB

Marek Olšák maraeo at gmail.com
Tue Jan 22 21:50:21 UTC 2019


On Thu, Nov 29, 2018 at 11:23 AM Koenig, Christian <Christian.Koenig at amd.com>
wrote:

> Hi Marek,
>
> you stumbled over a pretty fundamental bug in the memory management here.
> Essentially we where leaking BOs when we ran into an OOM situation. Patch
> to fix this is on the mailing list.
>
> A second problem is that eviction doesn't seem to work when GDS BOs aren't
> idle. In other words when two applications try to use GDS at the same time
> they don't wait for each other, but rather one looses with an OOM message.
>

FYI, the OOM message is the last issue with GDS. Everything else is good.

I have a workaround in Mesa that re-submits the CS ioctl if it has failed
with -ENOMEM. I guess there is no downside to it other than the OOM spam in
dmesg.

Marek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190122/04cd5f7d/attachment.html>


More information about the mesa-dev mailing list