Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9AEF5C04A6A for ; Thu, 10 Aug 2023 20:47:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0A26310E601; Thu, 10 Aug 2023 20:47:02 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by gabe.freedesktop.org (Postfix) with ESMTPS id C9C6410E606 for ; Thu, 10 Aug 2023 20:46:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691700419; x=1723236419; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=C6G4XZW1FywbE0XTevZ1rTazgHejr7a3yImwF+23hNE=; b=TQY/n2r3ph3tXjKXLpnwGvD0Y2mcikX7wd+Grmg3MRx9u48dDnZvm9/E UAz4U+ET10ChL+dd3xqvc8odC35GPeg81uY4DBKCyxLpYC8SYniBq1ISK wXCB1XRlumGr8GP1hZEXD2diNNL9OPX0KQU2p3xpWTsm3PwLEGlVSI8j9 D+fhrvL5i69v/ho5lm0p/1gono+a30QWGHoSLkfLB0eTtzv1yoUXnfZev X7dqut2TPSATmXHAm7FCZN13IXD3lO6kwggBDcxEuDm0+0V7FLSq0JvAs /UkzgX0esZcnV0kE1NW9AMXoj/LpLBzl6OUG5lDKxSjDuHZE4EWNRQc1f w==; X-IronPort-AV: E=McAfee;i="6600,9927,10798"; a="351840162" X-IronPort-AV: E=Sophos;i="6.01,163,1684825200"; d="scan'208";a="351840162" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2023 13:46:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10798"; a="682251937" X-IronPort-AV: E=Sophos;i="6.01,163,1684825200"; d="scan'208";a="682251937" Received: from dut-internal-9dd7.jf.intel.com ([10.165.21.194]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2023 13:46:57 -0700 From: Jonathan Cavitt To: intel-gfx@lists.freedesktop.org Date: Thu, 10 Aug 2023 13:36:20 -0700 Message-Id: <20230810203620.388827-2-jonathan.cavitt@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230810203620.388827-1-jonathan.cavitt@intel.com> References: <20230810203620.388827-1-jonathan.cavitt@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Intel-gfx] [PATCH 1/1] drm/i915/selftests: Align igt_spinner_create_request with hangcheck X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: andi.shyti@intel.com, michal.winiarski@intel.com, matthew.d.roper@intel.com, jonathan.cavitt@intel.com, saurabhg.gupta@intel.com, chris.p.wilson@linux.intel.com, nirmoy.das@intel.com Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Align igt_spinner_create_request with the hang_create_request implementation in selftest_hangcheck.c. Signed-off-by: Jonathan Cavitt --- drivers/gpu/drm/i915/selftests/igt_spinner.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/selftests/igt_spinner.c b/drivers/gpu/drm/i915/selftests/igt_spinner.c index 0f064930ef11..8c3e1f20e5a1 100644 --- a/drivers/gpu/drm/i915/selftests/igt_spinner.c +++ b/drivers/gpu/drm/i915/selftests/igt_spinner.c @@ -179,6 +179,9 @@ igt_spinner_create_request(struct igt_spinner *spin, *batch++ = arbitration_command; + memset32(batch, MI_NOOP, 128); + batch += 128; + if (GRAPHICS_VER(rq->i915) >= 8) *batch++ = MI_BATCH_BUFFER_START | BIT(8) | 1; else if (IS_HASWELL(rq->i915)) -- 2.25.1