Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1045685ybm; Tue, 21 May 2019 07:52:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqxtKxWSfGIFg+ktSe7WLNrKVB8vF2noC+dZfXwJaHj2iVmQ3FqsQuaXSNpMQmXDJrS7HrV0 X-Received: by 2002:a63:58b:: with SMTP id 133mr83312687pgf.138.1558450330569; Tue, 21 May 2019 07:52:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558450330; cv=none; d=google.com; s=arc-20160816; b=Gw5oE/p0/VJAnPlMSzPXXgoT5VY+GatcMY+QgvbwhQaQCzYXh79kL112UXgktvATFe zaOtlkx5yF6KRgiK9ktPysl4erskQDB+CAXKVYN1jti1UdvS6qQr8Nm0eJjxyygWMUGd YAAjU0PBtLUb3O9kFx9reY2Q2cZEbBMdS0ZvtuAiEYwxxAWDaw/d/QNpZRUmxiQcIbhO ggT6rgqRnb3nRo+amPz3BeMBvI2zgsOcXusjEvJVGjtVI4UsagWYc0TRZmA5NF/Zwox8 9WBLGQUjO0mgYugm24HcXc+U9zfFCzKAIC0i0gs9dATHl9PuikR9DErSeDDcxvLU/x7g d9oQ== 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=HaXovUGACUmrmVi1qJr4hG71cfZMI8HDYlKqxhs1Xqw=; b=wYXuLw++5IahrB3y/qkum0b/FvjQBNk5/zSLEIx4jqmtV0pAHBd1xGGfjLW69artjf wMNS0lM7GMO+wtUuBSCuGV9Hkf6gqZAKS3wUnBQxvziT4diALPiMSncVLvbXWka94B2g X3A64tUd6mMb1SuRji48NRyyT+oD+hVJA5H0i9N/PK96caiXAHHWIluFBEc2ld3qUMDi /E2L4saDwhQGw+/5tfLPUi0r39fgF/uz0GENXU+8VWYWyTBBvGRsnIyWvfRmeyNgNTwY GJmrcVvc5YCOhbqvmjkFT/vFG8G6wyg5xWgLgBcHlOamzNCwaYo1pb+ScGCNLNl4+VME sMoA== 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 b13si20679689plz.194.2019.05.21.07.51.55; Tue, 21 May 2019 07:52:10 -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 S1728616AbfEUOuu (ORCPT + 99 others); Tue, 21 May 2019 10:50:50 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:58885 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727969AbfEUOuu (ORCPT ); Tue, 21 May 2019 10:50:50 -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 relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 033AB60006; Tue, 21 May 2019 14:50:47 +0000 (UTC) Date: Tue, 21 May 2019 16:50:47 +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: <20190521145047.dyfvrzxviqchmxp2@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="chpalzxqydzs6tku" 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 --chpalzxqydzs6tku Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, May 20, 2019 at 04:23:20PM -0500, Rob Herring wrote: > On Mon, May 20, 2019 at 11:35 AM 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. > > Looks like the problem is a cache. The python regex cache. Changing > re._MAXCACHE from 512 to 4096 fixes the problem. I can set this in the > dtschema lib. Awesome, thanks! Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --chpalzxqydzs6tku Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXOQQRwAKCRDj7w1vZxhR xdQuAP439mUERuocEuZCT95DT2OAX3WDau0S9oAgoQyBNYQh4gEAlvtU2tFlk5CI wEVaeMJC4qe2gEhqPEta9eBgwK33NQM= =JAGU -----END PGP SIGNATURE----- --chpalzxqydzs6tku--