Re: [PATCH v4 01/10] dt-bindings: reserved-memory: Document Tegra VPR
| Newsgroups | org.freedesktop.lists.dri-devel,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-s390 |
|---|---|
| Message-ID | <[email protected]> |
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Low] The dt-schema examples for the VPR omit the parent `reserved-memory` node context, causing 64-bit multi-cell values to be incorrectly parsed against 1-cell defaults. -- --- Patch [1]: [PATCH v4 01/10] dt-bindings: reserved-memory: Document Tegra VPR --- commit 8113c8e6ae5fc4a5f07530aed37855cc00e7b6cc Author: Thierry Reding <[email protected]> dt-bindings: reserved-memory: Document Tegra VPR This commit adds device tree binding documentation for the Video Protection Region (VPR) on NVIDIA Tegra chips. It supports both fixed and resizable memory regions for DRM protected content playback. > diff --git a/Documentation/devicetree/bindings/reserved-memory/nvidia,tegra-video-protection-region.yaml b/Documentation/devicetree/bindings/reserved-memory/nvidia,tegra-video-protection-region.yaml > new file mode 100644 > index 0000000000000..862bfd3913786 > --- /dev/null > +++ b/Documentation/devicetree/bindings/reserved-memory/nvidia,tegra-video-protection-region.yaml [ ... ] > +examples: > + - | > + /* resizable VPR */ > + protected { > + compatible = "nvidia,tegra-video-protection-region"; > + > + size = <0x0 0x70000000>; > + alignment = <0x0 0x100000>; [Severity: Low] Will this example fail semantic validation during make dt_binding_check? Because #size-cells and #address-cells default to <1> at the root level, omitting the parent reserved-memory node wrapper causes these 64-bit multi-cell values to be parsed against 1-cell defaults. The size and alignment properties here provide 2 cells and will be evaluated as arrays of two 32-bit values rather than single 64-bit values. > + reusable; > + }; [ ... ] -- Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1