Message ID | 20241110140932.410939-1-npiggin@gmail.com |
---|---|
State | New |
Headers | show
Return-Path: <skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=hBPNOcfJ; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=patchwork.ozlabs.org) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (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 4XmZLh43G8z1xyB for <incoming@patchwork.ozlabs.org>; Mon, 11 Nov 2024 01:09:47 +1100 (AEDT) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4XmZLg1Kytz2yyM for <incoming@patchwork.ozlabs.org>; Mon, 11 Nov 2024 01:09:47 +1100 (AEDT) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip="2607:f8b0:4864:20::62c" ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1731247784; cv=none; b=NkphfMkwHOzDMZPd0WzDEupuKz570iowTg5CM2qoZT8p4rZwLo2+HAjlRPpHq2pKm4+NUzvjkhXapcSrpGx7LDNU1eCRrAeXWLRwTAW78gFRJeCy4BPVieO6m/QmZzr+mDxkofkNZREQzHG++sUIdl5eV8WMbsv6U8amrDV7ckho7oJKBcFNlq71HqTqPq6tuTOwBvJWbC9S5O5yZ3HACOJC+N8mImYPI1W97D8AI0MV61gAl2S/WeQcJq/VzagrYs7+lJtJVpfHT+WalKdla3XrVNY7okM0by2chFo6aogYBzPjNUmZx6gnj5VsribgJe+LpjMgCJYb76ZxcwmDEQ== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1731247784; c=relaxed/relaxed; bh=CaXV5VNmRaZZqGAAsZgSC2f2yCKtux6fbKzCx5AlBGs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IW1IL9PWAxaqkeONDtVHQ0qWKCB8g5dX4ydWlqOmaHFMHhE3YsNcSs3p9U+dEUGb1pZih3KDQbsFPSgxWBQcKK+qL80o2w3G3v9Q9O0nCQ1fk38YbLuM4RSfiDIf+fM72wEdIvT2VUO9vraDWjBv9zCrxgdhFpIlrGcXa+3OYqfOXppWJavRBOf2cFNCDw1pI2p7dT/XvUY6x9PC2mp1I6ODqZfDTZ7q/lqYOTysHif9wrkMMDviYtHqTZe272SPb42bE5+eAu8uiEPBQ08IxVhd7IVXETMTVZ7xUBgGdcZ7ZBfoZOsuzWmi1Zv12xafLDJbzXIbyKm6ZsAkCmNOZA== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=hBPNOcfJ; dkim-atps=neutral; spf=pass (client-ip=2607:f8b0:4864:20::62c; helo=mail-pl1-x62c.google.com; envelope-from=npiggin@gmail.com; receiver=lists.ozlabs.org) smtp.mailfrom=gmail.com Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=hBPNOcfJ; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::62c; helo=mail-pl1-x62c.google.com; envelope-from=npiggin@gmail.com; receiver=lists.ozlabs.org) Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4XmZLZ4M9Kz2xxr for <skiboot@lists.ozlabs.org>; Mon, 11 Nov 2024 01:09:41 +1100 (AEDT) Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-20ca1b6a80aso39817475ad.2 for <skiboot@lists.ozlabs.org>; Sun, 10 Nov 2024 06:09:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731247779; x=1731852579; darn=lists.ozlabs.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=CaXV5VNmRaZZqGAAsZgSC2f2yCKtux6fbKzCx5AlBGs=; b=hBPNOcfJPRpk7sQ/G4k+TOgOrXHkeNpeCwygBOpTgoatywr/piDyWQmL6h6t/Rvlnv KIofjsOlX0CawQ/mDKvCRH77vTqYKwKndLk9OYxwpNsDbHnc84W2q6UXyREcX4BY2v1k NRVhzhIyOS1xn1DbX0vQmbQqc2eaxQ6ZvGjdB590JJo/ad/lYBRlTprPeQQKoHnGkZ2W dlIpe3HUyW3u2MUCcbUXBw0gVG4gDMv+GlJkME6rIkbMPS2eAW5gTLfDuxIAAFogxvxn lu76m8OKk435322wIE7rjIqr1EUgpUOLgy87vGvEHtX3unYJ2wlvZg6AsPkUrHmbJwQv qUaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731247779; x=1731852579; 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=CaXV5VNmRaZZqGAAsZgSC2f2yCKtux6fbKzCx5AlBGs=; b=dIbrOolYRYW3P0PTLTE69aukwuYgZtdz57uwa1SiRRjSOPyAv+dyXQ7/whDzZxWXJZ Fpz0AbOfw99r5wcIXmnT8JMmO+S5jdgxKz5CN0TxlRc0JHVSzShW8AdRfDq3EbQBHhpd dWmf1kHnx5/63662RZJutoDBD2D+ciKGAC36Cn8PUh9wPOWQX+cklcNGCzYMD1AynWtM fAcFTuw85Fqqu2P6+MX6yff/ifpEN82AimUs6iJ0yGEqwe42dmsoQU08s7oGM3Tl9G2R u2r0xK/pw/gJmnMnJoEUbzxQrRIAVNGkG3z7e/FuoTaIS+xwh2Xr9vh0syxXq7/URV1S Nehg== X-Gm-Message-State: AOJu0YyKUHpzSQKJ2YzrPaYo42jN8in2afDOID+YdoQW3+szH4visvr+ Y4OK3RD4IVnENIJht5gh8Nc0hxkGCigFiCKSOr9/5CxPII1Q7eFcUF0Seg== X-Google-Smtp-Source: AGHT+IG/IH74AlrNbmrrVSnibBtrQTpUB+7MUi8n+hKfL2vV1xt7oHeiOLLn/3stfueajyTOxq0+/w== X-Received: by 2002:a17:902:eccf:b0:20c:e2ff:4a2e with SMTP id d9443c01a7336-21183d7cf32mr149674575ad.53.1731247778771; Sun, 10 Nov 2024 06:09:38 -0800 (PST) Received: from wheely.local0.net (124-171-217-17.tpgi.com.au. [124.171.217.17]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21177dde2d5sm59325955ad.70.2024.11.10.06.09.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Nov 2024 06:09:37 -0800 (PST) From: Nicholas Piggin <npiggin@gmail.com> To: skiboot@lists.ozlabs.org Date: Mon, 11 Nov 2024 00:09:31 +1000 Message-ID: <20241110140932.410939-1-npiggin@gmail.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on lists.ozlabs.org Subject: [Skiboot] [PATCH] hw/phb4: Avoid wait for PERST when running on QEMU X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list for skiboot development <skiboot.lists.ozlabs.org> List-Unsubscribe: <https://lists.ozlabs.org/options/skiboot>, <mailto:skiboot-request@lists.ozlabs.org?subject=unsubscribe> List-Archive: <http://lists.ozlabs.org/pipermail/skiboot/> List-Post: <mailto:skiboot@lists.ozlabs.org> List-Help: <mailto:skiboot-request@lists.ozlabs.org?subject=help> List-Subscribe: <https://lists.ozlabs.org/listinfo/skiboot>, <mailto:skiboot-request@lists.ozlabs.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" <skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> |
Series |
hw/phb4: Avoid wait for PERST when running on QEMU
|
expand
|
diff --git a/hw/phb4.c b/hw/phb4.c index b1fa08fe1..5292a923b 100644 --- a/hw/phb4.c +++ b/hw/phb4.c @@ -2959,6 +2959,10 @@ static int64_t phb4_poll_link(struct pci_slot *slot) PHBDBG(p, "LINK: Link is up\n"); phb4_prepare_link_change(slot, true); pci_slot_set_state(slot, PHB4_SLOT_LINK_STABLE); + if (chip_quirk(QUIRK_QEMU)) { + /* QEMU doesn't need to wait */ + return OPAL_SUCCESS; + } return pci_slot_set_sm_timeout(slot, secs_to_tb(1)); }
Waiting for PCI reset is the most costly component of a QEMU boot, mostly due to 1s delay between PERST deassert and device config space access. These PCI hardware delays are not required with QEMU, so skip them on that platform. On a single-CPU QEMU powernv10 machine where PCI probing is not well parallelised, this reduces skiboot boot time from 6.3s to 0.4s. This is important for testing and CI. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> --- This replaces "core/pci: Avoid wait for hardware running on QEMU" I just incorrectly sent in a series of bugfixes. That one was too aggressive, it seems QEMU does have some async components to PCI init that needs to wait a little. This gets most of the benefit. Thanks, Nick --- hw/phb4.c | 4 ++++ 1 file changed, 4 insertions(+)