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 A5F88606A32C for ; Fri, 4 Dec 2026 22:55:33 +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=gNbANu4f; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=igDHBoWV 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:References:To: From:Subject:Cc:Message-Id:Date:Content-Type:Content-Transfer-Encoding: Mime-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=krQKpAi/jDShCPPaxL0op5W7RGGznvwsahnf3GqPjME=; b=gNbANu4fEKaZhk Id157BPAte3Qbgyh2ytHyfTdrJPM2YyoAux+WUFt3cBZo7SeUzv2e0En5ooo2qgT/hot2r5qCRPdL ilp57FzYlZf8jujNGTWNS4LjK9Hj+wuJOVBja1iPLS9FVn8Rj82Mt4spdwS4qzBac+lA+vCBvHc0O 4JmEohxPLLCu9HWJTWM8nVXHbN1FyNsVE50uLxzyfgwjGIOBoH/aKPSZBoVGaIV31KrF2M7f73f+t gNbXgfdbveWgSM82voFROIRc87vVF6uZRa1cD68tQBT+zNDlurz76GZtnNGGlvOZ3qfXIF+zC9WpE D1hphr9gxSnWnkt8GKVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZcBh-00000001i5g-1Jxc; Fri, 04 Dec 2026 22:55:33 +0000 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZcBe-00000001i4v-0y6N for kexec@lists.infradead.org; Fri, 04 Dec 2026 22:55:32 +0000 Received: by mail-pj1-x102d.google.com with SMTP id 98e67ed59e1d1-3b51a9606e8so1068829a91.3 for ; Fri, 04 Dec 2026 14:55:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796424929; x=1797029729; darn=lists.infradead.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:content-transfer-encoding:mime-version:from:to:cc :subject:date:message-id:reply-to:content-type; bh=krQKpAi/jDShCPPaxL0op5W7RGGznvwsahnf3GqPjME=; b=igDHBoWVxW7p+ycizsyyS72Adx4aQY7ibOc9lJmeWU5UExSMsIsog3z8kBl1vCbHNp aTeOepS88X3PgizY8vJ9UKfNBpn2sMSXohrWbligekvNhnvFv6qJHxBTIvOBlkCJjZ1r YAGS7hmHfy9wfxfjOGqQrkFOE2AT8tG9RfMZvF0dRA7b3nZoH5NaaRTumAMxqkgexc57 vsHKhrvwHCpmzB/fairvEMdKFeUoSeIcr10rQ0x4sTkHGLqQBnFGDKCDHj9fvN7M9YT7 HRGEzO8W1nkQmMwYDW1yXLBb7EVrwJjpJGZC+Iy0ijIJE3ndpHI1JzpWygl1anzkYvAN HDgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796424929; x=1797029729; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:content-transfer-encoding:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=krQKpAi/jDShCPPaxL0op5W7RGGznvwsahnf3GqPjME=; b=HMsU6WinKtR+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m7WoaoSbe4QhDnh1DDlHg0WG8uRn7EmciexnNZd18yhhYJsXTjPe6UNWA85cz X-Received: by 2002:a17:90b:184d:b0:3ab:4f1:4f76 with SMTP id 98e67ed59e1d1-3b5e06628dcmr3246630a91.24.1796424928808; Fri, 04 Dec 2026 14:55:28 -0800 (PST) Received: from localhost (33.79.127.34.bc.googleusercontent.com. [34.127.79.33]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b5ddc56313sm5863919a91.14.2026.12.04.14.55.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Dec 2026 14:55:28 -0800 (PST) X-Archived-By: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 04 Dec 2026 14:55:27 -0800 Message-Id: Cc: , , , , , , "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 From: "David Matlack" To: "Lukas Wunner" , "David Matlack" X-Mailer: aerc 0.21.0 References: <20261106004218.604799-1-dmatlack@google.com> <20261106004218.604799-2-dmatlack@google.com> In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261204_145530_312219_ED41CD5E X-CRM114-Status: GOOD ( 12.60 ) X-Spam-Score: -17.6 (-----------------) 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=-13.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIMWL_WL_MED,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_IN_DEF_DKIM_WL 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 4, 2026 at 3:51 AM PST, Lukas Wunner wrote: > 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 tha= n >> > in dpc_probe(), and report an allocation failure, which dpc_probe() >> > ignored. >>=20 >> 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. Good point, this is actually not silent. I'll fix that up in the next version.