From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794849175; b=Q8+QdB+MpPfj5N+BOSmVtx6vl90r3tcJib/e/yAVRiFC3SL+JJhco0Y9F65zNKGa2SuO GS1ADb47bSklBuQyv2Dijq3Iu3GYz72GpxcL6eBmV26j+Uzyr39JYNPcrX1IVn8JVroOd 71ErAgpwbX/nhPKcvTM3ccWozkcR8glm1df/zNWVwiS0Jh6zP0IlIDg2DAXm8gl566lka NB+FYo1OS51I0AwgwmSPsYzrseYS5d3V844Oz1PWKe2DdyJ6byWCdUiTfj7oqSIv+CZ54 6N3xYZxQJ4U0jgoVHSLqURdrXVVCzcILCtGMWJ69YmW1I0ZzuCGJE3a2uBpheixKryw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794849175; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received: X-Received:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=ND6MCiJs7gVtLtVEYGeGji4z+whT+xiFpU4NkGoFN1U=; b=RLG4c02m0TWzsnHwjhwghxAReigVdxJZNrEKgVzyDokeDDSNh53nNFiSQTAe/LKGRsIA g54iWz2OJ/x6XjY1hFzL1Yu3HVHggaBIUZJiii+u6VK7kgUMHL+o4nGS123zK7jBPDCF2 jWTUGb9rMdinEDPyQqdWqmIoySiClYBjkD53m8xvKng27hsSsZlItJ8fBfdMzNtifo2pN HxT5zc8cxYD+3VUffAvsu3J2dl7m9um/JpLkUbDj9da/N1GCGHw1i42XeXhOq8a4YsJwa RPX056uyrs8fWHue5LScTkHmUoGiTP8N9CXYxLPnD/93blBq9vGBqwsIZRXINP2uPuQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=F4c357ey; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=D3Fk5c7l; arc=none smtp.remote-ip=170.10.133.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 94F48606A339 for ; Mon, 16 Nov 2026 17:12:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 94F48606A339 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=F4c357ey; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=D3Fk5c7l DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1794849170; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ND6MCiJs7gVtLtVEYGeGji4z+whT+xiFpU4NkGoFN1U=; b=F4c357eyZMyXP/UMEu653zKsFyb8PybU1JnViyC9CC0D0jqdcFEKBW9pWnG4OjCwgBvbbY iJ7Pi9KctpCk4YseCv2zye82vspsvy65r076yFMjfB6eRT1zM4Psgy9uNt9SmJfyGaZQ3z TIjlWlq7MZ5t/xBGEgPDZLOaA6MHLdQ= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-10-LYl3630VNBGcUUQ5GulKuA-1; Mon, 16 Nov 2026 12:12:48 -0500 X-MC-Unique: LYl3630VNBGcUUQ5GulKuA-1 X-Mimecast-MFC-AGG-ID: LYl3630VNBGcUUQ5GulKuA_1794849167 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-4ba078abd78so22769825e9.1 for ; Mon, 16 Nov 2026 09:12:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1794849167; x=1795453967; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=ND6MCiJs7gVtLtVEYGeGji4z+whT+xiFpU4NkGoFN1U=; b=D3Fk5c7l6VjK/qUkqONm/a+t4xd5potOFEOUoLKPIiy7eyVMImHaiKaXITcScN+7/Q vTQ5GFsHjY0zZG+X568mauTZbf44Bqjy+yx4m6auYW/uQAqf5hKEsujKhA99mwhymodq 96zOTX7AoOKDjBeq/u/a1EkfzsLOYVZU9LYu+zqzOD1qBJa+QMHmNfZfGAQZ0yvBJg7+ rOcojbfBOXwz45V0lka0TfyOTPSDnioM8B1vR6ENT4wdsS5CchYcQV2BW12ka0B9IfpW KCU+YqZq0azWuY0YHsWFOf6kmnpc/thByH3t+UIKLBP8C/VOLS8ynGoGmwhlHRTPBUy1 +zUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794849167; x=1795453967; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=ND6MCiJs7gVtLtVEYGeGji4z+whT+xiFpU4NkGoFN1U=; b=YIcXyCL2pilZW3pT/sOtFiuyhLJCmxHjq0351cMLo1MAsckAjzIWVikKDdHjkF5loa TB4kVGGsvL7JRN802AKlUhmCIELe+Mk5R5KI3K4za5FK6VFKkB+kyt9WKcY403llqE1n K5WR6LeBvl8YBVqfF4AXdlcjgww/OGW+t8DTOXnsP6qNfZONIow72hhWACBWcigmv1Zq RFuO7thn9ENawWjHUUBhdB/30+UdR8Eane0O2sRryJpn0KMZLKvjseqEb2OMH4kaFScY qcIAOaumHGjOWIWgld9jOAyQTptDDf9sf8RMaNbGpSWzAJJAnX4ERcrBmSWoXBr6ZWNQ ISXA== X-Forwarded-Encrypted: i=1; AL+hErEQHqL8o9+cUldCu1ScJWX72Er2vzl69s7F4B2WdRqX1MyCkUQH0jpWFXO6JzWMacC68k9iRIGF5DE=@vger.kernel.org X-Gm-Message-State: APuU4Z/f+6FETl24KzoN6nOlMfdfDxr+HxqMgnIFy8BvPSuuEn9XeIzR 8KD2gIyJo/qz4vVhpCeuO1ed10R4nREHrHjBFoibCdjQfih0iDzJvHXrszUoOMhcBqjztegABj4 b6KoCCuMs9athp2fPPEttXmAEmcFDWgiVM5EkVdCntkQGN8AhxMnWOBJ3BRmP1Q== X-Gm-Gg: AYBFou0MQDka/4Y/royW/W9IIAJs/yo7Mijkh4ftQWqs7IgGk333/UFygX8Fq6AeJ3j If9Ch1xyAvw9bRgdfi9tKnHMHFwRz5O7B8ytId29AmC+8pr9FINYJ2qJbx/b+OH1aWzJJkKPam1 WvlE90484xPnG76y1t1oCK4730zeawlycqlsClHPWeMwqqd4DsF8l3cvOXx2Cw6vcLFi37jF7rz SJ8CPNwsFdw9QJI/+5aBTbqntisqmlvndqq+EFAW7QYG4+lcsYg5FbJ41nX90IgbdSUPWyuif/B 3NUUEnjrxL56T0g3vZTdqrNKnb2UpZlfMiwaBqqJvHm3YJSHT0n7CY5NMxTPdeDa3a55YRx5b1T Zg2Fv3KyU+EY8ojt1rrLc3T6vLAhTHQRBT5gRHiI6DA== X-Received: by 2002:a05:600c:e555:20b0:4ba:761:97a1 with SMTP id 5b1f17b1804b1-4bb55a50f1cmr158546535e9.14.1794849167278; Mon, 16 Nov 2026 09:12:47 -0800 (PST) X-Received: by 2002:a05:600c:e555:20b0:4ba:761:97a1 with SMTP id 5b1f17b1804b1-4bb55a50f1cmr158546165e9.14.1794849166849; Mon, 16 Nov 2026 09:12:46 -0800 (PST) Received: from redhat.com ([2a0d:6fc0:151e:a200:7a96:1b15:81f:ebed]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb7813fa23sm7270025e9.2.2026.11.16.09.12.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2026 09:12:45 -0800 (PST) Date: Mon, 16 Nov 2026 12:12:43 -0500 From: "Michael S. Tsirkin" To: Sebastian Ott Cc: "Rafael J. Wysocki" , Len Brown , Bjorn Helgaas , Igor Mammedov , Fiona Ebner , linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [RFC] Unrevert "PCI: acpiphp: Reassign resources on bridge if necessary" Message-ID: <20261116121123-mutt-send-email-mst@kernel.org> References: X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Nov 16, 2026 at 05:52:23PM +0100, Sebastian Ott wrote: > Hej Folks, > > using ACPI PCI hotplug with qemu on ARM for a device with a > BAR > 2M fails because of a resource allocation failure in the > guest kernel. > > Without ACPI hotplug the same usecase works because the native > PCIe hotplug controller would increase the resource window of > the parent PCI bus. > > X86 shows the same behavior but default resource window sizes > are different and qemu can use ACPI DSM #5 to hint the guest > to keep larger (predefined) resource windows. > > Efforts to adapt that behavior in qemu on ARM failed [1] > because they've caused regressions elsewhere and maintainers > thought that Linux hotplug controller should be changed. > > But this also has been tried before: > 40613da52b13 ("PCI: acpiphp: Reassign resources on bridge if necessary") > > Unfortunately that led to regressions as well [2] and the patch was > reverted: > 5df12742b7e3 ("Revert "PCI: acpiphp: Reassign resources on bridge if necessary"") > > I've tried the reproducer mentioned in [2] using recent kernels for a > couple 1000 times and didn't ran into issues. > > Could we give this patch another shot? Or does someone have another idea > on how to make ACPI PCI hotplug work with large BARs without breaking > something else. > > [1] https://lore.kernel.org/qemu-arm/0de640a2-8807-69cf-4429-672263e3e759@redhat.com/ > [2] > https://lore.kernel.org/all/9eb669c0-d8f2-431d-a700-6da13053ae54@proxmox.com/ > > Thanks, > Sebastian Why would trying the same thing again lead to a different outcome? At a minimum, I'd expect an explanation what changed. -- MST