diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2019-07-05 20:17:26 +0300 |
---|---|---|
committer | Lucas Stach <l.stach@pengutronix.de> | 2019-08-15 12:06:32 +0300 |
commit | e6364d70cfa3205233c131ae65f1aade8c8a050f (patch) | |
tree | 3b2fbd72e8e90859538d11904c59c4ab45ceb0ca /drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c | |
parent | d80d842a47fbd029b18f8cff12535f2d1ece3f1e (diff) | |
download | linux-e6364d70cfa3205233c131ae65f1aade8c8a050f.tar.xz |
drm/etnaviv: provide MMU context to etnaviv_gem_mapping_get
In preparation to having a context per process, etnaviv_gem_mapping_get
should not use the current GPU context, but needs to be told which
context to use.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Guido Günther <agx@sigxcpu.org>
Diffstat (limited to 'drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c')
-rw-r--r-- | drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c b/drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c index 3f4f6ab388de..7929d258daf8 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c @@ -224,7 +224,8 @@ static int submit_pin_objects(struct etnaviv_gem_submit *submit) struct etnaviv_vram_mapping *mapping; mapping = etnaviv_gem_mapping_get(&etnaviv_obj->base, - submit->gpu); + submit->gpu, + submit->gpu->mmu_context); if (IS_ERR(mapping)) { ret = PTR_ERR(mapping); break; |