Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4478962pxf; Tue, 30 Mar 2021 08:46:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+wr0BCdRRfg+0kRiHR8l+tW932++zwaHp3z2GsRqhceZZZIW/dHHzCFlr8ibkXyvA/9Lz X-Received: by 2002:a17:906:340d:: with SMTP id c13mr34351569ejb.29.1617119217666; Tue, 30 Mar 2021 08:46:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617119217; cv=none; d=google.com; s=arc-20160816; b=jEVrTWfKmWD5XunErGlzt6fW5mvYphCKHxdh4JtgvHs9xKQkcAT1JEYgYQ+MQvdIJe 8VmN/LU8EHdr3yFl4A9TgEoCE2Fwo+bHTjK40RG0UUrt/DLtmVUny1ZvffEuIXrPvUJo INJm0cFn6RSc+1cjIrPoSPREuI1QBiu2LZFSd7RnPZZ5E5aa2NaNPoHE1qdO84wacYrZ pc9k8eNaOE67bEX9DEHIroxh4AZ7NH1wdlKEErJk6rAlUyry4IJ0aonNkvOD4Bbt3uWN nWdaP1CMh1RIz+fJ4QkxZIVJCNIApA5EvCFnW/lVtLoFnNnqOuStu62tW5DX182p0O0/ MH7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=z6z7xafNDgJULeMaAY28aQSu1hrhnUkL9Kp0QScjfBg=; b=jCvcoWJmhhT+FrspV3rO8KuOXRgc++9PVuamgN2yf/6DLtrBx3aRegN0C2yvnB3JB0 yYboMei78kb0ir5AuznpRxaBoT+HwjwNErpH/j7kUcPPz1hB+ZzkWJTmD2oBiClKHL3h wqQvRZmkYhpPwebyHtzF2kt+JoVpX31HocU9OpPcKXAVV/G9YwrA62br3wb2dU52O4JF cbM1SNEwjc7OOlyERmoATdGbzyupN6Trw4TyB9XApkouZKQXT6IztpF8eNG02p7RIk/f r2oGcfdJemJFV9/St8XzbFvHcPQWiQ9GqWnS7wqIhKm7u5WGlIRBG4eLrWW9q1HUW9aI JXTg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bq23si14904042ejb.498.2021.03.30.08.46.34; Tue, 30 Mar 2021 08:46:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232064AbhC3Pnf (ORCPT + 99 others); Tue, 30 Mar 2021 11:43:35 -0400 Received: from mga11.intel.com ([192.55.52.93]:27968 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232329AbhC3PnG (ORCPT ); Tue, 30 Mar 2021 11:43:06 -0400 IronPort-SDR: Dmvo+4c49aUOqFiCN3HpsSVKoLMPtK8szbYydYV6VaiO+a9wUCRIqd/1mj7Nw8tnfc+vYkLy6s SY5GLJvSxFCA== X-IronPort-AV: E=McAfee;i="6000,8403,9939"; a="188531630" X-IronPort-AV: E=Sophos;i="5.81,291,1610438400"; d="scan'208";a="188531630" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2021 08:43:05 -0700 IronPort-SDR: LXRpHwKsdvxf9y/OfKTI7OsBQlAi1WChA9XmFTDca6XG5aS/2pjN1YnCcF7+teqPX5S9PCJHNp E7zrR5D0yI7g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,291,1610438400"; d="scan'208";a="445197940" Received: from marshy.an.intel.com (HELO [10.122.105.143]) ([10.122.105.143]) by fmsmga002.fm.intel.com with ESMTP; 30 Mar 2021 08:43:04 -0700 Subject: Re: [PATCH] firmware: stratix10-svc: extend SVC driver to get the firmware version To: David Laight , "gregkh@linuxfoundation.org" Cc: "mdf@kernel.org" , "linux-kernel@vger.kernel.org" , Richard Gong References: <1617114785-22211-1-git-send-email-richard.gong@linux.intel.com> <1617114785-22211-2-git-send-email-richard.gong@linux.intel.com> <26176a0062114b9faa7c2c64c8ea3e64@AcuMS.aculab.com> From: Richard Gong Message-ID: <16c40de5-b405-92b6-d08f-e395b9774e7e@linux.intel.com> Date: Tue, 30 Mar 2021 11:02:46 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <26176a0062114b9faa7c2c64c8ea3e64@AcuMS.aculab.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi David, On 3/30/21 9:19 AM, David Laight wrote: > From: richard.gong@linux.intel.com >> Sent: 30 March 2021 15:33 >> >> Extend Intel service layer driver to get the firmware version running at >> FPGA device. Therefore FPGA manager driver, one of Intel service layer >> driver's client, can decide whether to handle the newly added bitstream >> authentication function based on the retrieved firmware version. > > Using the version number to detect features is just plain wrong. > > You should use something like a bitmap of supported features. Firmware, which runs at EL3, returns the version to Intel service layer driver in a 64-bit value at the register. Intel service layer driver runs at EL1. Regards, Richard > > David > > - > Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK > Registration No: 1397386 (Wales) >