]> 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)
commitb733e5b1786e14eaa7c320aad9ee4327c94d77d5
treeec2b6f4b00ca0247c1546742c8e2f4bdbf230528
parent635308c654fa42ae1337380f3c5370ff300c562f
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