From patchwork Fri Feb 7 22:01:20 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andrew Cooper X-Patchwork-Id: 13965996 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 lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C02A4C021A0 for ; Fri, 7 Feb 2025 22:01:39 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.884032.1293838 (Exim 4.92) (envelope-from ) id 1tgWPk-0003Rr-DS; Fri, 07 Feb 2025 22:01:32 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 884032.1293838; Fri, 07 Feb 2025 22:01:32 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tgWPk-0003Rk-A6; Fri, 07 Feb 2025 22:01:32 +0000 Received: by outflank-mailman (input) for mailman id 884032; Fri, 07 Feb 2025 22:01:30 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tgWPi-0002Xy-Rx for xen-devel@lists.xenproject.org; Fri, 07 Feb 2025 22:01:30 +0000 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [2a00:1450:4864:20::444]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 15ad43ed-e59f-11ef-a073-877d107080fb; Fri, 07 Feb 2025 23:01:30 +0100 (CET) Received: by mail-wr1-x444.google.com with SMTP id ffacd0b85a97d-388cae9eb9fso1325572f8f.3 for ; Fri, 07 Feb 2025 14:01:30 -0800 (PST) Received: from andrewcoop.eng.citrite.net (host-92-26-98-202.as13285.net. [92.26.98.202]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38dcb4410e6sm2636035f8f.8.2025.02.07.14.01.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Feb 2025 14:01:28 -0800 (PST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 15ad43ed-e59f-11ef-a073-877d107080fb DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1738965689; x=1739570489; darn=lists.xenproject.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=TnR0HvkJY/eJqC43vEosp5uMlAJboHQ7zF6VK9BRj7w=; b=bDx8sgPQb6paoVJDbN9JEFp4FN4WXM/qwMXTn5F61cctY4+WnjHIcudfu9itbF+xPz bm1Hu/hK/fXHCh8zzpQC3WiDsgaG3ymrz2FJ7R/xUJQvcrUatwQ4hYXycp9nyUimH0xX zmn3ZfvqXox9lP2zQbO9WNAsB2PsFJ9C4yRfQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738965689; x=1739570489; 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=TnR0HvkJY/eJqC43vEosp5uMlAJboHQ7zF6VK9BRj7w=; b=WUTKhfVeOstQWhS9w6fTfeeO20++o3ynTptHnbL/Xyjw93G6BX0woexKBnd604Grlk N6d632lbTNJwc5K0tEVG6Gz3nUEjSuZLtDQLuIu67l1+TG9ZEh0cPrT+9ji51qEUUyoD TL+DYfGo57sKEn8tasF8PkeehyLefinfa2vQVvPu4VPjZUQEoWd7adWqXOUvaMGZJd52 3UCzJVyYwx0kTUW3wjChaaJcPcXRa3uJDxSkjPtsHvDdabORoLYPa9C5PEMjzY1XOymh zFyKOaYWbGzJ+kgicr1R6Thjeb2sFFkQw36ZDXsbENln13cOAByL4syZHs6thJZkn/Ne 2SiA== X-Gm-Message-State: AOJu0YzHX5LN4EkPLWppybLVeo5QHquZlK6WJbnVyr27JWAgyjJ2+hqR mnKjE+Fc6EmdJWTgai3VMSH2esX14h09N3HdJElCkBf83JewpcdGvLaplqizEERD9J0duKh5VLq 4nu/ENA== X-Gm-Gg: ASbGncsDTCzKvq15BTRnCZWy9SSAVea6r7suBnkwj7fu8/4UfN2f/JyZi5euauLBsak zwJgeASP9K0xgYnhMkskUHxKjAzKQz8LzSb/AAfOPYy+kGvFqf9K/EZ3GsUp85oiLmXPV13HLnT 9DhzJ9B1ozypVRL25439eViCleaQGO1YO6zHRBBunOIeJ2/bsZuv+86go2YBas78N3R7I+iXAUP cTeYQZK5S92t2c4YPUa44Ts42gneuo4O5s4GQDnx645iMs83mDZfftn1IajPL3dHLoHDDDIFlzW JTpXRzOgCISI2BCE62e5Cb+LU3556FTY7helmMLUKlqWZpd9VEt6z4tr7CGZr3U/MtwQk+g= X-Google-Smtp-Source: AGHT+IGWJmkhy/rD13TuXN52kL9e4wCnNOAkpBtgsdKirkLsXx5VzIY2hCVRx1eStSc2Eb5OO/jguA== X-Received: by 2002:a05:6000:1447:b0:38d:b547:6650 with SMTP id ffacd0b85a97d-38dc8fe575emr3520008f8f.27.1738965688993; Fri, 07 Feb 2025 14:01:28 -0800 (PST) From: Andrew Cooper To: Xen-devel Cc: Andrew Cooper , Oleksii Kurochko , Anthony PERARD , Michal Orzel , Jan Beulich , Julien Grall , =?utf-8?q?Roger_Pau_Monn=C3=A9?= , Stefano Stabellini Subject: [PATCH for-4.20 1/3] RISCV/boot: Run constructors during setup Date: Fri, 7 Feb 2025 22:01:20 +0000 Message-Id: <20250207220122.380214-2-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250207220122.380214-1-andrew.cooper3@citrix.com> References: <20250207220122.380214-1-andrew.cooper3@citrix.com> MIME-Version: 1.0 Without this, RISC-V isn't running boot time selftests when they're compiled in. Signed-off-by: Andrew Cooper Reviewed-By: Oleksii Kurochko --- CC: Oleksii Kurochko CC: Anthony PERARD CC: Michal Orzel CC: Jan Beulich CC: Julien Grall CC: Roger Pau Monné CC: Stefano Stabellini https://gitlab.com/xen-project/people/andyhhp/xen/-/pipelines/1660821676 For-4.20. Boot selftests are new in 4.20, and work in each other archtiecture. --- xen/arch/riscv/setup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/arch/riscv/setup.c b/xen/arch/riscv/setup.c index 38ca4f3baa1b..f2b6e684ac69 100644 --- a/xen/arch/riscv/setup.c +++ b/xen/arch/riscv/setup.c @@ -109,6 +109,8 @@ void __init noreturn start_xen(unsigned long bootcpu_id, */ system_state = SYS_STATE_boot; + init_constructors(); + if ( acpi_disabled ) { printk("Booting using Device Tree\n");