From patchwork Tue Dec 19 11:28:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Himanshu Chauhan X-Patchwork-Id: 1877842 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SvZGf2hnHz240C for ; Tue, 19 Dec 2023 22:29:30 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jGl7oSwTx1a/QFqb2sO27vz1JtM4r1Fl9r3sAhZS1e4=; b=4lUnbmaidvwRsD agU2XGRs/qQLRQuKsl/YyKSqEXFzR6ewp1/tQw3Vods9s4fdovNsSWaAZ+EPlfCpMieEBRm/SLOzh mFTm9D0EuCXTKcPlyY1BeNx1zPKMVrDZh+Ce3Ije25at8m2xLODxYLnRNnaQ6FMiQhhyI7NPA+mTW zpyhyF/vAjjXSb5WghONc30OtIWqs+8l24OhiR/9thjBdgYvmzKB0ozD8B3tmQ1Sb20KEkHQkkwog Vx8dEL0y9N/UQlld5/kHhSVFzLoEYB/nC7zSNQiE9F86JOqzlQrhmtVKG4OX7gSMLsGh6nif51MuC L4i7jDYuRzj4KrQv4dVQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rFYHo-00Dk6t-12; Tue, 19 Dec 2023 11:29:20 +0000 Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rFYHl-00Dk0h-0h for opensbi@lists.infradead.org; Tue, 19 Dec 2023 11:29:19 +0000 Received: by mail-pj1-x1036.google.com with SMTP id 98e67ed59e1d1-28bae84fc2eso153770a91.1 for ; Tue, 19 Dec 2023 03:29:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1702985353; x=1703590153; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=bC9KqJXg9FzCgIV0bdc7OIO2Gy0T6VC13ZeAZBATqQw=; b=NqN7NqdKtO3unvsJNPDnhMrccmk8ahlnjUPnuAP47iJYpkQvygzJ5lPXBXZAZ1oWuK DZ9yBYvSUF3f0xYXg8HUlvIGgV+kUEpGvFUpkMXhAxAgf2RVem6BTIPmCXAZwrNAj+HO KxaBA4WDDa6y/GYK7JPOYJOjaur95qcR2hlE4o+ei/5PJ3zxyltUIxjiCvFHRk1F8TPn 3CAKgfQjM+PQb3bhMSSY5ETbIQO1EPTyp2ikr+s+12wLMqSTlETdbk1MNeUZZqd050qS XFM3weiOeUkX0hhwJ2J7PEUi2BVlOwTn+JgNyQZQUuX9zzU93OamFpRH8X6x+wa4MxeE cEeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702985353; x=1703590153; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bC9KqJXg9FzCgIV0bdc7OIO2Gy0T6VC13ZeAZBATqQw=; b=ptLMCPklbt+qg8gQ6Y9DceMYmZlvVKlkhviqzLf6NWrBuL5POJQGjN4JB3SExlVFtc Ekkut2tdSC4LwAueLAFA+7odzbyDh5Tp1FjdWXXtMINO8KwCWKZXBw/DBhDFV/HEdWDz Zj7YNo493tACUv0DkABu+DgDWto/b17uicFQ3Qc5+u3PoYGkxtwFyPqvlXQ5/wylca+/ tcU9W5LSQeHqJXpU8tarDrgLM8Rr0X9W5KzmGWcTJicXEgMFdLRliHMdI0gKGvm3Tw7R m+4N9bRH1egqUQWrZANZLCy/gQ5N3zVQlQpvS9hg6MTLjlc6oUfR/jT1xd2JWsDpSKdC DzgA== X-Gm-Message-State: AOJu0YxpB22SfHJAtoTU8enLyz0RLPyZBfZ/yBpxrAOl2E9/Ty8te8gN 9SFL2+10wMk54OPCpVj6PRE8XSqueaFQz2VHtQKsyg== X-Google-Smtp-Source: AGHT+IHIDrdCY43YdVT2ySjc+DEokM5YG+Bn1iQDhjJE76wCDPFAcMxn3ygyfKglDTl08WjuUpCJ3g== X-Received: by 2002:a17:90a:4f4e:b0:28b:3d3b:865f with SMTP id w14-20020a17090a4f4e00b0028b3d3b865fmr9720694pjl.0.1702985352629; Tue, 19 Dec 2023 03:29:12 -0800 (PST) Received: from brahaspati.localdomain ([49.37.250.213]) by smtp.gmail.com with ESMTPSA id pi17-20020a17090b1e5100b0028b4488f3e7sm1315519pjb.13.2023.12.19.03.29.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 03:29:12 -0800 (PST) From: Himanshu Chauhan To: opensbi@lists.infradead.org Subject: [PATCH v1 7/7] lib: sbi: Print number of debug triggers found Date: Tue, 19 Dec 2023 16:58:56 +0530 Message-Id: <20231219112856.3865827-8-hchauhan@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231219112856.3865827-1-hchauhan@ventanamicro.com> References: <20231219112856.3865827-1-hchauhan@ventanamicro.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231219_032917_271098_C49B4C43 X-CRM114-Status: UNSURE ( 7.55 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Print the total number of triggers found on the boot hart. Signed-off-by: Himanshu Chauhan --- lib/sbi/sbi_init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/sbi/sbi_init.c b/lib/sbi/sbi_init.c index 0dcde27..061c5f2 100644 --- a/lib/sbi/sbi_init.c +++ b/lib/sbi/sbi_init.c @@ -114,6 +114,8 @@ static void sbi_boot_print_general(struct sbi_s [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:1036 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: opensbi@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "opensbi" Errors-To: opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Print the total number of triggers found on the boot hart. Signed-off-by: Himanshu Chauhan --- lib/sbi/sbi_init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/sbi/sbi_init.c b/lib/sbi/sbi_init.c index 0dcde27..061c5f2 100644 --- a/lib/sbi/sbi_init.c +++ b/lib/sbi/sbi_init.c @@ -114,6 +114,8 @@ static void sbi_boot_print_general(struct sbi_scratch *scratch) cppc_dev = sbi_cppc_get_device(); sbi_printf("Platform CPPC Device : %s\n", (cppc_dev) ? cppc_dev->name : "---"); + sbi_printf("Platform Debug Triggers : %d trigger(s) found.\n", + sbi_dbtr_get_total_triggers()); /* Firmware details */ sbi_printf("Firmware Base : 0x%lx\n", scratch->fw_start);