Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1912412lqm; Fri, 3 May 2024 09:48:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUzsuF7fuSmtuC1XdNYGw1D6W931t2IVoovB376qu30Nbdh49KFeySVON+7N4bx6ArhEzDtV+QP2TimIDNUG6HV+w3lIjuTMjj7H6jKmQ== X-Google-Smtp-Source: AGHT+IGG4rGwEU3nMQTVmBV9dvdAKbhZIXEF6Et40nNg90T8CnXFpUoeyNKJOl9p9f14rAY2m1L7 X-Received: by 2002:a50:9549:0:b0:572:3483:8a27 with SMTP id v9-20020a509549000000b0057234838a27mr2558682eda.33.1714754902234; Fri, 03 May 2024 09:48:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714754902; cv=pass; d=google.com; s=arc-20160816; b=b7p1t0yUGOlYNxTSsdxoMH2yeRzAbtnsHxk/aIGeDdwAX4+y/Br8HAv++CAUu/uoPn CEDHprPPio9TRflzQYuCZNEdhqY8plssgDGlWRractpCU7h1lxud+cW0x0xrLkC9zfy3 0oBfqfD/rtg9HU1dYt02QV6OmNAMSFacfiHYdkvxvHNk3SkEh6mr4/YfKRLCxlEy8g5C YSG8xdABRlAZB/OLV3wH0Xl52OV9TJIfZIJ2yNJr1oObVOwQBqMPz9KWsDEk8LB4D9YG 3FKg2AG8G3TefvpEaCNR5oWzsh3DC7bjHFakeHw3ZAfFNVEkEqVzacKHprJZKe+K2jwq FH0Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=LzyBVVV/AigxEugAE2d0nLO7y6gjooO42xOQY/ozuRE=; fh=5nBJ1b3tQ3Q60om7Tit7d19uMZThnjcr/5tMIo5vM/8=; b=NyCAxeygzsJU/fBvl5MTB2LOpchwtpR+sdFQwDsKzZCnHbpWkdcSIS9miSO9bnxCUP 87TkuCUEHERMU+vSMTZLSBcAaYV2Z0x27flKPsS1XEvRBT8LATRu8FdJRY7Gchn/PMqE dbqIghQQ+sU2ZV2FLWVTo0OPCkIEgoKZfXzFmvIh7uZK7V74gX/uvKPmvDxouPx9djLD r8xomc/1hZ3K+nj88IeJVjV1ifHB2TwL/e1s4Q12vS0fwGsimoSQRc4001LfypL/MSqn 5w47h9c3YK1FEsQ3ht/+vKwt8MXQzdsAZYjQhgbGZE15P/1IEzj1e1IKh07bGLMdFHjg A0Eg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Aco0kBue; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-167929-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167929-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id y17-20020a056402271100b00572abbecc89si1787138edd.202.2024.05.03.09.48.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 09:48:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167929-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=@kernel.org header.s=k20201202 header.b=Aco0kBue; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-167929-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167929-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 E8FBC1F22B99 for ; Fri, 3 May 2024 16:48:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EE1ED156C79; Fri, 3 May 2024 16:48:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Aco0kBue" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1F929156C6F; Fri, 3 May 2024 16:48:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714754895; cv=none; b=CAwE4cXPqcvLw3+/gsyBjtvE15JYs3akq/yMBG+23KJ8WTvYKJVp/hGtJqjQgUV5i3rGBgxRxEgXSczjIcEo5njFUF3dJCMjrBAeNSxBgp8sVMzeydmSd91CooQCfeLoHE7tKPBtvgKJUoUxuGEXMCZfYdgdH1TPg/6cHYj9UNA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714754895; c=relaxed/simple; bh=aE0iuQ/yueU4jPEF48i9AW4lOh1KcBQsXM/Bra676Po=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZkGF5l5XptY9GnQ6tYzhnTl8CDKlauAZrdg+B2v9/Gol4NpxH8VfQsZUktKk6WI7Qa/xMQkgijWS67AiY6WOYQMP1dtOATI1n8Ef9Kb7AVurGsMSlZX9b85x+WXBt1xcAsF1IJ/b2e06a/880HLKx5Qxlhu+3Xvx+J82VNk+gzA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Aco0kBue; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E910C116B1; Fri, 3 May 2024 16:48:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714754895; bh=aE0iuQ/yueU4jPEF48i9AW4lOh1KcBQsXM/Bra676Po=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Aco0kBueWG4Majy+thipijsqB5My9rzYpYkvr5e3CTpi0AypaPbjG/oOhG5lwgGTW xjswA5sEsW26MYKtyB5x96KR8qNT62YxRDY5EumKEzVtSAcq9uezlIHtcpLUz3hfNE 0X4By2QImrFmUwXSUYCiN6SfEpuoST79hIQK4S6toK09rYqkqj7/4OnspR7XNFr1H5 x7XO4XstfgAjbc3mDqqOKw5NG+0b7b/04zAg0ayYXln5M8ezwXQ+pxN3ssJfwBdmI1 vKO/ENkX4douQVm9sbZ5ZnBj2joG1y1Br1NiQGV8FfIx6YlRZzrwj9sAa/Rd3Gy8dD EkxhokJ9WAMhw== Date: Fri, 3 May 2024 09:48:12 -0700 From: Nathan Chancellor To: Dmitry Baryshkov Cc: Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Stephen Rothwell Subject: Re: [PATCH] drm/msm/gen_header: allow skipping the validation Message-ID: <20240503164812.GA4153965@thelio-3990X> References: <20240409-fd-fix-lxml-v1-1-e5c300d6c1c8@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240409-fd-fix-lxml-v1-1-e5c300d6c1c8@linaro.org> Hi Dmitry, On Tue, Apr 09, 2024 at 05:22:54PM +0300, Dmitry Baryshkov wrote: > We don't need to run the validation of the XML files if we are just > compiling the kernel. Skip the validation unless the user enables > corresponding Kconfig option. This removes a warning from gen_header.py > about lxml being not installed. > > Reported-by: Stephen Rothwell > Closes: https://lore.kernel.org/all/20240409120108.2303d0bd@canb.auug.org.au/ > Signed-off-by: Dmitry Baryshkov > --- > drivers/gpu/drm/msm/Kconfig | 8 ++++++++ > drivers/gpu/drm/msm/Makefile | 9 ++++++++- > drivers/gpu/drm/msm/registers/gen_header.py | 14 +++++++++++--- > 3 files changed, 27 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/msm/Kconfig b/drivers/gpu/drm/msm/Kconfig > index f202f26adab2..4c9bf237d4a2 100644 > --- a/drivers/gpu/drm/msm/Kconfig > +++ b/drivers/gpu/drm/msm/Kconfig > @@ -54,6 +54,14 @@ config DRM_MSM_GPU_SUDO > Only use this if you are a driver developer. This should *not* > be enabled for production kernels. If unsure, say N. > > +config DRM_MSM_VALIDATE_XML > + bool "Validate XML register files against schema" > + depends on DRM_MSM && EXPERT > + depends on $(success,$(PYTHON3) -c "import lxml") > + help > + Validate XML files with register definitions against rules-fd schema. > + This option is mostly targeting DRM MSM developers. If unsure, say N. Is this change going to be applied? I have gotten a little tired of seeing "lxml not found, skipping validation" in all of my builds :) Cheers, Nathan