Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp150291ybz; Tue, 21 Apr 2020 17:25:08 -0700 (PDT) X-Google-Smtp-Source: APiQypLoZx0YESvFVwFiKJ8IQj21ZGLGJTTVdPui9MaAh5KUsBFk6R75FoUPNQ1N9O4IMCW60+th X-Received: by 2002:a50:d987:: with SMTP id w7mr20714493edj.276.1587515108397; Tue, 21 Apr 2020 17:25:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587515108; cv=none; d=google.com; s=arc-20160816; b=ucxKRLY+l1kY38FdDQ0YEu0TDI8y3+Y2oC+wGoT1S61US6UkHoa/5DvrfjO65YQEJU 07D4LyH/Q7QFb1ch481X7lXn1P24jSmznlsZqQ2yUE+4qlXVSnLbZCYy4klf9Xld2Bzu pUc5EjNcUwjUJ1bXr1iEiiiDRB0+T3ZIs5Bn5pL5oFjDH3wPjA41W9w26OeinycHaiqS doxyHF6Wu26WjOrUJ3trOupibF8AvfjXVQ16zhhCVBo5kky7NgQgiW4PFE1yo8AsAQzV mxSbhblaIVuTxSe6SxuHpB7lFP8sFwtwM9mDIS5E6aZ7e/Iw/tCvNOXXYz6gARLAnKGy NWog== 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=c+XFPyiH5BeEGClHqseQljbOxUU8e9tNUBpvWAMh/7s=; b=Va/aH1aNfxvKJVThg0dgn5pX/MQAowA2VzSN1bKwZa2kZr7WSty0/vzalS7qTqzs9k AO6c4hd61dkafhu+9ps1UDiGiEJPI+tYPSzQE8u5Y9bHyiPgpyBeS0fYXJ85K837E41A hkFOw3S/2WVF8MQckujT98chZZVl7heNGe5YbjJnVB0+/DrHpjzQlFZT7eYoZMDrr928 QG+/o1I4MpssdQoJtuMU65D6mh4zVNpSDcYBcmgaz0YO5DwEhcYys54EpZWMsdEvF43s UVdbpKbGlvueuA1VBOQO5H7xuR6TWZJu8+H/KzhmIVFf2HoCokrz+b0G1YDiG/Yccx7e mNDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ht1cZBts; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id i18si2754500ejz.35.2020.04.21.17.24.46; Tue, 21 Apr 2020 17:25:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ht1cZBts; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726462AbgDVAWU (ORCPT + 99 others); Tue, 21 Apr 2020 20:22:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:35912 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726012AbgDVAWU (ORCPT ); Tue, 21 Apr 2020 20:22:20 -0400 Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) (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 931D720575; Wed, 22 Apr 2020 00:22:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587514939; bh=c+XFPyiH5BeEGClHqseQljbOxUU8e9tNUBpvWAMh/7s=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Ht1cZBtsU4ZzklSV5cRr5Qx6XaFQ4W5lxRDq0/8EF2vd2jglMQT6aeg5HlTr+Y+cg GvXxh4r2LskTeGgpwJ5Sx07ICokd+2snluTxFrmyUsyvTzXD+4Xjj4ugclehyDp9OU Ueeuh3pweyX12GUi3BhHMzulqdR1JtYelrt3Dkgg= Received: by mail-qk1-f174.google.com with SMTP id j4so697888qkc.11; Tue, 21 Apr 2020 17:22:19 -0700 (PDT) X-Gm-Message-State: AGi0Pua5yrPq8jSWRo1KeGkfpSOGnjx4TtwIm4z9ri/o474X0y7HKmFs RaoNBRKDqPSXQNk/1utSSxW1XrAa7To8eXnEUw== X-Received: by 2002:a37:c43:: with SMTP id 64mr22162895qkm.119.1587514938757; Tue, 21 Apr 2020 17:22:18 -0700 (PDT) MIME-Version: 1.0 References: <20200421212004.6146-1-robh@kernel.org> <20200421233737.GH5983@pendragon.ideasonboard.com> In-Reply-To: <20200421233737.GH5983@pendragon.ideasonboard.com> From: Rob Herring Date: Tue, 21 Apr 2020 19:22:07 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: Fix command line length limit calling dt-mk-schema To: Laurent Pinchart Cc: devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , Masahiro Yamada 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 Tue, Apr 21, 2020 at 6:37 PM Laurent Pinchart wrote: > > Hi Rob, > > Thank you for the patch. > > On Tue, Apr 21, 2020 at 04:20:03PM -0500, Rob Herring wrote: > > As the number of schemas has increased, we're starting to hit the error > > "execvp: /bin/sh: Argument list too long". This is due to passing all the > > schema files on the command line to dt-mk-schema. It currently is only > > with out of tree builds and is intermittent depending on the file path > > lengths. > > > > Commit 2ba06cd8565b ("kbuild: Always validate DT binding examples") made > > hitting this proplem more likely since the example validation now always > > gets the full list of schemas. > > > > Fix this by putting the schema file list into a temp file and using xargs. > > > > Reported-by: Laurent Pinchart > > Cc: Masahiro Yamada > > Signed-off-by: Rob Herring > > Quite a bit slower than v5.6 when passing DT_SCHEMA_FILES, but > reasonable, and working now :-) That's expected. It's validating with ~700 vs. 1 schema. The problem was folks only checking with DT_SCHEMA_FILES set, but a new schema can affect another example or existing schemas (including core schema) may fail on the new example. Rob