From patchwork Thu Nov 30 14:07:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leif Lindholm X-Patchwork-Id: 120197 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp711915qgn; Thu, 30 Nov 2017 06:07:17 -0800 (PST) X-Google-Smtp-Source: AGs4zMaeWsTnG1Q3DvuvEdldmBj7Xz3W1BGAxltaimYI/cT53zQ3bH90INMXfeuyV1V5f9NusJce X-Received: by 10.99.124.23 with SMTP id x23mr2483325pgc.189.1512050836875; Thu, 30 Nov 2017 06:07:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512050836; cv=none; d=google.com; s=arc-20160816; b=QK28wPWYk6gwM/bIJU4Bch1YbgvRMkvKX06tpJt0ewvISPXjBA+1xz+aCNDIiV92ca YS5S5wnNhDf+ZXYJ+aHM2vQW9hOTRW5in4lFR10JL+i3Doj5zzifSzj8iyA/jHIf5G+u NjjDaour1JZlpQoLCLa/zqu5GhGwQxF5AR73BlPQToGmVB5vAbOAgKJmrOQf5UAh/HKH wS89ZhTYXZLZELa7EWD+8FNkFfxrADAbN2u171UqB8P4EGzuXPHI8aXdnh1xzwdnaMbf rqidxu1VgWH1CNYYBOEgmqLdq8FjT1Mc60+LnXBitYZzbo935DhvAUcZkJFwWYDOQgFc 87ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=GOjag7HExZn0FRlRCLibNu4PHz4lZlVhKEmwvuwXr+4=; b=fz/1iOT8lKXgM9uqn9vAX9cLJyUtZ0iLDmcQVsMIhMuhsDlM6iCFzNYDxM03f1d4Pg Wpcsie8ZONbo+ehCl2dixEQbTJBvx1dTlpTAQi531ENjnk1sVWvBGcDUsmNonFyXu75y GPWFLVpnqcsN1gfggMWCjiPwd/VraIGXU+PMYfuqvF7bwJo7OKW1Xo9Dhuv8STNXfSV8 pmgPz8pcQzDRNeWhGK7diBU5+xQqV9rNSIWSmtLY/hLYz6wIg0sUr1RRQPTk6+9e1nAa ibS4yTdxgaYqqT93P9MIc11Iovc12WSBWOhDb5LeHyVWlh5DRT/bj2KQhIIpZNZQ5Skr ajnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=PFB0tU9i; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id l63si3194368plb.82.2017.11.30.06.07.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Nov 2017 06:07:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=PFB0tU9i; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id BB262220D4C08; Thu, 30 Nov 2017 06:02:50 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c09::244; helo=mail-wm0-x244.google.com; envelope-from=leif.lindholm@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 7F512220C1C4C for ; Thu, 30 Nov 2017 06:02:49 -0800 (PST) Received: by mail-wm0-x244.google.com with SMTP id n138so2278685wmg.2 for ; Thu, 30 Nov 2017 06:07:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=f2nGIL17w8+ncsJynlEeOrwBrpnliR7+rIOWZ+rjXNw=; b=PFB0tU9ivcY1WtXr82JmAYiMX3/kD+Us+68Rwr2Bf5T3KudUlpnWKuO31EPWplsk+t T+RQuTuyySuL4UMOYWFUO9qWiO/CT9KIIJ0ZojM7lLkzcVmjqSAxh5dcQbbu3T1FqZ+Q SSHlxCeqrxMGtejC1GMvLMkkS95+Sk8zorTrg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=f2nGIL17w8+ncsJynlEeOrwBrpnliR7+rIOWZ+rjXNw=; b=LFtfaZT0nRzGXxN22tzMmCB21sMYsMBYxM10Jr1t7MoXFogE6nSL9KXRp3Wk6/lSuj yN3XvJqSUdXLWp3Is3j36PFxBuc93DcgK4aEGE7F3HmMrITLjaRasquH5GtXMaUyQtut bibl2FQ8GzHnUC2bKxZAMOn1qDoChmdWENG6rRDf+hv3JOJoMAFjPMTMQo2YX02xp/t7 q9/rbKEoibaegCeL9brLDeI+eDE882bbVh72EJDcVi27fpO8qbE+8QlBS3EbXzSwRRPs 5mg2c0z4zq8lcHfohlmVbqvQPqz4tPZq1K7J9cY+STx6Bm/Ota5uwOQXB1gViXMTooAJ jiFw== X-Gm-Message-State: AJaThX5HgqKf7e9ATYg5TObiRRsfxriKsjwerP6QMXsWWLNxYDBFzTKR cK5h3LCE8AFtCwxHDx8oI3KL3mUVYMQ= X-Received: by 10.28.19.1 with SMTP id 1mr1920632wmt.20.1512050831961; Thu, 30 Nov 2017 06:07:11 -0800 (PST) Received: from vanye.hemma.eciton.net (cpc92316-cmbg19-2-0-cust118.5-4.cable.virginm.net. [82.12.0.119]) by smtp.gmail.com with ESMTPSA id 90sm8023952wrp.93.2017.11.30.06.07.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Nov 2017 06:07:10 -0800 (PST) From: Leif Lindholm To: edk2-devel@lists.01.org Date: Thu, 30 Nov 2017 14:07:08 +0000 Message-Id: <20171130140709.16418-1-leif.lindholm@linaro.org> X-Mailer: git-send-email 2.11.0 Subject: [edk2] [PATCH 1/2] Omap35xxPkg: add GetTimeInNanoSecond implementation X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ard.biesheuvel@linaro.org MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Commit a63be426f8e3 ("ArmPlatformPkg: Store initial timer value") caused BeagleBoard to stop building, due to Omap35xxTimerLib lacking an implementation of GetTimeInNanoSecond (). So add one. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Leif Lindholm --- Omap35xxPkg/Library/Omap35xxTimerLib/TimerLib.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/Omap35xxPkg/Library/Omap35xxTimerLib/TimerLib.c b/Omap35xxPkg/Library/Omap35xxTimerLib/TimerLib.c index 652c47b6f6..33b314922b 100644 --- a/Omap35xxPkg/Library/Omap35xxTimerLib/TimerLib.c +++ b/Omap35xxPkg/Library/Omap35xxTimerLib/TimerLib.c @@ -131,3 +131,27 @@ GetPerformanceCounterProperties ( return PcdGet64(PcdEmbeddedPerformanceCounterFrequencyInHz); } + +/** + Converts elapsed ticks of performance counter to time in nanoseconds. + + This function converts the elapsed ticks of running performance counter to + time value in unit of nanoseconds. + + @param Ticks The number of elapsed ticks of running performance counter. + + @return The elapsed time in nanoseconds. + +**/ +UINT64 +EFIAPI +GetTimeInNanoSecond ( + IN UINT64 Ticks + ) +{ + UINT32 Period; + + Period = PcdGet32 (PcdEmbeddedPerformanceCounterPeriodInNanoseconds); + + return (GetPerformanceCounter () * Period); +} From patchwork Thu Nov 30 14:07:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leif Lindholm X-Patchwork-Id: 120198 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp711934qgn; Thu, 30 Nov 2017 06:07:18 -0800 (PST) X-Google-Smtp-Source: AGs4zMZ3+a+OuNJXDP9joZ9YGxGDY7DX71kpbi1OT6bTux/G1vG+1o81CDEFN3zeVSs2ysngAAB7 X-Received: by 10.99.112.1 with SMTP id l1mr2413467pgc.186.1512050838024; Thu, 30 Nov 2017 06:07:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512050838; cv=none; d=google.com; s=arc-20160816; b=mq0LEat8u2jbWG5tVWOgwjalafAwqEpG5bcm2voY7oQ443OteQBrfYHlXNatIwbFAj wYtjRG5fcUqtWd4WcCK4NYkZxHCxkNsUVvBcunzUyXYvz2cf+L4dsIXtmJzDUMBdLR6E jvJZpUsJpO6sHj7ocBvHVNKJow24hkiFWlAGasqvuLFSAnTEcwRkzNK9GQIZYbG0ai5R 46kpI255Ge1MJXZP4yawVGB5SHEEx5PrxRZ8NCe3+FbeqIi/5fkYH7REWX0ywhHo5R2G 53NogAFb6kiBWKv++6a6t8ldCsO0L+ZTz/dvXjbO0x4/RfAvemGcSKn+EfSfwqgZyBHq m8XA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=uFsTgnc1iWcVy1jFDhWvf9EtUXnsj4PKiWbvEdAKN9A=; b=UszAF/xLz8Ra2o+z7Ql+tFgOBOityMo/PRO1OqbyB8o41h/drrMcbCDFX/XWmkHaYZ oiSpdNNSrOiNrYO9aZ6LYMQWJ/NTrgfWZe4qdZd7rZ7YDtlkRVbuQ2T4S2dXGBte2xC2 q31VEicnqcZmLmFJKda4XKNhAta1kr2Zy17WVY9JKXkj7n2fCi+QlRAvnZQaId0OyBbS VNsdewp9G9nBHHPLnF8RpV3o5WXvpN8iT3QdrQL+M0O6hnTMwSMZU+a14NqbcB8qZyjH uSKqpe0I+cBZBTONliF8Vgu/2UgyDNYhPIeyjkWkoBizsf+Qabezt4jqjGKFCabO/vyq XRcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=c7R84+2C; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id c23si184017plo.627.2017.11.30.06.07.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Nov 2017 06:07:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=c7R84+2C; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 06F2B220D4C1E; Thu, 30 Nov 2017 06:02:51 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c0c::244; helo=mail-wr0-x244.google.com; envelope-from=leif.lindholm@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x244.google.com (mail-wr0-x244.google.com [IPv6:2a00:1450:400c:c0c::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C9D41220C1C5B for ; Thu, 30 Nov 2017 06:02:49 -0800 (PST) Received: by mail-wr0-x244.google.com with SMTP id v22so6725594wrb.0 for ; Thu, 30 Nov 2017 06:07:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lsYWhT0nYCGdm6OL24R/UleWODy0fBDrzJVPKI9pyJQ=; b=c7R84+2Cf0Do7ZGxpWhdDYwRGLtO1AWN4XKE+XNd5tMCVVW0PlaIpzSlqu7p2I7rRt /TR4CiWljG+6ECQoLSe3ofgyjxz63QXBYOPO4uZ/yeTD8Ifv/zGGeGLthNSGo3BQEit5 7Ksn8JvUJE08MoaLa2AkgtIozYmqmfNfRYm2Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lsYWhT0nYCGdm6OL24R/UleWODy0fBDrzJVPKI9pyJQ=; b=W68ABYyBuvHlqFrodJUngtlnfoX9iQ2CLeOMrttcCOjB+c1OGSoIkbrp2smwOkXWm0 AVqF12diuaCThruDfSmt/jv9SlJqTGUMHRTffF5Ur2Vil8zTzAOmIDw6jte2TJuXAMP+ WzzQVsf26TdNNrfm5CJDpvQkRLd58jBQuc4kvvpUlXB6HlAb45gARsvYaUM8YagUZC2Y CrsYyUVehxcS+YE9CawlWcvMcwGbhm03Trbv1Xpbf6ndWbx3aCvxrH5Ow9Fxn1RfMuF5 Mnkz/RgdZs1qJhUj5pUkeNNJ0OioT6lLszGKx/2RdoVGwVg/9WbmJd3aKk+Mi2sVQL5Y pmhw== X-Gm-Message-State: AJaThX6Qcxs2a4TeGGwOUK0y3Iz8q3ESMExtoU/Fxd0C+8QS5k7Ow1Y6 L6TUGyns9cr0hiJV5pSzxK1LLYd8GiY= X-Received: by 10.223.161.158 with SMTP id u30mr2101262wru.96.1512050833442; Thu, 30 Nov 2017 06:07:13 -0800 (PST) Received: from vanye.hemma.eciton.net (cpc92316-cmbg19-2-0-cust118.5-4.cable.virginm.net. [82.12.0.119]) by smtp.gmail.com with ESMTPSA id 90sm8023952wrp.93.2017.11.30.06.07.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Nov 2017 06:07:12 -0800 (PST) From: Leif Lindholm To: edk2-devel@lists.01.org Date: Thu, 30 Nov 2017 14:07:09 +0000 Message-Id: <20171130140709.16418-2-leif.lindholm@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171130140709.16418-1-leif.lindholm@linaro.org> References: <20171130140709.16418-1-leif.lindholm@linaro.org> Subject: [edk2] [PATCH 2/2] BeagleBoardPkg: add CapsuleLib resolution X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ard.biesheuvel@linaro.org MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Commit 4bbcc285d5f7 ("ArmPkg/PlatformBootManagerLib: process pending capsules") added a dependency on CapsuleLib. Add DxeCapsuleLibNull resolution to BeagleBoardPkg.dsc to resolve this. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Leif Lindholm --- BeagleBoardPkg/BeagleBoardPkg.dsc | 2 ++ 1 file changed, 2 insertions(+) -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Ard Biesheuvel diff --git a/BeagleBoardPkg/BeagleBoardPkg.dsc b/BeagleBoardPkg/BeagleBoardPkg.dsc index d67ccf377e..2837ef3c06 100644 --- a/BeagleBoardPkg/BeagleBoardPkg.dsc +++ b/BeagleBoardPkg/BeagleBoardPkg.dsc @@ -135,6 +135,8 @@ [LibraryClasses.common] FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf + CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf + [LibraryClasses.common.SEC] PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf ReportStatusCodeLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf