Linux Audio

Check our new training course

Loading...
Note: File does not exist in v6.2.
 1// SPDX-License-Identifier: MIT
 2/*
 3 * Copyright © 2023 Intel Corporation
 4 */
 5
 6#include "i915_drv.h"
 7
 8bool i915_vtd_active(struct drm_i915_private *i915)
 9{
10	if (device_iommu_mapped(i915->drm.dev))
11		return true;
12
13	/* Running as a guest, we assume the host is enforcing VT'd */
14	return i915_run_as_guest();
15}
16
17#if IS_ENABLED(CONFIG_DRM_I915_DEBUG)
18
19/* i915 specific, just put here for shutting it up */
20int __i915_inject_probe_error(struct drm_i915_private *i915, int err,
21			      const char *func, int line)
22{
23	return 0;
24}
25
26#endif