mirror of
https://github.com/NVIDIA/open-gpu-kernel-modules.git
synced 2026-02-09 09:39:57 +00:00
515.48.07
This commit is contained in:
@@ -114,6 +114,7 @@ nv_linux_state_t *nv_linux_devices;
|
||||
* And one for the control device
|
||||
*/
|
||||
nv_linux_state_t nv_ctl_device = { { 0 } };
|
||||
extern NvU32 nv_dma_remap_peer_mmio;
|
||||
|
||||
nv_kthread_q_t nv_kthread_q;
|
||||
nv_kthread_q_t nv_deferred_close_kthread_q;
|
||||
@@ -571,6 +572,12 @@ nv_registry_keys_init(nv_stack_t *sp)
|
||||
WARN_ON(status != NV_OK);
|
||||
}
|
||||
}
|
||||
|
||||
status = rm_read_registry_dword(sp, nv, NV_DMA_REMAP_PEER_MMIO, &data);
|
||||
if (status == NV_OK)
|
||||
{
|
||||
nv_dma_remap_peer_mmio = data;
|
||||
}
|
||||
}
|
||||
|
||||
static void __init
|
||||
@@ -2660,7 +2667,6 @@ nvidia_ctl_open(
|
||||
nv_linux_state_t *nvl = &nv_ctl_device;
|
||||
nv_state_t *nv = NV_STATE_PTR(nvl);
|
||||
nv_linux_file_private_t *nvlfp = NV_GET_LINUX_FILE_PRIVATE(file);
|
||||
static int count = 0;
|
||||
|
||||
nv_printf(NV_DBG_INFO, "NVRM: nvidia_ctl_open\n");
|
||||
|
||||
@@ -2672,13 +2678,6 @@ nvidia_ctl_open(
|
||||
if (NV_ATOMIC_READ(nvl->usage_count) == 0)
|
||||
{
|
||||
nv->flags |= (NV_FLAG_OPEN | NV_FLAG_CONTROL);
|
||||
|
||||
if ((nv_acpi_init() < 0) &&
|
||||
(count++ < NV_MAX_RECURRING_WARNING_MESSAGES))
|
||||
{
|
||||
nv_printf(NV_DBG_ERRORS,
|
||||
"NVRM: failed to register with the ACPI subsystem!\n");
|
||||
}
|
||||
}
|
||||
|
||||
NV_ATOMIC_INC(nvl->usage_count);
|
||||
@@ -2702,7 +2701,6 @@ nvidia_ctl_close(
|
||||
nv_state_t *nv = NV_STATE_PTR(nvl);
|
||||
nv_linux_file_private_t *nvlfp = NV_GET_LINUX_FILE_PRIVATE(file);
|
||||
nvidia_stack_t *sp = nvlfp->sp;
|
||||
static int count = 0;
|
||||
unsigned int i;
|
||||
|
||||
nv_printf(NV_DBG_INFO, "NVRM: nvidia_ctl_close\n");
|
||||
@@ -2711,13 +2709,6 @@ nvidia_ctl_close(
|
||||
if (NV_ATOMIC_DEC_AND_TEST(nvl->usage_count))
|
||||
{
|
||||
nv->flags &= ~NV_FLAG_OPEN;
|
||||
|
||||
if ((nv_acpi_uninit() < 0) &&
|
||||
(count++ < NV_MAX_RECURRING_WARNING_MESSAGES))
|
||||
{
|
||||
nv_printf(NV_DBG_ERRORS,
|
||||
"NVRM: failed to unregister from the ACPI subsystem!\n");
|
||||
}
|
||||
}
|
||||
up(&nvl->ldata_lock);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user