From patchwork Tue Nov 28 14:56:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 1869355 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=Ww61ChJm; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ventanamicro.com header.i=@ventanamicro.com header.a=rsa-sha256 header.s=google header.b=drWJV3mH; dkim-atps=neutral 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=kvm-riscv-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 4Sflsb2gJlz1yRW for ; Wed, 29 Nov 2023 01:56:51 +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:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Sv6zb2iQAN7npbNYzUIqAYd1PrmIXFqdfgfhaZyyrv8=; b=Ww61ChJmJIswF0 tTTl/IK/zTu1qLQtnlVO5s3ITfpyLuoCP+oRAsZQzwnnfyD91bOMJ9zMCqA8vfZtBEXvsG9Ok21n0 BYUoMVBVknna9rpeguESnp50GH84JOgdJq4Jb7c/6XJdAyS0Yl8GJcMCrfS6ihfMOQk5yHQ63v/Qu oX9rnqJhAex1JSzNr0QbzHpViBpyaVqw6E26QAZI8R8l/ORyw8nwOKViRcI1MCdtBUZ1iC9vZhSGf iXybiKVv7sTwGAYY8484q43ty/NZ7bz4jVTtUnavZ0rHPrInV749xf/Qwk2mLXdenJmAlLbWnmav+ czRUtT3ZpUTj5AdqsEeQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r7zW4-005b4f-1w; Tue, 28 Nov 2023 14:56:48 +0000 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r7zW2-005b2U-1R for kvm-riscv@lists.infradead.org; Tue, 28 Nov 2023 14:56:47 +0000 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1cf8e569c35so36203635ad.0 for ; Tue, 28 Nov 2023 06:56:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1701183406; x=1701788206; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=rzvuCYvNDC4WAU9MiwvqT5G+x/uZAqkiyqUofd5JUWM=; b=drWJV3mHr8tZ4kFsfT7iEqRefcXE/TxUMJzmmVX/T/P1Wob9k5LBnmQVvODRUIrgxW /+P37XRBmj2BOlCMVq2PE0u18WPc/PEs4gP5hVAz6Bg2JZS7RYC2XRGM4IiqBdSeAd0d KLrLpKQAJQPVQK+Tpn1n0sWaRWHwBuNV/DK3UYH/1tN4rIaQ6D9qW3D4z5YJICPXQxLh LL7yrtdSdeuwoug1RwtQV5/LCo/53VpGNisEJkbFSE+kpK8qKYdtqjzbVanreX872DEK k1rvm95jl8fJUA4dwm0IBFXansOKJhw+SAdXSHzTHz3DKI3ApIgNzpR5tioGT4HHZb7g e++A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701183406; x=1701788206; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rzvuCYvNDC4WAU9MiwvqT5G+x/uZAqkiyqUofd5JUWM=; b=ttw9SvaJKrW3LMNXi7+/Nimg+aubEqzJ4jltMajbUArCqev9G7bAmdLy1NnRrxn1wH 2JA88u80O/udI8oeYHZDaM48BB6qj1x46JYIEiUuloufouclnaZJB+y8EYEJ1jZSExqw S4kuiq4dLFjhPh4vg88+oAbz65QsZoSHM+MvkSLZ2gFO2JuG1uAyADHyzya1n9dMClNz Py/54bBrTXOfHte5q6afK0psMcpbPjqROVZCdzQSxVv+a1MrCQ232PZjNTC55TjJHtht wF2E/dPn2LU59PL+hUrWAcrkgSRV42Rt5IRF19y1GZMjPuJTzmmSbxtunx5Ympep6sof tGxA== X-Gm-Message-State: AOJu0YzWAXtqHFkqjOUsBsa6gNPpKjC8W6/NfrYE/Mv2kUHjIodtiPlt uwkCs7wrPpKRBRvAaDBadHOyHw== X-Google-Smtp-Source: AGHT+IFHabpA9QTBC99zG/ypygFsL3wJdocwojvWfvQDhDg9U7Uo3wdVa1mMxoziBAAenignp4vJfQ== X-Received: by 2002:a17:903:1103:b0:1ce:6312:537c with SMTP id n3-20020a170903110300b001ce6312537cmr15885985plh.10.1701183405740; Tue, 28 Nov 2023 06:56:45 -0800 (PST) Received: from anup-ubuntu-vm.localdomain ([103.97.165.210]) by smtp.gmail.com with ESMTPSA id j1-20020a170902c08100b001ab39cd875csm9023580pld.133.2023.11.28.06.56.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 06:56:45 -0800 (PST) From: Anup Patel To: Will Deacon , julien.thierry.kdev@gmail.com, maz@kernel.org Cc: Paolo Bonzini , Atish Patra , Andrew Jones , Anup Patel , kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, Anup Patel Subject: [kvmtool PATCH 02/10] riscv: Improve warning in generate_cpu_nodes() Date: Tue, 28 Nov 2023 20:26:20 +0530 Message-Id: <20231128145628.413414-3-apatel@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231128145628.413414-1-apatel@ventanamicro.com> References: <20231128145628.413414-1-apatel@ventanamicro.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231128_065646_485648_5CC4E8B4 X-CRM114-Status: UNSURE ( 9.22 ) 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: Let's print name of the ISA extension in warning if generate_cpu_nodes() drops the ISA extension from generated ISA string due to lack of space. Signed-off-by: Anup Patel --- riscv/fdt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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:630 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: kvm-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "kvm-riscv" Errors-To: kvm-riscv-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Let's print name of the ISA extension in warning if generate_cpu_nodes() drops the ISA extension from generated ISA string due to lack of space. Signed-off-by: Anup Patel --- riscv/fdt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/riscv/fdt.c b/riscv/fdt.c index 9af71b5..b45f731 100644 --- a/riscv/fdt.c +++ b/riscv/fdt.c @@ -108,7 +108,8 @@ static void generate_cpu_nodes(void *fdt, struct kvm *kvm) } if ((strlen(isa_info_arr[i].name) + pos + 1) >= CPU_ISA_MAX_LEN) { - pr_warning("Insufficient space to append ISA exension\n"); + pr_warning("Insufficient space to append ISA exension %s\n", + isa_info_arr[i].name); break; } pos += snprintf(cpu_isa + pos, CPU_ISA_MAX_LEN, "_%s",