Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4681484rwb; Mon, 21 Nov 2022 10:27:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf4ry1xH82zUuvSbpJ+0v/bQSSnEKUCK1uxnX3rukgfphc+rbycLG3O2YDWPZdf4NrTZ2C3l X-Received: by 2002:aa7:d999:0:b0:461:7f5a:e04e with SMTP id u25-20020aa7d999000000b004617f5ae04emr1662585eds.389.1669055248881; Mon, 21 Nov 2022 10:27:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669055248; cv=none; d=google.com; s=arc-20160816; b=kAworcvY3A/Q8NkDWs496b7lJVzDcwNNwqneaJuU6oPP6c1XSmyrlRTP74c7TNbN2D PUDwkGqay31QiZjDUS2SIHdr2s8YV+69WXLYKwvRggRa+rdUmbxVGVBALSHC6cgELwKU nfPE5eRFKfbbdLP9o98ACIzDY4EnPaWucxpDTtW29RtD5DyZkuLgHTYwHX6t2ClaYCy7 Kdr2JZjTDBWHqHhtQ0KFPwS9t6H3wrSSaU6ol40HqlV+E4WeD9iTGUKC/V4+jAG0Aq2U OXjzmojyjaXxfJ+brn3JUFgf1dUiRgSg65u8JLw/UspeSKXsA0H7K0TPm0FbMqlRo6TK RCtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=REfWzz+VbHmMFmeEOtl/nNSnLeLSvPUaxU3VaQmtxEg=; b=iKDLBRNXfYAwI2XMwIRVYam/Nq+ENji2+u127qWSmN4FF6MY21PHQ7Zz7zdrJ3nOnk UYA1p0Ophbi06BCZ2o2BSsKlzWrOF4Ru16mHwfIRSICGcZhcQHiKV81hFCuq+cDbq26L DynS1nEbGS53CZwPiAXD3IC6jFgD6oDxjx90H9WbYXWD3F2Ru54G5Izym9dHFu3A5jC+ pjnW+U2xMiGH9xG8NOkMJ3DUayJsiPkSCy2+wZO1bfYbtJMjOCHG/Vty6jx1ms2qCo+p FnHubb75Pz6QklwuZ7JO604mmgTwcTon1JK6MDHFEDQ7wQEeU4foRsrcrdo29sSk5SQu d8sQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hb44-20020a170907162c00b007b2b5ab155esi7097697ejc.363.2022.11.21.10.26.58; Mon, 21 Nov 2022 10:27:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231201AbiKUSSh (ORCPT + 92 others); Mon, 21 Nov 2022 13:18:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230291AbiKUSS1 (ORCPT ); Mon, 21 Nov 2022 13:18:27 -0500 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 122F0C72D0; Mon, 21 Nov 2022 10:18:25 -0800 (PST) Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 5.1.0) id f83118289e0b1ce8; Mon, 21 Nov 2022 19:18:22 +0100 Received: from kreacher.localnet (unknown [213.134.163.140]) (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 v370.home.net.pl (Postfix) with ESMTPSA id 200C7780F76; Mon, 21 Nov 2022 19:18:22 +0100 (CET) Authentication-Results: v370.home.net.pl; dmarc=none (p=none dis=none) header.from=rjwysocki.net Authentication-Results: v370.home.net.pl; spf=fail smtp.mailfrom=rjwysocki.net From: "Rafael J. Wysocki" To: Bjorn Helgaas Cc: Rodrigo Vivi , Lukas Wunner , LKML , Linux ACPI , Linux PCI , Linux PM , Mika Westerberg Subject: [PATCH v1 0/2] PCI: hotplug: Add checks to avoid doing hotplug on PCIe Upstream Ports Date: Mon, 21 Nov 2022 19:13:15 +0100 Message-ID: <5623410.DvuYhMxLoT@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 213.134.163.140 X-CLIENT-HOSTNAME: 213.134.163.140 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvgedrheeigdduuddtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepffffffekgfehheffleetieevfeefvefhleetjedvvdeijeejledvieehueevueffnecukfhppedvudefrddufeegrdduieefrddugedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvddufedrudefgedrudeifedrudegtddphhgvlhhopehkrhgvrggthhgvrhdrlhhotggrlhhnvghtpdhmrghilhhfrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqedpnhgspghrtghpthhtohepkedprhgtphhtthhopehhvghlghgrrghssehkvghrnhgvlhdrohhrghdprhgtphhtthhopehrohgurhhighhordhvihhvihesihhnthgvlhdrtghomhdprhgtphhtthhopehluhhkrghsseifuhhnnhgvrhdruggvpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqrggtphhisehvghgv rhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqphgtihesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhpmhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehmihhkrgdrfigvshhtvghrsggvrhhgsehlihhnuhigrdhinhhtvghlrdgtohhm X-DCC--Metrics: v370.home.net.pl 1024; Body=8 Fuz1=8 Fuz2=8 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi All, PCIe Upstream Ports are not hotplug-capable by definition, but it turns out that in some cases, if the system is configured in a particularly interesting way, the kernel may be made attempt to operate an Upstream Port as a hotplug one which causes functional issues to appear. The following 2 patches amend the code to prevent this behavior from occurring. Thanks!