From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=QqLQ1u5x; spf=pass (domain: linaro.org, ip: 209.85.128.42, mailfrom: leif.lindholm@linaro.org) Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) by groups.io with SMTP; Tue, 01 Oct 2019 14:14:43 -0700 Received: by mail-wm1-f42.google.com with SMTP id r17so3436115wme.0 for ; Tue, 01 Oct 2019 14:14:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=TqwZrNWATHPzct6i3zXgFNKtyKGQmnPc7APyzWq2Y5U=; b=QqLQ1u5xWnCgZsjwPR5jPyvLkteP/RoK+cHanPEZLBf6e4jFSKCy7botvbrvjKpm/x larmHNx/UrUYA3SUL/rHxuHhZfC2xDk5LXq1uwGaWPN4c3EOkBX9Q8YkEls0ZGWMlz+1 mXTMf4xsBT/ET4moVnyIN2dY1cJtS6RTHWCC3FGvlOsFZgUdgbpLgDaehdfA00npzwyR NYmEa0ZUn01aQ2hYhllf9QJw/obX3s8k8nXxB6+uHlkyFcCOuiLhumV9RHpgn7YSFdYy da3fE84NiwF4mjSq3KhCWuUWMtYfPAyiI4eKxaeFm4oOdrVZ6hnIPWD6HzOE/uDAt5Iz /HwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=TqwZrNWATHPzct6i3zXgFNKtyKGQmnPc7APyzWq2Y5U=; b=cLK0H7fn51wquuva6k6RofjP7zBFRi4GipbgcUXRqgRSzgMGDmtr/qxpwGmliADbep HCnL8TlA2q2ZhbfrFjHCG00yRUTl9psEDj3CjH6i30zdiej8su3okJ1q00F8YDn9ncze 5T2LvL3hPdGmW8g2KpjJZPqARheEE738v/HgEa0izyFfyBpTXcI3MqQNUMnvZC/H3bnT MsjM8zXZemyUZDf9fwkKVLmpkzfkJn1eS9UgY5Sd6Kph0MuEQGERH8gGH43F2C8R4WzW +1/46D1DmAffpuSntgqFp81mVJKCPbHvWzsLYgVEoxlEbNVZboSAMRXexJ8cMZ0QX8Yb Pgww== X-Gm-Message-State: APjAAAUP/3F4t2NXCqYcS/5rlRPhb9EAsm5NWXwJ3nogQb3JSUeee6ZS qNFKJACn4xFt5YgYLsD6LBLAzWexHXs= X-Google-Smtp-Source: APXvYqyCGWw2YT5M6lRWqbeDwDwX4ojHfu4lLyXdx9LyqZ6xS6A5P0WOf8S7Q5hgPU++puHW6x6Fdg== X-Received: by 2002:a1c:4485:: with SMTP id r127mr61954wma.59.1569964481244; Tue, 01 Oct 2019 14:14:41 -0700 (PDT) Return-Path: Received: from bivouac.eciton.net (bivouac.eciton.net. [2a00:1098:0:86:1000:23:0:2]) by smtp.gmail.com with ESMTPSA id a18sm26187597wrh.25.2019.10.01.14.14.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Oct 2019 14:14:40 -0700 (PDT) Date: Tue, 1 Oct 2019 22:14:38 +0100 From: "Leif Lindholm" To: devel@edk2.groups.io, gilbert.chen@hpe.com Subject: Re: [edk2-devel] [plaforms/devel-riscv-v2 PATCHv2 02/14] Silicon/SiFive: Add library module of SiFive RISC-V cores Message-ID: <20191001211438.GX25504@bivouac.eciton.net> References: <20190919035131.4700-1-gilbert.chen@hpe.com> <20190919035131.4700-3-gilbert.chen@hpe.com> MIME-Version: 1.0 In-Reply-To: <20190919035131.4700-3-gilbert.chen@hpe.com> User-Agent: Mutt/1.10.1 (2018-07-13) Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Sep 19, 2019 at 11:51:19AM +0800, Gilbert Chen wrote: > Initial version of SiFive RISC-V core libraries. Library of each core > creates processor core SMBIOS data hob for building SMBIOS > records in DXE phase. So yes, this implementation needs to change. These should all implement the same LibraryClass. Also, U54 appears to be a simple superset of U51. What I would suggest is creating a Silicon/SiFive/Library/SiFiveCoreInfoLib, which calls into a SiFiveSoCCoreInfoLib in Silicon/SiFive//Library, providing the acual SoC-specific bits. / Leif > Signed-off-by: Gilbert Chen > --- > .../E51/Library/PeiCoreInfoHobLib/CoreInfoHob.c | 242 +++++++++++++++++ > .../PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf | 51 ++++ > .../U54/Library/PeiCoreInfoHobLib/CoreInfoHob.c | 294 +++++++++++++++++++++ > .../PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf | 51 ++++ > .../Library/PeiCoreInfoHobLib/CoreInfoHob.c | 185 +++++++++++++ > .../PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf | 50 ++++ > 6 files changed, 873 insertions(+) > create mode 100644 Silicon/SiFive/E51/Library/PeiCoreInfoHobLib/CoreInfoHob.c > create mode 100644 Silicon/SiFive/E51/Library/PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf > create mode 100644 Silicon/SiFive/U54/Library/PeiCoreInfoHobLib/CoreInfoHob.c > create mode 100644 Silicon/SiFive/U54/Library/PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf > create mode 100644 Silicon/SiFive/U54MCCoreplex/Library/PeiCoreInfoHobLib/CoreInfoHob.c > create mode 100644 Silicon/SiFive/U54MCCoreplex/Library/PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf