mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: bvec for ramin unit.
1) added a BVEC test for g->ops.ramin.set_big_page_size 2) Currently, runlist unit tests are not enabled in Dev-Main. Left it as it is. Jira NVGPU-6905 Change-Id: I7aefce472743653624cc5a22d978632f77b5f404 Signed-off-by: Debarshi Dutta <ddutta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2548305 (cherry picked from commit c84b6c890a1711cd7c15ec974ea59041a0ace6d5) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2554022 Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
200777b854
commit
6d917822c8
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011-2019, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2011-2021, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -43,7 +43,12 @@ void gm20b_ramin_set_big_page_size(struct gk20a *g,
|
||||
if (size == SZ_64K) {
|
||||
val |= ram_in_big_page_size_64kb_f();
|
||||
} else {
|
||||
#ifndef CONFIG_NVGPU_HAL_NON_FUSA
|
||||
nvgpu_err(g, "only SZ_64K is allowed");
|
||||
return;
|
||||
#else
|
||||
val |= ram_in_big_page_size_128kb_f();
|
||||
#endif
|
||||
}
|
||||
|
||||
nvgpu_mem_wr32(g, mem, ram_in_big_page_size_w(), val);
|
||||
|
||||
Reference in New Issue
Block a user