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=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 CC5B3C352A4 for ; Wed, 12 Feb 2020 21:47:24 +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 A875F206DB for ; Wed, 12 Feb 2020 21:47:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A875F206DB 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 608856E115; Wed, 12 Feb 2020 21:47:23 +0000 (UTC) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by gabe.freedesktop.org (Postfix) with ESMTPS id 61FA86E115 for ; Wed, 12 Feb 2020 21:47:22 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Feb 2020 13:47:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,434,1574150400"; d="scan'208";a="313532209" Received: from dceraolo-linux.fm.intel.com (HELO [10.1.27.145]) ([10.1.27.145]) by orsmga001.jf.intel.com with ESMTP; 12 Feb 2020 13:47:21 -0800 To: Andi Shyti References: <20200212003124.33844-1-daniele.ceraolospurio@intel.com> <20200212003124.33844-9-daniele.ceraolospurio@intel.com> <20200212014703.GE8175@jack.zhora.eu> From: Daniele Ceraolo Spurio Message-ID: Date: Wed, 12 Feb 2020 13:47:09 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <20200212014703.GE8175@jack.zhora.eu> Content-Language: en-US Subject: Re: [Intel-gfx] [PATCH v3 08/10] drm/i915/uc: Abort early on uc_init failure 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: intel-gfx@lists.freedesktop.org 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/20 5:47 PM, Andi Shyti wrote: > Hi Daniele, > >> + if (intel_uc_uses_huc(uc)) { >> + ret = intel_huc_init(huc); > > are we ever going to call intel_huc_init() if > !intel_uc_uses_huc()? if not, why don't check intel_uc_uses_huc() > inside intel_huc_init()? just to avoid always the double "if". I'm actually plotting another refactoring of the init/fini flows as I don't like how we toggle the FW states at the moment. I can bundle this change with that. Daniele > > Not a big deal though: > > Reviewed-by: Andi Shyti > > Andi > _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx