mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: add check for is_fmodel
is_fmodel flag will be set in gk20a_probe(). Updated code for is_fmodel check, instead of check for supported simulated platforms. Bug 1735760 Change-Id: I7cbac2196130fe5ce4c1a910504879e6948c13da Signed-off-by: Seema Khowala <seemaj@nvidia.com> Reviewed-on: http://git-master/r/1177869 Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Tested-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: Adeel Raza <araza@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User
This commit is contained in:
committed by
Seshendra Gadagottu
parent
9ca4c6b596
commit
d64e201514
@@ -177,11 +177,12 @@ int gm20b_init_hal(struct gk20a *g)
|
||||
{
|
||||
struct gpu_ops *gops = &g->ops;
|
||||
struct nvgpu_gpu_characteristics *c = &g->gpu_characteristics;
|
||||
struct gk20a_platform *platform = dev_get_drvdata(g->dev);
|
||||
|
||||
*gops = gm20b_ops;
|
||||
gops->securegpccs = false;
|
||||
#ifdef CONFIG_TEGRA_ACR
|
||||
if (tegra_platform_is_linsim()) {
|
||||
if (platform->is_fmodel) {
|
||||
gops->privsecurity = 1;
|
||||
} else {
|
||||
if (tegra_fuse_readl(FUSE_OPT_PRIV_SEC_DIS_0) &
|
||||
@@ -193,7 +194,7 @@ int gm20b_init_hal(struct gk20a *g)
|
||||
}
|
||||
}
|
||||
#else
|
||||
if (tegra_platform_is_linsim()) {
|
||||
if (platform->is_fmodel) {
|
||||
gk20a_dbg_info("running ASIM with PRIV security disabled");
|
||||
gops->privsecurity = 0;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user