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=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,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 4F6B0C352A3 for ; Thu, 13 Feb 2020 23:44: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 28BEB222C2 for ; Thu, 13 Feb 2020 23:44:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 28BEB222C2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=Intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CD8616E42C; Thu, 13 Feb 2020 23:44:03 +0000 (UTC) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3C4B76E42C for ; Thu, 13 Feb 2020 23:44:02 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Feb 2020 15:44:01 -0800 X-IronPort-AV: E=Sophos;i="5.70,438,1574150400"; d="scan'208";a="227415910" Received: from johnharr-mobl3.ger.corp.intel.com (HELO [10.254.179.240]) ([10.254.179.240]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 13 Feb 2020 15:44:01 -0800 To: intel-gfx@lists.freedesktop.org, Daniele Ceraolo Spurio References: <20200212003124.33844-1-daniele.ceraolospurio@intel.com> <20200212003124.33844-10-daniele.ceraolospurio@intel.com> From: John Harrison Message-ID: <856d97da-3f5c-f276-8ac0-3d84ee3f6d5c@Intel.com> Date: Thu, 13 Feb 2020 15:44:00 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: <20200212003124.33844-10-daniele.ceraolospurio@intel.com> Content-Language: en-US Subject: Re: [Intel-gfx] [PATCH v3 09/10] drm/i915/uc: consolidate firmware cleanup 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: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On 2/11/2020 16:31, Daniele Ceraolo Spurio wrote: > We are quite trigger happy in cleaning up the firmware blobs, as we do > so from several error/fini paths in GuC/HuC/uC code. We do have the > __uc_cleanup_firmwares cleanup function, which unwinds > __uc_fetch_firmwares and is already called both from the error path of > gem_init and from gem_driver_release, so let's stop cleaning up from > all the other paths. > > The fact that we're not cleaning the firmware immediately means that > we can't consider firmware availability as an indication of > initialization success. A "READY_TO_LOAD" status has been added to Is it not worth updating the commit message to use the name that is actually in the code now? Otherwise: Reviewed-by: John Harrison > indicate that the initialization was successful, to be used to > selectively load HuC only if HuC init has completed (HuC init failure > is not considered a fatal error). > > v2: s/ready_to_load/loadable (Michal), only run guc/huc_fini if the > fw is in loadable state > > Signed-off-by: Daniele Ceraolo Spurio > Cc: Chris Wilson > Cc: Michal Wajdeczko > Reviewed-by: Michal Wajdeczko #v1 > --- > drivers/gpu/drm/i915/gt/uc/intel_guc.c | 12 +++++------- > drivers/gpu/drm/i915/gt/uc/intel_huc.c | 5 +++-- > drivers/gpu/drm/i915/gt/uc/intel_uc.c | 2 +- > drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c | 7 +++++-- > drivers/gpu/drm/i915/gt/uc/intel_uc_fw.h | 18 +++++++++++++++--- > 5 files changed, 29 insertions(+), 15 deletions(-) > _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx