Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5203435rdb; Wed, 13 Dec 2023 01:47:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IGIanpX22PIr2I1X7UJw4uD2uCiN6uQsVAKrrYOIaHNdrCpJfBiy5QLTfcEVL2QQ3Tvie2O X-Received: by 2002:a17:902:ea05:b0:1cf:9c0b:b3dc with SMTP id s5-20020a170902ea0500b001cf9c0bb3dcmr4713895plg.69.1702460874224; Wed, 13 Dec 2023 01:47:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702460874; cv=none; d=google.com; s=arc-20160816; b=RqiRcgfMkAUcF5sLc8p3goVop0wd4L97zosGV4KJUAZykpO6QqQxExPdHKfJ7T4kTi PP3sCrDr2JVbsn9apUvk7TAyVmvlWw52yWL5a80dphRBJLxL5gGWy+77eumUHgSOyLHP bNLJbw4uQ4PNrLYKwWS7+H8WTgCdDx7KTZt1vij88v2VvuLG9qj02yr+7/9iFQguhxxp dI3NhSHSe606kzqp3EnPLu6sRx2zCUpLuEcsCaU364KdKLk9rtXKTrDMUqCj0ypTtT0l cseO6hCIhTg2YaIWTI/qpJ3HNTEYr3IVRMvTAqjjha+5S9HTq5EDkxD3u4hJwemsr7fa dGZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=Gz1QBFFxY5fQpjuLFhu5Av05NYAaRHHVFg0GAK8tVjA=; fh=rZmderCaT8PM3O7dWqrRCj75FIZKR8SsyUnoR0xKeDA=; b=DXE5XANkORk72igWzbt+95YnVKffFCoauhpBhS1iOEqik77msrWkTpSx/dtzeMhCR4 2ghNCC2htwVzzvyN+zekzwvscxrA+JwN/9kNLsNB6hzm6dgig7TWKGAE1cEK0fYp2qtd pX3q8tT+HWC0ZvZcHu3Sv53FMvdhbYvMgKt8XvklZIu7/n/kAapI7LNvBwJH6MjtH6Hs Xyvoc959p4A0h57fBshFS9eGTOILFRLQ4sRA3Ho6g6hQy1EXYFk7JbXH53ltMjhkfkAS 0JX2cFuksVioSUql9rkG0vOA4UBZ1CuL6aqnJvqRHF5Npr8FH3wNF0f1XM6SXhE/36Oo LzIw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id z4-20020a170903018400b001d0c5037ef3si9444437plg.336.2023.12.13.01.47.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 01:47:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id C59B680417D4; Wed, 13 Dec 2023 01:47:51 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233184AbjLMJrd (ORCPT + 99 others); Wed, 13 Dec 2023 04:47:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233142AbjLMJra (ORCPT ); Wed, 13 Dec 2023 04:47:30 -0500 Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55160A4; Wed, 13 Dec 2023 01:47:36 -0800 (PST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id C321746E6A; Wed, 13 Dec 2023 10:47:34 +0100 (CET) Message-ID: Date: Wed, 13 Dec 2023 10:47:34 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC 2/2] PCI: acpiphp: slowdown hotplug if hotplugging multiple devices at a time Content-Language: en-US To: Igor Mammedov , linux-kernel@vger.kernel.org Cc: Dongli Zhang , linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, mst@redhat.com, rafael@kernel.org, lenb@kernel.org, bhelgaas@google.com, mika.westerberg@linux.intel.com, boris.ostrovsky@oracle.com, joe.jin@oracle.com, stable@vger.kernel.org, Thomas Lamprecht References: <20231213003614.1648343-1-imammedo@redhat.com> <20231213003614.1648343-3-imammedo@redhat.com> From: Fiona Ebner In-Reply-To: <20231213003614.1648343-3-imammedo@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 13 Dec 2023 01:47:52 -0800 (PST) Am 13.12.23 um 01:36 schrieb Igor Mammedov: > previous commit ("PCI: acpiphp: enable slot only if it hasn't been enabled already" > introduced a workaround to avoid a race between SCSI_SCAN_ASYNC job and > bridge reconfiguration in case of single HBA hotplug. > However in virt environment it's possible to pause machine hotplug several > HBAs and let machine run. That can hit the same race when 2nd hotplugged > HBA will start re-configuring bridge. > Do the same thing as SHPC and throttle down hotplug of 2nd and up > devices within single hotplug event. > > Signed-off-by: Igor Mammedov With only the first patch applied, I could reproduce the issue described here, i.e. pausing the vCPUs while doing multiple hotplugs and this patch makes that scenario work too: Tested-by: Fiona Ebner