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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3EB36C433EF for ; Wed, 27 Oct 2021 16:36:04 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7E32D6109D for ; Wed, 27 Oct 2021 16:36:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7E32D6109D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 18DF582F03; Wed, 27 Oct 2021 18:36:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="Wjbgcnk6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 886338329E; Wed, 27 Oct 2021 18:35:59 +0200 (CEST) Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 42975801B2 for ; Wed, 27 Oct 2021 18:35:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=kabel@kernel.org Received: by mail.kernel.org (Postfix) with ESMTPSA id 525C06109D; Wed, 27 Oct 2021 16:35:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635352553; bh=+WYIOO0suDB4/XVYU3KkG7xu+64B/5Fa+uhrM3bmxow=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Wjbgcnk6oUNcMjH3iNyv8SkNerSTaMpK4skP8ETfs8a/ZYBhlq8PL38fC6Z93Tqkn UGPxCxDoam31Z8WlGM1nNTlj13yNwnnjWYgAj4MKBh8BhXZ3nqVrRV866Epq30ONvH HCtqhobCrziVrPN5jmZosA5xGPQ/xO52HTada6sVhgPqFn+MgcOQMwyaA+KqqzNFGO f1CYYT4DKfsGBoQXhs8yI3jvpslPmXWk1jz14fU4BH6Epk4ErC5KjO/UAN0snIRiGM 1Zt8hmFsPoTuOpoUFxVisBiiGoieNu149+lhJYs3Cx19B1dEYTAC5MpPEmqfyvYu2r ONNHR94y6yP4Q== Date: Wed, 27 Oct 2021 18:35:48 +0200 From: Marek =?UTF-8?B?QmVow7pu?= To: Roman Bacik Cc: Simon Glass , U-Boot Mailing List , Bharat Gooty , Aswath Govindraju , Bin Meng , Franck LENORMAND , Heinrich Schuchardt , Kory Maincent , Michal Simek , Patrick Delaunay , Peng Fan , Priyanka Jain , Rayagonda Kokatanur , Sean Anderson Subject: Re: [PATCH v3 2/2] cmd: brcm: netXtreme commands Message-ID: <20211027183548.4ae716ed@thinkpad> In-Reply-To: References: <20211025234444.1237-1-roman.bacik@broadcom.com> <20211025164424.v3.2.I1edaad77041c1300213c307eef6741499504047@changeid> <20211026151742.42b0fcfa@thinkpad> <20211026175519.418d4864@thinkpad> <20211026184950.47bcd1af@thinkpad> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean On Wed, 27 Oct 2021 08:05:11 -0700 Roman Bacik wrote: > chimp_ld_secure #this command loads FW, which is necessary for PCIe to > enumerate it > pci enum #this command is necessary to call bnxt_bind Wait, so what is this firmware for? Is it firmware for the netXtreme controller or for PCIe controller itself? If it is for the ethernet controller, you should be able to determine whether there is netXtreme card present on the PCI bus without loading the firmware, by looking at PCI vendor / device ID. In that case the firmware should be loaded when the ethernet controller is requested for, i.e. the ethact env variable points to that controller and a network command is executed (dhcp, tftpboot, ...). (The ethact variable is used to set which ethernet controller is used for network commands when there are multiple etherent controllers.)