From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 40775C433F5 for ; Thu, 9 Sep 2021 08:12:04 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 05AEB61139 for ; Thu, 9 Sep 2021 08:12:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 05AEB61139 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 67BFA6E488; Thu, 9 Sep 2021 08:12:00 +0000 (UTC) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1A85A6E488; Thu, 9 Sep 2021 08:11:59 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6200,9189,10101"; a="220400765" X-IronPort-AV: E=Sophos;i="5.85,279,1624345200"; d="scan'208";a="220400765" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Sep 2021 01:11:58 -0700 X-IronPort-AV: E=Sophos;i="5.85,279,1624345200"; d="scan'208";a="479541492" Received: from ccoakley-mobl1.ger.corp.intel.com (HELO [10.213.232.129]) ([10.213.232.129]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Sep 2021 01:11:56 -0700 To: Matt Roper Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Vinay Belgaumkar , Daniele Ceraolo Spurio , Aravind Iddamsetty References: <20210907171916.2548047-1-matthew.d.roper@intel.com> <20210907171916.2548047-3-matthew.d.roper@intel.com> <4ce6bdc9-82c6-e281-400d-ce658d6ba80b@linux.intel.com> <20210908202319.GQ461228@mdroper-desk1.amr.corp.intel.com> From: Tvrtko Ursulin Organization: Intel Corporation UK Plc Message-ID: <34b88e70-3f75-f3b0-63ae-05c49a7f3a9b@linux.intel.com> Date: Thu, 9 Sep 2021 09:11:54 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210908202319.GQ461228@mdroper-desk1.amr.corp.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Intel-gfx] [PATCH 2/8] drm/i915/xehp: CCS shares the render reset domain 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" On 08/09/2021 21:23, Matt Roper wrote: > On Wed, Sep 08, 2021 at 11:07:07AM +0100, Tvrtko Ursulin wrote: >> >> On 07/09/2021 18:19, Matt Roper wrote: >>> The reset domain is shared between render and all compute engines, >>> so resetting one will affect the others. >>> >>> Note: Before performing a reset on an RCS or CCS engine, the GuC will >>> attempt to preempt-to-idle the other non-hung RCS/CCS engines to avoid >>> impacting other clients (since some shared modules will be reset). If >>> other engines are executing non-preemptable workloads, the impact is >>> unavoidable and some work may be lost. >> >> Since here it talks about engine reset, should this patch add warning if >> same is attempted by i915 on a GuC platform - to document it is not > > Did you mean "on a *non* GuC platform" here? We aren't going to have > compute engine support on any platforms where GuC submission isn't the > default operating model, so the only way to get compute engines + > execlist submission is to force an override via module parameters (e.g., > enable_guc=0). Doing so will taint the kernel, so I think the current > consensus from offline discussion is that the user has already put > themselves into a configuration where it's easier than usual to shoot > themselves in the foot; it's not too much different than the kind of > trouble a user could get themselves into if they loaded the driver with > hangcheck disabled or something. Yes I meant non GuC. :) Okay..ish, although I think an explicit warn would still be better. Because it is one thing to taint and another to actively allow something which we know cannot work. Unless we could hide the CCS engine until GuC gets loaded, which would make i915.enable_guc=0 safe. Hm.. should be doable actually to skip intel_engine_add_user in the engine init phase and do the CCS ones after GuC has been loaded. Would that make sense? Regards, Tvrtko >> implemented/supported? Or perhaps later in the series, or future series >> works better. >> >> Reviewed-by: Tvrtko Ursulin >> >> Regards, >> >> Tvrtko >> >>> Bspec: 52549 >>> Original-patch-by: Michel Thierry >>> Cc: Tvrtko Ursulin >>> Cc: Vinay Belgaumkar >>> Signed-off-by: Daniele Ceraolo Spurio >>> Signed-off-by: Aravind Iddamsetty >>> Signed-off-by: Matt Roper >>> --- >>> drivers/gpu/drm/i915/gt/intel_reset.c | 4 ++++ >>> 1 file changed, 4 insertions(+) >>> >>> diff --git a/drivers/gpu/drm/i915/gt/intel_reset.c b/drivers/gpu/drm/i915/gt/intel_reset.c >>> index 91200c43951f..30598c1d070c 100644 >>> --- a/drivers/gpu/drm/i915/gt/intel_reset.c >>> +++ b/drivers/gpu/drm/i915/gt/intel_reset.c >>> @@ -507,6 +507,10 @@ static int gen11_reset_engines(struct intel_gt *gt, >>> [VECS1] = GEN11_GRDOM_VECS2, >>> [VECS2] = GEN11_GRDOM_VECS3, >>> [VECS3] = GEN11_GRDOM_VECS4, >>> + [CCS0] = GEN11_GRDOM_RENDER, >>> + [CCS1] = GEN11_GRDOM_RENDER, >>> + [CCS2] = GEN11_GRDOM_RENDER, >>> + [CCS3] = GEN11_GRDOM_RENDER, >>> }; >>> struct intel_engine_cs *engine; >>> intel_engine_mask_t tmp; >>> >