From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796445005; b=QnFttuAfcNNd8RAXIUvfo8dJuyAI8BHEXPdUvYZwTA7xyrG5dn4xr3bfT6J1K/N511I8 o7gsppTbzxouoVpTC4VCahessmP7XWwO9YCJ+qBE4lS1Y5hbmE/k6CaO60Csk1M9DCYbi 37eBwlNCXaEqvPbUewP+GUcsy/A3hknv7p7IVvFVV8N4SmDMDVjgocYLvCUKXaJLkbZp4 nGUvSs5Fa6dklU2WgXC2I5w9qKlqU0T7uNOwU0abpCUrn/0CjzEL95+6LdqPzst5MIyrf s5QNJH/RvgDgxs0/GnTdXD+YxYYWMfCI+5L/H+15iHUmB57ZQaT0nyVWjt8yBX3KQVA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796445005; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=5nOPASKugEpMoiJcteRQ36eEDuBJeUnvy9VRLaLIApw=; b=5gLtbfPDxJjrOI+p8rPqCbN4NTSshTaui/M78SPJ56Ls1Yz9mPbvJwU3v1uwC/yCgCh1 vvsW+RTSOkWdLJfq31VpgLVeyLftQmpwskL1ufaPCSjNxAg4cX0O4LXxyzP0SNWa9oOef lWBC8kF4GgZLcUG4vdpenLyW7yRQ0Cf4Lgn7Y26mu+zFCjRpPHyWm/bjKXq8E+b/CnleT dj566KkRRnEFb/C7EWI8JxqK0CKL2tRAEiyh4w8pQDD3+pCmZ81yfSUJhzBZaN01DsCHo FuaNcv1u3JdlW3TGWNzWlxbmKzPSEbwni3ksoAmJHm0S4pg0Es1AtnB1HfAuVyidjqA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ghF2HjdZ; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C29B8606A322; Sat, 5 Dec 2026 04:30:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ghF2HjdZ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49EDD1F0092B; Sat, 5 Dec 2026 04:30:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796445005; bh=5nOPASKugEpMoiJcteRQ36eEDuBJeUnvy9VRLaLIApw=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=ghF2HjdZ6nLHkJ4dgZ0BptsU3E03iNyEQDVQg2VoTgv8E/q/jvOePvIjYtmq91kJQ KKDbbTrW8Fe8SADpXCAv6NSbFYd8hMesbujhO9lHKMudGQH0EVDT7YKcywfkGXZms3 LVuZfvKoy2cmru+zS/kltfnEoFBKhuD2xMqf0cpiZz+JeBDsSk/kuJSOoSSdFotlTC 5fCT00maSj6n3u4YYDQN9WHV2kE8wYT6g3pz3fWK8skldiNTX+wHAWJZvqhvNHXhiQ Twd5Dl2J4//5fspFnMAL2kOWNa/+kouOtpGZU9P1Tb7j+RzhFzqlJWwm6r5iTJm6+C ZiB6WC4JQCqHg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v18 05/19] cxl: Introduce endpoint HDM decoder settings Reply-To: sashiko-reviews@lists.linux.dev To: "Srirangan Madhavan" , linux-cxl@vger.kernel.org, linux-pci@vger.kernel.org In-Reply-To: <20261205041453.3946529-6-smadhavan@nvidia.com> References: <20261205041453.3946529-1-smadhavan@nvidia.com> <20261205041453.3946529-6-smadhavan@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 04:30:04 +0000 X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] cxl: inconsistent hdm parameter order and naming in HDM commit helpers -- commit 9094ddf76539be8f49ccc9904f1cd487f715a696 Author: Srirangan Madhavan cxl: Introduce endpoint HDM decoder settings This commit introduces struct cxl_endpoint_decoder_settings to pair common decoder configuration with endpoint DPA skip, and splits HDM decoder register programming into cxl_commit_start_endpoint(), cxl_commit_start_switch(), and cxld_await_commit() helpers. > diff --git a/drivers/cxl/core/core.h b/drivers/cxl/core/core.h > index ee639ac2c6704..da40521171caf 100644 > --- a/drivers/cxl/core/core.h > +++ b/drivers/cxl/core/core.h [ ... ] > @@ -139,6 +141,12 @@ struct cxl_rwsem { > =20 > extern struct cxl_rwsem cxl_rwsem; > =20 > +void cxl_commit_start_endpoint(const struct cxl_endpoint_decoder_setting= s *settings, > + void __iomem *hdm); > +void cxl_commit_start_switch(const struct cxl_decoder_config *config, > + u64 targets, void __iomem *hdm); > +int cxld_await_commit(void __iomem *hdm, int id); > + > int cxl_memdev_init(void); > void cxl_memdev_exit(void); > void cxl_mbox_init(void); [Severity: Low] As reported by Li Ming on v10 [1], should void __iomem *hdm be the first parameter in cxl_commit_start_endpoint() and cxl_commit_start_switch() to match cxld_await_commit() and cxl_hdm_write_range()? The naming prefixes across these three helpers are also inconsistent: cxl_commit_start_* omits hdm while cxld_await_commit() keeps the cxld_ prefix even though it takes raw hdm and id parameters instead of a struct cxl_decoder. Using a uniform prefix such as cxl_hdm_* with hdm first across all of these helpers would keep the internal HDM programming API consistent. [1] https://lore.kernel.org/r/86133d66-2718-4ffb-baa3-ddf0009d53a3@zohomail= .com --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261205041453.3946= 529-1-smadhavan@nvidia.com?part=3D5