Message ID | 5623410.DvuYhMxLoT@kreacher |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1753186wrr; Mon, 21 Nov 2022 10:20:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf40+hg7vZ9IbfRBuHeluRiPgQY2EU2094x1QYl26nTaO0wgVsq10bFHINUiAEAyAawAK4BC X-Received: by 2002:a17:906:583:b0:78d:9e18:b8f7 with SMTP id 3-20020a170906058300b0078d9e18b8f7mr16038168ejn.657.1669054810183; Mon, 21 Nov 2022 10:20:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669054810; cv=none; d=google.com; s=arc-20160816; b=IDxHxAz6lA/68IU92tBZVrIVBpkjimGwbUCFvV+QHgK1Qg+lQW2x5L41UJuHZ3AFrF jcpTQ5U3+a8AF6CKr6G02Ugkh3IgqJR4SYnMRcYDV+kgBGzljs+FyChZqZ2yjZFGQyRH GWPJwchWwxBTW4JNPZXHh2NiuZVEgst5R+BhDpnnJHqAxIW37lig4yGJoFHrnYKigFtM hjKE829jvUk87NzmiqfbZNjygmbeM5n3ZLWia7UqHYYh5iuhcEnNhOidmWWLA9gNczAZ Hjn4TH0KIqQIitg3ARgFdqJg6HQUbe5Sk97tfZDJuhpVPexypHnyiQmM0ChPbyukJyjI oxOQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f16-20020a056402161000b00469a9a595f6si2040071edv.552.2022.11.21.10.19.45; Mon, 21 Nov 2022 10:20:10 -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 <rfc822;cjcooper78@gmail.com> + 99 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 <rfc822;linux-kernel@vger.kernel.org>); 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" <rjw@rjwysocki.net> To: Bjorn Helgaas <helgaas@kernel.org> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>, Lukas Wunner <lukas@wunner.de>, LKML <linux-kernel@vger.kernel.org>, Linux ACPI <linux-acpi@vger.kernel.org>, Linux PCI <linux-pci@vger.kernel.org>, Linux PM <linux-pm@vger.kernel.org>, Mika Westerberg <mika.westerberg@linux.intel.com> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750130816848289517?= X-GMAIL-MSGID: =?utf-8?q?1750130816848289517?= |
Series |
PCI: hotplug: Add checks to avoid doing hotplug on PCIe Upstream Ports
|
|
Message
Rafael J. Wysocki
Nov. 21, 2022, 6:13 p.m. UTC
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!
Comments
On Mon, Nov 21, 2022 at 07:13:15PM +0100, Rafael J. Wysocki wrote: > 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, applied to pci/hotplug for v6.2. Lukas, I didn't presume to convert your LGTM to Reviewed-by, but would be happy add it. Bjorn
On Tue, Nov 22, 2022 at 12:06:03PM -0600, Bjorn Helgaas wrote: > On Mon, Nov 21, 2022 at 07:13:15PM +0100, Rafael J. Wysocki wrote: > > 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, applied to pci/hotplug for v6.2. Lukas, I didn't presume to > convert your LGTM to Reviewed-by, but would be happy add it. I figured that having both a Suggested-by and a Reviewed-by might look odd, hence went with the more neutral LGTM. But I see it was ambiguous. Either way is fine for me. :) Thanks, Lukas