drm: Implement wait_for_idle cmd and add a small fix
This MR includes following two changes:
1. Implement wait_for_idle cmd.
2. Free data of hash table ctx->id_to_ctx to avoid memory leak.
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
This MR includes following two changes:
1. Implement wait_for_idle cmd.
2. Free data of hash table ctx->id_to_ctx to avoid memory leak.