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=1796393697; b=urFizhqhHqMW2Q6IRJ5Y6+LLEZ+EYj95KjhQkaS8R0wEZgrTr5nus2zUyBfw4PVl+nNr 1oQVn23jvUrdLnDa0SICuP7MlcFZ3vLau4vKWozidt8B4eTFKsZSP2/FW2jPz0c/hlo2F oFiLQGB5pB9AJJ1jwgtYveqA9KpI7Tu+yN26soCWXJdORiaGlvX84erT4ARS+hbK0/F7P 9ts4k1EJClBkMxcgBk/Wiw4zWtNtLr2Ux80FByKuyt60WiO8klxgSZvo6RzYdd/d3I2Pn JGgJUwm/VlOCtstNwfys9VzfHqcdkrtuA83lTYr5CBCXTzLloZcRSLqbfIhBYrKO/oQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796393697; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=5BchLxwTDLTeUWYo3oHJKCejIEQm3ORefRJerD0Css4=; b=OmOC9xJphK9zC6zNElXKvmt6S+ojQ97AfEptu1UDfsknGAHcVqvH2fpxOby6pPhkPVuM jpUlpR43Mm3AvKcf51+8WpRJ9KtI1WzO6Ws9WGW79wpXwLsqgywe0Mwr1EosAKP+YHEnh JKRpxceMx1zmefwjhNxrRdCbiwqnVQsIucpw9cLk1c3zSF0wYfzhZtI5Tpyw32sImU5y9 wa7Hx/jnokqEjK/EdT3gyPTbLr0nc3MU/w+CPI5D3X4kL3KsuPQG1BhS9BUQ2tX8KACTW vqdzv9nrvjASyuC86vQJq1/Bxzms1cOxK27KHzujEVO21wRNYueUpPM1NNtuR5mzCmA== 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=kYaXqCGh; 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 291BF606A333; Fri, 4 Dec 2026 14:14:56 +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=kYaXqCGh Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E7051F000CE; Fri, 4 Dec 2026 14:14:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796393696; bh=5BchLxwTDLTeUWYo3oHJKCejIEQm3ORefRJerD0Css4=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=kYaXqCGh39LJrsV0F3tHFT5JZKf6qT3gmBodFHFIV7OeMxqfAZi5D+/WQ+l7zwO4N RGQz25vZThpGl8zDJ0sVcgwBsh8r7g1Qargtrn8OQlFDrXeV+ihlSIk1weiUktr4QW lAWXOa4biwNyQQSpIPsbYf+P056mCbrMI1GblyYotwj+Iz1k0qRqPeyoDJYWHX2+HA hr9lH5lCNVoygd2NcqvEVIU3v5yRY7ZVMDIDjgITluDj8DTSELcEOx0ntyqsn5VbM1 kjHq/9NIvnj8ESqYmJH4tCiyAr6kzJdlIH4nNHEK/JoNXEhjd/J1TDCsDiYG1RKiNl 6+ZS3yCWZIPGg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 1/2] dt-bindings: PCI: Add generic PCI Endpoint Controller Reply-To: sashiko-reviews@lists.linux.dev To: "Manivannan Sadhasivam" Cc: linux-pci@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261204-pci-ep-generic-v1-1-30c0e44e170f@oss.qualcomm.com> References: <20261204-pci-ep-generic-v1-0-30c0e44e170f@oss.qualcomm.com> <20261204-pci-ep-generic-v1-1-30c0e44e170f@oss.qualcomm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 14:14:56 +0000 X-Mailing-List: devicetree@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 2 potential issues to consider: - [Medium] dt-bindings: PCI: undefined register interface for pci-ep-generic - [Low] dt-bindings: PCI: pci-ep-generic schema rejects dma-coherent property -- commit 5b3ab239c0325679aaf0982e6f6dac40dd23a5b2 Author: Manivannan Sadhasivam dt-bindings: PCI: Add generic PCI Endpoint Controller This commit adds a Devicetree binding schema for a generic PCI Endpoint Controller configured through memory-mapped ctrl and outbound regions. > diff --git a/Documentation/devicetree/bindings/pci/pci-ep-generic.yaml b/= Documentation/devicetree/bindings/pci/pci-ep-generic.yaml > new file mode 100644 > index 0000000000000..aa0ba619fe251 > --- /dev/null > +++ b/Documentation/devicetree/bindings/pci/pci-ep-generic.yaml > @@ -0,0 +1,48 @@ [ ... ] > +description: > + A PCI Endpoint Controller that is initialised by firmware or provided = by an > + emulation, and is configured through a memory-mapped control region. > + > +properties: > + compatible: > + const: pci-ep-generic > + > + reg: > + items: > + - description: control region > + - description: outbound window > + > + reg-names: > + items: > + - const: ctrl > + - const: outbound [Severity: Medium] Can firmware, emulators, and OS drivers agree on the programming interface for pci-ep-generic without a documented or standardized ctrl register layou= t? Unlike pci-host-cam-generic and pci-host-ecam-generic in host-generic-pci.yaml, which rely on PCI-SIG standardized CAM and ECAM layouts, PCI-SIG defines no standard MMIO register interface for PCI Endpoint Controllers. Even when firmware initializes clocks, regulators, and PHYs, existing endpoint controller IPs have mutually incompatible ctrl register layouts. A single vendorless compatible therefore conflates incompatible hardware with a custom emulated device. Consider documenting or referencing the ctrl MMIO register specification (using a vendor-prefixed compatible if this targets a QEMU virtual device) or using IP-specific compatibles for firmware-initialized hardware. [ ... ] > +allOf: > + - $ref: pci-ep.yaml# > + > +unevaluatedProperties: false [Severity: Low] Should this schema allow dma-coherent? Neither pci-ep-generic.yaml nor pci-ep.yaml declares dma-coherent, so unevaluatedProperties: false causes dtbs_check to reject any cache-coherent pci-ep-generic node. Endpoint function drivers allocate BAR memory via dma_alloc_coherent() in pci_epf_alloc_space(), so coherent controllers need dma-coherent on platforms where DMA is not coherent by default. Adding dma-coherent: true here (or in pci-ep.yaml) would match host-generic-pci.yaml. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204-pci-ep-gen= eric-v1-0-30c0e44e170f@oss.qualcomm.com?part=3D1