From patchwork Sat Jan 22 00:08:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Brost X-Patchwork-Id: 12720367 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 E5FAFC433EF for ; Sat, 22 Jan 2022 00:14:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A521110E740; Sat, 22 Jan 2022 00:14:13 +0000 (UTC) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id C84ED10E73E; Sat, 22 Jan 2022 00:14:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642810452; x=1674346452; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Kp9dfhm2LPb2IwO6IDaylKBUidLVc98g1xu94P41MYo=; b=ZNtiTO6H1HzOh7utngdq1hkEBlhKNy7gldkP8yLNMxYFtxRbi+UC+3+x +1ydd61K2e1OcESKnZI0c/OVeglP8fiTxyy+SHSwRIFqBSv8vOn5E8HBj 76glxr36VBkwydMwFEGyOJqUPJL+l2Ufm7IGusRWRw0Cc5BRSOIlHKCgj UnWvDSzCGzcEb5iXigLAICAG5mFA24AnrgDPP1KIPI4mKDdequmywbmEp s+5gwxlIcTAsJpOVYkMbYttZa9AizAlm297HFKG8QdUL0NvI+nd2HkUnr IQLKwuUEdvFdyFoDyIglFxWqQkxtQHYVNEATkGDIZqMOyt4h5m6c7V9jF Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10234"; a="245715118" X-IronPort-AV: E=Sophos;i="5.88,306,1635231600"; d="scan'208";a="245715118" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jan 2022 16:14:11 -0800 X-IronPort-AV: E=Sophos;i="5.88,306,1635231600"; d="scan'208";a="476122557" Received: from jons-linux-dev-box.fm.intel.com ([10.1.27.20]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jan 2022 16:14:11 -0800 From: Matthew Brost To: , Date: Fri, 21 Jan 2022 16:08:22 -0800 Message-Id: <20220122000822.25616-1-matthew.brost@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH] drm/i915/selftests: Use less in contexts steal guc id test 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: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Using more guc_ids in the stealing guc id test has no real benefit. Tearing down lots of contexts all at the same time takes a bit of time due to the H2G / G2H ping-pong with the GuC. On some slower platforms this can cause timeous when flushing the test as the GT isn't idle when this ping-pong is happening. Reduce the number of guc ids to speed up the flushing of the test. Link: https://gitlab.freedesktop.org/drm/intel/-/issues/4821 Signed-off-by: Matthew Brost Reviewed-by: Matthew Auld --- drivers/gpu/drm/i915/gt/uc/selftest_guc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gt/uc/selftest_guc.c b/drivers/gpu/drm/i915/gt/uc/selftest_guc.c index d3327b802b761..a115894d5896e 100644 --- a/drivers/gpu/drm/i915/gt/uc/selftest_guc.c +++ b/drivers/gpu/drm/i915/gt/uc/selftest_guc.c @@ -157,7 +157,7 @@ static int intel_guc_steal_guc_ids(void *arg) wakeref = intel_runtime_pm_get(gt->uncore->rpm); engine = intel_selftest_find_any_engine(gt); sv = guc->submission_state.num_guc_ids; - guc->submission_state.num_guc_ids = 4096; + guc->submission_state.num_guc_ids = 512; /* Create spinner to block requests in below loop */ ce[context_index] = intel_context_create(engine);