mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: ngpu: vgpu: set unified_memory to true
Set variable unified_memory to true for vgpu which enables NVGPU_MM_UNIFIED_MEMORY flag implying vgpu shares SoC memory. Bug 200491757 Change-Id: Ibfcd41d52b74f2377431ab420a01629bfc0f3f9c Signed-off-by: Aparna Das <aparnad@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2079502 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
c5f8edd8bf
commit
5403ac9917
@@ -97,6 +97,8 @@ static void vgpu_init_vars(struct gk20a *g, struct gk20a_platform *platform)
|
||||
g->railgate_delay = platform->railgate_delay_init;
|
||||
|
||||
g->mm.disable_bigpage = true;
|
||||
nvgpu_set_enabled(g, NVGPU_MM_UNIFIED_MEMORY,
|
||||
platform->unified_memory);
|
||||
nvgpu_set_enabled(g, NVGPU_MM_UNIFY_ADDRESS_SPACES,
|
||||
platform->unify_address_spaces);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user