mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: Hard code map_buffer_batch_limit
Add a hard coded #define for map_buffer_batch_limit and use that insted of querying from GPU characteristics. Also add an nvgpu_is_enabled() flag for disabling batch mapping, and set map_buffer_batch_limit to zero if batch mapping is disabled. JIRA NVGPU-388 Change-Id: Ic91feea638d0f47c5c22321886cfc75e97259dc3 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1593690 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
e728fbecba
commit
8e611fb654
@@ -34,6 +34,7 @@
|
||||
|
||||
#include "ioctl_ctrl.h"
|
||||
#include "ioctl_dbg.h"
|
||||
#include "ioctl_as.h"
|
||||
#ifdef CONFIG_TEGRA_19x_GPU
|
||||
#include "common/linux/ioctl_ctrl_t19x.h"
|
||||
#endif
|
||||
@@ -209,6 +210,8 @@ gk20a_ctrl_ioctl_gpu_characteristics(
|
||||
pgpu->impl = g->params.gpu_impl;
|
||||
pgpu->rev = g->params.gpu_rev;
|
||||
pgpu->reg_ops_limit = NVGPU_IOCTL_DBG_REG_OPS_LIMIT;
|
||||
pgpu->map_buffer_batch_limit = nvgpu_is_enabled(g, NVGPU_SUPPORT_MAP_BUFFER_BATCH) ?
|
||||
NVGPU_IOCTL_AS_MAP_BUFFER_BATCH_LIMIT : 0;
|
||||
pgpu->twod_class = g->ops.get_litter_value(g, GPU_LIT_TWOD_CLASS);
|
||||
pgpu->threed_class = g->ops.get_litter_value(g, GPU_LIT_THREED_CLASS);
|
||||
pgpu->compute_class = g->ops.get_litter_value(g, GPU_LIT_COMPUTE_CLASS);
|
||||
|
||||
Reference in New Issue
Block a user