From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 9A45A606A330 for ; Fri, 4 Dec 2026 11:53:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=uFUfiXUv; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=O3Wi1qNv DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=ZoPvCtXc3NVc0GPzIHitfHV6h+XapQ6zBeUlOIxpmDM=; b=uFUfiXUvvMs5uHWDNgbSCGIlJm mP4aYU3ilkU57fw8JffUH66VoSV2R/ODG2PEtu5x8J5AXC2mkp6OJFkh/JfSDg+ZAnk7eUpyvqPnp zokRvvqn5mvTbpt86RNv1I+Dc9Uyv6RNMYXFxhphnEVwnGlpwO7pZ01jIwsxhJBaoZVkMRlHy3Fj2 AkGVVlyLE2POmRP+pslZ3olpNmaTVZnZlioppNp8r4r1j4A2mW+iiUVCH3nU+fTze5NpB1WdUV7fT XLveC4cMAw7fJf0YUgqFRZfJeybOsvDgJLhp2f8pATQQdjfiVTcflG5IOsZ8cTS/Muji/b7GArdwW Upz5Adqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZRqv-00000000BIW-012D; Fri, 04 Dec 2026 11:53:25 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZRp9-00000000AxW-04vj for kexec@bombadil.infradead.org; Fri, 04 Dec 2026 11:52:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=ZoPvCtXc3NVc0GPzIHitfHV6h+XapQ6zBeUlOIxpmDM=; b=O3Wi1qNvr4W1FU7hd+pZL0vSlb pKc8VE63wfAX4JXisqhJfjySQCsnqA/TCXbcTb6LbVVq7JAewXQp/pfxsYtywJKxOrDaqapa/H5r9 xY7+uP/IsuXZc4WVIy78HcSnLAtLc39rQgU9eK0yqQbCjOxB9WRLR1k+NrtN1GLdggH05Pi8OtBJU fjyIhqZP0NFKISL+lbgI+E3x1R6ieUFwRLZtSjRKwqrxpdrTGbzC6hYkgK15czCH4Pluz5mZ2vQCK 4UHeAlUBGmJYiH09mDyMmFTtwfYLjmBwq/xuibBOVU1wrdAWgQq/H613/uAqeR0tL22rLArnkatrE ilxgPf3w==; Received: from mailout2.hostsharing.net ([2a01:37:3000::53df:4ee9:0]) by desiato.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZRp6-0000000ELsz-0sVN for kexec@lists.infradead.org; Fri, 04 Dec 2026 11:51:33 +0000 Received: from h08.hostsharing.net (h08.hostsharing.net [IPv6:2a01:37:1000::53df:5f1c:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384 client-signature ECDSA (secp384r1) client-digest SHA384) (Client CN "*.hostsharing.net", Issuer "GlobalSign GCC R6 AlphaSSL CA 2025" (verified OK)) by mailout2.hostsharing.net (Postfix) with ESMTPS id 29DAF10F5A; Fri, 04 Dec 2026 12:51:29 +0100 (CET) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 1251760CF5CC; Fri, 4 Dec 2026 12:51:29 +0100 (CET) Date: Fri, 4 Dec 2026 12:51:29 +0100 From: Lukas Wunner To: David Matlack Cc: kexec@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-pci@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Alexander Graf , Alex Williamson , Bjorn Helgaas , Jason Gunthorpe , Jonathan Corbet , Josh Hilke , Mahesh J Salgaonkar , Mike Rapoport , Oliver O'Halloran , Pasha Tatashin , Pratyush Yadav , Randy Dunlap , Samiullah Khawaja , Shuah Khan , Vipin Sharma Subject: Re: [PATCH v2 01/17] PCI/DPC: Allocate the DPC save buffer during device setup Message-ID: References: <20261106004218.604799-1-dmatlack@google.com> <20261106004218.604799-2-dmatlack@google.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261204_115132_148533_F5A26F44 X-CRM114-Status: GOOD ( 12.96 ) X-Spam-Score: -0.7 (/) X-BeenThere: kexec@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "kexec" X-Spam-Status: No, score=-4.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Fri, Dec 04, 2026 at 12:43:10PM +0100, Lukas Wunner wrote: > On Fri, Nov 06, 2026 at 12:42:02AM +0000, David Matlack wrote: > > Allocate the DPC capability's save buffer in pci_dpc_init() rather than > > in dpc_probe(), and report an allocation failure, which dpc_probe() > > ignored. > > Good catch, could you amend dpc_probe() to handle the allocation failure? Oh I realize now, the failure mode is that save/restore of the DPC Extended Capability isn't performed. I guess that's all we can do. In patch [02/17] of this series, you're writing that this happens silently, but I don't think that's true. The user does get a splat when kzalloc() fails in _pci_add_cap_save_buffer(). So they know that something went awry and that they'll have to live with reduced functionality. Thanks, Lukas