mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Make "phys" nvgpu_mem impl
Make a physical nvgpu_mem implementation in the common code. This implementation assumes a single, contiguous, physical range. GMMU mappability is provided by building a one entry SGT. Since this is now "common" code the original Linux code has been moved to commom/mm/nvgpu_mem.c. Also fix the '__' prefix in the nvgpu_mem function. This is not necessary as this function, although somewhat tricky, is expected to be used by arbitrary users within the nvgpu driver. JIRA NVGPU-1029 Bug 2441531 Change-Id: I42313e5c664df3cd94933cc63ff0528326628683 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1995866 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
e2a29dbb96
commit
f766c6af91
@@ -72,7 +72,7 @@ int gv11b_alloc_syncpt_buf(struct channel_gk20a *c,
|
||||
return err;
|
||||
|
||||
nr_pages = DIV_ROUND_UP(g->syncpt_size, PAGE_SIZE);
|
||||
__nvgpu_mem_create_from_phys(g, syncpt_buf,
|
||||
nvgpu_mem_create_from_phys(g, syncpt_buf,
|
||||
(g->syncpt_unit_base +
|
||||
nvgpu_nvhost_syncpt_unit_interface_get_byte_offset(syncpt_id)),
|
||||
nr_pages);
|
||||
@@ -188,4 +188,4 @@ void gv11b_add_syncpt_incr_cmd(struct gk20a *g,
|
||||
u32 gv11b_get_syncpt_incr_cmd_size(bool wfi_cmd)
|
||||
{
|
||||
return 10U;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user