mirror of
https://github.com/NVIDIA/open-gpu-kernel-modules.git
synced 2026-01-27 03:29:47 +00:00
535.179
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: Copyright (c) 1993-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
* SPDX-FileCopyrightText: Copyright (c) 1993-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
|
||||
@@ -36,25 +36,25 @@
|
||||
// and then checked back in. You cannot make changes to these sections without
|
||||
// corresponding changes to the buildmeister script
|
||||
#ifndef NV_BUILD_BRANCH
|
||||
#define NV_BUILD_BRANCH r538_49
|
||||
#define NV_BUILD_BRANCH r535_00
|
||||
#endif
|
||||
#ifndef NV_PUBLIC_BRANCH
|
||||
#define NV_PUBLIC_BRANCH r538_49
|
||||
#define NV_PUBLIC_BRANCH r535_00
|
||||
#endif
|
||||
|
||||
#if defined(NV_LINUX) || defined(NV_BSD) || defined(NV_SUNOS)
|
||||
#define NV_BUILD_BRANCH_VERSION "rel/gpu_drv/r535/r538_49-495"
|
||||
#define NV_BUILD_CHANGELIST_NUM (34058561)
|
||||
#define NV_BUILD_BRANCH_VERSION "rel/gpu_drv/r535/r535_00-537"
|
||||
#define NV_BUILD_CHANGELIST_NUM (34218726)
|
||||
#define NV_BUILD_TYPE "Official"
|
||||
#define NV_BUILD_NAME "rel/gpu_drv/r535/r538_49-495"
|
||||
#define NV_LAST_OFFICIAL_CHANGELIST_NUM (34058561)
|
||||
#define NV_BUILD_NAME "rel/gpu_drv/r535/r535_00-537"
|
||||
#define NV_LAST_OFFICIAL_CHANGELIST_NUM (34218726)
|
||||
|
||||
#else /* Windows builds */
|
||||
#define NV_BUILD_BRANCH_VERSION "r538_49-2"
|
||||
#define NV_BUILD_CHANGELIST_NUM (34058561)
|
||||
#define NV_BUILD_BRANCH_VERSION "r535_00-549"
|
||||
#define NV_BUILD_CHANGELIST_NUM (34218726)
|
||||
#define NV_BUILD_TYPE "Official"
|
||||
#define NV_BUILD_NAME "538.52"
|
||||
#define NV_LAST_OFFICIAL_CHANGELIST_NUM (34058561)
|
||||
#define NV_BUILD_NAME "538.62"
|
||||
#define NV_LAST_OFFICIAL_CHANGELIST_NUM (34218726)
|
||||
#define NV_BUILD_BRANCH_BASE_VERSION R535
|
||||
#endif
|
||||
// End buildmeister python edited section
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#if defined(NV_LINUX) || defined(NV_BSD) || defined(NV_SUNOS) || defined(NV_VMWARE) || defined(NV_QNX) || defined(NV_INTEGRITY) || \
|
||||
(defined(RMCFG_FEATURE_PLATFORM_GSP) && RMCFG_FEATURE_PLATFORM_GSP == 1)
|
||||
|
||||
#define NV_VERSION_STRING "535.171.04"
|
||||
#define NV_VERSION_STRING "535.179"
|
||||
|
||||
#else
|
||||
|
||||
|
||||
@@ -824,6 +824,19 @@ typedef NV2080_CTRL_INTERNAL_MIGMGR_PROMOTE_GPU_INSTANCE_MEM_RANGE_PARAMS NV2080
|
||||
|
||||
#define NV2080_CTRL_CMD_INTERNAL_MIGMGR_PROMOTE_GPU_INSTANCE_MEM_RANGE (0x20800a43) /* finn: Evaluated from "(FINN_NV20_SUBDEVICE_0_INTERNAL_INTERFACE_ID << 8) | NV2080_CTRL_INTERNAL_MIGMGR_PROMOTE_GPU_INSTANCE_MEM_RANGE_PARAMS_MESSAGE_ID" */
|
||||
|
||||
|
||||
|
||||
#define NV2080_CTRL_INTERNAL_GR_INIT_BUG4208224_WAR_PARAMS_MESSAGE_ID (0x45U)
|
||||
|
||||
typedef struct NV2080_CTRL_INTERNAL_GR_INIT_BUG4208224_WAR_PARAMS {
|
||||
NvBool bTeardown;
|
||||
} NV2080_CTRL_INTERNAL_GR_INIT_BUG4208224_WAR_PARAMS;
|
||||
|
||||
#define NV2080_CTRL_CMD_INTERNAL_KGR_INIT_BUG4208224_WAR (0x20800a46) /* finn: Evaluated from "(FINN_NV20_SUBDEVICE_0_INTERNAL_INTERFACE_ID << 8) | NV2080_CTRL_INTERNAL_KGR_INIT_BUG4208224_WAR_PARAMS_MESSAGE_ID" */
|
||||
#define NV2080_CTRL_INTERNAL_KGR_INIT_BUG4208224_WAR_PARAMS_MESSAGE_ID (0x46U)
|
||||
|
||||
typedef NV2080_CTRL_INTERNAL_GR_INIT_BUG4208224_WAR_PARAMS NV2080_CTRL_INTERNAL_KGR_INIT_BUG4208224_WAR_PARAMS;
|
||||
|
||||
/**
|
||||
* Get GR PDB properties synchronized between Kernel and Physical
|
||||
*
|
||||
|
||||
@@ -2711,6 +2711,7 @@ typedef struct
|
||||
#define NV_VASPACE_ALLOCATION_FLAGS_SKIP_SCRUB_MEMPOOL BIT(10)
|
||||
#define NV_VASPACE_ALLOCATION_FLAGS_OPTIMIZE_PTETABLE_MEMPOOL_USAGE BIT(11)
|
||||
#define NV_VASPACE_ALLOCATION_FLAGS_REQUIRE_FIXED_OFFSET BIT(12)
|
||||
#define NV_VASPACE_ALLOCATION_FLAGS_PTETABLE_HEAP_MANAGED BIT(13)
|
||||
|
||||
#define NV_VASPACE_ALLOCATION_INDEX_GPU_NEW 0x00 //<! Create new VASpace, by default
|
||||
#define NV_VASPACE_ALLOCATION_INDEX_GPU_HOST 0x01 //<! Acquire reference to BAR1 VAS.
|
||||
|
||||
@@ -247,7 +247,8 @@ CSINFO chipsetInfo[] =
|
||||
{PCI_VENDOR_ID_MELLANOX, 0xA2D0, CS_MELLANOX_BLUEFIELD, "Mellanox BlueField", Mellanox_BlueField_setupFunc},
|
||||
{PCI_VENDOR_ID_MELLANOX, 0xA2D4, CS_MELLANOX_BLUEFIELD2, "Mellanox BlueField 2", NULL},
|
||||
{PCI_VENDOR_ID_MELLANOX, 0xA2D5, CS_MELLANOX_BLUEFIELD2, "Mellanox BlueField 2 Crypto disabled", NULL},
|
||||
{PCI_VENDOR_ID_MELLANOX, 0xA2DB, CS_MELLANOX_BLUEFIELD3, "Mellanox BlueField 3", Mellanox_BlueField3_setupFunc},
|
||||
{PCI_VENDOR_ID_MELLANOX, 0xA2DA, CS_MELLANOX_BLUEFIELD3, "Mellanox BlueField 3 Crypto enabled", Mellanox_BlueField3_setupFunc},
|
||||
{PCI_VENDOR_ID_MELLANOX, 0xA2DB, CS_MELLANOX_BLUEFIELD3, "Mellanox BlueField 3 Crypto disabled", Mellanox_BlueField3_setupFunc},
|
||||
{PCI_VENDOR_ID_AMAZON, 0x0200, CS_AMAZON_GRAVITRON2, "Amazon Gravitron2", Amazon_Gravitron2_setupFunc},
|
||||
{PCI_VENDOR_ID_FUJITSU, 0x1952, CS_FUJITSU_A64FX, "Fujitsu A64FX", Fujitsu_A64FX_setupFunc},
|
||||
{PCI_VENDOR_ID_CADENCE, 0xDC01, CS_PHYTIUM_S2500, "Phytium S2500", NULL},
|
||||
|
||||
@@ -797,6 +797,7 @@ static const CHIPS_RELEASED sChipsReleased[] = {
|
||||
{ 0x1FF0, 0x1612, 0x17aa, "NVIDIA T1000 8GB" },
|
||||
{ 0x1FF2, 0x1613, 0x1028, "NVIDIA T400 4GB" },
|
||||
{ 0x1FF2, 0x1613, 0x103c, "NVIDIA T400 4GB" },
|
||||
{ 0x1FF2, 0x18ff, 0x103c, "NVIDIA T400E" },
|
||||
{ 0x1FF2, 0x8a80, 0x103c, "NVIDIA T400 4GB" },
|
||||
{ 0x1FF2, 0x1613, 0x10de, "NVIDIA T400 4GB" },
|
||||
{ 0x1FF2, 0x1613, 0x17aa, "NVIDIA T400 4GB" },
|
||||
|
||||
@@ -7,7 +7,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* SPDX-FileCopyrightText: Copyright (c) 2018-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
* SPDX-FileCopyrightText: Copyright (c) 2018-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
|
||||
@@ -1957,5 +1957,13 @@
|
||||
#define NV_REG_RM_GSP_WPR_END_MARGIN_APPLY_ON_RETRY 0x00000000
|
||||
#define NV_REG_RM_GSP_WPR_END_MARGIN_APPLY_ALWAYS 0x00000001
|
||||
|
||||
//
|
||||
// Type: Dword
|
||||
// This regkey overrides the state of the GR scrubber channel and determines
|
||||
// whether it should be created or not.
|
||||
//
|
||||
#define NV_REG_STR_RM_FORCE_GR_SCRUBBER_CHANNEL "RmForceGrScrubberChannel"
|
||||
#define NV_REG_STR_RM_FORCE_GR_SCRUBBER_CHANNEL_DISABLE 0x00000000
|
||||
#define NV_REG_STR_RM_FORCE_GR_SCRUBBER_CHANNEL_ENABLE 0x00000001
|
||||
#endif // NVRM_REGISTRY_H
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: Copyright (c) 1993-2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
* SPDX-FileCopyrightText: Copyright (c) 1993-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
|
||||
@@ -822,7 +822,9 @@ kchannelConstruct_IMPL
|
||||
cleanup);
|
||||
|
||||
// Set up pNotifyActions
|
||||
_kchannelSetupNotifyActions(pKernelChannel, pResourceRef->externalClassId);
|
||||
NV_ASSERT_OK_OR_GOTO(status,
|
||||
_kchannelSetupNotifyActions(pKernelChannel, pResourceRef->externalClassId),
|
||||
cleanup);
|
||||
bNotifyActionsSetup = NV_TRUE;
|
||||
|
||||
// Initialize the userd length
|
||||
@@ -4494,7 +4496,7 @@ kchannelCtrlRotateSecureChannelIv_PHYSICAL
|
||||
)
|
||||
{
|
||||
NV_STATUS status;
|
||||
|
||||
|
||||
NV_PRINTF(LEVEL_INFO, "Rotating IV in GSP-RM.\n");
|
||||
|
||||
// CPU-side encrypt IV corresponds to GPU-side decrypt IV.
|
||||
|
||||
@@ -23,11 +23,37 @@
|
||||
|
||||
#define NVOC_KERNEL_GRAPHICS_H_PRIVATE_ACCESS_ALLOWED
|
||||
|
||||
#include "kernel/gpu/gr/kernel_graphics.h"
|
||||
#include "gpu_mgr/gpu_mgr.h"
|
||||
#include "kernel/gpu/mem_mgr/mem_mgr.h"
|
||||
#include "kernel/gpu/gr/kernel_graphics_manager.h"
|
||||
#include "kernel/gpu/gr/kernel_graphics.h"
|
||||
#include "kernel/gpu/device/device.h"
|
||||
#include "kernel/gpu/subdevice/subdevice.h"
|
||||
#include "kernel/rmapi/rmapi_utils.h"
|
||||
#include "kernel/core/locks.h"
|
||||
#include "kernel/gpu/mem_sys/kern_mem_sys.h"
|
||||
#include "kernel/mem_mgr/gpu_vaspace.h"
|
||||
#include "kernel/gpu/mem_mgr/mem_mgr.h"
|
||||
#include "virtualization/hypervisor/hypervisor.h"
|
||||
#include "kernel/gpu/mem_mgr/heap.h"
|
||||
#include "gpu/mem_mgr/virt_mem_allocator.h"
|
||||
#include "gpu/mmu/kern_gmmu.h"
|
||||
#include "platform/sli/sli.h"
|
||||
#include "rmapi/rs_utils.h"
|
||||
#include "rmapi/client.h"
|
||||
#include "nvrm_registry.h"
|
||||
#include "gpu/mem_mgr/heap.h"
|
||||
|
||||
#include "ctrl/ctrl0080/ctrl0080fifo.h"
|
||||
|
||||
#include "class/cla06f.h"
|
||||
#include "class/cl90f1.h" // FERMI_VASPACE_A
|
||||
#include "class/cl003e.h" // NV01_MEMORY_SYSTEM
|
||||
#include "class/cl50a0.h" // NV50_MEMORY_VIRTUAL
|
||||
#include "class/cl0040.h" // NV01_MEMORY_LOCAL_USER
|
||||
#include "class/clc36f.h" // VOLTA_CHANNEL_GPFIFO_A
|
||||
#include "class/clc46f.h" // TURING_CHANNEL_GPFIFO_A
|
||||
|
||||
/*!
|
||||
* @brief Allocate common local/global buffers that are required by the graphics context
|
||||
*
|
||||
|
||||
@@ -95,6 +95,12 @@ static NV_STATUS _kgraphicsMapGlobalCtxBuffer(OBJGPU *pGpu, KernelGraphics *pKer
|
||||
KernelGraphicsContext *, GR_GLOBALCTX_BUFFER, NvBool bIsReadOnly);
|
||||
static NV_STATUS _kgraphicsPostSchedulingEnableHandler(OBJGPU *, void *);
|
||||
|
||||
static void
|
||||
_kgraphicsInitRegistryOverrides(OBJGPU *pGpu, KernelGraphics *pKernelGraphics)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
NV_STATUS
|
||||
kgraphicsConstructEngine_IMPL
|
||||
(
|
||||
@@ -213,6 +219,7 @@ kgraphicsConstructEngine_IMPL
|
||||
|
||||
NV_ASSERT_OK_OR_RETURN(fecsCtxswLoggingInit(pGpu, pKernelGraphics, &pKernelGraphics->pFecsTraceInfo));
|
||||
|
||||
_kgraphicsInitRegistryOverrides(pGpu, pKernelGraphics);
|
||||
return NV_OK;
|
||||
}
|
||||
|
||||
@@ -349,6 +356,7 @@ kgraphicsStatePreUnload_IMPL
|
||||
NvU32 flags
|
||||
)
|
||||
{
|
||||
|
||||
fecsBufferUnmap(pGpu, pKernelGraphics);
|
||||
|
||||
// Release global buffers used as part of the gr context, when not in S/R
|
||||
|
||||
@@ -326,7 +326,8 @@ vaspaceapiConstruct_IMPL
|
||||
memmgrIsPmaInitialized(pMemoryManager) &&
|
||||
memmgrAreClientPageTablesPmaManaged(pMemoryManager) &&
|
||||
!(allocFlags & NV_VASPACE_ALLOCATION_FLAGS_IS_EXTERNALLY_OWNED) &&
|
||||
!(allocFlags & NV_VASPACE_ALLOCATION_FLAGS_IS_FLA))
|
||||
!(allocFlags & NV_VASPACE_ALLOCATION_FLAGS_IS_FLA) &&
|
||||
!(allocFlags & NV_VASPACE_ALLOCATION_FLAGS_PTETABLE_HEAP_MANAGED))
|
||||
{
|
||||
flags |= VASPACE_FLAGS_PTETABLE_PMA_MANAGED;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: Copyright (c) 2013-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
* SPDX-FileCopyrightText: Copyright (c) 2013-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
@@ -9585,8 +9585,7 @@ void nvGpuOpsPagingChannelsUnmap(struct gpuAddressSpace *srcVaSpace,
|
||||
return;
|
||||
}
|
||||
|
||||
status = _nvGpuOpsLocksAcquire(RMAPI_LOCK_FLAGS_NONE, hClient, NULL, 2,
|
||||
device->deviceInstance, srcVaSpace->device->deviceInstance, &acquiredLocks);
|
||||
status = _nvGpuOpsLocksAcquireAll(RMAPI_LOCK_FLAGS_NONE, hClient, NULL, &acquiredLocks);
|
||||
if (status != NV_OK)
|
||||
{
|
||||
NV_PRINTF(LEVEL_ERROR,
|
||||
|
||||
Reference in New Issue
Block a user