From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.216.44 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796424930; b=Q7UO5l4DH2S0Wpnw647JIy20taWqYPxS7UaP/oXXEGBFOfarPmqVwrlgTtoBXx0/75gH geKyo+ehW38UDKO+xtdsaoD9o0m9mIcoewohkycPxt19Yj9db7mDCsJXCrUH22asr5Ajp 7cHD/j5xolHj8imDktRctcGE3C09Tsd58JQD7rY8buF5YTfCJZaqJ2pyT0ishu5HvM0E8 AqoEOVDx/znxm2zyRG3n0XJP47nnXQISnh/hacoBwhi/Dd4d7rBdiC+0OxHu9TRk6YO5p lItXIgx1W4SGnIWo7emxmkk4auyClRLJaxptDCWIuWPXhzWN+iWlq8U/mtkdRCZzinQ== 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=uKlJ+R7WGfuqA5vkej3k2uyBwMXtAQbWieNt/KbJZ6qfxMlYUo9x7POjC2EAJTWMQdfy LtSkFf7BrFHE1WmdKu9SHXR+bWUOEQSZAPs5K9e+kz7n7B+Fc99I1njNXNvq9IKftyRoF GZIBtASVaWh6M2OkAB2MzVZzRT++youxLo0ers0t/hN+zEFA6M97ZpObqep1TIy/vN4yG B6w4g0dWObws9ZxVVLeoYDSYgtahGMeLJjE4izMviCNucy08pjdbeEmCFnUPsSLAo+NhP ZcMtwztuXQO6ouIxin/3xJnJWceKTlvBMmgRONUvH4ZSv36QyKRpE0wr8izHyMouKFQ== 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.44 Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) (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 0C0EA606A32C for ; Fri, 4 Dec 2026 22:55:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0C0EA606A32C 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-f44.google.com with SMTP id 98e67ed59e1d1-3b4021b572dso837333a91.2 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=cSvLgOu34Kw0YAtvUv0mWOpWUvLQwPQ/uicinfbHeRKQc525OhBG49/4eDqPP8eeDM ziAq9NQFW7DYEY0sJ+UlzOnnZNJ6x20DYsnCTdgcKUBuhEa5hG61+K/CTv2NCg/6qYlf eFcvEf+z+zzbYHB1ez8cbno/oZnDcs5O68W9YUT2midUUOJM1y7QDoocC19ROMMiY+vq SpO3A0L7HuTsQC0S94By6xp8wxz5c2d2dmcnTkJG8dY5hts/bhQSpMiPEBKELOrPT49v SJ2hGxbZLEiD6/G11xtJ3sT8S5V7tL9fVdckp2lsnO3kLp/X7/HtnlksdYuVl3fHWBjQ 4Jpw== X-Forwarded-Encrypted: i=1; AL+hErG1+p9lOqv11D4WJgtYEOnmnrY+U5iFE18Ca29C2l9MFZyNLdNeXcruSdaWpDnWeKQZBEJZxhNdTRk=@vger.kernel.org X-Gm-Message-State: AB4q+uGVEE1YkFLpoYCxK8Rd58ma91y166q4fGoWw2wid9lMj6I018zj xTauw4jMo1w9i+OUinK7BZEZDcA6cq9mBhbQSmOJvVzEhsHRoDM8IGz7QEmnxuYt7d2+Y5Gm/Un HeRcd2g== X-Gm-Gg: AZFdTZf+Q25KwCQS8JlejfJxs38wzrXNY8p199hJtUR6Soji/+N9dx62/OUHn/QmCsK BED2DXutW/fvwlcBwYdVxIB55kdJy1rMVujoL+ShWpo8sQXWZF8fAeGUjKnz7WL9LjRHY2xhCDB E86AhaezRyUO5we8w0d5rfwh2JN5ZDR3FCfyJ+bMd9K7Xc8PXg1B85Nabk1I4+VHU0ugfu1biGr mFeQ7mQOE/mPFCwt5iJmGPdXme4USfpXsCaPrykV+Zk4NckA7g//lGVHv49NqG88cYos10i+pEg 105eXL6+XIvt7F+j1QgLvCTy8qMunpwsbbjG/745wB47mgNpMwq6VuZhOQbY5FUGjwBLRcwGsrR btzdCvbZZxd53gTaW7FmWn/j/L1rZy8wc59hcw8AsDfN96QTS+W8TXZsNAbmbCJkw305/UMRw2g T0IZK2Ji1KfZdhqWNYgpOk8fn2nz/AwCYVLz8eo70feLeTQ4zS550XVNMOLDlZfOciEw67NtGLU J79BtYR1PUsZteBuhjckLo1NYmx99s4bee/8y38h5n+m4GDoDkGMaheBFTb3leP1EnMSXiyC9th rKFKpLWNw4eZ9V8KmUywY016ws+aG6kIQ4vpGjpExFqYc4L1MThCmhvxV1sgQXlt 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-pci@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.