Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1046570ybm; Tue, 21 May 2019 07:53:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZ3s1t9DhBpmQuhKfyDjXff03du4Ec+aRShYrx74ALGUu56ATZIiG5rNVTgdpiG7CVzuaG X-Received: by 2002:a63:1119:: with SMTP id g25mr46703161pgl.380.1558450384075; Tue, 21 May 2019 07:53:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558450384; cv=none; d=google.com; s=arc-20160816; b=mK/VereYRz2k9wu87XssfFp2/2IZGCJIBURj9WWeOlUcLo9EOVBYO5WrXvquAviSnP fVhEltIVEvUbggHnmkY4Hzth7u7Qg4jCAzAB9Knm7L/NucxdlX2fVF0Eb7xeOzYuS+BF Pg17+fwqgoANIUf0yL+kzIQvqvhmOodj++EXfyvdIORJxJndcPl141zyE4gxWSF6zGnJ skvse0z2LEjYKzgKlhw5dL+NTZEbwsXm5qjgBED9rsRBhHIpZvMO/cfujb0s9zxD5kJI IfKrUVGlnrn60jWTnAPWnXIyAn51XeiXUPTa39OgW6UjJi4dZCffELidu+j3N50ylTAR 9afA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=3cBdjJgjnlAzYLy0esCm5Nx6gCeRWzwAgTmV2IXx3aw=; b=1LKcwUar4zp3+d3aFMi9N0MFCJ2/EDewqCJn0fBlQr1gz9wV+4UjEngL9HvN4/YrIW 8F8zta2Cu+ED1DkXnvbm6RMWPheDjKb5YsVTVoNqDa8i8e68Te1iv3wKkV5SkOu7OAsU x3d40otgrrhHTbCjrbtyHXF1sBSDjOELFCMURVfK/fmaauFK9tNAcq7kmNX0LBB536nh AFR/W1nRlTH9YVSfndYxdCu0nU+Uq10uTeNwIyTyogqBgL2AOr4Epy7AjH+Q4hHfv4yy ZMRTxMN8u25tN0RSWkxIuZTxOwZ21j6Rp8PxChnyb/JrOEevPpJ77/sZOw7GmAgx++1g lDiw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x65si23704553pfd.44.2019.05.21.07.52.46; Tue, 21 May 2019 07:53:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728603AbfEUOu3 (ORCPT + 99 others); Tue, 21 May 2019 10:50:29 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:45735 "EHLO relay7-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728256AbfEUOu3 (ORCPT ); Tue, 21 May 2019 10:50:29 -0400 X-Originating-IP: 90.88.22.185 Received: from localhost (aaubervilliers-681-1-80-185.w90-88.abo.wanadoo.fr [90.88.22.185]) (Authenticated sender: maxime.ripard@bootlin.com) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 921BA20008; Tue, 21 May 2019 14:50:24 +0000 (UTC) Date: Tue, 21 May 2019 16:50:24 +0200 From: Maxime Ripard To: Rob Herring Cc: devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] dt-bindings: Convert vendor prefixes to json-schema Message-ID: <20190521145024.q5u4kjhfyothy2ni@flea> References: <20190510194018.28206-1-robh@kernel.org> <20190520131846.tqx7h7sjyw6sgka5@flea> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="d3bior43nd5urpkd" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --d3bior43nd5urpkd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, May 20, 2019 at 11:35:01AM -0500, Rob Herring wrote: > On Mon, May 20, 2019 at 8:18 AM Maxime Ripard wrote: > > > > Hi Rob, > > > > On Fri, May 10, 2019 at 02:40:18PM -0500, Rob Herring wrote: > > > Convert the vendor prefix registry to a schema. This will enable checking > > > that new vendor prefixes are added (in addition to the less than perfect > > > checkpatch.pl check) and will also check against adding other prefixes > > > which are not vendors. > > > > > > Converted vendor-prefixes.txt using the following sed script: > > > > > > sed -e 's/\([a-zA-Z0-9\-]*\)[[:space:]]*\([a-zA-Z0-9].*\)/ "^\1,\.\*\":\n description: \2/' > > > > > > Signed-off-by: Rob Herring > > > --- > > > As vendor prefix updates come in via multiple trees, I plan to merge > > > this before -rc1 to avoid cross tree conflicts. > > > > I just tried this with the 5.2-rc1 release, and this very > > significantly slows down the validation. > > > > With a dtbs_check run on (arm's) sunxi_defconfig, on my core-i5 with 4 > > threads, I go from 1.30 minutes to more than 12. > > Indeed. 6 min to 45 min for allmodconfig. However, it's only 5 min to > run checks with only this file. I'd expect a more linear hit. Maybe > we're exceeding some cache size and thrashing. > > > Should we improve the dt-validate tool before merging this patch? > > How? I've looked at optimizing things some and implemented areas I > found (primarily, saving the fixed-up schema and not printing line > numbers (of the yaml encoded DT)). I guess we can always try to profile the dt-validate tool to see where the bottleneck is. Another area of improvement might be to use a faster language. Rust's regex engine is known to be blazing fast for example. However, it's a pretty exotic language, and it would probably hurt the maintainability. Maybe go would be a good in-between? > I've been wanting to have some way to categorize checks, so we can > split rules from pedantic guidance. Maybe we can add a level keyword > in select or something. That would be a good mitigation indeed. > Short term, I'm fine with just disabling this one by default with > 'select: false'. Ok. Do you want to send it or should I do it? Thanks! Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --d3bior43nd5urpkd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXOQQMAAKCRDj7w1vZxhR xZRzAP9i1Yld7af7MdiLNeb0VkB4LP8mtDZ75Dqlri26cErJrQEAvVASGcCozvEU EXBPbt+OsLf8nWGZNAo2Ubi1OzAblw0= =ZMOc -----END PGP SIGNATURE----- --d3bior43nd5urpkd--