Skip to content

msm: kgsl: Increase worker thread priority and don't wait for room in context queue when context is invalidated

Patches for Andreno GPUs:

Currently, the kgsl worker thread is erroneosly ranked right below Android's audio threads in terms of priority.

The kgsl worker thread is in the critical path for rendering frames to the display, so increase its priority to match the priority of MDSS' kthread (mdss_fb0).

Signed-off-by: Sultan Alsawaf sultanxda@gmail.com

Change-Id: I5635d6c8135726b3d9955121515996065f1a8eb2

Signed-off-by: German Semenov GermanAizek@yandex.ru


In a condition where there is no room in the drawcontext queue and the context is invalidated while sleeping in wait_event_interruptible_timeout, we are now polling for room after wake up. This would lead to infinite looping.

Hence, do not wait for room in context queue if context is invalidated.

Change-Id: I12c80e71630da2f3316838bee37f13cfa3b8e7d9

Signed-off-by: Harshitha Sai Neelati hsaine@codeaurora.org

Signed-off-by: German Semenov GermanAizek@yandex.ru

Edited by German Semenov

Merge request reports

Loading