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=-15.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,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 BDF82C07E95 for ; Wed, 7 Jul 2021 10:11:19 +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 59291619A5 for ; Wed, 7 Jul 2021 10:11:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 59291619A5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 53B1E6E87D; Wed, 7 Jul 2021 10:11:18 +0000 (UTC) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3ECA76E86E; Wed, 7 Jul 2021 10:11:17 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6200,9189,10037"; a="209233454" X-IronPort-AV: E=Sophos;i="5.83,331,1616482800"; d="scan'208";a="209233454" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jul 2021 03:11:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,331,1616482800"; d="scan'208";a="457428091" Received: from irvmail001.ir.intel.com ([10.43.11.63]) by orsmga008.jf.intel.com with ESMTP; 07 Jul 2021 03:11:11 -0700 Received: from [10.249.150.24] (mwajdecz-MOBL.ger.corp.intel.com [10.249.150.24]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id 167AB9Zx017365; Wed, 7 Jul 2021 11:11:10 +0100 Subject: Re: [Intel-gfx] [PATCH 47/47] drm/i915/guc: Unblock GuC submission on Gen11+ To: John Harrison , Martin Peres , Pekka Paalanen , Daniel Vetter References: <20210624070516.21893-1-matthew.brost@intel.com> <20210624070516.21893-48-matthew.brost@intel.com> <88cbe963-7188-f4ae-5acf-01a80bd2fe25@free.fr> <05e1d462-57ae-888a-888c-3ad486150821@intel.com> <20210701111410.3fc6551e@eldfell> <050296b9-8958-353a-9f76-699bfbafa1c1@free.fr> <20210702102944.3a8c4915@eldfell> <2d3b06c3-5f69-5045-191f-3fd705a3fb40@free.fr> <7889d935-65fb-5f11-ac5d-f9d757b9ee84@free.fr> From: Michal Wajdeczko Message-ID: <7a58c0e7-7b1f-415e-650f-1680e1abba6f@intel.com> Date: Wed, 7 Jul 2021 12:11:09 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: intel-gfx , dri-devel Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 07.07.2021 02:57, John Harrison wrote: > On 7/3/2021 01:21, Martin Peres wrote: >> On 02/07/2021 18:07, Michal Wajdeczko wrote: >>> On 02.07.2021 10:09, Martin Peres wrote: >>>> On 02/07/2021 10:29, Pekka Paalanen wrote: >>>>> On Thu, 1 Jul 2021 21:28:06 +0200 >>>>> Daniel Vetter wrote: >>>>> >>>>>> On Thu, Jul 1, 2021 at 8:27 PM Martin Peres >>>>>> wrote: >>>>>>> >>>>>>> On 01/07/2021 11:14, Pekka Paalanen wrote: >>>>>>>> On Wed, 30 Jun 2021 11:58:25 -0700 >>>>>>>> John Harrison wrote: >>>>>>>>> On 6/30/2021 01:22, Martin Peres wrote: >>>>>>>>>> On 24/06/2021 10:05, Matthew Brost wrote: >>>>>>>>>>> From: Daniele Ceraolo Spurio >>>>>>>>>>> >>>>>>>>>>> Unblock GuC submission on Gen11+ platforms. >>>>>>>>>>> >>>>>>>>>>> Signed-off-by: Michal Wajdeczko >>>>>>>>>>> Signed-off-by: Daniele Ceraolo Spurio >>>>>>>>>>> >>>>>>>>>>> Signed-off-by: Matthew Brost >>>>>>>>>>> --- >>>>>>>>>>> drivers/gpu/drm/i915/gt/uc/intel_guc.h |  1 + >>>>>>>>>>> drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c |  8 ++++++++ >>>>>>>>>>> drivers/gpu/drm/i915/gt/uc/intel_guc_submission.h |  3 +-- >>>>>>>>>>> drivers/gpu/drm/i915/gt/uc/intel_uc.c | 14 >>>>>>>>>>> +++++++++----- >>>>>>>>>>>      4 files changed, 19 insertions(+), 7 deletions(-) >>>>>>>> >>>>>>>> ... >>>>>>>>>>> diff --git a/drivers/gpu/drm/i915/gt/uc/intel_uc.c >>>>>>>>>>> b/drivers/gpu/drm/i915/gt/uc/intel_uc.c >>>>>>>>>>> index 7a69c3c027e9..61be0aa81492 100644 >>>>>>>>>>> --- a/drivers/gpu/drm/i915/gt/uc/intel_uc.c >>>>>>>>>>> +++ b/drivers/gpu/drm/i915/gt/uc/intel_uc.c >>>>>>>>>>> @@ -34,8 +34,15 @@ static void uc_expand_default_options(struct >>>>>>>>>>> intel_uc *uc) >>>>>>>>>>>              return; >>>>>>>>>>>          } >>>>>>>>>>>      -    /* Default: enable HuC authentication only */ >>>>>>>>>>> -    i915->params.enable_guc = ENABLE_GUC_LOAD_HUC; >>>>>>>>>>> +    /* Intermediate platforms are HuC authentication only */ >>>>>>>>>>> +    if (IS_DG1(i915) || IS_ALDERLAKE_S(i915)) { >>>>>>>>>>> +        drm_dbg(&i915->drm, "Disabling GuC only due to old >>>>>>>>>>> platform\n"); >>>>>>>>>> >>>>>>>>>> This comment does not seem accurate, given that DG1 is barely >>>>>>>>>> out, and >>>>>>>>>> ADL is not out yet. How about: >>>>>>>>>> >>>>>>>>>> "Disabling GuC on untested platforms"? >>>>>>>>> Just because something is not in the shops yet does not mean it is >>>>>>>>> new. >>>>>>>>> Technology is always obsolete by the time it goes on sale. >>>>>>>> >>>>>>>> That is a very good reason to not use terminology like "new", >>>>>>>> "old", >>>>>>>> "current", "modern" etc. at all. >>>>>>>> >>>>>>>> End users like me definitely do not share your interpretation of >>>>>>>> "old". >>>>>>> >>>>>>> Yep, old and new is relative. In the end, what matters is the >>>>>>> validation >>>>>>> effort, which is why I was proposing "untested platforms". >>>>>>> >>>>>>> Also, remember that you are not writing these messages for Intel >>>>>>> engineers, but instead are writing for Linux *users*. >>>>>> >>>>>> It's drm_dbg. Users don't read this stuff, at least not users with no >>>>>> clue what the driver does and stuff like that. >>>>> >>>>> If I had a problem, I would read it, and I have no clue what anything >>>>> of that is. >>>> >>>> Exactly. > I don't see how replacing 'old' for 'untested' helps anybody to > understand anything. Untested just implies we can't be bothered to test > stuff before publishing it. And as previously stated, this is purely a > political decision not a technical one. Sure, change the message to be > 'Disabling GuC submission but enabling HuC loading via GuC on platform > XXX' if that makes it clearer what is going on. Or just drop the message > completely. It's simply explaining what the default option is for the > current platform which you can also get by reading the code. However, I > disagree that 'untested' is the correct message. Quite a lot of testing > has been happening on TGL+ with GuC submission enabled. > >>>> >>>> This level of defense for what is clearly a bad *debug* message (at the >>>> very least, the grammar) makes no sense at all! >>>> >>>> I don't want to hear arguments like "Not my patch" from a developer >>>> literally sending the patch to the ML and who added his SoB to the >>>> patch, playing with words, or minimizing the problem of having such a >>>> message. >>> >>> Agree that 'not my patch' is never a good excuse, but equally we can't >>> blame original patch author as patch was updated few times since then. >> >> I never wanted to blame the author here, I was only speaking about the >> handling of feedback on the patch. >> >>> >>> Maybe to avoid confusions and simplify reviews, we could split this >>> patch into two smaller: first one that really unblocks GuC submission on >>> all Gen11+ (see __guc_submission_supported) and second one that updates >>> defaults for Gen12+ (see uc_expand_default_options), as original patch >>> (from ~2019) evolved more than what title/commit message says. >> >> Both work for me, as long as it is a collaborative effort. > I'm not seeing how splitting the patch up fixes the complaints about the > debug message. I assume it's not just about debug message (but still related) With separate patches you can explain in commit messages: patch1: why (from technical point of view) we unblock GuC submission only for Gen11+ (as pre-Gen11 are also using the same GuC firmware so one can assume GuC submission will work there too), patch2: why (from "political" point of view) we want to turn on GuC submission by default only on selected Gen12+ platforms (as one could wonder why we don't enable GuC submission for Gen11+ since it should work there too). Then it should be easy to find proper wording for any debug message we may want to add. > > And to be clear, no-one is actually arguing for a code change as such? > The issue is just about the text of the debug message? Or did I miss > something somewhere? Change is trivial is hard to complain, what is missing, IMHO, is good rationale why we are making GuC submission enabling so selective. Michal > > John. > > >> >> Cheers, >> Martin >> >>> >>> Then we can fix all messaging and make sure it's clear and understood. >>> >>> Thanks, >>> Michal >>> >>>> >>>> All of the above are just clear signals for the community to get off >>>> your playground, which is frankly unacceptable. Your email address does >>>> not matter. >>>> >>>> In the spirit of collaboration, your response should have been "Good >>>> catch, how about XXXX or YYYY?". This would not have wasted everyone's >>>> time in an attempt to just have it your way. >>>> >>>> My level of confidence in this GuC transition was already low, but you >>>> guys are working hard to shoot yourself in the foot. Trust should be >>>> earned! >>>> >>>> Martin >>>> >>>>> >>>>> >>>>> Thanks, >>>>> pq >>>>> >>>> _______________________________________________ >>>> Intel-gfx mailing list >>>> Intel-gfx@lists.freedesktop.org >>>> https://lists.freedesktop.org/mailman/listinfo/intel-gfx >> _______________________________________________ >> Intel-gfx mailing list >> Intel-gfx@lists.freedesktop.org >> https://lists.freedesktop.org/mailman/listinfo/intel-gfx >