drm/etnaviv: populate GEM objects on cpu_prep
authorLucas Stach <dev@lynxeye.de>
Tue, 6 Jun 2017 07:17:08 +0000 (09:17 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Mon, 3 Jul 2017 08:54:54 +0000 (10:54 +0200)
commit8cc47b3ea0822175deb8bf436e4c59a7f128ac30
tree195d04cf7836d806739992ea69ea2b4e5fc6948b
parentf91ac470a8b1b358e9c2c7dc17da2642d125c3ac
drm/etnaviv: populate GEM objects on cpu_prep

CPU prep is the point where we can reasonably return an error to userspace
when something goes wrong while populating the object. If we leave the
object unpopulated at this point, the allocation will happen in the
fault handler when userspace accesses the object through the mmap space,
where we don't have any other option than to OOM the system.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
drivers/gpu/drm/etnaviv/etnaviv_gem.c