ivpu_drv.c (cdfad4db7756563db7d458216d9e3c2651dddc7d) ivpu_drv.c (2c3801b17459da806f44d3f63f89e999f23e9e60)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2020-2024 Intel Corporation
4 */
5
6#include <linux/firmware.h>
7#include <linux/module.h>
8#include <linux/pci.h>

--- 46 unchanged lines hidden (view full) ---

55int ivpu_sched_mode;
56module_param_named(sched_mode, ivpu_sched_mode, int, 0444);
57MODULE_PARM_DESC(sched_mode, "Scheduler mode: 0 - Default scheduler, 1 - Force HW scheduler");
58
59bool ivpu_disable_mmu_cont_pages;
60module_param_named(disable_mmu_cont_pages, ivpu_disable_mmu_cont_pages, bool, 0644);
61MODULE_PARM_DESC(disable_mmu_cont_pages, "Disable MMU contiguous pages optimization");
62
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2020-2024 Intel Corporation
4 */
5
6#include <linux/firmware.h>
7#include <linux/module.h>
8#include <linux/pci.h>

--- 46 unchanged lines hidden (view full) ---

55int ivpu_sched_mode;
56module_param_named(sched_mode, ivpu_sched_mode, int, 0444);
57MODULE_PARM_DESC(sched_mode, "Scheduler mode: 0 - Default scheduler, 1 - Force HW scheduler");
58
59bool ivpu_disable_mmu_cont_pages;
60module_param_named(disable_mmu_cont_pages, ivpu_disable_mmu_cont_pages, bool, 0644);
61MODULE_PARM_DESC(disable_mmu_cont_pages, "Disable MMU contiguous pages optimization");
62
63bool ivpu_force_snoop;
64module_param_named(force_snoop, ivpu_force_snoop, bool, 0644);
65MODULE_PARM_DESC(force_snoop, "Force snooping for NPU host memory access");
66
63struct ivpu_file_priv *ivpu_file_priv_get(struct ivpu_file_priv *file_priv)
64{
65 struct ivpu_device *vdev = file_priv->vdev;
66
67 kref_get(&file_priv->ref);
68
69 ivpu_dbg(vdev, KREF, "file_priv get: ctx %u refcount %u\n",
70 file_priv->ctx.id, kref_read(&file_priv->ref));

--- 669 unchanged lines hidden ---
67struct ivpu_file_priv *ivpu_file_priv_get(struct ivpu_file_priv *file_priv)
68{
69 struct ivpu_device *vdev = file_priv->vdev;
70
71 kref_get(&file_priv->ref);
72
73 ivpu_dbg(vdev, KREF, "file_priv get: ctx %u refcount %u\n",
74 file_priv->ctx.id, kref_read(&file_priv->ref));

--- 669 unchanged lines hidden ---