From patchwork Tue Mar 19 14:59:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 1913615 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=SxOr8skK; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ventanamicro.com header.i=@ventanamicro.com header.a=rsa-sha256 header.s=google header.b=O38r1/dN; 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=opensbi-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 4TzZdV2Rc4z1yWn for ; Wed, 20 Mar 2024 01:59:58 +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=qk88yaTv/aQJHXAs3hE0gbKHesK59DitagS+QHYiEwE=; b=SxOr8skKiJ5V7U Fxoml3BJVxY166erzvKX1+ihSjpsBNex+0bgxq/SLEUNyzKJ6C5OCK6X+bhJZBnQZGYQ/kJ/nmvm/ RzRIZDf2IiFS2/v/Kp6BZQnXBrUfT7WpXrfc70WJeMcf/groxtrDXzc+ECG7bnUybPR+dz9I0JR6p X4ivnUdmw8VqEv3I2X9v3W9m7cHA76FnsFgonZaatRsTv/BuPTYh73SR0Io44p+4qM28G0DVAsmYM G6SeRnN0sqKq4+utQT/qCGhQmGfe2nAgt2xZa70u/kg+GJ237Zvq8OseJ+jt2muLADDfuIwAiOGMv fd3scKaY6JB0jIx9TlYw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rmawQ-0000000D3ks-1pI2; Tue, 19 Mar 2024 14:59:50 +0000 Received: from mail-oo1-xc35.google.com ([2607:f8b0:4864:20::c35]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rmawK-0000000D3f7-01hH for opensbi@lists.infradead.org; Tue, 19 Mar 2024 14:59:47 +0000 Received: by mail-oo1-xc35.google.com with SMTP id 006d021491bc7-5a46abf093cso3215034eaf.2 for ; Tue, 19 Mar 2024 07:59:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1710860379; x=1711465179; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=nHGr/IEvekGoMpYpCTMtck5Zh5YAtEFbYxVY9ZIjWvg=; b=O38r1/dNjYRihEFhmH8XzOd2s0CcLzQDrUInut4XJKqzkwnuCpDEjuDAT3J9HTsz+G 87FGFRd9Ca1I5VPdk6srbhM3tgUmh8lpn2W/xO/5qBYmLQ5JVCne0iHArs1UhvR3e1xZ nHZ3AvMsN7NcyITSa00/jf8EOgvrZkFWa9tcXbCxG4w3HYyje29yJTG51w+5S0jaQDbN m1UUXJ78lP9/PJ+pqHXLxiyJGZMLHz3q46T7aEKwDDFYnaphk4LjsnrY55+35N7VJgZJ duQ54YeMPQdIYaNMix9MPHZAlt2zSlpvwR8yBTNsJW4V9JcJtw1JwqK2l/G0+NOfkJVz f3DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710860379; x=1711465179; 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=nHGr/IEvekGoMpYpCTMtck5Zh5YAtEFbYxVY9ZIjWvg=; b=CvGTxTZdGvbQyRifA3oOm2TSBblULE21SMuNwZXemzi132CSvKTuApXeym0S3GfNO/ Lhje+3Wq1inlZW3cA0JuhcfS2x2GM5PehViCnNo50tcgrg+HMUbK8dQM85XkQ6GB0FOn /wgoD/s7h5c7ZAVaYEnkHO3EusEF4Yit7pm5eNxaw3CV/BY/409A3Vbm8DkDftLmNCy+ 9v9d3idxI4fXSlx7P6ZIWVJKjrfq213V2Ij5lYwM96KG5N0L4pYFRMI3i+Jg/3U9TlSf X125gSCWBeznYcnBXuorJKuy8CPw2f5HeihHWLQ4uPObhLLaMeD4HprjrvmJ+olZzydn pLTg== X-Forwarded-Encrypted: i=1; AJvYcCVFjgv24vHjUwY7/3DeKhKhb0OMJpjDy1Ptw+O5cEbTskAPBJaD2H7uK67Dk2/UaFJBQQekh1HaPLtHRI6SJ2uAdvLWo6Du9HHpamM= X-Gm-Message-State: AOJu0YzpMBoPzA4TS3T4kvcPSLiruc8FvzmiHWuIWKvQz71QAKw0XxZ7 Pa5Hizmlzo2EoJwmQuz7BmechXgIq9hb65AQatlhr4afgZs8tII1uAiLgOR1Yz4= X-Google-Smtp-Source: AGHT+IEIHlvPXtaeTTeRFXbHg6kMW+m2egHBdGPhKUMrbopetgqRyQXbrvN/e3gcrisPblcowPjj8A== X-Received: by 2002:a4a:6f0b:0:b0:5a2:37c9:d91f with SMTP id h11-20020a4a6f0b000000b005a237c9d91fmr13376936ooc.5.1710860379503; Tue, 19 Mar 2024 07:59:39 -0700 (PDT) Received: from anup-ubuntu-vm.localdomain ([103.97.165.210]) by smtp.gmail.com with ESMTPSA id cz8-20020a056820268800b005a4bb400a0fsm720113oob.4.2024.03.19.07.59.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 07:59:39 -0700 (PDT) From: Anup Patel To: Atish Patra Cc: Andrew Jones , Anup Patel , opensbi@lists.infradead.org, Anup Patel Subject: [PATCH 0/2] Coldboot wait improvements Date: Tue, 19 Mar 2024 20:29:28 +0530 Message-Id: <20240319145930.1827176-1-apatel@ventanamicro.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240319_075944_161753_871E490E X-CRM114-Status: UNSURE ( 6.62 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) 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: These are some of the simplifications/improvements which were found upon trying QEMU virt machine with large number of HARTs. These patches can also be found in the coldboot_wait_simplify_v1 branch at https://github.com/avpatel/opensbi.git Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:c35 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -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 -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.0 T_SCC_BODY_TEXT_LINE No description available. X-BeenThere: opensbi@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "opensbi" Errors-To: opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org These are some of the simplifications/improvements which were found upon trying QEMU virt machine with large number of HARTs. These patches can also be found in the coldboot_wait_simplify_v1 branch at https://github.com/avpatel/opensbi.git Anup Patel (2): lib: sbi: Simplify wait_for_coldboot() implementation lib: sbi: Wakeup non-coldboot HARTs early in the coldboot path include/sbi/riscv_barrier.h | 6 ++- lib/sbi/sbi_init.c | 81 ++++++------------------------------- 2 files changed, 17 insertions(+), 70 deletions(-)