From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 96AEA2B9D for ; Fri, 3 Mar 2017 11:26:15 +0100 (CET) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Mar 2017 02:26:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,236,1484035200"; d="scan'208";a="231845650" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.255.205.116]) ([10.255.205.116]) by fmsmga004.fm.intel.com with ESMTP; 03 Mar 2017 02:26:11 -0800 From: Ferruh Yigit To: Rasesh Mody , dev@dpdk.org References: <1488182237-10247-1-git-send-email-rasesh.mody@cavium.com> <1488182237-10247-3-git-send-email-rasesh.mody@cavium.com> Cc: Dept-EngDPDKDev@cavium.com Message-ID: Date: Fri, 3 Mar 2017 10:26:10 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <1488182237-10247-3-git-send-email-rasesh.mody@cavium.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 02/61] send FW version driver state to MFW X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Mar 2017 10:26:16 -0000 On 2/27/2017 7:56 AM, Rasesh Mody wrote: > Add support to send FW version and driver state to Management FW. > > Signed-off-by: Rasesh Mody <...> > - return ECORE_SUCCESS; > + if (IS_PF(p_dev)) { > + p_hwfn = ECORE_LEADING_HWFN(p_dev); > + drv_mb_param = (FW_MAJOR_VERSION << 24) | > + (FW_MINOR_VERSION << 16) | > + (FW_REVISION_VERSION << 8) | > + (FW_ENGINEERING_VERSION); > + rc = ecore_mcp_cmd(p_hwfn, p_hwfn->p_main_ptt, > + DRV_MSG_CODE_OV_UPDATE_STORM_FW_VER, > + drv_mb_param, &load_code, ¶m); > + if (rc != ECORE_SUCCESS) { > + DP_ERR(p_hwfn, "Failed to send firmware version\n"); > + return rc; > + } > + > + rc = ecore_mcp_ov_update_driver_state(p_hwfn, > + p_hwfn->p_main_ptt, > + ECORE_OV_DRIVER_STATE_DISABLED); Is this something that effects end user, the application that uses this PMD? > + } > + > + return rc; > } > <...>