From patchwork Wed Nov 6 11:38:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Jones X-Patchwork-Id: 2007484 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=QXS8wEPV; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=WNj4L8Y0; 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 4Xk4HY0tsKz1xyM for ; Wed, 6 Nov 2024 23:28:25 +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: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:In-Reply-To:References: List-Owner; bh=V003cKQq8Ce3Xtt1hNJpxWftpHgzNUMqwT8iVwxi07E=; b=QXS8wEPVw4SjgC +1QBD+Rssg7CfGx8PlD80V1oFeJJt2ej47D8vPbWMy6x4r3dDzqS6Q2hJ+L4zkS+xMRvKf0JLjSXe J+ATdz7SPYrdah3KfLbG+OLjrCUEN1IeLv2M4XLroJoW5AKaJVNqm78nEwbgjhTvWP906avuSs7qw ugeqyj3dMU6jVRczom2PQfK8QKQrgYE33qXCzk3T6GVv0JHQ9zRL0rbX/0lJ+wOjhlAaL5VzhjR3q pGOxFwi2l8Fe3MUGh2sT86vypYsHLqlQ9m1dv9zXbCnCuH8zf1GLaCvmNswZscAJfdRtCzwIv46JH SVLuNskctGf3P5K4zefA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t8f95-00000003ByH-3AWu; Wed, 06 Nov 2024 12:28:23 +0000 Received: from out-181.mta0.migadu.com ([2001:41d0:1004:224b::b5]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t8eMf-00000002wmK-1Lmu for kvm-riscv@lists.infradead.org; Wed, 06 Nov 2024 11:38:23 +0000 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1730893098; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Y7sY1LDtKg624mZKhUOGLiQ4e59QK+4btWX3E9hDTbA=; b=WNj4L8Y0a+QLXnhtiEYte6AvRYLidaN/grjHlNDwtfyxIMC2BlgPl3BGiQQecALtHpiIwJ +ISCbYs9Pmu+ac2s7EQ/0sBif7Jh75p2abvB+X21WjvIoswt6u1InBOhmqnB+Qgw9Jz7K6 JsjnwRb8gM21ASio8N9IL+hp+9/3EYI= From: Andrew Jones To: kvm@vger.kernel.org, kvm-riscv@lists.infradead.org Cc: cade.richard@gmail.com, atishp@rivosinc.com, jamestiotio@gmail.com Subject: [kvm-unit-tests PATCH v2 0/3] riscv: sbi: Add IPI tests Date: Wed, 6 Nov 2024 12:38:15 +0100 Message-ID: <20241106113814.42992-5-andrew.jones@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241106_033821_587309_5E3E50DA X-CRM114-Status: UNSURE ( 6.53 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.1 (--) 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: Repost Cade's IPI test patch[1] with all the changes pointed out in the last review and more. Based-on: https://gitlab.com/jones-drew/kvm-unit-tests/-/commits/riscv/sbi [1] https://lore.kernel.org/all/20240826065106.20281-1-cade.richard@berkeley.edu/ Content analysis details: (-2.1 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 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 Repost Cade's IPI test patch[1] with all the changes pointed out in the last review and more. Based-on: https://gitlab.com/jones-drew/kvm-unit-tests/-/commits/riscv/sbi [1] https://lore.kernel.org/all/20240826065106.20281-1-cade.richard@berkeley.edu/ v2: - Rebased on latest riscv/sbi - Improved ipi done checking by introducing cpumask_equal - Added a patch for another IPI test case Andrew Jones (2): riscv: Add sbi_send_ipi_broadcast riscv: sbi: Add two in hart_mask IPI test Cade Richard (1): riscv: sbi: Add IPI extension tests lib/cpumask.h | 13 ++++ lib/riscv/asm/sbi.h | 1 + lib/riscv/sbi.c | 7 +- riscv/sbi.c | 184 +++++++++++++++++++++++++++++++++++++++++++- riscv/unittests.cfg | 1 + 5 files changed, 203 insertions(+), 3 deletions(-)