From patchwork Wed May 4 00:44:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniele Ceraolo Spurio X-Patchwork-Id: 12836604 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 C2A40C433F5 for ; Wed, 4 May 2022 00:45:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E9EA810ED9D; Wed, 4 May 2022 00:45:02 +0000 (UTC) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id A739010EBE7; Wed, 4 May 2022 00:45:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651625101; x=1683161101; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=UY26pVsClKAJkJh8ps139WrCxtF0RU2lG1d4/ydL+9w=; b=CwfdGz6QAFrqsXI/dCWv4jrHaTaHM+SaAunMUvwtyunxXVyM2GoZG1Vu 4C7jly0YqjwCPVLmilALgnfR8AjIZJMIeicje244L3V7LVbggVWJNP/ey 3FUSYT2zoiKzL5NnL+t83dtFB2Oe6hMS3ZBTyod1ywdLDg3txnOsWuNnX I6q4ggXXnZKaNSd8iHtaSJQVUVueCdo4GIzWq4JrnF6RmV8QdndnkafJL ZxxeI0k4mfKrzpJca1ohTa7GV3+w5QEgchWiy+UMDnadQXLJEnU8iKm+E VA6fI4cuax/l9yCQHjPREZ7oVXGZjYRRWd7Fi/p+k/N7eGlGRl+Vq13Pz A==; X-IronPort-AV: E=McAfee;i="6400,9594,10336"; a="267225499" X-IronPort-AV: E=Sophos;i="5.91,196,1647327600"; d="scan'208";a="267225499" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 May 2022 17:45:00 -0700 X-IronPort-AV: E=Sophos;i="5.91,196,1647327600"; d="scan'208";a="653495897" Received: from valcore-skull-1.fm.intel.com ([10.1.27.19]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 May 2022 17:45:00 -0700 From: Daniele Ceraolo Spurio To: intel-gfx@lists.freedesktop.org Date: Tue, 3 May 2022 17:44:46 -0700 Message-Id: <20220504004446.2000540-1-daniele.ceraolospurio@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH] drm/i915/guc: Support programming the EU priority in the GuC descriptor 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: dri-devel@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" From: Matthew Brost The EU priority register must be updated by the GuC rather than the driver as it is context specific and only the GuC knows which context is currently executing. Cc: John Harrison Cc: Matt Roper Signed-off-by: Matthew Brost Signed-off-by: Aravind Iddamsetty --- drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c b/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c index 75291e9846c50..8f3ed60ff07d9 100644 --- a/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +++ b/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c @@ -2420,6 +2420,8 @@ static void prepare_context_registration_info(struct intel_context *ce, */ info->hwlrca_lo = lower_32_bits(ce->lrc.lrca); info->hwlrca_hi = upper_32_bits(ce->lrc.lrca); + if (engine->flags & I915_ENGINE_HAS_EU_PRIORITY) + info->hwlrca_lo |= lrc_desc_priority(ce->guc_state.prio); info->flags = CONTEXT_REGISTRATION_FLAG_KMD; /*