From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.217 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794883947; b=1gnaURuOtuTmIfR7lmsGjbw3BgwuuFUBasmeg+mrLChaaZg7YBEWyX7RC8s/0f859ZhR /v+ClOdt/MVb8M+m0zuyEeSDqu29klZXil4Kakg5Ck8H/f1lKLZZ0OBZrqQtc4QfMvShw 9/DkGY5Wf6ZFehqUa0crefLImdj43GRMyS39zLe7ZnnKDgcKSUANszWmJ+KN5quLbDQv8 WOWa4nMIp2i3rtWcP+yLrYXJIrf49UEB4trVaNPDoO8C11TokPlWr8CdULoi2KazUFI8t vXFZgxKsVTJbVAiksGwTJiKbEw4XmAiYbgzd8bK+6qFx1PIJGalw7gbA9fcHEPlKxbw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794883947; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:MIME-Version:User-Agent: Subject:To:References:Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=JgfoU/2rttrrhzPFJX09pmaRfF5u+hpZcsvo5/+6at8=; b=nF/E4lD5KMxt0CYI6hQEGURE1W+f+FoDKybZhBL8pWaSNMlsrN3RcrP8Qs+Y6g86UU4R nu0+elL3BIGnBvfa9ACGgNlm8TXJlhBHb1XsRU3D6izYTrA2Kn0QtnQjbSVqKpHVTCsed ZEAIeF7ZZ1jgg7LzyGfSnKFmnzhlrP6zQjGL5qet0J+Tndn+kJfNpH3+gRbbI9YleCoZz +btJZvEPxYjxpMLAwYcsBd/ysCGZejbd0DffmRHBbScPWGk3LlJOziRTrjjwtljoxEXI5 h0Onk6Jr1lnC4zxt+h1DtMCyhY/QK9yI/S8QAubrKWDmfy9hOQt1O0nZFHBKBIlwFgg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=XgThOSB3; arc=none smtp.remote-ip=91.218.175.217 Received: from mta0.migadu.com (out-217.mta0.migadu.com [91.218.175.217]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 434DC606A329 for ; Tue, 17 Nov 2026 02:52:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 434DC606A329 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=XgThOSB3 X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=etM72AxM7HyhOHVdSZdb44ly+cIJWbzbD2izMnrOzLc=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1794883944; v=1; x=1795488744; b=XgThOSB3IFcpCbXcSK2JzyUMhn6hYAZzB8PHyLC1CdGkM6QTv1kHwJ9mj3SIXzHSWYO3v4v9 UODoPTQ1O+RuNYGUpqmVDLqnH6lCEcbXXA3x5uRPVGHf1ZztMx8CZAsSsi0A7wUQnK5FwCTQDeQ xvMnrxH6ywtkX5rOnRXFTAsw= X-Envelope-To: linux-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id ad60b2bf9274a504; Tue, 17 Nov 2026 02:52:23 +0000 X-Mizu-Trace-ID: ad60b2bf9274a504 X-Migadu-Flow: FLOW_OUT Message-ID: Date: Tue, 17 Nov 2026 03:52:23 +0100 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 08/13] platform/x86: eeepc-laptop: Convert to pci_assign_unassigned_bus_resources() To: =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , linux-pci@vger.kernel.org, Bjorn Helgaas , Lorenzo Pieralisi , Rob Herring , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Corentin Chary , "Luke D. Jones" , Hans de Goede , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org References: <20261116152403.2672-1-ilpo.jarvinen@linux.intel.com> <20261116152403.2672-9-ilpo.jarvinen@linux.intel.com> Content-Language: en-US From: Denis Benato In-Reply-To: <20261116152403.2672-9-ilpo.jarvinen@linux.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 11/16/26 16:23, Ilpo Järvinen wrote: > The eeepc-laptop driver scans single device and then attempts to assign > its resource using pci_bus_assign_resources(). That function makes > bridge window sizing disjoint from the assignment phase and is going to > be removed. > > Convert pci_bus_assign_resources() to > pci_assign_unassigned_bus_resources() which is likely no-op in this case > as it looks like bridges are not involved here. Hi Ilpo, I don't know exactly why, but this smells like what I had to do in asus-armoury: scan the pci bus for new devices. It has been on my TODO list for a while (and I think it will need to stay there some more) to try to understand why these are even needed. Dissecting the ROG ally xg mobile ACPI I found the signal that is supposed to tell the kernel about the hotplug, but it's either not reaching the correct part of the system or the triggered rescan is not on the whole pci root port and the linux kernel is searching for changes where those changes aren't possible. I have some more notes: In https://uefi.org/specs/ACPI/6.4_A/05_ACPI_Software_Programming_Model.html#device-object-notifications I quote: "If the device is a bridge, OSPM may re-enumerate the bridge and the child bus"... The kernel has handling for this already with ACPI_NOTIFY_DEVICE_CHECK but it looks like what needs to happen isn't happening (probably is re-enumerating only the child). I will need to debug this eventually, unless someone more skilled then me in ACPI and pci takes a look at that and solve the issue properly without triggering a rescan, since the ACPI notification is surely there (at least for ally), not this exact case. Best regards, Denis Reviewed-by: Denis Benato > Signed-off-by: Ilpo Järvinen > --- > drivers/platform/x86/eeepc-laptop.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/platform/x86/eeepc-laptop.c b/drivers/platform/x86/eeepc-laptop.c > index 8a640c25830a..7394221cbad1 100644 > --- a/drivers/platform/x86/eeepc-laptop.c > +++ b/drivers/platform/x86/eeepc-laptop.c > @@ -609,7 +609,7 @@ static void eeepc_rfkill_hotplug(struct eeepc_laptop *eeepc, acpi_handle handle) > } > dev = pci_scan_single_device(bus, 0); > if (dev) { > - pci_bus_assign_resources(bus); > + pci_assign_unassigned_bus_resources(bus); > pci_bus_add_device(dev); > } > } else {