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=1794883946; b=BQ6Icu23cDZG72jC+HE7b7RZSBOPx8hTyZRZl4YlFNmWEIqNfDOCiXPJK2T6YCQJ+JLx Fh0MUdQW2q32oJ2U400iJ2YEbMQ8Bz7NCb/AEzOlp0FjYNX5/suOGwom8zjDm5S9L3nQZ p+Bdl1ck0rMq08et8lxE1Rqh3vMHWbjffENt5Zf2s53qFASo/tBwJ9RLcXcRczSvnSC5E juvbh31R1OuhVgxRnyPGjcSF2D0msxBBSoY2lzd5sOfY+jqVouYrhc5FUr9FH3H2pxIjk spJ33a6JaeFmsGPzP5fKdnQanxBoCauz5gEF+fWDg3K6U4VAgHRlvdEDeRJdrd/XoeQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794883946; 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=kzI6c0aW/mh9AQznQVfjYXZy13/SwyQxGlj1DtXWa2A6rfXmxlei5hpiObwYGDrBzFsV paHPBMmJHjOdx/ZdRUlSjPJ2GXAL00Bp5RCeX7bNKP05M2V9a2Uqyoqi0I6I1iR1m7R1M FwxgPNdLeZnYr+TybzLQgUgt4KoNV3D45Cc6PNCXIcrDjqZ7YAu6Ix7n1U+wTIrVYyoga QL2/EwX0IjBV0tGsH1uNevVvUiOU4UDrBBWzy8KExQuxFHrjWNibHBEmRRfph9aETrF0j QaQI2TtEitlUEK/YDh4mfEQZ4Q4x87GXS5tSVQ4uxlgu6fSp4L8B0BZMJUtjmwcbrMQ== 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 4341C606A323 for ; Tue, 17 Nov 2026 02:52:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4341C606A323 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: platform-driver-x86@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: platform-driver-x86@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: platform-driver-x86@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 {