From nobody Sun Sep 8 02:30:46 2024 Received: from out-171.mta1.migadu.com (out-171.mta1.migadu.com [95.215.58.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D73CF4BA88 for ; Mon, 12 Feb 2024 21:10:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707772212; cv=none; b=t8cB9LiSXKpa1jkosnrLLNljDBEIyH27l1q9MF1mKrYPbqnZhC0YaGi4w26a6TUjxNUpqY0vZtRHnrgut5WKHwiS0sbe4xpNZ5RtWa68OMTAVjHqArlE0X0MBVlr8hMVMco+iZ/0eNlxZWDMS9qUxVJyuc0IrvEu+GRnGGzlkIM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707772212; c=relaxed/simple; bh=V2K3Tqa8gFu4PA1KW3ElYY3Gm+CaB0UlpxRc/Dm88V4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lQzgejQbUGrF5cHgkTWQpIWOCPE1You5otRpQloRoN2UPnFKFyTh1Og+IxdQkIsEXHceEtzwK9YPs+tp0SfBqlzJzKDTmywUEFaX6FtFpICBkk4MuREqToPw9uWwk9oF8QGPWwuqmCYvBcxvXtjDTeoMBt12cf9EMcm7g9wNh0g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=d9ei9th8; arc=none smtp.client-ip=95.215.58.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="d9ei9th8" 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=1707772207; 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=ho2ychX5rzcZXGqMft5IUPj+UTWREdBWn8Koftkvhk0=; b=d9ei9th8fcogKE0TDUvOgUz6IIwo3rQmVdChHOVKeZ0S1+n3rZ3FgUStc9VVsDUEbJD1R0 QoYZvxKJJftGdkfCirawYzO+KT4wFkeMK6+LPwuPxr53YfunovI0mDgz94yL2bPbkItKAU SVfmES5t3kgv86WmHRXSt1oGwe5f5kY= From: Oliver Upton To: kvmarm@lists.linux.dev Cc: kvm@vger.kernel.org, Marc Zyngier , James Morse , Suzuki K Poulose , Zenghui Yu , Raghavendra Rao Ananta , linux-kernel@vger.kernel.org, Oliver Upton Subject: [PATCH] KVM: selftests: Print timer ctl register in ISTATUS assertion Date: Mon, 12 Feb 2024 21:09:33 +0000 Message-ID: <20240212210932.3095265-2-oliver.upton@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Zenghui noted that the test assertion for the ISTATUS bit is printing the current timer value instead of the control register in the case of failure. While the assertion is sound, printing CNT isn't informative. Change things around to actually print the CTL register value instead. Reported-by: Zenghui Yu Closes: https://lore.kernel.org/kvmarm/3188e6f1-f150-f7d0-6c2b-5b7608b0b012= @huawei.com/ Signed-off-by: Oliver Upton Reviewed-by: Zenghui Yu --- Applies to kvmarm/next. tools/testing/selftests/kvm/aarch64/arch_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kvm/aarch64/arch_timer.c b/tools/testi= ng/selftests/kvm/aarch64/arch_timer.c index d5e8f365aa01..ab4b604d8ec0 100644 --- a/tools/testing/selftests/kvm/aarch64/arch_timer.c +++ b/tools/testing/selftests/kvm/aarch64/arch_timer.c @@ -160,7 +160,7 @@ static void guest_validate_irq(unsigned int intid, __GUEST_ASSERT(xcnt >=3D cval, "xcnt =3D 0x%lx, cval =3D 0x%lx, xcnt_diff_us =3D 0x%lx", xcnt, cval, xcnt_diff_us); - __GUEST_ASSERT(xctl & CTL_ISTATUS, "xcnt =3D 0x%lx", xcnt); + __GUEST_ASSERT(xctl & CTL_ISTATUS, "xctl =3D 0x%lx", xctl); =20 WRITE_ONCE(shared_data->nr_iter, shared_data->nr_iter + 1); } base-commit: 680f749c272378a796388a3244bab53b5a952d67 --=20 2.43.0.687.g38aa6559b0-goog