Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp193032ybm; Mon, 20 May 2019 14:26:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqyaDgHE5WfJaAyM8o1cFrpAvG4+7WgfBlGnjv2DkdZzmWRS7EiTjFRVNGpzYbiTJvqKuHQh X-Received: by 2002:a63:ff0f:: with SMTP id k15mr76401654pgi.407.1558387571200; Mon, 20 May 2019 14:26:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558387571; cv=none; d=google.com; s=arc-20160816; b=p+bN9b9hHhjXiOQwetBBp2lEB4KkDTkDorYBzlkLOLQ1rbvI5N8AThjpdfRRjaXaVN wInlKCB++mvaTt2HZrh/r3sPRS/MkiyWBqLRl6fITPse7zWAOMFN/4Uf9LjJZrsq5l2e W2YkTtF9bJp3dhWP3/a4+3wkk77L39qXxmwNq5/n4DwfSIJ68/QSZBPePxJa+kUIBaNR A/jHWWbfTuOg5k/s6Wt0BC8HM70npgMbz2VLlqswt/1XgT8uosN7E2q2B6vzw5WfnFSU h4g1NjIFjNkzacYJsPDEd45PsfHrzy/reUmLt1v2LjtGKSsgaL56URj5+GZdUNAS839m lcMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=pWA7C8Zv+Sv14Oj0q9yXuvHv2YrwMg2K6WJy5TeOL6A=; b=oImJCnk8fVL9NEGCzLaMsvJ2qs3+1S77vQJPH3J68rkyaQ8VMM/vVhNHCYwMQzudhi K08Y+MlVRE6XZr43mLxkG/eFJRHoI9d6pudUakdQGst1nIhUcD+SSLDNXc4QmlFUvVVp AlsBb67UyOsSExzZbYRqyNxTernkGM37ZyESYl0BgCBff59Ppz29B9fWumMAnxdsi0pH gSOnREi+59DayHEAocr9RK1XOSkhs1n/BG8drJrhXZrwiO5rPk5p5rQ0rlNI+wHbuNSj dZtmhgNTdyzlzysnMg9tb5sB7ZK3YEOwXErp3VnVR9ortvz0Ar9flRjp5Y+ZYABC9ZjW dVvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oTbHiOhQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a9si18912368pgw.14.2019.05.20.14.25.56; Mon, 20 May 2019 14:26:11 -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; dkim=pass header.i=@kernel.org header.s=default header.b=oTbHiOhQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726900AbfETVXe (ORCPT + 99 others); Mon, 20 May 2019 17:23:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:43768 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725978AbfETVXe (ORCPT ); Mon, 20 May 2019 17:23:34 -0400 Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 39A0321743; Mon, 20 May 2019 21:23:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558387413; bh=IW+5mHGpA0bgpHCzqQex+WHBWoSsXAFa4h82j6x+6vE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=oTbHiOhQ5lsiGkc7xDnXPUpFW8zzXo0z1X/PDK/sjC2At7Yu4xVg7wCAAYnPwicNz EColuidx+DTG7SXkNxyLkC8LRtJa2HLGcHbq8fsFXMYSe3A/YSLywCy2Zb1aNVEmIE FDCg+QfaSkcAvax38MZe1b2tBgvyWFum5x7OstCA= Received: by mail-qk1-f171.google.com with SMTP id g190so9747126qkf.8; Mon, 20 May 2019 14:23:33 -0700 (PDT) X-Gm-Message-State: APjAAAVIXCfhyIPqTC3fMigUuIcOnuVJEEGxCEOasEjP19Ai/EIHp3Pr MsAkoVOMi1oFSPCs1ntM9REUNJJbDkknWE6VlQ== X-Received: by 2002:a05:620a:1107:: with SMTP id o7mr52539989qkk.184.1558387412477; Mon, 20 May 2019 14:23:32 -0700 (PDT) MIME-Version: 1.0 References: <20190510194018.28206-1-robh@kernel.org> <20190520131846.tqx7h7sjyw6sgka5@flea> In-Reply-To: From: Rob Herring Date: Mon, 20 May 2019 16:23:20 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] dt-bindings: Convert vendor prefixes to json-schema To: Maxime Ripard Cc: devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Rob