From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.167.197 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795460462; b=tuNEmSYgfmdXGc6f5lXtBPXlQRrgkx+FOcdDm0mUdClmowbPvSvrsCVAutjiTzVuE6IA JzyyYfFGMFb/f1pbj3HK9JYXtzAb2pv8dgdQMF2BeaUGI11ZVsKVfOkQGZVk4FFQeXQPv /S0jGrbeDuPGLzH3OOMjxm5KtzvU0yMLGbCtWswc89J0Cwuaa3qIuN61aBMGd4VdscLT/ zZfXRib+MDgtZ8MapzbDZNiPXENmnxcxmEQpr6YOz6ChKiBqxFnQRFVQSB2yfcEimr7+v Bhzmy/Us69r9sEpDb/YyVjJmID4c7JLpDIbdDoIEd6QqjAr7L83DbvGkiTo4PsSKLmA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795460462; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:X-Mailer:Message-ID:Subject:From:To:Cc: Content-Type; bh=pH/xf3kQm7acLfNhYZrfRJLXvU+0NBXvSnbGGfIqejo=; b=If7djCQeqb7NcNTczNeYA27xj6hJ5tJ42eXxJUrLGF7mxPkL03VYN9z+8L3KpPriqbFV qhixcve7PUuydy4YRfwTYEvU4xqizDg8TZs/wm1nvWgkub0DajLSHz9HbQP7Fi2jaT2mh nLar77WASoAY+sGLAVxU6zuLuu0vBzqDNtgK+uOeIlH2UHiZ8nXPHus8RjxOaxmbKaOPl /4P/+BqdctcfD4/E+ejFR62YHl3FDakGB8NcYecNpPuQXpuZ7aVjldL9ukNSFhL0iE7k/ DljR89hSnMy+wnHaUKgREJDlVmCtf0Mi700vEV10sZZb4bId5WU2voYQF6e1UBtilwg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--dmatlack.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=UIVf1j3z; arc=none smtp.remote-ip=209.85.167.197 Received: from mail-oi1-f197.google.com (mail-oi1-f197.google.com [209.85.167.197]) (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 57BE8606A685 for ; Mon, 23 Nov 2026 19:01:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 57BE8606A685 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--dmatlack.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=UIVf1j3z Received: by mail-oi1-f197.google.com with SMTP id 5614622812f47-5713cd0fb42so5658762b6e.0 for ; Mon, 23 Nov 2026 11:01:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1795460461; x=1796065261; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=pH/xf3kQm7acLfNhYZrfRJLXvU+0NBXvSnbGGfIqejo=; b=UIVf1j3z+zjne00h5XU5FJQw5NdCjtV8YVOw0TETJae3oRPZyE5HH8g8PKsVTSbE0x nmGMcbJuRwa4Vo8ISo5v2OfQQGrD/9GP2mHcBAekSoDEJ7JnLRvmdYttzwKEQE2WLW4F +OLO66vivT+1BuZAyfNr7j0ESPBZzSj2mbGdBW1hnoBL7wEbhvyfKhcOF1jZrr7RR+PL pvCbtiJwzv+y1HYS2Zq2zILJ4wmRINXg//WTV7pXVnYC6076k5dIpxulJjj3C2Gr22Ho yqqLZ4XJIKdAd1dRI0Dus7rYy8X0lYMUIc/pfJXnEU5jFPtUjjAVj17/nx1q5t9BG2Md HBYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795460461; x=1796065261; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=pH/xf3kQm7acLfNhYZrfRJLXvU+0NBXvSnbGGfIqejo=; b=d05pQyvGN9U9JPdjU5zmPUvYf8j4MUabZZy2wSDRBz/v/SuIS77FqPmAqAINUw/4KU GtSW1ZyjV8s+y6X8RZGMAblICIU1xxMRvB5j+yfO+TPOsdOQtkwxog4v/A69YqfeV4qz Vj72ZS30nHMcbIoSC1u901Ayyhw+6AegFdZdsO4ezvjsiErVCHqPZ/fIJXmJoHo3qCxZ U5F7Dekd08FNy6jZulGNkmpqMF0MdzSnMhiTFgt+fx+wzbObWYXm3wexnjnCPUZKx04C aqmOWeigoSwunYHgH+FLuNlvnoMRmb/8n62P6FnhPmsCx0mfS35seugXJNeS7lZg0kS9 YlSA== X-Forwarded-Encrypted: i=1; AL+hErGK+78bZd12rjWrUJHsYIhLZM8yRSerOarXr0yaIiFxDeQlUh9kfhmccjOw9r9D24tS3EGAOjxXfgQ=@vger.kernel.org X-Gm-Message-State: APuU4Z+B2/qCxChHQNCF0v5Gl7KMDJ0rM9uHlyS89lFIXIym50HNK4lu iHFE+JvmT1BOMGsNCiQ5WZCnOkmFjI1xB1YCliABKndVRPZQbYFFtNOZdDDqLvL4+Ldu5Lw3FV7 l2LE51LjDwvh/Kg== X-Received: from jajj12-n1.prod.google.com ([2002:a05:6639:18c:10b0:5fe:be7:9ab2]) (user=dmatlack job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6808:6d93:b0:4f1:5068:b93b with SMTP id 5614622812f47-5797bb9fad7mr10333977b6e.14.1795460460873; Mon, 23 Nov 2026 11:01:00 -0800 (PST) Date: Mon, 23 Nov 2026 19:00:44 +0000 In-Reply-To: <20261118223704.3286085-11-dmatlack@google.com> X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: <20261118223704.3286085-11-dmatlack@google.com> X-Mailer: git-send-email 2.56.1.809.ga0b61035b5-goog Message-ID: <20261123190045.2166865-3-dmatlack@google.com> Subject: [PATCH] fixup! PCI: liveupdate: Adopt ARI Forwarding Enable on preserved bridges From: David Matlack To: kexec@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-pci@vger.kernel.org Cc: Adithya Jayachandran , Alex Williamson , Alex Williamson , Alexander Graf , Bjorn Helgaas , Chris Down , Chris Li , David Matlack , David Rientjes , Jacob Pan , Jason Gunthorpe , Jonathan Corbet , Josh Hilke , Leon Romanovsky , Lukas Wunner , Mike Rapoport , Parav Pandit , Pasha Tatashin , Pranjal Shrivastava , Pratyush Yadav , Randy Dunlap , Saeed Mahameed , Samiullah Khawaja , Shuah Khan , Vipin Sharma , William Tu , Yi Liu Content-Type: text/plain; charset="UTF-8" Fix the comment in pci_liveupdate_adopt_ari(), which claimed that ARI Forwarding Enable is always recomputed after the preserved devices below the bridge finish. That is not true with pci=noari, where pci_configure_ari() leaves the bridge alone, so document that the adopted setting persists in that case. Reported by Sashiko. Signed-off-by: David Matlack --- drivers/pci/liveupdate.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/pci/liveupdate.c b/drivers/pci/liveupdate.c index 520c7530475c..08451452fa54 100644 --- a/drivers/pci/liveupdate.c +++ b/drivers/pci/liveupdate.c @@ -938,9 +938,14 @@ int pci_liveupdate_adopt_ari(struct pci_dev *dev) /* * Unlike ACS, only adopt ARI while the bridge is incoming-preserved. - * Once all devices below the bridge have finished, recomputing ARI - * Forwarding Enable yields the same result for the same device, and - * must be allowed to change if a different device is hot-plugged. + * Once all devices below the bridge have finished, pci_configure_ari() + * configures ARI Forwarding Enable as usual the next time a device is + * added below the bridge, e.g. if a different device is hot-plugged. + * + * The exception is pci=noari, where pci_configure_ari() does not touch + * the bridge, so the adopted ARI Forwarding Enable persists after the + * preserved devices finish, even if a device without ARI is later + * hot-plugged below the bridge. */ if (!dev->liveupdate.incoming) return -EINVAL; base-commit: fd54e32f7903199e8acb2762dd2debfffe4501c4 prerequisite-patch-id: ac616bdf67b652da754c7b00a368613d345ae384 prerequisite-patch-id: 9c324eb4a47b659efcf7c0c8bb14acfcbf5d615c -- 2.56.1.809.ga0b61035b5-goog