From patchwork Thu Sep 15 23:26:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Roper X-Patchwork-Id: 12977859 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 918BEC32771 for ; Thu, 15 Sep 2022 23:27:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B209510EC18; Thu, 15 Sep 2022 23:27:08 +0000 (UTC) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5E8C410EC10; Thu, 15 Sep 2022 23:27:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663284420; x=1694820420; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=azKNFrdb4/EHtrrnoscy4apA69ozS+tLfVexlPXPy0g=; b=LLVPtKvMcPthp54HCiiSMh6KqQ3BzBPadE35j4GD96e+hZ0+A4M817Nt Ay4o+hlVjls+OKy8UfsYBUhZvRFzwElw0ip9+1XnXmgD8fpXgei5NKmzm 16uiayqbdxO5MOO4UvBwVZ5Bg4dfmzSAxIZmY0MKs/qPN78oXmprkXMRn J7pqecvjB55Z3ubJV1YIzBbYTO7Fg1aIJw9YcuNoLsl5185bfn6leZg1r jY9uTd3fZ2vo58pmcSbWWG/wHO4Nt4ZG8PiIaOU5sH/2XFIVBsH+Vf6hY bOph3yFnIWosIcGhmxZp7uCokyQgEK35J/U6RWjwj4CTRf06/rUT8PWXR A==; X-IronPort-AV: E=McAfee;i="6500,9779,10471"; a="299689107" X-IronPort-AV: E=Sophos;i="5.93,319,1654585200"; d="scan'208";a="299689107" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2022 16:26:59 -0700 X-IronPort-AV: E=Sophos;i="5.93,319,1654585200"; d="scan'208";a="685923296" Received: from mdroper-desk1.fm.intel.com ([10.1.27.134]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2022 16:26:59 -0700 From: Matt Roper To: intel-gfx@lists.freedesktop.org Date: Thu, 15 Sep 2022 16:26:50 -0700 Message-Id: <20220915232654.3283095-1-matthew.d.roper@intel.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH v2 0/4] Further multi-gt handling 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" Now that MTL is going to start providing two GTs, there are a few more places in the driver that need to iterate over each GT instead of operating directly on gt0. Also some more deliberate cleanup is needed, in cases where we fail GT/engine initialization after the first GT has been fully setup. v2: - Drop unnecessary helper function. (Janusz) - Consolidate some adjacent GT loops (Daniele) Cc: Daniele Ceraolo Spurio Cc: Janusz Krzysztofik Chris Wilson (1): drm/i915/gt: Cleanup partial engine discovery failures Tvrtko Ursulin (3): drm/i915: Make GEM resume all engines drm/i915: Make GEM suspend all GTs drm/i915: Handle all GTs on driver (un)load paths drivers/gpu/drm/i915/gem/i915_gem_pm.c | 33 ++++++++++++++--- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 7 +++- drivers/gpu/drm/i915/i915_driver.c | 3 +- drivers/gpu/drm/i915/i915_gem.c | 43 ++++++++++++++++------- 4 files changed, 68 insertions(+), 18 deletions(-)