Unverified Commit 4d5c98eb authored by Matt Atwood's avatar Matt Atwood Committed by Rodrigo Vivi
Browse files

drm/xe: rename XE_WA to XE_GT_WA



Now that there are two types of wa tables and infrastructure, be more
concise in the naming of GT wa macros.

v2: update the documentation

Signed-off-by: default avatarMatt Atwood <matthew.s.atwood@intel.com>
Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://lore.kernel.org/r/20250807214224.32728-1-matthew.s.atwood@intel.com


Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent 80944d33
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ struct intel_framebuffer *intel_fbdev_fb_alloc(struct drm_fb_helper *helper,
	size = PAGE_ALIGN(size);
	obj = ERR_PTR(-ENODEV);

	if (!IS_DGFX(xe) && !XE_WA(xe_root_mmio_gt(xe), 22019338487_display)) {
	if (!IS_DGFX(xe) && !XE_GT_WA(xe_root_mmio_gt(xe), 22019338487_display)) {
		obj = xe_bo_create_pin_map(xe, xe_device_get_root_tile(xe),
					   NULL, size,
					   ttm_bo_type_kernel, XE_BO_FLAG_SCANOUT |
+1 −1
Original line number Diff line number Diff line
@@ -14,5 +14,5 @@ bool intel_display_needs_wa_16023588340(struct intel_display *display)
{
	struct xe_device *xe = to_xe_device(display->drm);

	return XE_WA(xe_root_mmio_gt(xe), 16023588340);
	return XE_GT_WA(xe_root_mmio_gt(xe), 16023588340);
}
+1 −1
Original line number Diff line number Diff line
@@ -122,7 +122,7 @@ initial_plane_bo(struct xe_device *xe,
		phys_base = base;
		flags |= XE_BO_FLAG_STOLEN;

		if (XE_WA(xe_root_mmio_gt(xe), 22019338487_display))
		if (XE_GT_WA(xe_root_mmio_gt(xe), 22019338487_display))
			return NULL;

		/*
+3 −3
Original line number Diff line number Diff line
@@ -883,7 +883,7 @@ int xe_device_probe(struct xe_device *xe)
	}

	if (xe->tiles->media_gt &&
	    XE_WA(xe->tiles->media_gt, 15015404425_disable))
	    XE_GT_WA(xe->tiles->media_gt, 15015404425_disable))
		XE_DEVICE_WA_DISABLE(xe, 15015404425);

	err = xe_devcoredump_init(xe);
@@ -1043,7 +1043,7 @@ void xe_device_l2_flush(struct xe_device *xe)

	gt = xe_root_mmio_gt(xe);

	if (!XE_WA(gt, 16023588340))
	if (!XE_GT_WA(gt, 16023588340))
		return;

	fw_ref = xe_force_wake_get(gt_to_fw(gt), XE_FW_GT);
@@ -1087,7 +1087,7 @@ void xe_device_td_flush(struct xe_device *xe)
		return;

	root_gt = xe_root_mmio_gt(xe);
	if (XE_WA(root_gt, 16023588340)) {
	if (XE_GT_WA(root_gt, 16023588340)) {
		/* A transient flush is not sufficient: flush the L2 */
		xe_device_l2_flush(xe);
	} else {
+2 −2
Original line number Diff line number Diff line
@@ -649,7 +649,7 @@ static int xe_eu_stall_stream_enable(struct xe_eu_stall_data_stream *stream)
		return -ETIMEDOUT;
	}

	if (XE_WA(gt, 22016596838))
	if (XE_GT_WA(gt, 22016596838))
		xe_gt_mcr_multicast_write(gt, ROW_CHICKEN2,
					  _MASKED_BIT_ENABLE(DISABLE_DOP_GATING));

@@ -805,7 +805,7 @@ static int xe_eu_stall_disable_locked(struct xe_eu_stall_data_stream *stream)

	cancel_delayed_work_sync(&stream->buf_poll_work);

	if (XE_WA(gt, 22016596838))
	if (XE_GT_WA(gt, 22016596838))
		xe_gt_mcr_multicast_write(gt, ROW_CHICKEN2,
					  _MASKED_BIT_DISABLE(DISABLE_DOP_GATING));

Loading