From patchwork Wed Oct 19 07:12:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 13011417 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 BEA99C433FE for ; Wed, 19 Oct 2022 07:13:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B053610F16B; Wed, 19 Oct 2022 07:13:24 +0000 (UTC) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1D97B10F161 for ; Wed, 19 Oct 2022 07:13:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666163599; x=1697699599; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=6dBjrkXQKsFz22pQeeNiRPZzaAujB/+Yrx+JTxnNa7E=; b=d43MgwDs/b1/PXY30RKFvD769QSDIdmFn2m1O5Bcw5Nj/X8pwUmg9n7v grsQCVEM7qVR7UmnK/qAO7edIaa3KRBlQNiqkmVx7lXlaUxoQ01gElH1w ODNEbbkOpPL+5Tk0FA1kM6c+Ark7ygJxlrh/+W/YGgE6eVWiSFIevNyef Hn3zT/7m7CPHDv+2Wlz0gDaWKelGxwPwDDy0EmpdrxOenC+WjjnAfc5Qh bOg0xU1y4NG42swXOzo/eXORIxYTXlqPzUMyHBKoiaD2Zo8tQAN1eSmlH xkkB6jG1XrL62GTBKECrBaZcCZYAFnlDRIwN1erojkrJrZj6FUplwXRlA Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="368379878" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="368379878" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2022 00:13:18 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="623994878" X-IronPort-AV: E=Sophos;i="5.95,195,1661842800"; d="scan'208";a="623994878" Received: from lab-ah.igk.intel.com ([10.91.215.196]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2022 00:13:15 -0700 From: Andrzej Hajda To: intel-gfx@lists.freedesktop.org Date: Wed, 19 Oct 2022 09:12:52 +0200 Message-Id: <20221019071252.180682-1-andrzej.hajda@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Organization: Intel Technology Poland sp. z o.o. - ul. Slowackiego 173, 80-298 Gdansk - KRS 101882 - NIP 957-07-52-316 Subject: [Intel-gfx] [PATCH] drm/i915/selftests: add prefetch padding to store_dw batchbuffer 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: Lucas De Marchi , Matthew Auld , Andrzej Hajda , Rodrigo Vivi Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Instruction prefetch mechanism requires that 512 bytes after the last command should be readable by EU. Otherwise DMAR errors and engine hangs can happen. Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/5278 Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/i915/gem/selftests/igt_gem_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gem/selftests/igt_gem_utils.c b/drivers/gpu/drm/i915/gem/selftests/igt_gem_utils.c index 3c55e77b0f1b00..fe999a02f8e10a 100644 --- a/drivers/gpu/drm/i915/gem/selftests/igt_gem_utils.c +++ b/drivers/gpu/drm/i915/gem/selftests/igt_gem_utils.c @@ -50,7 +50,7 @@ igt_emit_store_dw(struct i915_vma *vma, u32 *cmd; int err; - size = (4 * count + 1) * sizeof(u32); + size = (4 * count + 1) * sizeof(u32) + 512; size = round_up(size, PAGE_SIZE); obj = i915_gem_object_create_internal(vma->vm->i915, size); if (IS_ERR(obj))