Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp75384lqh; Fri, 3 May 2024 13:58:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUyWAMKChlhyUTBWDIqJ7t+tejvhG/5pWk5BrImekU4Z6qpUIvahDrqT9qLc0lU6EDpZnERPGKY1frQWZZcZWKOyvI/6VqfR+vXhHs8BQ== X-Google-Smtp-Source: AGHT+IFaUxM6NhlAC+NymJmrVlAGsiX3QJ+skA0OEDzmisncdE8XJ3xKxCll51l9Z0w02m2KRyMa X-Received: by 2002:a05:6830:22c1:b0:6ee:3d39:6255 with SMTP id q1-20020a05683022c100b006ee3d396255mr4562194otc.29.1714769921010; Fri, 03 May 2024 13:58:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714769920; cv=pass; d=google.com; s=arc-20160816; b=xW3vqg3APvvaMwXSbQlXmwkr8B+riNG4n5de1o1sGk8T8kS6xWA8P/wGod1ouxECZr 7GYrpjMw+uYOaRm8Q3isa0cFAlRLj9EjBUl69N53pibG3byhqUJtHQRqrAATkM+NPnIz SRjwpdOvSV2DInVCntlsBRBaTYn7v5hnAvfGxH6V8KW8YlQDW+1eEIOdX90ivAE3Rfoq TEEr9k3SCXgRYooUw27AW5rOMBw6MsvmzsY3o1NvznWGAg3B+eQ5DfC0sHoml/7wNwOx qkaZk97DS18CYs67Fzp4ixEEpShYK8aZVBEUyYZyM8bjn89+0Wr3+7tzPI8L3gtZX1OP d/eg== 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=AGCcksotH+kok5NpboUKTIlKHpdUeNSbaWOxB4FkSPs=; fh=fDO7WiBI6or028Rq6t2a4W9hSC83HVqmZvj+euUnxVg=; b=t+iFSSnew96tHVVTwkf6EKFhyMDawYBLKn4b6lfniC3Pzz+sKEuhSsTJc9HHv/+nQn RQ4FInpAR3kDgU6rW2tbIM9WNlC9cU/v0sUipUgk6ITvQIeQ4XDhtrq0ym7flbq1+QwK qREX9ukqtxxpIp2tJRCBP//VX9UKw9PWI56dP4aPEkRBmEi87iaL8VKlq9rNk0wdd3H2 eyDcZMDzDHqj9Jxx/EjGyuGIFdRcz8+y8xlLNNB9l36t7vNcEGhjj25/h5Ft/L3b2cwr DRqJs/d3W2rqdI8fv+W8MPixK2pq93fQ3YIS0jrDo8LcijeUO/gVQ7l8+16/ovHqHKHo U54Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BBdUhysh; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-168207-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168207-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id z24-20020ae9c118000000b007925dc7384dsi3809812qki.721.2024.05.03.13.58.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 13:58:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168207-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BBdUhysh; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-168207-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168207-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B80831C225D5 for ; Fri, 3 May 2024 20:58:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B7E533CF1; Fri, 3 May 2024 20:58:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="BBdUhysh" Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AB0882C694 for ; Fri, 3 May 2024 20:58:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714769915; cv=none; b=oZFwu11mXADfWRn0pI9gr7hoPDLvD402yxCRVM+WrS5+YG005hZQYEFVQhFO9DE0VePXxP3PPjUFHpz2JE2FIzlI7xEGmfSz9aHidN1hhLiDdRuve6sAhLwDc1t48nRKpePFzr3pToEsn0ELCMhMrI7kF9OdPQO5vBMuaO1vLAI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714769915; c=relaxed/simple; bh=94QERUQW2vb0f5FVZ4FZtQuKYtVmZ8u6WNBcDLXpiZ8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nTOxTBfoSmksxbw+m4gPjZDEPzxydrz9ipn4ddjgm7ztW0qZQOwe416BuJnfhrzO5HYDHPogKerVaryxnNdXNUxyareH8RI5EFkbAYLRvbnsQ+SxITVJvS8DUu4JiuadhyyO6h+WhZMplJIW3bSG6Wxy8EPFoELpcR5Y8aCrY4c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=BBdUhysh; arc=none smtp.client-ip=209.85.208.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2e0933d3b5fso1053461fa.2 for ; Fri, 03 May 2024 13:58:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714769912; x=1715374712; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=AGCcksotH+kok5NpboUKTIlKHpdUeNSbaWOxB4FkSPs=; b=BBdUhyshgFkDSnhM3FymrOVuTdt93DoDTGPphE1cuntT++4xoEp6w8YN6MU/UlSN9m xxDzHer1FJXAEBLVpPz5pWzr0p1GnisFcqHNePQBPazcvxOPlDAhcdZd2rG0T9AG/Up7 MvnJ9v+/dcBTAenFhk3spxFaht8tMj31k/QPLITvH7BN4VCQBxSnWYqVhT8xTcAZ/x1p T09TQw/ed13z5oHa6G4A3GvQZTf8UfP4p5a/i+mnFh/Y5ykCOnzLrOIo9LAyfd96y6Bl y8MVQ7G84iiQ6AysqpdvrbIcuGd7yBINw4nkXqK4w/un/vUPQ5IjpdPQ/E0QJ37CAQHI HoEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714769912; x=1715374712; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=AGCcksotH+kok5NpboUKTIlKHpdUeNSbaWOxB4FkSPs=; b=jUsKLKogj5lcyc2oeSJuh0hOTA/FXwnLje2p01S+7SQ1Ibx8t/qzdzew34UuMGHPE1 niLQ1evyD+7ki3FubE8FQkFzSw5wMQI8QeofBRVx4cjFKY/aSLriyqOm/CbQEJrqo/Ji I34Axn3GBZbxk/VqNBA7RcyyoTGaSox5BztUkRF3WgpuAW81HE1+/I5mVJlsCjdQEHXC O5xPTWQso9hTj6tN4IyowBX2SWZppvizgcB5dTs+JpB/45vIxhoNO1BxJs0YJj3qUsBZ L35zlIYxtUVYKDBwkcBvLlBas2lvW+YUIG4Zl0zSQ1DPh6T5M0zcF5glDsOgIG5ZF+pC Ve6Q== X-Forwarded-Encrypted: i=1; AJvYcCXtFRlWu09g/90x/wwf/IS2zO/nngdUA9uJCSDI3e0mQKCCaAtWFik6GVxg0FHzAYu4FTqAT+8Gde70KgL+KzS0JGcH4YFxdtuOktpv X-Gm-Message-State: AOJu0YybAV00VVb7rHAex9Tn42dFc7Hg9FEvFDkP7MDh3+Xex9Fezh8a 3vkPZqQGSNcU7OVj8t5cQDYchtXaxR5KvKyc0PSp29XJz/+a9Vk7O5C1CWJ56ss= X-Received: by 2002:a05:6512:b18:b0:51b:fcfe:ed with SMTP id w24-20020a0565120b1800b0051bfcfe00edmr3062478lfu.25.1714769911856; Fri, 03 May 2024 13:58:31 -0700 (PDT) Received: from eriador.lumag.spb.ru (dzdbxzyyyyyyyyyyyykxt-3.rev.dnainternet.fi. [2001:14ba:a0c3:3a00::227]) by smtp.gmail.com with ESMTPSA id o29-20020ac25b9d000000b0051da1d9e51dsm653034lfn.289.2024.05.03.13.58.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 13:58:31 -0700 (PDT) Date: Fri, 3 May 2024 23:58:30 +0300 From: Dmitry Baryshkov To: Nathan Chancellor 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: References: <20240409-fd-fix-lxml-v1-1-e5c300d6c1c8@linaro.org> <20240503164812.GA4153965@thelio-3990X> 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: <20240503164812.GA4153965@thelio-3990X> On Fri, May 03, 2024 at 09:48:12AM -0700, Nathan Chancellor wrote: > 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 :) > I've posted v2, including CI changes. The plan is to get it merged before the drm/msm pull request. -- With best wishes Dmitry