mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
drm/i915/display: add intel_display_vtd_active()
Add intel_display_vtd_active() to utils. It's intentional duplication with i915_utils.h i915_vtd_active(), but reduces duplication with xe. Win some, lose some. Reviewed-by: Luca Coelho <luciano.coelho@intel.com> Link: https://patch.msgid.link/e022166af7c67f43904e2d0fc87bc5c13e0f1204.1761146196.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
@@ -77,6 +77,7 @@
|
||||
#include "intel_display_regs.h"
|
||||
#include "intel_display_rpm.h"
|
||||
#include "intel_display_types.h"
|
||||
#include "intel_display_utils.h"
|
||||
#include "intel_display_wa.h"
|
||||
#include "intel_dmc.h"
|
||||
#include "intel_dp.h"
|
||||
@@ -831,9 +832,8 @@ static void intel_async_flip_vtd_wa(struct intel_display *display,
|
||||
static bool needs_async_flip_vtd_wa(const struct intel_crtc_state *crtc_state)
|
||||
{
|
||||
struct intel_display *display = to_intel_display(crtc_state);
|
||||
struct drm_i915_private *i915 = to_i915(crtc_state->uapi.crtc->dev);
|
||||
|
||||
return crtc_state->uapi.async_flip && i915_vtd_active(i915) &&
|
||||
return crtc_state->uapi.async_flip && intel_display_vtd_active(display) &&
|
||||
(DISPLAY_VER(display) == 9 || display->platform.broadwell ||
|
||||
display->platform.haswell);
|
||||
}
|
||||
@@ -8356,7 +8356,5 @@ void i830_disable_pipe(struct intel_display *display, enum pipe pipe)
|
||||
|
||||
bool intel_scanout_needs_vtd_wa(struct intel_display *display)
|
||||
{
|
||||
struct drm_i915_private *i915 = to_i915(display->drm);
|
||||
|
||||
return IS_DISPLAY_VER(display, 6, 11) && i915_vtd_active(i915);
|
||||
return IS_DISPLAY_VER(display, 6, 11) && intel_display_vtd_active(display);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user