mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
![Rodrigo Vivi](/assets/img/avatar_default.png)
UAPI Changes: - Weak parallel submission support for execlists Minimal implementation of the parallel submission support for execlists backend that was previously only implemented for GuC. Support one sibling non-virtual engine. Core Changes: - Two backmerges of drm/drm-next for header file renames/changes and i915_regs reorganization Driver Changes: - Add new DG2 subplatform: DG2-G12 (Matt R) - Add new DG2 workarounds (Matt R, Ram, Bruce) - Handle pre-programmed WOPCM registers for DG2+ (Daniele) - Update guc shim control programming on XeHP SDV+ (Daniele) - Add RPL-S C0/D0 stepping information (Anusha) - Improve GuC ADS initialization to work on ARM64 on dGFX (Lucas) - Fix KMD and GuC race on accessing PMU busyness (Umesh) - Use PM timestamp instead of RING TIMESTAMP for reference in PMU with GuC (Umesh) - Report error on invalid reset notification from GuC (John) - Avoid WARN splat by holding RPM wakelock during PXP unbind (Juston) - Fixes to parallel submission implementation (Matt B.) - Improve GuC loading status check/error reports (John) - Tweak TTM LRU priority hint selection (Matt A.) - Align the plane_vma to min_page_size of stolen mem (Ram) - Introduce vma resources and implement async unbinding (Thomas) - Use struct vma_resource instead of struct vma_snapshot (Thomas) - Return some TTM accel move errors instead of trying memcpy move (Thomas) - Fix a race between vma / object destruction and unbinding (Thomas) - Remove short-term pins from execbuf (Maarten) - Update to GuC version 69.0.3 (John, Michal Wa.) - Improvements to GT reset paths in GuC backend (Matt B.) - Use shrinker_release_pages instead of writeback in shmem object hooks (Matt A., Tvrtko) - Use trylock instead of blocking lock when freeing GEM objects (Maarten) - Allocate intel_engine_coredump_alloc with ALLOW_FAIL (Matt B.) - Fixes to object unmapping and purging (Matt A) - Check for wedged device in GuC backend (John) - Avoid lockdep splat by locking dpt_obj around set_cache_level (Maarten) - Allow dead vm to unbind vma's without lock (Maarten) - s/engine->i915/i915/ for DG2 engine workarounds (Matt R) - Use to_gt() helper for GGTT accesses (Michal Wi.) - Selftest improvements (Matt B., Thomas, Ram) - Coding style and compiler warning fixes (Matt B., Jasmine, Andi, Colin, Gustavo, Dan) From: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/Yg4i2aCZvvee5Eai@jlahtine-mobl.ger.corp.intel.com Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> [Fixed conflicts while applying, using the fixups/drm-intel-gt-next.patch from drm-rerere's 1f2b1742abdd ("2022y-02m-23d-16h-07m-57s UTC: drm-tip rerere cache update")]
125 lines
2.8 KiB
C
125 lines
2.8 KiB
C
/*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
* Copyright © 2021 Intel Corporation
|
|
*/
|
|
|
|
#include <drm/drm_drv.h>
|
|
|
|
#include "gem/i915_gem_context.h"
|
|
#include "gem/i915_gem_object.h"
|
|
#include "i915_active.h"
|
|
#include "i915_driver.h"
|
|
#include "i915_params.h"
|
|
#include "i915_pci.h"
|
|
#include "i915_perf.h"
|
|
#include "i915_request.h"
|
|
#include "i915_scheduler.h"
|
|
#include "i915_selftest.h"
|
|
#include "i915_vma.h"
|
|
#include "i915_vma_resource.h"
|
|
|
|
static int i915_check_nomodeset(void)
|
|
{
|
|
bool use_kms = true;
|
|
|
|
/*
|
|
* Enable KMS by default, unless explicitly overriden by
|
|
* either the i915.modeset parameter or by the
|
|
* nomodeset boot option.
|
|
*/
|
|
|
|
if (i915_modparams.modeset == 0)
|
|
use_kms = false;
|
|
|
|
if (drm_firmware_drivers_only() && i915_modparams.modeset == -1)
|
|
use_kms = false;
|
|
|
|
if (!use_kms) {
|
|
/* Silently fail loading to not upset userspace. */
|
|
DRM_DEBUG_DRIVER("KMS disabled.\n");
|
|
return 1;
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|
|
static const struct {
|
|
int (*init)(void);
|
|
void (*exit)(void);
|
|
} init_funcs[] = {
|
|
{ .init = i915_check_nomodeset },
|
|
{ .init = i915_active_module_init,
|
|
.exit = i915_active_module_exit },
|
|
{ .init = i915_context_module_init,
|
|
.exit = i915_context_module_exit },
|
|
{ .init = i915_gem_context_module_init,
|
|
.exit = i915_gem_context_module_exit },
|
|
{ .init = i915_objects_module_init,
|
|
.exit = i915_objects_module_exit },
|
|
{ .init = i915_request_module_init,
|
|
.exit = i915_request_module_exit },
|
|
{ .init = i915_scheduler_module_init,
|
|
.exit = i915_scheduler_module_exit },
|
|
{ .init = i915_vma_module_init,
|
|
.exit = i915_vma_module_exit },
|
|
{ .init = i915_vma_resource_module_init,
|
|
.exit = i915_vma_resource_module_exit },
|
|
{ .init = i915_mock_selftests },
|
|
{ .init = i915_pmu_init,
|
|
.exit = i915_pmu_exit },
|
|
{ .init = i915_pci_register_driver,
|
|
.exit = i915_pci_unregister_driver },
|
|
{ .init = i915_perf_sysctl_register,
|
|
.exit = i915_perf_sysctl_unregister },
|
|
};
|
|
static int init_progress;
|
|
|
|
static int __init i915_init(void)
|
|
{
|
|
int err, i;
|
|
|
|
for (i = 0; i < ARRAY_SIZE(init_funcs); i++) {
|
|
err = init_funcs[i].init();
|
|
if (err < 0) {
|
|
while (i--) {
|
|
if (init_funcs[i].exit)
|
|
init_funcs[i].exit();
|
|
}
|
|
return err;
|
|
} else if (err > 0) {
|
|
/*
|
|
* Early-exit success is reserved for things which
|
|
* don't have an exit() function because we have no
|
|
* idea how far they got or how to partially tear
|
|
* them down.
|
|
*/
|
|
WARN_ON(init_funcs[i].exit);
|
|
break;
|
|
}
|
|
}
|
|
|
|
init_progress = i;
|
|
|
|
return 0;
|
|
}
|
|
|
|
static void __exit i915_exit(void)
|
|
{
|
|
int i;
|
|
|
|
for (i = init_progress - 1; i >= 0; i--) {
|
|
GEM_BUG_ON(i >= ARRAY_SIZE(init_funcs));
|
|
if (init_funcs[i].exit)
|
|
init_funcs[i].exit();
|
|
}
|
|
}
|
|
|
|
module_init(i915_init);
|
|
module_exit(i915_exit);
|
|
|
|
MODULE_AUTHOR("Tungsten Graphics, Inc.");
|
|
MODULE_AUTHOR("Intel Corporation");
|
|
|
|
MODULE_DESCRIPTION(DRIVER_DESC);
|
|
MODULE_LICENSE("GPL and additional rights");
|