Received: by 2002:ab2:6991:0:b0:1f2:fff1:ace7 with SMTP id v17csp68477lqo; Wed, 27 Mar 2024 07:11:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUH2sotzj+ABglm50EXgN94hWVLgOXmOP07mFVXV4WEWezn8rxreaaJpyr/l9R30/C43+bDdmOV5j9zV/AQ8ovq9smCtHNMyZOgAb5Srg== X-Google-Smtp-Source: AGHT+IGv5gm6sjlST0wLnXVGYqfqtFYLvJek76hzg4iw+gbtC/2cCLmJ5B1nc/nBSGW3t0vM64QB X-Received: by 2002:a05:6214:4107:b0:696:aec0:aefb with SMTP id kc7-20020a056214410700b00696aec0aefbmr1718024qvb.54.1711548719325; Wed, 27 Mar 2024 07:11:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711548719; cv=pass; d=google.com; s=arc-20160816; b=rrjLnsWzOKiy3pRgP+f/IPhXy5uL7hHGxaJl56L4sjrAAZvhYOPpZztRmn5sU7pmjT Ec8i8dW8W6s/97xI7i5Hqw4I2EYuygDfNvLGpQ2i1s6KByWGv312vet79nf9lXAv/DQE XHoKkUg4X4ZuLLFTJZ9sW5KrsVU2YoxIF8TalxnkUX4lYUTzgo1ir2PnVy2UUxLNRSlg u4Vs/rqefiZexGzTiBenEJB2nznYYItUudX8DjtAJlfOGUKz1VabOdhvOBuscrzik7yv JFS9WTV8S8lkHVxu+k8rq9UsGkIwuSBFBr3M4oTQzf+0F9uKFokeaSLaZSSILafgTxhX LfRg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=jabber-id:in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date; bh=MqTEoRl2lBq6d0PlP53hUEuooMoP49zBxzRtTxcKpPM=; fh=F2WSbaWNu6Cr/2TNgYCEFWnml2SIj6TfRS7WoEm9O04=; b=STUTmaoG2CSqSFwjwS+TnUQsYgujzBQRL9+2v9cauXSh98pRqMsV+XULJ2mtjIMEgE Dc6P9X6ttF54xZqHJD5Z+QOZX+HmuQTGdXu7QWfpU+HPYq8sxFaX00dsH2rLXaObbWOb AV7+lxgL4ZYijWu5jU4umGzj/d/RUsDOkydhqX05hcl77BsiDC/UghV1oCgasUd2+kT8 pxlF41Y/r/2AM3rz30Jh5vhnGFq2EdXyNQ+TuSRYr5hd1gBsdmNApgO9RDnWjAoiCNi3 w5PijrtOck1KtDlcrGMymVviXoAsqHhYs6QL1Ih0z1t4PkZWM2MtKRKSQGo/tTv8YC28 PtPg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=linkmauve.fr); spf=pass (google.com: domain of linux-kernel+bounces-121292-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121292-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ey2-20020a0562140b6200b0069006d7edccsi12479449qvb.48.2024.03.27.07.11.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 07:11:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-121292-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=linkmauve.fr); spf=pass (google.com: domain of linux-kernel+bounces-121292-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121292-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id ED0291C23A69 for ; Wed, 27 Mar 2024 14:11:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 93FF81448E2; Wed, 27 Mar 2024 12:40:28 +0000 (UTC) Received: from luna.linkmauve.fr (luna.linkmauve.fr [82.65.109.163]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F10EC1327F4; Wed, 27 Mar 2024 12:40:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=82.65.109.163 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711543227; cv=none; b=Q/gNXsFYBRmUHC/1RP7Mew+t02VmwN1LfJcfYYobhmwvH7lATQCFlfFFX0jWmK5aPoqzYVrSwau6o5Um3aogOllbUe06rUP2YF2VrvUe0CIJtoRODWS9fX1+eKb84Rw74wd/z8KZNjEykHdMae6Dr1uNwQroyzC9H4dar/gwUw0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711543227; c=relaxed/simple; bh=CTTAq3BkhgMsFNfaZctwV7dwPAN7MSkPKrtMZ4zwGFY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UGumNKWONYBnhHTFnHBMf5qg67jFMAG738AkVKLtdc9MiAJ9tXkXXwy70JTF9Tj8PAAaeNlPwQkE79SVZ6SipADKswXF2Cc6fsN5vyEctrovw6XHV3Ahcr1tzXTO8KxLLzioBrJnhYRSBGIqFvMxpLYtQ2ARjewY5LyiK1Pr6GA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linkmauve.fr; spf=pass smtp.mailfrom=linkmauve.fr; arc=none smtp.client-ip=82.65.109.163 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linkmauve.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linkmauve.fr Received: by luna.linkmauve.fr (Postfix, from userid 1000) id F19C3101A8A5; Wed, 27 Mar 2024 13:40:15 +0100 (CET) Date: Wed, 27 Mar 2024 13:40:15 +0100 From: Link Mauve To: Krzysztof Kozlowski Cc: Emmanuel Gil Peyrot , linux-kernel@vger.kernel.org, Ezequiel Garcia , Philipp Zabel , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Joerg Roedel , Will Deacon , Robin Murphy , Sebastian Reichel , Cristian Ciocaltea , Dragan Simic , Shreeya Patel , Chris Morgan , Andy Yan , Nicolas Frattaroli , linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev Subject: Re: [PATCH 3/4] arm64: dts: rockchip: Add VEPU121 to rk3588 Message-ID: References: <20240320173736.2720778-1-linkmauve@linkmauve.fr> <20240320173736.2720778-4-linkmauve@linkmauve.fr> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="vIGEYjDZeTRTEtgU" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Jabber-ID: linkmauve@linkmauve.fr --vIGEYjDZeTRTEtgU Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit On Thu, Mar 21, 2024 at 09:15:38AM +0100, Krzysztof Kozlowski wrote: > On 20/03/2024 18:37, Emmanuel Gil Peyrot wrote: > > The TRM (version 1.0 page 385) lists five VEPU121 cores, but only four > > interrupts are listed (on page 24), so I’ve only enabled four of them > > for now. > > > > Signed-off-by: Emmanuel Gil Peyrot > > --- > > arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 80 +++++++++++++++++++++++ > > 1 file changed, 80 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi > > index 2a23b4dc36e4..fe77b56ac9a0 100644 > > --- a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi > > +++ b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi > > @@ -2488,6 +2488,86 @@ gpio4: gpio@fec50000 { > > }; > > }; > > > > + jpeg_enc0: video-codec@fdba0000 { > > + compatible = "rockchip,rk3588-vepu121"; > > + reg = <0x0 0xfdba0000 0x0 0x800>; > > + interrupts = ; > > + clocks = <&cru ACLK_JPEG_ENCODER0>, <&cru HCLK_JPEG_ENCODER0>; > > + clock-names = "aclk", "hclk"; > > + iommus = <&jpeg_enc0_mmu>; > > + power-domains = <&power RK3588_PD_VDPU>; > > + }; > > + > > + jpeg_enc0_mmu: iommu@fdba0800 { > > + compatible = "rockchip,rk3588-iommu"; > > It does not look like you tested the DTS against bindings. Please run > `make dtbs_check W=1` (see > Documentation/devicetree/bindings/writing-schema.rst or > https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/ > for instructions). Even on master I get an exception about this unresolvable file: referencing.exceptions.Unresolvable: cache-controller.yaml# Yet it seems to be present in only three files, all of them unrelated to the rockchip board I’m interested in (it seems), so I’m not sure what to do about that. The full stack trace is attached. > > Best regards, > Krzysztof > -- Link Mauve --vIGEYjDZeTRTEtgU Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="CHECK_DTBS=y W=1" % make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- CHECK_DTBS=y W=1 rockchip/rk3588-rock-5b.dtb make[1]: Entering directory '/home/linkmauve/dev/linux' DTC_CHK arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dtb Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/referencing/_core.py", line 417, in get_or_retrieve resource = registry._retrieve(uri) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/jsonschema/validators.py", line 111, in _warn_for_remote_retrieve request = Request(uri, headers=headers) # noqa: S310 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 322, in __init__ self.full_url = url ^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 348, in full_url self._parse() File "/usr/lib/python3.11/urllib/request.py", line 377, in _parse raise ValueError("unknown url type: %r" % self.full_url) ValueError: unknown url type: 'cache-controller.yaml' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/referencing/_core.py", line 667, in lookup retrieved = self._registry.get_or_retrieve(uri) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/referencing/_core.py", line 424, in get_or_retrieve raise exceptions.Unretrievable(ref=uri) from error referencing.exceptions.Unretrievable: 'cache-controller.yaml' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/bin/dt-validate", line 8, in sys.exit(main()) ^^^^^^ File "/usr/lib/python3.11/site-packages/dtschema/dtb_validate.py", line 144, in main sg.check_dtb(filename) File "/usr/lib/python3.11/site-packages/dtschema/dtb_validate.py", line 89, in check_dtb self.check_subtree(dt, subtree, False, "/", "/", filename) File "/usr/lib/python3.11/site-packages/dtschema/dtb_validate.py", line 82, in check_subtree self.check_subtree(tree, value, disabled, name, fullname + name, filename) File "/usr/lib/python3.11/site-packages/dtschema/dtb_validate.py", line 82, in check_subtree self.check_subtree(tree, value, disabled, name, fullname + name, filename) File "/usr/lib/python3.11/site-packages/dtschema/dtb_validate.py", line 77, in check_subtree self.check_node(tree, subtree, disabled, nodename, fullname, filename) File "/usr/lib/python3.11/site-packages/dtschema/dtb_validate.py", line 33, in check_node for error in self.validator.iter_errors(node, filter=match_schema_file): File "/usr/lib/python3.11/site-packages/dtschema/validator.py", line 413, in iter_errors for error in self.DtValidator(sch, File "/usr/lib/python3.11/site-packages/jsonschema/validators.py", line 371, in iter_errors for error in errors: File "/usr/lib/python3.11/site-packages/jsonschema/_keywords.py", line 386, in if_ yield from validator.descend(instance, then, schema_path="then") File "/usr/lib/python3.11/site-packages/jsonschema/validators.py", line 419, in descend for error in errors: File "/usr/lib/python3.11/site-packages/jsonschema/_legacy_keywords.py", line 423, in unevaluatedProperties_draft2019 evaluated_keys = find_evaluated_property_keys_by_schema( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/jsonschema/_legacy_keywords.py", line 399, in find_evaluated_property_keys_by_schema evaluated_keys += find_evaluated_property_keys_by_schema( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/jsonschema/_legacy_keywords.py", line 342, in find_evaluated_property_keys_by_schema resolved = validator._resolver.lookup(ref) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/referencing/_core.py", line 671, in lookup raise exceptions.Unresolvable(ref=ref) from error referencing.exceptions.Unresolvable: cache-controller.yaml# make[1]: Leaving directory '/home/linkmauve/dev/linux' --vIGEYjDZeTRTEtgU--