From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=83.223.78.233 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796385097; b=Xhr9eAA2t3iaq1MEdlYCNGkAcLrmBg89nnCRCMOlQ/CC54UEIqN+sralJG8bX6TFqT+X WciRgIaMXBbjx1frwO1OmZjc3VnYV7unfmv8Qlg0S14kDwbR7RwAeCSKNxpssRQUuuyen 8MJKnDGOKHpFQYx7q0pSrHBSaulLbVh3yHewsNt13Sk0Oy8pegR7Q5URL6kSr7NRDW3ZP iKkqS/l2dEzkvH8IAPrxuUthjDmgiMPb0HtV5dwgFicfu+5/bwuvmDHYKP7WAwRIJrN8l m3g7JkAQhZA0hpgtA0xACpHhYAtInPf6r4HJH98ghZwA3zpTstfhYv8brN/dzRHiOVQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796385097; h=DMARC-Filter:Received:Received:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=ZoPvCtXc3NVc0GPzIHitfHV6h+XapQ6zBeUlOIxpmDM=; b=lFjmdu5SLjW86tI1alFZzsLb+qRwNB24y7UP9VdCLfg7uuvGWHifAjkHkge+O2pse8u1 PM1YrX6dMieameU/zFEh99uv3q/26ohZlXrf6ZaLLCSzd5bEMNKOcdkjX8gztENntOpVd 8kofuxDeRwEE+A0F3ItWjs3d45sVYK43NCwQiGog1VQTbEfQKSWbYvmj+N+5BQ8uphT7o b5oLd6WHEqLA2sddUMqfqpBdC3xWUZWd/r0lus7n5mmzb4gocwYOHnl0ge/xBAQvDVqTC H6GG9Au9k5tWXZTdB/BWD1/l58nXXV+xvOD3DKBqaI3DtA/036Sin1XB1Wx1I5JGI9A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=wunner.de; spf=pass smtp.mailfrom=wunner.de; arc=none smtp.remote-ip=83.223.78.233 Received: from mailout2.hostsharing.net (mailout2.hostsharing.net [83.223.78.233]) (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 B25B2606A322; Fri, 4 Dec 2026 11:51:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B25B2606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wunner.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wunner.de 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-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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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