diff --git a/userspace/units/init/nvgpu-init.c b/userspace/units/init/nvgpu-init.c index 45772950a..10c413c28 100644 --- a/userspace/units/init/nvgpu-init.c +++ b/userspace/units/init/nvgpu-init.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2019-2020, 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"), @@ -415,6 +415,11 @@ int test_hal_init(struct unit_module *m, return UNIT_FAIL; } + if (strcmp(g->name, "gv11b") != 0) { + unit_err(m, "%s: initialized wrong HAL!\n", __func__); + return UNIT_FAIL; + } + /* Branch test for check if already inited the hal */ if (nvgpu_detect_chip(g) != 0) { unit_err(m, "%s: failed to init HAL\n", __func__);