From patchwork Thu Nov 18 18:46:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 12693068 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 525EEC433EF for ; Thu, 18 Nov 2021 18:48:40 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 214F461101 for ; Thu, 18 Nov 2021 18:48:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 214F461101 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=rYEDSMAVs3SnG3MxOufoa0d7V9id9ox4hd/JLrh7TGY=; b=Fh09QOoAteEVYK cvVDPiuHT9lh+TelB4UskgJ28+Yo8x9RS7kk7kMTUITZeMZp/iArISppa/NvVbU/60e3kalPUq4Kl BknHDbC0YzZWSMbamWAgYp2iPvD0FapwOy7eMZoeYxzzCUBM+hDmEeE1j1hV5SP8SnLoCDeUbjcAj KNSpnpkOIqlftIqE4kdKzMIpJBJedaWzoRMUgJdclC3UbCIhHtsjK1+9Hrz78hUWbNDyTHIs2sAxf wL7kXo0kbGMw+6zXvZhef1We6+SJtfrroyDHRdbYHOHybXKRUmdMZZMJYQqonyiwHOFfNzcAJO3iW QNbfZ96h7rQIweGbgdaA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mnmRE-008d0f-7R; Thu, 18 Nov 2021 18:47:12 +0000 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mnmQw-008cst-Ru for linux-arm-kernel@lists.infradead.org; Thu, 18 Nov 2021 18:46:56 +0000 Received: by mail-wr1-x432.google.com with SMTP id u1so13393028wru.13 for ; Thu, 18 Nov 2021 10:46:53 -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:mime-version :content-transfer-encoding; bh=XS343c0IO3niqftwP4v6K7OUkGkeIMiA5I+9ZdZYBh0=; b=zjCZRzmU5VCoORz9MR7qg3iHeYGB+ARqpBgEFkojvl3nOwIzmuTPU5pdKUpWT8la3D UGY2TfUGFT4IEnWlBAxDQbMkUvtFSzNFeJogW9rLHEt6T2HeHxTkT2xjszrOKBdtUFb9 HDYwnutRjR2KmtByWx8sGIFQ9tOlC16XfCsOjBG34gpIOtSvCfOaLbsfTOkaX+bQWFhq oOgZPpjmyct9bW6VdtSvsKyWBNv6blWpTi+XmkhSew3RZDofHkbxCG/imoO5BTFK/4fA 3w7GEk/JPKDNoNsdN20Tm53RgVUyMk9bcZUxmPoeqoX1f3rybUdDDJYupwV2fRG6wp+b 73Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XS343c0IO3niqftwP4v6K7OUkGkeIMiA5I+9ZdZYBh0=; b=WnDzantpYZEcbTDUXg7Kn/+17wgbSLV+wWFhtloJepvqDXCI0AqK1nXRZ19kqqlQ3R LCW5ntaGIdKif+NlIv6syHd4nIwlwnSf+FBZMo1IpAx35Vcy6fVeUEsGbpLpmD1OlgCY p93LrFAPY03dOQJukP7fQKD0dutuoctDc/Gny+DyyAOUH2Q1aJowO77Etr7H082Z+hgW H+weV5Adz2aB3WjayYfgWqq9uXXSYfSgAhWPncyIWFCAccynrLwNILmFvYiTiYW/7+UN Hl4cf3OF39lDCMBg4i8w0BEPjaGmE0ylZOMWGuL7CjPCOLX8U8QPSVUdIf12QvKVnfeB +33A== X-Gm-Message-State: AOAM5308SJ9j+PZ0PetsO96LvPgeMq59HFQ9bzNzKRtPcdAGgxnowCPx iHCR7zaDuUvFvSWbK1ui23itpA== X-Google-Smtp-Source: ABdhPJw2NzXqRxesIK9jA2HRDk+2Uk6jmBQZFD0hYkGO36LMi1zQxSDYgNlrw4ejSdORJel1NMHILw== X-Received: by 2002:adf:f012:: with SMTP id j18mr33404834wro.353.1637261211921; Thu, 18 Nov 2021 10:46:51 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id 8sm9332039wmg.24.2021.11.18.10.46.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Nov 2021 10:46:50 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 3D38D1FF96; Thu, 18 Nov 2021 18:46:50 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: kvm@vger.kernel.org Cc: idan.horowitz@gmail.com, qemu-arm@nongnu.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, christoffer.dall@arm.com, maz@kernel.org, =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [kvm-unit-tests PATCH v8 00/10] MTTCG sanity tests for ARM Date: Thu, 18 Nov 2021 18:46:40 +0000 Message-Id: <20211118184650.661575-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211118_104654_956907_EFB94BE6 X-CRM114-Status: GOOD ( 13.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, It's been a long time since I last posted these but I'd like to incorporate some MTTCG tests into QEMU's upstream acceptance tests and a first step is getting these up-streamed. Most of the changes are fixing up the numerous checkpatch failures (although isaac remains unchanged and some warnings make no sense for kvm-unit-tests). I dropped an additional test which attempts to test for data flush behaviour but it still needs some work: https://github.com/stsquad/kvm-unit-tests/commit/712eb3a287df24cdeff00ef966d68aef6ff2b8eb Alex Bennée (10): docs: mention checkpatch in the README arm/flat.lds: don't drop debug during link Makefile: add GNU global tags support run_tests.sh: add --config option for alt test set lib: add isaac prng library from CCAN arm/tlbflush-code: TLB flush during code execution arm/locking-tests: add comprehensive locking test arm/barrier-litmus-tests: add simple mp and sal litmus tests arm/run: use separate --accel form arm/tcg-test: some basic TCG exercising tests arm/run | 4 +- run_tests.sh | 11 +- Makefile | 5 +- arm/Makefile.arm | 2 + arm/Makefile.arm64 | 2 + arm/Makefile.common | 6 +- lib/arm/asm/barrier.h | 61 ++++++ lib/arm64/asm/barrier.h | 50 +++++ lib/prng.h | 82 +++++++ lib/prng.c | 162 ++++++++++++++ arm/flat.lds | 1 - arm/tcg-test-asm.S | 171 +++++++++++++++ arm/tcg-test-asm64.S | 170 ++++++++++++++ arm/barrier-litmus-test.c | 450 ++++++++++++++++++++++++++++++++++++++ arm/locking-test.c | 322 +++++++++++++++++++++++++++ arm/spinlock-test.c | 87 -------- arm/tcg-test.c | 338 ++++++++++++++++++++++++++++ arm/tlbflush-code.c | 209 ++++++++++++++++++ arm/mttcgtests.cfg | 176 +++++++++++++++ README.md | 2 + 20 files changed, 2216 insertions(+), 95 deletions(-) create mode 100644 lib/prng.h create mode 100644 lib/prng.c create mode 100644 arm/tcg-test-asm.S create mode 100644 arm/tcg-test-asm64.S create mode 100644 arm/barrier-litmus-test.c create mode 100644 arm/locking-test.c delete mode 100644 arm/spinlock-test.c create mode 100644 arm/tcg-test.c create mode 100644 arm/tlbflush-code.c create mode 100644 arm/mttcgtests.cfg