mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: nvs: use gsp vm for control fifo
Changes: - changed system vm from pmu to gsp. NVGPU-8686 Change-Id: I00a285691ab7900c2d3c2d198ae97b55d4fa87d7 Signed-off-by: vivekku <vivekku@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2826279 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
470c1738b5
commit
7d87c7efc5
@@ -502,7 +502,11 @@ int nvgpu_nvs_buffer_alloc(struct nvgpu_nvs_domain_ctrl_fifo *sched_ctrl,
|
||||
}
|
||||
|
||||
g = sched_ctrl->g;
|
||||
system_vm = g->mm.pmu.vm;
|
||||
if (nvgpu_is_enabled(g, (u32)(NVGPU_SUPPORT_GSP_VM))) {
|
||||
system_vm = g->mm.gsp.vm;
|
||||
} else {
|
||||
system_vm = g->mm.pmu.vm;
|
||||
}
|
||||
|
||||
(void)memset(buf, 0, sizeof(*buf));
|
||||
buf->g = g;
|
||||
|
||||
Reference in New Issue
Block a user