Commit eeb8019d authored by Rodrigo Vivi's avatar Rodrigo Vivi
Browse files

drm/xe: Let's avoid i915_utils in the xe_force_wake.



We can run the bit operation locally without yet another macro.

Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: default avatarMatthew Brost <matthew.brost@intel.com>
parent b56d2082
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -10,11 +10,6 @@
#include "xe_mmio.h"
#include "gt/intel_gt_regs.h"

/*
 * FIXME: This header has been deemed evil and we need to kill it. Temporarily
 * including so we can use '__mask_next_bit'.
 */
#include "i915_utils.h"

#define XE_FORCE_WAKE_ACK_TIMEOUT_MS	50

@@ -145,9 +140,9 @@ static int domain_sleep_wait(struct xe_gt *gt,
}

#define for_each_fw_domain_masked(domain__, mask__, fw__, tmp__) \
	for (tmp__ = (mask__); tmp__ ;) \
	for (tmp__ = (mask__); tmp__; tmp__ &= ~BIT(ffs(tmp__) - 1)) \
		for_each_if((domain__ = ((fw__)->domains + \
					 __mask_next_bit(tmp__))) && \
					 (ffs(tmp__) - 1))) && \
					 domain__->reg_ctl)

int xe_force_wake_get(struct xe_force_wake *fw,