Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp2173941lqe; Tue, 9 Apr 2024 11:32:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV6RsyxKByJKc0vYBF7fKw/5i0DoXcRQt1gnB37E3bIzhB9R7erRNKvF1vFn0VFvM2jJisjv/pwWHxSQ2OYPiS/W6RforAJ7tlcnyx/JQ== X-Google-Smtp-Source: AGHT+IF3pHoJKPOyqEvp5ZkYwKFISWXbA+Fa1D4XpT/7bIkSxmuvzLRKvZHKlWNVo52jFbfdpSfm X-Received: by 2002:a17:906:4ac9:b0:a51:ae39:d385 with SMTP id u9-20020a1709064ac900b00a51ae39d385mr150934ejt.1.1712687573306; Tue, 09 Apr 2024 11:32:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712687573; cv=pass; d=google.com; s=arc-20160816; b=OIlOjn2ANIgg80twCkywfvZ9PIB/uEXi7YDkMzxBiM8aGKYfTX0QBQ+PH4YaoN2smU pCME2Nn+fPIGH9VDGq7EOUFO/vFDGdiIQb3XG2b5DgZPTCppl6hagDHs8BFogg83WPwj z6riF3ClMX/HXZqUtkD/yGme6mvFlz2cdnNw0WN+iijJO/ZyXUHt3O+k9iMQpY2C4eZM V+YjtofLb3xs7J38fJMVM8CdV+X9Blez2nxUS6wAryUzvwwKehJiOu16uOOj/BZungt2 v+KDeIZ4iP1rdjIsRkMBDCta0yIspg/fR/rVmyxF5R6KPUkTVrbKXA+AJL2x9/T8J/2U HveA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=3jTLLgFdRPb5m4DDhcm3RNHkg0n6t5AlhKn4XcmgTQo=; fh=Oevnkohe++7lumPQv4BWy6ly7kaSqKPqtvMMF7rgcu8=; b=dlJqosfO3NhX1F8pqHq4/N8diRweD7wC2nlHYYdwDG0amJT/a/pjUz5gBnptT4FALW +DnWtHbKS23msgm41AY+xJLGex4jf4PKhCLAT7sn9dd7xGNYkZ1XeJpjEcRhnDGusJPc MRvoFP7bH+o9McJt0jJVPJunAQAN/ck5a9Jr3U0hcIuldkc/jWwVD137iNgbY2qDZNNc B7zHi3SqI++daMB5ZtxWmyTPMsKBx6F5n3pUyMruWj3bQeqBxEgJdsZCphpa/3kRGLQu pyAcvAhNaHXGGXqBhKeueHYqpKjoYxVJ8FupPTFt2HkSWaicEpdhet9TLBZe3An+M+ee 1hnQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=s1 header.b=2qc9t3i7; arc=pass (i=1 spf=pass spfdomain=z3ntu.xyz dkim=pass dkdomain=z3ntu.xyz dmarc=pass fromdomain=z3ntu.xyz); spf=pass (google.com: domain of linux-kernel+bounces-137473-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137473-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id du3-20020a17090772c300b00a4a359a8006si5272020ejc.348.2024.04.09.11.32.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 11:32:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-137473-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=s1 header.b=2qc9t3i7; arc=pass (i=1 spf=pass spfdomain=z3ntu.xyz dkim=pass dkdomain=z3ntu.xyz dmarc=pass fromdomain=z3ntu.xyz); spf=pass (google.com: domain of linux-kernel+bounces-137473-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137473-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0BBDB1F21D5C for ; Tue, 9 Apr 2024 18:32:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7584C156F43; Tue, 9 Apr 2024 18:32:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b="2qc9t3i7" Received: from ahti.lucaweiss.eu (ahti.lucaweiss.eu [128.199.32.197]) (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 ADABE156C59; Tue, 9 Apr 2024 18:32:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=128.199.32.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712687557; cv=none; b=DL48WSAWHRkwuIGhI8ZqCXabM+6A01wU3G+Iz4xvyi9xkJnSK99awSkd6QhDGEyeou0j5PbSNmIexbYpV2yGT+0/xioizY8cQxCsABgv+1QOcqKVH+/AUXSI2rnxpLDzu9pUSfDdpy0K9w66C/PR6j0UWbORm7yvNGsH4LY/Nuw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712687557; c=relaxed/simple; bh=pHkJ+0C4c6a26Bb5wDFsH4ryFH7WrAuqh4ZAgrgWB+A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=XSEMGSa9CxNXTfT0TzQpIO3+oUGo20Z4NdlRsjVvY+FG3FMqlyZ3hN7Yn2sFJ8wMCGavYyP4VW7UNBqOvfKPVH4XesKenrGcHWuKA1o3hVRu7NYeVbtI2z5zYZDG4k9BhmPVxwOqCCkk+tb3OnAl6qc4bfbFeBMQT1Ofz3BABxE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=z3ntu.xyz; spf=pass smtp.mailfrom=z3ntu.xyz; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b=2qc9t3i7; arc=none smtp.client-ip=128.199.32.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=z3ntu.xyz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=z3ntu.xyz DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=s1; t=1712687547; bh=pHkJ+0C4c6a26Bb5wDFsH4ryFH7WrAuqh4ZAgrgWB+A=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=2qc9t3i7xCFfSB/OiHDIneSLqpOOBDt/X4sfKwNVz3oPA5Ikj7EMOpYSU/ncbwMC1 RG8MGX3rJW8vY3PhjKQVl2ULqxy8C2Xxv9QQwjlrk/vHp7qWfRH/T/PxABAGNypwH5 exUUk2PANrB/9NVouoM+Z00LPNqRYakTj7ztiUjM= From: Luca Weiss To: Rob Herring Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Bjorn Andersson , Mathieu Poirier , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/3] Fix up qcom,halt-regs definition in various schemas Date: Tue, 09 Apr 2024 20:32:26 +0200 Message-ID: <2724472.mvXUDI8C0e@g550jk> In-Reply-To: <20240409151041.GA1141635-robh@kernel.org> References: <20240407-qcom-halt-regs-fixup-v1-0-a0ea4e2c178e@z3ntu.xyz> <20240409151041.GA1141635-robh@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" On Dienstag, 9. April 2024 17:10:41 CEST Rob Herring wrote: > On Sun, Apr 07, 2024 at 11:58:29AM +0200, Luca Weiss wrote: > > The original motivation is that a bunch of other schemas fail to > > validate qcom,halt-regs, for example like in the following examples: > > > > arch/arm64/boot/dts/qcom/apq8016-sbc.dtb: remoteproc@4080000: qcom,halt-regs:0: [20] is too short > > from schema $id: http://devicetree.org/schemas/remoteproc/qcom,msm8916-mss-pil.yaml# > > arch/arm64/boot/dts/qcom/apq8096-ifc6640.dtb: remoteproc@2080000: qcom,halt-regs:0: [82] is too short > > from schema $id: http://devicetree.org/schemas/remoteproc/qcom,msm8996-mss-pil.yaml# > > arch/arm64/boot/dts/qcom/apq8039-t2.dtb: remoteproc@4080000: qcom,halt-regs:0: [32] is too short > > from schema $id: http://devicetree.org/schemas/remoteproc/qcom,msm8916-mss-pil.yaml# > > > > While I'm actually not quite sure why these patches fix this in > > the other schemas - feels like a bug/limitation in dt-schema maybe? - > > Was this with v2024.02? It should be a bit better there. Though it > may just have different errors. The limitation is that property > types and in the case of matrix's (which phandle-array actually is) > range for dimensions are global. So if there's not correct dimensions > for a property, the tools aren't going to decode it properly. You're right, I doesn't look like I can reproduce this with the latest dtschema installed. Anyways these patches should be good to actually validate qcom,halt-regs for the schemas I'm touching here. Regards Luca > > Rob >