From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.216.43 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796424930; b=XF/SYPAm6sNCW7edcnYvKKQIry3NyFlIJxged/Q1NL/HxQOefm8wFoWcmOTxTcEeVAZH 7TXUf51xlDat8AIL6+Ul6aYoqwlrOdlrRV0YIfGBHiysgNUYgccbiUWdEW08mfD69USP/ 67DIE3ndLIAzCy+a/l0/O7PyFM0DyxbXPBcnJCGB8Upk0TYPaoUvo0jLsl5RCkon5Q+Co GTjRKVQXJzkkAGE4/yAf8S73lt5Gj84cTP3AJI5qFBlcGqtwG5oGgxI0TSqET07W1exar 6YVaGBc9jeZaCS0UlNGJsvgQWnYLc1ko92AsqKu16Kx/4gasy4VAfmaAnIUGS3OVcOA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796424930; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Mime-Version:Content-Transfer-Encoding:Content-Type:Date:Message-Id: Cc:Subject:From:To:X-Mailer:References:In-Reply-To; bh=krQKpAi/jDShCPPaxL0op5W7RGGznvwsahnf3GqPjME=; b=Z62qqaKuUtd+89p7EQGhF3PXXj6DQM974eO/rCRju9FvhyKCgogT5YTDBV5cUtwkr0ii puoWRmm1QtfS8INImPLg8NF6rK3rNDs8Y5dar+H5HCP5iAoiRl5UaFK73bzYofyiWeahk UeJ47Iq45xHWaVj59RVUgDl2VFYccaEZ2lwTOGiW6Ikyyo6m6R8q16oka64EeJvxPd6vL CD+KzBcNbbdtANu7gGS420HWBVcs14rJ7IaWG+cYl5MsLEdkWUhyf9WXEqMJm4GEYfBPs vWiE0bs5+XIWRTIa7vh5Cdk1NH+sc2nGQlOCNoNeu1JacLBs++2c70/a1bvfT2krlug== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=dNWZiIAh; arc=none smtp.remote-ip=209.85.216.43 Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) (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 10DC9606A32D for ; Fri, 4 Dec 2026 22:55:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 10DC9606A32D 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=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=dNWZiIAh Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-3b51a9606e8so1068824a91.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=vger.kernel.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=dNWZiIAhM5xicPa8oCl9CBjsQNR0ekuboBuCGHC71w7TG4E4E2WQm667kfFOiJjXqW i7amsnXctMlt6Gqn1Ap977U4iGn08/MyFIB2tndSooAyaoNMb7vyOgKZ577EneSrohmP g04/7/tK+UcVGoxRX2+1VqJWSjT9ZilzUhA4HWgK0HyvqFv6nIwIPPvspubK3o9zZ6yC p4c48F5lE7nmG5hSQqswV0vSqr/WDBB4geWIJZOa5tMZh3+P5TtN/19ETSbLH0KwzDhh JzhWL8uvD23Kl1sb3o5BtrRUAocHPhgCngkQz7ouge5dn43jrjmBcoAY8Kymm+20zAix fN+A== 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=kfFLqo68FE9358AVc7cncQzc9Jko5pwxK5pepEn2Cq53kMbPTUvqhHDCJ3f/zf3bXG TUx7LPBBPsplLBUt9KAs70kHjXCMWmFpIXckaTZ3mLSrwCVzEZvFTjC9dZ1fhk34JzSE lHMzltpxKZ1VcnhmjCgm/ZC+hNPddinb37q8lzPQIwXKf0fKLHCwoojpCYHkEy6HRXCD nOF2B4ibbJsazNd5gmc8D0EIR8Mf5MQvvOfGHXWDI7WoezmTjv9PBXeNYA29nD7GgzzZ 9zmAPuJ2QASASd4zGIE/PORbMs/UxICtqrkila4sYAzSvPmgJEu1iSepWVbK84Q5H38h AqfQ== X-Forwarded-Encrypted: i=1; AL+hErH41SJAvO88s2aelHyRJKhx8d7yqUlV9lSZd+C/Vw/qkteSCXYhkBBHzbKCVJweCXp1QeOswngXkYCPSDM=@vger.kernel.org X-Gm-Message-State: AB4q+uG/df4DL9tfKS+o7CMJzx2GpLmsa0o3sE9xM24dsBULS/VJjQYH JEQKFbGW9WYYHao8o1gWUBRK44aLbTNQVTYRpi7ivB8nbz9yUDjA5E7+KY0PdZIHWQ== X-Gm-Gg: AZFdTZfC71kejekjmIxQANYegspMrGM/PITjcaviBNen3lXGVsew2ls56QOiw/xjmvs ltMTNoJYd+NaYR8LZtW4zCbffYWsAbw4hSpr1jg281GOdzUYdu1VaXXnftq2ImFHBSrlooX/u3H AK5GIdEnGSWYw5hyBHWMM+9JmOyR1B/drHZ6Kwlthh+osiRmKCuZAKOb2YmAVZ8ChHyESw0nEdj u8RTl/xf0q0XILCTcZt6kDL957Z3j0uaTwPgUaCfx1Gww3L1nSmobBezQbI81jXaTUcC01gxp8S OIjXOpaqaontELZ4xb5+WJTQCdlz0//njn9ElBdtfmxqn4jPFIjY6fdSdqvJ06p/NFRp21WrhBD 7gJKPueLF+GGIT9cYKvnFfzZBcvNbHo/JQkP/v3LBOxrYrjyHGoo5YDiPyS56dYk+ZnTYCiJv6w omxZmBftq51LGfJdjbyK7/lEZLmRYrKBEDVCUVjy1nCo4HxCsY5rK1seERxXvvQY29GKR6vv5hw spfM1839qcElsZNI66V2tNgbx74azOf2B+5STY9u+vvBQoePUFVqCKkBGUPnZkAREAqPLhwshc/ ZCc5JSjOzOtpkrfq8Kh6EGa2ucaFY9HzbdDF+0O2Mj/b7Atx3DQTLcU6FzA5Fj6s 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-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-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: 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.