mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: Device nodes creation as default
This is creating GPU nodes by default. If MIG enabled after probe then delete and recreate the device nodes. Bug 5084299 Change-Id: I9ce33e148ec13f29735db9d778f666dc02b64e66 Signed-off-by: Dinesh T <dt@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/3442428 (cherry picked from commit 5c59e4d3d5a7df6f49668995b62d7f67f57f0cc6) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/3456076 Reviewed-by: Brad Griffis <bgriffis@nvidia.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
76db00b237
commit
a4145c7b6e
@@ -1,5 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
// SPDX-FileCopyrightText: Copyright (c) 2011-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
// SPDX-FileCopyrightText: Copyright (c) 2011-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
|
||||
/*
|
||||
* GK20A Graphics
|
||||
@@ -495,7 +495,9 @@ int gk20a_pm_finalize_poweron(struct device *dev)
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (!l->dev_nodes_created) {
|
||||
if ((!l->dev_nodes_created) ||
|
||||
(nvgpu_grmgr_is_multi_gr_enabled(g))) {
|
||||
gk20a_user_nodes_deinit(dev);
|
||||
err = gk20a_user_nodes_init(dev);
|
||||
if (err) {
|
||||
goto done;
|
||||
|
||||
Reference in New Issue
Block a user