]> git.baikalelectronics.ru Git - kernel.git/commit
drm/etnaviv: initialize idle mask before querying the HW db
authorLucas Stach <l.stach@pengutronix.de>
Wed, 19 Dec 2018 14:16:41 +0000 (15:16 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Fri, 3 May 2019 08:41:04 +0000 (10:41 +0200)
commit67632ff1f2830da0b5c10c1de28b4b52d8ae0b2c
treeec2b6f4b00ca0247c1546742c8e2f4bdbf230528
parentdd344632938fdd46ed24ca52c7b407911b4667d1
drm/etnaviv: initialize idle mask before querying the HW db

If there is a match in the HW DB, the function is left early, before
inititalizing the idle mask. Fix this by doing the init earlier, as
only old GPUs, not present in the HW DB need a different idle mask.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_gpu.c