diff options
author | Alberto Aguirre <a-aguirre@ti.com> | 2012-10-12 16:31:51 -0500 |
---|---|---|
committer | Alberto Aguirre <a-aguirre@ti.com> | 2012-10-12 16:43:18 -0500 |
commit | 3cddd911591b3ddc5bd7bc211498c3e31c6de368 (patch) | |
tree | d820027324efb46638fdfe24077ef3fec0701e66 | |
parent | ba9dbd39b6aeaa3ae28adb39d968ede9d19744fe (diff) | |
download | kernel_samsung_espresso10-3cddd911591b3ddc5bd7bc211498c3e31c6de368.zip kernel_samsung_espresso10-3cddd911591b3ddc5bd7bc211498c3e31c6de368.tar.gz kernel_samsung_espresso10-3cddd911591b3ddc5bd7bc211498c3e31c6de368.tar.bz2 |
OMAPRPC: Ask tiler for pa in buffer lookups
For buffer lookups where no valid handle is available
(either PVR or ion) ask tiler for the physical address
in case there are valid virtual maps for the virtual
address in question.
Change-Id: I7f5d47223a38bef96e2d4aaf52534e6fc7e8f743
Signed-off-by: Alberto Aguirre <a-aguirre@ti.com>
-rw-r--r-- | drivers/rpmsg/omaprpc/omap_rpc_ion.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/rpmsg/omaprpc/omap_rpc_ion.c b/drivers/rpmsg/omaprpc/omap_rpc_ion.c index 6354a4a..d2f5ed0 100644 --- a/drivers/rpmsg/omaprpc/omap_rpc_ion.c +++ b/drivers/rpmsg/omaprpc/omap_rpc_ion.c @@ -159,7 +159,8 @@ phys_addr_t omaprpc_buffer_lookup(struct omaprpc_instance_t *rpc, ion_free(rpc->ion_client, handle); } } - + /* As a last resort ask tiler if it knows about this virtual address */ + lpa = (phys_addr_t)tiler_virt2phys(uva); to_va: /* convert the local physical address to remote physical address */ rpa = rpmsg_local_to_remote_pa(rpc, lpa); |