From patchwork Fri Dec 29 10:27:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Shyti X-Patchwork-Id: 13506438 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 279B8C46CD4 for ; Fri, 29 Dec 2023 11:11:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5577510E28E; Fri, 29 Dec 2023 11:11:11 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by gabe.freedesktop.org (Postfix) with ESMTPS id EA3C710E28E; Fri, 29 Dec 2023 11:11:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703848270; x=1735384270; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Uu234CAaECbHgWP+k1RYVl0ZXipe5oU9nmz0akr/2QA=; b=Tb0UeD2GYRnZd/kSiRuDUanyn8r3ub1AxpFkImDI5aVohLrtuCgEkCXJ uMPtDgV2oremZu5PiSfs08Vdn7cUFp6Xpsp15kzkXyD2GYSqPmnoFKCrs i/rQ/cmX30r9lt7In1H1i7FkUzBaeU2vheaW09ORcXcYAklV+bLRN7SdN ML7a/uEMP72Dm9Q8bFuS2CNIlgjhqXZOHafvMXLS6WF7ITp/4txT4htti 16/k6k0aTPiyh+S44WaMRgNQdSNTvuoKrav1embVBSsFB8nFiONYWFhZd mOBGoBHOS0WyjVOv0j5A+Jwab3SP1FC2h/W7LFdNyaFUXh6HTu3dxFBIE Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10937"; a="10027350" X-IronPort-AV: E=Sophos;i="6.04,314,1695711600"; d="scan'208";a="10027350" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Dec 2023 02:30:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10937"; a="813017170" X-IronPort-AV: E=Sophos;i="6.04,314,1695711600"; d="scan'208";a="813017170" Received: from jquigley-mobl.ger.corp.intel.com (HELO intel.com) ([10.252.51.13]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Dec 2023 02:30:46 -0800 From: Andi Shyti To: intel-gfx , dri-devel Subject: [PATCH v4 4/4] drm/i915/guc: Use the ce_to_guc() wrapper whenever possible Date: Fri, 29 Dec 2023 11:27:34 +0100 Message-ID: <20231229102734.674362-5-andi.shyti@linux.intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231229102734.674362-1-andi.shyti@linux.intel.com> References: <20231229102734.674362-1-andi.shyti@linux.intel.com> MIME-Version: 1.0 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: Nirmoy Das Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Get the guc reference from the ce using the ce_to_guc() helper. Just a leftover from previous cleanups. Signed-off-by: Andi Shyti Reviewed-by: Nirmoy Das --- drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 17629e26e899..7d73e056cd76 100644 --- a/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +++ b/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c @@ -3513,7 +3513,7 @@ static inline void sub_context_inflight_prio(struct intel_context *ce, static inline void update_context_prio(struct intel_context *ce) { - struct intel_guc *guc = &ce->engine->gt->uc.guc; + struct intel_guc *guc = ce_to_guc(ce); int i; BUILD_BUG_ON(GUC_CLIENT_PRIORITY_KMD_HIGH != 0);