From patchwork Fri Dec 6 16:02:36 2024 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: 847835 Delivered-To: patch@linaro.org Received: by 2002:a5d:50c2:0:b0:385:e875:8a9e with SMTP id f2csp857360wrt; Fri, 6 Dec 2024 08:04:22 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUXtqBd+3MuCdK9MEEtXjJ+2kIxyV0vWnY2kQ75dDJ/TLsNCuus2+nRurxLvWW2zxLl12/AEg==@linaro.org X-Google-Smtp-Source: AGHT+IGPYH1Kx6DAeqT1hcxQDnS5/Oetw4lZWzWk7qOyVAIpwGga4k5dZ60vYZl/XeMwHrgsnb7T X-Received: by 2002:a05:6122:3542:b0:515:e446:b9fb with SMTP id 71dfb90a1353d-515fcaf1462mr4278560e0c.10.1733501061883; Fri, 06 Dec 2024 08:04:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733501061; cv=none; d=google.com; s=arc-20240605; b=A8ybh4lCZvMHofx07Y8/pMSMQJyrVksmK29LFdB3s5nz1g37gQaJEdX7Um96BYcel8 v63GMLnulVaBR9T4IyFZ25nNjhhY5D3jIkOHtEQ1HwIK9gND+C2qHMm3EXT08c4QOTW6 yhqQiKzkre6e8nNVyGfsTspRrYx7WlpHxQbIAaOUed7UpTP8CADYdvC7+bQ5lsK4M5zi jr+Il1tGSj9E+4siWMIpjl57LafvR3dTf3uXkCNBJfgMjPgu2QeQ5nxUxjnVJy7QbNi+ r5PcNB3oZ1OB4EqgbvE596TjQiCZ9Hlft8535ewQ2I7J0UyI6MnaAfLnnBL1PPn62kAM vTfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=lR3sL4vQ9I6CvOc01/h1HSKTuaHzREP3JJkYjTbyomY=; fh=BF1HZJwu9x3VWJIsY57KG+bYAozWEyaOA3TZHjkvRe8=; b=b+oVpdJXAn1/VmcO2YRwHN+XnEn0vXSRGUWesHm6MlUqUOzd48LvGzdXepya/F0XLO R+7TjxC9q8Rg8dhbHKLuNRFNmP0hQlftVJW59CpiJhmT7KAIltglnX58OswB77yEh8/O HgEN/A+Pt8zNP5pr7wREnpTf1hZEMzrw1/4FwpOt5Cjxe9bfI5bu/Z8u5vBVG4gDDEsl rRmoOC/EcAsaoMu6/wTSmkBz4MpYltF2TpX9ZV9cPDmDbOC+49AbkXytfhfKD5X+JTvx 0mN/TkiZoZmv8LYcIly5XnKPKQlVYE1FwFYBEsNTdxfQIQzqXtjBFQ7erbJ5I6Ur1gI0 ikfQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h2FuZMtS; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 71dfb90a1353d-515eae5cc1asi1471295e0c.112.2024.12.06.08.04.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 06 Dec 2024 08:04:21 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h2FuZMtS; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tJan7-0007hu-Qa; Fri, 06 Dec 2024 11:02:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tJan1-0007fq-RB for qemu-devel@nongnu.org; Fri, 06 Dec 2024 11:02:48 -0500 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tJamy-0006Ut-6t for qemu-devel@nongnu.org; Fri, 06 Dec 2024 11:02:47 -0500 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-385d7f19f20so1060393f8f.1 for ; Fri, 06 Dec 2024 08:02:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733500962; x=1734105762; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=lR3sL4vQ9I6CvOc01/h1HSKTuaHzREP3JJkYjTbyomY=; b=h2FuZMtSZq2sdnjZHDUH3QCqJaKNvs/zaUtip65ryDxUeKgtkuXk5J+OFq6dxW7OCf 7tHv+bOwl0Hoyvb64g01BldrHKNstybJ4xzG3iecvvUV46rGehQOudenhGuhhBAu3Pyx 0IV9xS5yiNKxRhIBv9IrVkMbrpEADFS4Z26Ng4WmkGbqChpX2nW57EULdxtF1PgkwKPi JDVNDGbppIQMm980jvjLXY5QWUqV16yU6pHRBZdjV60ZraJq8aSOw8M9UxxJPj/0Q3Ez eXvPrhYHYYCZ0/JmHDGRV+B5wImjkhVe61tyCB16gmzJzcRpuRA0Z57f853rMgvWGj4v +CBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733500962; x=1734105762; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=lR3sL4vQ9I6CvOc01/h1HSKTuaHzREP3JJkYjTbyomY=; b=TjWVpU+4/DYN77mpc/U1Huh5DtCUXRGg/v09NvFgAy66vuhfmwSMMGHOYZ4bXSpqdV GBH6zDszOsRF+7onVtaajUraahFFjHWzF9JDCsC+yOoVpMJs9HcWrE+HvcFqtrjZGsP8 Az3GO+A5VoEQSc91LV0hYb/PLw846QafFja0N7p/rvtvfHc2uINvYp29if+dYJDpy+gt aUNcDBIEAswgaOZbNg4mRFnuamQtHZ861TSRk6oiCEdmgzNWRY2uwfpCwLVMmZVKIwVE +K25HIYrLkTTGBIa2+wVdgNFK1U6V60EGlUNnNt3qxySODZRKSitVed0/japTs4sw72l P3Ww== X-Gm-Message-State: AOJu0YwvefDtN1HZk1oXwwC7laszaB+OkdUwAR54F3xbdDahRz4LjiQ6 jK/YMfi3MFrILuNxIwvwt6mmqZvQWZdwtaYO2wPt1uuk7aUbmpZmlVUrsdOeum8= X-Gm-Gg: ASbGnctx7IEtM/EJu6FkUwRPsFHP3y2kOzrqxs7PbHXTP0jKQdbZ/2QOYQd4PzSBzXA iJYpyAT6YAK4EQXOPjC741K6U9Xvmj+2yBeEX/pXe4FzWjt7H9DX797T+SSbgAjKi5+JbQ6Y74L difd6Tb7jTinuicsDweG2rwzzQ9UbLn6gdpAVUTzhEC2l3+ka/ZNM12iDbHTqvraPJfX+I69Ttz Vv5w+uhILd/ObMSSHJtkOnXVnXA1vCfCPChImQ1fC5Puze8 X-Received: by 2002:a05:6000:2c6:b0:386:3262:cd7d with SMTP id ffacd0b85a97d-3863262d11dmr516585f8f.45.1733500962134; Fri, 06 Dec 2024 08:02:42 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-434d04da5e0sm86137845e9.0.2024.12.06.08.02.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Dec 2024 08:02:41 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 607185F8C4; Fri, 6 Dec 2024 16:02:39 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Marcin Juszkiewicz , Leif Lindholm , Peter Maydell , Radoslaw Biernacki , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PATCH 0/3] target/arm: implement SEL2 physical and virtual timers Date: Fri, 6 Dec 2024 16:02:36 +0000 Message-Id: <20241206160239.3229094-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Follow Peter's review I've split this into a several patches as there are some other fixes that should be made to other EL2 times that shouldn't be rolled together. v1 - improve GTIMER docs - fix gt_recalc bug - address review comments for the main patch - cc qemu-stable (no rush for 9.2.0) Please review. Alex. Alex Bennée (3): target/arm: document the architectural names of our GTIMERs target/arm: ensure cntvoff_el2 also used for EL2 virt timer target/arm: implement SEL2 physical and virtual timers include/hw/arm/bsa.h | 2 + target/arm/cpu.h | 2 + target/arm/gtimer.h | 14 ++-- hw/arm/sbsa-ref.c | 2 + hw/arm/virt.c | 2 + target/arm/cpu.c | 4 + target/arm/helper.c | 179 +++++++++++++++++++++++++++++++++++++++++-- 7 files changed, 194 insertions(+), 11 deletions(-)