[RAMEN9610-9616][MODAP-11585] drivers: gpu: Fix ui not smooth
authorYoojin Park <yoojin1.park@samsung.com>
Tue, 18 Dec 2018 04:55:51 +0000 (13:55 +0900)
committerhskang <hs1218.kang@samsung.com>
Tue, 18 Dec 2018 12:31:59 +0000 (21:31 +0900)
commit909955fdbee23d8f9e39e8294c8c4300f7ca3375
treeb6f38d04e395b96a867a47d0b583ec44beed9999
parentb69580a15755632275cbac42b517d611263e0134
[RAMEN9610-9616][MODAP-11585] drivers: gpu: Fix ui not smooth

MIDCET-1863 : Don't evict NEXT atom on soft stop if it's from a different context

This commit changes the behaviour of the job manager on a soft stop
request. Before this commit, if the atom to stop was on the HEAD of a
job slot and an atom from a different context was on the NEXT slot, both
atoms would be removed. This was once required due to ordering
restrictions in an older job scheduler implementation.

It has the side-effect that if these were the only two contexts
attempting to schedule on this slot, then there was a chance that they
would be removed from the job manager and re-submitted in exactly the
same order. If the soft stop was due to the scheduler attempting to
schedule out the HEAD atom so that the NEXT atom could run, then this
would be entirely counter productive.

Change-Id: I9b85bf10b3d720f248f5976f24a4ecac9d5203bb
Signed-off-by: Yoojin Park <yoojin1.park@samsung.com>
drivers/gpu/arm/tHEx/r10p0/backend/gpu/mali_kbase_jm_rb.c