From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D8E22323406; Thu, 13 Nov 2025 21:02:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763067776; cv=none; b=DNR3c+HVhSOvTDvPNiALrLA7Qm2X7UL3Bm02i+xPUZBwvCit/M3P4OXEhN/MfxQMl+iTA/uxzgQY+M6kTzU7UmJPG8FR5FP5AQ3C6BdNUEfcX/4jdf6SUsciGCHmD0wdSh7eE37jNfyK+1Xt6xFKOOBc265nvglgUmf15wC6gpA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763067776; c=relaxed/simple; bh=XCYM0PneB34dkgpd6HhddZ4DMk4Wy8BVlu694U3Kv0Y=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=gQBB4qeJrc1lnYLU0bj1JTkCoeh0OYumA5Z7F26+6mvLaHs4CwXAs1JuKCweeeQwb3MI57GBBgjw9fBjG3P6oZfA7D51hXNAicUsdzvb82DiZ16HpHRgkCi996rilFBxjkCZ60hdIDZAU34EV8nSVpiOV+o99LWRc7bPpzByZ6w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QznaqxTr; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QznaqxTr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4783EC2BC87; Thu, 13 Nov 2025 21:02:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1763067776; bh=XCYM0PneB34dkgpd6HhddZ4DMk4Wy8BVlu694U3Kv0Y=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=QznaqxTrVF703q5hHIzrRmdgY0vvHnkqScL9EikZSt9aUswzTtKYeHNyxsjApN+nk LsHIMNcCDMzDiqpEDxhWZ3SIgliY3izOazQBD5Q91bUiJRXVnwm5YIOvfKegmzkpgf 3J2UtCp6HaFjHHpX96rGcezc1GOSoEMSon59+jxz1MR0Y8HejVjzL4F6ne3FXRWbC8 GL5Bb3KRnsScrv8kKx6fqKoCjoW7GMT8yhEbnGdZ154mS8okDPLSAA9yoxMyMYoYKf 4kW4O0+KFTSGT7XIR2mohWJIAjhZ60NmIES0hoUUHBFbOxH9ORwk+BPjSNG7UUXPl+ /9+eOQz9kOKkw== Date: Thu, 13 Nov 2025 15:02:54 -0600 From: Bjorn Helgaas To: Ilpo =?utf-8?B?SsOkcnZpbmVu?= Cc: Alex =?utf-8?Q?Benn=C3=A9e?= , Simon Richter , Lucas De Marchi , Alex Deucher , amd-gfx@lists.freedesktop.org, Bjorn Helgaas , David Airlie , dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org, Jani Nikula , Joonas Lahtinen , linux-pci@vger.kernel.org, Rodrigo Vivi , Simona Vetter , Tvrtko Ursulin , Christian =?utf-8?B?S8O2bmln?= , Thomas =?utf-8?Q?Hellstr=C3=B6m?= , =?utf-8?Q?Micha=C5=82?= Winiarski , LKML Subject: Re: [PATCH 2/9] PCI/IOV: Adjust ->barsz[] when changing BAR size Message-ID: <20251113210254.GA2314858@bhelgaas> Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Thu, Nov 13, 2025 at 06:35:26PM +0200, Ilpo Järvinen wrote: > On Thu, 13 Nov 2025, Bjorn Helgaas wrote: > > > On Tue, Oct 28, 2025 at 07:35:44PM +0200, Ilpo Järvinen wrote: > > > pci_rebar_set_size() adjusts BAR size for both normal and IOV BARs. The > > > struct pci_srvio keeps a cached copy of BAR size in unit of > > > resource_size_t in ->barsz[] ... > > I'm not sure what "unit of resource_size_t" adds here, maybe could be > > removed to just say this? > > > > struct pci_srvio keeps a cached copy of BAR size in ->barsz[] ... > > Seems okay with me. I just had it there to differentiate from "BAR size" > which happens to often be the format directly compatible with field in the > capability. Ah, I see now, "size" used to be in bytes, but now it's the encoded size.